/* Options Desk Cockpit theme: Beluga's layout (build spec Section 15.1) in the Options Desk brand kit's colors and fonts
   (_assets/Digital Branding: tokens --od-ui-*, fonts/fonts.css). Bootstrap 5.3 color modes via data-bs-theme; the
   environment accent is gold in Paper, green in Live. The logo files are used as delivered, never recolored. */

:root, [data-bs-theme=light] {
  --bg: #F4F1EA; --panel: #FFFFFF; --panel2: #ECE8DF; --border: #DCD6CA; --muted: #5A6475; --text: #151D2B;
  --gold: #81620F; --goldbg: #F5ECD9; --green: #107356; --greenbg: #E2F2EC; --red: #B3313F; --redbg: #F9E4E6;
  --blue: #2F5BB7; --bluebg: #E5ECF8; --input: #FFFFFF;
  --acc: #81620F; --accbg: #F5ECD9; --acctext: #FFFFFF;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --brandfont: "Sora", system-ui, sans-serif;
}
[data-bs-theme=dark] {
  --bg: #0E131C; --panel: #151D2B; --panel2: #1C2536; --border: #2A3547; --muted: #97A2B4; --text: #E8ECF2;
  --gold: #E0B43A; --goldbg: #2C2717; --green: #5FD0AC; --greenbg: #122B26; --red: #F0848F; --redbg: #2E1A20;
  --blue: #8FB0F5; --bluebg: #18233A; --input: #111824;
  --acc: #E0B43A; --accbg: #2C2717; --acctext: #151D2B;
}
:root.live, :root.live[data-bs-theme=light] { --acc: #137644; --accbg: #E1F2E7; --acctext: #FFFFFF; }
:root.live[data-bs-theme=dark] { --acc: #3FD17F; --accbg: #12301F; --acctext: #151D2B; }

:root, [data-bs-theme] {
  --bs-body-bg: var(--bg); --bs-body-color: var(--text); --bs-border-color: var(--border); --bs-secondary-color: var(--muted);
  --bs-tertiary-bg: var(--panel2); --bs-emphasis-color: var(--text); --bs-link-color: var(--blue); --bs-link-hover-color: var(--blue);
  --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --bs-body-font-size: 14px; --bs-body-line-height: 1.5;
  --bs-focus-ring-color: color-mix(in srgb, var(--acc) 40%, transparent);
}
:root { box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; background: var(--bg); color: var(--text); }
/* Installed (no browser bar): iOS draws a translucent status bar with white text over the top safe area, so that strip
   stays dark in either theme; the page itself still fills the screen. */
@media (display-mode: standalone) {
  html { background: #0E131C; }
  body { min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
}
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--brandfont); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 22px; }
h2 { font-size: 15px; }
h3 { font-size: 13px; }
p { margin: 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
tr.linkrow { cursor: pointer; } tr.linkrow:hover td { background: var(--panel2); }
/* The trade report prints on its own (build spec Section 15.4): the Cockpit's chrome and the report's buttons stay off the page. */
@media print {
  .sidebar, .topbar, .alertbar, .no-print, .toast-container { display: none !important; }
  .main { margin: 0 !important; padding: 0 !important; }
  body, .panel { background: #fff !important; color: #000 !important; }
  .report .panel { border: 0 !important; box-shadow: none !important; }
  .report details { display: none; }
}
.muted { color: var(--muted); } .pos { color: var(--green); } .neg { color: var(--red); } .small { font-size: 12px; }

/* Buttons and inputs (the mockup's look, without touching Bootstrap's own components) */
.b-btn { font: inherit; color: var(--text); cursor: pointer; background: var(--panel2); border: 1px solid var(--border); border-radius: 6px; padding: 8px 13px; line-height: 1.3; }
.b-btn:hover { border-color: var(--muted); }
.b-btn:disabled { opacity: .45; cursor: not-allowed; }
.b-btn.primary { background: var(--acc); border-color: var(--acc); color: var(--acctext); font-weight: 650; }
.b-btn.danger { color: var(--red); background: var(--redbg); border-color: transparent; }
.b-btn.attn { background: var(--accbg); border-color: var(--acc); color: var(--text); font-weight: 650; }
.warnline { background: var(--goldbg); color: var(--gold); border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; font-weight: 600; }
.b-btn.sm { padding: 4px 12px; }
.b-link { font: inherit; background: none; border: none; padding: 0; color: var(--blue); cursor: pointer; }
.b-link:disabled { opacity: .45; cursor: not-allowed; }
.b-input.filter { width: 170px; padding: 5px 9px; font-size: 13px; }
.ph-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.b-input, .b-select { font: inherit; color: var(--text); background: var(--input); border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; max-width: 100%; }
input[type=checkbox], input[type=radio] { accent-color: var(--acc); width: 17px; height: 17px; }
.otp { font: 600 22px var(--mono); letter-spacing: 10px; text-align: center; width: 100%; padding: 10px; }

/* Shell: menu, top bar, pages (Section 6) */
.sidebar { position: fixed; inset: 0 auto 0 0; width: 216px; transition: width .15s; background: var(--panel); border-right: 1px solid var(--border); padding: calc(22px + env(safe-area-inset-top, 0px)) 14px 18px; display: flex; flex-direction: column; z-index: 5; }
/* Brand (kit README): the lockup at 20 px beside the collapse button (its approved size in the 216 px menu, leaving the
   kit's clear space of 0.25 x its height), the mark alone at 24 px in the icon rail, the collapsed menu and the phone's
   top bar. Each logo comes as an on-light and an on-dark file; the theme shows one.
   The header is exactly 62 px open and collapsed, never squeezed by a short window, so the menu items never move on a
   toggle: open, the lockup and the button are centered on a 24 px line (the mark's height) above 38 px of space;
   collapsed, the mark, 6 px, then the 32 px button. The logo stays at the same height in both. */
.brand { padding: 0 0 38px 10px; display: flex; align-items: center; height: 62px; flex-shrink: 0; }
.menubtn { margin-left: auto; }
.b-lockup, .b-mark, .topmark, .signbrand { line-height: 0; }
.b-lockup img { height: 20px; width: auto; }
.b-mark img, .topmark img { height: 24px; width: auto; }
.b-mark, .topmark { display: none; }
:root:not([data-bs-theme=dark]) .on-dark, [data-bs-theme=dark] .on-light { display: none; }
.iconbtn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; background: none; border: 1px solid transparent; border-radius: 6px; color: var(--muted); cursor: pointer; }
.iconbtn:hover { color: var(--text); background: var(--panel2); border-color: var(--border); }
.nav-b a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; color: var(--muted); text-decoration: none; margin: 2px 0; white-space: nowrap; }
.nav-b svg, .ico { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-b a:hover { color: var(--text); }
.nav-b a.on { background: var(--accbg); color: var(--text); box-shadow: inset 3px 0 var(--acc); }
.sbox { margin-top: auto; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.sbox-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sbox-mark { width: 56px; height: 56px; object-fit: contain; margin: -8px -6px -8px 0; flex: none; }
body.mini .sidebar { width: 64px; padding-left: 10px; padding-right: 10px; }
body.mini .main { margin-left: 64px; }
body.mini .lbl, body.mini .sbox { display: none; }
body.mini .brand { padding: 0 0 24px; justify-content: center; }
body.mini .b-lockup { display: none; }
body.mini .menubtn { margin: 0; }
/* Collapsed on a desktop: the mark above the expand button, 6 px apart (the kit's clear space); the rail is too narrow
   for them side by side. 24 + 6 + 32 = the open header's 62 px. */
@media (min-width: 981px) {
  body.mini .brand { flex-direction: column; gap: 6px; padding-bottom: 0; }
  body.mini .b-mark { display: block; }
}
body.mini .nav-b a:hover::after { content: attr(data-label); position: absolute; left: 52px; top: 50%; transform: translateY(-50%); background: var(--panel2); color: var(--text); border: 1px solid var(--border); padding: 5px 10px; border-radius: 6px; font-size: 13px; z-index: 20; }
.main { margin-left: 216px; min-height: 100vh; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 4; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.clock { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.env { font-weight: 700; font-size: 11px; letter-spacing: .5px; border-radius: 4px; padding: 3px 8px; background: var(--accbg); color: var(--acc); }
.track { display: flex; align-items: stretch; gap: 0; overflow-x: auto; max-width: 100%; }
.stage { display: flex; flex-direction: column; padding: 4px 14px 5px; border-top: 3px solid var(--border); min-width: 92px; color: var(--muted); }
.stage b { font-size: 12px; font-weight: 600; white-space: nowrap; } .stage span { font: 11px var(--mono); white-space: nowrap; }
.stage.done { border-top-color: var(--green); color: var(--text); }
.stage.now { border-top-color: var(--acc); color: var(--text); background: var(--accbg); }
.stage.bad { border-top-color: var(--red); color: var(--red); background: var(--redbg); }
.stage.info { border-top-color: var(--blue); color: var(--blue); background: var(--bluebg); }
.alertbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 26px; font-size: 13px; border-bottom: 1px solid var(--border); }
.a-bad { background: var(--redbg); color: var(--red); } .a-warn { background: var(--goldbg); color: var(--gold); } .a-info { background: var(--bluebg); color: var(--blue); }
.alertbar b { font-weight: 650; }
.page { padding: 22px 26px 60px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.head p { margin-top: 3px; }

/* Panels, tiles, tables */
.grid-b { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.grid-b > * { min-width: 0; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 14px; }
.kpi { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.kpi .v { font: 600 20px var(--mono); font-variant-numeric: tabular-nums; margin-top: 2px; }
.cols { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.ph { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.pb { padding: 12px 14px; }
.scroll { overflow-x: auto; }
table.t { border-collapse: collapse; width: 100%; font-size: 13px; color: var(--text); }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t tr:last-child td { border-bottom: none; }
table.t td.r, table.t th.r { text-align: right; }
th.sort { cursor: pointer; user-select: none; } th.sort:hover { color: var(--text); }
th.sort[aria-sort]::after { content: " ▾"; color: var(--acc); } th.sort[aria-sort=ascending]::after { content: " ▴"; }
table.t td.best { background: var(--accbg); font-weight: 700; }
tbody tr.click { cursor: pointer; } tbody tr.click:hover { background: var(--panel2); } tbody tr.sel { background: var(--accbg); }
.tag { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 4px; padding: 2px 7px; white-space: nowrap; }
.t-ok { background: var(--greenbg); color: var(--green); } .t-bad { background: var(--redbg); color: var(--red); } .t-warn { background: var(--goldbg); color: var(--gold); }
.t-info { background: var(--bluebg); color: var(--blue); } .t-mute { background: var(--panel2); color: var(--muted); }
.rng { position: relative; width: 96px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--redbg), var(--greenbg)); display: inline-block; vertical-align: middle; }
.rng i { position: absolute; top: -3px; width: 3px; height: 14px; border-radius: 2px; background: var(--text); }
.rng b { position: absolute; top: -1px; width: 2px; height: 10px; background: var(--blue); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.seg button { font: inherit; border: none; border-radius: 0; background: none; padding: 6px 12px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--accbg); color: var(--text); }
.events { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.events li { display: grid; grid-template-columns: 62px 1fr; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.events time { font: 12px var(--mono); color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.checks li:last-child { border: none; }
.ck { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--greenbg); color: var(--green); font-size: 11px; margin-right: 8px; flex-shrink: 0; }
.ck.x { background: var(--redbg); color: var(--red); }
.note { font-size: 12px; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--border); }
.empty { padding: 40px 14px; text-align: center; color: var(--muted); }
svg text { font-family: var(--mono); font-size: 10px; fill: var(--muted); }

/* Settings (Section 11) */
.settings { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: start; }
.snav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 90px; }
.snav a { text-align: left; color: var(--muted); padding: 8px 10px; border-radius: 6px; text-decoration: none; white-space: nowrap; }
.snav a.on { background: var(--accbg); color: var(--text); }
.srow { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(150px, .9fr) minmax(170px, 1fr); gap: 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.srow:last-child { border-bottom: none; }
.srow .tip { font-size: 12px; color: var(--muted); margin-top: 2px; }
.srow.changed { background: var(--accbg); }
.def { font-size: 12px; color: var(--muted); }
.sname { font: inherit; background: none; border: none; padding: 0; font-weight: 650; text-align: left; cursor: help; border-bottom: 1px dotted var(--muted); border-radius: 0; color: var(--text); }
.sname:hover, .sname[aria-expanded=true] { color: var(--acc); border-bottom-color: var(--acc); }
.savebar { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--acc); border-radius: 8px; padding: 10px 14px; }
.form-b { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.ta { position: relative; }
.talist { position: absolute; top: calc(100% + 4px); left: 0; z-index: 25; width: 460px; max-width: 88vw; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); overflow: hidden; }
.taitem { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--border); font-size: 13px; }
.taitem:last-child { border-bottom: none; }
.taitem.on, .taitem:hover { background: var(--accbg); }
.taitem.dis { opacity: .5; cursor: not-allowed; }
.taitem .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.taitem mark { background: none; color: var(--acc); font-weight: 700; padding: 0; }
.steps { margin: 10px 0 14px; padding-left: 20px; }
.steps li { margin: 4px 0; }
.steps li.done { color: var(--green); } .steps li.now { font-weight: 650; } .steps li.fail { color: var(--red); }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; font: 15px var(--mono); padding: 12px 14px; }

/* Health (Section 12) */
.hcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 16px; }
.hcard { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.hic { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--panel2); color: var(--muted); }
.hic .ico { width: 16px; height: 16px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: 1px; }
.dot.w { background: var(--gold); } .dot.b { background: var(--red); }
.hb { display: flex; gap: 1px; margin-top: 10px; }
.hb i { flex: 1; height: 4px; border-radius: 1px; background: var(--border); }
.hb i.ok { background: var(--green); opacity: .45; } .hb i.late { background: var(--gold); opacity: .8; } .hb i.fail { background: var(--red); opacity: .8; }
.metric { font-size: 13px; margin-top: 8px; color: var(--text); }

/* Sign-in (Section 4.1) */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.signcard { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 26px; }
.signbrand { padding-bottom: 20px; }
.signbrand img { height: 28px; width: auto; }
.field { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; }
.field > label { font-size: 12px; color: var(--muted); }
.chip { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; background: var(--panel); }
.signcard input.b-input { width: 100%; }
.formerr { color: var(--red); font-size: 13px; margin-top: 10px; }

/* Bootstrap components in the theme */
.modal-content { background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 10px; }
.modal-header, .modal-footer { border-color: var(--border); }
.toast { background: var(--panel); color: var(--text); border: 1px solid var(--border); }
.toast.bad { border-color: var(--red); }
.popover { --bs-popover-bg: var(--panel); --bs-popover-border-color: var(--acc); --bs-popover-body-color: var(--text); --bs-popover-header-bg: var(--panel); font-size: 13px; max-width: 320px; }
.popover p + p { margin-top: 6px; }

/* The Desk not responding: every control disabled (Section 3.2) */
body.engine-down [data-control] { pointer-events: none; opacity: .45; }

[hidden] { display: none !important; }

@media (max-width: 980px) {
  .cols, .settings { grid-template-columns: minmax(0, 1fr); }
  .snav { position: static; flex-direction: row; overflow-x: auto; }
  .srow { grid-template-columns: 1fr; }
  .hide-s { display: none; }
  .sidebar { width: 64px; padding-left: 10px; padding-right: 10px; }
  .main { margin-left: 64px; }
  .lbl, .sbox, .menubtn { display: none; }
  .brand { padding: 0 0 24px; justify-content: center; height: auto; } /* no toggle on tablets: the mark and 24 px */
  .b-lockup { display: none; }
  .b-mark { display: block; }
  .nav-b a { justify-content: center; }
  .nav-b a:hover::after { content: attr(data-label); position: absolute; left: 52px; top: 50%; transform: translateY(-50%); background: var(--panel2); color: var(--text); border: 1px solid var(--border); padding: 5px 10px; border-radius: 6px; font-size: 13px; z-index: 20; }
}
@media (max-width: 600px) {
  .sidebar { top: auto; bottom: 0; right: 0; width: 100%; height: calc(62px + env(safe-area-inset-bottom, 0px)); padding: 4px 6px env(safe-area-inset-bottom, 0px); flex-direction: row; border-right: none; border-top: 1px solid var(--border); background: var(--panel); }
  .brand { display: none; }
  .topmark { display: block; }
  .nav-b { display: flex; justify-content: space-around; width: 100%; }
  .nav-b a { flex-direction: column; gap: 3px; padding: 6px 4px; margin: 0; min-width: 60px; font-size: 10px; justify-content: center; }
  .nav-b a .lbl { display: block; }
  .nav-b a.on { box-shadow: inset 0 2px var(--acc); }
  .nav-b a:hover::after { display: none; }
  .main { margin-left: 0; padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .topbar { position: static; padding: 10px 12px; gap: 10px; }
  .clock { margin-left: 0; width: 100%; justify-content: flex-end; }
  .page { padding: 16px 12px 30px; }
  .alertbar { padding: 10px 12px; }
  .head { align-items: flex-start; }
  .kpi .v { font-size: 17px; }
  .savebar { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .stage.done { display: none; }
  .stage { min-width: 84px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Performance (Beluga cockpit spec Section 10) */
.perf-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.perf-filters #rangeBox { display: inline-flex; gap: 6px; }
.perf-filters #rangeBox[hidden] { display: none; }
.perf-filters a.b-btn { text-decoration: none; }
#detail { scroll-margin-top: 150px; } /* clear of the sticky top bar when a session opens */
.recon { border-top: 1px solid var(--border); }
.recon .rh { font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.recon .rlist { margin: 0; padding-left: 18px; }
.recon .rlist li { margin: 3px 0; }

/* Replay: SIP data export (Beluga cockpit spec Section 9.6) */
.sip { margin-bottom: 14px; }
.sip-head { width: 100%; font: inherit; color: var(--text); background: none; border: none; text-align: left; cursor: pointer; flex-wrap: nowrap; border-radius: 8px; }
.sip-head[aria-expanded=false] { border-bottom-color: transparent; }
.sip-head:hover .chev { color: var(--text); }
.sip-title { display: block; font-size: 15px; font-weight: 650; }
.sip-sub { display: block; margin-top: 2px; }
.sip .chev { color: var(--muted); transition: transform .15s; }
.sip-head[aria-expanded=true] .chev { transform: rotate(180deg); }
.sip-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.sip-date { margin-top: 0; }
.sip-all { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding-bottom: 8px; cursor: pointer; }
.sip-row .filter { margin-left: auto; margin-bottom: 2px; }
.sip-syms { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; margin-bottom: 14px; }
.sip-syms .chip { font-size: 13px; cursor: pointer; }
.sip-syms .chip.off { color: var(--muted); }
.sip-syms .chip small { margin-left: auto; font-size: 10px; }
#sipJobs a.b-btn { text-decoration: none; }
.sip-foot { margin: 12px 0 0; max-width: 820px; }
.sip-foot code { color: inherit; font-size: inherit; }
@media (max-width: 600px) { .sip-row .filter { margin-left: 0; width: 100%; } }

/* Installed app: keep screen awake, the new-version banner (Beluga cockpit spec Sections 6.2 and 6.4) */
.wakebtn .rays { opacity: 0; }
.wakebtn[data-state="holding"] { color: var(--acc); }
.wakebtn[data-state="holding"] .rays { opacity: 1; }
.wakebtn[data-state="waiting"], .wakebtn[data-state="tap"] { color: var(--text); }
.wakebtn[data-state="tap"] .rays { opacity: .45; }
.wakebtn[data-state="refused"] { color: var(--gold); }
.updatebar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 1095; display: flex; gap: 12px; align-items: center; background: var(--panel); color: var(--text); border: 1px solid var(--acc); border-radius: 8px; padding: 10px 14px; font-size: 13px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); max-width: calc(100vw - 24px); }
@media (max-width: 600px) { .updatebar { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }

/* Settings > Notifications and the device list's Notifications column (Sections 4.2 and 11.7) */
.ntable { border-top: 1px solid var(--border); }
.ntable td { vertical-align: middle; }
.ncheck { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.pushcell { white-space: normal !important; min-width: 180px; }
.pushcell .small { margin-top: 2px; }

/* Options Desk (infra spec Sections 5.5 and 14) */
.pill-planned { display: inline-block; font-size: 10px; font-weight: 650; letter-spacing: .3px; border-radius: 999px; padding: 1px 7px; margin-left: 4px; background: var(--panel2); color: var(--muted); border: 1px solid var(--border); vertical-align: 1px; }
.nav-b a.planned svg { opacity: .45; }
.nav-b a.planned { color: var(--muted); }
.snav a.planned { opacity: .7; }
.scards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.scard { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; text-decoration: none; color: var(--text); display: block; min-height: 150px; }
a.scard:hover { border-color: var(--acc); }
.scard h2 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.facts .v { font: 600 16px var(--mono); margin-top: 2px; }
.planned-card { border-style: dashed; background: transparent; color: var(--muted); }
.ptabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
.ptabs a, .ptabs span { padding: 8px 14px; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.ptabs a.on { color: var(--text); border-bottom-color: var(--acc); }
.ptabs.disabled span { opacity: .45; cursor: not-allowed; }
@media (max-width: 600px) { .nav-b a { min-width: 0; flex: 1; } .nav-b a .pill-planned { display: none; } }
