:root{--teal:#2f7f78;--ink:#1c1f21;--mute:#6b7075;--line:#e6e8ea;--bg:#fafafa;--card:#fff;--bad:#b3261e}
a{color:var(--teal)}
*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 -apple-system,"Segoe UI",Inter,Helvetica,Arial,sans-serif}
.top{display:flex;align-items:center;gap:24px;padding:14px 24px;background:var(--card);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:2;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:12px}.brand img{border-radius:50%}
h1{font-size:17px;margin:0;font-weight:600;letter-spacing:-.01em}.sub{font-size:12px;color:var(--mute)}
.tabs{display:flex;gap:4px;margin-left:auto}.tabs button{background:none;border:0;padding:8px 14px;border-radius:8px;font:inherit;color:var(--mute);cursor:pointer}
.tabs button.on{background:#eef4f3;color:var(--teal);font-weight:600}
.who{display:flex;align-items:center;gap:12px;color:var(--mute);font-size:13px}
.link{background:none;border:0;color:var(--teal);font:inherit;cursor:pointer;padding:4px}
main{max-width:1100px;margin:0 auto;padding:24px 16px}
.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:22px}
.narrow{max-width:380px;margin:48px auto}h2{font-size:15px;margin:0 0 10px;font-weight:600}
.form{display:flex;flex-direction:column;gap:12px}.form label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--mute)}
input,select{font:inherit;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);min-width:0}
input:focus,select:focus{outline:2px solid #bfe0dc;border-color:var(--teal)}
button,.btn{font:inherit;padding:10px 16px;border-radius:10px;border:0;background:var(--teal);color:#fff;cursor:pointer;text-decoration:none;display:inline-block}
button:disabled{opacity:.5}.secondary{background:#eef0f1;color:var(--ink)}
.muted{color:var(--mute)}.small{font-size:13px}.err{color:var(--bad);font-size:13px;min-height:1em;margin:0}
.status{font-size:13px;color:var(--mute);padding:6px 2px 12px}.status.warn{color:#8a5a00}
.bad{color:var(--bad);font-weight:700}
/* Chat (card t_f6e61ba6): a framed, centred panel. The thread scrolls inside it; the composer is anchored to its foot. */
body.in-chat{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
/* card t_2c11fbcb: the chat (and only the chat) is twice as wide, 1520px cap, viewport-fit below that */
body.in-chat main{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;width:100%;max-width:1560px;padding:16px 20px}
#view-chat{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.panel{position:relative;display:flex;flex-direction:column;width:100%;max-width:1520px;margin:0 auto;flex:1 1 auto;min-height:0;background:var(--card);border:1px solid #d9dcdf;border-radius:16px;box-shadow:0 8px 30px rgba(0,0,0,.06);overflow:hidden}
.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid var(--line);background:#f7f9f9;flex:0 0 auto}
.panel-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px}
.panel .status{padding:6px 18px;flex:0 0 auto}
.scroller{flex:1 1 auto;overflow-y:auto;padding:16px 24px;background:var(--bg);overscroll-behavior:contain}
.subject{font-size:13px;color:var(--teal);background:#eef4f3;padding:4px 10px;border-radius:999px}
.thread{display:flex;flex-direction:column;gap:12px;padding-bottom:4px}
.msg{max-width:72ch;padding:11px 15px;border-radius:16px;white-space:pre-wrap;line-height:1.5}
.msg.bot.wide{max-width:100%}   /* a product reply spreads over the wider panel; prose stays at a readable measure */
.msg .prose{max-width:72ch}
.msg.me{align-self:flex-end;background:#e6f1ef}.msg.bot{align-self:flex-start;background:var(--card);border:1px solid var(--line)}
.msg .tag{display:block;font-size:12px;color:var(--mute);margin-bottom:6px}
.msg.wait{padding:14px 18px}.dots{display:inline-flex;gap:5px}.dots i{width:7px;height:7px;border-radius:50%;background:#b8bec2;animation:blink 1.2s infinite}
.dots i:nth-child(2){animation-delay:.2s}.dots i:nth-child(3){animation-delay:.4s}@keyframes blink{0%,80%,100%{opacity:.3}40%{opacity:1}}
@media (prefers-reduced-motion:reduce){.dots i{animation:none;opacity:.6}}
.facts{margin:10px 0 0;font-size:13px;white-space:normal}.facts summary{cursor:pointer;color:var(--teal);font-weight:500;list-style:none;display:inline-block;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:#fff}
.facts summary::-webkit-details-marker{display:none}.facts[open] summary{margin-bottom:8px}
.facts ul{margin:0;padding:0;list-style:none}.facts li{padding:4px 0;border-top:1px solid var(--line)}
.facts h3{font-size:13px;font-weight:600;color:var(--mute);margin:12px 0 4px;text-transform:uppercase;letter-spacing:.04em}
.pcard .facts ul{columns:2;column-gap:32px}.pcard .facts li{break-inside:avoid}
@media (max-width:900px){.pcard .facts ul{columns:1}}
.facts b{color:var(--teal);font-weight:500}.caveat{font-size:13px;color:#8a5a00;margin-top:8px}
.alerts{font-size:13px;margin-top:8px;white-space:normal}.alerts div{padding:2px 0}
.options{display:flex;flex-direction:column;gap:8px;margin-top:10px;white-space:normal}
.opt{text-align:left;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:10px 14px;display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.opt:hover{border-color:var(--teal);background:#f6faf9}.opt b{color:var(--teal);font-weight:600}.opt span{margin-left:auto;font-size:12px;color:var(--mute)}
.opt.chosen{border-color:var(--teal);background:#e6f1ef;opacity:1}
.composer{flex:0 0 auto;background:var(--card);border-top:1px solid var(--line);padding:10px 14px calc(10px + env(safe-area-inset-bottom))}
.ask{display:flex;gap:8px}.ask input{flex:1;border-radius:999px;padding:12px 18px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.ask button{border-radius:999px;padding:10px 20px}
.jump{position:absolute;left:50%;transform:translateX(-50%);bottom:76px;z-index:3;background:var(--ink);color:#fff;font-size:13px;padding:8px 14px;border-radius:999px;box-shadow:0 4px 14px rgba(0,0,0,.18)}
.suggest{display:block;margin-top:8px;font-size:12px;color:var(--mute);background:none;border:1px solid var(--line);border-radius:999px;padding:4px 10px;white-space:normal}
.suggest:hover{color:var(--teal);border-color:var(--teal)}.suggest-form{margin-top:8px;display:flex;flex-direction:column;gap:6px;white-space:normal}
.suggest-form textarea{font:inherit;font-size:14px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;min-height:64px;resize:vertical}
.sent{font-size:12px;color:var(--teal);margin-top:6px;white-space:normal}
.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:12px;flex-wrap:wrap}.toolbar input{flex:1;min-width:180px}
.tablewrap{overflow:auto;background:var(--card);border:1px solid var(--line);border-radius:14px;max-height:70vh}
table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;padding:9px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
th{position:sticky;top:0;background:#f4f6f6;color:var(--mute);font-weight:600}tbody tr{cursor:pointer}tbody tr:hover{background:#f6faf9}
.grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.kv{display:grid;grid-template-columns:max-content 1fr;gap:6px 14px;margin:0;font-size:13px}.kv dt{color:var(--mute)}.kv dd{margin:0;white-space:pre-wrap;word-break:break-word}
.row{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.report{margin-top:12px;font-size:13px;background:#f6f8f8;border-radius:10px;padding:12px}.report.bad{background:#fdf0ef}
.plain{list-style:none;padding:0;margin:0 0 12px;font-size:13px}.inline{flex-direction:row;flex-wrap:wrap}.inline input{flex:1;min-width:120px}
dialog{border:0;border-radius:14px;padding:22px;max-width:min(720px,94vw);width:100%;max-height:85vh;overflow:auto}
dialog::backdrop{background:rgba(0,0,0,.3)}.dhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
@media (max-width:640px){.top{padding:12px 14px;gap:10px}.tabs{margin-left:0;width:100%;order:3}.tabs button{padding:8px 10px;font-size:14px}.who{margin-left:auto}main{padding:14px 10px}.msg{max-width:92%}.kv{grid-template-columns:1fr}
  body.in-chat main{padding:8px 6px 8px}.panel{border-radius:14px}.scroller{padding:12px}
  .composer{padding:8px 10px calc(8px + env(safe-area-inset-bottom))}.ask input{font-size:16px}}
/* Admin: assistant files and notifications (card t_f6e61ba6) */
.assets{list-style:none;padding:0;margin:0 0 8px;font-size:13px}.assets li{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;padding:8px 0;border-top:1px solid var(--line)}
.assets li:first-child{border-top:0}.assets .path{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;color:var(--mute)}.assets .purpose{flex-basis:100%;color:var(--mute)}
.assets .link{padding:0 4px}.editor{margin-top:10px}.editor textarea{width:100%;font:13px/1.5 ui-monospace,Menlo,Consolas,monospace;padding:10px;border:1px solid var(--line);border-radius:10px;min-height:220px;resize:vertical}
.editor pre{white-space:pre-wrap;word-break:break-word;font:13px/1.5 ui-monospace,Menlo,Consolas,monospace;background:#f6f8f8;border-radius:10px;padding:10px;max-height:320px;overflow:auto;margin:0}
.hist{list-style:none;padding:0;margin:8px 0 0;font-size:12px;color:var(--mute)}.hist li{padding:3px 0}
.notice{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:10px;font-size:13px}.notice blockquote{margin:6px 0;padding:8px 12px;background:#f6f8f8;border-radius:8px;white-space:pre-wrap}
.notice .meta{color:var(--mute);font-size:12px}.badge{display:inline-block;min-width:18px;padding:0 6px;border-radius:999px;background:var(--bad);color:#fff;font-size:11px;text-align:center;margin-left:6px}
/* Product card, diagnosis and data room (card t_27d22dc1) */
.pcard{white-space:normal;margin-bottom:10px}.pcard-head{font-size:15px;margin-bottom:6px}.pcard-head b{color:var(--teal)}
/* card t_2c11fbcb: the real product photograph, natural aspect, contained, never cropped or stretched */
.photo{display:block;width:auto;height:auto;max-width:min(100%,560px);max-height:360px;border-radius:12px;background:#f4f6f6;margin:0 0 10px}
.no-photo{font-size:12px;color:var(--mute);margin:0 0 8px}
/* card t_2c11fbcb: admin read-only conversation review */
.notice .row{align-items:center}.notice .row .link{margin-left:auto}
#review{max-width:min(880px,94vw)}.review-meta{font-size:13px;color:var(--mute);margin-bottom:12px}
.review-note{font-size:13px;color:#8a5a00;background:#fdf6e7;padding:8px 12px;border-radius:8px;margin-bottom:12px}
.rthread{display:flex;flex-direction:column;gap:8px}.rmsg{max-width:80%;padding:9px 13px;border-radius:14px;white-space:pre-wrap;font-size:14px;line-height:1.45;border:1px solid var(--line);background:var(--card)}
.rmsg.me,.rmsg.button{align-self:flex-end;background:#e6f1ef;border-color:#e6f1ef}.rmsg.button{font-style:italic}
.rmsg.suggestion{align-self:flex-end;background:#fdf6e7;border-color:#f0dcae}
.rmsg.source{outline:2px solid var(--teal);outline-offset:1px}
.rmsg .rmeta{display:block;font-size:11px;color:var(--mute);margin-bottom:3px;font-style:normal}
.rmsg .rextra{display:block;font-size:12px;color:var(--mute);margin-top:4px}
.rdiv{align-self:center;font-size:12px;color:var(--teal);background:#eef4f3;padding:2px 10px;border-radius:999px}
.manual{font-size:13px;margin:4px 0;white-space:normal}.manual a{color:var(--teal);font-weight:500}
.qtext{margin-top:10px;font-weight:500;white-space:normal}
.chart{font-size:12px;color:var(--mute);background:#f4f6f6;padding:4px 10px;border-radius:999px;display:inline-block;white-space:normal;margin-bottom:6px}
.chart.general{color:#8a5a00;background:#fdf6e7}
.outcome{white-space:normal;margin-top:8px;display:flex;flex-direction:column;gap:6px}.otitle{font-size:16px;font-weight:600;color:var(--teal)}
.outcome ul{margin:2px 0 0;padding-left:18px}.opt.yes{border-color:var(--teal);color:var(--teal);font-weight:600}
.docs-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px;flex-wrap:wrap}.docs-head h2{margin-bottom:2px}
#docs-add{margin-bottom:16px}.drop{border:1.5px dashed var(--line);border-radius:12px;padding:18px;text-align:center;font-size:13px;color:var(--mute);margin-bottom:12px;background:#fff}
.drop.over{border-color:var(--teal);background:#f6faf9}.drop .link{padding:0}
#docs-table td{white-space:normal;vertical-align:top}#docs-table td a{color:var(--teal);font-weight:500}
.pill{font-size:12px;padding:2px 8px;border-radius:999px;background:#eef0f1}.pill.active{background:#e6f1ef;color:var(--teal)}.pill.pending{background:#fdf6e7;color:#8a5a00}.pill.removed{background:#f3f3f3;color:var(--mute)}
tr.removed td{color:var(--mute)}.small-btn{padding:6px 10px;font-size:13px;border-radius:8px}.acts{white-space:nowrap}
@media (max-width:640px){#docs-table th:nth-child(5),#docs-table td:nth-child(5),#docs-table th:nth-child(6),#docs-table td:nth-child(6){display:none}}

.empty { color: var(--mute); padding: 28px 0; text-align: center; font-size: 15px; }
.btn.disabled { pointer-events: none; opacity: .45; }
.slots{display:grid;gap:10px;margin-bottom:18px}.slot-h{font-size:14px;font-weight:600;color:var(--mute);margin:18px 0 8px;text-transform:uppercase;letter-spacing:.04em}
.slot{display:grid;grid-template-columns:200px 1fr auto;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px}
.slot.matrix{margin-bottom:6px;border-color:var(--teal)}.slot.empty-slot{background:#fafafa}.slot-name{font-weight:600}.slot-body{font-size:14px;overflow-wrap:anywhere}.slot-body a{color:var(--teal);font-weight:500}
.slot .prev{grid-column:1/-1}.slot .prev ul{margin:6px 0 0 16px}.dl{display:flex;gap:14px;flex-wrap:wrap}
@media (max-width:640px){.slot{grid-template-columns:1fr;gap:6px}.slot-acts{justify-self:start}}
/* card t_04ed4af2: one Data administration destination. The Data room block sits first; the matrix is a full card in
   the admin's version (status, download, restore, upload/check/activate/discard) where staff see a summary row. */
.matrix-admin{border-color:var(--teal);padding:16px 18px;margin-bottom:6px}.matrix-admin h3{margin:0 0 10px;font-size:15px}
.matrix-admin .kv{margin-bottom:4px}.matrix-admin .row{margin-top:10px}.matrix-admin .replace{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.matrix-admin .replace details{margin-top:10px}.matrix-admin .replace summary{cursor:pointer}.matrix-admin .replace details p{margin:8px 0 0}
.matrix-admin .empty{padding:12px 0;text-align:left}
#matrix-upload-row{margin-top:0;align-items:center}#matrix-upload-row input[type=file]{flex:1;min-width:0;max-width:100%}
.admin-section{margin-bottom:26px}#view-admin .docs-head h2{font-size:17px}
#view-admin>.slot-h{margin-top:0}
@media (max-width:640px){.matrix-admin .row{flex-direction:column;align-items:stretch}.matrix-admin .btn,.matrix-admin .row>button{text-align:center}}
.parts{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;margin:0 0 12px}
.part{margin:0}.part-img{display:block;width:100%;height:110px;object-fit:contain;border-radius:10px;background:#f4f6f6}
.part figcaption{font-size:11px;color:var(--mute);margin-top:4px;line-height:1.25}
.flow-help{margin:0 0 8px}
button.danger{color:#b42318;border-color:#f0c4bf}

.add-doc{gap:8px;flex-wrap:wrap;align-items:center;margin:6px 0}.add-doc input[type=text],.add-doc #add-doc-name{flex:1 1 240px;min-width:0}
.doc-list li{padding:8px 0;border-bottom:1px solid var(--line,#e6eaea)}.doc-list li:last-child{border-bottom:0}
#proc-preview{white-space:pre-wrap;word-break:break-word;max-height:320px;overflow:auto}
/* 9 Oct 2026: product layout in collapsible groups, and the in-app document preview */
.record .ptop{margin:6px 0 8px}.record .ptop .kv dd{font-weight:600}
.pwarn{margin:6px 0 8px;font-size:13px}.pwarn .warn{color:#8a5a00}.pwarn ul{list-style:none;margin:0;padding:0}
.pgroup{border:1px solid var(--line);border-radius:10px;margin:6px 0;background:#fff}
.pgroup summary{cursor:pointer;padding:8px 12px;font-weight:600;font-size:13px}
.pgroup[open] summary{border-bottom:1px solid var(--line)}
.pgroup .kv,.pgroup ul{padding:8px 12px;margin:0}.pgroup ul{list-style:none}
.gbad{color:var(--bad);font-weight:600;font-size:12px;margin-left:6px}
.pcard .facts.record ul{columns:1}.facts.record li{border-top:0;padding:2px 0}.facts.record li.bad b{color:var(--bad)}
.caveat-inline{color:#8a5a00}
dialog.preview{max-width:min(1100px,96vw);width:96vw;height:90vh;max-height:90vh;padding:0;display:none;flex-direction:column;overflow:hidden}
dialog.preview[open]{display:flex}
.pv-head{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);background:var(--card)}
.pv-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.pv-acts{display:flex;gap:10px;align-items:center;flex:0 0 auto}
.pv-dlbtn{color:var(--teal);font-size:14px;padding:8px 10px}
.pv-close{background:var(--ink);color:#fff;border-radius:999px;padding:10px 18px;font-weight:600;min-height:44px;min-width:44px}
.pv-close:focus-visible{outline:3px solid #bfe0dc;outline-offset:2px}
#pv-note{margin:8px 16px 0}
#pv-body{flex:1 1 auto;min-height:0;display:flex;overflow:auto;background:#f1f2f3}
.pv-frame{flex:1 1 auto;width:100%;border:0;background:#fff}
.pv-img{max-width:100%;max-height:100%;object-fit:contain;margin:auto}
.pv-pages{display:flex;flex-direction:column;gap:10px;padding:10px;width:100%}
.pv-page{width:100%;height:auto;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.pv-open{padding:2px 4px;font-size:inherit}.pv-dl{padding:2px 4px}
@media (max-width:640px){
  dialog.preview{width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0;inset:0;border-radius:0}
  .pv-head{padding:8px 10px calc(8px) max(10px, env(safe-area-inset-left))}
}
/* 9 Oct 2026: troubleshooting session banner, controls and handover */
.ts-bar{margin-top:10px;padding:6px 10px;border-left:3px solid var(--teal);background:#eef4f3;border-radius:6px;font-size:13px;white-space:normal}
.ts-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;white-space:normal}
.ts-btn{padding:8px 14px;font-size:14px;border-radius:999px}
.ts-ended{margin:6px 0;white-space:normal;color:#8a5a00}
.handover{white-space:pre-wrap;font:13px/1.45 ui-monospace,Menlo,Consolas,monospace;background:#f6f7f8;border:1px solid var(--line);border-radius:8px;padding:10px;margin:8px 0;max-height:50vh;overflow:auto}
/* ---------------------------------------------------------------------------------------------------------------
   9 Oct 2026 interface refinement (Owen's brief): the product block shared by the chat card and the product window,
   Tico's messages, troubleshooting controls, warnings in plain words, and the administrator-only Diagnostics panel.
   Photograph sizes are unchanged (.photo, .part-img above). */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.msg.bot{white-space:normal}.msg.bot .prose,.msg.me{white-space:pre-wrap}
.prose{font-size:15.5px;line-height:1.6;color:var(--ink)}
.qtext{font-size:15.5px;font-weight:500;line-height:1.5;margin-top:4px}
/* Tico */
.panel-title{gap:12px}.tico-avatar{width:34px;height:34px;flex:0 0 auto}
.tico-name{display:flex;flex-direction:column;line-height:1.15}.tico-name strong{font-size:16px}.tico-name .small{font-size:12px}
.msg.bot{position:relative;margin-left:46px}
.msg.bot::before{content:"";position:absolute;left:-46px;top:2px;width:34px;height:34px}
.msg.bot.wide{max-width:min(100%,820px)}
/* the product block */
.pcard{margin:0}.prod{display:flex;flex-direction:column;gap:14px}
.prod-head{display:flex;flex-direction:column;gap:4px}
.prod-name{font-size:22px;line-height:1.25;font-weight:650;margin:0;letter-spacing:-.01em;color:var(--ink)}
.prod-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.prod-code{font-size:14px;color:var(--mute);letter-spacing:.03em;font-variant-numeric:tabular-nums}
.pill{font-size:12.5px;font-weight:600;padding:3px 10px;border-radius:999px;letter-spacing:.01em}
.pill.current{background:#e3f2ec;color:#1d6b4c}.pill.historic{background:#f1ece4;color:#6b5636}.pill.other{background:#eef0f1;color:#4a5055}
.photo-btn{display:block;padding:0;border:0;background:none;cursor:zoom-in;border-radius:12px;color:inherit;font:inherit}
.photo-btn:focus-visible{outline:3px solid #bfe0dc;outline-offset:2px}
.prod .photo{margin:0}.prod .parts{margin:0}.part .photo-btn{width:100%}
.part figcaption{font-size:12.5px;color:var(--ink);opacity:.75;margin-top:6px}
.prod-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.act{font:inherit;font-size:15px;font-weight:600;padding:11px 18px;border-radius:10px;cursor:pointer;line-height:1.2;min-height:44px}
.act.primary{background:var(--teal);color:#fff;border:1px solid var(--teal)}
.act.primary:hover{background:#286d67}
.act.ghost{background:#fff;color:var(--teal);border:1px solid #b9d6d2}
.act.ghost:hover{background:#f2f8f7}
.act:focus-visible{outline:3px solid #bfe0dc;outline-offset:2px}
.act-note{font-size:13.5px;color:var(--mute)}
.alertbox{list-style:none;margin:0;padding:12px 14px;border-radius:12px;background:#fff8ec;border:1px solid #f1dfba;color:#4d3a10;font-size:14.5px;line-height:1.5;display:flex;flex-direction:column;gap:6px}
.alertbox b{font-weight:650}.alertbox li.elec b{color:#a3361b}
.msg .alertbox{margin-top:10px}
/* specifications */
.prod-specs{display:flex;flex-direction:column;gap:8px}
.pgroup{border:1px solid var(--line);border-radius:12px;background:#fff;margin:0}
.pgroup>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:12px 14px;font-size:15px;font-weight:600;color:var(--ink);border:0;background:none;border-radius:12px}
.pgroup>summary::-webkit-details-marker{display:none}
.pgroup>summary::after{content:"";margin-left:auto;width:8px;height:8px;border-right:2px solid #8a9095;border-bottom:2px solid #8a9095;transform:rotate(45deg);transition:transform .15s}
.pgroup[open]>summary::after{transform:rotate(-135deg)}
.pgroup[open]>summary{border-bottom:1px solid var(--line);border-radius:12px 12px 0 0}
.pgroup>summary:focus-visible{outline:3px solid #bfe0dc;outline-offset:-2px}
.gbad{font-size:12.5px;font-weight:600;color:var(--bad);background:#fdecea;padding:2px 9px;border-radius:999px}
dl.specs{margin:0;padding:2px 14px 8px}
.spec{display:grid;grid-template-columns:minmax(150px,38%) 1fr;gap:14px;padding:9px 0;border-top:1px solid #f0f2f3}
.spec:first-child{border-top:0}
.spec dt{font-size:13.5px;color:var(--mute);line-height:1.45}
.spec dd{margin:0;font-size:15px;line-height:1.45;color:var(--ink);white-space:pre-wrap;word-break:break-word}
.spec.bad dd{color:var(--bad);font-weight:600}.spec.bad dt{color:var(--bad)}
/* troubleshooting */
.ts{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.ts-label{font-size:13px;color:var(--mute);display:flex;align-items:center;gap:6px}
.ts-label::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--teal)}
.ts-controls{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.ts-btn{font:inherit;font-size:14px;font-weight:600;padding:8px 14px;border-radius:999px;background:#fff;color:var(--teal);border:1px solid #b9d6d2;min-height:40px}
.ts-btn:hover{background:#f2f8f7}.ts-btn.quiet{border-color:transparent;color:var(--mute);font-weight:500}
.notice{font-size:13.5px;color:var(--mute);background:#f4f6f6;padding:7px 11px;border-radius:8px;margin-bottom:8px}
.handover-box{margin-top:10px}.handover-box summary{font-size:13.5px;color:var(--teal);cursor:pointer}
.ref{font-size:13px;color:var(--mute);margin-top:10px}
.chart{font-size:12.5px}
.suggest{border:0;background:none;padding:6px 0 0;margin-top:6px;font-size:12.5px;color:#8a9095}
.suggest:hover{color:var(--teal);text-decoration:underline}
/* administrator-only diagnostics */
.diag{margin-top:12px;font-size:12.5px;color:var(--mute);border-top:1px dashed var(--line);padding-top:8px}
.diag summary{cursor:pointer;color:#8a9095}
.diag dl{display:grid;grid-template-columns:max-content 1fr;gap:4px 12px;margin:8px 0 0}
.diag dd{margin:0;word-break:break-word}.diag ul{margin:0;padding-left:16px}
/* the product window */
dialog.product-dialog{max-width:min(860px,96vw);width:96vw;padding:0;max-height:92vh}
.product-dialog .dhead{position:sticky;top:0;z-index:1;justify-content:flex-end;padding:12px 16px;margin:0;background:linear-gradient(#fff 70%,rgba(255,255,255,0))}
.product-dialog #d-body{padding:0 26px 26px}
@media (max-width:640px){
  .msg.bot{margin-left:38px}.msg.bot::before{left:-38px;width:28px;height:28px}
  .prod-name{font-size:20px}
  .spec{grid-template-columns:1fr;gap:2px}
  .act{flex:1 1 auto;text-align:center}
  dialog.product-dialog{width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0;inset:0;border-radius:0}
  .product-dialog #d-body{padding:0 16px 24px}
}
/* phone: a compact header, so the chat keeps the height */
#new-chat{white-space:nowrap}
@media (hover:hover){.msg.bot .suggest{opacity:0;transition:opacity .15s}.msg.bot:hover .suggest,.msg.bot:focus-within .suggest,.thread .msg.bot:last-child .suggest{opacity:1}}
@media (max-width:640px){
  .top{flex-wrap:wrap;row-gap:6px}.brand h1{font-size:16px}.brand img{width:30px;height:30px}
  #who-name{display:none}.who{margin-left:auto}
  .tabs{order:3;width:100%}
  .tico-name .small{display:none}.panel-head{padding:10px 12px}.panel-title{gap:8px}
  .ts{gap:6px 8px}.ts-label{width:100%}
}
@media (hover:none){.thread .msg.bot:not(:last-child) .suggest{display:none}}
@media (max-width:640px){.ts-controls{gap:6px}.ts-btn{padding:7px 11px;font-size:13.5px;min-height:40px}}
/* phone: a product card uses the full width (no avatar column), so the photographs stay as large as before */
@media (max-width:640px){.msg.bot.wide{margin-left:0;max-width:100%;padding:12px}.msg.bot.wide::before{display:none}}
/* ---------------------------------------------------------------------------------------------------------------
   12 Oct 2026: wider chat, less scrolling, and Tico's approved artwork (web/tico.png, used exactly as supplied).
   The cobble fills 835 x 775 of the PNG's 1024 x 1024; drawing it at 120% around its own centre trims only the
   transparent margin (the cobble keeps 1% clear at each side), so the face is as large as the avatar allows. */
.tico-avatar,.msg.bot::before{background:url("tico.png") 50% 54%/120% no-repeat}
.tico-avatar{display:block;width:44px;height:44px;flex:0 0 auto}
.msg.bot{margin-left:50px;max-width:calc(100% - 50px)}
.msg.bot::before{left:-50px;top:0;width:40px;height:40px}
.msg .prose{max-width:96ch}
.msg{overflow-wrap:break-word;min-width:0}
/* less chrome around the thread */
.top{padding:10px 24px}
body.in-chat main{padding:10px 16px}
.panel-head{padding:6px 16px}
.scroller{padding:14px 18px}
.thread{gap:10px}
/* a product reply uses the whole chat width; the panel itself keeps its 1520px cap */
.msg.bot.wide{width:calc(100% - 50px);max-width:calc(100% - 50px);padding:16px 18px}
.pcard,#d-body{container-type:inline-size}
.prod{gap:12px}
.prod-media{display:flex;flex-direction:column;gap:10px;min-width:0}
.prod-info{display:flex;flex-direction:column;gap:12px;min-width:0}
.prod-info .alertbox{margin:0}
/* two columns where the card is wide enough: a substantial photo area beside the name, actions and details */
@container (min-width:720px){
  .prod.has-media{display:grid;grid-template-columns:minmax(300px,46%) minmax(0,1fr);grid-template-rows:auto 1fr;
    grid-template-areas:"media head" "media info";column-gap:28px;row-gap:12px;align-items:start}
  .prod.has-media>.prod-head{grid-area:head}.prod.has-media>.prod-media{grid-area:media}.prod.has-media>.prod-info{grid-area:info}
  .prod-media>.photo-btn{width:100%}
  .prod.has-media .photo{width:100%;height:auto;max-width:100%;max-height:460px;object-fit:contain}
  .prod-name{font-size:24px}
}
/* no nested scrolling inside the chat: a handover summary grows with the message */
.handover{max-height:none;overflow:visible}
/* the product window is wide enough for the two-column layout */
dialog.product-dialog{max-width:min(1180px,96vw)}
.product-dialog .dhead{padding:10px 14px}
.product-dialog #d-body{padding:0 22px 22px}
@media (max-width:640px){
  .tico-avatar{width:38px;height:38px}
  .msg.bot{margin-left:40px;max-width:calc(100% - 40px)}.msg.bot::before{left:-40px;width:32px;height:32px}
  .msg.bot.wide{margin-left:0;width:100%;max-width:100%;padding:12px}
  body.in-chat main{padding:8px 6px}.scroller{padding:12px}
  dialog.product-dialog{max-width:100vw}
  .product-dialog #d-body{padding:0 16px 24px}
}

/* 12 Oct 2026: guided troubleshooting and care guides. Short replies and an offered guide sit under Tico's line in the
   same pill style as the troubleshooting controls; a safety stop and a held-back reply are plain, unmissable boxes. */
.quick,.guide-offer{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.safety-stop{border:1px solid #f0c2bd;background:#fdf0ef;color:#7a1d16;border-radius:10px;padding:10px 12px;font-weight:600;white-space:pre-wrap}
.held{border:1px solid #f0d9a8;background:#fff8e8;color:#5c4300;border-radius:10px;padding:10px 12px;white-space:pre-wrap}
.care-card{grid-column:1/-1}
.care-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:12px}
.care-slot{border:1px solid var(--line);border-radius:12px;padding:12px 14px;min-width:0}
.care-slot .row{flex-wrap:wrap}.care-slot input[type=file]{max-width:100%}
.care-slot pre.report{white-space:pre-wrap;overflow-wrap:anywhere;max-height:none}
.care-map label{display:flex;flex-direction:column;gap:4px;margin-top:8px}
.care-map textarea,.care-map input{font:13px/1.45 ui-monospace,Menlo,Consolas,monospace;padding:8px 10px;border:1px solid var(--line);border-radius:8px;width:100%;box-sizing:border-box;resize:vertical}
.care-pending{border-left:3px solid var(--teal);padding-left:10px;margin:8px 0}
.codes{overflow-wrap:anywhere}
.care-add{border-top:1px solid var(--line);margin-top:12px;padding-top:10px}.care-add .row{flex-wrap:wrap}
.care-add input:not([type=file]){flex:1 1 220px;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:14px}
#instructions-card pre.report{white-space:pre-wrap;overflow-wrap:anywhere;max-height:60vh;overflow:auto}
.logins li{padding:3px 0;border-bottom:1px solid var(--line)}.logins li:last-child{border-bottom:0}.login-bad{color:var(--bad)}
/* 14 Oct 2026: the spare code under a component photo, paired with its name; nothing when none is linked */
.part figcaption{display:flex;flex-direction:column;gap:2px;opacity:1}
.part-name{overflow-wrap:anywhere;opacity:.75}
.part-code{font-size:12.5px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:.02em;overflow-wrap:anywhere}
.part-code-k{font-weight:400;opacity:.75;letter-spacing:0}
/* 15 Oct 2026: the light-photo section's spare list (every confirmed light spare, with its recorded description) */
.light-unmatched{grid-column:1/-1;border-left:3px solid var(--mute);padding:6px 0 6px 10px;margin:0}
.light-note{margin:0 0 6px;font-size:13px;line-height:1.4;font-weight:600;color:var(--ink)}
.light-list{list-style:none;margin:2px 0 0;padding:0;display:grid;gap:6px}
.light-list li{display:flex;flex-direction:column;gap:1px;min-width:0}
.light-desc{font-size:12.5px;line-height:1.35;color:var(--ink);overflow-wrap:anywhere}
.screen-review{margin-top:8px;color:var(--ink);font-weight:400}.screen-review>b:first-child{color:var(--bad)}.screen-hits li{margin:6px 0}.screen-hits label{display:block}
/* ---------------------------------------------------------------------------------------------------------------
   16 Oct 2026 (Owen's brief): the cleaned product view. The main photograph stays large; each component is one
   section (photographs, its spare once, its details); the details below hold only what is not shown above. */
.prod-comps{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin-top:12px}
.comp{border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--card);min-width:0}
.comp-h{margin:0 0 8px;font-size:14px;display:flex;align-items:center;gap:8px}
.comp-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;margin:0 0 8px}
.comp-ph{margin:0;min-width:0}.comp-ph .photo-btn{width:100%}
.comp-ph .part-img{height:96px}
.comp-ph figcaption{font-size:12px;color:var(--mute);margin-top:3px;line-height:1.3;overflow-wrap:anywhere}
.spares{display:grid;gap:6px;margin:0 0 6px}
.spare{display:grid;grid-template-columns:auto 1fr;column-gap:10px;row-gap:1px;align-items:baseline;font-size:13px;min-width:0}
.spare-code{font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.spare-desc{min-width:0;overflow-wrap:anywhere}
.spare-pos{grid-column:2;font-size:12px;color:var(--mute)}
.comp .light-note{font-weight:600;font-size:12.5px;margin:0 0 2px}
.comp-specs{font-size:13px}.comp-specs summary{cursor:pointer;color:var(--mute);font-size:12.5px}
.comp-specs .specs{margin-top:6px}
.prod-more{display:flex;flex-direction:column;gap:10px;margin-top:12px;min-width:0}
.pgroup.warehouse>summary span{color:var(--bad);font-weight:700}
.msg-acts{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px}
.msg-acts:empty{display:none}
.pallet-btn{border:0;background:none;padding:6px 0 0;margin-top:6px;font-size:12.5px;color:var(--teal);font-weight:600;cursor:pointer}
.pallet-wait{font-size:12.5px}
.pallet-form{margin-top:8px;display:grid;gap:6px;max-width:360px}
.pallet-form input{width:140px}
.other-product .prod-actions:empty{display:none}
@container (min-width:720px){
  .prod.has-media{grid-template-areas:"media head" "media info" "comps comps" "more more"}
  .prod.has-media>.prod-comps{grid-area:comps}.prod.has-media>.prod-more{grid-area:more}
}
/* Notifications: an administrator's own tab */
.notify-grid{grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr))}
.pallet-qty{font-size:18px;font-weight:700;margin:2px 0}
.pallet-item.failed{border-left:3px solid var(--bad)}
#tabs .badge{margin-left:6px}
/* Tico's approved artwork, exactly as supplied: a softly framed avatar, and a welcome on an empty chat */
.tico-avatar{border-radius:50%;background-color:#eef5f4;box-shadow:0 0 0 2px #fff,0 0 0 3px #d5e6e3}
.welcome{display:flex;align-items:center;gap:18px;max-width:560px;margin:8vh auto 0;padding:0 8px}
.welcome[hidden]{display:none}
.welcome img{width:128px;height:128px;object-fit:contain;flex:0 0 auto}
.welcome div{display:flex;flex-direction:column;gap:4px}.welcome strong{font-size:20px}
@media (max-width:640px){
  .prod-comps{grid-template-columns:1fr}
  .welcome{flex-direction:column;text-align:center;margin-top:4vh}.welcome img{width:104px;height:104px}
}
/* four administrator tabs on a phone: the tab bar scrolls sideways inside itself, never the page */
@media (max-width:640px){.tabs{overflow-x:auto;scrollbar-width:none;min-width:0;max-width:100%}.tabs button{flex:0 0 auto;padding:8px 9px}.tabs::-webkit-scrollbar{display:none}}
/* 21 Oct 2026: closeable sections, download buttons and the app's safety steps inside Tico's messages */
.sections{margin-top:10px}.sec-btns{display:flex;flex-wrap:wrap;gap:8px}
.sec-btns button[aria-expanded="true"]{background:#eef3f1;border-color:#b9cfc6}
.inline-sec{margin-top:10px;border:1px solid #dfe5e2;border-radius:12px;padding:10px 12px;background:#fbfcfb;min-width:0;overflow-wrap:anywhere}
.inline-sec .sec-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}
.inline-sec .prod{margin:0}
.downloads{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.downloads .dl{text-decoration:none}
.qtext.safety-step{border-left:4px solid #c9502f;padding-left:10px}
.safety-warn{margin-bottom:8px}
.opt.quiet{color:var(--muted, #5b6560);border-style:dashed}
/* 22 Oct 2026: a newer product catalogue is active on the server (a data refresh, not a software update) */
.catalogue-bar{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 14px;padding:8px 16px;background:#eef6f5;border-bottom:1px solid #b9d6d2;font-size:14px}
.catalogue-bar[hidden]{display:none}
.catalogue-bar .act{min-height:36px;padding:7px 14px;font-size:14px}
/* 22 Oct 2026: a product manual's own terms for a maintenance step or guide; manual review */
.terms{margin:6px 0;padding:6px 10px;border-left:3px solid var(--teal);background:#f4f8f7}
.mr-topic{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:10px 0}
.mr-topic h4{margin:0 0 6px;font-size:14px}.mr-topic textarea{width:100%;min-height:64px}
.mr-cand{display:block;width:100%;text-align:left;font:inherit;font-size:13px;background:#fafafa;border:1px solid var(--line);border-radius:8px;padding:6px 8px;margin:4px 0;cursor:pointer}
.mr-flag{color:#8a5a00}.topics .check{display:block;margin:4px 0}

/* ---------------------------------------------------------------------------------------------------------------
   22 Oct 2026: product view tidy-up. One accent, the Altico logo's own green (measured from web/logo.jpg: #208371,
   4.6:1 on white), used for primary actions, section accents and open or selected states only. */
:root{--teal:#208371;--brand-dark:#1a6b5c;--brand-tint:#e9f4f1;--brand-line:#b6d9cf;--brand-focus:#bfe2d8}
.act.primary:hover{background:var(--brand-dark);border-color:var(--brand-dark)}
.act.ghost{border-color:var(--brand-line)}.act.ghost:hover{background:var(--brand-tint)}
.tabs button.on{background:var(--brand-tint)}
.act:focus-visible,.photo-btn:focus-visible,.pgroup>summary:focus-visible{outline-color:var(--brand-focus)}
.manual-note{max-width:34em}
/* the product window: Close sits in the corner instead of taking a row of its own above the product */
.product-dialog .dhead{height:0;padding:0;overflow:visible;background:none}
.product-dialog #d-close{position:absolute;top:12px;right:14px}
.product-dialog #d-body{padding-top:18px}
.product-dialog .prod-head{padding-right:104px}
/* open sections and component headings carry the accent; nothing else is coloured */
.comp-h::before{content:"";flex:0 0 auto;width:3px;height:15px;border-radius:2px;background:var(--teal)}
.pgroup[open]{border-color:var(--brand-line)}
.pgroup[open]>summary{color:var(--teal)}.pgroup[open]>summary::after{border-color:var(--teal)}
.comp-specs[open]>summary{color:var(--teal)}
/* component cards take the width there is and are as tall as their own contents; their details stack */
.prod-comps{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));align-items:start}
.comp dl.specs{padding:2px 0 4px}
@container (min-width:720px){
  /* the photograph's column is as wide as the photograph at its height (a tall photo no longer sits in a wide,
     empty column); name, actions and warnings take the rest; components, then the collapsed details, run below */
  .prod.has-media{grid-template-columns:fit-content(46%) minmax(0,1fr);grid-template-rows:auto 1fr}
  .prod.has-media .photo{width:auto;max-width:100%;max-height:400px}
  .prod-name{font-size:22px}
}
@media (max-width:640px){.product-dialog .prod-head{padding-right:96px}}
.prod-media>.photo-btn{display:flex;justify-content:center}
/* 22 Oct 2026: specifications, generally. A label sits above its value, and the value has the full width; two
   columns only where the list itself is wide enough (measured on the list, so a narrow card stacks whatever the
   screen). Text wraps at spaces: an ordinary word is never cut, and an unbroken code or address breaks only when it
   is longer than the whole line. Source wording and line breaks are kept (pre-wrap). */
dl.specs{container-type:inline-size}
.spec{grid-template-columns:minmax(0,1fr);gap:2px}
@container (min-width:520px){.spec{grid-template-columns:minmax(140px,32%) minmax(0,1fr);gap:16px}}
.spec dd,.kv dd,.spare-desc,.light-desc,.part-name,.comp-ph figcaption{word-break:normal;overflow-wrap:break-word}
.spare{grid-template-columns:auto minmax(0,1fr)}
/* 22 Oct 2026: water treatment guidance from reviewed instructions */
.treatment{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.treat{border:1px solid var(--line);border-radius:12px;padding:10px 12px;min-width:0}
.treat p{margin:4px 0}.treat ul{margin:4px 0;padding-left:20px}
.treat li,.tq,.treat p{overflow-wrap:break-word}
.tq{margin:0;padding-left:10px;border-left:3px solid var(--brand-line)}
.tr-req{border-top:1px dashed var(--line);padding-top:8px;margin-top:8px;display:grid;gap:6px}.tr-req input,.tr-req select{max-width:100%}
.br-upload input{flex:1 1 140px;min-width:0}.brochure-facts dd .link{margin-left:4px}
.web-lookup{margin-top:8px;border:1px dashed var(--line);border-radius:10px;padding:8px 10px;overflow-wrap:break-word}.web-lookup .pill{margin-right:4px}
/* 22 Oct 2026: the diagnosed spare at the end of a walk, with its photograph */
.parts-found{list-style:none;padding:0;margin:6px 0}
.spare-found{display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px;align-items:center;padding:6px 0}
.spare-found:not(:has(.spare-pic)){grid-template-columns:minmax(0,1fr)}
.spare-found .spare-pic{width:96px}.spare-found .part-img{height:80px}
.walk-product{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px}
.odetails{margin-top:6px}.odetails>summary{cursor:pointer;color:var(--mute);font-size:13px}.odetails[open]>summary{color:var(--teal)}
/* 22 Oct 2026: one inbox for corrections and data requests; the guided request; My requests */
.inbox-card{grid-column:1/-1}
.inbox-filters{flex-wrap:wrap;gap:8px}.inbox-filters input{flex:1 1 200px;min-width:0}
.inbox{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:10px}
@container (min-width:860px){.inbox{grid-template-columns:minmax(260px,38%) minmax(0,1fr)}}
.inbox-card{container-type:inline-size}
.ib-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:70vh;overflow:auto}
.ib-row{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:left;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:8px 10px;font-weight:400}
.ib-row.on{border-color:var(--teal);background:var(--brand-tint)}
.ib-text{font-size:13px;overflow-wrap:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ib-status{font-size:12px;font-weight:600;color:var(--mute);text-transform:capitalize}.ib-status.open{color:var(--teal)}.ib-status.awaiting_info{color:#8a5a00}
.ib-detail{border:1px solid var(--line);border-radius:12px;padding:12px;min-width:0;overflow-wrap:break-word}
.ib-head h3{margin:6px 0 2px;font-size:16px}
.ib-sum{display:grid;grid-template-columns:minmax(0,1fr);gap:2px 12px}.ib-sum dt{color:var(--mute);font-size:12.5px;margin-top:6px}.ib-sum dd{margin:0}
.ib-box{display:flex;flex-direction:column;gap:6px;margin-top:10px;border-top:1px solid var(--line);padding-top:10px}
.ib-box .row{flex-wrap:wrap;gap:6px}.ib-box input,.ib-box select,.ib-box textarea{min-width:0;max-width:100%;font:inherit}
.ib-thread{border-left:3px solid var(--brand-line);padding-left:10px;margin:8px 0}
.supp-panel{margin-top:12px}
.msg.guided .options{flex-wrap:wrap}.g-input{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.g-input textarea,.g-sum input,.g-sum textarea{width:100%;font:inherit;border:1px solid var(--line);border-radius:8px;padding:8px}
.g-sum{display:grid;gap:8px;margin:8px 0}.g-sum label{display:flex;flex-direction:column;gap:3px}
.g-have{margin:6px 0;padding-left:18px}.g-have li{overflow-wrap:break-word}
#my-requests{max-width:min(720px,96vw);width:96vw}.my-req{border-top:1px solid var(--line);padding:10px 0}.my-req p{overflow-wrap:break-word}
.my-req textarea{flex:1 1 220px;min-width:0;font:inherit}
.supp-facts dd .muted{display:block}
/* 22 Oct 2026: the missing-documents warning: the summary in the warning colour, the list readable */
.gaps p{font-weight:400;color:var(--ink)}.gaps p b{color:var(--bad)}.gaps ul{margin:6px 0 0;padding-left:18px}.gaps li{font-weight:400;color:var(--ink);margin:2px 0}
.gaps li b{font-weight:600}
/* 22 Oct 2026 (Owen): spare codes and names are read out to customers: large and readable everywhere they appear
   (component cards, light spares, walk outcomes, the parts list); on a phone the code sits above its description */
.spare{font-size:15px;line-height:1.35}.spare-code{font-size:16px;color:var(--ink)}.spare-desc{color:var(--ink)}
.spare-pos{font-size:13.5px}.part-code{font-size:15px}
.spare-found{font-size:16px;line-height:1.4}.spare-found .spare-code{font-size:17px}
@media (max-width:520px){
  .spare{grid-template-columns:minmax(0,1fr);row-gap:2px}.spare-pos{grid-column:1}
  .spare-code{font-size:17px}.spare-found{grid-template-columns:72px minmax(0,1fr)}.spare-found .spare-pic{width:72px}.spare-found .part-img{height:64px}
}
/* 23 Oct 2026 (Owen's redesign): Data administration as one compact panel. Section tabs, one uploader, one library,
   one Needs attention line; a document's reviews open in its own dialog. */
.subnav{display:flex;gap:4px;margin:0 0 14px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.subnav::-webkit-scrollbar{display:none}
.subnav button{background:none;color:var(--mute);border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 14px;font-weight:500;flex:0 0 auto;white-space:nowrap}
.subnav button.on{color:var(--teal);border-bottom-color:var(--teal);font-weight:600}
.adm-pane{display:flex;flex-direction:column;gap:14px}
.adm-pane .card{padding:18px 20px}
.pane-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:6px}.pane-head h2{margin:0}
.mx-line{margin:4px 0 0;font-size:14px}
.file-btn{position:relative;overflow:hidden;cursor:pointer}.file-btn input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.btn.secondary{background:#eef0f1;color:var(--ink)}.btn.disabled{pointer-events:none;opacity:.5}
details.more{margin-top:12px;font-size:13px}details.more>summary{cursor:pointer;color:var(--teal);font-weight:500;padding:4px 0}
details.more[open]>summary{margin-bottom:6px}
.refcols li{padding:6px 0;border-top:1px solid var(--line)}.refcols li:first-child{border-top:0}
.switch{display:inline-flex;align-items:center;gap:10px;font-size:14px;font-weight:500;cursor:pointer}
.switch input{appearance:none;-webkit-appearance:none;width:44px;height:26px;border-radius:999px;background:#c9ced2;position:relative;margin:0;padding:0;border:0;cursor:pointer;transition:background .15s;flex:0 0 auto}
.switch input::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:left .15s}
.switch input:checked{background:var(--teal)}.switch input:checked::after{left:21px}
.switch input:focus-visible{outline:2px solid var(--brand-focus);outline-offset:2px}
/* Needs attention */
.attn{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#fff8ec;border:1px solid #f2dfb8;border-radius:12px;padding:10px 14px;font-size:14px}
.attn strong{margin-right:4px}
.attn-item{background:#fff;color:var(--ink);border:1px solid #ecd9b0;border-radius:999px;padding:5px 12px;font-size:13px;font-weight:500}
.attn-item.bad{color:var(--bad);border-color:#efc2bd}.attn-item.quiet{color:var(--mute);border-color:var(--line)}
button.attn-item:hover{border-color:var(--teal)}
/* the one uploader */
.drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;border:2px dashed var(--brand-line);border-radius:12px;padding:22px 16px;cursor:pointer;background:#fbfdfc}
.drop:hover,.drop:focus-visible,.drop.over{background:var(--brand-tint);border-color:var(--teal);outline:none}
.drop strong{font-size:15px}.linkish{color:var(--teal);text-decoration:underline}
.upq{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.upq:not(:empty){margin-top:12px}
.up-row{border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:6px;min-width:0}
.up-name{overflow-wrap:anywhere}
.up-opts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.up-opts select,.up-opts input{padding:7px 10px;font-size:14px}
.up-more{display:contents}
.up-state:empty{display:none}.up-state.bad{color:var(--bad)}.up-state.ok{color:var(--ink)}
/* the library */
.lib-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px}.lib-tools h2{margin:0 auto 0 0}
.lib-tools input{flex:1 1 220px}.lib-tools select{flex:0 1 auto}
.lib-list{list-style:none;margin:0;padding:0}
.lib-row{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:4px 0}.lib-row:first-child{border-top:0}
.lib-open{flex:1 1 auto;min-width:0;text-align:left;background:none;color:var(--ink);border:0;border-radius:8px;padding:8px 6px;display:flex;flex-direction:column;gap:2px}
.lib-open:hover{background:#f6faf9}
.lib-main{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0}.lib-name{overflow-wrap:anywhere;font-weight:600}
.lib-detail{overflow-wrap:anywhere}
.lib-row>.small-btn{flex:0 0 auto;white-space:nowrap}
.lib-acts{flex:0 0 auto;display:flex;align-items:center;gap:6px}
#sdocs .lib-row{padding:8px 0;justify-content:space-between}
.pill.kind{background:#eef0f1;color:#4a5055;font-weight:500}
.pill.st-ready{background:#e3f2ec;color:#1d6b4c}.pill.st-review{background:#fdf1dc;color:#7a4f00}
.pill.st-unreadable{background:#fdecea;color:var(--bad)}.pill.st-processing{background:#e8f0fb;color:#24508f}.pill.st-off{background:#f1f1f1;color:var(--mute)}
.dl-tpl{margin:10px 0 0;text-align:right}
/* one document */
dialog.docdlg{max-width:min(860px,96vw)}
.docdlg .dhead{align-items:flex-start;gap:12px}.docdlg .dhead strong{font-size:16px;overflow-wrap:anywhere}
.dd-status{margin:0 0 4px;font-size:14px}.dd-h{font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:var(--mute);margin:18px 0 6px}
.link.danger{color:var(--bad)}
.gap-list{list-style:none;margin:8px 0 0;padding:0}.gap-list li{border-top:1px solid var(--line);padding:8px 0}
.gap-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.gap-head b{overflow-wrap:anywhere}
.gap-prods{margin-top:6px;padding-left:10px;border-left:3px solid var(--brand-line)}
.scope-row select,.scope-row input{padding:7px 10px;font-size:14px}.scope-row input{flex:1 1 220px}
@media (max-width:640px){
  .adm-pane .card{padding:14px}
  .subnav{gap:0}.subnav button{padding:9px 8px;font-size:14px}
  .lib-row{flex-wrap:wrap}.lib-row>.small-btn{margin:0 0 6px 6px}
  .lib-tools select{flex:1 1 45%}
  .up-opts select,.up-opts input{flex:1 1 100%}
  .mx-acts{flex-direction:column;align-items:stretch}.mx-acts .btn{text-align:center}
  dialog.docdlg{padding:16px;max-height:92vh}
}
.docdlg .pv-close{white-space:nowrap;flex:0 0 auto}
/* 23 Oct 2026: product information form, bulk edit, download line */
.infodlg{width:min(460px,calc(100vw - 32px))}
.if-form{display:grid;gap:10px}.if-form label{display:flex;flex-direction:column;gap:3px}
.if-form input,.if-form select{font:inherit;border:1px solid var(--line);border-radius:8px;padding:8px;min-width:0;width:100%}
.if-new{display:grid;grid-template-columns:1fr auto;gap:8px}.if-vals{gap:8px;flex-wrap:nowrap}.if-vals .grow{flex:1}
#if-unit{width:96px}
.bulk-filters,.bulk-apply{flex-wrap:wrap;gap:6px}.bulk-filters input{flex:1 1 180px}
.bulk-new{gap:6px;margin-top:6px}
.bulk-table-wrap{max-height:340px;overflow:auto;border:1px solid var(--line);border-radius:8px;margin:6px 0}
.bulk-table{width:100%;border-collapse:collapse;font-size:13px}.bulk-table th,.bulk-table td{padding:5px 8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.bulk-table th{position:sticky;top:0;background:var(--card,#fff)}.bulk-table input[data-bk-in]{width:100%;min-width:90px;font:inherit}
#dl-status.bad{color:var(--bad)}
@media (max-width:560px){.bulk-table td:nth-child(3),.bulk-table th:nth-child(3){max-width:120px}.if-vals{flex-wrap:wrap}#if-unit{width:100%}}
/* 23 Oct 2026: diagnosis photo button and photo lines */
.composer-photo{display:inline-flex;align-items:center;padding:0 12px;border:1px solid var(--line);border-radius:999px;font-size:14px;cursor:pointer;color:var(--teal);font-weight:600;white-space:nowrap}
.photo-lines li{margin:2px 0}
/* 23 Oct 2026: a product's actions (Request information, Add information, Add qty per pallet), clearly separate */
.prod-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.prod-acts .pallet-btn{margin:0;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:var(--card);min-height:36px}
