/* Generated by tools/build_dark_css.py from app.css and theme.css. Do not edit by hand:
   change tools/dark_extra.css or the light stylesheets, then run the script again. */
@media screen{
/* app.css */
html[data-theme=dark]{color:var(--ink)}
html[data-theme=dark] body{background:var(--bg)}
html[data-theme=dark] a{color:inherit}
html[data-theme=dark] button:focus-visible,html[data-theme=dark] a:focus-visible,html[data-theme=dark] input:focus-visible,html[data-theme=dark] select:focus-visible,html[data-theme=dark] textarea:focus-visible{outline:3px solid #e6b530}
html[data-theme=dark] .muted{color:var(--muted)}
html[data-theme=dark] .red-text{color:var(--red)}
html[data-theme=dark] .sr-only{border:0}
html[data-theme=dark] .skip-link{background:#0e0e0e}
html[data-theme=dark] .sidebar{background:#0e0e0e;border-right:1px solid var(--line)}
html[data-theme=dark] .brand img{border:1px solid var(--line)}
html[data-theme=dark] .brand small{color:var(--muted)}
html[data-theme=dark] .workspace-label{border:1px solid var(--line);color:#b0b2b5;background:#0b1116}
html[data-theme=dark] .live-dot{background:#84a796}
html[data-theme=dark] .nav-label{color:var(--muted)}
html[data-theme=dark] .nav-item{color:var(--muted)}
html[data-theme=dark] .nav-item:hover{background:#0f1218;color:var(--ink)}
html[data-theme=dark] .nav-item.active{color:var(--red);background:#1e0b0b}
html[data-theme=dark] .nav-item.active:before{background:var(--red)}
html[data-theme=dark] .brand-note{background:#1a170f}
html[data-theme=dark] .brand-rule{background:linear-gradient(90deg,var(--red) 50%,var(--yellow) 50%)}
html[data-theme=dark] .brand-note p{color:var(--muted)}
html[data-theme=dark] .local-tag{color:var(--muted)}
html[data-theme=dark] .topbar{background:#0e0e0e;border-bottom:1px solid var(--line)}
html[data-theme=dark] .breadcrumb{color:var(--muted)}
html[data-theme=dark] .breadcrumb span{color:var(--muted)}
html[data-theme=dark] .breadcrumb strong{color:#c1c4c8}
html[data-theme=dark] .global-search{color:var(--muted)}
html[data-theme=dark] .global-search input{border:0;background:transparent;outline:none;color:#c3c5c8}
html[data-theme=dark] .branch-select{border:1px solid var(--line)}
html[data-theme=dark] .branch-select select{border:0;background:transparent;color:#bbbec1;outline:none}
html[data-theme=dark] .avatar{background:#322013;color:#d6c0b1;border:3px solid #212121;outline:1px solid var(--line)}
html[data-theme=dark] .icon-button{border:0;background:transparent;color:var(--muted)}
html[data-theme=dark] .icon-button:hover{background:var(--bg)}
html[data-theme=dark] .eyebrow{color:var(--muted)}
html[data-theme=dark] .page-subtitle{color:var(--muted)}
html[data-theme=dark] .btn{border:1px solid #30363f;background:#0e0e0e;color:#bcbec2}
html[data-theme=dark] .btn:hover{background:#121419;border-color:#49515c}
html[data-theme=dark] .btn.primary{background:var(--red);color:#ffffff;border-color:var(--red);box-shadow:0 2px 3px rgba(0,0,0,0.157)}
html[data-theme=dark] .btn.primary:hover{background:#b92832;border-color:#d22d39}
html[data-theme=dark] .text-link{color:#b0b2b5}
html[data-theme=dark] .text-link:hover{color:var(--red)}
html[data-theme=dark] .icon-link{color:var(--muted)}
html[data-theme=dark] .icon-link:hover{color:var(--red)}
html[data-theme=dark] .record-link{color:#c9ccd1}
html[data-theme=dark] .record-link:hover{color:var(--red)}
html[data-theme=dark] .segment{border:1px solid var(--line);background:#14181e}
html[data-theme=dark] .segment a{color:var(--muted)}
html[data-theme=dark] .segment .selected{background:#0e0e0e;color:#c9cccf;box-shadow:0 1px 4px rgba(0,0,0,0.127)}
html[data-theme=dark] .date-caption{color:var(--muted)}
html[data-theme=dark] .metric{border:1px solid var(--line);background:var(--surface)}
html[data-theme=dark] .metric-label{color:var(--muted)}
html[data-theme=dark] .amber{background:#292310;color:#eed389}
html[data-theme=dark] .green{background:#0f271a;color:#9ed6bc}
html[data-theme=dark] .blue{background:#0d1823;color:#9bafca}
html[data-theme=dark] .red{background:#1e0b0d;color:#c76d72}
html[data-theme=dark] .metric-value small{color:var(--muted)}
html[data-theme=dark] .metric-value sup{color:var(--muted)}
html[data-theme=dark] .metric-foot{color:var(--muted)}
html[data-theme=dark] .mini-dot.green{background:#579678}
html[data-theme=dark] .mini-dot.amber{background:#927a37}
html[data-theme=dark] .mini-dot.red{background:#883439}
html[data-theme=dark] .accent-metric{border-top:2px solid #612f32}
html[data-theme=dark] .panel{background:#0e0e0e;border:1px solid var(--line)}
html[data-theme=dark] .panel-head p{color:var(--muted)}
html[data-theme=dark] .subtle-badge{background:#0e1118;border:1px solid #272f39;color:var(--muted)}
html[data-theme=dark] .chart-summary>span{color:var(--muted)}
html[data-theme=dark] .chart-legend{color:var(--muted)}
html[data-theme=dark] .chart-legend i{background:#8f7836}
html[data-theme=dark] .chart-grid{background:repeating-linear-gradient(to top,#161c21 0px,#161c21 1px,transparent 1px,transparent 35px)}
html[data-theme=dark] .bar-column>span{color:var(--muted)}
html[data-theme=dark] .bar-value{color:var(--muted)}
html[data-theme=dark] .bar{background:#897334}
html[data-theme=dark] .bar.today{background:var(--red)}
html[data-theme=dark] .stock-total span{color:var(--muted)}
html[data-theme=dark] .stock-row{border-bottom:1px solid #252930}
html[data-theme=dark] .stock-row:last-of-type{border-bottom:0}
html[data-theme=dark] .stock-row small{color:var(--muted)}
html[data-theme=dark] .block-tile{background:#42341b;border-right:5px solid #6d5f46;border-bottom:4px solid #6b593b}
html[data-theme=dark] .block-tile.hollow i{background:#7e725c;box-shadow:inset 2px 2px 0 rgba(0,0,0,0.6)}
html[data-theme=dark] .panel-bottom-link{background:#0d0d14;border-top:1px solid var(--line);color:var(--muted)}
html[data-theme=dark] th{background:#0d1216;color:var(--muted);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
html[data-theme=dark] td{border-bottom:1px solid #232934;color:#b1b4b8}
html[data-theme=dark] tbody tr:last-child td{border-bottom:0}
html[data-theme=dark] tbody tr:hover{background:#0a0a14}
html[data-theme=dark] td small{color:var(--muted)}
html[data-theme=dark] .branch-cell strong{color:#b9bcc0}
html[data-theme=dark] .branch-cell small{color:var(--muted)}
html[data-theme=dark] .branch-icon{background:#121419;color:var(--muted);border:1px solid #262f37}
html[data-theme=dark] .count-badge{border:1px solid #665831;color:#f2deae;background:#211c0d}
html[data-theme=dark] .attention-item{border-top:1px solid #242732}
html[data-theme=dark] .attention-item:first-of-type{border-top:0}
html[data-theme=dark] .attention-item strong{color:#b4b6ba}
html[data-theme=dark] .attention-item p{color:var(--muted)}
html[data-theme=dark] .attention-item>.icon{color:var(--muted)}
html[data-theme=dark] .all-clear>span{background:#112417;color:var(--green)}
html[data-theme=dark] .all-clear p{color:var(--muted)}
html[data-theme=dark] .site-footer{color:var(--muted)}
html[data-theme=dark] .site-footer-inner{border-top:1px solid var(--line)}
html[data-theme=dark] .site-footer a{color:var(--ink);text-decoration-color:var(--line)}
html[data-theme=dark] .site-footer a:hover{text-decoration-color:currentColor}
html[data-theme=dark] .site-footer a:focus-visible{outline:3px solid #e6b530}
html[data-theme=dark] .legal-text p,html[data-theme=dark] .legal-text li{color:var(--ink)}
html[data-theme=dark] .dot-separator{color:var(--muted)}
html[data-theme=dark] .empty{color:var(--muted)}
html[data-theme=dark] .empty a{color:var(--red)}
html[data-theme=dark] .summary-strip{background:#0e0e0e;border:1px solid var(--line)}
html[data-theme=dark] .summary-strip>div{border-right:1px solid var(--line)}
html[data-theme=dark] .summary-strip>div:last-child{border:0}
html[data-theme=dark] .summary-strip span{color:var(--muted)}
html[data-theme=dark] .summary-strip strong small{color:var(--muted)}
html[data-theme=dark] .summary-note{color:var(--muted)}
html[data-theme=dark] .inline-search .icon{color:var(--muted)}
html[data-theme=dark] .inline-search input{background:transparent;border:none;outline:none;color:#afb2b6}
html[data-theme=dark] .key-values>div{border-bottom:1px solid #242b32}
html[data-theme=dark] .key-values span{color:var(--muted)}
html[data-theme=dark] .key-values .total{border-top:1px solid #2d343a;border-bottom:1px solid #2d343a}
html[data-theme=dark] .product-card{border:1px solid var(--line);background:#0e0e0e}
html[data-theme=dark] .product-count small{color:var(--muted)}
html[data-theme=dark] .product-meta{border-top:1px solid var(--line);color:var(--muted)}
html[data-theme=dark] .product-meta b{color:#afb2b6}
html[data-theme=dark] .customer-avatar{background:#2c2111;color:#d7c5b1}
html[data-theme=dark] .footnote{color:var(--muted)}
html[data-theme=dark] .flash{border:1px solid #29553a;background:#0d2213;color:#b6e0cb}
html[data-theme=dark] .flash.error{border-color:#54292b;background:#1e0b0d;color:#d49196}
html[data-theme=dark] .form-panel .panel-head{border-bottom:1px solid var(--line)}
html[data-theme=dark] .field label{color:#afb2b6}
html[data-theme=dark] .field label .required{color:var(--red)}
html[data-theme=dark] .field label small{color:var(--muted)}
html[data-theme=dark] .field input:not([type=checkbox]),html[data-theme=dark] .field select,html[data-theme=dark] .field textarea{border:1px solid #2d3741;background:#0e0e0e;color:#c4c7cb}
html[data-theme=dark] .field input:focus,html[data-theme=dark] .field select:focus,html[data-theme=dark] .field textarea:focus{border-color:#73373b;outline:3px solid rgba(207,48,56,0.039)}
html[data-theme=dark] .help{color:var(--muted)}
html[data-theme=dark] .form-error{background:#1e0b0d;border:1px solid #53282b;color:#d78e94}
html[data-theme=dark] .has-error input,html[data-theme=dark] .has-error select{border-color:#9a4a50!important}
html[data-theme=dark] .field-error{color:#da8b91}
html[data-theme=dark] .form-footer{border-top:1px solid var(--line)}
html[data-theme=dark] .aside-symbol{background:#1e0b0b;color:var(--red)}
html[data-theme=dark] .form-aside p{color:var(--muted)}
html[data-theme=dark] .aside-line{background:var(--line)}
html[data-theme=dark] .form-aside h4{color:var(--muted)}
html[data-theme=dark] .form-aside ul{color:var(--muted)}
html[data-theme=dark] .report-filters label{color:var(--muted)}
html[data-theme=dark] .report-filters input{border:1px solid var(--line);color:#aeb2b7;background:#0e0e0e}
html[data-theme=dark] .report-links>a{background:#0e0e0e;border:1px solid var(--line);color:var(--muted)}
html[data-theme=dark] .report-links>a .icon:first-child{color:var(--red)}
html[data-theme=dark] .report-links>a .icon:last-child{color:var(--muted)}
html[data-theme=dark] .activity-item{border-bottom:1px solid #222a32}
html[data-theme=dark] .activity-item:last-child{border-bottom:0}
html[data-theme=dark] .activity-item p{color:var(--muted)}
html[data-theme=dark] .activity-item small{color:var(--muted)}
html[data-theme=dark] .company-card{background:#0e0e0e;border:1px solid var(--line)}
html[data-theme=dark] .company-card p{color:var(--muted)}
html[data-theme=dark] .notice{background:#1e190b;border:1px solid #534928;color:#eedfb4}
html[data-theme=dark] .search-results>a{border-bottom:1px solid var(--line)}
html[data-theme=dark] .search-results>a span{color:var(--muted)}
html[data-theme=dark] .document-sheet{background:#0e0e0e;border:1px solid var(--line)}
html[data-theme=dark] .document-head{border-bottom:3px solid var(--red)}
html[data-theme=dark] .document-head strong{color:var(--muted)}
html[data-theme=dark] .document-parties p{color:var(--muted)}
html[data-theme=dark] .document-total span{color:var(--muted)}
html[data-theme=dark] .document-thanks{border-top:1px solid var(--line);color:#aeb2b7}
html[data-theme=dark] .document-thanks small{color:var(--muted)}
html[data-theme=dark] .login-story{background:#d3d7db}
html[data-theme=dark] .login-story .brand>span{color:#ffffff}
html[data-theme=dark] .login-story .brand small{color:#96a0a9}
html[data-theme=dark] .login-story .brand img{border-color:#c1c4c7}
html[data-theme=dark] .login-story-copy .eyebrow{color:#e2bc56}
html[data-theme=dark] .login-story-copy h1{color:#ffffff}
html[data-theme=dark] .login-story-copy>p{color:#a1acb6}
html[data-theme=dark] .login-tagline{color:#a1acb6}
html[data-theme=dark] .login-blocks div{background:#b5babf;border-right:20px solid #cdd1d5;border-bottom:16px solid #c7ccd0}
html[data-theme=dark] .login-blocks div:nth-child(2){background:#c03940;border-right-color:#c73842;border-bottom-color:#c83741}
html[data-theme=dark] .login-blocks div:nth-child(3){background:#dbb447;border-right-color:#c4a13b;border-bottom-color:#c4a13d}
html[data-theme=dark] .login-form-side{background:#0e0e0e}
html[data-theme=dark] .login-note{color:var(--muted)}
html[data-theme=dark] .login-form-side>small{color:var(--muted)}
html[data-theme=dark] .error-page{background:#0e0e0e;border:1px solid var(--line)}
html[data-theme=dark] .error-page p{color:var(--muted)}
@media(max-width:1000px){html[data-theme=dark] .summary-strip>div:nth-child(2){border:0}}
@media(max-width:760px){html[data-theme=dark] .sidebar{box-shadow:10px 0 30px rgba(0,0,0,0.176)}
html[data-theme=dark] .nav-open .mobile-menu{background:#0e0e0e;box-shadow:0 1px 12px rgba(0,0,0,0.167)}}
html[data-theme=dark] .sidebar .nav-space{border-top:1px solid var(--line)}
html[data-theme=dark] .sidebar-bottom{border-top:1px solid var(--line)}
html[data-theme=dark] .summary-strip .summary-label{color:#aeb2b7}
html[data-theme=dark] .summary-strip .summary-symbol.green{color:#afe3cb;background:#102416}
html[data-theme=dark] .summary-strip .summary-symbol.amber{color:#efd69d;background:#2b2410}
html[data-theme=dark] .summary-strip .summary-symbol.red{color:#dc8990;background:#1e0b0d}
html[data-theme=dark] .summary-strip .summary-symbol.blue{color:#97b4d5;background:#0d1621}
html[data-theme=dark] .panel-head h2>.icon{color:#dc8990}
html[data-theme=dark] .badge.green{color:#afe3cb;background:#102416}
html[data-theme=dark] .badge.amber{color:#edd4a1;background:#2c2511}
html[data-theme=dark] .badge.blue{color:#97b4d5;background:#0d1621}
html[data-theme=dark] .badge.red{color:#dc8990;background:#1e0b0d}
html[data-theme=dark] .product-card .product-top .subtle-badge{background:#251f0e;border-color:#584d2b;color:#e4d5b4}
html[data-theme=dark] .record-link{color:#dd8b92}
html[data-theme=dark] .record-link:hover{color:#e6a8b1}
html[data-theme=dark] .segment .selected{color:#df8e95;box-shadow:0 1px 4px rgba(0,0,0,0.127),inset 0 -2px rgba(0,0,0,0.6)}
html[data-theme=dark] .password-toggle{border:0;background:transparent;color:var(--muted)}
html[data-theme=dark] .password-toggle:hover{color:var(--red);background:var(--red-soft)}
html[data-theme=dark] .nav-backdrop{background:rgba(0,0,0,0.64)}
@media(max-width:1250px){html[data-theme=dark] .global-search{background:#0e0e0e}}
html[data-theme=dark] .bal.owes{color:#dd8b92}
html[data-theme=dark] .bal.credit{color:#b2e9d1}
html[data-theme=dark] .bal.settled{color:var(--muted)}
html[data-theme=dark] .summary-strip strong .bal small{color:var(--muted)}
html[data-theme=dark] .chip{border:1px solid #343b44;background:#0e0e0e;color:#cacdd1}
html[data-theme=dark] .chip b{color:var(--muted)}
html[data-theme=dark] .chip:hover{border-color:#49525d}
html[data-theme=dark] .chip[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#ffffff}
html[data-theme=dark] .chip[aria-pressed=true] b{color:#d7dbe0}
@media screen and (max-width:1000px){html[data-theme=dark] .card-table tr{border-top:1px solid var(--line)}
html[data-theme=dark] .card-table tbody tr:hover{background:transparent}
html[data-theme=dark] .card-table td{border:0}
html[data-theme=dark] .card-table td::before{color:var(--muted)}}
html[data-theme=dark] table[data-keep-table] th:first-child,html[data-theme=dark] table[data-keep-table] td:first-child{background:#0e0e0e;box-shadow:1px 0 0 var(--line)}
html[data-theme=dark] table[data-keep-table] th:first-child{background:#0d1216}
html[data-theme=dark] .user-menu[open] summary{outline:2px solid #e6b530}
html[data-theme=dark] .user-panel{background:#0e0e0e;border:1px solid var(--line);box-shadow:0 12px 32px rgba(0,0,0,0.304)}
html[data-theme=dark] .user-role{color:var(--muted)}
html[data-theme=dark] .user-scope{color:#c4c7cb;border-top:1px solid var(--line)}
html[data-theme=dark] .user-signout{border:1px solid var(--line);background:#0e0e0e;color:#c4c7cb}
html[data-theme=dark] .user-signout:hover{background:var(--bg)}
html[data-theme=dark] .scope-bar{background:#292310;border:1px solid #665831;color:#f4e5bf}
html[data-theme=dark] .scope-bar>.icon{color:#efd69d}
html[data-theme=dark] .scope-bar .text-link{color:#f4e5bf}
html[data-theme=dark] .step:not(:last-child):after{background:var(--line)}
html[data-theme=dark] .step.done:not(:last-child):after{background:#34694f}
html[data-theme=dark] .step-mark{border:2px solid var(--line);background:#0e0e0e;color:var(--muted)}
html[data-theme=dark] .step-name{color:var(--ink)}
html[data-theme=dark] .step-detail{color:var(--muted)}
html[data-theme=dark] .step.done .step-mark{background:#102416;border-color:#3b795b;color:#afe3cb}
html[data-theme=dark] .step.current .step-mark{background:var(--red);border-color:var(--red);color:#ffffff;box-shadow:0 0 0 4px rgba(0,0,0,0.304)}
html[data-theme=dark] .step.current .step-name{color:#df8e95}
html[data-theme=dark] .step.locked .step-mark{background:#292310;border-color:#665831;color:#efd69d}
html[data-theme=dark] .step.partial .step-mark{background:#0e0e0e;border-color:#3b795b;color:#afe3cb}
html[data-theme=dark] .step.waiting .step-name{color:var(--muted)}
html[data-theme=dark] .step-actions{border-top:1px solid var(--line)}
html[data-theme=dark] .step-action{border-right:1px solid var(--line)}
html[data-theme=dark] .step-action:last-child{border-right:0}
html[data-theme=dark] .locked-note{background:#1e190b}
html[data-theme=dark] .locked-note>.icon{color:#efd69d}
html[data-theme=dark] .locked-note p{color:#f4e5bf}
html[data-theme=dark] .ready-note{background:#0d1f14}
html[data-theme=dark] .ready-note>.icon,html[data-theme=dark] .ready-note p{color:#afe3cb}
html[data-theme=dark] .ready-note .text-link{color:#afe3cb}
html[data-theme=dark] .labour-done{color:#afe3cb}
@media(max-width:1000px){html[data-theme=dark] .step-action{border-right:0;border-bottom:1px solid var(--line)}
html[data-theme=dark] .step-action:last-child{border-bottom:0}}
html[data-theme=dark] .form-note{color:var(--muted)}
html[data-theme=dark] .form-note .required{color:var(--red)}
html[data-theme=dark] .field-section{color:#c4c7cb;border-top:1px solid var(--line)}
html[data-theme=dark] .form-fields>.field-section:first-child{border-top:0}
html[data-theme=dark] .live-summary{background:#0e0e0e;border:1px solid var(--line)}
html[data-theme=dark] .summary-hint{color:var(--muted)}
html[data-theme=dark] .summary-list>div{border-bottom:1px solid var(--line)}
html[data-theme=dark] .summary-list dt{color:var(--muted)}
html[data-theme=dark] .live-summary .aside-small{color:var(--muted)}
html[data-theme=dark] .activity-day{color:#c4c7cb}
html[data-theme=dark] .attention-strip{background:#0e0e0e;border:1px solid #665831;border-left:4px solid #e6b530}
html[data-theme=dark] .attention-strip .attention-item{border-top:0}
html[data-theme=dark] .attention-strip .attention-item:hover strong{color:var(--red)}
html[data-theme=dark] .empty .empty-action{color:#c4c7cb}
html[data-theme=dark] .bar-column>.today-label{color:var(--red)}
@media(max-width:420px){html[data-theme=dark] .summary-strip>div{border-right:0}}
html[data-theme=dark] .stock-chip{border:1px solid var(--line);background:#0d0d14}
html[data-theme=dark] .stock-chip span small{color:var(--muted)}
html[data-theme=dark] .stock-chip strong small{color:var(--muted)}
html[data-theme=dark] .live-hint{color:#afe3cb}
html[data-theme=dark] .live-hint[data-kind="warn"]{color:#edd4a1}
html[data-theme=dark] .live-hint[data-kind="error"]{color:#dc8990}
html[data-theme=dark] .field select option:disabled{color:#9aa1a9}
html[data-theme=dark] .ready-title{color:#afe3cb}
html[data-theme=dark] .waiting-list li{background:#0e0e0e;border:1px solid #264c35}
html[data-theme=dark] .waiting-qty{color:var(--muted)}
html[data-theme=dark] .pay-history{border:1px solid var(--line)}
html[data-theme=dark] .pay-history li{border-bottom:1px solid var(--line)}
html[data-theme=dark] .pay-history li:last-child{border-bottom:0}
html[data-theme=dark] .pay-history small{color:var(--muted)}
html[data-theme=dark] .field.check label{color:var(--ink)}
html[data-theme=dark] .field.check input{accent-color:var(--red)}
html[data-theme=dark] .side-panel-backdrop{background:rgba(0,0,0,0.558)}
html[data-theme=dark] .side-panel-box{background:#0e0e0e;box-shadow:-18px 0 40px rgba(0,0,0,0.451)}
html[data-theme=dark] .panel-sheet-head p{color:var(--muted)}
html[data-theme=dark] .panel-sheet .form-footer{background:#0e0e0e}
html[data-theme=dark] .panel-loading{color:var(--muted)}
html[data-theme=dark] .void-link{color:#e29298}
html[data-theme=dark] .diff-short{color:#e29298}
html[data-theme=dark] .diff-over{color:#edd4a1}
html[data-theme=dark] .check-row{border-bottom:1px solid var(--line)}
html[data-theme=dark] .check-row:last-child{border-bottom:0}
html[data-theme=dark] .tick.ok{background:#102416;color:#afe3cb}
html[data-theme=dark] .tick.no{background:#1e0b0d;color:#dc8990}
html[data-theme=dark] .tick.wait{background:#14161b;color:var(--muted)}
html[data-theme=dark] .recon-row{border-bottom:1px solid var(--line)}
html[data-theme=dark] .recon-row.head{color:var(--muted)}
html[data-theme=dark] .recon-row input{border:1px solid #2d3741}
html[data-theme=dark] .recon-diff[data-kind="ok"]{color:#afe3cb}
html[data-theme=dark] .recon-diff[data-kind="diff"]{color:#dc8990}
html[data-theme=dark] .close-choose a{border:1px solid var(--line)}
html[data-theme=dark] .close-choose a:hover{border-color:#49515c}
html[data-theme=dark] .close-done{background:#102416;border-color:#326448;color:#bce9d4}
html[data-theme=dark] .close-done>.icon{color:#afe3cb}
html[data-theme=dark] .board-col{background:#161a20}
html[data-theme=dark] .board-col-head p{color:var(--muted)}
html[data-theme=dark] .board-count{background:#0e0e0e;color:#c4c7cb}
html[data-theme=dark] .order-card{background:#0e0e0e;border:1px solid var(--line)}
html[data-theme=dark] .order-card.overdue{border-color:#633033;box-shadow:inset 3px 0 0 var(--red)}
html[data-theme=dark] .order-card-sub{color:var(--muted)}
html[data-theme=dark] .overdue-text{color:#e29298}
html[data-theme=dark] .order-bar{background:#161a20}
html[data-theme=dark] .order-bar i{background:#3f9a6f}
html[data-theme=dark] .board-empty{color:var(--muted);border:1px dashed #38424d}
html[data-theme=dark] .section-tabs{border-bottom:1px solid var(--line)}
html[data-theme=dark] .section-tabs a{color:var(--muted);border-bottom:2px solid transparent}
html[data-theme=dark] .section-tabs a:hover{color:var(--ink)}
html[data-theme=dark] .section-tabs a.on{color:#df8e95;border-bottom-color:var(--red)}
html[data-theme=dark] .task-row{border-bottom:1px solid var(--line)}
html[data-theme=dark] .task-row:last-child{border-bottom:0}
html[data-theme=dark] .task-mark.red{background:#1e0b0d;color:#dc8990}
html[data-theme=dark] .task-mark.amber{background:#2c2511;color:#edd4a1}
html[data-theme=dark] .task-mark.blue{background:#0d1621;color:#97b4d5}
html[data-theme=dark] .task-mark.grey{background:#14181e;color:#c0c3c6}
html[data-theme=dark] .task-text small{color:var(--muted)}
html[data-theme=dark] .palette-backdrop{background:rgba(0,0,0,0.558)}
html[data-theme=dark] .palette-box{background:#0e0e0e;box-shadow:0 30px 70px rgba(0,0,0,0.6)}
html[data-theme=dark] .palette-input{border-bottom:1px solid var(--line)}
html[data-theme=dark] .palette-input input{border:0;outline:none;background:transparent}
html[data-theme=dark] .palette-input kbd{color:var(--muted);border:1px solid var(--line)}
html[data-theme=dark] .pal-group{color:var(--muted)}
html[data-theme=dark] .pal-item small{color:var(--muted)}
html[data-theme=dark] .pal-item.on{background:#1e0b0b}
html[data-theme=dark] .pal-item.on span{color:#df8e95}
html[data-theme=dark] .pal-empty{color:var(--muted)}
html[data-theme=dark] .kbd-btn{color:var(--muted);border:1px solid var(--line);background:#0f1218}
html[data-theme=dark] .chip[aria-current="true"]{background:var(--ink);border-color:var(--ink);color:#ffffff}
html[data-theme=dark] .chip[aria-current="true"] b{color:#d7dbe0}
html[data-theme=dark] .pager{border-top:1px solid var(--line)}
html[data-theme=dark] .pager-info{color:var(--muted)}
html[data-theme=dark] .pager-page{color:var(--muted)}
html[data-theme=dark] .order-lines{border:1px solid var(--line)}
html[data-theme=dark] .order-lines legend{color:#afb2b6}
html[data-theme=dark] .order-lines legend .required{color:var(--red)}
html[data-theme=dark] .line-head{color:var(--muted)}
html[data-theme=dark] .line-row{border-top:1px solid #242b32}
html[data-theme=dark] .line-row:first-of-type{border-top:0}
html[data-theme=dark] .line-row select,html[data-theme=dark] .line-row input{border:1px solid #2d3741;background:#0e0e0e;color:#c4c7cb}
html[data-theme=dark] .line-row.has-error select,html[data-theme=dark] .line-row.has-error input{border-color:#6e3539}
html[data-theme=dark] .line-foot{border-top:1px solid var(--line)}
html[data-theme=dark] .order-total{color:var(--muted)}
html[data-theme=dark] .order-total strong{color:var(--ink)}
@media (max-width:640px){html[data-theme=dark] .line-row .line-label{color:#afb2b6}}
html[data-theme=dark] .radio-field{border:0}
html[data-theme=dark] .radio-field legend{color:#afb2b6}
html[data-theme=dark] .radio-field legend .required{color:var(--red)}
html[data-theme=dark] .radio-field label,html[data-theme=dark] .radio-row label{border:1px solid #2d3741;color:var(--ink)}
html[data-theme=dark] .radio-field label:has(input:checked),html[data-theme=dark] .radio-row label:has(input:checked){border-color:var(--red);background:var(--red-soft)}
html[data-theme=dark] .radio-field input,html[data-theme=dark] .radio-row input{accent-color:var(--red)}
html[data-theme=dark] .product-split{color:var(--muted)}
html[data-theme=dark] .stock-chip.low{border-color:#746438;background:#211c0d}
html[data-theme=dark] .stock-chip .chip-foot{color:var(--muted)}
html[data-theme=dark] .stock-chip.low .chip-foot{color:#efd69d}
html[data-theme=dark] .reorder-row{border-bottom:1px solid #242b32}
html[data-theme=dark] .reorder-row label small{color:var(--muted)}
html[data-theme=dark] .reorder-input{color:var(--muted)}
html[data-theme=dark] .reorder-input input{border:1px solid #2d3741}
html[data-theme=dark] .message-form .message-to{color:var(--muted)}
html[data-theme=dark] .message-last{color:var(--green)}
html[data-theme=dark] .message-status{background:#0d1722;color:#a4c1e0}
html[data-theme=dark] .message-status[data-kind=ok]{background:#0d2213;color:#b6e0cb}
html[data-theme=dark] .message-status[data-kind=error]{background:#1e0b0d;color:#d49196}
html[data-theme=dark] .btn.whatsapp{background:#1c7c54;border-color:#2fd08d}
html[data-theme=dark] .btn.whatsapp:hover{background:#b5d9ca;border-color:#bdddd0}
html[data-theme=dark] .message-log li{border-top:1px solid #242b32}
html[data-theme=dark] .message-log li small{color:var(--muted)}
html[data-theme=dark] .document-signatures span{color:var(--muted)}
html[data-theme=dark] .document-signatures i{border-bottom:1px solid #606a75}
html[data-theme=dark] .shared-page{background:var(--bg)}
html[data-theme=dark] .shared-note{color:var(--muted)}
html[data-theme=dark] .offline-panel p{color:var(--muted)}
html[data-theme=dark] .offline-bar{background:#0d1722;color:#a4c1e0;border:1px solid #24374c}
html[data-theme=dark] .offline-bar[data-kind=warn]{background:#211c0d;border-color:#746438;color:#f2dcaa}
html[data-theme=dark] .offline-bar[data-kind=error]{background:#1e0b0d;border-color:#54292b;color:#d49196}
html[data-theme=dark] .offline-bar a,html[data-theme=dark] .offline-bar .text-link{color:inherit}
html[data-theme=dark] .yard-card{background:#0e0e0e;border:1px solid var(--line)}
html[data-theme=dark] .yard-card>p{color:var(--muted)}
html[data-theme=dark] .yard-num{background:#15191d;color:#c2c5c8}
html[data-theme=dark] .yard-num.amber{background:#2b2410;color:#efd69d}
html[data-theme=dark] .yard-num.blue{background:#0e1825;color:#a4c1e0}
html[data-theme=dark] .yard-list a{border:1px solid var(--line)}
html[data-theme=dark] .yard-list a:hover{border-color:#73373c;background:#180909}
html[data-theme=dark] .yard-list a span,html[data-theme=dark] .yard-list.plain span{color:var(--muted)}
html[data-theme=dark] .yard-list.plain li{border-bottom:1px solid #242b32}
html[data-theme=dark] .yard-list.plain li strong{color:var(--ink)}
html[data-theme=dark] .phone-app{background:var(--bg)}
html[data-theme=dark] .phone-top{background:var(--ink);color:#ffffff}
html[data-theme=dark] .phone-top img{background:#0e0e0e}
html[data-theme=dark] .phone-top small{color:#c5ccd4}
html[data-theme=dark] .phone-top .icon-button{color:#ffffff}
html[data-theme=dark] .phone-top .icon-button:hover{background:rgba(14,14,14,0.102)}
html[data-theme=dark] .phone-empty{color:var(--muted)}
html[data-theme=dark] .load-card{background:#0e0e0e;border:1px solid var(--line)}
html[data-theme=dark] .load-top span:not(.badge){color:var(--muted)}
html[data-theme=dark] .load-where{color:#c4c7cb}
html[data-theme=dark] .load-meta{color:var(--muted)}
html[data-theme=dark] .phone-list{background:#0e0e0e;border:1px solid var(--line)}
html[data-theme=dark] .phone-list li{border-top:1px solid #242b32}
html[data-theme=dark] .phone-list li:first-child{border-top:0}
html[data-theme=dark] .phone-list small{color:var(--muted)}
html[data-theme=dark] .phone-note{color:var(--muted)}
html[data-theme=dark] .phone-tabs{background:#0e0e0e;border-top:1px solid var(--line)}
html[data-theme=dark] .phone-tabs a{color:var(--muted)}
html[data-theme=dark] .phone-tabs a[aria-current=page]{color:var(--red)}
html[data-theme=dark] .phone-form{background:#0e0e0e;border:1px solid var(--line)}
html[data-theme=dark] .phone-form .field label,html[data-theme=dark] .money-field legend{color:var(--ink)}
html[data-theme=dark] .count-stepper .icon-button{border:1px solid #2d3741;background:#0e0e0e;color:var(--ink)}
html[data-theme=dark] .photo-drop{border:2px dashed #38424d}
html[data-theme=dark] .photo-field input[type=file]:focus-visible+.photo-preview,html[data-theme=dark] .photo-field:focus-within .photo-drop{outline:3px solid #e6b530}
html[data-theme=dark] .photo-drop .icon{color:var(--red)}
html[data-theme=dark] .photo-drop strong{color:var(--ink)}
html[data-theme=dark] .photo-drop small{color:var(--muted)}
html[data-theme=dark] .money-field{border:1px solid var(--line)}
html[data-theme=dark] .phone-app .offline-bar{border-left:0;border-right:0}
html[data-theme=dark] .field .radio-row input[type=radio],html[data-theme=dark] .radio-field input[type=radio]{border:0}
html[data-theme=dark] .glance-tile{background:#0e0e0e;border:1px solid var(--line)}
html[data-theme=dark] .glance-tile:hover{border-color:#73373c}
html[data-theme=dark] .glance-tile>span{color:var(--muted)}
html[data-theme=dark] .glance-tile strong small{color:var(--muted)}
html[data-theme=dark] .glance-tile strong em{color:var(--muted)}
html[data-theme=dark] .glance-tile>small{color:var(--muted)}
html[data-theme=dark] .glance-tile.warn{border-color:#746438;background:#211c0d}
html[data-theme=dark] .fulfil-row{border-top:1px solid #242b32}
html[data-theme=dark] .fulfil-mark{background:#0d1722;color:#a4c1e0}
html[data-theme=dark] .fulfil-row.stock .fulfil-mark{background:#102416;color:#afe3cb}
html[data-theme=dark] .fulfil-row.produce .fulfil-mark{background:#2b2410;color:#efd69d}
html[data-theme=dark] .fulfil-text small{color:var(--muted)}
html[data-theme=dark] .line-hint[data-kind=error]{color:#da8b91}
html[data-theme=dark] .small-select{border:1px solid #2d3741;background:#0e0e0e}
html[data-theme=dark] .date-range .control{border:1px solid #2d3741;background:#0e0e0e}
html[data-theme=dark] tr.row-alert td{background:var(--red-soft)}
html[data-theme=dark] .document-branch{color:var(--muted)}
html[data-theme=dark] .document-meta{color:#c4c7cb}
html[data-theme=dark] tfoot th{border-top:2px solid var(--line)}
html[data-theme=dark] .staff-line small{color:var(--muted)}
html[data-theme=dark] .share{background:#161a20}
html[data-theme=dark] .share i{background:var(--yellow)}
html[data-theme=dark] .share.green i{background:var(--green)}
@media(max-width:420px){html[data-theme=dark] .summary-strip>div{border-right:0}
html[data-theme=dark] .summary-strip>div:nth-child(odd):not(:last-child){border-right:1px solid var(--line)}
html[data-theme=dark] .summary-strip>div:nth-child(n+3){border-top:1px solid var(--line)}}
html[data-theme=dark] .in-text{color:var(--green)}
html[data-theme=dark] .out-text{color:var(--red)}
html[data-theme=dark] .fin-card{border:1px solid var(--line);background:var(--surface)}
html[data-theme=dark] .fin-card-label{color:#c4c7cb}
html[data-theme=dark] .fin-card-note{color:var(--muted)}
html[data-theme=dark] .fin-card-icon{color:#ffffff;background:#686e75}
html[data-theme=dark] .fin-card.green{background:#0e2317;border-color:#28533a}
html[data-theme=dark] .fin-card.green .fin-card-icon{background:var(--green)}
html[data-theme=dark] .fin-card.green .fin-card-value{color:#b2e9d6}
html[data-theme=dark] .fin-card.red{background:#1d0b0b;border-color:#4d2527}
html[data-theme=dark] .fin-card.red .fin-card-icon{background:var(--red)}
html[data-theme=dark] .fin-card.red .fin-card-value{color:#e28388}
html[data-theme=dark] .fin-card.blue{background:#0d1522;border-color:#24334b}
html[data-theme=dark] .fin-card.blue .fin-card-icon{background:#3c6594}
html[data-theme=dark] .fin-card.blue .fin-card-label{color:#97b4d5}
html[data-theme=dark] .fin-card.amber{background:#27200f;border-color:#5d502d}
html[data-theme=dark] .fin-card.amber .fin-card-icon{background:#c8961f}
html[data-theme=dark] .fin-card.amber .fin-card-value{color:#efd69d}
html[data-theme=dark] .fin-grid{stroke:#292e38}
html[data-theme=dark] .fin-axis{fill:#afb2b6}
html[data-theme=dark] .fin-line{fill:none}
html[data-theme=dark] .fin-line.in{stroke:var(--green)}
html[data-theme=dark] .fin-line.out{stroke:var(--red)}
html[data-theme=dark] .fin-area.in{fill:var(--green)}
html[data-theme=dark] .fin-area.out{fill:var(--red)}
html[data-theme=dark] .fin-dot{stroke:#212121}
html[data-theme=dark] .fin-dot.in{fill:var(--green)}
html[data-theme=dark] .fin-dot.out{fill:var(--red)}
html[data-theme=dark] .fin-legend{color:#c4c7cb}
html[data-theme=dark] .fin-legend .in i{background:var(--green)}
html[data-theme=dark] .fin-legend .out i{background:var(--red)}
html[data-theme=dark] .fin-method{background:#0f1218}
html[data-theme=dark] .fin-method-head span{color:var(--muted)}
html[data-theme=dark] .fin-method small{color:var(--muted)}
html[data-theme=dark] .fin-owed li{background:#0f1218}
html[data-theme=dark] .fin-owed small{color:var(--muted)}
html[data-theme=dark] .fin-driver{border:1px solid var(--line)}
html[data-theme=dark] .fin-driver small{color:var(--muted)}
html[data-theme=dark] .fin-driver.holding{border-color:#5d502d;background:#1e180b}
html[data-theme=dark] .fin-driver.holding b{color:#efd69d}
html[data-theme=dark] .fin-driver-icon{background:#15191d;color:#b4b6ba}
html[data-theme=dark] .fin-recent li{border-top:1px solid #242b32}
html[data-theme=dark] .fin-recent li:first-child{border-top:0}
html[data-theme=dark] .fin-recent li>a:hover strong{color:var(--red)}
html[data-theme=dark] .fin-recent-icon.in{background:#102416;color:var(--green)}
html[data-theme=dark] .fin-recent-icon.out{background:#1e0b0d;color:var(--red)}
html[data-theme=dark] .fin-recent-text small{color:var(--muted)}
/* theme.css */
html[data-theme=dark]{color:var(--ink)}
html[data-theme=dark] body{background:var(--bg);color:var(--ink)}
html[data-theme=dark] button:focus-visible,html[data-theme=dark] a:focus-visible,html[data-theme=dark] input:focus-visible,html[data-theme=dark] select:focus-visible,html[data-theme=dark] textarea:focus-visible,html[data-theme=dark] summary:focus-visible{outline:3px solid #53282b}
html[data-theme=dark] .sidebar{background:#0e0e0e;border-right:1px solid var(--line)}
html[data-theme=dark] .side-head{border-bottom:1px solid var(--line-soft)}
html[data-theme=dark] .brand img{border:1px solid var(--line)}
html[data-theme=dark] .sidebar .brand>span{color:var(--red)}
html[data-theme=dark] .sidebar .brand small{color:var(--muted)}
html[data-theme=dark] .nav-group{border-bottom:1px solid var(--line-soft)}
html[data-theme=dark] .nav-group:last-child{border-bottom:0}
html[data-theme=dark] .sidebar .nav-label{color:var(--tone)}
html[data-theme=dark] .sidebar .nav-label::before{background:currentColor}
html[data-theme=dark] .sidebar .nav-item{color:var(--body)}
html[data-theme=dark] .sidebar .nav-item .icon{background:var(--tone-soft);color:var(--tone)}
html[data-theme=dark] .sidebar .nav-item:hover{background:#13151a;color:var(--ink)}
html[data-theme=dark] .sidebar .nav-item.active{background:var(--tone-soft);color:var(--tone)}
html[data-theme=dark] .sidebar .nav-item.active .icon{background:var(--tone);color:var(--on-tone)}
html[data-theme=dark] .sidebar-foot{color:var(--muted)}
html[data-theme=dark] .side-toggle{border:1px solid var(--line);background:#0e0e0e;color:var(--muted);box-shadow:var(--shadow-sm)}
html[data-theme=dark] .side-toggle:hover{color:var(--ink);border-color:#4f5966;box-shadow:var(--shadow-md)}
html[data-theme=dark] .side-tip{background:#e4e6e9;color:#ffffff;box-shadow:var(--shadow-md)}
html[data-theme=dark] .side-tip::before{background:inherit}
@media(max-width:760px){html[data-theme=dark] .sidebar{box-shadow:none}
html[data-theme=dark] .nav-open .sidebar{box-shadow:12px 0 40px rgba(0,0,0,0.55)}
html[data-theme=dark] .side-close{border:0;background:#13171e;color:var(--body)}
html[data-theme=dark] .side-close:hover{background:#1b1f27}}
html[data-theme=dark] .topbar{background:rgba(14,14,14,0.92);border-bottom:1px solid var(--line)}
html[data-theme=dark] .branch-select{border:1px solid var(--line);background:#0e0e0e}
html[data-theme=dark] .branch-select .icon{color:var(--muted)}
html[data-theme=dark] .branch-select select{color:var(--ink)}
html[data-theme=dark] .branch-select.scoped{background:var(--red-soft);border-color:#51272a}
html[data-theme=dark] .branch-select.scoped .icon,html[data-theme=dark] .branch-select.scoped select{color:var(--red-600)}
html[data-theme=dark] .global-search{border:1px solid var(--line);background:#0f1218;color:var(--muted)}
html[data-theme=dark] .global-search:focus-within{background:#0e0e0e;border-color:#6a3337}
html[data-theme=dark] .global-search input{color:var(--ink)}
html[data-theme=dark] .kbd-btn{background:#0e0e0e}
html[data-theme=dark] .quick-menu{background:#0e0e0e;border:1px solid var(--line);box-shadow:var(--shadow-md)}
html[data-theme=dark] .quick-menu a{color:var(--body)}
html[data-theme=dark] .quick-menu a:hover{background:#13151a;color:var(--ink)}
html[data-theme=dark] .quick-menu .icon{color:#afb2b6}
html[data-theme=dark] .user-chip:hover{background:#13151a}
html[data-theme=dark] .user-menu[open] summary{outline:0;background:#13151a}
html[data-theme=dark] .user-chip .avatar{border:0;outline:0;background:var(--red);color:#ffffff}
html[data-theme=dark] .user-chip-text small{color:var(--muted)}
html[data-theme=dark] .user-panel{box-shadow:var(--shadow-md)}
html[data-theme=dark] .crumbs{color:var(--muted)}
html[data-theme=dark] .crumbs span{color:#b3b9c2}
html[data-theme=dark] .btn{border-color:#2e3440;color:var(--body);box-shadow:var(--shadow-sm)}
html[data-theme=dark] .btn:hover{background:#0f1218;border-color:#3d4551}
html[data-theme=dark] .btn.primary{background:var(--red);border-color:var(--red);color:#ffffff;box-shadow:0 1px 2px rgba(0,0,0,0.6)}
html[data-theme=dark] .btn.primary:hover{background:var(--red-600);border-color:var(--red-600)}
html[data-theme=dark] .text-link{color:var(--body)}
html[data-theme=dark] .text-link:hover{color:var(--red)}
html[data-theme=dark] .record-link{color:var(--red-600)}
html[data-theme=dark] .subtle-badge{background:#13151a;border-color:var(--line)}
html[data-theme=dark] .chip{border-color:var(--line);box-shadow:var(--shadow-sm)}
html[data-theme=dark] .chip[aria-current=true]{background:var(--ink);border-color:var(--ink);color:#ffffff}
html[data-theme=dark] .chip[aria-current=true] b{color:#d7dbe0}
html[data-theme=dark] .segment{background:#161a20;border-color:transparent}
html[data-theme=dark] .segment .selected{color:var(--ink);box-shadow:var(--shadow-sm)}
html[data-theme=dark] .panel{border-color:var(--line);box-shadow:var(--shadow-sm)}
html[data-theme=dark] .panel-head h2>.icon{color:var(--red)}
html[data-theme=dark] .scope-bar{background:#1e180b;border-color:#56492a}
html[data-theme=dark] .empty-state{color:var(--muted)}
html[data-theme=dark] .summary-strip{background:transparent;border:0}
html[data-theme=dark] .summary-strip>div{background:#0e0e0e;border:1px solid var(--line)!important;box-shadow:var(--shadow-sm)}
html[data-theme=dark] .summary-strip>div:has(.summary-symbol.green){background:#0e2317;border-color:#264f37!important}
html[data-theme=dark] .summary-strip>div:has(.summary-symbol.amber){background:#27200f;border-color:#5d502d!important}
html[data-theme=dark] .summary-strip>div:has(.summary-symbol.red){background:#1d0b0b;border-color:#4d2527!important}
html[data-theme=dark] .summary-strip>div:has(.summary-symbol.blue){background:#0d1522;border-color:#24334b!important}
html[data-theme=dark] .summary-strip .summary-note{background:transparent;box-shadow:none}
html[data-theme=dark] th{background:#0e1118;color:var(--muted);border-color:var(--line)}
html[data-theme=dark] td{color:var(--body);border-bottom-color:var(--line-soft)}
html[data-theme=dark] tbody tr:hover{background:#0d1216}
html[data-theme=dark] .field label{color:#bec1c5}
html[data-theme=dark] .field input:not([type=checkbox]),html[data-theme=dark] .field select,html[data-theme=dark] .field textarea,html[data-theme=dark] .line-row select,html[data-theme=dark] .line-row input{border-color:#2f3642;color:var(--ink)}
html[data-theme=dark] .field input:focus,html[data-theme=dark] .field select:focus,html[data-theme=dark] .field textarea:focus{border-color:#6a3337;outline:3px solid #3e1e21}
html[data-theme=dark] .form-panel{box-shadow:var(--shadow-sm)}
html[data-theme=dark] .form-aside{background:#0e0e0e;border:1px solid var(--line)}
html[data-theme=dark] .fin-card{box-shadow:var(--shadow-sm)}
html[data-theme=dark] a.fin-card:hover{box-shadow:var(--shadow-md);border-color:#333a46}
html[data-theme=dark] .fin-card.purple{background:#110c20;border-color:#2b2247}
html[data-theme=dark] .fin-card.purple .fin-card-icon{background:var(--purple)}
html[data-theme=dark] .fin-card.purple .fin-card-label{color:var(--purple)}
html[data-theme=dark] .fin-card.teal{background:#0f2826;border-color:#285451}
html[data-theme=dark] .fin-card.teal .fin-card-icon{background:var(--teal)}
html[data-theme=dark] .fin-card.teal .fin-card-value{color:#b5f7f3}
html[data-theme=dark] .watch-list li{background:#0f1218}
html[data-theme=dark] .watch-list small{color:var(--muted)}
html[data-theme=dark] .watch-list li.warn{background:#231d0d}
html[data-theme=dark] .watch-list li.warn b{color:#efd69d}
@media(max-width:1250px) and (min-width:1001px){html[data-theme=dark] .global-search{background:#0f1218}}
html[data-theme=dark] .form-note{color:var(--muted)}
html[data-theme=dark] .form-panel .form-footer{background:#0e0e0e;border-top:1px solid var(--line)}
html[data-theme=dark] .board-col{background:#161a20}
html[data-theme=dark] .board-count{border:1px solid var(--line)}
html[data-theme=dark] .order-card{box-shadow:var(--shadow-sm);border-color:var(--line)}
html[data-theme=dark] .order-card:hover{box-shadow:var(--shadow-md)}
html[data-theme=dark] .order-card.overdue{border-color:var(--line);box-shadow:inset 3px 0 0 var(--red),var(--shadow-sm)}
html[data-theme=dark] .company-card{box-shadow:var(--shadow-sm)}
html[data-theme=dark] .login-story{background:#21110d;border-right:1px solid var(--line)}
html[data-theme=dark] .login-story .brand>span{color:var(--red)}
html[data-theme=dark] .login-story .brand small{color:var(--muted)}
html[data-theme=dark] .login-story .brand img{border-color:var(--line)}
html[data-theme=dark] .login-story-copy .eyebrow{color:var(--amber)}
html[data-theme=dark] .login-story-copy h1{color:var(--ink)}
html[data-theme=dark] .login-story-copy>p,html[data-theme=dark] .login-tagline{color:var(--muted)}
html[data-theme=dark] .login-blocks div:nth-child(1){background:#bec2c7;border-right-color:#d5d8db;border-bottom-color:#cdd1d4}
html[data-theme=dark] .stock-chip{border:1px solid var(--line);background:#0e0e0e}
html[data-theme=dark] .stock-chip>span small{color:var(--muted)}
html[data-theme=dark] .stock-chip>strong small{color:var(--muted)}
html[data-theme=dark] .stock-chip .chip-foot{color:var(--muted)}
html[data-theme=dark] .stock-chip.low{border-color:#5d502d;background:#27200f}
html[data-theme=dark] .stock-chip.low .chip-foot{color:#efd69d}
html[data-theme=dark] .price-table input{border:1px solid #2f3642}
html[data-theme=dark] .phone-top{background:#0e0e0e;color:var(--ink);border-bottom:1px solid var(--line);box-shadow:var(--shadow-sm)}
html[data-theme=dark] .phone-top small{color:var(--muted)}
html[data-theme=dark] .phone-top img{border:1px solid var(--line)}
html[data-theme=dark] .phone-top .icon-button{color:var(--muted)}
html[data-theme=dark] .phone-tabs{box-shadow:0 -4px 16px rgba(0,0,0,0.15)}
html[data-theme=dark] .phone-tabs a[aria-current=page]{color:var(--red)}
html[data-theme=dark] td.empty,html[data-theme=dark] .empty-state,html[data-theme=dark] p.empty{color:var(--muted)}
html[data-theme=dark] td.empty::before,html[data-theme=dark] .empty-state::before,html[data-theme=dark] p.empty::before{background:#14161c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a93a0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 5-9 5-9-5 9-5Z'/%3E%3Cpath d='M3 8v9l9 5 9-5V8M12 13v9'/%3E%3C/svg%3E") center/22px no-repeat}
html[data-theme=dark] .board-empty{background:rgba(14,14,14,0.6)}
html[data-theme=dark] .step.warn .step-mark{background:var(--amber-soft);border-color:#665831;color:var(--amber)}
html[data-theme=dark] .step.warn .step-name{color:var(--amber)}
html[data-theme=dark] .step.stopped .step-mark{background:#14161c;border-color:#343b44;color:var(--muted)}
html[data-theme=dark] .step.done:has(+.step.warn):after,html[data-theme=dark] .step.done:has(+.step.stopped):after{background:#262c32}
html[data-theme=dark] .count-check{color:var(--green)}
html[data-theme=dark] .count-check[data-kind=diff]{color:var(--amber)}
html[data-theme=dark] .brand-edit img{border:1px solid var(--line);background:#0e0e0e}
html[data-theme=dark] .theme-toggle{border:1px solid var(--line);background:var(--surface);color:var(--muted)}
html[data-theme=dark] .theme-toggle:hover{color:var(--ink);border-color:#3d4551}
html[data-theme=dark] .phone-top .theme-toggle{border:0;background:transparent}
html[data-theme=dark] .theme-choice{border-top:1px solid var(--line-soft)}
html[data-theme=dark] .theme-choice-label{color:var(--muted)}
html[data-theme=dark] .theme-choice .segment button{border:0;background:transparent;color:var(--muted)}
html[data-theme=dark] .theme-choice .segment button[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sm)}
html[data-theme=dark] .fin-card.insight-dark,html[data-theme=dark] .summary-strip>div.insight-dark{background:#e8ebed!important;border-color:#ebedef!important;box-shadow:0 6px 18px rgba(0,0,0,0.45)}
html[data-theme=dark] .insight-dark .fin-card-label,html[data-theme=dark] .insight-dark .summary-label{color:#c3cad3!important}
html[data-theme=dark] .insight-dark .fin-card-value,html[data-theme=dark] .insight-dark strong{color:#ffffff!important}
html[data-theme=dark] .insight-dark .fin-card-value small,html[data-theme=dark] .insight-dark strong small,html[data-theme=dark] .insight-dark .fin-card-note,html[data-theme=dark] .insight-dark .cell-sub{color:#a3acb8!important}
html[data-theme=dark] .insight-dark .bal.owes .bal-word,html[data-theme=dark] .insight-dark .red-text,html[data-theme=dark] .insight-dark .out-text{color:#ff8c93!important}
html[data-theme=dark] .insight-dark .bal.credit .bal-word,html[data-theme=dark] .insight-dark .bal.settled,html[data-theme=dark] .insight-dark .in-text{color:#72dca7!important}
html[data-theme=dark] .fin-card.insight-dark.green .fin-card-value{color:#72dca7!important}
html[data-theme=dark] .fin-card.insight-dark.red .fin-card-value{color:#ff8c93!important}
html[data-theme=dark] a.fin-card.insight-dark:hover{border-color:#d3d6da!important}
html[data-theme=dark] .summary-strip>div:nth-child(8n+1),html[data-theme=dark] .fin-cards>.fin-card:nth-child(8n+1){--tile:#2f2712;--tile-line:#6a5b33;--tile-ink:#f7e2b8}
html[data-theme=dark] .summary-strip>div:nth-child(8n+2),html[data-theme=dark] .fin-cards>.fin-card:nth-child(8n+2){--tile:#0e1726;--tile-line:#273752;--tile-ink:#9ebfec}
html[data-theme=dark] .summary-strip>div:nth-child(8n+3),html[data-theme=dark] .fin-cards>.fin-card:nth-child(8n+3){--tile:#12301e;--tile-line:#2f6243;--tile-ink:#bff1d8}
html[data-theme=dark] .summary-strip>div:nth-child(8n+4),html[data-theme=dark] .fin-cards>.fin-card:nth-child(8n+4){--tile:#270f12;--tile-line:#55292e;--tile-ink:#eb9ea8}
html[data-theme=dark] .summary-strip>div:nth-child(8n+5),html[data-theme=dark] .fin-cards>.fin-card:nth-child(8n+5){--tile:#140e25;--tile-line:#31264f;--tile-ink:#a895e0}
html[data-theme=dark] .summary-strip>div:nth-child(8n+6),html[data-theme=dark] .fin-cards>.fin-card:nth-child(8n+6){--tile:#143431;--tile-line:#326862;--tile-ink:#c2f7f4}
html[data-theme=dark] .summary-strip>div:nth-child(8n+7),html[data-theme=dark] .fin-cards>.fin-card:nth-child(8n+7){--tile:#2e1d11;--tile-line:#61442f;--tile-ink:#f5c5a6}
html[data-theme=dark] .summary-strip>div:nth-child(8n+8),html[data-theme=dark] .fin-cards>.fin-card:nth-child(8n+8){--tile:#171e26;--tile-line:#354050;--tile-ink:#d3d7dc}
html[data-theme=dark] .summary-strip>div:not(.insight-dark),html[data-theme=dark] .fin-cards>.fin-card:not(.insight-dark){background:var(--tile)!important;border-color:var(--tile-line)!important}
html[data-theme=dark] .fin-cards>.fin-card:not(.insight-dark) .fin-card-icon,html[data-theme=dark] .summary-strip>div:not(.insight-dark) .summary-symbol{background:var(--tile-icon)!important;color:#ffffff!important}
html[data-theme=dark] .fin-cards>.fin-card:not(.insight-dark) .fin-card-label,html[data-theme=dark] .fin-cards>.fin-card:not(.insight-dark) .fin-card-value,html[data-theme=dark] .summary-strip>div:not(.insight-dark) .summary-label,html[data-theme=dark] .summary-strip>div:not(.insight-dark)>strong{color:var(--tile-ink)!important}
html[data-theme=dark] .fin-cards>.fin-card:not(.insight-dark) .fin-card-note,html[data-theme=dark] .summary-strip>div:not(.insight-dark) small{color:color-mix(in srgb,var(--tile-ink) 78%,#ffffff)!important}
html[data-theme=dark] .mode-switch a,html[data-theme=dark] .mode-switch span{color:var(--muted)}
html[data-theme=dark] .mode-switch .selected.practice{background:#342c14;color:#f6e0b2;box-shadow:inset 0 -2px rgba(0,0,0,0.6)}
html[data-theme=dark] .mode-switch .selected.live{background:#112c1e;color:#b5f4d4;box-shadow:inset 0 -2px rgba(0,0,0,0.6)}
html[data-theme=dark] .mode-banner{background:#342c14;border-bottom:2px solid #e6b530;color:#f9eac5}
html[data-theme=dark] .mode-banner .icon{color:#f4d69a}
html[data-theme=dark] .list-card{background:var(--surface,#0e0e0e);border:1px solid var(--line);box-shadow:var(--shadow-sm)}
html[data-theme=dark] .list-search{border:1px solid var(--line);background:var(--surface,#0e0e0e);color:var(--muted)}
html[data-theme=dark] .list-search:focus-within{border-color:var(--red);box-shadow:0 0 0 3px rgba(0,0,0,0.35)}
html[data-theme=dark] .list-search input{border:0;outline:0;background:transparent;color:var(--ink)}
html[data-theme=dark] .count-dot{background:var(--red);color:#ffffff}
html[data-theme=dark] .list-filters{border-top:1px solid var(--line-soft)}
html[data-theme=dark] .list-filters label{color:var(--muted)}
html[data-theme=dark] .bulk-bar{border:1px solid var(--line);background:var(--surface,#0e0e0e)}
html[data-theme=dark] .list-table th{color:var(--muted);background:var(--surface,#0e0e0e);border-bottom:1px solid var(--line)}
html[data-theme=dark] .list-table th a{color:inherit}
html[data-theme=dark] .list-table th a:hover{color:var(--ink)}
html[data-theme=dark] .list-table th[aria-sort]{color:var(--ink)}
html[data-theme=dark] .list-table td{border-bottom:1px solid var(--line-soft);color:var(--body)}
html[data-theme=dark] .list-table tbody tr:last-child td{border-bottom:0}
html[data-theme=dark] .list-table tbody tr:hover{background:rgba(0,0,0,0.04)}
html[data-theme=dark] .list-table input[type=checkbox]{accent-color:var(--red)}
html[data-theme=dark] .list-table strong{color:var(--ink)}
html[data-theme=dark] .list-link{color:var(--red)}
html[data-theme=dark] .list-sub{color:var(--muted)}
html[data-theme=dark] .list-amount{color:var(--ink)}
html[data-theme=dark] .status-pill.draft{background:#14181e;color:#bec1c5}
html[data-theme=dark] .status-pill.sent{background:#0e1926;color:#83a9e2}
html[data-theme=dark] .status-pill.expired{background:#220d0f;color:#e9828a}
html[data-theme=dark] .row-icon{color:var(--muted)}
html[data-theme=dark] .row-icon:hover,html[data-theme=dark] .row-menu[open]>summary{background:rgba(0,0,0,0.112);color:var(--ink)}
html[data-theme=dark] .row-menu-list{background:var(--surface,#0e0e0e);border:1px solid var(--line);box-shadow:var(--shadow-md)}
html[data-theme=dark] .row-menu-list a,html[data-theme=dark] .row-menu-list button{border:0;background:transparent;color:var(--body)}
html[data-theme=dark] .row-menu-list a:hover,html[data-theme=dark] .row-menu-list button:hover{background:rgba(0,0,0,0.096);color:var(--ink)}
html[data-theme=dark] .row-menu-list .icon{color:var(--muted)}
html[data-theme=dark] .applied-tag{background:var(--surface,#0e0e0e);border:1px solid var(--line);color:var(--body)}
html[data-theme=dark] .applied-tag .icon{color:var(--muted)}
html[data-theme=dark] .applied-tag:hover{border-color:var(--red);color:var(--ink)}
html[data-theme=dark] .convert-btn{border-color:var(--red);color:var(--red);background:transparent}
html[data-theme=dark] .convert-btn:hover{background:var(--red);color:#ffffff}
html[data-theme=dark] .kpi-tile{border:1px solid color-mix(in srgb,var(--tone) 20%,var(--surface));background:linear-gradient(135deg,var(--tone-soft),var(--surface) 130%);box-shadow:var(--shadow-sm)}
html[data-theme=dark] .kpi-label{color:var(--tone)}
html[data-theme=dark] .kpi-icon{background:var(--tone);color:#ffffff}
html[data-theme=dark] .kpi-tile strong{color:var(--tone)}
html[data-theme=dark] .kpi-tile small{color:var(--muted)}
html[data-theme=dark] .view-toggle{border:1px solid var(--line);background:var(--surface)}
html[data-theme=dark] .view-toggle a{color:var(--body)}
html[data-theme=dark] .view-toggle a+a{border-left:1px solid var(--line)}
html[data-theme=dark] .view-toggle a[aria-current=true]{background:var(--bg);color:var(--ink)}
html[data-theme=dark] .banner-card{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-sm)}
html[data-theme=dark] .banner-card:hover{box-shadow:var(--shadow-md)}
html[data-theme=dark] .banner-card.current{border-color:var(--tone);box-shadow:0 0 0 3px color-mix(in srgb,var(--tone) 22%,transparent)}
html[data-theme=dark] .banner{background:linear-gradient(115deg,var(--tone),color-mix(in srgb,var(--tone) 62%,#0e0e0e))}
html[data-theme=dark] .banner::after{border:20px solid rgba(33,33,33,0.17)}
html[data-theme=dark] .avatar-tile{border:3px solid var(--surface);background:var(--surface);box-shadow:var(--shadow-sm);color:var(--tone)}
html[data-theme=dark] .tag-pill{background:var(--blue-soft);color:var(--blue)}
html[data-theme=dark] .tag-pill.green{background:var(--green-soft);color:var(--green)}
html[data-theme=dark] .tag-pill.grey{background:var(--bg);color:var(--muted)}
html[data-theme=dark] .tag-pill.amber{background:var(--amber-soft);color:var(--amber)}
html[data-theme=dark] .card-title h3{color:var(--ink)}
html[data-theme=dark] .card-sub{color:var(--muted)}
html[data-theme=dark] .meter-head{color:var(--muted)}
html[data-theme=dark] .meter-head b{color:var(--ink)}
html[data-theme=dark] .meter-track{background:var(--line-soft)}
html[data-theme=dark] .meter-fill{background:var(--tone,var(--green))}
html[data-theme=dark] .card-stats{border-top:1px solid var(--line-soft)}
html[data-theme=dark] .card-stats dt{color:var(--muted)}
html[data-theme=dark] .card-stats dd{color:var(--ink)}
html[data-theme=dark] .card-stats dd small{color:var(--muted)}
html[data-theme=dark] .card-stats dd.good{color:var(--green)}
html[data-theme=dark] .card-stats dd.bad{color:var(--red)}
html[data-theme=dark] .card-action{border:1px solid var(--line);background:var(--surface);color:var(--ink)}
html[data-theme=dark] .card-action:hover{background:var(--bg)}
html[data-theme=dark] .card-action.viewing{border-color:transparent;background:color-mix(in srgb,var(--tone) 13%,var(--surface));color:var(--tone)}
html[data-theme=dark] .add-card{border:2px dashed var(--line);background:transparent;color:var(--ink)}
html[data-theme=dark] .add-card:hover{border-color:var(--green);background:var(--green-soft)}
html[data-theme=dark] .add-card .plus{background:var(--green);color:#ffffff}
html[data-theme=dark] .add-card span{color:var(--muted)}
html[data-theme=dark] .section-head h2 small{color:var(--muted)}
html[data-theme=dark] .section-head p{color:var(--muted)}
html[data-theme=dark] .role-card{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-sm)}
html[data-theme=dark] .role-card-head h3{color:var(--ink)}
html[data-theme=dark] .role-card-head p{color:var(--muted)}
html[data-theme=dark] .role-icon{background:var(--tone-soft,var(--bg));color:var(--tone,var(--muted))}
html[data-theme=dark] .role-card-foot{border-top:1px solid var(--line-soft);color:var(--muted)}
html[data-theme=dark] .role-people{color:var(--muted)}
html[data-theme=dark] .role-people.has{color:var(--green)}
html[data-theme=dark] .members summary{color:var(--ink)}
html[data-theme=dark] .members ul{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-md)}
html[data-theme=dark] .members li{color:var(--ink)}
html[data-theme=dark] .members li:hover{background:var(--bg)}
html[data-theme=dark] .members-none{color:var(--muted)}
html[data-theme=dark] .role-tools-row .row-icon{border:0;background:none}
html[data-theme=dark] .row-icon.danger:hover{background:var(--red-soft);color:var(--red)}
html[data-theme=dark] .role-sheet .form-footer{background:var(--surface);border-top:1px solid var(--line)}
html[data-theme=dark] .role-page .form-footer{background:var(--surface);border-top:1px solid var(--line)}
html[data-theme=dark] .role-block+.role-block{border-top:1px solid var(--line-soft)}
html[data-theme=dark] .role-block-head h3{color:var(--ink)}
html[data-theme=dark] .role-block-head p{color:var(--muted)}
html[data-theme=dark] .role-preview{border:1px solid var(--line);background:var(--bg)}
html[data-theme=dark] .role-preview-text{color:var(--muted)}
html[data-theme=dark] .role-presets{color:var(--muted)}
html[data-theme=dark] .chip-btn{border:1px solid var(--line);background:var(--surface);color:var(--ink)}
html[data-theme=dark] .chip-btn:hover{background:var(--bg)}
html[data-theme=dark] .role-total{color:var(--muted)}
html[data-theme=dark] .role-total b{color:var(--ink)}
html[data-theme=dark] .link-btn{border:0;background:none;color:var(--green)}
html[data-theme=dark] .link-btn:hover{background:var(--green-soft)}
html[data-theme=dark] .link-btn.quiet{color:var(--muted)}
html[data-theme=dark] .perm-group{border:1px solid var(--line);background:var(--surface)}
html[data-theme=dark] .perm-group>summary::before{border-right:2px solid var(--muted);border-bottom:2px solid var(--muted)}
html[data-theme=dark] .perm-group[open]>summary{background:color-mix(in srgb,var(--green) 6%,var(--surface))}
html[data-theme=dark] .perm-title strong{color:var(--ink)}
html[data-theme=dark] .perm-title small{color:var(--muted)}
html[data-theme=dark] .perm-count{color:var(--muted)}
html[data-theme=dark] .perm-options{border-top:1px solid var(--line-soft)}
html[data-theme=dark] .perm-option{color:var(--ink)}
html[data-theme=dark] .perm-option:hover{background:var(--bg)}
html[data-theme=dark] .perm-option:has(input:checked){background:var(--green-soft)}
html[data-theme=dark] .perm-option input{accent-color:var(--green)}
html[data-theme=dark] .hero-name{color:var(--ink)}
html[data-theme=dark] .feature-tile{border:1px solid var(--line);background:var(--bg)}
html[data-theme=dark] .feature-tile strong{color:var(--ink)}
html[data-theme=dark] .feature-tile small{color:var(--muted)}
html[data-theme=dark] .feature-state{background:var(--line-soft);color:var(--muted)}
html[data-theme=dark] .feature-tile.on{border-color:color-mix(in srgb,var(--green) 35%,var(--line));background:var(--green-soft)}
html[data-theme=dark] .feature-tile.on .feature-state{background:var(--green);color:#ffffff}
html[data-theme=dark] .card-title h3 .record-link{color:var(--ink)}
html[data-theme=dark] .card-title h3 .record-link:hover{color:var(--tone,var(--green))}
html[data-theme=dark] .person-cell{color:inherit}
html[data-theme=dark] .person-cell strong{color:var(--ink)}
html[data-theme=dark] .person-cell:hover strong{color:var(--green)}
html[data-theme=dark] .person-avatar{background:var(--teal-soft);color:var(--teal)}
html[data-theme=dark] .facts dt{color:var(--muted)}
html[data-theme=dark] .facts dd{color:var(--ink)}
html[data-theme=dark] .notes-text{color:var(--body)}
html[data-theme=dark] .sticky-footer{background:var(--bg);border-top:1px solid var(--line)}
html[data-theme=dark] .export-menu .row-menu-list{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-md)}
html[data-theme=dark] .export-menu .row-menu-list a{color:var(--ink)}
html[data-theme=dark] .export-menu .row-menu-list a:hover{background:var(--bg)}
html[data-theme=dark] .export-menu .row-menu-list .icon{color:var(--muted)}
html[data-theme=dark] .download-grid a{border:1px solid var(--line);color:var(--ink);background:var(--surface)}
html[data-theme=dark] .download-grid a:hover{background:var(--bg);border-color:var(--green)}
html[data-theme=dark] .download-grid .icon{color:var(--green)}
html[data-theme=dark] .jump-chips .chip{border:1px solid var(--line);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sm)}
html[data-theme=dark] .jump-chips .chip:hover{border-color:var(--green);color:var(--green)}
html[data-theme=dark] .jump-chips .chip .icon{color:var(--muted)}
html[data-theme=dark] .jump-chips .chip b{background:var(--bg);color:var(--body)}
html[data-theme=dark] .chart-card{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-sm)}
html[data-theme=dark] .chart-head h3{color:var(--ink)}
html[data-theme=dark] .chart-head h3 .icon{color:var(--muted)}
html[data-theme=dark] .chart-head p{color:var(--muted)}
html[data-theme=dark] .lc-grid{stroke:var(--line-soft)}
html[data-theme=dark] .lc-axis{fill:var(--muted)}
html[data-theme=dark] .lc-line{fill:none}
html[data-theme=dark] .lc-cursor{stroke:var(--line)}
html[data-theme=dark] .lc-dot{stroke:var(--surface)}
html[data-theme=dark] .lc-tip{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-md)}
html[data-theme=dark] .lc-tip strong{color:var(--ink)}
html[data-theme=dark] .lc-tip div{color:var(--body)}
html[data-theme=dark] .lc-tip i,html[data-theme=dark] .chart-legend i{background:var(--swatch)}
html[data-theme=dark] .lc-note{color:var(--muted)}
html[data-theme=dark] .chart-legend{color:var(--muted)}
html[data-theme=dark] .chart-legend b{color:var(--ink)}
html[data-theme=dark] .swatch{background:var(--swatch)}
html[data-theme=dark] .settings-tabs,html[data-theme=dark] .tab-bar{box-shadow:inset 0 -1px 0 var(--line)}
html[data-theme=dark] .settings-tabs a,html[data-theme=dark] .tab-bar a{border-bottom:3px solid transparent;color:var(--muted)}
html[data-theme=dark] .settings-tabs a:hover,html[data-theme=dark] .tab-bar a:hover{color:var(--ink);background:color-mix(in srgb,var(--ink) 4%,transparent)}
html[data-theme=dark] .settings-tabs a[aria-current=page],html[data-theme=dark] .tab-bar a[aria-current=page]{color:var(--green);border-bottom-color:var(--green)}
html[data-theme=dark] .settings-tab-flag{background:var(--red);box-shadow:0 0 0 3px var(--red-soft)}
html[data-theme=dark] .setting-tile{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-sm);color:inherit}
html[data-theme=dark] .setting-tile:hover{border-color:color-mix(in srgb,var(--green) 55%,var(--line));box-shadow:var(--shadow-md)}
html[data-theme=dark] .setting-tile strong{color:var(--ink)}
html[data-theme=dark] .setting-tile small{color:var(--muted)}
html[data-theme=dark] .mode-card-head p{color:var(--muted)}
html[data-theme=dark] .mode-facts{border-top:1px solid var(--line-soft)}
html[data-theme=dark] .backup-status{border:1px solid var(--line);border-left:5px solid var(--green);background:var(--surface);box-shadow:var(--shadow-sm)}
html[data-theme=dark] .backup-status.old{border-left-color:#f27b0d}
html[data-theme=dark] .backup-status.none{border-left-color:var(--red)}
html[data-theme=dark] .backup-status-text p{color:var(--muted)}
html[data-theme=dark] .check-list li::before{background:var(--green) center/11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='#0e0e0e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E")}
html[data-theme=dark] .check-list.not li::before{background:var(--line) center/11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23525b68' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E")}
html[data-theme=dark] .steps-list li::before{background:var(--green-soft);color:var(--green)}
html[data-theme=dark] .check-list strong,html[data-theme=dark] .steps-list strong{color:var(--ink)}
html[data-theme=dark] .check-list small,html[data-theme=dark] .steps-list small{color:var(--muted)}
html[data-theme=dark] .group-chips .chip{border:1px solid var(--line);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sm)}
html[data-theme=dark] .group-chips .chip:hover{border-color:var(--green)}
html[data-theme=dark] .group-chips .chip .icon{color:var(--muted)}
html[data-theme=dark] .group-chips .chip b{background:var(--bg);color:var(--body)}
html[data-theme=dark] .group-chips .chip.on{border-color:var(--green);background:var(--green-soft);color:var(--green)}
html[data-theme=dark] .group-chips .chip.on .icon{color:var(--green)}
html[data-theme=dark] .group-chips .chip.on b{background:var(--green);color:#ffffff}
html[data-theme=dark] .log-head{border-bottom:1px solid var(--line-soft);color:var(--body)}
html[data-theme=dark] .log-day{color:var(--muted);background:var(--bg);border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}
html[data-theme=dark] .log-day:first-child{border-top:0}
html[data-theme=dark] .log-row{border-bottom:1px solid var(--line-soft)}
html[data-theme=dark] .log-row:last-child{border-bottom:0}
html[data-theme=dark] .log-title strong{color:var(--ink)}
html[data-theme=dark] .log-main p{color:var(--muted)}
html[data-theme=dark] .log-row time{color:var(--muted)}
html[data-theme=dark] .log-detail summary{color:var(--green)}
html[data-theme=dark] .log-changes{border:1px solid var(--line-soft)}
html[data-theme=dark] .log-changes th,html[data-theme=dark] .log-changes td{border-bottom:1px solid var(--line-soft);background:var(--surface)}
html[data-theme=dark] .log-changes tr:last-child th,html[data-theme=dark] .log-changes tr:last-child td{border-bottom:0}
html[data-theme=dark] .log-changes th{color:var(--muted)}
html[data-theme=dark] .log-changes .was{color:var(--muted)}
html[data-theme=dark] .log-changes .icon{color:var(--muted)}
html[data-theme=dark] .dash-brief-text h2{color:var(--ink)}
html[data-theme=dark] .dash-brief-text p{color:var(--muted)}
html[data-theme=dark] .dash-brief-text p strong{color:var(--ink)}
html[data-theme=dark] .quick-actions .btn:not(.primary){background:var(--surface)}
html[data-theme=dark] a.kpi-tile{color:inherit}
html[data-theme=dark] a.kpi-tile:hover{box-shadow:var(--shadow-md)}
html[data-theme=dark] .dash-bar .date-caption{color:var(--muted)}
html[data-theme=dark] .todo-row{border:1px solid var(--line-soft);border-left:4px solid var(--tone);background:var(--surface)}
html[data-theme=dark] .todo-mark{background:color-mix(in srgb,var(--tone) 14%,var(--surface));color:var(--tone)}
html[data-theme=dark] .todo-text strong{color:var(--ink)}
html[data-theme=dark] .todo-text small{color:var(--muted)}
html[data-theme=dark] .bar-list-name strong{color:var(--ink)}
html[data-theme=dark] .bar-list-name small{color:var(--muted)}
html[data-theme=dark] .bar-list b{color:var(--ink)}
html[data-theme=dark] .bar-list li.empty{color:var(--muted)}
html[data-theme=dark] .health-list li{border-bottom:1px solid var(--line-soft)}
html[data-theme=dark] .health-list li:last-child{border-bottom:0}
html[data-theme=dark] .health-list strong{color:var(--ink)}
html[data-theme=dark] .health-list small{color:var(--muted)}
html[data-theme=dark] .health-list b{color:var(--ink)}
html[data-theme=dark] .dot-state{background:var(--green);box-shadow:0 0 0 3px var(--green-soft)}
html[data-theme=dark] .health-list li.warn .dot-state{background:#d9730d;box-shadow:0 0 0 3px rgba(0,0,0,0.6)}
html[data-theme=dark] .branch-mini{border:1px solid var(--line);border-top:4px solid var(--tone);background:var(--surface);box-shadow:var(--shadow-sm);color:inherit}
html[data-theme=dark] .branch-mini:hover{box-shadow:var(--shadow-md)}
html[data-theme=dark] .branch-mini .avatar-tile{border:0;background:color-mix(in srgb,var(--tone) 12%,var(--surface));color:var(--tone);box-shadow:none}
html[data-theme=dark] .branch-mini-text strong{color:var(--ink)}
html[data-theme=dark] .branch-mini-text small{color:var(--tone)}
html[data-theme=dark] .branch-mini dl{border-top:1px solid var(--line-soft)}
html[data-theme=dark] .branch-mini dt{color:var(--muted)}
html[data-theme=dark] .branch-mini dd{color:var(--ink)}
html[data-theme=dark] .feed-list li{border-bottom:1px solid var(--line-soft)}
html[data-theme=dark] .feed-list li:last-child{border-bottom:0}
html[data-theme=dark] .feed-list li.empty{color:var(--muted)}
html[data-theme=dark] .feed-list strong{color:var(--ink)}
html[data-theme=dark] .feed-list small{color:var(--muted)}
html[data-theme=dark] .feed-list time{color:var(--muted)}
html[data-theme=dark] .todo-more summary{border:1px dashed var(--line);color:var(--green)}
html[data-theme=dark] .rate-pill{background:var(--bg);color:var(--body)}
html[data-theme=dark] .rate-pill.high{background:var(--red-soft);color:var(--red)}
html[data-theme=dark] .material-chip{background:var(--teal-soft);color:var(--teal)}
html[data-theme=dark] .cards-toolbar .muted{color:var(--muted)}
html[data-theme=dark] .kpi-tile .tile-lines li{color:var(--body)}
html[data-theme=dark] .kpi-tile .tile-lines b{color:var(--tone)}
html[data-theme=dark] .stock-card{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-sm)}
html[data-theme=dark] .stock-card.empty-stock{background:color-mix(in srgb,var(--bg) 60%,var(--surface))}
html[data-theme=dark] .stock-card h2{color:var(--ink)}
html[data-theme=dark] .stock-card .product-count{color:var(--ink)}
html[data-theme=dark] .stock-card .product-count small{color:var(--muted)}
html[data-theme=dark] .stock-bar{background:var(--line-soft)}
html[data-theme=dark] .stock-bar .free{background:var(--green)}
html[data-theme=dark] .stock-bar .reserved{background:#e5b22b}
html[data-theme=dark] .stock-bar .curing{background:var(--purple)}
html[data-theme=dark] .material-card.low{border-color:color-mix(in srgb,#f1800e 40%,var(--line))}
html[data-theme=dark] .material-card .meter-head b{color:var(--ink)}
html[data-theme=dark] .material-card .meter-fill{background:var(--tone,var(--green))}
html[data-theme=dark] .sales-views-hint{color:var(--muted)}
html[data-theme=dark] .list-link.plain{color:var(--ink)}
html[data-theme=dark] .bank-list li{border-bottom:1px solid var(--line-soft)}
html[data-theme=dark] .bank-list li:last-child,html[data-theme=dark] .txn-list li:last-child{border-bottom:0}
html[data-theme=dark] .bank-list li.empty,html[data-theme=dark] .txn-list li.empty{color:var(--muted)}
html[data-theme=dark] .bank-list strong,html[data-theme=dark] .txn-list strong{color:var(--ink)}
html[data-theme=dark] .bank-list small,html[data-theme=dark] .txn-list small{color:var(--muted)}
html[data-theme=dark] .bank-list b{color:var(--ink)}
html[data-theme=dark] .plain-link{color:inherit}
html[data-theme=dark] .plain-link:hover{color:var(--green)}
html[data-theme=dark] .txn-list li{border-bottom:1px solid var(--line-soft)}
html[data-theme=dark] .txn-dir.in{background:var(--green-soft);color:var(--green)}
html[data-theme=dark] .txn-dir.out{background:var(--red-soft);color:var(--red)}
html[data-theme=dark] .owed-col{border:1px solid var(--line-soft);background:var(--bg)}
html[data-theme=dark] .owed-label{color:var(--muted)}
html[data-theme=dark] .owed-col li{color:var(--body)}
html[data-theme=dark] .bank-balance small{color:var(--muted)}
html[data-theme=dark] .bank-balance strong{color:var(--ink)}
html[data-theme=dark] .in-text{color:var(--green)}
html[data-theme=dark] .out-text{color:var(--red)}
html[data-theme=dark] .pay-figures>div{border:1px solid var(--line);background:var(--surface)}
html[data-theme=dark] .pay-figures span{color:var(--muted)}
html[data-theme=dark] .pay-figures .owed{border-color:#55292e;background:var(--red-soft)}
html[data-theme=dark] .pay-figures .owed strong{color:var(--red-600)}
html[data-theme=dark] .pay-figures .settled{border-color:#2f6243;background:var(--green-soft)}
html[data-theme=dark] .pay-figures .settled strong{color:var(--green)}
html[data-theme=dark] .pay-state.red{color:var(--red-600)}
html[data-theme=dark] .pay-state.green{color:var(--green)}
html[data-theme=dark] .pay-state.amber{color:var(--amber)}
html[data-theme=dark] .live-summary .pay-line dd{color:var(--green)}
html[data-theme=dark] a.kpi-tile[aria-current=true]{outline:2px solid var(--tone)}
html[data-theme=dark] #team-pay:target{outline:3px solid var(--red)}
html[data-theme=dark] .pay-note{border-bottom:1px solid var(--line);background:var(--red-soft);color:var(--ink)}
html[data-theme=dark] .pay-note .icon{color:var(--red)}
html[data-theme=dark] .pay-note b{color:var(--red-600)}
html[data-theme=dark] a.kpi-tile:active{box-shadow:var(--shadow-sm)}
html[data-theme=dark] a.kpi-tile:focus-visible,html[data-theme=dark] .watch-rows a:focus-visible{outline:2px solid var(--tone,var(--green))}
html[data-theme=dark] .todo-row:hover{background:var(--bg)}
html[data-theme=dark] .watch-rows a{color:inherit}
html[data-theme=dark] .watch-rows a:hover{background:var(--bg)}
html[data-theme=dark] .watch-rows strong{color:var(--ink)}
html[data-theme=dark] .watch-rows small{color:var(--muted)}
html[data-theme=dark] .watch-rows b{background:var(--line-soft);color:var(--ink)}
html[data-theme=dark] .watch-rows li.warn b{background:var(--amber-soft);color:var(--amber)}
html[data-theme=dark] .dash-tabs{background:#161a20}
html[data-theme=dark] .dash-tabs button{border:0;background:transparent;color:var(--muted)}
html[data-theme=dark] .dash-tabs button:hover{color:var(--ink)}
html[data-theme=dark] .dash-tabs button[aria-selected=true]{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sm)}
html[data-theme=dark] .dash-tabs button:focus-visible{outline:2px solid var(--green)}
html[data-theme=dark] .stock-title small{color:var(--muted)}
html[data-theme=dark] .export-menu .row-menu-list button{border:0;background:transparent;color:var(--ink)}
html[data-theme=dark] .export-menu .row-menu-list button:hover{background:var(--bg)}
html[data-theme=dark] .export-menu .row-menu-list button .icon{color:var(--muted)}
html[data-theme=dark] .export-menu .row-menu-list button[data-print]{border-top:1px solid var(--line-soft)}
html[data-theme=dark] .summary-strip>div:not(.insight-dark){background:linear-gradient(135deg,var(--tile),var(--surface) 135%)!important}
html[data-theme=dark] .insight-dark .bal.owes{color:#ff8c93!important}
html[data-theme=dark] .insight-dark .bal.credit{color:#72dca7!important}
html[data-theme=dark] .login-form-inner .field input:focus-visible{outline:2px solid var(--red)}
html[data-theme=dark] .reset-card{border:1px solid var(--line);border-top:4px solid var(--tone);background:var(--surface);box-shadow:var(--shadow-sm)}
html[data-theme=dark] .reset-card h3{color:var(--ink)}
html[data-theme=dark] .reset-card p{color:var(--body)}
html[data-theme=dark] .reset-card .reset-keeps{color:var(--muted)}
html[data-theme=dark] .reset-card .btn{color:var(--red-600);border-color:color-mix(in srgb,var(--red) 40%,var(--line))}
html[data-theme=dark] .reset-card .btn:hover{background:var(--red-soft)}
html[data-theme=dark] .danger-panel{border-color:color-mix(in srgb,var(--red) 35%,var(--line))}
html[data-theme=dark] .confirm-note{color:var(--muted)}
html[data-theme=dark] .start-list li{border-bottom:1px solid var(--line-soft)}
html[data-theme=dark] .start-list li:last-child{border-bottom:0}
html[data-theme=dark] .start-mark{border:2px solid var(--line);color:#ffffff}
html[data-theme=dark] .start-list li.done .start-mark{border-color:var(--green);background:var(--green)}
html[data-theme=dark] .start-text strong{color:var(--ink)}
html[data-theme=dark] .start-text small{color:var(--muted)}
html[data-theme=dark] .start-list li.done .start-text strong{color:var(--muted)}
html[data-theme=dark] .status-pill.ticket-new{background:#0e1926;color:#83a9e2}
html[data-theme=dark] .status-pill.ticket-open{background:#12301e;color:#bff1d8}
html[data-theme=dark] .status-pill.ticket-waiting_on_customer{background:#2f2712;color:#f7e2b8}
html[data-theme=dark] .status-pill.ticket-resolved{background:#14181e;color:#cacdd1}
html[data-theme=dark] .status-pill.ticket-closed{background:#14181e;color:#b4b7bc}
html[data-theme=dark] .priority-pill{border:1px solid var(--line);color:var(--body);background:var(--surface)}
html[data-theme=dark] .priority-pill.high{border-color:#644830;color:#f5c5a6;background:#22170d}
html[data-theme=dark] .priority-pill.urgent{border-color:#55292e;color:#eb9ea8;background:#270f12}
html[data-theme=dark] .priority-pill.low{color:var(--muted)}
html[data-theme=dark] .support-table tr.unread td:first-child{box-shadow:inset 3px 0 0 var(--red)}
html[data-theme=dark] .unread-dot{background:var(--red);color:#ffffff}
html[data-theme=dark] .nav-badge{background:var(--red);color:#ffffff}
html[data-theme=dark] .get-help{color:var(--muted)}
html[data-theme=dark] .get-help:hover{color:var(--red)}
html[data-theme=dark] .support-offline code{background:var(--line-soft)}
html[data-theme=dark] .advanced-details{border:1px solid var(--line)}
html[data-theme=dark] .advanced-details summary{color:var(--body)}
html[data-theme=dark] .tip-list,html[data-theme=dark] .self-help{color:var(--body)}
html[data-theme=dark] .tip-list li:before{background:var(--red)}
html[data-theme=dark] .attached-list dt{color:var(--muted)}
html[data-theme=dark] .thread-message{border:1px solid var(--line);background:var(--surface)}
html[data-theme=dark] .thread-message.from-staff{background:var(--blue-soft);border-color:#273752}
html[data-theme=dark] .thread-message.is-new{box-shadow:0 0 0 2px rgba(0,0,0,0.6)}
html[data-theme=dark] .thread-meta{color:var(--muted)}
html[data-theme=dark] .thread-meta strong{color:var(--ink)}
html[data-theme=dark] .role-tag{background:var(--line-soft);color:var(--body)}
html[data-theme=dark] .from-staff .role-tag{background:#0e0e0e;color:#9ebfec}
html[data-theme=dark] .thread-body{color:var(--ink)}
html[data-theme=dark] .thread-event{color:var(--muted)}
html[data-theme=dark] .reply-form{border-top:1px solid var(--line)}
html[data-theme=dark] .ticket-waiting{background:var(--amber-soft);border-color:#6a5b33}
html[data-theme=dark] .pager{color:var(--muted)}
/* tools/dark_extra.css */
/* Dark theme tokens and hand fixes, appended to the generated static/dark.css (inside @media screen). */
html[data-theme=dark]{
  color-scheme:dark;
  --bg:#030405;--surface:#0e1013;--ink:#f3f5f7;--body:#d3d8de;--muted:#a7afba;--line:#262a30;--line-soft:#1a1d22;
  --red:#d6363f;--red-600:#e05560;--red-soft:#3a1c20;--yellow:#e5b22b;
  --green:#4cc28a;--green-soft:#15291f;--blue:#6fa8e6;--blue-soft:#162435;--purple:#a590f2;--purple-soft:#221d37;
  --amber:#e2b65c;--amber-soft:#2d2515;--teal:#4dc3bb;--teal-soft:#122a29;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4);--shadow-md:0 10px 28px rgba(0,0,0,.5);
}
html[data-theme=dark] body{background:var(--bg);color:var(--ink)}

/* Selected chips and segments use the ink colour as a fill; in dark mode that fill is light, so the text goes dark. */
html[data-theme=dark] .chip[aria-pressed=true],html[data-theme=dark] .chip[aria-current=true],html[data-theme=dark] .chip[aria-current="true"]{background:var(--ink);border-color:var(--ink);color:#12161b}
html[data-theme=dark] .chip[aria-pressed=true] b,html[data-theme=dark] .chip[aria-current=true] b{color:#3a424c}

/* Pictures keep their own colours; soften pure-white logos a little so they do not glare. */
html[data-theme=dark] .brand img,html[data-theme=dark] .company-card img{filter:brightness(.92)}

/* Insight cards stay dark in the dark theme: a raised panel a step above the page, not inverted to light. */
html[data-theme=dark] .fin-card.insight-dark,html[data-theme=dark] .summary-strip>div.insight-dark{background:#262d37!important;border-color:#3a434f!important;box-shadow:0 8px 22px rgba(0,0,0,.55)}

/* The orange tile (Blocks Made, and the same tile on other pages) sets its tint as a fixed hex in the light sheet; give it dark values like the other tones. */
html[data-theme=dark] .kpi-tile.orange{--tone:#f0a05a;--tone-soft:#2e2112}

/* Sidebar: the current page's icon tile is filled with its area's colour (light in the dark theme), so its glyph goes dark; the grey area and the group fallback set their tint as fixed hexes in the light sheet. */
html[data-theme=dark] .sidebar .nav-item{--on-tone:#0b1013}
html[data-theme=dark] .tone-grey{--tone:#c3cad3;--tone-soft:#1c2026}
html[data-theme=dark] .nav-group{--tone-soft:#1c2026}
html[data-theme=dark] .side-tip{background:#e9ecf0;color:#10151a}

/* The orange icon square (role-icon) sets its tint as a fixed hex in the light sheet. */
html[data-theme=dark] .role-icon.orange{--tone:#f0a05a;--tone-soft:#2e2112}

}
