/* All skin decisions are values in presets; no theme-name selectors here. */
html[data-theme-id] body{background:var(--theme-page-background);color:var(--theme-ink);font-family:var(--theme-font-ui)}
html[data-theme-id] body .aurora .blob{opacity:var(--theme-effect-opacity)!important}
html[data-theme-id] body .navbar-expand-sm.navbar-vertical{background:var(--theme-nav-background);border-color:var(--theme-line);box-shadow:var(--theme-shadow-card)}
html[data-theme-id] body .navbar-brand,html[data-theme-id] body .brand-txt .brand-name{color:var(--theme-nav-title)}
html[data-theme-id] body .navbar-vertical .nav-item .nav-link{color:var(--theme-nav-text)}
html[data-theme-id] body .navbar-vertical .nav-link-icon{color:var(--theme-nav-icon)}
html[data-theme-id] body .navbar-vertical .nav-item.active .nav-link{background:var(--theme-nav-selected);color:var(--theme-nav-selected-ink)}
html[data-theme-id] body .navbar-vertical .nav-item.active .nav-link-icon{color:var(--theme-nav-selected-ink)}
html[data-theme-id] body .sidebar-footer{background:transparent}
html[data-theme-id] body .card,html[data-theme-id] body .kpi-tile{background:var(--theme-card-background);border-color:var(--theme-line);box-shadow:var(--theme-shadow-card)}
html[data-theme-id] body .db-title,html[data-theme-id] body .card-head .card-title{font-family:var(--theme-font-display)}
html[data-theme-id] body .db-hero{background:var(--theme-hero-background)}
html[data-theme-id] body .db-hero-value{background:var(--theme-hero-number-fill);background-clip:text;-webkit-background-clip:text;color:transparent;filter:none}
html[data-theme-id] body .db-hero .db-hstat .v{color:var(--theme-hero-stat-ink)}
html[data-theme-id] body .db-hero:after{background:var(--theme-hero-glow)}
html[data-theme-id] body .db-hero .db-hstat .k,html[data-theme-id] body .db-hero .db-hstat .d,html[data-theme-id] body .db-hero-label,html[data-theme-id] body .db-hero-sub .muted,html[data-theme-id] body .db-hero .card-hint,html[data-theme-id] body .db-hero .db-legend span,html[data-theme-id] body .db-hero .db-xlabels{color:var(--theme-hero-secondary)}
html[data-theme-id] body .db-hero .db-hstat{border-color:var(--theme-hero-divider)}
html[data-theme-id] body .db-live,html[data-theme-id] body .db-hero .db-delta{background:var(--theme-hero-tag-bg);color:var(--theme-hero-tag-ink);border-color:transparent}
html[data-theme-id] body .db-hero .db-delta{background:var(--theme-hero-change-bg);color:var(--theme-hero-change-ink)}
html[data-theme-id] body .db-hero .db-dot{background:var(--theme-hero-tag-dot)}
html[data-theme-id] body .db-trend-wrap .g-s1{stop-color:var(--theme-chart-start)}
html[data-theme-id] body .db-trend-wrap .g-s2{stop-color:var(--theme-chart-end)}
html[data-theme-id] body .db-trend-wrap .g-a1{stop-color:var(--theme-chart-start)}
html[data-theme-id] body .db-trend-wrap .g-a2{stop-color:var(--theme-chart-start)}
html[data-theme-id] body .db-trend-wrap .t-grid{stroke:var(--theme-hero-divider)}
html[data-theme-id] body .db-trend-wrap .t-ma{stroke:var(--theme-chart-average)}
html[data-theme-id] body .db-trend-wrap .t-glow{opacity:var(--theme-chart-glow-opacity)}
html[data-theme-id] body .db-trend-dot{background:var(--theme-chart-end);box-shadow:0 0 0 4px var(--theme-hero-tag-bg)}
html[data-theme-id] body .db-hero .db-legend .dot{background:var(--theme-chart-start);box-shadow:none}
html[data-theme-id] body .db-hero .db-legend .dot.d2{background:var(--theme-chart-average)}
html[data-theme-id] body .db-range button.active,html[data-theme-id] body .db-filters .db-range button.active{background:var(--theme-accent-soft)!important;color:var(--theme-accent-ink)!important}
html[data-theme-id] body #db-hours-note b{color:var(--theme-accent-ink)}
html[data-theme-id] body .btn-primary,html[data-theme-id] body .btn.primary,html[data-theme-id] body #send{background:var(--theme-accent-fill);color:var(--theme-on-accent);border-color:var(--theme-accent)}
html[data-theme-id] body .btn:is(.btn-outline-danger,.btn-danger):not(:disabled){background:transparent;color:color-mix(in srgb,var(--theme-danger) 90%,var(--theme-ink));border-color:color-mix(in srgb,var(--theme-danger) 50%,var(--theme-line))}
@media (hover:hover){html[data-theme-id] body .btn:is(.btn-outline-danger,.btn-danger):not(:disabled):hover{background:var(--theme-danger-soft)}}
html[data-theme-id] body .btn:disabled,html[data-theme-id] body button:disabled{color:var(--theme-disabled-ink)}
html[data-theme-id] body :is(input,textarea,select):focus-visible{outline-color:var(--theme-focus)}

html[data-theme-id] body .db-hero .db-hstat .k{color:var(--theme-hero-stat-label)}
html[data-theme-id] body .db-hero .db-hstat .d{color:var(--theme-hero-stat-meta)}
html[data-theme-id] body .db-hero .db-delta{border-color:var(--theme-hero-change-line)}

/* Navigation has its own background; its small branding text uses nav ink. */
html[data-theme-id] body .navbar-vertical .brand-ai-text{color:var(--theme-nav-title)}
html[data-theme-id] body .navbar-vertical .brand-agent-label{color:var(--theme-nav-text)}
html[data-theme-id] body :is(input,textarea,select,.form-control,.form-select):not(:disabled){border-color:var(--theme-control-line)}
html[data-theme-id] body :is(input,textarea,select):focus-visible{outline:2px solid var(--theme-focus);outline-offset:2px}
/* Native file buttons must inherit both sides of the current theme pair.
   Tabler's pale default otherwise combines with dark-mode pale input ink. */
html[data-theme-id] body input[type="file"]::file-selector-button{background:var(--theme-control);color:var(--theme-ink);border-color:var(--theme-control-line)}
html[data-theme-id] body input[type="file"]:disabled::file-selector-button{background:var(--theme-disabled-surface);color:var(--theme-disabled-ink);cursor:not-allowed}
@media (hover:hover){html[data-theme-id] body input[type="file"]:not(:disabled):hover::file-selector-button{background:var(--theme-hover)}}

/* Tabler colour-name badges are semantic UI states, with the same readable
   foreground/background pair as the rest of the workbench. Vendor stays intact. */
html[data-theme-id] body .badge:is(.bg-green-lt,.bg-success-lt){background:var(--theme-success-soft)!important;color:var(--theme-success)!important}
html[data-theme-id] body .badge:is(.bg-yellow-lt,.bg-warning-lt){background:var(--theme-warning-soft)!important;color:var(--theme-warning)!important}
html[data-theme-id] body .badge:is(.bg-red-lt,.bg-danger-lt){background:var(--theme-danger-soft)!important;color:var(--theme-danger)!important}
html[data-theme-id] body .badge.bg-blue-lt{background:var(--theme-accent-soft)!important;color:var(--theme-accent-ink)!important}

/* Notices use the same semantic pairs as badges; vendor pale fills must not
   inherit dark-theme pale text. Information stays neutral and quiet. */
html[data-theme-id] body .alert-info{background:var(--theme-sunken);color:var(--theme-ink-secondary);border-color:var(--theme-line)}
html[data-theme-id] body .alert-success{background:var(--theme-success-soft);color:var(--theme-success);border-color:color-mix(in srgb,var(--theme-success) 25%,var(--theme-line))}
html[data-theme-id] body .alert-warning{background:var(--theme-warning-soft);color:var(--theme-warning);border-color:color-mix(in srgb,var(--theme-warning) 25%,var(--theme-line))}
html[data-theme-id] body .alert-danger{background:var(--theme-danger-soft);color:color-mix(in srgb,var(--theme-danger) 90%,var(--theme-ink));border-color:color-mix(in srgb,var(--theme-danger) 25%,var(--theme-line))}
