/* 2.9.6 · Day theme. Loaded after every other stylesheet; active only on <html data-theme="light">.
   Night (default) is the Obsidian–Amber brand theme; Day keeps the same gold accents on a warm paper background. */
html[data-theme="light"]{color-scheme:light;
 --void:#f4f1ea;--obsidian:#f4f1ea;--navy:#e7ecf1;--bg:#f4f1ea;--panel:#ffffff;--panel-2:#f8f4ec;--line:#d8d0bf;--border:#d8d0bf;--line-hot:#c6a24e;
 --text:#1e2530;--muted:#5d6774;--blue:#15699a;--blue-2:#0f557d;--gold:#a3741c;--amber:#8a5f0a;--emerald:#1d8a62;--green:#1d8a62;--teal:#0d4f46;--red:#bf3b49;
 --shadow:0 10px 28px rgba(40,30,10,.08),inset 0 1px rgba(255,255,255,.6)}
html[data-theme="light"],html[data-theme="light"] body{background:#f4f1ea;color:#1e2530}
html[data-theme="light"] body{background:radial-gradient(circle at 80% -10%,rgba(198,162,78,.18),transparent 36%),radial-gradient(circle at 8% 90%,rgba(21,105,154,.08),transparent 32%),#f4f1ea}
html[data-theme="light"] body:before{opacity:.35;background-image:linear-gradient(rgba(21,105,154,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(21,105,154,.05) 1px,transparent 1px)}
html[data-theme="light"] a{color:#8a5f0a}
html[data-theme="light"] .sidebar,html[data-theme="light"] .topbar,html[data-theme="light"] .panel,html[data-theme="light"] .hud-panel,html[data-theme="light"] .metric,html[data-theme="light"] .metric-card,html[data-theme="light"] .card,html[data-theme="light"] header,html[data-theme="light"] .tablewrap,html[data-theme="light"] .admin-menu-panel,html[data-theme="light"] .tier,html[data-theme="light"] .tms-head,html[data-theme="light"] .tms-card,html[data-theme="light"] .tms-depot,html[data-theme="light"] .tms-alerts,html[data-theme="light"] .flash{background:#ffffff;border-color:#d8d0bf;color:#1e2530;box-shadow:0 8px 24px rgba(40,30,10,.06)}
html[data-theme="light"] .sidebar{background:linear-gradient(180deg,#fbf8f1,#f1ece1);border-right-color:#d8d0bf}
html[data-theme="light"] .topbar,html[data-theme="light"] .sg-command-page .topbar{background:rgba(255,255,255,.9);border-bottom:1px solid #d8d0bf}
html[data-theme="light"] .sg-command-page .workspace{background-image:linear-gradient(180deg,rgba(244,241,234,.78),#f4f1ea 520px),image-set(url('brand/sg-command.webp') type('image/webp'),url('brand/sg-command.jpg') type('image/jpeg'))}
html[data-theme="light"] .brand-mark{background:transparent;border-color:transparent}
html[data-theme="light"] .brand strong,html[data-theme="light"] .auth-brandline strong{color:#1e2530}
html[data-theme="light"] .brand small,html[data-theme="light"] .scope-chip,html[data-theme="light"] .sidebar-foot,html[data-theme="light"] .sidebar-foot small,html[data-theme="light"] .muted,html[data-theme="light"] small,html[data-theme="light"] .hint,html[data-theme="light"] .eyebrow,html[data-theme="light"] footer,html[data-theme="light"] .metric-note,html[data-theme="light"] .metric-label,html[data-theme="light"] .product-cell small,html[data-theme="light"] .customer-cell small,html[data-theme="light"] .app-footer,html[data-theme="light"] .auth-note,html[data-theme="light"] .threat-safe,html[data-theme="light"] .core-note,html[data-theme="light"] .tier small,html[data-theme="light"] .tms-kpi span{color:#5d6774}
html[data-theme="light"] .scope-chip{border-color:rgba(29,138,98,.35);background:rgba(29,138,98,.08);color:#1d8a62}
html[data-theme="light"] .nav a,html[data-theme="light"] .sidebar .nav a{color:#3b4653}
html[data-theme="light"] .nav a:hover,html[data-theme="light"] .sidebar .nav a:hover{color:#1e2530;background:rgba(163,116,28,.08);border-color:#d8d0bf}
html[data-theme="light"] .nav a.active,html[data-theme="light"] .sidebar .nav a.active{color:#1e2530;background:linear-gradient(90deg,rgba(198,162,78,.22),rgba(198,162,78,.04));border-color:#c6a24e;box-shadow:inset 3px 0 #a3741c}
html[data-theme="light"] .nav a.active .nav-icon{color:#a3741c}
html[data-theme="light"] .page-heading p,html[data-theme="light"] .section-head p,html[data-theme="light"] .auth-kicker{color:#15699a}
html[data-theme="light"] h1,html[data-theme="light"] h2,html[data-theme="light"] h3,html[data-theme="light"] .hud-panel h2{color:#1e2530}
html[data-theme="light"] input,html[data-theme="light"] select,html[data-theme="light"] textarea,html[data-theme="light"] .jarvis-login .auth-form input{background:#ffffff;color:#1e2530;border-color:#c9c0ad}
html[data-theme="light"] input:focus,html[data-theme="light"] select:focus,html[data-theme="light"] textarea:focus{border-color:#15699a;box-shadow:0 0 0 3px rgba(21,105,154,.12)}
html[data-theme="light"] input::placeholder{color:#8c95a1}
html[data-theme="light"] .mode-form,html[data-theme="light"] .theme-form button{border-color:#d8d0bf;background:#fff}
html[data-theme="light"] .mode-form button{color:#5d6774}html[data-theme="light"] .mode-form button.selected{color:#a3741c;background:rgba(198,162,78,.18)}
html[data-theme="light"] .reference-bar{background:#efe9dc;border-bottom:1px solid #d8d0bf;color:#3b4653}
html[data-theme="light"] .reference-bar b{color:#a3741c}
html[data-theme="light"] .module-flow{background:#d8d0bf;border-color:#d8d0bf}
html[data-theme="light"] .module-flow-step{background:linear-gradient(135deg,#fbf6ea,#f3eee3)}
html[data-theme="light"] .module-flow-step small{color:#a3741c}html[data-theme="light"] .module-flow-step strong{color:#4a3a12}
html[data-theme="light"] .command-sound{background:#fbf6ea;color:#6f4e08;border-color:#c6a24e}
html[data-theme="light"] .flash.success{border-color:rgba(29,138,98,.5);color:#136b4a;background:#eef8f2}
html[data-theme="light"] .flash.error{border-color:rgba(191,59,73,.5);color:#a02f3c;background:#fdf0f1}
html[data-theme="light"] .flash.warning{border-color:rgba(163,116,28,.5);color:#7a5207;background:#fbf4e3}
html[data-theme="light"] .panel,html[data-theme="light"] .metric{background:#ffffff;backdrop-filter:none}
html[data-theme="light"] .panel.gold-line{border-color:#c6a24e}
html[data-theme="light"] .metric:after,html[data-theme="light"] .hud-panel:after{border-color:#c6a24e}
html[data-theme="light"] .metric-value,html[data-theme="light"] .tier b,html[data-theme="light"] .hud-code,html[data-theme="light"] .ai-center strong{color:#1e2530}
html[data-theme="light"] .table-wrap{border-color:#d8d0bf}
html[data-theme="light"] table{background:#fff}
html[data-theme="light"] th{background:#f1ece1;color:#4a3a12;border-color:#d8d0bf}
html[data-theme="light"] td{color:#1e2530;border-color:#e6dfd0}
html[data-theme="light"] tbody tr:hover{background:rgba(198,162,78,.08)}
html[data-theme="light"] .product-cell strong,html[data-theme="light"] .customer-cell strong{color:#1e2530}
html[data-theme="light"] .badge{border-color:#d8d0bf;background:#f8f4ec;color:#3b4653}
html[data-theme="light"] .badge.current,html[data-theme="light"] .badge.completed,html[data-theme="light"] .badge.confirmed,html[data-theme="light"] .badge.manual,html[data-theme="light"] .badge.valid,html[data-theme="light"] .badge.green,html[data-theme="light"] .badge.live{color:#136b4a;border-color:rgba(29,138,98,.4);background:#eef8f2}
html[data-theme="light"] .badge.stopped,html[data-theme="light"] .badge.warning,html[data-theme="light"] .badge.auto,html[data-theme="light"] .badge.staged,html[data-theme="light"] .badge.yellow,html[data-theme="light"] .badge.orange,html[data-theme="light"] .badge.stale{color:#7a5207;border-color:rgba(163,116,28,.4);background:#fbf4e3}
html[data-theme="light"] .badge.never,html[data-theme="light"] .badge.pending,html[data-theme="light"] .badge.failed,html[data-theme="light"] .badge.error,html[data-theme="light"] .badge.red,html[data-theme="light"] .badge.expired,html[data-theme="light"] .badge.offline{color:#a02f3c;border-color:rgba(191,59,73,.4);background:#fdf0f1}
html[data-theme="light"] .badge.no_data{background:#f1ece1;color:#5d6774}
html[data-theme="light"] .button,html[data-theme="light"] button{background:#fbf6ea;border-color:#c6a24e;color:#6f4e08}
html[data-theme="light"] .button.subtle{background:#fff;border-color:#d8d0bf;color:#3b4653}
html[data-theme="light"] .button.gold,html[data-theme="light"] .primary button,html[data-theme="light"] button.primary{background:linear-gradient(135deg,#b8862a,#d9b55b);border-color:#b8862a;color:#1e1608}
html[data-theme="light"] .button.danger{background:#fdf0f1;border-color:rgba(191,59,73,.5);color:#a02f3c}
html[data-theme="light"] .filters label,html[data-theme="light"] .form-grid label,html[data-theme="light"] label,html[data-theme="light"] .auth-form label,html[data-theme="light"] .jarvis-login .auth-form label{color:#3b4653}
html[data-theme="light"] .filter-pills a{border-color:#d8d0bf;color:#3b4653}html[data-theme="light"] .filter-pills a.active{color:#fff;background:#15699a;border-color:#15699a}
html[data-theme="light"] .signal{background:#fbf9f4;border-color:#d8d0bf}
html[data-theme="light"] .bar-track{background:#e9e3d6}html[data-theme="light"] .bar-value{color:#3b4653}
html[data-theme="light"] .upload-zone{background:rgba(21,105,154,.05);border-color:rgba(21,105,154,.45)}
html[data-theme="light"] .callout{background:#fbf4e3;color:#5a4210;border-left-color:#a3741c}
html[data-theme="light"] kbd{background:#f1ece1;color:#3b4653;border-color:#d8d0bf}
html[data-theme="light"] .empty-state{color:#5d6774}
html[data-theme="light"] .admin-menu>summary{background:rgba(198,162,78,.16);border-color:#a3741c;color:#6f4e08}
html[data-theme="light"] .admin-menu[open]>summary{background:rgba(198,162,78,.3)}
html[data-theme="light"] .admin-menu-panel a{color:#1e2530}html[data-theme="light"] .admin-menu-panel a:hover,html[data-theme="light"] .admin-menu-panel a[aria-current="page"]{background:rgba(198,162,78,.18);color:#6f4e08}
html[data-theme="light"] .tier{color:#1e2530}html[data-theme="light"] .tier.ok b{color:#1d8a62}html[data-theme="light"] .tier.warn b{color:#8a5f0a}html[data-theme="light"] .tier.bad b{color:#bf3b49}html[data-theme="light"] .tier.muted b{color:#5d6774}
html[data-theme="light"] .tier-cell.current,html[data-theme="light"] .green,html[data-theme="light"] .secure,html[data-theme="light"] .online,html[data-theme="light"] .delta.up{color:#1d8a62}
html[data-theme="light"] .tier-cell.watch,html[data-theme="light"] .yellow{color:#8a5f0a}html[data-theme="light"] .orange{color:#b4621a}
html[data-theme="light"] .tier-cell.stopped,html[data-theme="light"] .red,html[data-theme="light"] .expired,html[data-theme="light"] .delta.down{color:#bf3b49}
html[data-theme="light"] .tier-cell.unknown{color:#5d6774}
/* Command-center widgets keep a dark "screen" look inside the light shell, with readable labels. */
html[data-theme="light"] .network-core{background:radial-gradient(ellipse,rgba(198,162,78,.18),transparent 65%),#17202b;border-color:#d8d0bf}
html[data-theme="light"] .network-core .core-label span{color:#e4c983}html[data-theme="light"] .network-core .core-label small,html[data-theme="light"] .network-core .core-legend,html[data-theme="light"] .network-core .core-note{color:#c9d2dc}
html[data-theme="light"] .hud-panel{background:#ffffff}
html[data-theme="light"] .hud-kv{border-top-color:#e6dfd0;color:#5d6774}html[data-theme="light"] .hud-kv b{color:#8a5f0a}html[data-theme="light"] .hud-kv b.secure{color:#1d8a62}
html[data-theme="light"] .hud-panel p{color:#5d6774}
html[data-theme="light"] .activity-strip{background:#fbf6ea;border-color:#d8d0bf;color:#3b4653}html[data-theme="light"] .activity-strip b{color:#1e2530}
html[data-theme="light"] .threat-safe{background:#eef8f2;border-color:rgba(29,138,98,.4);color:#136b4a}
html[data-theme="light"] .metric-card:hover,html[data-theme="light"] .metric-card:focus-within{box-shadow:0 14px 30px rgba(40,30,10,.12),0 0 0 1px #c6a24e}
/* Login */
html[data-theme="light"] .jarvis-login{background:linear-gradient(90deg,rgba(244,241,234,.9),rgba(244,241,234,.75)),image-set(url('brand/sg-logistics.webp') type('image/webp'),url('brand/sg-logistics.jpg') type('image/jpeg')) center/cover no-repeat #f4f1ea}
html[data-theme="light"] .sg-welcome,html[data-theme="light"] .sg-welcome h2{color:#1e2530}html[data-theme="light"] .sg-welcome p:last-child{color:#5a4210}
html[data-theme="light"] .jarvis-login .auth-card,html[data-theme="light"] .auth-card{background:rgba(255,255,255,.96);border-color:#c6a24e;box-shadow:0 24px 60px rgba(40,30,10,.15)}
html[data-theme="light"] .auth-brandline{border-bottom-color:#e6dfd0}html[data-theme="light"] .auth-brandline small,html[data-theme="light"] .auth-company{color:#5d6774}
html[data-theme="light"] .auth-status{border-top-color:#e6dfd0;color:#5d6774}
html[data-theme="light"] .auth-scanline{display:none}
/* WMS layout (wms.css hard-codes its palette) */
html[data-theme="light"] body.wms{background:linear-gradient(rgba(21,105,154,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(21,105,154,.05) 1px,transparent 1px),#f4f1ea;background-size:48px 48px}
html[data-theme="light"] body.wms header{background:#fff;border-bottom-color:#d8d0bf}
html[data-theme="light"] body.wms nav{background:#fbf8f1}
html[data-theme="light"] body.wms nav a{border-color:#d8d0bf;color:#3b4653;background:#fff}
html[data-theme="light"] body.wms h1,html[data-theme="light"] body.wms h2{color:#8a5f0a}
html[data-theme="light"] .panel .tablewrap{background:transparent;box-shadow:none}
html[data-theme="light"] body.wms .metric strong{color:#8a5f0a}
html[data-theme="light"] .flow li{background:#fbf6ea;border-left-color:#a3741c}
html[data-theme="light"] .notice{background:#fbf4e3;border-left-color:#a3741c;color:#3b4653}
html[data-theme="light"] .notice.red{background:#fdf0f1;border-left-color:#bf3b49}
html[data-theme="light"] .item{border-color:#d8d0bf;background:#fbf9f4}html[data-theme="light"] .item legend{color:#8a5f0a}
html[data-theme="light"] #search-results button,html[data-theme="light"] .photos a{color:#3b4653}
html[data-theme="light"] footer{border-top-color:#d8d0bf}
html[data-theme="light"] .thumb{background:#f1ece1;border-color:#d8d0bf;color:#8c95a1}
html[data-theme="light"] .chip{background:#fbf6ea;border-color:#c6a24e;color:#4a3a12}
/* TMS Live */
html[data-theme="light"] .tms-kpi{background:#f8f4ec;border-color:#d8d0bf}html[data-theme="light"] .tms-kpi b{color:#1e2530}
html[data-theme="light"] .tms-kpi.ok b,html[data-theme="light"] .tms-kpi.live b{color:#1d8a62}html[data-theme="light"] .tms-kpi.warn b,html[data-theme="light"] .tms-kpi.stale b{color:#8a5f0a}html[data-theme="light"] .tms-kpi.off b{color:#bf3b49}
html[data-theme="light"] .tms-kpi.alert.hot{background:#fbf4e3}html[data-theme="light"] .tms-kpi.alert.hot b{color:#8a5f0a}
html[data-theme="light"] .tms-clock{color:#15699a}
html[data-theme="light"] .tms-map-wrap{border-color:#d8d0bf}
html[data-theme="light"] .tms-tip{background:#fff;color:#1e2530;border-color:#c6a24e}
html[data-theme="light"] .tms-alert-banner{background:linear-gradient(90deg,#fbf4e3,#fff);color:#5a4210;border-color:#c6a24e;box-shadow:none}html[data-theme="light"] .tms-alert-banner b{color:#1e2530}
html[data-theme="light"] .tms-alert{background:#fbf4e3;border-left-color:#a3741c;color:#1e2530}html[data-theme="light"] .tms-alert.acked{background:#f1ece1}
html[data-theme="light"] .tms-card.flash{box-shadow:0 0 0 2px #c6a24e}
/* Theme toggle button (both layouts) */
.theme-form{display:flex;margin:0}
.theme-toggle{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:8px 12px;border:1px solid var(--line,#26323f);border-radius:10px;background:transparent;color:var(--amber,#FFC76A);font:600 11px ui-monospace,monospace;letter-spacing:.08em;cursor:pointer;white-space:nowrap}
.theme-toggle:hover{border-color:var(--gold,#D89B3C)}
html[data-theme="light"] .theme-toggle{color:#6f4e08;background:#fff;border-color:#c6a24e}
.auth-theme{display:flex;justify-content:center;margin-top:14px}
@media(max-width:700px){.theme-toggle span{display:none}}
@media print{.theme-form{display:none}}
/* Brand Focus (2.9.7) */
html[data-theme="light"] .bf-top-row{background:#fff;border-color:#d8d0bf;color:#1e2530}html[data-theme="light"] .bf-top-row:hover{border-color:#c6a24e}
html[data-theme="light"] .bf-rank{border-color:#a3741c;color:#6f4e08}html[data-theme="light"] .bf-top-row:nth-child(-n+3) .bf-rank{background:linear-gradient(135deg,#b8862a,#d9b55b);color:#1e1608}
html[data-theme="light"] .bf-name small,html[data-theme="light"] .bf-top-row .bar-value small,html[data-theme="light"] .bf-crumb{color:#5d6774}html[data-theme="light"] .bf-crumb a,html[data-theme="light"] .bf-pills a{color:#6f4e08}
html[data-theme="light"] .bf-matrix td.bf-hit{color:#8a5f0a}html[data-theme="light"] .bf-matrix tr.bf-total td{color:#1e2530;border-top-color:#a3741c}
html[data-theme="light"] tr.bf-active td{background:rgba(198,162,78,.14)}html[data-theme="light"] .bf-sub{color:#bf3b49}
