/* Safety Tools round 4 (1.0.199, owner approved 20 Oct 2026): Option B hub and the four new tool pages.
   Loaded only on the hub and on the four new tool pages, after safety-tools.css. Same colours, fonts, cards and buttons as the other tools. */

/* ---------- banners: same flat style and 240 x 150 size as the 1.0.186 card pictures ---------- */
.hts-hb-art{display:block;padding:8px 10px 0;background:linear-gradient(135deg,#1f4fa8,#2a6fdb);overflow:hidden}
.hts-hb-art-home-fire-safety-score,.hts-hb-art-score{background:linear-gradient(135deg,#1f6b3a,#2f9457)}
.hts-hb-art-card{background:linear-gradient(135deg,#e0560f,#f98a47)}
.hts-hb-art-kit{background:linear-gradient(135deg,#0f6a73,#1b99a6)}
.hts-hb-art-calendar{background:linear-gradient(135deg,#8a5a00,#d99a1c)}
.hts-hb-art-data{background:linear-gradient(135deg,#4b3a9e,#6f5fd1)}
.hts-hb-art-lpg,.hts-st-tc-lpg-cylinder-test-date .hts-st-tc-art{background:linear-gradient(135deg,#2d4357,#587790)}
.hts-hb-art-load{background:linear-gradient(135deg,#a8322a,#d9594a)}
.hts-hb-art-school{background:linear-gradient(135deg,#2e3f9e,#5266d4)}
.hts-hb-art-society{background:linear-gradient(135deg,#0b6a5a,#1fa58d)}
.hts-hb-art-citycard{background:linear-gradient(135deg,#a3245c,#d4467f)}
.hts-hb-art-privacy{background:linear-gradient(135deg,#2c2f8f,#5a5fd6)}
.hts-hb-art-b101{background:linear-gradient(135deg,#0b1f33,#16456e);display:flex;align-items:center;justify-content:center;padding:6px}
.hts-hb-art-b101 img{width:auto;height:100%;max-height:100%;border-radius:14px;display:block}
.hts-hb-art svg.hts-st-art{width:100%!important;height:auto!important}

/* ---------- hub, Option B ---------- */
.hts-hb{padding-bottom:30px}
.hts-hb-nojs .hts-hb-js{display:none!important}
.hts-hb-band{background:radial-gradient(120% 140% at 85% 0,#17375a 0,var(--s-navy) 60%);color:#fff;padding:22px 4vw 24px}
.hts-hb-bandin{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:28px;align-items:end}
.hts-hb-band .hts-st-crumbs{margin-bottom:8px}
.hts-st-page .hts-hb-band h1{margin:0 0 8px;font-size:38px;line-height:1.12;color:#fff}
.hts-hb-band p{margin:0;font-size:16.5px;line-height:1.55;color:#e6edf3;max-width:700px}
.hts-hb-search{display:flex;align-items:center;gap:10px;background:#fff;border-radius:12px;padding:0 14px;height:50px;color:var(--s-muted)}
.hts-hb-search input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font:16px "Segoe UI",system-ui,Arial,sans-serif;color:var(--s-text)}
.hts-hb-search:focus-within{box-shadow:0 0 0 3px #ffd2b5,0 0 0 5px var(--s-navy)}
.hts-hb-search input:focus-visible{outline:0;box-shadow:none}
.hts-hb-body{max-width:1120px;margin:0 auto;padding:22px 4vw 0}
.hts-hb-lay{display:grid;grid-template-columns:250px minmax(0,1fr);gap:26px;align-items:start}
.hts-hb-side{position:sticky;top:96px;background:#fff;border:1px solid var(--s-line);border-radius:14px;padding:14px;box-shadow:0 2px 12px rgba(11,31,51,.06)}
.hts-hb-side h2{font:800 12px "Segoe UI",system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--s-muted);margin:2px 6px 8px}
.hts-hb-cb{display:flex;width:100%;justify-content:space-between;align-items:center;gap:8px;border:0;border-left:4px solid transparent;background:transparent;padding:9px 10px;border-radius:9px;font:700 14.5px "Segoe UI",system-ui,Arial,sans-serif;color:var(--s-navy);cursor:pointer;text-align:left}
.hts-hb-cb:hover{background:var(--s-light)}
.hts-hb-cb em,.hts-hb-chip em{font-style:normal;font-size:12px;background:#eef2f6;border-radius:999px;padding:1px 8px;color:var(--s-muted)}
.hts-hb-cb.is-on{background:var(--s-soft);border-left-color:var(--s-orange)}
.hts-hb-cb.is-on em{background:#fff}
.hts-hb-chips{display:none}
.hts-hb-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--s-line);background:#fff;color:var(--s-navy);border-radius:999px;padding:8px 14px;min-height:40px;font:700 13.5px "Segoe UI",system-ui,Arial,sans-serif;cursor:pointer;white-space:nowrap}
.hts-hb-chip.is-on{background:var(--s-navy);color:#fff;border-color:var(--s-navy)}
.hts-hb-chip.is-on em{background:rgba(255,255,255,.2);color:#fff}
.hts-hb-start{background:var(--s-navy);border-radius:14px;padding:14px 16px 16px;margin-bottom:20px;color:#fff}
.hts-hb-start[hidden],.hts-hb-li[hidden],.hts-hb-empty[hidden]{display:none!important}
.hts-hb-start h2{color:#fff;font-size:18px;margin:0 0 10px}
.hts-hb-startrow{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.hts-hb-startrow a{display:block;border:1px solid rgba(255,255,255,.2);border-radius:12px;overflow:hidden;background:rgba(255,255,255,.08);color:#fff;text-decoration:none;height:100%}
.hts-hb-startrow a:hover{border-color:#ff9a5c}
.hts-st-page .hts-hb-startrow a{color:#fff}
.hts-hb-startname{display:flex;gap:8px;align-items:center;padding:10px 12px 12px;font-weight:700;font-size:14.5px;line-height:1.25}
.hts-hb-n{flex:0 0 22px;height:22px;border-radius:50%;background:#ff9a5c;color:var(--s-navy);font:800 12px/22px "Segoe UI",sans-serif;text-align:center}
.hts-hb-lh{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:0 0 10px}
.hts-hb-lh h2{font-size:22px;margin:0}
.hts-hb-lh span{font-size:13px;color:var(--s-muted)}
.hts-hb-list{list-style:none;margin:0 0 22px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hts-hb-row{display:flex;gap:12px;align-items:center;height:100%;background:#fff;border:1px solid var(--s-line);border-radius:12px;padding:8px 12px 8px 8px;text-decoration:none;color:var(--s-text);transition:border-color .15s,box-shadow .15s}
.hts-hb-row:hover{border-color:var(--s-orange);box-shadow:0 4px 12px rgba(11,31,51,.1)}
.hts-hb-row .hts-hb-art{flex:0 0 120px;width:120px;border-radius:9px;padding:5px 6px 0}
.hts-hb-row .hts-hb-art-b101{height:75px;padding:5px}
.hts-hb-tx{flex:1;min-width:0}
.hts-hb-tx b{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font:700 15.5px/1.2 Georgia,"Times New Roman",serif;color:var(--s-navy)}
.hts-hb-d{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12.5px;color:var(--s-muted);margin-top:3px}
.hts-hb-ct{display:block;font-size:11.5px;color:#5d6a76;margin-top:3px}
.hts-hb-go{flex:0 0 20px;color:var(--s-navy)}
.hts-hb-badge{display:inline-block;padding:2px 8px;border-radius:999px;background:var(--s-orange);color:var(--s-navy);font:800 10.5px "Segoe UI",sans-serif;letter-spacing:.04em;text-transform:uppercase}
.hts-hb-empty{padding:26px;text-align:center;background:#fff;border:1px dashed var(--s-line);border-radius:14px;color:var(--s-muted)}
.hts-hb .hts-st-also{margin-top:6px}

@media(max-width:860px){
  .hts-hb-band{padding:18px 16px 20px}
  .hts-hb-bandin{grid-template-columns:1fr;gap:14px}
  .hts-st-page .hts-hb-band h1{font-size:28px}
  .hts-hb-band p{font-size:15px}
  .hts-hb-body{padding:0 16px}
  .hts-hb-lay{grid-template-columns:1fr;gap:0}
  .hts-hb-side{display:none}
  .hts-hb-chips{display:flex;gap:8px;overflow-x:auto;margin:0 -16px 14px;padding:10px 16px;background:var(--s-bg);position:sticky;top:66px;z-index:20;border-bottom:1px solid var(--s-line)}
  .hts-hb-nojs .hts-hb-chips{display:none}
  .hts-hb-startrow{grid-template-columns:1fr 1fr;gap:10px}
  .hts-hb-startname{font-size:13.5px;padding:8px 10px 10px}
  .hts-hb-list{grid-template-columns:1fr}
  .hts-hb-row .hts-hb-art{flex-basis:104px;width:104px}
  .hts-hb .hts-st-also ul{grid-template-columns:1fr}
  .hts-hb-body{padding-top:16px}
}

/* ---------- new tool pages ---------- */
.hts-r4 .hts-r4-form{display:grid;gap:14px}
.hts-r4-field label,.hts-r4-extra label{display:block;font-weight:700;font-size:14px;margin:0 0 4px;color:var(--s-navy)}
.hts-r4 input[type=text],.hts-r4 input[type=number],.hts-r4 input[type=date],.hts-r4 select{width:100%;min-height:44px;border:1px solid #b9c2cb;border-radius:8px;padding:0 12px;font:16px "Segoe UI",system-ui,Arial,sans-serif;color:var(--s-text);background:#fff}
.hts-r4 #hts-lpg-code{font-size:22px;font-weight:700;letter-spacing:.06em;max-width:280px}
.hts-r4-examples{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0}
.hts-r4-chip{border:1px solid var(--s-line);background:var(--s-light);color:var(--s-navy);border-radius:999px;padding:6px 14px;min-height:36px;font:700 14px "Segoe UI",system-ui,sans-serif;cursor:pointer}
.hts-r4-chip:hover{border-color:var(--s-orange)}
.hts-r4-result{margin-top:16px;min-height:0}
.hts-r4-res{border:1px solid var(--s-line);border-left:6px solid var(--s-navy);border-radius:12px;padding:14px 16px;background:#fff;margin-bottom:12px}
.hts-r4-res h3{margin:0 0 8px;font-size:21px}
.hts-r4-res h4{margin:12px 0 6px;font-size:16px}
.hts-r4-res p{margin:0 0 8px}
.hts-r4-res ol,.hts-r4-res ul{margin:0 0 8px;padding-left:22px}
.hts-r4-res-ok{background:#e8f5ec;border-left-color:#1f6b3a}
.hts-r4-res-warn{background:#fff4dc;border-left-color:#9a6200}
.hts-r4-res-alert,.hts-r4-res-error{background:#fdecea;border-left-color:#b3261e}
.hts-r4-sub{display:block;margin-top:4px;font-size:13px;color:var(--s-muted)}
.hts-r4-bandchip{display:inline-block;padding:4px 14px;border-radius:99px;background:var(--s-navy);color:#fff;font:800 13px "Segoe UI",sans-serif;letter-spacing:.04em;text-transform:uppercase;margin-bottom:6px}
.hts-r4-leak{border-left:6px solid #b3261e}
.hts-r4-leak h2{display:flex;align-items:center;gap:8px}
.hts-r4-leak ol{padding-left:22px}
.hts-r4-leak li{margin-bottom:6px}
.hts-r4-fs{border:0;margin:0 0 18px;padding:0;min-width:0}
.hts-r4-fs>legend{font:700 21px Georgia,"Times New Roman",serif;color:var(--s-navy);padding:0;margin:0 0 8px}
.hts-r4-grp h3{font-size:16px;margin:14px 0 6px;color:var(--s-muted);text-transform:uppercase;letter-spacing:.06em}
.hts-r4-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--s-line)}
.hts-r4-pick{display:flex;gap:10px;align-items:flex-start;cursor:pointer}
.hts-r4-pick input{margin-top:4px;width:20px;height:20px;accent-color:var(--s-orange);flex:0 0 20px}
.hts-r4-pick b{display:block;font-size:15px;color:var(--s-navy)}
.hts-r4-pick small{display:block;font-size:12.5px;color:var(--s-muted)}
.hts-r4-nums{display:flex;gap:8px}
.hts-r4-nums label{font-size:11.5px;font-weight:700;color:var(--s-muted);display:flex;flex-direction:column;gap:2px}
.hts-r4-nums input{min-height:38px!important;width:100px!important;font-size:14px!important;padding:0 8px!important}
.hts-r4-nums label:first-child input{width:64px!important}
.hts-r4-loadgrid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:22px;align-items:start}
.hts-r4-loadres{position:sticky;top:96px;max-height:calc(100vh - 112px);overflow-y:auto;overscroll-behavior:contain}
.hts-r4-radios{display:grid;gap:8px}
.hts-r4-radio{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--s-line);border-radius:10px;cursor:pointer;background:#fff}
.hts-r4-radio input{margin-top:3px;width:20px;height:20px;accent-color:var(--s-orange)}
.hts-r4-radio b{display:block;color:var(--s-navy)}
.hts-r4-radio small{display:block;font-size:12.5px;color:var(--s-muted)}
.hts-r4-radio:has(input:checked){border-color:var(--s-orange);background:var(--s-soft)}
.hts-r4-extra{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0}
.hts-r4-extra[hidden]{display:none}
.hts-r4-meter{position:relative;height:14px;border-radius:8px;background:#e9edf1;overflow:visible;margin:10px 0 2px}
.hts-r4-meterfill{display:block;height:100%;border-radius:8px;background:#1f6b3a}
.hts-r4-mf-warn{background:#c98a00}.hts-r4-mf-alert{background:#b3261e}
.hts-r4-meter u{position:absolute;top:-4px;bottom:-4px;width:2px;background:var(--s-navy);text-decoration:none}
.hts-r4-metlab{display:flex;justify-content:space-between;font-size:11.5px;color:var(--s-muted);margin-bottom:10px}
.hts-r4-kvs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.hts-r4-kv{background:var(--s-light);border-radius:10px;padding:8px 10px;display:flex;flex-direction:column}
.hts-r4-kv span{font-size:12px;color:var(--s-muted)}
.hts-r4-kv b{font-size:15px;color:var(--s-navy)}
.hts-r4-smalltable{min-width:0!important}
.hts-r4-flags{padding-left:20px;margin:8px 0;font-size:14px}
.hts-r4-flags li{margin-bottom:6px}
.hts-r4-q{border:1px solid var(--s-line);border-radius:12px;padding:12px 14px;margin:0 0 10px;min-width:0;background:#fff}
.hts-r4-q>legend{font-weight:600;font-size:15px;padding:0 6px;line-height:1.4;color:var(--s-text)}
.hts-r4-qn{font-weight:800;color:var(--s-navy)}
.hts-r4-prio{display:inline-block;padding:1px 8px;border-radius:99px;background:var(--s-soft);color:#7a2f06;font:800 11px "Segoe UI",sans-serif;text-transform:uppercase;letter-spacing:.04em}
.hts-r4-yn{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 4px}
.hts-r4-yn label{position:relative;cursor:pointer}
.hts-r4-yn input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.hts-r4-yn span{display:inline-flex;align-items:center;justify-content:center;min-width:92px;min-height:44px;padding:8px 16px;border:2px solid #b9c2cb;border-radius:10px;background:#fff;font:700 15px "Segoe UI",system-ui,sans-serif;color:var(--s-navy)}
.hts-r4-yn input:checked+span{box-shadow:0 0 0 3px var(--s-navy)}
.hts-r4-yn-yes input:checked+span{background:#e8f5ec;border-color:#1f6b3a}
.hts-r4-yn-no input:checked+span{background:#fdecea;border-color:#b3261e}
.hts-r4-yn-unsure input:checked+span{background:#fff4dc;border-color:#9a6200}
.hts-r4-yn input:focus-visible+span{outline:3px solid var(--s-navy);outline-offset:2px}
.hts-r4-hint{margin-top:4px}
.hts-r4-hint summary{cursor:pointer;color:var(--s-link);font-size:13.5px;font-weight:600}
.hts-r4-hint p{font-size:13.5px;color:var(--s-muted);margin:6px 0 0}
.hts-r4-check{display:flex;gap:10px;align-items:center;font-weight:600}
.hts-r4-check input{width:20px;height:20px;accent-color:var(--s-orange)}
.hts-r4-nolist{padding-left:20px}
.hts-r4-nolist li{margin-bottom:6px}
.hts-r4-counts{font-size:13px;color:var(--s-muted)}
.hts-r4-letterfields{grid-template-columns:repeat(3,minmax(0,1fr))}
.hts-r4-letterpre{white-space:pre-wrap;word-wrap:break-word;background:#fff;border:1px solid #cfd6dd;border-radius:8px;padding:18px 20px;font:15px/1.6 Georgia,"Times New Roman",serif;color:#111;margin:14px 0}
.hts-r4-pdfs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.hts-r4-pdf{margin:0;display:grid;grid-template-columns:130px minmax(0,1fr);gap:16px;align-items:start}
.hts-r4-pdf figcaption{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.hts-r4-pdf figcaption span{font-size:13.5px;color:var(--s-muted)}
.hts-r4-pdf figcaption b{font-size:16px;color:var(--s-navy)}
.hts-r4-sub.hts-r4-err,.hts-r4-err{color:#b3261e;font-weight:700;margin:0}
.hts-r4-row3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hts-r4-soctop{display:grid;grid-template-columns:150px minmax(0,1fr);gap:20px;align-items:center;margin-bottom:12px}
.hts-r4-gauge{width:150px;height:150px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:conic-gradient(var(--gc,#1f6b3a) calc(var(--p)*1%),#e1e6eb 0)}
.hts-r4-g-warn{--gc:#c98a00}.hts-r4-g-alert{--gc:#b3261e}
.hts-r4-gauge span{width:112px;height:112px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}
.hts-r4-gauge b{font:800 38px Georgia,serif;color:var(--s-navy);line-height:1}
.hts-r4-gauge small{font-size:12px;color:var(--s-muted)}
.hts-r4-soc h2{margin:6px 0 6px}
.hts-r4-bars{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:8px}
.hts-r4-bars li{display:grid;grid-template-columns:minmax(0,230px) minmax(0,1fr) 44px;gap:10px;align-items:center;font-size:14px}
.hts-r4-bar{height:10px;border-radius:6px;background:#e9edf1;overflow:hidden;display:block}
.hts-r4-bar i{display:block;height:100%;background:var(--s-orange)}
.hts-r4-fixes{list-style:none;padding:0;margin:0 0 12px;display:grid;gap:10px}
.hts-r4-fix{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;padding:14px;border:1px solid var(--s-line);border-top:5px solid var(--s-orange);border-radius:12px;background:#fff}
.hts-r4-fix p{margin:4px 0}
.hts-r4-fixn{width:30px;height:30px;border-radius:50%;background:var(--s-navy);color:#fff;font:800 14px/30px "Segoe UI",sans-serif;text-align:center}
.hts-r4-report{background:#fff;border:1px solid #cfd6dd;box-shadow:0 6px 20px rgba(11,31,51,.12);padding:20px 24px;color:#111;margin:10px 0 14px}
.hts-r4-report h2{font-size:22px;border-bottom:3px solid var(--s-orange);padding-bottom:6px;margin:0 0 10px}
.hts-r4-report h3{font-size:16px;margin:12px 0 4px}
.hts-r4-report p,.hts-r4-report li{font-size:14px;margin:0 0 4px}
.hts-r4-report ul,.hts-r4-report ol{margin:0 0 6px;padding-left:20px}
.hts-r4-recs{list-style:none;padding-left:0!important}
.hts-r4-sigs{display:flex;flex-wrap:wrap;gap:20px;margin:16px 0 8px;font-size:13px}
.hts-r4-statement{font-size:11.5px!important;color:#444}
.hts-r4-repscore{font-weight:700;font-size:15px!important}

@media(max-width:860px){
  .hts-r4-loadgrid{grid-template-columns:1fr}
  .hts-r4-loadres{position:static;max-height:none;overflow:visible}
  .hts-r4-row{grid-template-columns:1fr}
  .hts-r4-nums{padding-left:30px}
  .hts-r4-letterfields,.hts-r4-row3,.hts-r4-extra{grid-template-columns:1fr}
  .hts-r4-pdfs{grid-template-columns:1fr}
  .hts-r4-pdf{grid-template-columns:110px minmax(0,1fr)}
  .hts-r4-soctop{grid-template-columns:1fr;justify-items:center;text-align:center}
  .hts-r4-bars li{grid-template-columns:1fr 44px}
  .hts-r4-bars li .hts-r4-bar{grid-column:1 / -1;grid-row:2}
  .hts-r4-yn span{min-width:84px}
  .hts-r4 #hts-lpg-code{max-width:none}
}

/* appliance load checker 1.0.200: every appliance has its own place */
.hts-r4-places{display:grid}
.hts-r4-prow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:6px 14px;align-items:start;padding:10px 0;border-bottom:1px solid var(--s-line)}
.hts-r4-pname b{display:block;font-size:15px;color:var(--s-navy)}
.hts-r4-pmeta{display:block;font-size:12.5px;color:var(--s-muted)}
.hts-r4-pctl{display:grid;gap:8px}
.hts-r4-phint{grid-column:1/-1;margin:0}
.hts-r4-fld label{display:block;font-weight:700;font-size:14px;margin:0 0 4px;color:var(--s-navy)}
.hts-r4-fld[hidden],.hts-r4-panel[hidden],.hts-r4-panels[hidden],.hts-r4-assumed[hidden]{display:none}
.hts-r4-panels{display:grid;gap:10px;margin:12px 0}
.hts-r4-panel{border:1px solid var(--s-line);border-radius:10px;padding:10px 12px;background:var(--s-light)}
.hts-r4-panel h4{margin:0 0 6px;font-size:15px;color:var(--s-navy)}
.hts-r4-panel .hts-r4-extra{margin:6px 0}
.hts-r4-extra-one{grid-template-columns:1fr}
.hts-r4-opt{border:1px solid var(--s-line);border-radius:12px;background:#fff;margin:0 0 12px}
.hts-r4-opt>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;padding:12px 14px;border-radius:12px}
.hts-r4-opt>summary::-webkit-details-marker{display:none}
.hts-r4-opt>summary::after{content:"";flex:0 0 9px;width:9px;height:9px;margin:0 4px 3px auto;border-right:2px solid var(--s-navy);border-bottom:2px solid var(--s-navy);transform:rotate(45deg)}
.hts-r4-opt[open]>summary::after{transform:rotate(-135deg);margin-bottom:0;margin-top:5px}
.hts-r4-opt>summary:focus-visible{outline:3px solid var(--s-navy);outline-offset:2px}
.hts-r4-optt{display:block;flex:1 1 auto;min-width:0}
.hts-r4-optt b{display:block;font-size:16px;color:var(--s-navy)}
.hts-r4-optt small{display:block;font-size:12.5px;color:var(--s-muted)}
.hts-r4-optbody{padding:0 14px 14px}
.hts-r4-assign{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0}
.hts-r4-assign:empty{display:none}
.hts-r4-place h4{margin:0 0 2px;font-size:17px}
.hts-r4-kind{font-size:13px;color:var(--s-muted);margin:0 0 6px!important}
.hts-r4-pnum{font-size:14px;font-weight:600;margin:6px 0 4px!important}
.hts-r4-assumed{background:#fff;border:1px dashed #9a6200;border-radius:8px;padding:8px 10px;font-size:13.5px}
.hts-r4-sums{margin:6px 0 0}
.hts-r4-sums>summary{cursor:pointer;color:var(--s-link);font-weight:600;font-size:14px}
.hts-r4-sums>summary:focus-visible{outline:3px solid var(--s-navy);outline-offset:2px}
@media(max-width:860px){
  .hts-r4-prow,.hts-r4-assign{grid-template-columns:1fr}
}

/* appliance load checker 1.0.202: MCB count first, MCB number and "plugged into" on every row, any number of other appliances (approved by the owner, 20 Oct 2026; applies to this tool only) */
.hts-r4-load .hts-r4-rowsel{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr);gap:8px 12px;padding:2px 0 6px 30px}
.hts-r4-load .hts-r4-rowsel[hidden],.hts-r4-load .hts-r4-rnote[hidden]{display:none}
.hts-r4-load .hts-r4-rowsel .hts-r4-phint{grid-column:1/-1;margin:0}
.hts-r4-load .hts-r4-rnote{grid-column:1/-1;margin:0 0 0 30px}
.hts-r4-mcbrates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px;margin:10px 0}
.hts-r4-load .hts-r4-grp>.hts-st-small{margin:0 0 8px}
.hts-r4-crow{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px 10px;align-items:end;padding:10px 0;border-bottom:1px solid var(--s-line)}
.hts-r4-crow .hts-r4-rowsel{grid-column:1/-1;padding-left:0}
.hts-r4-crow .hts-r4-rnote{margin-left:0}
.hts-r4-rm{min-height:44px}
.hts-r4-addrow{margin:12px 0 0}
.hts-r4-panelbtns{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.hts-r4-panelbtns .hts-st-btn[hidden]{display:none}
.hts-r4-panelbtns:empty{display:none}
@media(max-width:860px){
  .hts-r4-load .hts-r4-rowsel{grid-template-columns:1fr}
  .hts-r4-crow{grid-template-columns:1fr}
  .hts-r4-crow .hts-r4-nums{padding-left:0}
  .hts-r4-crow .hts-r4-rm{justify-self:start}
  .hts-r4-mcbrates{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
  .hts-r4-mcbrates{grid-template-columns:1fr}
}

/* print: the society report prints alone on one A4 page */
@media print{
  .hts-st-housing-society-fire-safety-score .hts-st-body *{visibility:hidden}
  .hts-st-housing-society-fire-safety-score #hts-soc-report,.hts-st-housing-society-fire-safety-score #hts-soc-report *{visibility:visible}
  .hts-st-housing-society-fire-safety-score #hts-soc-report{position:absolute;left:0;top:0;width:100%;box-shadow:none;border:0;padding:0}
  .hts-st-housing-society-fire-safety-score .hts-st-body{display:block}
  .hts-print-hide{display:none!important} /* 1.0.204: society report only; set by safety-tools-r4.js on beforeprint */
  .hts-st-school-building-safety-checklist .hts-st-card:not(.hts-r4-letter){display:none!important}
  .hts-r4-letterfields,.hts-r4-letter .hts-st-actions,.hts-r4-letter>p{display:none!important}
  @page{size:A4;margin:12mm}
}
.hts-r4-smalltable tfoot th{background:var(--s-light);color:var(--s-navy)}

/* 1.0.207 Batch C: A3-SC1 and A3-SC4, school checklist (result bar, where-to-answer tags, show-only buttons). Same palette; nothing outside this tool. */
.hts-r4-q[hidden],.hts-r4-qgroup[hidden],.hts-r4-tagbar[hidden],.hts-r4-stickybar[hidden]{display:none}
.hts-r4-tag{display:inline-block;padding:1px 8px;border-radius:99px;border:1px solid #b9c2cb;background:var(--s-light);color:var(--s-navy);font:700 11px "Segoe UI",sans-serif;letter-spacing:.02em;white-space:nowrap}
.hts-r4-tagbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 6px}
.hts-r4-tagbar-l{font-weight:700;font-size:14px;color:var(--s-navy)}
.hts-r4-fchip{border:1px solid var(--s-line);background:var(--s-light);color:var(--s-navy);border-radius:999px;padding:6px 14px;min-height:44px;font:700 14px "Segoe UI",system-ui,sans-serif;cursor:pointer}
.hts-r4-fchip:hover{border-color:var(--s-orange)}
.hts-r4-fchip.is-on{background:var(--s-navy);color:#fff;border-color:var(--s-navy)}
.hts-r4-taghelp{margin:0 0 14px}
.hts-r4-stickybar{position:sticky;bottom:0;z-index:15;display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--s-line);border-top:3px solid var(--s-orange);border-radius:12px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -4px 14px rgba(11,31,51,.12);margin:12px 0 0}
.hts-r4-barcount{font-weight:700;color:var(--s-navy);font-size:15px}
@media(max-width:480px){.hts-r4-stickybar .hts-st-btn{flex:1 1 100%}}

/* 1.0.207 Batch C: A3-SO5 and A3-SO8, society score fourth answer. A long label, so it wraps and keeps the 44 px height. */
.hts-r4-yn-nr span{text-align:left;justify-content:flex-start;max-width:100%}
.hts-r4-q[hidden]{display:none}

/* 1.0.207 Batch C: A3-L2b (drawing), A3-L6 (lead action and More), A3-L10 (at delivery). LPG tool only. */
.hts-r4-lead{font-size:17px;line-height:1.45;margin:0 0 10px}
.hts-r4-more{margin:6px 0 0}
.hts-r4-more>summary{cursor:pointer;color:var(--s-link);font-weight:700;font-size:15px;min-height:44px;display:flex;align-items:center}
.hts-r4-more>summary:focus-visible{outline:3px solid var(--s-navy);outline-offset:2px}
.hts-r4-more[open]>summary{margin-bottom:4px}
.hts-r4-lpgfig{margin:0}
.hts-r4-lpgfig>summary{min-height:44px;display:flex;align-items:center}
.hts-r4-lpgfig figure{margin:6px 0 4px}
.hts-r4-lpgsvg{display:block;width:100%;max-width:420px;height:auto;background:var(--s-light);border:1px solid var(--s-line);border-radius:12px}
.hts-r4-lpgfig figcaption{margin-top:6px}
.hts-r4-delivery ol{margin:0 0 10px;padding-left:22px}
.hts-r4-delivery li{margin-bottom:8px}

/* 1.0.207 Batch C: A3-AP5, running-total bar for the appliance checker. Phones and small tablets only (the answer sits beside the list on wide screens). */
@media(min-width:861px){.hts-r4-totalbar{display:none!important}}
.hts-r4-totalbar{margin-top:10px}
@media(max-width:480px){.hts-r4-totalbar .hts-st-btn{flex:0 0 auto;min-height:44px;padding:8px 16px}.hts-r4-totalbar .hts-r4-barcount{font-size:14px}}

/* 1.0.207 Batch C: A3-HB3 (card line on the hub entry), A3-HB5 (five tools in Start here) */
.hts-hb-line{display:block;font-size:12.5px;font-weight:700;color:var(--s-navy);margin-top:3px}
@media(min-width:861px){.hts-hb-startrow{grid-template-columns:repeat(5,minmax(0,1fr))}.hts-hb-startname{font-size:13.5px}}
@media(max-width:860px){.hts-hb-startrow li:last-child:nth-child(odd){grid-column:1/-1}}

/* 1.0.207 Batch C: A2-CAL09 (merged A3-L8, A3-HB6) example chips 44 px high, summary lines 24 px minimum */
.hts-r4-chip{min-height:44px}
:where(.hts-st-page) summary{min-height:24px;box-sizing:border-box}
