/* ghostai pricing's console, in the Spinneys demo's look (design section 17.2): a rail and one main
   card on the ground; each screen is panels inside main. Tokens and pieces are the demo's; the
   setup screens' forms and lists are added in the same language. */
:root {
  --ink: #161a24; --text2: #3f4754; --meta: #5f6775;
  --ground: #f3f5f9; --card: #ffffff; --sunken: #f1f3f7; --line: #e4e7ee; --strong: #c9cfd9; --bar: #c9d0db;
  --blue: #2456e6; --blue-t: #e9f0ff; --purple: #5b45d6; --purple-t: #efebff;
  --ok: #177a45; --ok-t: #e6f7ed; --wait: #8a5a00; --wait-t: #fff4db; --stop: #b42318; --stop-t: #feece8;
  --inv: #ffffff; --logo-bg: #ffffff; --esl: #f4f4ef; --esl-frame: #1f2430;
  --shadow: 0 4px 14px rgba(26, 38, 77, .05); --shadow-pop: 0 8px 24px rgba(10, 15, 28, .14);
  --f-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef1f6; --text2: #bac2ce; --meta: #8f98a8;
    --ground: #0e121b; --card: #161a24; --sunken: #1f2430; --line: #2a303d; --strong: #636c7d; --bar: #3b4251;
    --blue: #7c9fff; --blue-t: #1d2a4a; --purple: #a898ff; --purple-t: #28224a;
    --ok: #4ccb8a; --ok-t: #11301f; --wait: #f1b64a; --wait-t: #33270d; --stop: #ff8474; --stop-t: #3a1815;
    --inv: #161a24; --logo-bg: #f4f5f8; --esl: #e9e9e3; --esl-frame: #050608;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 4px 14px rgba(0, 0, 0, .32);
    --shadow-pop: 0 0 0 1px rgba(255, 255, 255, .06), 0 8px 24px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #eef1f6; --text2: #bac2ce; --meta: #8f98a8;
  --ground: #0e121b; --card: #161a24; --sunken: #1f2430; --line: #2a303d; --strong: #636c7d; --bar: #3b4251;
  --blue: #7c9fff; --blue-t: #1d2a4a; --purple: #a898ff; --purple-t: #28224a;
  --ok: #4ccb8a; --ok-t: #11301f; --wait: #f1b64a; --wait-t: #33270d; --stop: #ff8474; --stop-t: #3a1815;
  --inv: #161a24; --logo-bg: #f4f5f8; --esl: #e9e9e3; --esl-frame: #050608;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 4px 14px rgba(0, 0, 0, .32);
  --shadow-pop: 0 0 0 1px rgba(255, 255, 255, .06), 0 8px 24px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink); font: 14px/1.5 var(--f-sans);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 16px;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--blue); }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
#view:focus { outline: none; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.note { font-size: 12px; color: var(--meta); margin: 0; }
.ar { display: block; direction: rtl; text-align: left; color: var(--meta); font-size: 12px; font-weight: 400; }
.grow { flex: 1; }

/* shell */
.app { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; max-width: 1480px; margin: 0 auto; min-height: 100%; }
.rail { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; align-self: start; position: sticky; top: 16px; min-height: calc(100vh - 32px); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.brand svg { width: 26px; height: 22px; color: var(--blue); flex: none; }
.brand b { font-family: var(--f-display); font-size: 19px; font-weight: 500; letter-spacing: -.2px; }
.brand span { font-size: 12px; color: var(--meta); display: block; margin-top: -3px; }
.nav-label { font-size: 12px; font-weight: 500; color: var(--meta); padding: 10px 10px 4px; margin: 0; }
.nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 0; background: none; text-align: left; color: var(--text2); font-weight: 500; text-decoration: none; }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav:hover { background: var(--sunken); }
.nav[aria-current="page"] { background: var(--blue-t); color: var(--blue); }
.nav .count { margin-left: auto; font-size: 12px; background: var(--sunken); color: var(--meta); border-radius: 999px; padding: 0 8px; }
.nav[aria-current="page"] .count { background: var(--card); color: var(--blue); }
.rail-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.rail-foot p { margin: 0; font-size: 12px; color: var(--meta); line-height: 1.3; min-width: 0; }
.rail-foot strong { color: var(--ink); font-weight: 600; display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-user { display: flex; align-items: center; gap: 8px; padding: 8px 10px 0; font-size: 12px; color: var(--meta); }
.rail-user span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-user form { margin: 0; }
.link { border: 0; background: none; padding: 0; color: var(--blue); font-size: 12px; font-weight: 500; }
.badge { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; font: 600 12px var(--f-sans); color: var(--inv); background: var(--ink); flex: none; letter-spacing: .3px; }

.main { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 20px 24px 24px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.crumb { font-size: 13px; font-weight: 500; color: var(--meta); }
.crumb a { color: var(--blue); text-decoration: none; }
.crumb i { font-style: normal; color: var(--bar); margin: 0 6px; }
.top h1 { font-family: var(--f-display); font-weight: 500; font-size: 24px; letter-spacing: -.24px; margin: 2px 0 0; line-height: 1.1; }
.select { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--meta); }
.select select { font: 500 14px var(--f-sans); color: var(--ink); background: var(--card); border: 1px solid var(--strong); border-radius: 12px; padding: 8px 12px; }
#banner:empty { display: none; }
#view { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* shared pieces */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.kpi p { margin: 0; font-size: 12px; color: var(--meta); }
.kpi strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: 22px; letter-spacing: -.3px; line-height: 1.25; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi small { font-size: 12px; color: var(--meta); }
.kpi .up { color: var(--ok); } .kpi .down { color: var(--stop); }
.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--card); min-width: 0; }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-h h2 { font-size: 15px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.panel-h .tabs { border: 0; }
.pad { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.seg { display: inline-flex; background: var(--sunken); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 500; color: var(--meta); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); padding: 0 2px; overflow-x: auto; overflow-y: hidden; }
.tabs button { border: 0; background: none; padding: 10px 0; font-weight: 500; color: var(--meta); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; border-radius: 999px; padding: 2px 9px; white-space: nowrap; text-decoration: none; }
.pill.ok { background: var(--ok-t); color: var(--ok); } .pill.wait { background: var(--wait-t); color: var(--wait); } .pill.stop { background: var(--stop-t); color: var(--stop); } .pill.n { background: var(--sunken); color: var(--meta); } .pill.blue { background: var(--blue-t); color: var(--blue); }
.logo { height: 28px; min-width: 64px; padding: 4px 8px; background: var(--logo-bg); border: 1px solid var(--line); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.logo img { height: 18px; width: auto; max-width: 88px; display: block; }
.logo.sq { min-width: 40px; }
.logo.sq img { height: 22px; width: 22px; border-radius: 4px; object-fit: contain; }
.logo.initials { font: 600 11px var(--f-sans); letter-spacing: .5px; color: #fff; border-color: transparent; }
.logos { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; vertical-align: middle; }
.btn { border-radius: 12px; padding: 10px 16px; font-weight: 600; border: 1px solid var(--strong); background: var(--card); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn.primary { background: var(--ink); color: var(--inv); border-color: var(--ink); }
.btn.danger { background: var(--stop); color: #fff; border-color: var(--stop); }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
svg text { font-family: var(--f-sans); }
.thumb { background: var(--sunken); display: grid; place-items: center; color: var(--text2); overflow: hidden; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.empty { padding: 32px 16px; text-align: center; color: var(--meta); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty b { color: var(--ink); font-size: 15px; font-weight: 600; }
.empty p { margin: 0; max-width: 520px; }
.banner { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 10px 14px; font-size: 14px; flex-wrap: wrap; }
.banner.ok { background: var(--ok-t); color: var(--ok); }
.banner.stop { background: var(--stop-t); color: var(--stop); }
.banner.wait { background: var(--wait-t); color: var(--wait); }
.banner.blue { background: var(--blue-t); color: var(--ink); }
.banner a { color: inherit; font-weight: 600; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* prices */
.split { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.plist { max-height: 640px; overflow: auto; }
.prow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; padding: 12px 16px; }
.prow:hover { background: var(--sunken); }
.prow[aria-current="true"] { background: var(--blue-t); }
.prow .thumb { width: 34px; height: 34px; border-radius: 9px; }
.prow .thumb svg { width: 20px; height: 20px; }
.prow b { display: block; font-weight: 600; font-size: 13px; line-height: 1.3; }
.prow small { color: var(--meta); font-size: 12px; }
.prow .r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.prow .r .mono { font-size: 12px; color: var(--text2); }
.list-foot { padding: 12px 16px; }
.detail { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.prod { display: flex; gap: 14px; align-items: center; }
.prod .thumb { width: 64px; height: 64px; border-radius: 14px; }
.prod .thumb svg { width: 34px; height: 34px; }
.prod h2 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 22px; letter-spacing: -.2px; line-height: 1.2; }
.prod p { margin: 2px 0 0; color: var(--meta); font-size: 13px; }
.prod p b { color: var(--ink); font-weight: 600; }
.prod .rivals { margin-top: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.prod .zone { margin-left: auto; font: 600 12px var(--f-mono); letter-spacing: 1.5px; color: var(--meta); align-self: flex-start; white-space: nowrap; }
.lastchg { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--meta); }
.lastchg b { color: var(--ink); }
.hist { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: start; }
.clist { display: flex; flex-direction: column; gap: 6px; }
.crow { display: grid; grid-template-columns: 12px auto 1fr; gap: 8px; align-items: center; font-size: 13px; }
.crow .sw { width: 12px; height: 3px; border-radius: 2px; }
.crow .pr { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.crow .pr s { color: var(--meta); margin-right: 4px; }
.crow .pr em { font-style: normal; color: var(--stop); font-weight: 600; }
.crow.you { font-weight: 600; }
.chart { width: 100%; height: auto; display: block; }

/* the decision card and the strategy screen: the demo's pieces */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .6px; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.tag.hero { background: var(--blue); color: var(--inv); }
.tag.compete { background: var(--blue-t); color: var(--blue); }
.tag.margin { background: var(--wait-t); color: var(--wait); }
.tag.hold { background: var(--sunken); color: var(--meta); }
.tag.cco { background: var(--stop-t); color: var(--stop); }
.engine-row { padding: 10px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.av-you { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-t); color: var(--blue); font: 600 11px var(--f-sans); display: grid; place-items: center; flex: none; }
.list-foot { display: flex; flex-direction: column; gap: 8px; }
.foot-link { text-align: center; }
.callout { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 12px 14px; background: var(--purple-t); }
.callout.eng { background: var(--sunken); }
.callout p { margin: 0; font-size: 14px; line-height: 1.45; }
.callout small { display: block; font-size: 12px; color: var(--meta); margin-top: 2px; }
.setp { display: grid; grid-template-columns: 1.1fr 1fr 40px 1.2fr; gap: 12px; align-items: center; }
.setp > span { color: var(--meta); font-size: 13px; }
.bigp { font-family: var(--f-display); font-size: 34px; font-weight: 500; letter-spacing: -.5px; text-align: center; font-variant-numeric: tabular-nums; }
.arrow { text-align: center; color: var(--meta); font-size: 22px; }
.newp { display: flex; align-items: center; border: 2px solid var(--purple); border-radius: 14px; overflow: hidden; }
.newp.fixed { border-color: var(--line); }
.newp .bigp { flex: 1; color: var(--purple); padding: 2px 0; }
.newp.fixed .bigp { color: var(--ink); }
.newp .step { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.newp .step button { border: 0; background: var(--card); width: 34px; height: 26px; color: var(--meta); }
.newp .step button + button { border-top: 1px solid var(--line); }
.newp .step button:hover { background: var(--sunken); color: var(--ink); }
.proj { width: 100%; border-collapse: collapse; font-size: 14px; }
.proj td { padding: 6px 0; border-top: 1px solid var(--line); }
.proj td:first-child { color: var(--meta); width: 34%; }
.proj td:nth-child(2) { text-align: center; color: var(--text2); }
.proj td:nth-child(3) { text-align: center; font-weight: 600; }
.proj td.note { text-align: center; font-weight: 400; }
.proj .delta { font-size: 12px; font-weight: 500; margin-left: 6px; }
.proj .delta.up { color: var(--ok); } .proj .delta.down { color: var(--stop); }
.chk-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.actions { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.banner button { margin-left: auto; border: 0; background: none; color: inherit; text-decoration: underline; font-size: 13px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.opt { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card); text-align: left; display: flex; flex-direction: column; gap: 10px; }
.opt[aria-checked="true"] { border: 1px solid var(--blue); background: var(--blue-t); }
.opt:disabled { cursor: default; opacity: 1; }
.opt .rh { display: flex; align-items: center; gap: 10px; }
.opt .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--strong); flex: none; background: var(--card); }
.opt[aria-checked="true"] .radio { border: 6px solid var(--blue); }
.opt b { font-size: 15px; }
.opt p { margin: 0; color: var(--text2); font-size: 13px; }
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.roles div { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; text-align: center; }
.roles small { display: block; font-size: 11px; color: var(--meta); }
.roles span { font: 600 13px var(--f-mono); }
.gtog { width: 36px; height: 22px; border-radius: 999px; border: 0; background: var(--strong); position: relative; padding: 0; }
.gtog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.gtog[aria-checked="true"] { background: var(--blue); }
.gtog[aria-checked="true"]::after { transform: translateX(14px); }
.gtog:disabled { opacity: .55; cursor: default; }
details.more { border-top: 1px solid var(--line); }
details.more > summary { cursor: pointer; padding: 12px 16px; font-size: 13px; font-weight: 500; color: var(--blue); }
.pad details.more > summary { padding: 10px 0 0; }

/* offers: the demo's list, bars and guardrail rows */
.olist .prow { grid-template-columns: minmax(0, 1fr) auto; }
/* The offer card's five tiles sit in a narrower column than the page's: a size smaller. */
.detail .kpis { gap: 10px; }
.detail .kpi strong { font-size: 18px; }
.bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 12px; }
.barbox { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.barbox h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.guard { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.guard .ck { width: 20px; height: 20px; border-radius: 6px; background: var(--blue); color: var(--inv); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.guard .ck.bad { background: var(--stop); color: #fff; }
.guard .ck.unknown, .guard .ck.off { background: var(--sunken); color: var(--meta); }
.guard b { font-weight: 500; display: block; }
.guard .val { min-width: 120px; text-align: right; font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.checks.pick { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }

/* tables */
.tbl-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--meta); text-align: right; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid th:first-child, table.grid td:first-child { text-align: left; }
table.grid td { padding: 10px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid td.wrap { white-space: normal; min-width: 200px; }
table.grid td.wrap > .note { display: block; }
table.grid td.left, table.grid th.left { text-align: left; }
table.grid td.cheap { color: var(--stop); font-weight: 600; }
table.grid td.dear { color: var(--ok); }
table.grid td.na { color: var(--bar); }
table.grid th .logo, table.grid th .badge { margin-left: auto; }
table.grid td b { font-weight: 600; }
table.grid s { color: var(--meta); margin-right: 4px; }

/* setup: forms, search, candidates, schedules, balance */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--meta); min-width: 0; }
.field input, .field select, .input { font: 500 14px var(--f-sans); color: var(--ink); background: var(--card); border: 1px solid var(--strong); border-radius: 12px; padding: 9px 12px; min-width: 0; width: 100%; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.checks { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); }
.hits { display: flex; flex-direction: column; }
.hit { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.hit .thumb { width: 44px; height: 44px; border-radius: 10px; font-size: 10px; color: var(--meta); }
.hit b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.hit small { color: var(--meta); font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cand { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.cand .thumb { height: 120px; border-radius: 10px; background: #fff; font-size: 12px; color: var(--meta); }
.cand b { font-size: 13px; font-weight: 600; line-height: 1.3; flex: 1; }
.cand small { color: var(--meta); font-size: 12px; }
.forecast { border-radius: 14px; padding: 12px 14px; background: var(--sunken); font-size: 13px; color: var(--text2); }
.forecast strong { font-family: var(--f-display); font-size: 22px; font-weight: 500; color: var(--ink); margin-right: 6px; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.srow:last-child { border-bottom: 0; }
.srow b { display: block; font-weight: 600; }
.srow small { color: var(--meta); font-size: 12px; display: block; }
/* A file to send: what it is, then its template and upload, which wrap rather than squeeze the text. */
.srow.upload { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.pay { display: flex; flex-direction: column; gap: 4px; border-radius: 12px; padding: 12px 14px; background: var(--ok-t); color: var(--ok); font-size: 14px; }
.pay b { font-family: var(--f-display); font-weight: 600; font-size: 18px; }
.pay small { color: var(--text2); }

/* shelf labels: branches by zone as tiles, and the label preview, as the demo's */
.labels-top { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.govs { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.gov { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; }
.gov > span { font-size: 13px; color: var(--meta); }
.tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.tile { position: relative; min-width: 46px; height: 34px; padding: 0 6px; border-radius: 8px; background: var(--sunken); border: 1px solid var(--line); display: grid; place-items: center; font: 500 11px var(--f-mono); color: var(--meta); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.tile.live { background: var(--ok-t); color: var(--ok); border-color: transparent; }
.tile.busy { background: var(--wait-t); color: var(--wait); border-color: transparent; }
.tile.off { opacity: .5; }
.tile.fail { background: var(--stop-t); color: var(--stop); border-color: transparent; }
.tile.apoff { border: 1px dashed var(--stop); }
.tile[aria-pressed="true"] { outline: 2px solid var(--blue); outline-offset: 1px; }
.tile i { position: absolute; top: -7px; right: -7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--blue); color: #fff; font: 600 10px/17px var(--f-sans); font-style: normal; text-align: center; }
.bstrip { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); }
.bstrip > div { flex: 1; min-width: 200px; }
.bstrip b { display: block; font-weight: 600; }
.bstrip small { color: var(--meta); font-size: 12px; }
.lpreview { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.lpreview h2 { margin: 0; font-size: 15px; }
.lpreview .note { margin: 0; }
.esl { background: var(--esl); border: 7px solid var(--esl-frame); border-radius: 14px; overflow: hidden; color: #161a24; box-shadow: var(--shadow-pop); }
.esl .m { display: flex; justify-content: space-between; align-items: flex-end; padding: 10px 14px; gap: 10px; }
.esl .n { font-weight: 600; font-size: 15px; line-height: 1.25; }
.esl .u { font: 12px var(--f-mono); color: #5f6775; }
.esl .p { font-family: var(--f-display); font-weight: 600; font-size: 38px; line-height: 1; letter-spacing: -.5px; white-space: nowrap; }
.esl .p small { font-size: 13px; font-family: var(--f-sans); margin-right: 4px; }
.esl .o { background: #b42318; color: #fff; display: flex; justify-content: space-between; gap: 10px; padding: 6px 14px; font-weight: 700; font-size: 13px; }
.chan { display: flex; gap: 6px; flex-wrap: wrap; }

/* the label system's section on Branches and zones */
.fmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 10px 0; }
.guard-list small { display: block; }
small.bad { color: var(--stop); }
details > summary { cursor: pointer; font-size: 13px; color: var(--text2); }

.top #excel, .top #excel-used { align-self: center; }

.toast { position: fixed; right: max(20px, calc(env(safe-area-inset-right, 0px) + 16px)); bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 16px)); background: var(--ink); color: var(--inv); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-pop); max-width: min(420px, calc(100vw - 40px)); font-size: 14px; display: flex; gap: 10px; align-items: center; transform: translateY(20px); opacity: 0; pointer-events: none; transition: all .25s; z-index: 20; }
.toast.show { transform: none; opacity: 1; }
.toast svg { width: 18px; height: 18px; color: #7ee2a8; flex: none; }
.toast.bad svg { color: #ff8474; }

/* the pages before sign-in (the way in, sign-up, waiting), in the same look */
body.notice { display: grid; place-items: center; min-height: 100%; }
.notice-card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 28px; max-width: 460px; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.notice-card .brand { padding: 0 0 6px; }
.notice-card h1 { font-family: var(--f-display); font-weight: 500; font-size: 24px; letter-spacing: -.24px; margin: 0; line-height: 1.2; }
.notice-card p { margin: 0; color: var(--text2); }
.notice-card form { display: flex; flex-direction: column; gap: 12px; }
.notice-card label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--meta); }
.notice-card input { font: 500 14px var(--f-sans); color: var(--ink); background: var(--card); border: 1px solid var(--strong); border-radius: 12px; padding: 9px 12px; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split, .labels-top { grid-template-columns: minmax(0, 1fr); }
  .plist { max-height: 300px; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { flex-direction: row; overflow-x: auto; padding: 8px; gap: 4px; align-items: center; position: static; min-height: 0; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .brand { padding: 0 8px 0 4px; }
  .brand span, .nav-label, .rail-foot { display: none; }
  /* Who's signed in, and Sign out, stay in reach: pinned at the end of the scrolling rail. */
  .rail-user { position: sticky; right: 0; flex: none; margin-left: auto; padding: 4px 4px 4px 10px; background: var(--card); }
  .rail-user span { max-width: 120px; font-size: 11px; }
  .nav { white-space: nowrap; }
  .main { padding: 16px; }
  .hist { grid-template-columns: minmax(0, 1fr); }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  /* On a phone the rail keeps its room for the menu: Sign out stays, the email shows on hover. */
  .rail-user span { display: none; }
  .setp { grid-template-columns: 1fr 30px 1.3fr; }
  .bars { grid-template-columns: minmax(0, 1fr); }
  .guard { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .guard .val { grid-column: 2 / -1; text-align: left; }
  .setp > span { grid-column: 1 / -1; }
  .bigp { font-size: 28px; }
  .kpis, .kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid4 { grid-template-columns: minmax(0, 1fr); }
  .top h1 { font-size: 20px; }
  .srow { grid-template-columns: minmax(0, 1fr) auto; }
  .srow.upload { grid-template-columns: minmax(0, 1fr); }
  .gov { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
