/* Two complete SHP blue themes. Brand files remain untouched. */
:root[data-theme=light]{color-scheme:light;--canvas:#f3f6fc;--surface:#fff;--surface-soft:#eaf0fa;--surface-raised:#eaf0fa;--nav:#fff;--ink:#162033;--muted:#586a82;--subtle:#667c98;--line:#dce4f0;--line-strong:#a6bbd8;--accent:#2563eb;--accent-hover:#174fc4;--accent-soft:#eaf0fa;--accent-rgb:37,99,235;--blue:#2563eb;--electric:#2563eb;--cyan:#087eb9;--chart-previous:#8192aa;--chart-grid:#dce4f0;--chart-fill-top:#2563eb30;--chart-fill-bottom:#2563eb00;--hero-top:var(--surface);--hero-bottom:var(--surface);--selected:#e1ecff;--hover:#eaf0fa;--good:#176842;--good-soft:#eaf6ef;--warn:#855506;--warn-soft:#fff5dd;--bad:#b02b3b;--bad-soft:#fff0f2;--yellow:#f2c438;--brand-red:#e5232b;--shadow:0 18px 50px #173d6414,0 2px 7px #173d6409;--panel-shadow:none;--tooltip:#fff;--chart-glow:none;--overlay:#0a1d3b55;--heat-rgb:37,99,235;--on-accent:#fff;--map-land:#eaf0fa;--map-outline:#a6bbd8;}
:root[data-theme=dark]{color-scheme:dark;--canvas:#0b1220;--surface:#152238;--surface-soft:#1d2d46;--surface-raised:#223751;--nav:#101b2d;--ink:#e7eef9;--muted:#a5b3c8;--subtle:#91a5bf;--line:#2a3c58;--line-strong:#486788;--accent:#4c9aff;--accent-hover:#8bc3ff;--accent-soft:#1d3656;--accent-rgb:76,154,255;--blue:#4c9aff;--electric:#4c9aff;--cyan:#80d9ff;--chart-previous:#a5b3c8;--chart-grid:#2a3c58;--chart-fill-top:#4c9aff38;--chart-fill-bottom:#4c9aff00;--hero-top:var(--surface);--hero-bottom:var(--surface);--selected:#23466d;--hover:#1d2d46;--good:#7edcb0;--good-soft:#14372c;--warn:#f0c86d;--warn-soft:#3c301b;--bad:#ff9baa;--bad-soft:#3e2431;--yellow:#f2c438;--brand-red:#e5232b;--shadow:0 22px 60px #0005,0 2px 8px #0003;--panel-shadow:none;--tooltip:#1d2d46;--chart-glow:none;--overlay:#020912bb;--heat-rgb:76,154,255;--on-accent:#071728;--map-land:#223751;--map-outline:#486788;}
[data-theme] body{background:var(--canvas);color:var(--ink)}
[data-theme] :is(.panel,.product-card,.operation-focus,.filters,.login-overview,.workspace-switch,.mobile-checkout,dialog,.action-popover){background:var(--surface);border-color:var(--line);color:var(--ink)}
[data-theme] :is(.sidebar,.sidebar-foot){background:var(--nav);border-color:var(--line)}
[data-theme] :is(.topbar,.portal-top,.portal-nav){background:var(--surface);border-color:var(--line)}
[data-theme] .panel{box-shadow:var(--panel-shadow)}
[data-theme] :is(.panel-head,.modal-head,.modal-actions,.settings-row,.form-section,.table-footer,.network-footer,.product-source,.commerce-note,.login-credit){border-color:var(--line)}
[data-theme] :is(.nav-link,.nav-group,.nav-link .icon,.portal-nav a,.portal-nav a .icon,.shp-signature,.top-context,.command-shortcut,.chart-support summary){color:var(--muted)}
[data-theme] :is(.nav-link:hover,.nav-link.active,.portal-nav a.active){color:var(--accent)}
[data-theme] :is(.nav-link.active .pill,.pill){background:var(--accent-soft);color:var(--accent)}
[data-theme] :is(.nav-link.active .pill,.workspace-symbol){background:var(--accent-soft);color:var(--accent)}
[data-theme] .portal-nav a.active{border-color:var(--electric)}
[data-theme] :is(.btn,.stepper){background:var(--surface);border-color:var(--line-strong);color:var(--ink)}
[data-theme] .btn:hover:not(:disabled){background:var(--hover);border-color:var(--line-strong)}
[data-theme] .btn:active:not(:disabled){background:var(--selected)}
[data-theme] :is(.btn.primary,.product-card .btn.primary):not(:disabled){background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
[data-theme] .btn.primary:not(:disabled):hover{background:var(--accent-hover);border-color:var(--accent-hover)}
[data-theme] .btn.ghost{background:transparent;border-color:transparent;color:var(--muted)}
[data-theme] .btn.ghost:hover:not(:disabled){background:var(--hover);color:var(--accent);border-color:transparent}
[data-theme] .btn.danger{color:var(--bad);border-color:var(--bad)}
[data-theme] .btn.danger:hover{background:var(--bad-soft)}
[data-theme] .btn:disabled{background:var(--surface-soft);border-color:var(--line);color:var(--subtle)}
[data-theme] .segmented{background:var(--surface-soft);border-color:var(--line)}
[data-theme] .segmented .btn.primary{background:var(--surface-raised);border-color:transparent;color:var(--accent)}
[data-theme] :is(input,select,textarea){background:var(--surface);border-color:var(--line-strong);color:var(--ink)}
[data-theme] input::placeholder,[data-theme] textarea::placeholder{color:var(--subtle)}
[data-theme] :is(input,select,textarea):hover{border-color:var(--subtle)}
[data-theme] :is(input,select,textarea):focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(var(--accent-rgb),.13);outline:none}
[data-theme] :is(input,select,textarea):disabled,[data-theme] input[readonly]{background:var(--surface-soft);border-color:var(--line);color:var(--muted)}
[data-theme] :is(input,select,textarea)[aria-invalid=true]{border-color:var(--bad);box-shadow:0 0 0 3px color-mix(in srgb,var(--bad) 12%,transparent)}
[data-theme] option,[data-theme] optgroup{background:var(--surface);color:var(--ink)}
[data-theme] :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
[data-theme] :is(.badge,.badge.demo){background:var(--surface-soft);color:var(--muted);border-color:var(--line)}
[data-theme] .badge.blue{background:var(--accent-soft);color:var(--accent)}
[data-theme] .badge.good{background:var(--good-soft);color:var(--good)}
[data-theme] .badge.warning{background:var(--warn-soft);color:var(--warn)}
[data-theme] .badge.bad{background:var(--bad-soft);color:var(--bad)}
[data-theme] :is(.avatar,.empty-symbol,.command-result-icon){background:var(--accent-soft);color:var(--accent);border-color:var(--line)}
[data-theme] :is(.data-table thead th,.matrix th){background:var(--surface-soft);border-color:var(--line);color:var(--muted)}
[data-theme] :is(.data-table td,.data-table th){border-color:var(--line)}
[data-theme] .data-table tbody td:first-child{background:var(--surface)}
[data-theme] .data-table tbody tr:hover,[data-theme] .data-table tr:hover td:first-child{background:var(--hover)}
[data-theme] .data-table tbody tr.is-selected,[data-theme] .data-table tbody tr.is-selected td:first-child{background:var(--selected)}
[data-theme] .data-table tbody tr.is-selected td:first-child{box-shadow:inset 3px 0 var(--electric)}
[data-theme] .data-table .entity{color:var(--ink)}
[data-theme] .table-footer{background:var(--surface)}
[data-theme] .table-wrap{scrollbar-color:var(--line-strong) transparent}
[data-theme] :is(.filter-note,.filter-chip,.filter-chip.locked){background:var(--surface-soft);border-color:var(--line);color:var(--muted)}
[data-theme] .filter-chip:not(.locked){background:var(--accent-soft);color:var(--accent)}
[data-theme] .filter-chip button{color:inherit}
[data-theme] .filter-chip button:hover{background:var(--selected);color:var(--ink)}
[data-theme] .tab.active{color:var(--accent);border-color:var(--electric)}
[data-theme] .kpi:hover{background:var(--hover)}
[data-theme] .kpi-value{color:var(--ink)}
[data-theme] :is(.chart-gridline){stroke:var(--chart-grid)}
[data-theme] .chart-label{fill:var(--muted)}
[data-theme] .chart-line{stroke:var(--electric)}
[data-theme] .chart-area{fill:rgba(var(--accent-rgb),.1)}
[data-theme] .chart-dot{fill:var(--electric);stroke:var(--surface)}
[data-theme] .chart-point:hover .chart-dot,[data-theme] .chart-point:focus .chart-dot{fill:var(--cyan);stroke:var(--ink)}
[data-theme] :is(.bar-track,.progress){background:var(--surface-soft)}
[data-theme] :is(.bar-fill,.chart-key){background:var(--electric)}
[data-theme] .bar-fill.decline{background:var(--bad)}
[data-theme] .bar-row:hover{background:var(--hover)}
[data-theme] :is(.info,.info.blue){background:var(--accent-soft);border-color:var(--line);color:var(--ink)}
[data-theme] .info.warning{background:var(--warn-soft);border-color:var(--warn);color:var(--ink)}
[data-theme] :is(.info.error,.info.bad){background:var(--bad-soft);border-color:var(--bad);color:var(--ink)}
[data-theme] :is(.field-error,.form-error){color:var(--bad)}
[data-theme] .order-success{background:var(--good-soft);border-color:var(--good)}
[data-theme] .queue-banner{background:var(--warn-soft);border-color:var(--line)}
[data-theme] :is(.queue-icon,.queue-age.overdue){background:var(--warn-soft);color:var(--warn)}
[data-theme] :is(.detail-total,.matched,.matched:hover,.notification.unread){background:var(--accent-soft)}
[data-theme] .timeline li{border-color:var(--line)}
[data-theme] .timeline li:before{background:var(--electric);border-color:var(--surface);outline-color:var(--line-strong)}
[data-theme] .timeline .timeline-reason{border-color:var(--line)}
[data-theme] dialog{box-shadow:var(--shadow)}
[data-theme] dialog::backdrop{background:var(--overlay)}
[data-theme] .action-popover :is(a,button):hover{background:var(--hover);color:var(--accent)}
[data-theme] .toast{background:var(--surface-raised);border:1px solid var(--line-strong);color:var(--ink);box-shadow:var(--shadow)}
[data-theme] .toast>.icon{color:var(--good)}
[data-theme] .toast.error>.icon{color:var(--bad)}
[data-theme] .toast.warning>.icon{color:var(--warn)}
[data-theme] :is(.command-trigger,.command-shortcut){background:var(--surface-soft);border-color:var(--line);color:var(--muted)}
[data-theme] .command-trigger:hover{background:var(--hover);border-color:var(--line-strong)}
[data-theme] :is(.command-result,.command-result-copy strong){color:var(--ink)}
[data-theme] .command-result[aria-selected=true]{background:var(--selected)}
[data-theme] :is(.command-search,.command-footer,.command-shortcut){border-color:var(--line)}
[data-theme] .login-page,[data-theme] .login-form-wrap{background:var(--surface)}
[data-theme] .login-story{background:var(--canvas);border-color:var(--line)}
[data-theme] :is(.persona-choice,.login-products>div){background:var(--surface);border-color:var(--line);color:var(--ink)}
[data-theme] .persona-choice:hover{background:var(--hover)}
[data-theme] .persona-choice.active{background:var(--selected);border-color:var(--line);box-shadow:inset 2px 0 var(--electric)}
[data-theme] .persona-choice.active>span,[data-theme] .persona-choice.active>.icon{color:var(--accent)}
[data-theme] :is(.login-workbench,.workbench-heading,.workflow-steps li+li){border-color:var(--line-strong)}
[data-theme] .workflow-steps li{color:var(--muted)}
[data-theme] .theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:6px 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface-soft);color:var(--ink);font-size:11px;font-weight:600;white-space:nowrap}
[data-theme] .theme-toggle:hover{border-color:var(--accent);background:var(--accent-soft)}
[data-theme] .theme-toggle .icon{width:16px;height:16px;color:var(--accent)}
[data-theme] .login-form>.theme-toggle{float:right;margin-bottom:16px}
[data-theme] .theme-changing :is(body,.sidebar,.topbar,.panel,.portal-top,.portal-nav,dialog,.btn,input,select,textarea,.theme-toggle){transition:background-color 180ms ease,color 180ms ease,border-color 180ms ease}
[data-theme] .matrix .cell,[data-theme] .legend i{background:rgba(var(--heat-rgb),var(--heat));color:var(--ink)}
[data-theme] .matrix .cell.high{color:var(--on-accent)}
[data-theme=dark] .matrix .cell.high{color:#fff}
[data-theme] .matrix .empty-cell{background:transparent;color:var(--subtle)}
[data-theme] .stepper button:hover{background:var(--selected);color:var(--accent)}
[data-theme] .stepper:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px rgba(var(--accent-rgb),.12)}

[data-theme] :is(.modal-head,.entity-summary,.profile-intro,.queue-panel .panel-head,.skip){background:var(--surface);color:var(--ink);border-color:var(--line)}
[data-theme] .form-error{background:var(--bad-soft);border-color:var(--bad)}
[data-theme] .review-ack{background:var(--warn-soft);border-color:var(--warn);color:var(--ink)}
[data-theme] .info.success{background:var(--good-soft);border-color:var(--good);color:var(--ink)}
[data-theme] .stacked{background:var(--surface-soft)}
[data-theme] :is(.rank-number,.bar-rank,.required-mark,.timeline small,.kpi-label .icon,.integration>.icon){color:var(--muted)}
[data-theme] .product-symbol{background:var(--accent-soft);color:var(--accent)}
[data-theme] .data-table tbody tr:focus-within,[data-theme] .data-table tbody tr:focus-within td:first-child{background:var(--hover)}
[data-theme] .data-table tbody tr.is-selected:focus-within,[data-theme] .data-table tbody tr.is-selected:focus-within td:first-child{background:var(--selected)}
@media(max-width:680px){[data-theme] .theme-toggle>span{display:none}[data-theme] .theme-toggle{width:36px;min-height:36px;padding:7px}[data-theme] .portal-top .theme-toggle{width:32px;min-height:34px}[data-theme] .login-form>.theme-toggle{width:auto}[data-theme] .login-form>.theme-toggle>span{display:inline}}
@media(prefers-reduced-motion:reduce){[data-theme] .theme-changing *{transition:none!important}}
/* One native select menu with a consistently inset chevron. */
:root{--select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2362758f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
:root[data-theme=dark]{--select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aabc3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
html[data-theme] body select:not([multiple]):not([size]),html[data-theme] body select[size="1"]:not([multiple]){appearance:none;-webkit-appearance:none;background-image:var(--select-chevron);background-position:right 15px center;background-size:16px 16px;background-repeat:no-repeat;padding-right:42px!important;padding-left:12px!important;text-overflow:ellipsis}
@media(forced-colors:active){html[data-theme] body select:not([multiple]){appearance:auto;background-image:none}}
@media print{:root[data-theme]{--canvas:#fff;--surface:#fff;--surface-soft:#f5f7fa;--surface-raised:#fff;--ink:#142c46;--muted:#526b85;--line:#ccd6e0;--accent:#086fb4;--electric:#086fb4;--chart-grid:#dce6ef;--chart-previous:#526b85;--chart-fill-top:#168bdb22;--chart-fill-bottom:#168bdb02;--hero-top:#fff;--hero-bottom:#fff;--chart-glow:none;--selected:#e8f3ff}.theme-toggle{display:none!important}}
