.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0;min-height:36px;padding:6px 10px;border:1px solid #dfe3e8;border-radius:7px;background:#fff;color:#5a6472;font:500 11px 'DM Sans',sans-serif;cursor:pointer}.theme-toggle:hover{background:#f7f8fa}.theme-toggle:focus-visible{outline:2px solid #e44a31;outline-offset:3px}.theme-track{display:block;position:relative;width:29px;height:16px;border-radius:20px;background:#e3e7ec;transition:background .2s}.theme-track::after{content:'';position:absolute;width:12px;height:12px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .2s}.theme-mode{min-width:25px;text-align:left}.login-theme{display:flex;justify-content:flex-end;margin:0 0 15px}
html[data-theme=dark]{color-scheme:dark;--line:#303a48;--muted:#a2acba;--accent:#ee715a;background:#12171e;color:#e1e7ef}
html[data-theme=dark] body{background:#12171e;color:#e1e7ef}
html[data-theme=dark] :is(.panel,.stats,.stat,.import-card,.archive-table,.archive-table tbody tr,.overview,.presence-panel,.measurement-launch,.actions,dialog,.password-heading,.audit-toolbar,.attachment-heading,.attachment-body,.audit-body){background:#1c232d;color:#d9e2ed;border-color:#303a48;box-shadow:none}
html[data-theme=dark] :is(.sidebar,.operations-sidebar){background:#141a22}
html[data-theme=dark] :is(.app-header,header,.panel-title,.list-footer,.product-heading,.save-area,.history-row,.archive-tabs,details,.audit-panel,.audit-entry,.attachment-file){border-color:#303a48}
html[data-theme=dark] :is(h1,h2,h3,.product-heading h3,.measurement-launch h2,.archive-table strong,.archive-table .file-name,.archive-table .archive-name,.product .name,.product b,.stat strong,.history-row strong,#detailTitle,#workflowTitle){color:#e0e7f0}
html[data-theme=dark] :is(p,.muted,label,.breadcrumb,.account,.brand-caption,.identifiers,.identifiers span:first-child,.unit-note,.footnote,.footer,footer,.product .meta,.archive-table td,.presence-table td,.history-list,.history-row span,.section-label span,.location-value,.product-locations,.workflow-summary,.workflow-sync,.count-status,.audit-panel,.audit-panel strong,.audit-entry,.measurement-launch p){color:#a7b2c1}
html[data-theme=dark] :is(input,select,textarea,.search-wrap,.search-wrap input,dialog input,dialog select,dialog textarea,.archive-search input,.search input){background:#151b24;color:#e1e8f2;border-color:#3b4656}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#738096}
html[data-theme=dark] :is(input:disabled,select:disabled,textarea:disabled){background:#222a35;color:#737e8e}
html[data-theme=dark] :is(button,.secondary,.quiet,.subtle-button,.icon-button,.theme-toggle){background:#222b38;color:#cbd5e3;border-color:#3a4555}
html[data-theme=dark] :is(button:hover,.secondary:hover,.quiet:hover,.subtle-button:hover,.icon-button:hover,.theme-toggle:hover){background:#2b3645;border-color:#546379}
html[data-theme=dark] :is(button.primary,.primary){background:#dd563d;color:#fff;border:0}
html[data-theme=dark] :is(button.primary:hover,.primary:hover){background:#e56b53}
html[data-theme=dark] .theme-track{background:#dc674f}
html[data-theme=dark] .theme-track::after{transform:translateX(13px)}
html[data-theme=dark] :is(.pill,kbd,.hint,.version){background:#252e3b;border-color:#3b4656;color:#a9b6c8}
html[data-theme=dark] :is(.progress,.summary,.audit-panel,.presence-stats>div){background:#151c26;border-color:#354153}
html[data-theme=dark] :is(.product,.product:hover){background:#1c232d;color:#d8e2ed;border-color:#303a48}
html[data-theme=dark] :is(.product.active,.product.selected){background:#362720;border-color:#a6604b;border-left-color:#ec7a60}
html[data-theme=dark] .product.saved{background:#1c3029;border-color:#345b4a}
html[data-theme=dark] .product.saved.selected{background:#362720;border-color:#b86d56}
html[data-theme=dark] :is(.product .badge,.badge,.workflow-badge,.measurement-status){background:#382e21;color:#e2bb7e;border-color:#59452c}
html[data-theme=dark] :is(.product .badge.done,.state.done,.workflow-badge.done,.archive-complete,.measurement-status.complete){background:#20382e;color:#8dc7a7;border-color:#385a49}
html[data-theme=dark] :is(.product .badge.warning,.workflow-badge.unknown,.state.diff){background:#3c2c29;color:#edaa89;border-color:#6a4639}
html[data-theme=dark] :is(.filters button,.app-nav .nav-item,.archive-tabs button){background:transparent;color:#a6b2c3;border-color:transparent}
html[data-theme=dark] :is(.filters button.selected,.filters button.active,.app-nav .nav-item.active,.archive-tabs button.active){background:#3b2b25;color:#f29c83;border-color:#d67b60}
html[data-theme=dark] :is(.warnings,.notice,.uncertain,#measurements input.pending){background:#342b20;border-color:#665335;color:#dfbc86}
html[data-theme=dark] :is(.status.error,.error,.measurement-status.pending){color:#f29583}
html[data-theme=dark] :is(.eyebrow,.launch-action,.summary strong,.attachment-zip-link){color:#ee8c74}
html[data-theme=dark] .location-line.gross .location-value{color:#d3b27d}
html[data-theme=dark] .location-line.dynamic .location-value{color:#90bac6}
html[data-theme=dark] .location-label{color:#8e9caf}
html[data-theme=dark] :is(.archive-table th,.presence-table th,th){background:#171e28;color:#a0afc3;border-color:#354051}
html[data-theme=dark] :is(.archive-table td,.presence-table td){background:transparent;border-color:#303a48}
html[data-theme=dark] :is(.archive-table tbody tr:hover,tbody tr:hover){background:#252f3c}
html[data-theme=dark] :is(.archive-table td button:first-child,.actions button:not(.primary)){background:#3b2c26;color:#efa188;border-color:#744d3c}
html[data-theme=dark] :is(.cube,.launch-icon){background:#382a25;color:#cfa18c}
html[data-theme=dark] .avatar{background:#383043;color:#c7b7da}
html[data-theme=dark] .product-brand{background:#322b40;color:#beabd7;border-color:#4b3d61}
html[data-theme=dark] #loginPanel{background:#1c232d;border-color:#303a48}
html[data-theme=dark] .toast{background:#d4deeb;color:#182230}
@media(max-width:480px){.theme-toggle{gap:6px;padding:5px 7px;min-height:34px;font-size:10px}.account{flex-wrap:wrap;justify-content:flex-end}}

.app-revision{display:block;width:fit-content;margin-top:12px;padding:4px 8px;border:1px solid #45424a;border-radius:4px;color:#eeaa92;font:500 10px 'DM Sans',sans-serif;letter-spacing:1.2px;line-height:1.4}@media(max-width:850px){.app-revision{font-size:8px;margin-top:6px;padding:3px 6px}}

/* The current workspace section owns its navigation indicator. */
:is(.sidebar,.operations-sidebar) nav a::after{content:none}
:is(.sidebar,.operations-sidebar) nav a.active::after{content:"";display:block;width:5px;height:5px;min-width:5px;margin-left:auto;border-radius:50%;background:#e77c61;flex-shrink:0}
