html[data-palette]{--ink:#121419;--sub:#505861;--paper:#f4f5f6;--line:#c4c8cd;--fleet-action:#a90910;--green:#171a1f;--glass:rgba(255,255,255,.96);--surface:#fff;--error:#93090e;--dispatch-nav-ink:white;--dispatch-focus:#a90910}
html[data-palette][data-theme=dark]{--ink:#f4f5f6;--sub:#c8cdd3;--paper:#121419;--line:#525960;--green:#282d35;--glass:rgba(29,33,39,.96);--surface:#1b1f25;--dark-panel:#1b1f25;--dark-input:#282d35;--dark-hover:#333a43;--dark-raised:#282d35;--dark-amber:#ffb9bc;--error:#ffb9bc;--dispatch-toolbar-surface:#171a1f;--dispatch-toolbar-glass:#171a1ff2;--dispatch-nav-ink:white;--dispatch-nav-edge:#a90910;--dispatch-focus:#ffb9bc}
html[data-palette] body,html[data-palette] #login{background:var(--paper);color:var(--ink)}
html[data-palette] .appbar,html[data-palette] #login .login-panel,html[data-palette] #roster .dispatch-card,html[data-palette] .tablewrap,html[data-palette] .management-panel{background:var(--glass);color:var(--ink);backdrop-filter:blur(8px)}
html[data-palette] .fleet-brand{color:var(--ink);font-size:1rem;gap:.4rem}
.fleet-brand::before{content:"";width:38px;height:36px;flex:none;background:white url(tk-mark.png) center/contain no-repeat;border-radius:4px}
html[data-palette] .signin-heading::before{content:"";display:block;width:144px;height:56px;background:white url(tk-logo.png) center/contain no-repeat;border-radius:4px}
html[data-palette] button.primary,html[data-palette] .appbar nav button[aria-current=page]{background:#a90910;color:white;border-color:#a90910}
html[data-palette] .appbar nav button:not([aria-current=page]){color:var(--sub)}
html[data-palette] button:disabled{color:var(--sub);background:var(--surface);opacity:1;border:1px dashed var(--line)}
html[data-palette] :focus-visible{outline:3px solid var(--dispatch-focus);outline-offset:2px}
html[data-palette] [role=alert],html[data-palette] .error,html[data-palette] #editor-delete-unit{color:var(--error)}
.card-visible-phone{font-size:.8rem;line-height:1.3}.card-visible-phone b{margin-right:.35em}

html[data-palette][data-theme] :is(button.primary,#login .signin-actions .primary,#search.tools .primary,.dlgfoot button.primary){background:#a90910;color:#fff;border-color:#a90910}
html[data-palette][data-theme] :is(button.primary,#login .signin-actions .primary,#search.tools .primary,.dlgfoot button.primary):hover{background:#8b080d;color:#fff}
html[data-palette] .theme-toggle,html[data-palette] .inline-calendar{color:var(--ink);background:var(--surface);border:1px solid var(--line)}
html[data-palette] input[type=checkbox]{accent-color:#a90910}
html[data-palette] .control-tabs button[aria-pressed=true]{background:#a90910;color:#fff}
html[data-palette][data-theme=dark] #shell{background:linear-gradient(140deg,#282d35,#1b1f25)}
html[data-palette][data-theme=light] #shell{background:linear-gradient(140deg,#fff,#f4f5f6)}
html[data-palette][data-theme] :is(button.primary,#search.tools .primary):disabled{background:var(--surface);border:1px dashed var(--sub);color:var(--sub);opacity:1}

@media(prefers-reduced-motion:no-preference){html[data-palette] :is(.appbar,button,.dispatch-card){transition:background-color .22s,color .18s,border-color .22s,box-shadow .22s}}
html[data-palette] .appbar{backdrop-filter:blur(16px) saturate(1.12);border-bottom:1px solid var(--line)}
html[data-palette] #roster .dispatch-card{box-shadow:inset 0 1px 0 #ffffff32,0 3px 14px #12141916}

html[data-theme]{--tk-wordmark:url(TK-06.png)}
html[data-theme=dark]{--tk-wordmark:url(TK-08.png)}
html[data-palette][data-theme] .fleet-brand::before,html[data-palette][data-theme] .signin-heading::before{content:"";display:block;background:transparent var(--tk-wordmark) center/contain no-repeat;border:0;border-radius:0;box-shadow:none;width:116px;height:44px}
html[data-palette][data-theme] .signin-heading::before{width:180px;height:66px;margin:auto}
html[data-palette] .fleet-brand>span,html[data-palette] .signin-heading h1{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:600px){html[data-palette][data-theme] .fleet-brand::before{width:92px;height:36px}}

html[data-theme] #roster .dispatch-card .unithead,html[data-theme] #roster .dispatch-card[data-equipment-swatch] .unithead{background:var(--equipment)!important;color:var(--card-header-ink)!important;border:1px solid color-mix(in srgb,var(--equipment),#121419 18%)!important;box-shadow:inset 0 1px 0 #ffffff52}
html[data-theme] #roster .dispatch-card .unithead::after,html[data-theme] #roster .dispatch-card .unithead-track::before{display:none}
html[data-theme] #roster .unithead :is(.unit-title,.driver-name,.unit-number,.card-type){color:var(--card-header-ink)!important}
html[data-theme=light]{--tk-daylight:radial-gradient(ellipse at 99% 9%,rgba(201,0,0,.14),transparent 38%),radial-gradient(ellipse at 2% 74%,rgba(217,24,33,.09),transparent 36%),linear-gradient(147deg,#fff 8%,#f3f4f6 32%,#fff 54%,#f6f4f4 77%,#fff)}
html[data-palette][data-theme=light] :is(body,#login,#shell){background:var(--tk-daylight) fixed;background-size:cover;min-height:100vh;min-height:100dvh}
html[data-palette][data-theme=light] :is(.workspace,.workspace>section){background-color:transparent}
html[data-palette][data-theme=light] .appbar{background:linear-gradient(105deg,#ffffffef,#fff9,#fffc);backdrop-filter:blur(18px)}
html[data-theme=dark] #shell table thead th,html[data-theme=dark] #shell table thead,html[data-theme=dark] #shell table thead tr{background:#282d35!important;color:#f4f5f6!important}
html[data-theme=dark] #copyselection .copy-preview-box,html[data-theme=dark] #copyselection .copyfields{background:#282d35;color:#f4f5f6;border-color:#525960}
html[data-theme=dark] #copypreview{background:#1b1f25;color:#f4f5f6}
