.theme-picker { display:flex; flex-shrink:0; align-items:center; gap:3px; padding:4px; border-radius:22px; background:#e9eef1; box-shadow:inset 2px 2px 5px #b6c1cb30,inset -2px -2px 5px #fff; }
.theme-picker button { border:1px solid transparent; border-radius:18px; padding:7px 11px; min-height:34px; background:transparent; color:#596773; font:500 12px/1.4 Manrope,'Segoe UI',sans-serif; cursor:pointer; }
.theme-picker button[aria-pressed=true] { background:#fafbfd; border-color:#fff; box-shadow:2px 3px 7px #aebbc629; color:#293139; }
.theme-picker button:focus-visible { outline:2px solid #238139; outline-offset:2px; }
.auth-theme-picker { position:absolute; right:24px; top:18px; z-index:20; }
html[data-theme=dark] { color-scheme:dark; background:#111; }
html[data-theme=dark] body { background:#111; color:#e4e6e4; }
html[data-theme=dark] :is(.workspace-ui,.auth-page) {
  --bg:#111111; --ink:#e4e6e4; --muted:#abb0ad; --line:#303331;
  --surface:#1d1f1e; --light:#283528; --green:#b1d39e; --green-dark:#c4dfb5;
  --raised:4px 5px 12px #0006,-2px -2px 7px #ffffff05;
  --inset:inset 2px 2px 5px #0006,inset -1px -1px 4px #ffffff05;
}
html[data-theme=dark] .theme-picker { background:#111; box-shadow:inset 2px 2px 5px #0006,inset -1px -1px 4px #ffffff05; }
html[data-theme=dark] .theme-picker button { color:#aeb5af; }
html[data-theme=dark] .theme-picker button[aria-pressed=true] { background:#252825; color:#e8eee7; border-color:#363b36; box-shadow:2px 3px 7px #0004; }
html[data-theme=dark] .theme-picker button:focus-visible { outline-color:#87d86b; }
html[data-theme=dark] .workspace-ui :is(.sidebar,.topbar) { background:#151716f5; border-color:#282c29; }
html[data-theme=dark] .workspace-ui :is(.brand-context strong,.pagehead h1,.card-heading h2,.selected-product strong,.line-title,.kpi-value,.dashboard-card h2,.summary-head h2,.quote-conditions>summary,.account-profile strong) { color:#e4e9e3; }
html[data-theme=dark] .workspace-ui :is(.brand-context,.navbutton,.brand-button,.side-label,.breadcrumb,.breadcrumb strong,.pagehead p,.eyebrow,.line-description,.help,.tiny,.summary-head p,.summary-note,.summary-state,.summary-mini small,.summary-row,.summary-mini,.field>span,.kpi-label,.kpi-note,.chart-caption,.account-link,.link-button,.connection,.secure,.version) { color:#aeb6b0; }
.printbros-logo.logo-dark { display:none; }
html[data-theme=dark] .printbros-logo.logo-light { display:none; }
html[data-theme=dark] .printbros-logo.logo-dark { display:block; background:transparent; padding:0; border-radius:0; }
html[data-theme=dark] .workspace-ui :is(.navbutton:hover,.brand-button:hover) { background:#232724; color:#e4e9e3; }
html[data-theme=dark] .workspace-ui .navbutton.active { background:#242925; border-color:#333a33; color:#d0e5c6; box-shadow:var(--raised); }
html[data-theme=dark] .workspace-ui .navbutton.active .ui-icon { color:#9bc78a; }
html[data-theme=dark] .workspace-ui .brand-switch { background:#111412; }
html[data-theme=dark] .workspace-ui .brand-button.chosen { background:#262c27; color:#deebd7; box-shadow:2px 3px 7px #0004; }
html[data-theme=dark] .workspace-ui :is(.card,.dashboard-card,.catalog-offer,.dashboard-kpi) { background:#1d1f1e; border-color:#303430; }
html[data-theme=dark] .workspace-ui .dashboard-kpi:first-child { background:#253022; border-color:#35442f; }
html[data-theme=dark] .workspace-ui :is(.kpi-icon,.metric-symbol,.quick-action-icon,.account-avatar,.username) { background:#293027; color:#b7d2a7; border-color:#354031; box-shadow:var(--raised); }
html[data-theme=dark] .workspace-ui :is(.top-search,.btn) { background:#242724; color:#d0d8d0; border-color:#353b35; box-shadow:var(--raised); }
html[data-theme=dark] .workspace-ui :is(.top-search:hover,.btn:hover) { background:#2c322c; border-color:#465043; }
html[data-theme=dark] .workspace-ui :is(.btn.primary,.header-create) { background:#74d854; color:#152310; border-color:#8be66c; box-shadow:inset 1px 1px 3px #ffffff30,3px 4px 10px #0004; }
html[data-theme=dark] .workspace-ui .btn.primary:hover { background:#8ce46e; }
html[data-theme=dark] .workspace-ui .btn.dark { background:#3b5134; border-color:#536c4a; color:#eef5eb; }
html[data-theme=dark] .workspace-ui .btn.ghost { background:transparent; border-color:transparent; box-shadow:none; color:#bac8b8; }
html[data-theme=dark] .workspace-ui .btn.ghost:hover { background:#2a302a; }
html[data-theme=dark] .workspace-ui .btn.danger { color:#f0aaa5; }
html[data-theme=dark] .workspace-ui :is(input:not([type=checkbox]):not([type=radio]),select,textarea),
html[data-theme=dark] .auth-page input { background:#141715; color:#e2e9e1; border-color:#343b35; box-shadow:var(--inset); }
html[data-theme=dark] .workspace-ui :is(input,textarea)::placeholder { color:#929d95; }
html[data-theme=dark] .workspace-ui :is(input,select,textarea):focus { border-color:#8ac776; box-shadow:var(--inset),0 0 0 3px #8ac77616; }
html[data-theme=dark] .workspace-ui :is(.step,.line-number,.tier,.tag.green) { background:#2c3927; color:#bdd7af; }
html[data-theme=dark] .workspace-ui .line-result { background:#263321; color:#b6c5ac; }
html[data-theme=dark] .workspace-ui :is(.line-result strong,.summary-total strong) { color:#c8e6b8; }
html[data-theme=dark] .workspace-ui .summary-head { background:#263122; border-color:#374333; border-top-color:#74d854; }
html[data-theme=dark] .workspace-ui :is(.summary-card,.summary-mini,.summary-total,.product-line,.account-profile,.internal-line,.internal-metrics,.draft-strip,.dialog-head,.dialog-actions) { border-color:#343b35; }
html[data-theme=dark] .workspace-ui .tag { background:#303630; color:#c0cabe; }
html[data-theme=dark] .workspace-ui :is(.quick-action,.internal-alternative,.product-choice) { background:#222723; border-color:#343e35; color:#d1ddce; }
html[data-theme=dark] .workspace-ui :is(.quick-action:hover,.product-choice:hover) { background:#2e3b29; border-color:#4a5b40; }
html[data-theme=dark] .workspace-ui :is(.disclosure summary,.internal-disclosure>summary,.mobile-account summary) { color:#b1d39e; }
html[data-theme=dark] .workspace-ui :is(.quick-dock,.mobile-account>div,dialog) { background:#1b201cf5; border-color:#354034; color:#e4e9e2; }
html[data-theme=dark] .workspace-ui dialog::backdrop { background:#0009; }
html[data-theme=dark] .workspace-ui .channel-switch { background:#121612; }
html[data-theme=dark] .workspace-ui .channel-switch [aria-pressed=true] { background:#31432a; border-color:#566d49; color:#ddedcf; }
html[data-theme=dark] .workspace-ui table:not(.proposal-items) th { background:#242a25; color:#bac6b9; }
html[data-theme=dark] .workspace-ui :is(td,th) { border-color:#303a32; }
html[data-theme=dark] .workspace-ui tbody tr:hover { background:#252e27; }
/* Shared data surfaces: dashboard, history, audit and tariff review. */
html[data-theme=dark] .workspace-ui .tablewrap { background:var(--surface); border-color:var(--line); color:var(--ink); }
html[data-theme=dark] .workspace-ui .tablewrap td { color:var(--ink); }
html[data-theme=dark] .workspace-ui .tablewrap td small { color:var(--muted); }
html[data-theme=dark] .workspace-ui .version-row { background:#242925; color:var(--ink); }
html[data-theme=dark] .workspace-ui .version-row small { color:var(--muted); }
html[data-theme=dark] .workspace-ui .json-detail { background:#141715; color:#c8d3c8; border:1px solid var(--line); }
html[data-theme=dark] .workspace-ui .diff-summary { border-color:var(--line); }
html[data-theme=dark] .workspace-ui .dashboard-status-badge { background:#303630; color:#c0cabe; }
html[data-theme=dark] .workspace-ui :is(.dashboard-status-badge.status-sent,.dashboard-status-badge.status-accepted) { background:#2c3927; color:#bdd7af; }
html[data-theme=dark] .workspace-ui :is(.tag.orange) { background:#3c3521; color:#ecda9d; }
html[data-theme=dark] .workspace-ui :is(.tag.red,.dashboard-status-badge.status-rejected) { background:#432928; color:#f7c0b9; }
html[data-theme=dark] .workspace-ui input[type=file]::file-selector-button { background:#2c322c; color:#d0d8d0; border-color:#465043; }
html[data-theme=dark] .workspace-ui .notice:not(.error):not(.warning),
html[data-theme=dark] .workspace-ui .hint:not(.error):not(.warning) { background:#263523; color:#c3dcba; border-color:#445a3c; }
html[data-theme=dark] .workspace-ui :is(.notice.error,.hint.error) { background:#432928; color:#f7c0b9; border-color:#74504b; }
html[data-theme=dark] .workspace-ui :is(.notice.warning,.hint.warning) { background:#3c3521; color:#ecda9d; border-color:#655a36; }
html[data-theme=dark] .workspace-ui :is(.chart-axis,.chart-empty p,.dashboard-scope,.dashboard-card-head p,.dashboard-kpi>small) { color:#aeb8af; fill:#aeb8af; }
html[data-theme=dark] .workspace-ui :is(.chart-grid,.donut-track) { stroke:#303831; }
html[data-theme=dark] .workspace-ui .chart-line { stroke:#a3c78f; }
html[data-theme=dark] .workspace-ui .chart-dot { fill:#a3c78f; stroke:#1d1f1e; }
html[data-theme=dark] .workspace-ui :is(.kpi-caption,.status-legend-item,.chart-empty h3,.dashboard-empty h3,.dashboard-empty p,.sidebar-bottom #role-label,.account-profile>div>span,.muted,.quick-action span,.dashboard-recents td,.draft-strip) { color:#aeb8af; }
html[data-theme=dark] .workspace-ui :is(.donut-center strong,.status-legend-item strong,.dashboard-recents strong) { color:#e4e9e2; }
html[data-theme=dark] .workspace-ui .donut-center { background:#222722; box-shadow:var(--raised); }
html[data-theme=dark] .workspace-ui .donut-center span { color:#afbcae; }
html[data-theme=dark] .workspace-ui .chart-empty { background:none; }
html[data-theme=dark] .workspace-ui :is(.empty-state p,.quick-dock small,.filter-status,.catalog-offer p,.catalog-meta,.internal-sources,.quote-conditions>summary small) { color:#afb9af; }
html[data-theme=dark] .auth-page :is(.auth-card>p,.auth-card .helptext) { color:#b3c4aa; }
html[data-theme=dark] .auth-page :is(.field>span,label span) { color:#bdcbb7; }
html[data-theme=dark] .auth-page :is(.auth-brand,.auth-content) { background:#1d211d; border-color:#303a2d; box-shadow:var(--raised); }
html[data-theme=dark] .auth-page .auth-brand { background:#242e20; }
html[data-theme=dark] .auth-page :is(.auth-intro h1,.auth-card h2,.brand-context strong) { color:#e0ecda; }
html[data-theme=dark] .auth-page :is(.auth-intro p,.auth-help,.auth-brands,.brand-context,.auth-card label,.eyebrow) { color:#b3c4aa; }
/* Customer proposals retain their paper appearance inside the dark preview. */
html[data-theme=dark] .workspace-ui .proposal-sheet { color-scheme:light; color:#202720; background:#fff; --ink:#202720; --muted:#666d65; --line:#e2e5df; }
html[data-theme=dark] .workspace-ui .proposal-sheet th { background:#202720; color:#fff; }
html[data-theme=dark] .workspace-ui .proposal-sheet :is(td,th) { border-color:#e2e5df; }
html[data-theme=dark] .workspace-ui .proposal-sheet tbody tr:hover { background:transparent; }
@media(max-width:1100px) { .workspace-ui .top-search { width:40px; padding:10px; } .workspace-ui .top-search span { display:none; } }
@media(max-width:700px) { .theme-picker button { padding:6px 8px; font-size:11px; } .workspace-ui .top-right { gap:8px; } .workspace-ui .breadcrumb { max-width:100px; } .auth-theme-picker { top:10px; right:14px; } .auth-page { padding-top:62px; } }
@media print { .theme-picker { display:none!important; } }
