/* Quiet Intelligence: shared visual identity for FixtureTracker. */
:root,:root[data-theme="light"],:root[data-theme="dark"]{
 color-scheme:dark;--surface-page:#0c1117;--surface:#192329;--soft:#1d2c28;--border:#354347;--muted:#b3c1be;--text:#f1f5f3;--accent:#a4d9ba;--button:#b8e7cb;--glow:#234a3b;
 font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--surface-page);
}
body{background:radial-gradient(ellipse 900px 400px at 90% 0%,#234a3b1a,transparent 75%),var(--surface-page);color:var(--text);-webkit-font-smoothing:antialiased}
h1,h2,h3{font-weight:500;overflow-wrap:break-word}h1{letter-spacing:-1.2px}h2{letter-spacing:-.4px}a{color:var(--accent);text-underline-offset:4px}
button,input,select,textarea,a.button,a.secondary{transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}
button{border-radius:10px;font-weight:500}button:not(.secondary):not(.equipment-name):not(.installed-version-button):not(.category-metric):not(.text-button){background:var(--button);color:#183328}
button.secondary,a.secondary{background:#17231f;color:#dce8e2;border:1px solid #33433f}
button:hover,a.button:hover,a.secondary:hover{filter:none;box-shadow:0 0 18px #b8e7cb0c}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #b8e7cb;outline-offset:4px}
input,select,textarea{border-color:#33423f;border-radius:10px;background:#10191d;color:var(--text)}
input:focus,select:focus,textarea:focus{border-color:#a4d9ba}
.panel,.card,.metric{background:var(--surface);border-color:var(--border);border-radius:16px}
.panel{padding:25px}.muted,.subtle,p,small{color:var(--muted)}
.eyebrow{color:#a4c9b5;letter-spacing:1.7px;font-weight:500}
.brand,.brand strong{font-weight:500}.brand strong span{color:#a4d9ba}
.mark,.brand b{background:#b8e7cb;color:#183328;border:0;border-radius:11px;box-shadow:0 0 22px #b8e7cb0a;font-weight:500}
body:not(.public-mode):not(.account-page) header{height:auto;min-height:82px;padding-top:15px;padding-bottom:15px;background:#0f171bf2;border-color:#25313a}
body:not(.public-mode) main{margin-top:34px}
.heading{gap:24px;margin-bottom:28px}.heading h1{font-size:32px}
.intelligence{background:radial-gradient(ellipse at 90% 0%,#234a3b66,transparent 65%),#141e21;border:1px solid #334b40;border-radius:18px;padding:28px;margin-bottom:24px}
.intelligence h2{font-size:28px;line-height:1.2;font-weight:500;margin:10px 0}.intelligence .schedule{border-color:#334b40}.schedule strong{font-size:20px;font-weight:500}.schedule small{color:#a5b5ae}
.status{border-radius:7px;padding:6px 9px;font-weight:400}.status.update{background:#203a2e;color:#b8e7cb}.status.unknown{background:#302e24;color:#e4ce9a}
.company-summary{gap:14px;margin:0 0 24px}.metric{padding:20px}.metric b{font-size:30px;font-weight:500;margin-top:10px;letter-spacing:-.7px}.metric small{color:#9eafaa}.category-metric{background:#11191f;color:#edf3f1;border:1px solid #29363d}.category-metric:hover{background:#17231f;border-color:#456451}
.split{gap:22px}.panel-head{gap:18px}.equipment-actions{gap:10px}#equipment-panel .filters{margin-top:14px;margin-bottom:22px}
th{background:#151f26;color:#9cadab;border-color:#29363d;padding-top:13px;padding-bottom:13px;font-weight:500}
td{border-color:#253138;padding-top:15px;padding-bottom:15px}tbody tr:hover{background:#17231f55}
.equipment-name{color:#e4efea;font-weight:500}.installed-version-button{color:#b8e7cb}.equipment-name:hover,.installed-version-button:hover{color:#c4efd5;box-shadow:none}
.table-scroll{border:1px solid #29363d;border-radius:12px}#manufacturer-links .manufacturer-watch-row{border-color:#253138;padding:15px 0}.alert{border-color:#253138;padding:14px 0}
dialog{background:#111a20;border-color:#3a5145;border-radius:20px;padding:28px;box-shadow:0 24px 90px #0006}dialog::backdrop{background:#050b10c9}
.firmware-current{background:radial-gradient(ellipse at right,#234a3b44,transparent),#17251f;border:1px solid #334b40;border-radius:13px;padding:20px}.firmware-current strong{font-weight:500}
#record-history b{font-weight:500}#record-history article:before{box-shadow:0 0 12px #b8e7cb22}
.firmware-monitoring{border-color:#293d34}#record-version-choice{background:#10191d}
.public-mode #public-surface{max-width:1240px}.public-top{border-color:#25313a;min-height:94px}.public-top .brand{font-size:21px}
.public-hero{position:relative;background:radial-gradient(ellipse at 85% 25%,#234a3b40,transparent 65%);padding:76px 0 60px}
.public-hero h1{font-size:clamp(40px,6.8vw,74px);font-weight:500;letter-spacing:-2.6px;line-height:1.09}
.public-hero p{color:#a8b9b3;max-width:650px;font-size:18px}
.public-hero a.button{background:#b8e7cb;color:#183328;border-radius:11px;font-weight:500;box-shadow:0 0 26px #b8e7cb0b}.public-top a.secondary,.public-hero a.secondary{border-radius:11px;font-weight:500}
.public-features .card{background:linear-gradient(145deg,#14201e,#11191f 65%);border-color:#2c3d35;padding:26px}
.public-features h2{font-size:20px;line-height:1.35}.public-features p{font-size:14px}.home-news{padding-top:38px}.home-news h2,.news-article h2{font-weight:500}
.editorial-card{border-radius:16px;padding:0 0 24px;background:#11191f}.editorial-card h3{font-weight:500;font-size:24px;line-height:1.3}.editorial-card .story-image{background:#0b1218}
.news-topics a{border-color:#33433f;border-radius:10px}.news-masthead h1{font-weight:500;letter-spacing:-2px}
.account-main{max-width:600px}.account-main .panel,.setup{background:radial-gradient(ellipse at top right,#234a3b33,transparent 60%),#11191f;border-color:#334b40}
.public-footer,footer{border-color:#25313a;color:#91a59b}
@media(max-width:650px){
 .panel{padding:18px}.heading h1{font-size:28px}.heading{gap:18px}.intelligence{padding:22px}.intelligence h2{font-size:25px}.intelligence .schedule{padding-top:20px;margin-top:20px}.company-summary .metric{padding:16px}.company-summary .metric b{font-size:28px}
 .public-top{gap:16px}.public-top .actions{gap:10px}.public-hero{padding:46px 0 42px}.public-hero h1{letter-spacing:-1.7px}.public-hero p{font-size:16px}.public-features .card{padding:22px}.editorial-card{padding:0 0 24px}.editorial-card h3{font-size:22px}.split{gap:18px}.account-main{padding:12px}
 body:not(.public-mode):not(.account-page) header{gap:12px;flex-wrap:wrap}.top-actions{flex-wrap:wrap;gap:10px}.top-actions #session-label{overflow-wrap:anywhere;max-width:220px}.equipment-actions button{min-height:44px}
}
@media(prefers-reduced-motion:reduce){button,input,select,textarea,a{transition:none}}

/* Approved colour refinement: stronger separation and explicit status roles. */
:root{--ft-update-fill:#433721;--ft-update-text:#f1d395;--ft-current-fill:#254135;--ft-current-text:#c0e8ce;--ft-error-text:#f0aaa3}
h1,h2,h3,.brand,.brand strong{color:#f1f5f3}
.panel,.card,.metric{background:#192329;border-color:#354347}
.muted,.subtle,p,small{color:#b3c1be}
.metric small,.company-summary .metric small{color:#b3c1be}
.intelligence{background:radial-gradient(ellipse at 90% 0%,#355c4244,transparent 65%),#1a272b;border-color:#3e5148}
.intelligence .schedule{border-color:#3e5148}.schedule small{color:#b3c1be}
.category-metric{background:#192329;color:#f1f5f3;border-color:#354347}.category-metric:hover{background:#22332c;border-color:#52705e}
.status{background:var(--ft-current-fill);color:var(--ft-current-text)}
.status.update,.tag.amber,:root[data-theme="light"] .tag.amber,:root[data-theme="dark"] .tag.amber{background:var(--ft-update-fill);color:var(--ft-update-text)}
.status.unknown{background:#2a383e;color:#c2cfca}
th{background:#202c32;color:#b7c7c1;border-color:#354347}td{border-color:#354347}tbody tr:hover{background:#22342d55}
.table-scroll{border-color:#354347}.equipment-name{color:#f1f5f3}
#manufacturer-links .manufacturer-watch-row,.alert{border-color:#354347}
#manufacturer-links .manufacturer-watch-row small{color:#b3c1be}
dialog{background:#192329}.firmware-current{background:radial-gradient(ellipse at right,#355c4244,transparent),#1d2c28;border-color:#3e5148}
#record-history time,#record-history small,#record-history p{color:#b3c1be}
.public-features .card{background:linear-gradient(145deg,#1d2c28,#192329 70%);border-color:#354347}
.public-features p,.public-hero p,.editorial-card p{color:#b3c1be}
.editorial-card{background:#192329}.public-footer,footer{color:#adbfB6}
.account-main .panel,.setup{background:radial-gradient(ellipse at top right,#355c4233,transparent 60%),#192329;border-color:#3e5148}
.error,:root[data-theme="light"] .error,:root[data-theme="dark"] .error,[role="alert"]{color:var(--ft-error-text)}
.success,:root[data-theme="light"] .success,:root[data-theme="dark"] .success{color:var(--ft-current-text)}

:root:not([data-theme="dark"]){
 color-scheme:light;--surface-page:#f6f9f7;--surface:#ffffff;--soft:#edf7f0;--border:#d8e4dd;--muted:#56695f;--text:#192d24;--accent:#226c4e;--button:#b8e7cb;--glow:#dff1e5;
 --ft-update-fill:#fff1ce;--ft-update-text:#765413;--ft-current-fill:#e1f4e7;--ft-current-text:#246343;--ft-error-text:#a83832;
}
:root:not([data-theme="dark"]) body{background:var(--surface-page);color:var(--text)}
:root:not([data-theme="dark"]) h1,:root:not([data-theme="dark"]) h2,:root:not([data-theme="dark"]) h3,:root:not([data-theme="dark"]) .brand,:root:not([data-theme="dark"]) .brand strong{color:var(--text)}
:root:not([data-theme="dark"]) a,:root:not([data-theme="dark"]) .brand strong span,:root:not([data-theme="dark"]) .brand span,:root:not([data-theme="dark"]) .installed-version-button{color:var(--accent)}
:root:not([data-theme="dark"]) .muted,:root:not([data-theme="dark"]) .subtle,:root:not([data-theme="dark"]) p,:root:not([data-theme="dark"]) small,:root:not([data-theme="dark"]) label,:root:not([data-theme="dark"]) .metric small,:root:not([data-theme="dark"]) .company-summary .metric small,:root:not([data-theme="dark"]) .schedule small,:root:not([data-theme="dark"]) .top-actions{color:var(--muted)}
:root:not([data-theme="dark"]) body:not(.public-mode):not(.account-page) header,:root:not([data-theme="dark"]) .public-top{background:#ffffff;border-color:var(--border)}
:root:not([data-theme="dark"]) button.secondary,:root:not([data-theme="dark"]) a.secondary{background:#f0f6f2;color:#254936;border-color:#d1e1d7}
:root:not([data-theme="dark"]) button:focus-visible,:root:not([data-theme="dark"]) a:focus-visible,:root:not([data-theme="dark"]) input:focus-visible,:root:not([data-theme="dark"]) select:focus-visible,:root:not([data-theme="dark"]) textarea:focus-visible{outline-color:#337655}
:root:not([data-theme="dark"]) input,:root:not([data-theme="dark"]) select,:root:not([data-theme="dark"]) textarea,:root:not([data-theme="dark"]) #record-version-choice,:root:not([data-theme="dark"]) #record-notes{background:#ffffff;color:var(--text);border-color:#c8d9ce}
:root:not([data-theme="dark"]) input:focus,:root:not([data-theme="dark"]) select:focus,:root:not([data-theme="dark"]) textarea:focus{border-color:#337655}
:root:not([data-theme="dark"]) .panel,:root:not([data-theme="dark"]) .card,:root:not([data-theme="dark"]) .metric,:root:not([data-theme="dark"]) .editorial-card{background:#ffffff;border-color:var(--border)}
:root:not([data-theme="dark"]) .category-metric{background:#ffffff;color:var(--text);border-color:var(--border)}
:root:not([data-theme="dark"]) .category-metric:hover{background:#edf7f0;border-color:#82b295}
:root:not([data-theme="dark"]) .eyebrow{color:#337655}
:root:not([data-theme="dark"]) .mark,:root:not([data-theme="dark"]) .brand b{background:#b8e7cb;color:#183328}
:root:not([data-theme="dark"]) .intelligence{background:linear-gradient(115deg,#e6f5eb,#f4faf6);border-color:#c9dfd0}
:root:not([data-theme="dark"]) .intelligence .schedule,:root:not([data-theme="dark"]) .schedule{border-color:#c9dfd0}
:root:not([data-theme="dark"]) th{background:#eff5f1;color:#52695a;border-color:var(--border)}
:root:not([data-theme="dark"]) td,:root:not([data-theme="dark"]) .table-scroll,:root:not([data-theme="dark"]) #manufacturer-links .manufacturer-watch-row,:root:not([data-theme="dark"]) .alert{border-color:var(--border)}
:root:not([data-theme="dark"]) tbody tr:hover{background:#f1f8f3}
:root:not([data-theme="dark"]) .equipment-name{color:#213c2e}
:root:not([data-theme="dark"]) .equipment-name:hover,:root:not([data-theme="dark"]) .installed-version-button:hover{color:#226c4e}
:root:not([data-theme="dark"]) .status{background:var(--ft-current-fill);color:var(--ft-current-text)}
:root:not([data-theme="dark"]) .status.update,:root:not([data-theme="dark"]) .tag.amber,:root:not([data-theme="dark"]) .tag.amber,:root:not([data-theme="dark"]) .tag.amber{background:var(--ft-update-fill);color:var(--ft-update-text)}
:root:not([data-theme="dark"]) .status.unknown,:root:not([data-theme="dark"]) .tag{background:#edf1ee;color:#56695f}
:root:not([data-theme="dark"]) .form-grid{background:#f1f7f3}
:root:not([data-theme="dark"]) .firmware-monitoring{border-color:var(--border)}
:root:not([data-theme="dark"]) dialog{background:#ffffff;color:var(--text);border-color:#cadfd1;box-shadow:0 24px 90px #18332822}
:root:not([data-theme="dark"]) dialog::backdrop{background:#12291d66}
:root:not([data-theme="dark"]) .firmware-current{background:#eaf7ee;border-color:#c9dfd0}
:root:not([data-theme="dark"]) .firmware-current strong{color:#246343}
:root:not([data-theme="dark"]) #record-history time,:root:not([data-theme="dark"]) #record-history small,:root:not([data-theme="dark"]) #record-history p,:root:not([data-theme="dark"]) #manufacturer-links .manufacturer-watch-row small{color:var(--muted)}
:root:not([data-theme="dark"]) #record-history article{border-left-color:#c9dfd0}
:root:not([data-theme="dark"]) #record-history article:before{background:#4e9770;box-shadow:none}
:root:not([data-theme="dark"]) .public-hero{background:radial-gradient(ellipse at 85% 25%,#e1f3e8,transparent 65%)}
:root:not([data-theme="dark"]) .public-hero p,:root:not([data-theme="dark"]) .public-features p,:root:not([data-theme="dark"]) .editorial-card p{color:var(--muted)}
:root:not([data-theme="dark"]) .public-features .card{background:#ffffff;border-color:var(--border)}
:root:not([data-theme="dark"]) .editorial-card .story-image{background:#edf7f0}
:root:not([data-theme="dark"]) .news-topics a{background:#ffffff;border-color:var(--border);color:var(--accent)}
:root:not([data-theme="dark"]) .account-main .panel,:root:not([data-theme="dark"]) .setup{background:#ffffff;border-color:var(--border)}
:root:not([data-theme="dark"]) .public-footer,:root:not([data-theme="dark"]) footer,:root:not([data-theme="dark"]) .public-top{border-color:var(--border)}
:root:not([data-theme="dark"]) .public-footer,:root:not([data-theme="dark"]) footer{color:var(--muted)}
:root:not([data-theme="dark"]) .notice{background:#edf7f0;color:#3c6548;border-color:#c9dfd0}


/* Item names open a compact summary and timeline. */
#record-dialog{width:min(720px,calc(100vw - 32px));max-width:720px;box-sizing:border-box}
#record-dialog .panel-head{align-items:flex-start;margin-bottom:8px;flex-wrap:nowrap}
#record-dialog .panel-head h2{font-size:21px;line-height:1.35;margin:0;overflow-wrap:anywhere}
#record-dialog #close-record{flex-shrink:0;padding:9px 14px}
#record-meta{font-size:13px;margin:0 0 20px}
.record-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#record-dialog .firmware-current,.record-latest{margin:0;padding:16px;border:1px solid var(--border);border-radius:12px}
.record-latest{background:var(--soft)}
.record-summary small{display:block;font-size:11px;letter-spacing:.08em}
#record-dialog .firmware-current strong,.record-latest-version{display:block;font-size:28px;font-weight:500;line-height:1.2;margin:10px 0}
#record-release{display:flex;align-items:flex-start;flex-direction:column;gap:8px}
#record-release .record-latest-version{margin:10px 0 0}
#record-release small{letter-spacing:0;font-size:12px}
#record-release a,#record-release details{font-size:13px}
#record-release details p{margin:8px 0;line-height:1.5}
.record-toolbar{display:flex;align-items:center;gap:12px;margin:16px 0}
#record-status{font-size:13px;margin:0}#record-status:empty{display:none}
.record-timeline{border-top:1px solid var(--border);padding-top:4px}
#record-dialog h3{font-size:17px;margin:16px 0}
#record-history article{padding-bottom:18px}
#record-history time,#record-history small{font-size:12px}
#record-history b{font-size:15px;margin:5px 0}
#record-edit-panel{border-top:1px solid var(--border);margin-top:12px;padding-top:18px}
#record-edit-panel label{font-size:13px}
#record-edit-panel .subtle{font-size:12px;margin:7px 0 14px}
#record-edit-panel .subtle:empty{display:none}
#record-edit-panel select,#record-edit-panel input:not([type=checkbox]){min-height:44px}
#firmware-model-editor{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}
#firmware-model-editor label{margin:0}#save-firmware-model{margin:0 0 2px}
#record-dialog #firmware-editor{border:0;margin:16px 0 0;padding:0}
#record-dialog .record-bulk-label{display:flex;align-items:center;gap:9px;margin:14px 0 0}
#record-dialog .record-bulk-label input{display:inline-block;width:17px;height:17px;min-height:0;margin:0;flex-shrink:0;accent-color:#337655}
#record-source{font-size:12px;margin:18px 0 0}
@media(max-width:480px){
 #record-dialog{padding:18px;width:calc(100vw - 20px)}
 #record-dialog .panel-head h2{font-size:18px}
 .record-summary{gap:8px}
 #record-dialog .firmware-current,.record-latest{padding:12px}
 #record-dialog .firmware-current strong,.record-latest-version{font-size:23px;overflow-wrap:anywhere}
 #firmware-model-editor{grid-template-columns:1fr}
 #save-firmware-model{justify-self:start}
 .record-toolbar{align-items:flex-start;flex-direction:column}
}

.theme-toggle{white-space:nowrap;font-size:12px;min-height:40px;flex-shrink:0}.theme-standalone{display:flex;justify-content:flex-end;margin-bottom:16px}.public-top .actions,.top-actions{flex-wrap:wrap} :root[data-theme="dark"] .record-latest{background:#1d2c28} :root[data-theme="dark"] #record-dialog .firmware-current{border-color:var(--border)}
