/*
 * MEYER SYSTEM appearance: Light (default), Dark and System.
 * theme.js sets html[data-theme] before first paint. Light mode is the unchanged application CSS.
 * Dark mode = the token palette below + generated overrides (scripts/build-dark-theme.php) + manual refinements.
 * Screen only: printed pages, labels and generated documents always use the light styles.
 */

/* Appearance control in the account menu (both themes). */
.appearance-setting{margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}
.appearance-setting>span{display:block;margin-bottom:6px;font-size:11px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:var(--muted-foreground)}
.appearance-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:3px;border:1px solid var(--border);border-radius:8px;background:var(--muted)}
.appearance-options button{min-height:30px;padding:4px 6px;border:0;border-radius:6px;background:transparent;color:var(--muted-foreground);font-size:12px;font-weight:600;cursor:pointer}
.appearance-options button:hover{color:var(--foreground)}
.appearance-options button[aria-checked="true"]{background:var(--card);color:var(--foreground);box-shadow:0 1px 2px rgba(0,0,0,.12)}
.appearance-options button:focus-visible{outline:2px solid var(--primary);outline-offset:1px}
@media(max-width:900px){.appearance-options button{min-height:44px}}
.appearance-switching *,.appearance-switching *::before,.appearance-switching *::after{transition:none!important}

/* Dark palette: the only place where dark colors are defined. */
html[data-theme="dark"]{
  color-scheme:dark;
  --dk-bg:#121715;--dk-surface:#1a201d;--dk-surface-2:#212825;--dk-surface-3:#29312d;--dk-surface-4:#343d38;
  --dk-elevated:#2d3732;--dk-elevated-2:#3a4540;
  --dk-border:#2e3833;--dk-border-strong:#3d4943;--dk-border-stronger:#56635c;
  --dk-text:#e7ece9;--dk-text-2:#c8d1cc;--dk-text-3:#a1ada6;--dk-text-4:#8a968f;
  --dk-accent-text:#5fd39b;
  --dk-green-bg:#162a1f;--dk-green-bg-strong:#1e3a2a;--dk-green-border:#2f5d43;--dk-green-text:#7fd6a4;
  --dk-amber-bg:#2c2412;--dk-amber-bg-strong:#3d3117;--dk-amber-border:#6b5420;--dk-amber-text:#f0c46a;
  --dk-orange-bg:#2e2012;--dk-orange-bg-strong:#43301a;--dk-orange-border:#7a4a1e;--dk-orange-text:#f4ab6c;
  --dk-red-bg:#311a1c;--dk-red-bg-strong:#462226;--dk-red-border:#7a3036;--dk-red-text:#f59c9c;
  --dk-blue-bg:#15233a;--dk-blue-bg-strong:#1d3150;--dk-blue-border:#2f507c;--dk-blue-text:#90c2f5;
  --dk-purple-bg:#251c37;--dk-purple-bg-strong:#33264d;--dk-purple-border:#57447e;--dk-purple-text:#c6abf5
}

/* BEGIN GENERATED DARK OVERRIDES */
@media screen{
/* app.css */
html[data-theme="dark"] body{background-color:var(--background);color:var(--foreground)}
html[data-theme="dark"] button,html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{color:inherit}
html[data-theme="dark"] a{color:inherit}
html[data-theme="dark"] .sidebar{background-color:var(--dk-surface);border-right-color:var(--dk-border)}
html[data-theme="dark"] .brand{border-bottom-color:var(--dk-border)}
html[data-theme="dark"] .brand span{color:var(--muted-foreground)}
html[data-theme="dark"] .nav-link,html[data-theme="dark"] .nav-group-toggle{border-color:currentcolor;background-color:transparent;color:var(--dk-text-2)}
html[data-theme="dark"] .nav-link:hover,html[data-theme="dark"] .nav-group-toggle:hover{background-color:var(--dk-surface-2);color:var(--dk-text)}
html[data-theme="dark"] .nav-link.active{background-color:var(--primary);color:#fff}
html[data-theme="dark"] .nav-group-toggle.open{color:var(--dk-text)}
html[data-theme="dark"] #samples-nav .nav-icon{color:inherit}
html[data-theme="dark"] .sidebar-footer{border-top-color:var(--dk-border)}
html[data-theme="dark"] .sidebar-footer strong{color:var(--dk-text-2)}
html[data-theme="dark"] .sidebar-footer span{color:var(--dk-text-3)}
html[data-theme="dark"] .topbar{border-bottom-color:var(--border);background-color:var(--background)}
html[data-theme="dark"] .mobile-menu{border-color:currentcolor;background-color:transparent}
html[data-theme="dark"] .global-search span{color:var(--dk-text-4)}
html[data-theme="dark"] .global-search input{border-color:var(--border);background-color:var(--dk-surface);outline-color:currentcolor}
html[data-theme="dark"] .global-search input:focus{border-color:#71b79a;box-shadow:0 0 0 3px rgba(0,128,79,.1)}
html[data-theme="dark"] .notification-button{border-color:var(--border);background-color:var(--dk-surface)}
html[data-theme="dark"] .notification-button b{background-color:var(--primary);color:#fff}
html[data-theme="dark"] .avatar{background-color:var(--primary);color:#fff}
html[data-theme="dark"] .user-popover{background-color:var(--dk-surface);border-color:var(--border);box-shadow:var(--shadow)}
html[data-theme="dark"] .user-popover span{color:var(--muted-foreground)}
html[data-theme="dark"] .user-popover a{color:var(--dk-accent-text)}
html[data-theme="dark"] .page-heading p{color:var(--muted-foreground)}
html[data-theme="dark"] .eyebrow{color:var(--dk-accent-text)}
html[data-theme="dark"] .btn{border-color:var(--border);background-color:var(--dk-surface)}
html[data-theme="dark"] .btn:hover{background-color:var(--dk-surface-2)}
html[data-theme="dark"] .btn-primary{background-color:var(--primary);border-color:var(--primary);color:#fff}
html[data-theme="dark"] .btn-primary:hover{background-color:var(--primary-dark)}
html[data-theme="dark"] .btn-danger{color:var(--dk-red-text);border-color:var(--dk-red-border)}
html[data-theme="dark"] .btn-ghost{border-color:transparent;background-color:transparent}
html[data-theme="dark"] .card{background-color:var(--dk-surface);border-color:var(--border)}
html[data-theme="dark"] .card-header{border-bottom-color:var(--border)}
html[data-theme="dark"] .card-header p{color:var(--muted-foreground)}
html[data-theme="dark"] .metric{background-color:var(--dk-surface);border-color:var(--border)}
html[data-theme="dark"] .metric .label{color:var(--dk-text-3)}
html[data-theme="dark"] .metric .meta{color:var(--dk-text-3)}
html[data-theme="dark"] .metric.warn{border-left-color:#e7a72d}
html[data-theme="dark"] .metric.good{border-left-color:var(--primary)}
html[data-theme="dark"] .metric.danger{border-left-color:var(--danger)}
html[data-theme="dark"] .section-title span{color:var(--muted-foreground)}
html[data-theme="dark"] .search-input input{border-color:var(--border);background-color:var(--dk-surface)}
html[data-theme="dark"] .search-input:before{color:var(--dk-text-3)}
html[data-theme="dark"] .count-label{color:var(--muted-foreground)}
html[data-theme="dark"] .filter-panel{background-color:var(--dk-surface);border-color:var(--border)}
html[data-theme="dark"] .field>span,html[data-theme="dark"] .field>label{color:var(--dk-text-3)}
html[data-theme="dark"] .field input,html[data-theme="dark"] .field select,html[data-theme="dark"] .field textarea,html[data-theme="dark"] .stack-form input,html[data-theme="dark"] .stack-form select,html[data-theme="dark"] .stack-form textarea{border-color:var(--border);background-color:var(--dk-surface);outline-color:currentcolor}
html[data-theme="dark"] .field input:focus,html[data-theme="dark"] .field select:focus,html[data-theme="dark"] .field textarea:focus,html[data-theme="dark"] .stack-form input:focus,html[data-theme="dark"] .stack-form select:focus,html[data-theme="dark"] .stack-form textarea:focus{border-color:#70b798;box-shadow:0 0 0 3px rgba(0,128,79,.1)}
html[data-theme="dark"] .form-section h3{color:var(--dk-accent-text)}
html[data-theme="dark"] .form-actions{border-top-color:var(--border)}
html[data-theme="dark"] .table-wrap{background-color:var(--dk-surface);border-color:var(--border)}
html[data-theme="dark"] th{background-color:var(--dk-surface-2);color:var(--dk-text-3);border-bottom-color:var(--border)}
html[data-theme="dark"] td{border-bottom-color:var(--dk-border)}
html[data-theme="dark"] tbody tr:hover{background-color:var(--dk-surface-2)}
html[data-theme="dark"] tbody tr:last-child td{border-bottom-color:currentcolor}
html[data-theme="dark"] .table-link{color:var(--dk-text)}
html[data-theme="dark"] .table-link:hover{color:var(--dk-accent-text)}
html[data-theme="dark"] .cell-muted{color:var(--dk-text-4)}
html[data-theme="dark"] .empty-row{color:var(--muted-foreground)}
html[data-theme="dark"] .badge-success{background-color:var(--dk-green-bg);color:var(--dk-green-text)}
html[data-theme="dark"] .badge-warning{background-color:var(--dk-amber-bg);color:var(--dk-amber-text)}
html[data-theme="dark"] .badge-danger{background-color:var(--dk-red-bg);color:var(--dk-red-text)}
html[data-theme="dark"] .badge-info{background-color:var(--dk-blue-bg);color:var(--dk-blue-text)}
html[data-theme="dark"] .badge-neutral{background-color:var(--dk-surface-3);color:var(--dk-text-2)}
html[data-theme="dark"] .badge-top{background-color:#20144f;color:#fff}
html[data-theme="dark"] .waiting-good{color:var(--dk-green-text)}
html[data-theme="dark"] .waiting-warn{color:var(--dk-orange-text)}
html[data-theme="dark"] .waiting-danger{color:var(--dk-red-text)}
html[data-theme="dark"] .tabs{border-bottom-color:var(--border)}
html[data-theme="dark"] .tab{border-color:currentcolor;background-color:transparent;border-bottom-color:transparent;color:var(--dk-text-3)}
html[data-theme="dark"] .tab.active{color:var(--dk-accent-text);border-bottom-color:var(--primary)}
html[data-theme="dark"] .detail-hero{background-color:var(--dk-surface);border-color:var(--border)}
html[data-theme="dark"] .detail-submeta{color:var(--dk-text-3)}
html[data-theme="dark"] .definition-grid{background-color:var(--border);border-color:var(--border)}
html[data-theme="dark"] .definition{background-color:var(--dk-surface)}
html[data-theme="dark"] .definition dt{color:var(--dk-text-3)}
html[data-theme="dark"] .customer-strip{background-color:var(--dk-green-bg);border-color:var(--dk-border-strong)}
html[data-theme="dark"] .customer-strip .icon{background-color:var(--primary);color:#fff}
html[data-theme="dark"] .customer-strip span{color:var(--dk-text-3)}
html[data-theme="dark"] .pill-button{border-color:var(--border);background-color:var(--dk-surface)}
html[data-theme="dark"] .pill-button.active,html[data-theme="dark"] .pill-button:hover{background-color:var(--primary);border-color:var(--primary);color:#fff}
html[data-theme="dark"] .chart{border-bottom-color:var(--border)}
html[data-theme="dark"] .bar{background-color:var(--primary)}
html[data-theme="dark"] .bar.secondary{background-color:var(--dk-green-bg-strong)}
html[data-theme="dark"] .bar-item small{color:var(--dk-text-3)}
html[data-theme="dark"] .aging-card{border-color:var(--border);background-color:var(--dk-surface)}
html[data-theme="dark"] .aging-card span{color:var(--muted-foreground)}
html[data-theme="dark"] .aging-card.danger{background-color:var(--dk-red-bg);border-color:var(--dk-red-border)}
html[data-theme="dark"] .aging-card.warn{background-color:var(--dk-amber-bg);border-color:var(--dk-amber-border)}
html[data-theme="dark"] .calendar-grid{border-color:var(--border);background-color:var(--border)}
html[data-theme="dark"] .calendar-weekday{background-color:var(--dk-surface-2);color:var(--dk-text-3)}
html[data-theme="dark"] .calendar-day{background-color:var(--dk-surface)}
html[data-theme="dark"] .calendar-day.outside{background-color:var(--dk-surface-2);color:var(--dk-text-4)}
html[data-theme="dark"] .calendar-day.today{box-shadow:inset 0 0 0 2px var(--primary)}
html[data-theme="dark"] .calendar-event{background-color:var(--dk-green-bg);color:var(--dk-green-text)}
html[data-theme="dark"] .calendar-event.top{background-color:var(--dk-purple-bg);color:var(--dk-purple-text)}
html[data-theme="dark"] .tracking-map{background-color:transparent;background-image:linear-gradient(135deg,var(--dk-surface-3) 0 55%,var(--dk-green-bg-strong) 55%);border-color:var(--dk-green-border)}
html[data-theme="dark"] .tracking-map:before,html[data-theme="dark"] .tracking-map:after{background-image:linear-gradient(rgba(26,32,29,0.42) 1px,transparent 1px),linear-gradient(90deg,rgba(26,32,29,0.42) 1px,transparent 1px)}
html[data-theme="dark"] .map-marker{background-color:var(--primary);border-color:var(--dk-surface);box-shadow:0 4px 12px #47706366}
html[data-theme="dark"] .map-legend{background-color:var(--dk-surface);box-shadow:0 4px 12px #254b3c33}
html[data-theme="dark"] .option-editor{border-top-color:var(--border)}
html[data-theme="dark"] .option-line{border-color:var(--border);background-color:var(--dk-surface)}
html[data-theme="dark"] .fleet-position-grid{background-color:transparent;background-image:linear-gradient(180deg,var(--dk-blue-bg),var(--dk-blue-bg-strong));border-color:var(--dk-blue-border)}
html[data-theme="dark"] .fleet-position-grid:before{background-image:linear-gradient(rgba(26,32,29,0.48) 1px,transparent 1px),linear-gradient(90deg,rgba(26,32,29,0.48) 1px,transparent 1px)}
html[data-theme="dark"] .fleet-axis{color:var(--dk-blue-text)}
html[data-theme="dark"] .fleet-position{background-color:var(--primary);border-color:var(--dk-surface);box-shadow:0 2px 9px #2e625477}
html[data-theme="dark"] .fleet-position.stale{background-color:#aa7a14}
html[data-theme="dark"] .fleet-position.recent{background-color:#2773a5}
html[data-theme="dark"] .fleet-position.live{background-color:#008e57}
html[data-theme="dark"] .fleet-no-position{color:var(--muted-foreground)}
html[data-theme="dark"] .fleet-vessel-list a{border-color:var(--border);color:inherit}
html[data-theme="dark"] .fleet-vessel-list span{color:var(--muted-foreground)}
html[data-theme="dark"] .fleet-refresh-progress span{color:var(--muted-foreground)}
html[data-theme="dark"] .approval-empty .icon{color:var(--dk-accent-text)}
html[data-theme="dark"] .provider{background-color:var(--dk-surface);border-color:var(--border)}
html[data-theme="dark"] .provider small{color:var(--muted-foreground)}
html[data-theme="dark"] .permission{border-color:var(--border);background-color:var(--dk-surface)}
html[data-theme="dark"] .permission strong{color:var(--dk-accent-text)}
html[data-theme="dark"] .permission p{color:var(--muted-foreground)}
html[data-theme="dark"] .wizard-step{border-bottom-color:var(--border);color:var(--dk-text-3)}
html[data-theme="dark"] .wizard-step b{background-color:var(--dk-surface-3)}
html[data-theme="dark"] .wizard-step.active{color:var(--dk-accent-text);border-color:var(--primary)}
html[data-theme="dark"] .wizard-step.active b,html[data-theme="dark"] .wizard-step.done b{background-color:var(--primary);color:#fff}
html[data-theme="dark"] .select-card{border-color:var(--border);background-color:var(--dk-surface)}
html[data-theme="dark"] .select-card:hover,html[data-theme="dark"] .select-card.selected{border-color:var(--primary);background-color:var(--dk-green-bg)}
html[data-theme="dark"] .select-card span{color:var(--muted-foreground)}
html[data-theme="dark"] .price-summary{background-color:var(--dk-surface-2);border-color:var(--border)}
html[data-theme="dark"] .price-line.total{border-top-color:var(--border)}
html[data-theme="dark"] .modal-backdrop{background-color:rgba(3,15,10,.5)}
html[data-theme="dark"] .modal{background-color:var(--dk-surface);border-color:var(--border);box-shadow:var(--shadow)}
html[data-theme="dark"] .modal>header{border-bottom-color:var(--border)}
html[data-theme="dark"] .modal>header button{border-color:currentcolor;background-color:transparent;color:var(--dk-text-3)}
html[data-theme="dark"] .flash{border-color:currentcolor}
html[data-theme="dark"] .flash-success{background-color:var(--dk-green-bg);color:var(--dk-green-text);border-color:var(--dk-green-border)}
html[data-theme="dark"] .flash-error{background-color:var(--dk-red-bg);color:var(--dk-red-text);border-color:var(--dk-red-border)}
html[data-theme="dark"] .flash-warning{background-color:var(--dk-amber-bg);color:var(--dk-amber-text);border-color:var(--dk-amber-border)}
html[data-theme="dark"] .login-body{background-color:var(--dk-surface)}
html[data-theme="dark"] .login-brand{color:#fff;background-color:transparent;background-image:linear-gradient(145deg,#004c2f,#00804f)}
html[data-theme="dark"] .login-brand .brand{border-color:currentcolor}
html[data-theme="dark"] .brand.large span{color:#cce7db}
html[data-theme="dark"] .login-brand p{color:#d8ece3}
html[data-theme="dark"] .login-card>div>p{color:var(--muted-foreground)}
html[data-theme="dark"] .login-hint{background-color:var(--dk-surface-2)}
html[data-theme="dark"] .timeline:before{background-color:var(--border)}
html[data-theme="dark"] .timeline-item:before{background-color:var(--primary);border-color:var(--dk-surface);box-shadow:0 0 0 1px var(--primary)}
html[data-theme="dark"] .timeline-item span{color:var(--muted-foreground)}
@media(max-width:820px){
html[data-theme="dark"] .sidebar.open{box-shadow:var(--shadow)}
}
html[data-theme="dark"] .tracking-page .metric{box-shadow:none}
html[data-theme="dark"] .tracking-page .metric.danger{color:var(--dk-red-text)}
html[data-theme="dark"] .tracking-page .metric.warn{color:var(--dk-orange-text)}
html[data-theme="dark"] .tracking-page .metric.good{color:var(--dk-accent-text)}
html[data-theme="dark"] .tracking-segment{border-color:var(--border);background-color:var(--dk-surface-2)}
html[data-theme="dark"] .tracking-segment a,html[data-theme="dark"] .tracking-sort{color:var(--dk-text-2)}
html[data-theme="dark"] .tracking-segment a.active,html[data-theme="dark"] .tracking-sort.active{background-color:var(--dk-surface-3);color:var(--dk-green-text)}
html[data-theme="dark"] .tracking-sort{border-color:var(--border)}
html[data-theme="dark"] .tracking-segment a:hover,html[data-theme="dark"] .tracking-sort:hover{background-color:var(--dk-surface-3)}
html[data-theme="dark"] .tracking-page a:focus-visible,html[data-theme="dark"] .tracking-page button:focus-visible,html[data-theme="dark"] .tracking-table-scroll:focus-visible{outline-color:var(--primary)}
html[data-theme="dark"] .tracking-list-heading{border-bottom-color:var(--border)}
html[data-theme="dark"] .tracking-list-heading h3 span{background-color:var(--dk-surface-3);color:var(--dk-text-3)}
html[data-theme="dark"] .tracking-list-heading>span{color:var(--dk-text-3)}
html[data-theme="dark"] .tracking-page .tracking-table-scroll{border-color:currentcolor}
html[data-theme="dark"] .tracking-table th{background-color:var(--dk-surface-2)}
html[data-theme="dark"] .tracking-table tbody tr:hover{background-color:var(--dk-surface-2)}
html[data-theme="dark"] .tracking-bl{color:var(--dk-text-2)}
html[data-theme="dark"] .tracking-more{color:var(--dk-accent-text)}
html[data-theme="dark"] .tracking-port{color:var(--dk-text-2)}
html[data-theme="dark"] .tracking-pod{color:var(--dk-text)}
html[data-theme="dark"] .tracking-eta strong{color:var(--dk-text)}
html[data-theme="dark"] .tracking-table .tracking-updated{color:var(--dk-text-3)}
html[data-theme="dark"] .tracking-warning{background-color:var(--dk-amber-bg);color:var(--dk-amber-text)}
html[data-theme="dark"] .tracking-fleet .card-header .tracking-map-note{color:var(--dk-text-3)}
html[data-theme="dark"] .tracking-fleet .fleet-position-grid{background-color:var(--dk-surface-3)}
html[data-theme="dark"] .tracking-fleet .map-legend{background-color:transparent;box-shadow:none;color:var(--dk-text-3)}
html[data-theme="dark"] .tracking-fleet .map-legend span:before{background-color:var(--dk-text-4)}
html[data-theme="dark"] .tracking-fleet .map-legend .legend-live:before{background-color:#008e57}
html[data-theme="dark"] .tracking-fleet .map-legend .legend-recent:before{background-color:#2773a5}
html[data-theme="dark"] .tracking-fleet .map-legend .legend-stale:before{background-color:#aa7a14}
html[data-theme="dark"] .tracking-fleet .fleet-vessel-list a{background-color:var(--dk-surface-2)}
html[data-theme="dark"] .tracking-table .tracking-eta-link{color:var(--dk-accent-text)}
html[data-theme="dark"] .shipment-detail .card,html[data-theme="dark"] .shipment-detail .detail-hero{box-shadow:none}
html[data-theme="dark"] .shipment-breadcrumb{color:var(--dk-text-3)}
html[data-theme="dark"] .shipment-breadcrumb a{color:var(--dk-accent-text)}
html[data-theme="dark"] .shipment-detail .shipment-hero{background-color:var(--dk-surface);border-color:var(--border)}
html[data-theme="dark"] .shipment-hero .detail-actions small{color:var(--dk-text-3)}
html[data-theme="dark"] .shipment-status-label{color:var(--dk-text-3)}
html[data-theme="dark"] .shipment-attention{border-left-color:#c7993e}
html[data-theme="dark"] .shipment-attention h3{color:var(--dk-amber-text)}
html[data-theme="dark"] .shipment-detail .shipment-current-eta{border-top-color:var(--primary)}
html[data-theme="dark"] .shipment-current-eta h3{color:var(--dk-text)}
html[data-theme="dark"] .shipment-fields dt,html[data-theme="dark"] .shipment-route li>span{color:var(--dk-text-3)}
html[data-theme="dark"] .shipment-route li{border-left-color:var(--dk-border)}
html[data-theme="dark"] .shipment-route li:before{background-color:var(--dk-text-4);border-color:var(--dk-surface);box-shadow:0 0 0 1px var(--dk-border)}
html[data-theme="dark"] .shipment-route li:last-child{border-left-color:transparent}
html[data-theme="dark"] .shipment-route .shipment-route-pod:before{background-color:var(--primary)}
html[data-theme="dark"] .shipment-route-pod strong{color:var(--dk-green-text)}
html[data-theme="dark"] .shipment-containers li{background-color:var(--dk-surface-2);border-color:var(--border)}
html[data-theme="dark"] .shipment-related li{border-bottom-color:var(--dk-border)}
html[data-theme="dark"] .shipment-related li:last-child{border-bottom-color:currentcolor}
html[data-theme="dark"] .shipment-empty{color:var(--dk-text-3)}
html[data-theme="dark"] .shipment-detail a:focus-visible,html[data-theme="dark"] .shipment-detail button:focus-visible{outline-color:var(--primary)}
html[data-theme="dark"] .shipment-lifecycle form:last-child:has(.btn-danger){border-left-color:var(--border)}
html[data-theme="dark"] .shipment-detail .shipment-current-eta{border-color:var(--dk-green-border);border-left-color:var(--primary);background-color:var(--dk-surface-2)}
html[data-theme="dark"] .shipment-eta-time{color:var(--dk-text-2)}
html[data-theme="dark"] .shipment-current-eta .row-actions{border-top-color:var(--dk-border)}
html[data-theme="dark"] .shipment-detail .shipment-eta-empty{background-color:var(--dk-surface-2);border-color:var(--border)}
html[data-theme="dark"] .shipment-eta-empty h3{color:var(--dk-text-2)}
html[data-theme="dark"] .shipment-route li{border-color:currentcolor}
html[data-theme="dark"] .shipment-route li:not(:last-child):after{color:var(--dk-text-4)}
html[data-theme="dark"] .shipment-route .shipment-route-pod strong{color:var(--dk-accent-text)}
html[data-theme="dark"] .shipment-vessel-fields>div:nth-child(1) dd,html[data-theme="dark"] .shipment-vessel-fields>div:nth-child(3) dd{color:var(--dk-text)}
html[data-theme="dark"] .shipment-position{border-top-color:var(--border)}
html[data-theme="dark"] .shipment-legacy{color:var(--dk-text-3)}
html[data-theme="dark"] .sample-company-picker{border-bottom-color:var(--border)}
html[data-theme="dark"] .samples-view-switch{border-color:var(--border);background-color:var(--muted)}
html[data-theme="dark"] .samples-view-button{color:var(--muted-foreground)}
html[data-theme="dark"] .samples-view-button.is-active{background-color:var(--primary);color:#fff}
html[data-theme="dark"] .samples-view-button:focus-visible{outline-color:var(--primary)}
html[data-theme="dark"] .sample-schedule-summary small{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-file-delete{border-top-color:var(--border)}
html[data-theme="dark"] .sample-file-delete summary{color:var(--dk-red-text)}
html[data-theme="dark"] .sample-age{background-color:var(--dk-surface-3);color:var(--dk-text-2)}
html[data-theme="dark"] .sample-age-normal{background-color:var(--dk-surface-3);color:var(--dk-text-2)}
html[data-theme="dark"] .sample-age-notice{background-color:var(--dk-blue-bg);color:var(--dk-blue-text)}
html[data-theme="dark"] .sample-age-warn{background-color:var(--dk-amber-bg);color:var(--dk-amber-text)}
html[data-theme="dark"] .sample-age-critical{background-color:#c62828;color:#ffffff}
html[data-theme="dark"] .sample-age-frozen{background-color:var(--dk-surface-2);color:var(--dk-text-3)}
html[data-theme="dark"] .sample-age-unknown{background-color:transparent;color:var(--dk-text-3)}
html[data-theme="dark"] .sample-age-none{color:var(--dk-text-4)}
html[data-theme="dark"] tr.sample-age-row-warn>td{background-color:var(--dk-amber-bg)}
html[data-theme="dark"] tr.sample-age-row-critical>td{background-color:var(--dk-red-bg);border-top-color:var(--dk-red-border);border-bottom-color:var(--dk-red-border)}
html[data-theme="dark"] tr.sample-age-row-critical>td:first-child{box-shadow:inset 4px 0 0 #c62828}
html[data-theme="dark"] .sample-mobile-card.sample-age-row-critical{background-color:var(--dk-red-bg);border-color:#e57373;box-shadow:inset 4px 0 0 #c62828}
html[data-theme="dark"] .sample-mobile-card.sample-age-row-warn{box-shadow:inset 4px 0 0 #e0a100}
html[data-theme="dark"] .sr-only{border-color:currentcolor}
html[data-theme="dark"] .notification-menu>summary{color:var(--dk-text-2)}
html[data-theme="dark"] .notification-button.has-unread{color:var(--dk-green-text);border-color:var(--dk-green-border)}
html[data-theme="dark"] .notification-button .notification-count{background-color:var(--primary);color:#fff;box-shadow:0 0 0 2px var(--dk-surface)}
html[data-theme="dark"] .notification-button.has-attention .notification-count{background-color:#c62828}
html[data-theme="dark"] .notification-menu[open]>summary{background-color:var(--dk-surface-2);border-color:#71b79a}
html[data-theme="dark"] .notification-panel{border-color:var(--border);background-color:var(--dk-surface);box-shadow:0 18px 40px #0f172a24}
html[data-theme="dark"] .notification-panel-head{border-bottom-color:var(--border)}
html[data-theme="dark"] .notification-panel-head span{color:var(--dk-text-3)}
html[data-theme="dark"] .notification-attention{color:var(--dk-red-text)}
html[data-theme="dark"] .notification-panel-foot{border-top-color:var(--border)}
html[data-theme="dark"] .notification-item{border-bottom-color:var(--dk-border)}
html[data-theme="dark"] .notification-item:last-child{border-bottom-color:currentcolor}
html[data-theme="dark"] .notification-item.is-unread{background-color:var(--dk-green-bg)}
html[data-theme="dark"] .notification-item.is-action{box-shadow:inset 3px 0 0 #c62828}
html[data-theme="dark"] .notification-dot{background-color:transparent}
html[data-theme="dark"] .notification-item.is-unread .notification-dot{background-color:#00804f}
html[data-theme="dark"] .notification-item.is-action.is-unread .notification-dot{background-color:#c62828}
html[data-theme="dark"] .notification-meta{color:var(--dk-text-3)}
html[data-theme="dark"] .notification-chip{background-color:var(--dk-surface-3);color:var(--dk-text-2)}
html[data-theme="dark"] .notification-cat-samples{background-color:var(--dk-surface-3);color:var(--dk-green-text)}
html[data-theme="dark"] .notification-cat-tracking{background-color:var(--dk-blue-bg);color:var(--dk-blue-text)}
html[data-theme="dark"] .notification-cat-crm{background-color:var(--dk-purple-bg);color:var(--dk-purple-text)}
html[data-theme="dark"] .notification-cat-approval{background-color:var(--dk-amber-bg);color:var(--dk-amber-text)}
html[data-theme="dark"] .notification-cat-system{background-color:var(--dk-surface-3);color:var(--dk-text-2)}
html[data-theme="dark"] .notification-important{background-color:#c62828;color:#fff}
html[data-theme="dark"] .notification-item.is-unread .notification-state{color:var(--dk-green-text)}
html[data-theme="dark"] .notification-item:not(.is-unread) .notification-title{color:var(--dk-text-2)}
html[data-theme="dark"] .notification-body{color:var(--dk-text-3)}
html[data-theme="dark"] .notification-open{border-color:var(--border);color:var(--dk-green-text)}
html[data-theme="dark"] .notification-open:hover{background-color:var(--dk-surface-2)}
html[data-theme="dark"] .notification-empty{color:var(--dk-text-3)}
html[data-theme="dark"] .notification-filter{border-color:var(--border);color:var(--dk-text-2);background-color:var(--dk-surface)}
html[data-theme="dark"] .notification-filter span{color:var(--dk-text-3)}
html[data-theme="dark"] .notification-filter.active{background-color:#00804f;border-color:#00804f;color:#fff}
html[data-theme="dark"] .notification-filter.active span{color:#e3f3ea}
/* fleet-map.css */
html[data-theme="dark"] .fleet-map-controls{color:var(--dk-text-3)}
html[data-theme="dark"] .fleet-map-summary>div{background-color:var(--dk-surface-2);border-color:var(--dk-border)}
html[data-theme="dark"] .fleet-map-summary span{color:var(--dk-text-3)}
html[data-theme="dark"] .fleet-geographic-map{border-color:var(--dk-border);background-color:var(--dk-surface-3)}
html[data-theme="dark"] .fleet-map-message{background-color:var(--dk-surface);border-color:var(--dk-border);color:var(--dk-text-2)}
html[data-theme="dark"] .fleet-map-tile-error{color:var(--dk-amber-text)}
html[data-theme="dark"] .fleet-ship-marker{background-color:var(--dk-surface);border-color:#8c7b4f;box-shadow:0 1px 4px #0003;color:var(--dk-amber-text)}
html[data-theme="dark"] .fleet-ship-live{border-color:#287344;color:var(--dk-green-text)}
html[data-theme="dark"] .fleet-ship-recent{border-color:#396f8d;color:var(--dk-blue-text)}
html[data-theme="dark"] .fleet-popup-muted{color:var(--dk-text-3)}
html[data-theme="dark"] .fleet-popup article{border-top-color:var(--dk-border)}
html[data-theme="dark"] .fleet-popup dt{color:var(--dk-text-3)}
html[data-theme="dark"] .fleet-fit-control button{border-color:currentcolor;background-color:var(--dk-surface);color:var(--dk-text-2)}
html[data-theme="dark"] .fleet-fit-control button:disabled{color:var(--dk-text-3)}
html[data-theme="dark"] .tracking-fleet .fleet-vessel-list article{border-color:var(--dk-border)}
html[data-theme="dark"] .tracking-fleet .fleet-vessel-list article>span{color:var(--dk-text-3)}
html[data-theme="dark"] .tracking-fleet .fleet-vessel-list article>a{border-color:currentcolor;color:var(--dk-accent-text);background-color:transparent}
html[data-theme="dark"] .fleet-geographic-map a:focus-visible,html[data-theme="dark"] .fleet-geographic-map button:focus-visible{outline-color:#236541}
html[data-theme="dark"] .fleet-ship-unverified{border-color:#7655a3;color:var(--dk-purple-text)}
html[data-theme="dark"] .legend-unverified{color:var(--dk-purple-text)}
html[data-theme="dark"] .fleet-map-refresh-error{border-color:var(--dk-amber-border);background-color:var(--dk-amber-bg);color:var(--dk-amber-text)}
html[data-theme="dark"] .tracking-fleet .fleet-vessel-list .fleet-popup article{border-color:currentcolor;border-top-color:var(--dk-border)}
html[data-theme="dark"] .tracking-fleet button:focus-visible,html[data-theme="dark"] .tracking-fleet a:focus-visible,html[data-theme="dark"] .tracking-fleet input:focus-visible{outline-color:#236541}
/* dashboard.css */
html[data-theme="dark"] .meyer-dashboard{--db-green:var(--dk-green-text);--db-dark:var(--dk-text);--db-muted:var(--dk-text-3);--db-border:var(--dk-border);color:var(--db-dark)}
html[data-theme="dark"] .db-page-head p{color:var(--db-muted)}
html[data-theme="dark"] .db-head-actions label{color:var(--db-muted)}
html[data-theme="dark"] .db-head-actions select{border-color:var(--db-border);background-color:var(--dk-surface)}
html[data-theme="dark"] .db-attention{border-color:var(--db-border);color:var(--db-muted)}
html[data-theme="dark"] .db-scope{color:var(--db-muted)}
html[data-theme="dark"] .db-card{background-color:var(--dk-surface);border-color:var(--db-border)}
html[data-theme="dark"] .db-card-head{border-bottom-color:var(--db-border)}
html[data-theme="dark"] .db-card-head h2 svg{color:var(--db-green)}
html[data-theme="dark"] .db-card-head>a,html[data-theme="dark"] .db-card-head>span{color:var(--db-green)}
html[data-theme="dark"] .db-kpi{border-color:var(--db-border)}
html[data-theme="dark"] .db-kpi-featured{background-color:var(--dk-surface-2);border-color:var(--dk-green-border)}
html[data-theme="dark"] .db-icon{background-color:var(--dk-surface-2);color:var(--db-green)}
html[data-theme="dark"] .db-kpi-featured .db-icon{background-color:var(--db-green);color:#fff}
html[data-theme="dark"] .db-value{color:var(--dk-text)}
html[data-theme="dark"] .db-kpi-label{color:var(--db-muted)}
html[data-theme="dark"] .db-kpi-label a{color:inherit}
html[data-theme="dark"] .db-kpi-label a:hover{color:var(--db-green)}
html[data-theme="dark"] .db-kpi small{color:var(--db-muted)}
html[data-theme="dark"] .db-definitions{color:var(--db-muted)}
html[data-theme="dark"] .db-subhead h3{color:var(--dk-text-3)}
html[data-theme="dark"] .db-subhead>span{color:var(--db-muted)}
html[data-theme="dark"] .db-age{border-color:currentcolor}
html[data-theme="dark"] .db-age-green{background-color:var(--dk-green-bg);border-color:var(--dk-green-border);color:var(--dk-green-text)}
html[data-theme="dark"] .db-age-amber{background-color:var(--dk-amber-bg);border-color:var(--dk-amber-border);color:var(--dk-orange-text)}
html[data-theme="dark"] .db-age-orange{background-color:var(--dk-orange-bg);border-color:var(--dk-orange-border);color:var(--dk-orange-text)}
html[data-theme="dark"] .db-age-red{background-color:var(--dk-red-bg);border-color:var(--dk-red-border);color:var(--dk-red-text)}
html[data-theme="dark"] .db-caption{color:var(--db-muted)}
html[data-theme="dark"] .db-table-scroll{border-color:var(--db-border)}
html[data-theme="dark"] .db-table th{background-color:var(--dk-surface-2);color:var(--dk-text-3)}
html[data-theme="dark"] .db-table td{border-top-color:var(--db-border);color:var(--dk-text-3)}
html[data-theme="dark"] .db-table tbody tr:nth-child(even){background-color:var(--dk-surface-2)}
html[data-theme="dark"] .db-table tbody tr:hover{background-color:var(--dk-surface-2)}
html[data-theme="dark"] .db-table a{color:var(--db-green)}
html[data-theme="dark"] .db-wait-long{color:var(--dk-red-text)}
html[data-theme="dark"] .db-bar-label{color:var(--dk-text-3)}
html[data-theme="dark"] .db-bar-track{background-color:transparent;background-image:repeating-linear-gradient(90deg,transparent 0,transparent calc(25% - 1px),var(--dk-surface-3) calc(25% - 1px),var(--dk-surface-3) 25%);border-left-color:var(--dk-border)}
html[data-theme="dark"] .db-bar-track>span{background-color:var(--db-green)}
html[data-theme="dark"] .db-bars strong{color:var(--dk-text-3)}
html[data-theme="dark"] .db-bar-axis{color:var(--db-muted)}
html[data-theme="dark"] .db-kpis-small .db-icon{background-color:transparent}
html[data-theme="dark"] .db-flow-canvas .db-grid{stroke:var(--dk-border-strong)}
html[data-theme="dark"] .db-flow-canvas text{fill:var(--dk-text-3)}
html[data-theme="dark"] .db-flow-canvas .db-line{fill:none;stroke:#417f56}
html[data-theme="dark"] .db-flow-canvas .db-tested{stroke:var(--dk-text-3)}
html[data-theme="dark"] .db-flow-canvas .db-point{fill:var(--dk-surface);stroke:#417f56}
html[data-theme="dark"] .db-flow-canvas .db-point-tested{fill:var(--dk-text-3);stroke:var(--dk-text-3)}
html[data-theme="dark"] .db-flow-canvas .db-hover{fill:transparent}
html[data-theme="dark"] .db-flow-canvas .db-hover:hover,html[data-theme="dark"] .db-flow-canvas .db-hover:focus{fill:#417f560b;outline-color:currentcolor}
html[data-theme="dark"] .db-flow-tooltip{background-color:var(--dk-elevated);color:#fff}
html[data-theme="dark"] .db-legend{color:var(--db-green)}
html[data-theme="dark"] .db-legend i{border-top-color:#417f56}
html[data-theme="dark"] .db-legend .db-legend-tested{border-top-color:var(--dk-border-stronger)}
html[data-theme="dark"] .db-empty{color:var(--db-muted)}
html[data-theme="dark"] .db-tracking-table small{color:var(--db-muted)}
html[data-theme="dark"] .db-data-note{background-color:var(--dk-surface);border-color:var(--db-border);color:var(--db-muted)}
html[data-theme="dark"] .db-footer{color:var(--dk-text-3)}
html[data-theme="dark"] .meyer-dashboard :focus-visible{outline-color:#36784e}
/* sample-detail.css */
html[data-theme="dark"] .sample-detail-notes{background-color:var(--dk-surface);border-color:var(--border)}
html[data-theme="dark"] .sample-notes-form textarea{border-color:var(--border);background-color:var(--muted);outline-color:currentcolor}
html[data-theme="dark"] .sample-notes-form textarea:focus{border-color:#70b798;box-shadow:0 0 0 3px rgba(0,128,79,.1)}
html[data-theme="dark"] .sample-detail-history{background-color:var(--dk-surface);border-color:var(--border)}
html[data-theme="dark"] .sample-history-row+.sample-history-row{border-top-color:var(--border)}
html[data-theme="dark"] .sample-history-dot{background-color:var(--primary)}
html[data-theme="dark"] .sample-history-meta{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-history-empty{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-detail-breadcrumb{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-detail-breadcrumb a:hover{color:var(--dk-accent-text)}
html[data-theme="dark"] .sample-detail-hero,html[data-theme="dark"] .sample-detail-customer,html[data-theme="dark"] .sample-detail-overview,html[data-theme="dark"] .sample-detail-logistics,html[data-theme="dark"] .sample-detail-information{background-color:var(--dk-surface);border-color:var(--border)}
html[data-theme="dark"] .sample-detail-meta dt{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-detail-actions .btn-ghost,html[data-theme="dark"] .sample-detail-customer>.btn{border-color:var(--border);background-color:var(--dk-surface)}
html[data-theme="dark"] .sample-detail-actions .btn-ghost:hover,html[data-theme="dark"] .sample-detail-customer>.btn:hover{background-color:var(--muted)}
html[data-theme="dark"] .sample-detail-customer h3{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-detail-customer-country{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-detail-tabs .tab{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-detail-tabs .tab.active{color:var(--dk-accent-text);border-bottom-color:var(--primary)}
html[data-theme="dark"] .sample-detail-tabs .tab:hover{color:var(--dk-accent-text);background-color:var(--primary-soft)}
html[data-theme="dark"] .sample-detail a:focus-visible,html[data-theme="dark"] .sample-detail button:focus-visible{outline-color:var(--primary)}
html[data-theme="dark"] .sample-detail-grid dt{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-detail [data-detail-status="DISPATCH_TO_CLIENT"]{background-color:var(--dk-purple-bg);color:var(--dk-purple-text)}
html[data-theme="dark"] .sample-detail [data-detail-status="WASTE"]{background-color:var(--dk-red-bg);color:var(--dk-red-text)}
html[data-theme="dark"] .sample-detail [data-detail-status="TOP"]{background-color:var(--dk-purple-bg);color:var(--dk-purple-text);border-color:var(--dk-purple-border)}
html[data-theme="dark"] .sample-detail-empty{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-detail-test-card{background-color:var(--dk-surface);border-color:var(--border)}
html[data-theme="dark"] .sample-detail-test-empty{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-detail-test-report{border-top-color:var(--border)}
html[data-theme="dark"] .sample-test-additional{border-color:var(--border)}
html[data-theme="dark"] .sample-files-panel{background-color:var(--dk-surface);border-color:var(--border)}
html[data-theme="dark"] .sample-photos-empty{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-photo-card{border-color:var(--border)}
html[data-theme="dark"] .sample-photo-preview{background-color:var(--muted)}
html[data-theme="dark"] .sample-file-edit{border-top-color:var(--border)}
html[data-theme="dark"] .sample-document-item+.sample-document-item{border-top-color:var(--border)}
html[data-theme="dark"] .sample-photo-lightbox{border-color:var(--border);background-color:var(--dk-surface);color:var(--foreground)}
html[data-theme="dark"] .sample-photo-lightbox::backdrop{background-color:rgba(15,23,42,.78)}
/* sample-calendar.css */
html[data-theme="dark"] .sample-calendar-external-status{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-calendar-external-status.is-warning{color:var(--dk-amber-text)}
@media(max-width:820px){
html[data-theme="dark"] [data-samples-calendar] .calendar-day.outside{color:var(--muted-foreground)}
html[data-theme="dark"] [data-samples-calendar] .calendar-day-empty{color:var(--muted-foreground)}
}
html[data-theme="dark"] [data-samples-calendar] .calendar-external-booking{background-color:var(--dk-surface-2);color:var(--dk-text-2);border-color:var(--dk-border);border-left-color:var(--dk-border-stronger)}
html[data-theme="dark"] [data-samples-calendar] .calendar-external-booking summary:focus-visible{outline-color:var(--dk-border-stronger)}
html[data-theme="dark"] [data-samples-calendar] .calendar-local-event summary:focus-visible{outline-color:var(--primary)}
/* sample-reports.css */
html[data-theme="dark"] .sample-reports .reports-scope{border-color:var(--border);background-color:var(--primary-soft)}
html[data-theme="dark"] .sample-reports .reports-scope small{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-reports .reports-periods a{border-color:var(--border);color:var(--dk-accent-text);background-color:var(--background)}
html[data-theme="dark"] .sample-reports .reports-tabs{border-bottom-color:var(--border)}
html[data-theme="dark"] .sample-reports .reports-tab{border-bottom-color:transparent;color:var(--muted-foreground)}
html[data-theme="dark"] .sample-reports .reports-tab:hover{color:var(--dk-accent-text);background-color:var(--primary-soft)}
html[data-theme="dark"] .sample-reports .reports-tab.is-active{color:var(--dk-accent-text);border-bottom-color:var(--primary)}
html[data-theme="dark"] .sample-reports .reports-filter-heading>span{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-reports .reports-date-basis{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-reports .reports-more-filters>summary,html[data-theme="dark"] .sample-reports .reports-definition-notes>summary{color:var(--dk-accent-text)}
html[data-theme="dark"] .sample-reports .reports-filter-actions{border-top-color:var(--border)}
html[data-theme="dark"] .sample-reports .reports-legacy-client{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-reports .reports-legacy-client a{color:var(--dk-accent-text)}
html[data-theme="dark"] .sample-reports .reports-kpi{border-color:var(--border);box-shadow:0 2px 8px #0f172a05}
html[data-theme="dark"] .sample-reports .reports-kpi h3{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-reports .reports-kpi>p{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-reports .reports-chart-header{border-bottom-color:var(--border)}
html[data-theme="dark"] .sample-reports .reports-chart-header p{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-reports .reports-bar-value small{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-reports .reports-bar-track{background-color:var(--primary-soft)}
html[data-theme="dark"] .sample-reports .reports-bar-track>span{background-color:var(--primary)}
html[data-theme="dark"] .sample-reports .reports-chart-note{border-top-color:var(--border);color:var(--muted-foreground)}
html[data-theme="dark"] .sample-reports .reports-month-track{border-bottom-color:var(--border);background-color:transparent;background-image:repeating-linear-gradient(to top,transparent 0,transparent 34px,var(--border) 34px,var(--border) 35px)}
html[data-theme="dark"] .sample-reports .reports-month-track>span{background-color:var(--primary)}
html[data-theme="dark"] .sample-reports .reports-month>small{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-reports .reports-empty strong{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-reports .reports-empty p{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-reports .reports-quality-intro{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-reports .reports-quality-grid>div{border-bottom-color:var(--border)}
html[data-theme="dark"] .sample-reports .reports-quality-grid dt{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-reports .reports-definition-notes ul{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-reports :is(a,summary,input,select,button,.reports-month-scroll):focus-visible{outline-color:var(--primary)}
/* samples-inline.css */
html[data-theme="dark"] .sample-inline-trigger{border-color:currentcolor}
html[data-theme="dark"] .sample-inline-trigger:hover,html[data-theme="dark"] .sample-inline-trigger:focus-visible{outline-color:#70b798}
html[data-theme="dark"] .sample-inline-menu{background-color:var(--dk-surface);border-color:var(--dk-border);box-shadow:0 5px 18px #0002}
html[data-theme="dark"] .sample-inline-menu button{border-color:currentcolor;background-color:transparent}
html[data-theme="dark"] .sample-inline-menu button:hover,html[data-theme="dark"] .sample-inline-menu button:focus-visible,html[data-theme="dark"] .sample-inline-menu button[aria-checked=true]{background-color:var(--dk-green-bg);color:var(--dk-green-text)}
html[data-theme="dark"] .sample-inline-feedback{color:var(--dk-green-text)}
html[data-theme="dark"] .sample-inline-feedback[data-error=true]{color:var(--dk-red-text)}
/* test-registry.css */
html[data-theme="dark"] .test-registry .registry-page-size{color:var(--muted-foreground)}
html[data-theme="dark"] .test-registry .registry-page-size select{border-color:var(--border);background-color:var(--dk-surface)}
html[data-theme="dark"] .test-registry .registry-filters>summary{color:var(--dk-accent-text)}
html[data-theme="dark"] .test-registry .registry-filter-grid{background-color:var(--dk-surface);border-color:var(--border)}
html[data-theme="dark"] .test-registry .registry-filter-footer{background-color:var(--dk-surface);border-color:var(--border);border-top-color:currentcolor}
html[data-theme="dark"] .test-registry .registry-filter-footer p,html[data-theme="dark"] .test-registry .registry-summary p{color:var(--muted-foreground)}
html[data-theme="dark"] .test-registry .registry-table th a:hover{color:var(--dk-accent-text)}
html[data-theme="dark"] .test-registry .registry-secondary{color:var(--muted-foreground)}
html[data-theme="dark"] .test-registry .registry-conclusion summary{color:var(--muted-foreground)}
html[data-theme="dark"] .test-registry .registry-table td.registry-empty{color:var(--muted-foreground)}
html[data-theme="dark"] .test-registry :is(a,summary,input,select,button,.registry-table-wrap):focus-visible{outline-color:var(--primary)}
html[data-theme="dark"] .test-registry .registry-table [data-modal-open^="test-run-delete-"]{background-color:var(--danger);border-color:var(--danger);color:#fff}
html[data-theme="dark"] .test-registry .registry-table [data-modal-open^="test-run-delete-"]:hover{background-color:#b91c1c;border-color:#b91c1c}
html[data-theme="dark"] .test-registry .registry-table [data-modal-open^="test-run-delete-"]:focus-visible{background-color:#b91c1c;border-color:#b91c1c;outline-color:#991b1b}
/* company-detail.css */
html[data-theme="dark"] .company-detail{color:var(--dk-text)}
html[data-theme="dark"] .cd-breadcrumb{color:var(--dk-text-3)}
html[data-theme="dark"] .cd-heading p{color:var(--dk-text-3)}
html[data-theme="dark"] .company-detail .card{border-color:var(--dk-border);box-shadow:none}
html[data-theme="dark"] .cd-card-head{border-bottom-color:var(--dk-border)}
html[data-theme="dark"] .cd-card-head h3:before{color:var(--dk-green-text)}
html[data-theme="dark"] .cd-definitions dt{color:var(--dk-text-3)}
html[data-theme="dark"] .company-detail a{color:var(--dk-green-text)}
html[data-theme="dark"] .company-detail a.btn-primary{color:white}
html[data-theme="dark"] .company-detail .meta{color:var(--dk-text-3)}
html[data-theme="dark"] .cd-empty{color:var(--dk-text-3)}
html[data-theme="dark"] .cd-kpis article{background-color:var(--dk-surface)}
html[data-theme="dark"] .cd-kpis h3{color:var(--dk-text-3)}
html[data-theme="dark"] .cd-kpis article:nth-child(3) strong{color:var(--dk-green-text)}
html[data-theme="dark"] .cd-kpis article:nth-child(4) strong{color:var(--dk-amber-text)}
html[data-theme="dark"] .cd-kpis article:nth-child(5) strong{color:var(--dk-red-text)}
html[data-theme="dark"] .cd-run-status{color:var(--dk-green-text)}
html[data-theme="dark"] .cd-quality>div{border-color:var(--dk-border);background-color:var(--dk-surface-2)}
html[data-theme="dark"] .cd-quality span{color:var(--dk-text-3)}
html[data-theme="dark"] .cd-quality strong{color:var(--dk-green-text)}
html[data-theme="dark"] .cd-summary,html[data-theme="dark"] .cd-identity-note{border-color:var(--dk-border)}
html[data-theme="dark"] .cd-identity-note{background-color:var(--dk-surface-2)}
html[data-theme="dark"] .cd-accordion{border-color:var(--dk-border);background-color:var(--dk-surface-2)}
html[data-theme="dark"] .cd-accordion summary:after{color:var(--dk-text-3)}
html[data-theme="dark"] .cd-accordion>div{background-color:var(--dk-surface)}
html[data-theme="dark"] .company-detail :focus-visible{outline-color:#008869}
html[data-theme="dark"] .cd-source{border-bottom-color:var(--dk-border)}
html[data-theme="dark"] .cd-proposal{background-color:var(--dk-green-bg);border-color:var(--dk-border)}
html[data-theme="dark"] .cd-scroll th{background-color:var(--dk-surface-2);color:var(--dk-text-3)}
html[data-theme="dark"] .cd-scroll td{border-bottom-color:var(--dk-border)}
html[data-theme="dark"] .cd-event{border-bottom-color:var(--dk-border)}
html[data-theme="dark"] .cd-identity-review{border-color:var(--dk-border)}
html[data-theme="dark"] .cd-identity-candidate{border-color:var(--dk-border);background-color:var(--dk-surface-2)}
html[data-theme="dark"] .cd-identity-reason summary{color:var(--dk-green-text)}
html[data-theme="dark"] .company-detail{--cd-ink:var(--dk-text);--cd-muted:var(--dk-text-3);--cd-brand:var(--dk-green-text);--cd-line:var(--dk-border);--cd-wash:var(--dk-surface-2);--cd-teal:var(--dk-blue-text);color:var(--cd-ink)}
html[data-theme="dark"] .cd-breadcrumb{color:var(--cd-muted)}
html[data-theme="dark"] .cd-heading .eyebrow{color:var(--cd-brand)}
html[data-theme="dark"] .cd-heading p{color:var(--cd-muted)}
html[data-theme="dark"] .company-detail .card{border-color:var(--cd-line);box-shadow:0 3px 14px #173c2e05}
html[data-theme="dark"] .cd-card-head{background-color:transparent;background-image:linear-gradient(100deg,var(--dk-surface-2),var(--dk-surface));border-color:var(--dk-border)}
html[data-theme="dark"] .cd-section-icon{background-color:var(--dk-surface-3);color:var(--cd-brand)}
html[data-theme="dark"] .cd-definitions dt{color:var(--cd-muted)}
html[data-theme="dark"] .cd-definitions dt .cd-icon{color:var(--dk-text-3)}
html[data-theme="dark"] .cd-definitions .cd-missing{color:var(--dk-text-4)}
html[data-theme="dark"] .company-detail .meta{color:var(--cd-muted)}
html[data-theme="dark"] .company-detail .btn-ghost{background-color:var(--dk-surface);border-color:var(--dk-border);color:var(--dk-text-2);box-shadow:0 1px 2px #123b2505}
html[data-theme="dark"] .company-detail .btn-ghost:hover{background-color:var(--dk-surface-3);border-color:#9fbfae}
html[data-theme="dark"] .company-detail .btn-primary{background-color:#00835f;border-color:#00835f;color:#fff;box-shadow:0 2px 5px #00835f18}
html[data-theme="dark"] .company-detail .btn-primary:hover{background-color:#006b4d;border-color:#006b4d}
html[data-theme="dark"] .company-detail .btn:disabled{box-shadow:none}
html[data-theme="dark"] .company-detail :focus-visible{outline-color:#168e76}
html[data-theme="dark"] .cd-kpis article{border-top-color:var(--dk-green-border)}
html[data-theme="dark"] .cd-kpis h3{color:var(--cd-muted)}
html[data-theme="dark"] .cd-kpi-icon{color:var(--dk-green-text);background-color:var(--dk-surface-3)}
html[data-theme="dark"] .cd-kpis article:nth-child(2){border-top-color:var(--dk-blue-border)}
html[data-theme="dark"] .cd-kpis article:nth-child(2) .cd-kpi-icon{background-color:var(--dk-blue-bg);color:var(--cd-teal)}
html[data-theme="dark"] .cd-kpis article:nth-child(4){border-top-color:var(--dk-amber-border)}
html[data-theme="dark"] .cd-kpis article:nth-child(4) .cd-kpi-icon{background-color:var(--dk-orange-bg);color:var(--dk-amber-text)}
html[data-theme="dark"] .cd-kpis article:nth-child(5){border-top-color:var(--dk-red-border)}
html[data-theme="dark"] .cd-kpis article:nth-child(5) .cd-kpi-icon{background-color:var(--dk-red-bg);color:var(--dk-red-text)}
html[data-theme="dark"] .company-detail #intelligence{border-color:var(--dk-green-border)}
html[data-theme="dark"] #intelligence .cd-card-head{background-color:transparent;background-image:linear-gradient(110deg,var(--dk-green-bg),var(--dk-blue-bg));border-color:var(--dk-border)}
html[data-theme="dark"] #intelligence .cd-section-icon{background-color:var(--dk-surface);box-shadow:0 2px 5px #00543c09}
html[data-theme="dark"] .cd-run-status,html[data-theme="dark"] .cd-badge{border-color:transparent}
html[data-theme="dark"] .company-detail .cd-tone-positive{color:var(--dk-green-text);background-color:var(--dk-green-bg);border-color:var(--dk-border-strong)}
html[data-theme="dark"] .company-detail .cd-tone-warning{color:var(--dk-orange-text);background-color:var(--dk-amber-bg);border-color:var(--dk-amber-border)}
html[data-theme="dark"] .company-detail .cd-tone-negative{color:var(--dk-red-text);background-color:var(--dk-red-bg);border-color:var(--dk-red-border)}
html[data-theme="dark"] .company-detail .cd-tone-info{color:var(--dk-blue-text);background-color:var(--dk-blue-bg);border-color:var(--dk-blue-border)}
html[data-theme="dark"] .company-detail .cd-tone-neutral{color:var(--dk-text-2);background-color:var(--dk-surface-3);border-color:var(--dk-border)}
html[data-theme="dark"] .cd-research-meta{background-color:var(--dk-surface-2);border-color:var(--dk-border)}
html[data-theme="dark"] .cd-research-meta .cd-icon{color:var(--dk-text-3)}
html[data-theme="dark"] .cd-quality>div{background-color:var(--dk-surface);border-color:var(--cd-line)}
html[data-theme="dark"] .cd-quality .cd-quality-label{color:var(--cd-muted)}
html[data-theme="dark"] .cd-quality-label .cd-icon{color:var(--dk-green-text)}
html[data-theme="dark"] .cd-identity-evidence{background-color:var(--dk-surface-2);border-left-color:#61a88c;color:var(--dk-green-text)}
html[data-theme="dark"] .cd-identity-note{background-color:var(--dk-surface-2);border-color:var(--dk-border)}
html[data-theme="dark"] .cd-summary{background-color:transparent;background-image:linear-gradient(120deg,var(--dk-green-bg),var(--dk-surface));border-color:var(--dk-border)}
html[data-theme="dark"] .cd-summary h4{color:var(--dk-green-text)}
html[data-theme="dark"] .cd-findings li::marker{color:var(--dk-green-text)}
html[data-theme="dark"] .cd-citations a{text-decoration-color:#b3d2c5}
html[data-theme="dark"] .cd-accordion{border-color:var(--dk-border);background-color:var(--dk-surface-2)}
html[data-theme="dark"] .cd-accordion-label .cd-icon{color:var(--dk-green-text)}
html[data-theme="dark"] .cd-accordion summary:hover{background-color:var(--dk-surface-3)}
html[data-theme="dark"] .cd-accordion[open] summary{background-color:var(--dk-surface-3);border-bottom-color:var(--dk-border)}
html[data-theme="dark"] .cd-identity-review{border-color:var(--dk-amber-border);background-color:var(--dk-amber-bg)}
html[data-theme="dark"] .cd-identity-review h4{color:var(--dk-orange-text)}
html[data-theme="dark"] .cd-identity-candidate{background-color:var(--dk-surface);border-color:var(--dk-border)}
html[data-theme="dark"] #suggestions{background-color:var(--dk-green-bg);border-color:var(--dk-green-border)}
html[data-theme="dark"] #suggestions .cd-card-head{background-color:var(--dk-surface-3)}
html[data-theme="dark"] .cd-proposal{background-color:var(--dk-surface);border-color:var(--dk-border)}
html[data-theme="dark"] .cd-proposal>div>strong{color:var(--dk-green-text)}
html[data-theme="dark"] .cd-proposal>div>p:nth-of-type(2){background-color:var(--dk-surface-2)}
html[data-theme="dark"] .cd-empty{color:var(--cd-muted)}
html[data-theme="dark"] .cd-scroll th{color:var(--dk-text-3);background-color:var(--dk-surface-2)}
html[data-theme="dark"] .cd-scroll tbody tr:hover{background-color:var(--dk-surface-2)}
html[data-theme="dark"] .cd-event{border-left-color:var(--dk-border)}
/* shipment-edit.css */
html[data-theme="dark"] .shipment-editor small{color:var(--dk-blue-text)}
html[data-theme="dark"] .se-entry{border-color:var(--dk-border);background-color:var(--dk-surface-2)}
html[data-theme="dark"] .shipment-editor .se-machine-badge{color:var(--dk-green-text);background-color:var(--dk-surface-3)}
html[data-theme="dark"] .shipment-editor .se-entry{border-left-color:#00804f;background-color:var(--dk-surface);box-shadow:0 1px 3px #0f172a08}
html[data-theme="dark"] .shipment-editor .se-entry .se-row-heading{border-bottom-color:var(--dk-border)}
html[data-theme="dark"] .shipment-editor .se-manual-customer{border-color:var(--dk-border);background-color:var(--dk-surface-2)}
html[data-theme="dark"] .shipment-editor .se-manual-customer input[readonly]{background-color:var(--dk-surface-3)}
html[data-theme="dark"] .shipment-editor .se-add-another{border-color:#00804f;background-color:var(--dk-green-bg);color:var(--dk-green-text)}
html[data-theme="dark"] .shipment-editor .se-add-another:hover{background-color:var(--dk-green-bg)}
html[data-theme="dark"] .shipment-editor .se-add-another:focus-visible,html[data-theme="dark"] .shipment-editor .se-entry :focus-visible{outline-color:#00804f}
html[data-theme="dark"] .shipment-editor .se-customer-count{color:var(--dk-blue-text)}
html[data-theme="dark"] .shipment-editor .se-customer-list{border-color:var(--dk-border);background-color:var(--dk-surface)}
html[data-theme="dark"] .shipment-editor .se-customer-list>.se-check{border-left-color:transparent;border-bottom-color:var(--dk-border)}
html[data-theme="dark"] .shipment-editor .se-customer-list>.se-check:last-child{border-bottom-color:transparent}
html[data-theme="dark"] .shipment-editor .se-customer-list>.se-check:hover{background-color:var(--dk-surface-2)}
html[data-theme="dark"] .shipment-editor .se-customer-list>.se-check:has(>input:checked){background-color:var(--dk-surface-3);border-left-color:#00804f}
html[data-theme="dark"] .shipment-editor .se-customer-list>.se-check:has(>input:checked):hover{background-color:var(--dk-surface-3)}
html[data-theme="dark"] .shipment-editor .se-customer-list>.se-check:focus-within{outline-color:#70b798}
html[data-theme="dark"] .shipment-editor .se-customer-list>p{color:var(--dk-blue-text)}
html[data-theme="dark"] .shipment-editor .se-crm-picker{border-color:var(--dk-green-border);background-color:var(--dk-surface-2)}
html[data-theme="dark"] .shipment-editor .se-crm-results .btn{background-color:var(--dk-surface);border-color:var(--dk-border)}
html[data-theme="dark"] .shipment-editor .se-crm-results .btn:hover{background-color:var(--dk-surface-3);border-color:#00804f}
html[data-theme="dark"] .shipment-editor .se-crm-tag{color:var(--dk-green-text)}
html[data-theme="dark"] .shipment-editor .se-added-customer{background-color:var(--dk-blue-bg);color:var(--dk-blue-text)}
/* tracking-simple.css */
html[data-theme="dark"] .tracking-more-filters>summary{border-color:var(--border);color:var(--dk-text-2)}
html[data-theme="dark"] .tracking-more-filters[open]>summary{background-color:var(--dk-surface-3);color:var(--dk-green-text)}
html[data-theme="dark"] .tracking-table-simple th{color:var(--dk-text-3)}
html[data-theme="dark"] .tracking-table-simple .tracking-eta-link{color:var(--dk-text)}
html[data-theme="dark"] .tracking-table-simple .tracking-eta-link strong{color:var(--dk-text)}
html[data-theme="dark"] .tracking-table-simple .tracking-eta-link strong.tracking-eta-none{color:var(--dk-text-3)}
html[data-theme="dark"] .tracking-table-simple .tracking-eta-time{color:var(--dk-text-2)}
html[data-theme="dark"] .tracking-eta-days{background-color:var(--dk-surface-3);color:var(--dk-green-text)}
html[data-theme="dark"] .tracking-eta-days.is-past{background-color:var(--dk-surface-3);color:var(--dk-text-3)}
html[data-theme="dark"] .tracking-table-simple .tracking-key>span{color:var(--dk-text)}
html[data-theme="dark"] .tracking-table-simple .tracking-key>span.tracking-key-empty{color:var(--dk-text-4)}
html[data-theme="dark"] .tracking-table-simple .tracking-vessel{color:var(--dk-text-2)}
html[data-theme="dark"] .tracking-collapsible{background-color:var(--dk-surface);border-color:var(--border)}
html[data-theme="dark"] .tracking-collapsible>summary{color:var(--dk-text)}
html[data-theme="dark"] .tracking-collapsible>summary::before{color:var(--dk-text-3)}
html[data-theme="dark"] .tracking-collapsible>summary .cell-muted{color:var(--dk-text-3)}
html[data-theme="dark"] .tracking-collapsible>summary:hover{background-color:var(--dk-surface-2)}
html[data-theme="dark"] .tracking-collapsible>summary:focus-visible{outline-color:var(--primary)}
html[data-theme="dark"] .tracking-collapsible-body>.card,html[data-theme="dark"] .tracking-collapsible-body>.card-grid .card{border-color:var(--border);box-shadow:none}
html[data-theme="dark"] .tracking-map-section>.tracking-fleet{border-color:currentcolor;box-shadow:none}
html[data-theme="dark"] .shipment-detail-simple .shipment-key-header p{color:var(--dk-text-2)}
html[data-theme="dark"] .shipment-detail-simple .shipment-key-tile{border-top-color:var(--primary)}
html[data-theme="dark"] .shipment-detail-simple .shipment-current-eta{background-color:var(--dk-surface-2);border-color:var(--dk-green-border);border-left-color:var(--dk-green-border);border-top-color:var(--primary)}
html[data-theme="dark"] .shipment-detail-simple .shipment-current-eta h3{color:var(--dk-text)}
html[data-theme="dark"] .shipment-detail-simple .shipment-eta-empty h3{color:var(--dk-text-2)}
html[data-theme="dark"] .shipment-eta-days{color:var(--dk-accent-text)}
html[data-theme="dark"] .shipment-eta-days.is-past{color:var(--dk-text-3)}
html[data-theme="dark"] .shipment-eta-warning.is-warning{background-color:var(--dk-amber-bg);color:var(--dk-amber-text)}
html[data-theme="dark"] .shipment-eta-warning.is-danger{background-color:var(--dk-red-bg);color:var(--dk-red-text)}
html[data-theme="dark"] .shipment-eta-more{border-top-color:var(--dk-border)}
html[data-theme="dark"] .shipment-eta-more>summary{color:var(--dk-accent-text)}
html[data-theme="dark"] .shipment-detail-simple .shipment-eta-more .row-actions{border-color:currentcolor}
html[data-theme="dark"] .shipment-key-list a,html[data-theme="dark"] .shipment-key-list strong,html[data-theme="dark"] .shipment-key-machine .shipment-plain-list strong{color:var(--dk-text)}
html[data-theme="dark"] .shipment-key-list a:hover{color:var(--dk-accent-text)}
html[data-theme="dark"] .shipment-key-machine .shipment-plain-list span{color:var(--dk-text-3)}
html[data-theme="dark"] .shipment-key-empty{color:var(--dk-text-4)}
html[data-theme="dark"] .shipment-attention-label{color:var(--dk-amber-text)}
html[data-theme="dark"] .tui-badge{border-color:var(--dk-border);background-color:var(--dk-surface-3);color:var(--dk-text-2)}
html[data-theme="dark"] .tui-badge.tui-ok{background-color:var(--dk-surface-3);border-color:var(--dk-green-border);color:var(--dk-green-text)}
html[data-theme="dark"] .tui-badge.tui-info{background-color:var(--dk-blue-bg);border-color:var(--dk-blue-border);color:var(--dk-blue-text)}
html[data-theme="dark"] .tui-badge.tui-warn{background-color:var(--dk-amber-bg);border-color:var(--dk-amber-border);color:var(--dk-amber-text)}
html[data-theme="dark"] .tui-badge.tui-danger{background-color:var(--dk-red-bg);border-color:var(--dk-red-border);color:var(--dk-red-text)}
html[data-theme="dark"] .tui-badge.tui-muted{background-color:var(--dk-surface-3);border-color:var(--dk-border);color:var(--dk-text-2)}
html[data-theme="dark"] .tui-chip{border-color:var(--dk-border);background-color:var(--dk-surface);color:var(--dk-text-2)}
html[data-theme="dark"] .tui-chip b{background-color:var(--dk-surface-3);color:var(--dk-text-2)}
html[data-theme="dark"] .tui-chip:hover{border-color:#9fc3ae;color:var(--dk-green-text)}
html[data-theme="dark"] .tui-chip[aria-pressed="true"]{background-color:var(--dk-surface-3);border-color:#9fc3ae;color:var(--dk-green-text)}
html[data-theme="dark"] .tui-chip[aria-pressed="true"] b{background-color:#17623f;color:#ffffff}
html[data-theme="dark"] .tui-chip:focus-visible{outline-color:var(--primary)}
html[data-theme="dark"] .tui-table tbody tr.tui-row>td:first-child{box-shadow:inset 3px 0 0 var(--dk-border-strong)}
html[data-theme="dark"] .tui-table tbody tr.tui-row-ok>td:first-child{box-shadow:inset 3px 0 0 #1f8a55}
html[data-theme="dark"] .tui-table tbody tr.tui-row-warn>td:first-child{box-shadow:inset 3px 0 0 #d98b08}
html[data-theme="dark"] .tui-table tbody tr.tui-row-danger>td:first-child{box-shadow:inset 3px 0 0 #d23b47}
html[data-theme="dark"] .tui-table tbody tr.tui-row-muted>td:first-child{box-shadow:inset 3px 0 0 var(--dk-border-strong)}
html[data-theme="dark"] .tui-table .tracking-key>span.cell-muted{color:var(--dk-text-3)}
html[data-theme="dark"] .tui-carrier .tui-carrier-name{color:var(--dk-text)}
html[data-theme="dark"] .tui-voyage{color:var(--dk-text-2)}
html[data-theme="dark"] .tui-update .tui-ago{color:var(--dk-text-2)}
html[data-theme="dark"] .tui-quick-empty{color:var(--dk-text-3)}
html[data-theme="dark"] .tui-facts{border-top-color:var(--dk-border)}
html[data-theme="dark"] .tui-facts dt{color:var(--dk-text-3)}
html[data-theme="dark"] .tui-facts dd{color:var(--dk-text)}
html[data-theme="dark"] .tui-eta-note{border-color:var(--dk-border);background-color:var(--dk-surface-2);color:var(--dk-text-2)}
html[data-theme="dark"] .tui-eta-note.tui-note-warn{background-color:var(--dk-amber-bg);border-color:var(--dk-amber-border);color:var(--dk-amber-text)}
html[data-theme="dark"] .tui-eta-note.tui-note-danger{background-color:var(--dk-red-bg);border-color:var(--dk-red-border);color:var(--dk-red-text)}
html[data-theme="dark"] .tui-eta-note.tui-note-ok,html[data-theme="dark"] .tui-eta-note.tui-note-info{background-color:var(--dk-blue-bg);border-color:var(--dk-blue-border);color:var(--dk-blue-text)}
html[data-theme="dark"] .tui-eta-facts dt{color:var(--dk-text-3)}
html[data-theme="dark"] .tui-eta-facts dd{color:var(--dk-text)}
html[data-theme="dark"] .tui-containers>summary{background-color:var(--dk-surface)}
html[data-theme="dark"] .provider-references li.tui-container-card{border-color:var(--dk-border);background-color:var(--dk-surface)}
html[data-theme="dark"] .tui-container-facts dt{color:var(--dk-text-3)}
html[data-theme="dark"] .tui-container-facts dd{color:var(--dk-text)}
html[data-theme="dark"] .tui-container-facts .cell-muted{color:var(--dk-text-3)}
html[data-theme="dark"] .tui-container-card a[data-provider-open]{background-color:var(--primary);color:#ffffff}
html[data-theme="dark"] .tui-container-card a[data-provider-open]:hover{background-color:var(--primary-dark);color:#ffffff}
html[data-theme="dark"] .tui-container-card a[data-provider-open][aria-disabled="true"]{background-color:var(--dk-surface-3);color:var(--dk-text-3)}
html[data-theme="dark"] [data-provider-navigation]>label{color:var(--dk-text-2)}
html[data-theme="dark"] [data-provider-navigation] p.meta{color:var(--dk-text-3)}
html[data-theme="dark"] [data-provider-navigation] [data-provider-handoff]:not(:empty){background-color:var(--dk-blue-bg);color:var(--dk-blue-text)}
html[data-theme="dark"] .tui-subsection{border-color:var(--dk-border-strong);background-color:var(--dk-surface-2)}
html[data-theme="dark"] .tui-subsection>summary{color:var(--dk-text-2)}
html[data-theme="dark"] .tui-subsection[open]>summary{border-bottom-color:var(--dk-border-strong)}
html[data-theme="dark"] .tui-subsection-body>.card{border-color:var(--border);box-shadow:none}
html[data-theme="dark"] .tui-history-table th{border-bottom-color:var(--dk-border);color:var(--dk-text-3)}
html[data-theme="dark"] .tui-history-table td{border-bottom-color:var(--dk-border)}
html[data-theme="dark"] .tui-history-table .cell-muted{color:var(--dk-text-3)}
html[data-theme="dark"] .tui-history-table .tui-prev{color:var(--dk-text-3)}
/* tracking-eta-extension.css */
html[data-theme="dark"] .eta-container-lookup{border-color:currentcolor;background-color:transparent}
html[data-theme="dark"] .eta-synthetic-summary{border-color:#b98520;background-color:var(--dk-amber-bg)}
html[data-theme="dark"] .eta-real-card{border-color:var(--dk-border);background-color:var(--dk-surface)}
html[data-theme="dark"] .eta-real-source{color:var(--dk-blue-text)}
html[data-theme="dark"] .eta-real-pending{background-color:var(--dk-amber-bg);color:var(--dk-amber-text)}
html[data-theme="dark"] .eta-real-fields dt{color:var(--dk-text-3)}
html[data-theme="dark"] .eta-real-fields dd:nth-child(4){color:var(--dk-blue-text)}
html[data-theme="dark"] .eta-save-success{border-color:var(--dk-green-border);background-color:var(--dk-green-bg);color:var(--dk-green-text)}
html[data-theme="dark"] .tui-capture{border-color:var(--dk-border);background-color:var(--dk-surface-2)}
html[data-theme="dark"] .tui-capture>p.meta{color:var(--dk-text-2)}
html[data-theme="dark"] .tui-capture [data-cc-status]{border-color:var(--dk-border);background-color:var(--dk-surface);color:var(--dk-text-2)}
html[data-theme="dark"] .tui-capture [data-cc-status][data-tone="info"]{background-color:var(--dk-blue-bg);border-color:var(--dk-blue-border);color:var(--dk-blue-text)}
html[data-theme="dark"] .tui-capture [data-cc-status][data-tone="warn"]{background-color:var(--dk-amber-bg);border-color:var(--dk-amber-border);color:var(--dk-amber-text)}
html[data-theme="dark"] .tui-capture [data-cc-status][data-tone="danger"]{background-color:var(--dk-red-bg);border-color:var(--dk-red-border);color:var(--dk-red-text)}
html[data-theme="dark"] .tui-capture [data-cc-status] code{background-color:var(--dk-surface-3);color:var(--dk-text-2)}
html[data-theme="dark"] .tui-capture .eta-real-card{border-left-color:#d98b08}
html[data-theme="dark"] .tui-capture [data-cc-attestation]{border-color:var(--dk-amber-border);background-color:var(--dk-amber-bg);color:var(--dk-amber-text)}
/* carrier-import.css */
html[data-theme="dark"] [data-carrier-import] [data-ci-paste]:focus{outline-color:#198096}
/* mobile.css */
@media(max-width:820px){
html[data-theme="dark"] .mobile-nav-close{border-color:currentcolor;background-color:transparent}
html[data-theme="dark"] .mobile-nav-backdrop:not([hidden]){border-color:currentcolor;background-color:rgba(3,15,10,.5)}
}
@media(max-width:767px){
html[data-theme="dark"] .sample-mobile-card{background-color:var(--dk-surface);border-color:var(--border)}
html[data-theme="dark"] .sample-mobile-title{color:var(--dk-accent-text)}
html[data-theme="dark"] .sample-mobile-fields dt,html[data-theme="dark"] .sample-mobile-statuses>div>span{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-mobile-dates{border-top-color:var(--border)}
html[data-theme="dark"] .sample-mobile-more{border-top-color:var(--border)}
html[data-theme="dark"] .sample-mobile-more summary{color:var(--dk-accent-text)}
html[data-theme="dark"] .sample-detail .sample-detail-tabs{border-color:currentcolor}
html[data-theme="dark"] .sample-detail-tabs .tab,html[data-theme="dark"] .sample-detail-tabs .tab:first-child{background-color:var(--dk-surface);border-color:var(--border)}
html[data-theme="dark"] .sample-detail-tabs .tab.active{background-color:var(--primary-soft);border-color:var(--primary)}
html[data-theme="dark"] .sample-lightbox-heading{background-color:var(--dk-surface)}
}
/* sample-lifecycle.css */
html[data-theme="dark"] .sample-delete-controls{border-color:var(--dk-red-border);background-color:var(--dk-surface-2)}
html[data-theme="dark"] .sample-delete-controls h3{color:var(--dk-red-text)}
html[data-theme="dark"] .sample-delete-controls p{color:var(--dk-text-3)}
html[data-theme="dark"] .sample-delete-summary dt{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-delete-modal .sample-delete-warning{border-left-color:#b42318;background-color:var(--dk-red-bg);color:var(--dk-red-text)}
html[data-theme="dark"] .sample-delete-identity,html[data-theme="dark"] .sample-delete-status{color:var(--dk-text-2)}
html[data-theme="dark"] .sample-delete-modal .sample-delete-submit{color:#fff;background-color:#b42318;border-color:#b42318}
html[data-theme="dark"] .sample-delete-modal .sample-delete-submit:hover:not(:disabled){background-color:#8f1c16;border-color:#8f1c16}
html[data-theme="dark"] .sample-delete-controls .btn:focus-visible,html[data-theme="dark"] .sample-delete-modal .btn:focus-visible,html[data-theme="dark"] .sample-deleted-page :is(a,button,summary):focus-visible{outline-color:var(--primary)}
html[data-theme="dark"] .sample-deleted-count{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-deleted-empty p{color:var(--muted-foreground)}
html[data-theme="dark"] .sample-deleted-history summary{color:var(--dk-accent-text)}
html[data-theme="dark"] .sample-deleted-history span{color:var(--muted-foreground)}
@media(max-width:767px){
html[data-theme="dark"] .sample-deleted-table-wrap{border-color:currentcolor;background-color:transparent}
html[data-theme="dark"] .sample-deleted-table tr{background-color:var(--dk-surface);border-color:var(--border)}
html[data-theme="dark"] .sample-deleted-table td{border-color:currentcolor}
html[data-theme="dark"] .sample-deleted-table td::before{color:var(--muted-foreground)}
}
/* countries.css */
html[data-theme="dark"] .country-picker .country-picker-native,html[data-theme="dark"] .country-picker-sr{border-color:currentcolor!important}
html[data-theme="dark"] .country-picker .country-picker-input{border-color:var(--dk-border);background-color:var(--dk-surface);color:inherit}
html[data-theme="dark"] .country-picker .country-picker-input:focus{outline-color:#008052;border-color:var(--primary,#008052)}
html[data-theme="dark"] .country-picker .country-picker-input[aria-invalid=true]{border-color:#b42318}
html[data-theme="dark"] .country-picker .country-picker-input:disabled{background-color:var(--dk-surface-2);color:var(--dk-text-3)}
html[data-theme="dark"] .country-picker-arrow{color:var(--dk-text-3)}
html[data-theme="dark"] .country-picker .country-picker-clear{border-color:currentcolor;background-color:transparent;color:var(--dk-text-3)}
html[data-theme="dark"] .country-picker .country-picker-clear:hover{background-color:var(--dk-surface-3);color:var(--dk-text)}
html[data-theme="dark"] .country-picker .country-picker-clear:focus-visible{outline-color:#008052}
html[data-theme="dark"] .country-picker-list{border-color:var(--dk-green-border);background-color:var(--dk-surface);color:var(--dk-text);box-shadow:0 8px 24px #172f2326}
html[data-theme="dark"] .country-picker-option:hover,html[data-theme="dark"] .country-picker-option.is-active{background-color:var(--dk-surface-3);color:var(--dk-green-text)}
html[data-theme="dark"] .country-picker-empty{color:var(--dk-text-3)}
/* crm.css */
html[data-theme="dark"] .crm-ui{--crm-ink:var(--dk-text);--crm-muted:var(--dk-text-3);--crm-line:var(--dk-border);--crm-soft:var(--dk-surface-2)}
html[data-theme="dark"] .crm-ui .main-content{background-color:var(--dk-surface-2);color:var(--crm-ink)}
html[data-theme="dark"] .crm-ui .page-heading p,html[data-theme="dark"] .crm-ui .detail-hero p{color:var(--crm-muted)}
html[data-theme="dark"] .crm-ui .eyebrow{color:var(--crm-muted)}
html[data-theme="dark"] .crm-ui .btn{box-shadow:none}
html[data-theme="dark"] .crm-ui .btn-primary{background-color:#087d55;border-color:#087d55}
html[data-theme="dark"] .crm-ui .btn-primary:hover{background-color:#096c4b;border-color:#096c4b}
html[data-theme="dark"] .crm-ui .btn-ghost{border-color:var(--dk-border);background-color:var(--dk-surface);color:var(--dk-text-2)}
html[data-theme="dark"] .crm-ui .btn-ghost:hover{background-color:var(--dk-surface-3);border-color:var(--dk-border-strong)}
html[data-theme="dark"] .crm-ui .btn-danger{background-color:var(--dk-surface);color:var(--dk-red-text);border-color:var(--dk-red-border)}
html[data-theme="dark"] .crm-ui .btn[disabled]{box-shadow:none}
html[data-theme="dark"] .crm-ui .btn:focus-visible,html[data-theme="dark"] .crm-ui a:focus-visible,html[data-theme="dark"] .crm-ui summary:focus-visible{outline-color:#168661}
html[data-theme="dark"] .crm-ui .crm-view-nav{border-bottom-color:var(--crm-line)}
html[data-theme="dark"] .crm-ui .crm-view-nav a{border-bottom-color:transparent;color:var(--crm-muted)}
html[data-theme="dark"] .crm-ui .crm-view-nav a[aria-current=page]{color:var(--dk-green-text);border-bottom-color:#087d55}
html[data-theme="dark"] .crm-ui .pill-button{border-color:currentcolor;background-color:transparent;color:var(--dk-text-3)}
html[data-theme="dark"] .crm-ui .pill-button:hover{background-color:var(--dk-surface-3);color:var(--dk-text-2)}
html[data-theme="dark"] .crm-ui .pill-button.active{background-color:var(--dk-surface-3);color:var(--dk-green-text)}
html[data-theme="dark"] .crm-ui .table-wrap{border-color:var(--crm-line);box-shadow:0 2px 4px rgba(25,46,35,.015)}
html[data-theme="dark"] .crm-ui th{background-color:var(--dk-surface-2);color:var(--dk-text-3);border-color:var(--crm-line)}
html[data-theme="dark"] .crm-ui td{border-color:var(--dk-border)}
html[data-theme="dark"] .crm-ui tbody tr:hover{background-color:var(--dk-surface-2)}
html[data-theme="dark"] .crm-ui .table-link{color:var(--dk-text)}
html[data-theme="dark"] .crm-ui .cell-muted{color:var(--dk-text-3)}
html[data-theme="dark"] .crm-ui .crm-opportunity-cell>.crm-company-link{color:var(--dk-text)}
html[data-theme="dark"] .crm-ui .crm-opportunity-cell>.crm-opportunity-link{color:var(--dk-text-3)}
html[data-theme="dark"] .crm-ui .crm-opportunity-cell>.crm-opportunity-link:hover{color:var(--dk-green-text)}
html[data-theme="dark"] .crm-ui .sr-only{border-color:currentcolor}
html[data-theme="dark"] .crm-ui .crm-row-action{color:var(--dk-text-3)}
html[data-theme="dark"] .crm-ui .crm-empty{color:var(--crm-muted)}
html[data-theme="dark"] .crm-ui .crm-empty strong{color:var(--dk-text-2)}
html[data-theme="dark"] .crm-ui .badge{border-color:currentcolor}
html[data-theme="dark"] .crm-ui .badge-neutral{background-color:var(--dk-surface-3);color:var(--dk-text-3)}
html[data-theme="dark"] .crm-ui .badge-info{background-color:var(--dk-blue-bg);color:var(--dk-blue-text)}
html[data-theme="dark"] .crm-ui .badge-success{background-color:var(--dk-surface-3);color:var(--dk-green-text)}
html[data-theme="dark"] .crm-ui .badge-warning{background-color:var(--dk-amber-bg);color:var(--dk-orange-text)}
html[data-theme="dark"] .crm-ui .badge-danger{background-color:var(--dk-red-bg);color:var(--dk-red-text)}
html[data-theme="dark"] .crm-ui .crm-stage-WON{background-color:var(--dk-surface-3);color:var(--dk-green-text)}
html[data-theme="dark"] .crm-ui .crm-stage-LOST{background-color:var(--dk-red-bg);color:var(--dk-red-text)}
html[data-theme="dark"] .crm-ui .crm-stage-NEW,html[data-theme="dark"] .crm-ui .crm-stage-CONTACTED,html[data-theme="dark"] .crm-ui .crm-stage-QUALIFIED,html[data-theme="dark"] .crm-ui .crm-stage-SAMPLE_TESTING,html[data-theme="dark"] .crm-ui .crm-stage-QUOTATION,html[data-theme="dark"] .crm-ui .crm-stage-NEGOTIATION{background-color:var(--dk-blue-bg);color:var(--dk-blue-text)}
html[data-theme="dark"] .crm-ui .card{border-color:var(--crm-line);box-shadow:none}
html[data-theme="dark"] .crm-ui .card-header{border-color:var(--crm-line)}
html[data-theme="dark"] .crm-ui .metrics{border-bottom-color:var(--crm-line);background-color:transparent}
html[data-theme="dark"] .crm-ui .metric{border-color:currentcolor;background-color:transparent;border-right-color:var(--crm-line)}
html[data-theme="dark"] .crm-ui .metric:nth-child(4n){border-right-color:currentcolor}
html[data-theme="dark"] .crm-ui .metric .label{color:var(--crm-muted)}
html[data-theme="dark"] .crm-ui .detail-hero{background-color:transparent;border-color:currentcolor;border-bottom-color:var(--crm-line)}
html[data-theme="dark"] .crm-ui .definition-grid{background-color:transparent;border-color:currentcolor}
html[data-theme="dark"] .crm-ui .definition{background-color:transparent}
html[data-theme="dark"] .crm-ui .definition span{color:var(--crm-muted)}
html[data-theme="dark"] .crm-ui .tabs{border-color:var(--crm-line)}
html[data-theme="dark"] .crm-ui .tab{color:var(--crm-muted)}
html[data-theme="dark"] .crm-ui .tab.active{color:var(--dk-green-text);border-bottom-color:#087d55}
html[data-theme="dark"] .crm-ui .toolbar>select,html[data-theme="dark"] .crm-ui .detail-hero select{border-color:var(--dk-border);background-color:var(--dk-surface)}
html[data-theme="dark"] .crm-ui .stack-form label{color:var(--dk-text-2)}
html[data-theme="dark"] .crm-ui .stack-form input,html[data-theme="dark"] .crm-ui .stack-form select,html[data-theme="dark"] .crm-ui .stack-form textarea{background-color:var(--dk-surface);border-color:var(--dk-border)}
html[data-theme="dark"] .crm-ui .stack-form input:focus,html[data-theme="dark"] .crm-ui .stack-form select:focus,html[data-theme="dark"] .crm-ui .stack-form textarea:focus{border-color:#78aa91;box-shadow:0 0 0 3px var(--dk-border);outline-color:currentcolor}
html[data-theme="dark"] .crm-ui .form-section{border-bottom-color:var(--crm-line)}
html[data-theme="dark"] .crm-ui .form-section:last-of-type{border-bottom-color:currentcolor}
html[data-theme="dark"] .crm-ui .form-section h3{color:var(--dk-text-2)}
html[data-theme="dark"] .crm-ui .form-actions{border-color:var(--crm-line)}
html[data-theme="dark"] .crm-ui .crm-editor{border-color:var(--crm-line);background-color:var(--dk-surface)}
html[data-theme="dark"] .crm-ui .crm-form-section{border-top-color:var(--crm-line)}
html[data-theme="dark"] .crm-ui .crm-form-section:first-of-type{border-top-color:currentcolor}
html[data-theme="dark"] .crm-ui .crm-section-heading p{color:var(--crm-muted)}
html[data-theme="dark"] .crm-ui #opportunity-current-owner{color:var(--dk-text-3)}
html[data-theme="dark"] .crm-ui .crm-detail-aside h3{color:var(--dk-text-3)}
html[data-theme="dark"] .crm-ui .crm-context dt{color:var(--crm-muted)}
html[data-theme="dark"] .crm-ui .crm-context a{color:var(--dk-green-text)}
html[data-theme="dark"] .crm-ui .crm-back{color:var(--dk-text-3)}
html[data-theme="dark"] .crm-ui .flash{box-shadow:none}
html[data-theme="dark"] .crm-ui .flash-error{color:var(--dk-red-text);background-color:var(--dk-red-bg);border-color:var(--dk-red-border)}
html[data-theme="dark"] .crm-ui .flash-warning{color:var(--dk-amber-text);background-color:var(--dk-amber-bg);border-color:var(--dk-amber-border)}
html[data-theme="dark"] .crm-ui .flash-success{color:var(--dk-green-text);background-color:var(--dk-surface-2);border-color:var(--dk-border)}
html[data-theme="dark"] .crm-ui .modal{border-color:var(--crm-line);box-shadow:0 22px 70px #16291f29}
html[data-theme="dark"] .crm-ui .modal>header{border-color:var(--crm-line)}
html[data-theme="dark"] .crm-ui .admin-section{border-color:var(--crm-line)}
html[data-theme="dark"] .crm-ui .approval-empty{background-color:transparent;border-color:currentcolor;color:var(--crm-muted)}
html[data-theme="dark"] .crm-ui .approval-empty strong{color:var(--dk-text-2)}
html[data-theme="dark"] .crm-ui .wizard-steps{border-bottom-color:var(--crm-line)}
html[data-theme="dark"] .crm-ui .wizard-step{background-color:transparent;border-color:currentcolor;border-bottom-color:transparent}
html[data-theme="dark"] .crm-ui .wizard-step.active{border-bottom-color:#087d55}
html[data-theme="dark"] .crm-ui .wizard-steps:has(+form .wizard-panel.active) .wizard-step{color:var(--dk-text-3);border-bottom-color:transparent}
html[data-theme="dark"] .crm-ui .wizard-steps:has(+form .wizard-panel.active) .wizard-step b{background-color:var(--dk-surface-3);color:var(--dk-text-3)}
html[data-theme="dark"] .crm-ui .wizard-steps:has(+form [data-wizard-panel="1"].active) .wizard-step:nth-child(1),html[data-theme="dark"] .crm-ui .wizard-steps:has(+form [data-wizard-panel="2"].active) .wizard-step:nth-child(2),html[data-theme="dark"] .crm-ui .wizard-steps:has(+form [data-wizard-panel="3"].active) .wizard-step:nth-child(3),html[data-theme="dark"] .crm-ui .wizard-steps:has(+form [data-wizard-panel="4"].active) .wizard-step:nth-child(4),html[data-theme="dark"] .crm-ui .wizard-steps:has(+form [data-wizard-panel="5"].active) .wizard-step:nth-child(5){color:var(--dk-green-text);border-bottom-color:#087d55}
html[data-theme="dark"] .crm-ui .wizard-steps:has(+form [data-wizard-panel="1"].active) .wizard-step:nth-child(1) b,html[data-theme="dark"] .crm-ui .wizard-steps:has(+form [data-wizard-panel="2"].active) .wizard-step:nth-child(2) b,html[data-theme="dark"] .crm-ui .wizard-steps:has(+form [data-wizard-panel="3"].active) .wizard-step:nth-child(3) b,html[data-theme="dark"] .crm-ui .wizard-steps:has(+form [data-wizard-panel="4"].active) .wizard-step:nth-child(4) b,html[data-theme="dark"] .crm-ui .wizard-steps:has(+form [data-wizard-panel="5"].active) .wizard-step:nth-child(5) b{background-color:#087d55;color:#fff}
html[data-theme="dark"] .crm-ui .price-summary{background-color:var(--dk-surface-2);border-color:var(--crm-line)}
@media(min-width:821px) and (max-width:1200px){
html[data-theme="dark"] .crm-ui .crm-detail-aside{border-top-color:var(--crm-line)}
}
@media(max-width:820px){
html[data-theme="dark"] .crm-ui .crm-detail-aside{border-top-color:var(--crm-line)}
}
@media(max-width:600px){
html[data-theme="dark"] .crm-ui .metric:nth-child(even){border-right-color:currentcolor}
}
html[data-theme="dark"] .crm-ui .crm-approval-PENDING_APPROVAL{background-color:var(--dk-amber-bg);color:var(--dk-orange-text)}
html[data-theme="dark"] .crm-ui .crm-approval-APPROVED{background-color:var(--dk-surface-3);color:var(--dk-green-text)}
html[data-theme="dark"] .crm-ui .crm-approval-REJECTED{background-color:var(--dk-red-bg);color:var(--dk-red-text)}
html[data-theme="dark"] .crm-ui .crm-leads-search{background-color:var(--dk-surface);border-color:var(--dk-border)}
html[data-theme="dark"] .crm-ui .crm-leads-controls .pill-button{color:var(--dk-green-text)}
html[data-theme="dark"] .crm-ui .crm-leads-controls .pill-button.active{color:var(--dk-green-text)}
html[data-theme="dark"] .crm-ui .crm-leads-page .table-wrap{border-color:var(--dk-border);box-shadow:none}
html[data-theme="dark"] .crm-ui .crm-leads-table th{background-color:var(--dk-surface-2);color:var(--dk-text-2)}
html[data-theme="dark"] .crm-ui .crm-leads-table td{border-bottom-color:var(--dk-border)}
html[data-theme="dark"] .crm-ui .crm-lead-name a{color:var(--dk-text-3)}
html[data-theme="dark"] .crm-ui .crm-lead-name a:hover{color:var(--dk-green-text)}
html[data-theme="dark"] .opportunity-summary{color:var(--dk-text-3)}
html[data-theme="dark"] .opportunity-summary strong{color:var(--dk-text-2)}
html[data-theme="dark"] .opportunity-summary span{color:var(--dk-text-3)}
html[data-theme="dark"] .opportunity-filter-options>label{color:var(--dk-text-3)}
html[data-theme="dark"] .crm-opportunities-page .table-wrap{border-color:var(--dk-border)}
html[data-theme="dark"] .crm-ui .opportunities-table th{background-color:var(--dk-surface-2);color:var(--dk-text-3)}
html[data-theme="dark"] .crm-ui .opportunities-table td{border-bottom-color:var(--dk-border)}
html[data-theme="dark"] .opportunities-table .opportunity-name{color:var(--dk-text-2)}
html[data-theme="dark"] .opportunity-empty{color:var(--dk-text-4)}
html[data-theme="dark"] .opportunity-lane{background-color:var(--dk-surface-2);border-color:var(--dk-border)}
html[data-theme="dark"] .opportunity-lane h3 span{color:var(--dk-text-3)}
html[data-theme="dark"] .opportunity-lane header p,html[data-theme="dark"] .opportunity-lane header small{color:var(--dk-text-3)}
html[data-theme="dark"] .opportunity-card{background-color:var(--dk-surface);border-color:var(--dk-border);color:var(--dk-blue-text)}
html[data-theme="dark"] .opportunity-card:hover,html[data-theme="dark"] .opportunity-card:focus-visible{border-color:#9aacc1;box-shadow:0 2px 8px #2232480a}
html[data-theme="dark"] .opportunity-card strong{color:var(--dk-text-2)}
html[data-theme="dark"] .opportunity-card b{color:var(--dk-text-2)}
html[data-theme="dark"] .crm-ui .crm-card-review fieldset{border-color:currentcolor}
html[data-theme="dark"] .crm-ui th[aria-sort]:not([aria-sort="none"]) a{color:var(--dk-green-text)}
}
/* END GENERATED DARK OVERRIDES */

/* Manual refinements (after the generated section so they win at equal specificity). */
@media screen{
html[data-theme="dark"]{
  --background:var(--dk-bg);--foreground:var(--dk-text);--card:var(--dk-surface);
  --primary-dark:hsl(157 100% 30%);--primary-soft:var(--dk-green-bg);
  --muted:var(--dk-surface-2);--muted-foreground:var(--dk-text-3);--border:var(--dk-border);
  --shadow:0 20px 50px rgba(0,0,0,.55)
}
html[data-theme="dark"] body{background:var(--dk-bg);color:var(--dk-text)}
html[data-theme="dark"] .crm-ui .main-content{background-color:var(--dk-bg)}
html[data-theme="dark"] ::selection{background:#2f5d43;color:#fff}
html[data-theme="dark"] .appearance-options button[aria-checked="true"]{background:var(--dk-surface-4);color:#fff;box-shadow:inset 0 0 0 1px var(--dk-border-stronger)}
/* Logos keep their original colors on a light plate; monochrome navigation icons follow the text color. */
html[data-theme="dark"] .brand img{background:#fff;padding:2px}
html[data-theme="dark"] .nav-icon img{filter:invert(1) brightness(.85)}
html[data-theme="dark"] .nav-link.active .nav-icon img{filter:brightness(0) invert(1)}
/* Dashboard accent works as text, bar fill and icon background on dark surfaces. */
html[data-theme="dark"] .meyer-dashboard{--db-green:#4fae74;--db-dark:var(--dk-text);--db-muted:var(--dk-text-3);--db-border:var(--dk-border)}
/* Map controls (vendor stylesheet); map tiles stay unchanged. */
html[data-theme="dark"] .leaflet-container{background:var(--dk-surface-2)}
html[data-theme="dark"] .leaflet-bar a{background:var(--dk-surface-2);color:var(--dk-text);border-bottom-color:var(--dk-border)}
html[data-theme="dark"] .leaflet-bar{border-color:var(--dk-border)}
html[data-theme="dark"] .leaflet-control-attribution{background:rgba(26,32,29,.85);color:var(--dk-text-3)}
html[data-theme="dark"] .leaflet-control-attribution a{color:var(--dk-accent-text)}
html[data-theme="dark"] .leaflet-popup-content-wrapper,html[data-theme="dark"] .leaflet-popup-tip{background:var(--dk-surface);color:var(--dk-text)}
/* Tracking UI redesign 2026-11-06: status tones keep their meaning on dark surfaces. */
html[data-theme="dark"] .tui-badge.tui-ok{background:var(--dk-green-bg);border-color:var(--dk-green-border);color:var(--dk-green-text)}
html[data-theme="dark"] .tui-badge.tui-info{background:var(--dk-blue-bg);border-color:var(--dk-blue-border);color:var(--dk-blue-text)}
html[data-theme="dark"] .tui-badge.tui-warn{background:var(--dk-amber-bg);border-color:var(--dk-amber-border);color:var(--dk-amber-text)}
html[data-theme="dark"] .tui-badge.tui-danger{background:var(--dk-red-bg);border-color:var(--dk-red-border);color:var(--dk-red-text)}
html[data-theme="dark"] .tui-badge.tui-muted{background:var(--dk-surface-3);border-color:var(--dk-border-strong);color:var(--dk-text-3)}
html[data-theme="dark"] .tui-eta-note.tui-note-warn,html[data-theme="dark"] .tui-capture [data-cc-status][data-tone="warn"]{background:var(--dk-amber-bg);border-color:var(--dk-amber-border);color:var(--dk-amber-text)}
html[data-theme="dark"] .tui-eta-note.tui-note-danger,html[data-theme="dark"] .tui-capture [data-cc-status][data-tone="danger"]{background:var(--dk-red-bg);border-color:var(--dk-red-border);color:var(--dk-red-text)}
html[data-theme="dark"] .tui-eta-note.tui-note-ok,html[data-theme="dark"] .tui-eta-note.tui-note-info,html[data-theme="dark"] .tui-capture [data-cc-status][data-tone="info"]{background:var(--dk-blue-bg);border-color:var(--dk-blue-border);color:var(--dk-blue-text)}
html[data-theme="dark"] .tui-capture [data-cc-attestation]{background:var(--dk-amber-bg);border-color:var(--dk-amber-border);color:var(--dk-text)}
html[data-theme="dark"] .tui-chip[aria-pressed="true"]{background:var(--dk-green-bg);border-color:var(--dk-green-border);color:var(--dk-green-text)}
html[data-theme="dark"] .tui-chip[aria-pressed="true"] b{background:var(--dk-green-text);color:var(--dk-bg)}
html[data-theme="dark"] .tui-table tbody tr.tui-row-ok>td:first-child{box-shadow:inset 3px 0 0 #3fae74}
html[data-theme="dark"] .tui-table tbody tr.tui-row-warn>td:first-child{box-shadow:inset 3px 0 0 #e0a43a}
html[data-theme="dark"] .tui-table tbody tr.tui-row-danger>td:first-child{box-shadow:inset 3px 0 0 #e06a72}
html[data-theme="dark"] .tui-table tbody tr.tui-row>td:first-child,html[data-theme="dark"] .tui-table tbody tr.tui-row-muted>td:first-child{box-shadow:inset 3px 0 0 var(--dk-border-stronger)}
html[data-theme="dark"] .tui-capture .eta-real-card{border-left-color:#e0a43a}
}
