.display-preferences{display:flex;align-items:center;gap:8px;flex-shrink:0}.language-switch{display:flex;padding:3px;background:#f0f4f5;border:1px solid #e3e9ec;border-radius:7px;gap:2px}.language-switch button{font-size:10px;font-weight:600;color:#80919c;border-radius:4px;padding:5px 7px;background:transparent;min-width:29px}.language-switch button.selected{background:white;color:#167b67;box-shadow:0 1px 4px #142c4212}.display-preferences #theme-toggle{display:grid;place-items:center;background:white;border:1px solid #dfe6ea;border-radius:7px;width:31px;height:31px;font-size:18px;color:#55716b;line-height:1}.header-right{gap:9px;flex-shrink:0}header #breadcrumb{min-width:0;line-height:1.7}.header-right>.icon-button{margin:0 3px}.header-right .role-control{gap:5px}.header-right .role-control select{padding:7px 6px}.header-right .role-control>span{display:none}html{color-scheme:light}html[data-theme="dark"]{color-scheme:dark}
@media screen{
html[data-theme="dark"]{--navy:#e4edf4;--green:#62c9aa;--mint:#18392f;--ink:#dce6ed;--muted:#9cabb8;--line:#2d3d49;--bg:#10191f;--surface:#19262f;--surface-raised:#21323d;--subtle:#93a7b6}
html[data-theme="dark"] :is(.sidebar,header,.panel,.stat,.modal,.stepper){background:var(--surface)}
html[data-theme="dark"] :is(nav>button,.btn.secondary,.icon-button,.thumb button,.display-preferences #theme-toggle){background:var(--surface);border-color:var(--line);color:#c2d1dc}
html[data-theme="dark"] nav>button.active{background:#183e33;color:#75d7b6}
html[data-theme="dark"] :is(input,select,textarea){background:#14212a;border-color:#3a4d5a;color:#dbe7ef}
html[data-theme="dark"] :is(input,select,textarea):focus{border-color:#62c9aa;box-shadow:0 0 0 3px #62c9aa18}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#8297a7}
html[data-theme="dark"] :is(input,select,textarea):disabled,html[data-theme="dark"] .section-fields:disabled :is(input,select,textarea),html[data-theme="dark"] #section-02 :is(input,select):disabled,html[data-theme="dark"] .job-aside :is(input,select):disabled{background:#202d36;border-color:#34434e;color:#94a9b7;-webkit-text-fill-color:#94a9b7;opacity:1}
html[data-theme="dark"] :is(.description,.field-label,.form-field,.stat .label,.stat small,.panel-head p,.table-bottom,.empty,.subnav,.subbuttons button,.activity small,.activity time,.profile-head p,.timeline small,.parts-heading small,.item-subtotal,footer,.workspace,.side-note small,.sync-line,.user small,.company small,.brand small,.tabs button,header,.search span,.summary-line,.stepper span,.flow>div){color:var(--subtle)}
html[data-theme="dark"] :is(td,.code,.row-arrow,.back){color:#b2c5d3;border-color:var(--line)}
html[data-theme="dark"] :is(h1,h2,h3,.company b,.summary-line b,.field-value,.item-title,.activity p,.timeline p){color:#deebf2}
html[data-theme="dark"] :is(th,.parts-table th){background:#1e303a;color:#a7bbc9;border-color:var(--line)}
html[data-theme="dark"] tbody tr.clickable:hover{background:#203b36}
html[data-theme="dark"] :is(.company-mark,.activity-dot,.stat-icon,.flow i,.stepper b){background:#203e35;color:#80d7b7}
html[data-theme="dark"] .avatar{background:#2b3b50;color:#b8cde5}
html[data-theme="dark"] .btn{background:#24876f;color:#fff}
html[data-theme="dark"] .btn.ghost{background:transparent;color:#8bceb8}
html[data-theme="dark"] :is(.badge,.info-note,.role-banner,.warranty-banner){background:#1b3b30;color:#95dfbe;border-color:#315a47}
html[data-theme="dark"] .badge.blue,html[data-theme="dark"] .role-banner.technician{background:#23394e;color:#a3c7ed;border-color:#35506a}
html[data-theme="dark"] .badge.orange{background:#443920;color:#edcd7e}
html[data-theme="dark"] .badge.red,html[data-theme="dark"] .btn.danger{background:#452a28;color:#f0aaa0}
html[data-theme="dark"] .badge.gray,html[data-theme="dark"] .pill{background:#2b3a45;color:#b0c1cd}
html[data-theme="dark"] .warranty-banner{background:#1b3b30!important;color:#95dfbe!important}
html[data-theme="dark"] .warranty-banner[style*="fff4"]{background:#443920!important;color:#edcd7e!important}
html[data-theme="dark"] :is(.role-banner strong,.role-banner.technician strong){background:#162c31;color:#9bd8cc}
html[data-theme="dark"] .role-control select{background:#1b3b30;color:#a5e2cb;border-color:#3c6557}
html[data-theme="dark"] .language-switch{background:#111e26;border-color:var(--line)}
html[data-theme="dark"] .language-switch button{color:#a0b6c4}
html[data-theme="dark"] .language-switch button.selected{background:#284338;color:#a0e7c5;box-shadow:none}
html[data-theme="dark"] :is(.parts-heading,.parts-table,.item-card,.warranty-result,.activity,.big-total,.timeline){border-color:var(--line)}
html[data-theme="dark"] .upload{background:#162e28;border-color:#4b7965;color:#b2d9c7}
html[data-theme="dark"] .remove-part{background:#432a29;border-color:#65423d;color:#f0b2a7}
html[data-theme="dark"] .master-price{color:#94dcbf!important}
html[data-theme="dark"] .item-subtotal strong{color:#8de0bb}
html[data-theme="dark"] .modal-head button{background:#2d404c;color:#dbe7ee}
html[data-theme="dark"] .modal-overlay{background:#030b13ae}
html[data-theme="dark"] canvas{background:#f5f7f5;border-color:#688080}
html[data-theme="dark"] .stat-foot{color:#7bd6b2}
html[data-theme="dark"] #toast{background:#215b46;color:#e5fff1}
html[data-theme="dark"] .tabs button.active{color:#7bd6b2}
html[data-theme="dark"] .stepper span.done{color:#7bd6b2}
html[data-theme="dark"] *{scrollbar-color:#4b636d #17242c}
}
@media(max-width:1100px){header{gap:14px}.header-right{gap:6px}.header-right>.demo-dot{display:none}}
@media(max-width:760px){header{height:auto;min-height:64px;padding:12px 16px;gap:10px;flex-wrap:wrap}header #breadcrumb{font-size:9px}.header-right{font-size:0;gap:7px;margin-left:auto}.header-right>.avatar{display:none}.header-right .role-control select{font-size:10px}.display-preferences{gap:6px}.header-right .icon-button{margin:0}.language-switch button{padding:4px 6px}.display-preferences #theme-toggle{width:28px;height:28px}}
@media print{.display-preferences{display:none!important}html[data-theme="dark"]{color-scheme:light;--navy:#142c42;--green:#167b67;--ink:#223649;--line:#e6ebef;--bg:white}body{color:#223649!important;background:white!important}}
