/* Financial Health Navigator - uni-coloured theme taken from the logo (see docs/design-language.md).
 * One indigo hue (230 deg) in lightness steps; one gradient (--ribbon) for rings and bars.
 * Meaning colours (healthy / watch / critical) appear only next to status text and negative amounts.
 * No external fonts or CDNs (CSP: font-src 'self'); system font stack only. No shadows, no glows. */
:root {
  color-scheme: dark;
  --bg: #0b0d17; --shell: #0b0d17; --surface: #121524; --surface-2: #181c2f; --raise: #20253b;
  --cell: #0f1220; --line: #262b45; --grid: #1c2036; --hdr: #101322; --hdr-sel: #222a52;
  --text: #eceef8; --muted: #b3b8d6; --faint: #8a90b4;
  /* the indigo ramp, measured from the logo ribbon */
  --i-700: #3a4aa0; --i-500: #6672f0; --i-400: #8b85f2; --i-200: #b4b9ff;
  --ribbon: linear-gradient(135deg, #4a5bd0, #7d7cf4 60%, #a9a4f7);
  --brand: var(--i-500); --brand-hi: var(--i-200); --brand-soft: rgba(102,114,240,.14);
  /* meaning colours: text-adjacent only */
  --pos: #5cc9a7; --pos-bg: rgba(92,201,167,.10); --crit: #f3c96b; --crit-bg: rgba(243,201,107,.10);
  --neg: #ff8fa3; --neg-bg: rgba(255,143,163,.10);
  --radius: 24px; --gap: 14px; --ease: cubic-bezier(.2,.8,.2,1);
  --zoom: 1; --row: calc(26px * var(--zoom)); --fs: calc(13px * var(--zoom));
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", system-ui, Roboto, Arial, sans-serif;
  --mono: "Cascadia Code", "Fira Code", "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--bg);
  display: grid; grid-template-rows: auto auto auto auto 1fr auto; grid-template-columns: minmax(0, 1fr);
  overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 2px; }

/* shell bar: logo mark + wordmark, one thin indigo line underneath */
.shell { height: 52px; background: var(--shell); display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 0 20px; position: relative; z-index: 3; }
.shell::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ribbon); opacity: .45; transition: opacity .3s var(--ease); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mark { width: 31px; height: 32px; flex: none; }
.wordmark { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.wordmark b { font-size: 15px; font-weight: 700; letter-spacing: -.3px; color: var(--text); }
.wordmark span { font-size: 9.5px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted); margin-top: 2px; }
.sep { width: 1px; height: 18px; background: var(--line); }
.doc { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.privacy { color: var(--faint); font-size: 12px; white-space: nowrap; }
.who { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 28ch; }
.btn.hdr { min-height: 36px; padding: 0 16px; font-size: 13px; display: inline-flex;
  align-items: center; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; border: 1px solid;
  white-space: nowrap; }
.pill.green { color: var(--pos); background: var(--pos-bg); border-color: rgba(92,201,167,.3); }
.pill.amber { color: var(--crit); background: var(--crit-bg); border-color: rgba(243,201,107,.3); }
.pill.red { color: var(--neg); background: var(--neg-bg); border-color: rgba(255,143,163,.32); }

/* ribbon */
.tabs { background: var(--shell); display: flex; gap: 4px; padding: 6px 14px 0; overflow-x: auto; }
.tab { background: none; border: 0; padding: 7px 14px 9px; color: var(--muted); font-weight: 600;
  position: relative; border-radius: 10px 10px 0 0;
  transition: color .18s var(--ease), background-color .18s var(--ease); }
.tab:hover { color: var(--text); background: rgba(255,255,255,.035); }
.tab.active { color: var(--text); }
.tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px;
  border-radius: 2px; background: var(--ribbon); }
.ribbon { background: var(--surface); margin: 0 10px; border-radius: 18px; padding: 8px 10px 2px;
  min-height: 98px; overflow-x: auto; }
.panel { display: flex; align-items: stretch; }
.group { display: flex; flex-direction: column; padding: 0 12px; border-right: 1px solid var(--line); }
.group:last-child { border-right: 0; }
.items { display: flex; align-items: center; gap: 6px; flex: 1; }
.glabel { font-size: 11px; color: var(--faint); text-align: center; padding: 3px 0 2px; letter-spacing: .3px; }
.big { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 94px;
  height: 66px; padding: 7px 4px; background: none; border: 1px solid transparent;
  border-radius: 14px; font-size: 12px; line-height: 1.15; color: var(--text);
  transition: background-color .18s var(--ease), border-color .18s var(--ease); }
.big svg { width: 24px; height: 24px; color: var(--muted); transition: color .18s var(--ease); }
.big:hover, .mid:hover { background: var(--surface-2); }
.big:hover svg, .mid:hover svg { color: var(--brand-hi); }
/* primary action: a gradient ring around a flat surface */
.big.primary { border: 1px solid transparent;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--ribbon) border-box; }
.big.primary svg { color: var(--brand-hi); }
.big.primary:hover { background: linear-gradient(var(--raise), var(--raise)) padding-box, var(--ribbon) border-box; }
.big:disabled, .mid:disabled { opacity: .45; cursor: default; background: none; border-color: transparent; }
.mid { display: flex; align-items: center; gap: 6px; height: 34px; min-width: 34px; padding: 0 10px;
  background: none; border: 1px solid transparent; border-radius: 12px; color: var(--text);
  transition: background-color .18s var(--ease); }
.mid svg { width: 18px; height: 18px; color: var(--muted); }
.zoomlabel { min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.fields { flex-wrap: wrap; gap: 4px 12px; max-width: 560px; }
.fields label { display: flex; flex-direction: column; font-size: 11px; color: var(--muted); }
.fields label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 13px;
  color: var(--text); cursor: pointer; }
.fields input:not([type=checkbox]), .fields select { height: 32px; min-width: 170px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--cell); font-size: 13px;
  color: var(--text); transition: border-color .18s var(--ease); }
.fields input::placeholder { color: var(--faint); }
.fields input:hover, .fields select:hover { border-color: #363c5e; }
.fields input:focus, .fields select:focus { outline: none; border-color: var(--brand); }
input[type=checkbox] { accent-color: var(--brand); width: 15px; height: 15px; }

/* formula bar */
.fxbar { display: flex; align-items: center; background: var(--shell); height: 46px; padding: 0 12px; }
.namebox { width: 92px; height: 30px; border: 1px solid var(--line); border-radius: 999px;
  text-align: center; font: 600 13px var(--mono); background: var(--surface); color: var(--brand-hi); }
.fx { width: 38px; text-align: center; color: var(--faint); font-style: italic; font-weight: 700; }
.formula { flex: 1; min-width: 0; height: 30px; border: 1px solid var(--line); border-radius: 999px;
  padding: 0 14px; font: 13px/1 var(--mono); background: var(--surface); color: var(--text); }
.lineage { margin-left: 12px; font-size: 12px; color: var(--muted); white-space: nowrap; max-width: 34%;
  overflow: hidden; text-overflow: ellipsis; }
.lineage b { color: var(--brand-hi); font-weight: 600; font-family: var(--mono); }

/* work area: the side panel (login/DB mode) left of the sheet canvas */
.work { display: grid; grid-template-columns: auto minmax(0, 1fr); min-height: 0; }
.work > .wrap { min-height: 0; }
.side { width: 300px; display: flex; flex-direction: column; min-height: 0; background: var(--shell);
  border-right: 1px solid var(--grid); transition: width .2s var(--ease); }
.side.collapsed { width: 40px; }
.side.collapsed .side-body, .side.collapsed h2 { display: none; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 8px 6px 16px; }
.side.collapsed .side-head { padding: 10px 4px; justify-content: center; }
.side-head h2 { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: .2px; color: var(--text); }
.side-toggle { width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); line-height: 1; }
.side-toggle:hover { color: var(--text); background: var(--surface-2); }
.side-body { overflow-y: auto; padding: 0 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.side-sec { background: var(--surface); border-radius: 16px; padding: 10px 12px 12px; }
.side-sec h3 { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .4px;
  text-transform: uppercase; color: var(--faint); }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side-item { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 4px 6px; padding: 6px 6px; border-radius: 10px; }
.side-item:hover { background: var(--surface-2); }
.side-item.current { background: var(--brand-soft); }
.side-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; flex: 1 1 150px; }
.side-pick { display: flex; align-items: center; gap: 8px; min-width: 0; }
.side-pick input { accent-color: var(--brand); flex: none; margin: 0; }
.side-name { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.side-name.link { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.side-name.link:hover:not(:disabled) { color: var(--brand-hi); text-decoration: underline; }
.side-name.link:disabled { cursor: default; }
.side-meta { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.side-pick + .side-meta { padding-left: 21px; }
.side-btns { display: flex; gap: 4px; flex: none; }
.icon-btn { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line);
  background: none; color: var(--muted); white-space: nowrap; }
.icon-btn:hover { color: var(--text); background: var(--raise); }
.icon-btn.danger:hover { color: var(--neg); border-color: rgba(255,143,163,.4); }
.side-empty { margin: 2px 0 0; font-size: 12px; color: var(--faint); }
.side-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.btn.sm { min-height: 32px; padding: 0 14px; font-size: 12.5px; }
.side-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line); }
.side-form label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted); }
.side-form input, .side-form select { background: var(--cell); border: 1px solid var(--line);
  border-radius: 10px; padding: 6px 9px; font-size: 13px; color: var(--text); min-width: 0; }
.side-form input:focus { border-color: var(--brand); outline: 0; }
.side-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.side-bands { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 0; font-size: 12.5px; }
.side-bands dt { color: var(--muted); }
.side-bands dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--text);
  font-weight: 600; }
.side-bands .tag { font-size: 10.5px; padding: 0 6px; border-radius: 999px; color: var(--crit);
  background: var(--crit-bg); }

/* sheet canvas */
.wrap { position: relative; overflow: auto; outline: none; background: var(--bg); }
.wrap:focus-visible { outline: 1px solid var(--line); outline-offset: -1px; }
.sheet-area { display: flex; flex-direction: column; align-items: flex-start; min-width: max-content; }

/* bento dashboard (Overzicht sheet only): flat tiles, colour only where it means something */
.bento { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr));
  grid-auto-rows: minmax(118px, auto); gap: var(--gap); padding: 14px 16px 22px;
  width: min(1180px, calc(100vw - 20px)); }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between;
  gap: 10px; min-width: 0; padding: 18px 20px; text-align: left; color: var(--text);
  background: var(--surface); border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .2s var(--ease), border-color .2s var(--ease); }
button.tile:hover { background: var(--surface-2); }
/* one hue for every tile: a faint indigo wash, and a ribbon ring when selected */
.tile { background: radial-gradient(120% 90% at 0% 0%, rgba(102,114,240,.08), transparent 60%), var(--surface); }
button.tile:hover { background: radial-gradient(120% 90% at 0% 0%, rgba(102,114,240,.12), transparent 70%), var(--surface-2); }
.tile.on, button.tile.on:hover { background: radial-gradient(120% 90% at 0% 0%, rgba(102,114,240,.12), transparent 60%) padding-box,
  linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--ribbon) border-box; }
.t-head { display: flex; align-items: center; gap: 10px; min-width: 0; padding-right: 44px; }
.t-label { font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.t-value { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.6px;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-value.neg { color: var(--neg); }
.t-ref { position: absolute; top: 14px; right: 16px; font: 600 11px var(--mono); color: var(--faint);
  padding: 2px 8px; border-radius: 999px; background: var(--cell); }
.t-ref.fx-ok { color: var(--brand-hi); }
/* a short indigo stroke marks a figure tile, instead of an icon */
.t-label::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px;
  margin-right: 9px; vertical-align: 3px; background: var(--ribbon); }
.verdict .t-label::before { display: none; }

.tile.verdict { grid-column: span 2; }
.t-status { display: inline-flex; align-items: center; gap: 9px; font-size: 24px; font-weight: 650;
  letter-spacing: -.3px; }
.t-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.verdict.green .t-status { color: var(--pos); }
.verdict.amber .t-status { color: var(--crit); }
.verdict.red .t-status { color: var(--neg); }
.t-text { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile.k_low { grid-column: span 2; }

/* chart object, as a tile */
.chart { margin: 0; grid-column: 3 / span 2; grid-row: 1 / span 2; padding: 18px 20px 10px; }
.chart figcaption { font-weight: 500; font-size: 13px; color: var(--muted); }
.chart svg { width: 100%; height: auto; flex: 1; min-height: 0; display: block; }
.chart .pos { fill: url(#gPos); } .chart .neg { fill: url(#gNeg); }
.chart .zero { stroke: #363c5e; stroke-width: 1; stroke-dasharray: 3 4; }
.chart .axis { font-size: 10px; fill: var(--faint); text-anchor: middle; font-family: var(--font); }
.chart rect { transition: opacity .15s var(--ease); }
.chart rect:hover { opacity: .7; }
.chart .fan-outer { fill: #7d86f0; fill-opacity: .16; }
.chart .fan-inner { fill: #7d86f0; fill-opacity: .32; }
.chart .fan-mid { fill: none; stroke: #c9cdf9; stroke-width: 2; }
.chart .fan-dot { fill: #c9cdf9; } .chart .fan-dot.neg { fill: #ff8fa3; }
.chart .chart-note { margin: 6px 0 0; font-size: 11px; line-height: 1.4; color: var(--faint); }

/* grid */
.grid { border-collapse: separate; border-spacing: 0; font-size: var(--fs); table-layout: fixed;
  user-select: none; background: var(--cell); }
.grid th, .grid td { height: var(--row); padding: 0 8px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; border-right: 1px solid var(--grid); border-bottom: 1px solid var(--grid); }
.nogrid .grid td { border-color: transparent; }
.grid thead th { position: sticky; top: 0; z-index: 2; background: var(--hdr); color: var(--faint);
  font-weight: 500; text-align: center; border-color: var(--line); }
.grid th.rh { position: sticky; left: 0; z-index: 1; background: var(--hdr); color: var(--faint);
  font-weight: 500; text-align: center; width: calc(46px * var(--zoom)); border-color: var(--line);
  font-variant-numeric: tabular-nums; }
.grid thead th.corner { left: 0; z-index: 3; }
.grid th.sel { background: var(--hdr-sel); color: var(--brand-hi); font-weight: 650; }
.grid thead th.sel { border-bottom: 2px solid var(--brand); }
.grid th.rh.sel { border-right: 2px solid var(--brand); }
.grid td { background: var(--cell); cursor: cell; color: var(--text); }
.grid td.money, .grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
.grid td.hdr { font-weight: 650; background: var(--surface); color: var(--text); }
.grid td.bold, .grid td.total { font-weight: 650; }
.grid td.total { border-top: 1px solid #3a4066; background: var(--surface); }
.grid td.neg { color: var(--neg); }
.grid td.wrap { white-space: normal; line-height: 1.45; height: auto; padding: 6px 8px; color: var(--muted); }
.grid td.tag span, .grid td.late span, .grid td.status span { display: inline-block; font-size: .85em;
  padding: 0 9px; border-radius: 999px; line-height: 1.7; }
.grid td.tag span { background: var(--brand-soft); color: var(--brand-hi); }
.grid td.late span { background: var(--crit-bg); color: var(--crit); }
.grid td.status span { font-weight: 650; }
.grid td.status.green span { background: var(--pos-bg); color: var(--pos); }
.grid td.status.amber span { background: var(--crit-bg); color: var(--crit); }
.grid td.status.red span { background: var(--neg-bg); color: var(--neg); }
.grid td.in { background: #1a2036; }
.grid td.active { outline: 2px solid var(--brand-hi); outline-offset: -2px; background: #1d2440; }
.grid tr.filler td { cursor: default; background: transparent; }
.grid tr.spacer td { border: 0; padding: 0; background: var(--cell); }

/* empty state + drop */
.empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px;
  background:
    radial-gradient(640px 320px at 50% 88%, rgba(102,114,240,.12), transparent 70%),
    radial-gradient(420px 220px at 50% 20%, rgba(139,133,242,.06), transparent 70%),
    var(--bg); }
.card { background: none; padding: 8px; max-width: 560px; text-align: center; }
.card-mark { display: block; width: 99px; height: 100px; margin: 0 auto 18px; }
.card h2 { margin: 0 0 10px; font-size: 32px; font-weight: 650; letter-spacing: -.8px; color: var(--text); }
.card p { margin: 0 auto 26px; color: var(--muted); max-width: 46ch; font-size: 15px; }
.card .fine { font-size: 12px; margin: 22px auto 0; color: var(--faint); }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn { min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 600; color: var(--text);
  transition: background-color .18s var(--ease), border-color .18s var(--ease); }
.btn:hover { background: var(--surface-2); }
.btn.primary { border: 1px solid transparent;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--ribbon) border-box; }
.btn.primary:hover { background: linear-gradient(var(--raise), var(--raise)) padding-box, var(--ribbon) border-box; }
.drop { position: absolute; inset: 12px; border: 1.5px dashed var(--brand); border-radius: 24px;
  background: rgba(11,13,23,.92); display: grid; place-items: center; font-size: 18px;
  font-weight: 600; color: var(--text); z-index: 5; }

/* sheet tabs + status bar */
.sheetbar { display: flex; align-items: stretch; justify-content: space-between; background: var(--shell);
  border-top: 1px solid var(--grid); height: 38px; }
.sheettabs { display: flex; align-items: center; gap: 2px; overflow-x: auto; padding: 0 8px; min-width: 0; }
.sheettab { border: 0; background: none; height: 28px; padding: 0 14px; color: var(--muted);
  white-space: nowrap; position: relative; border-radius: 999px;
  transition: background-color .18s var(--ease), color .18s var(--ease); }
.sheettab:hover { background: var(--surface); color: var(--text); }
.sheettab.active { background: var(--surface-2); color: var(--text); font-weight: 600; }
.sheettab.flag::after { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--crit); }
.statusbar { display: flex; align-items: center; gap: 18px; padding: 0 16px; font-size: 12px;
  color: var(--muted); white-space: nowrap; overflow: hidden; }
.agg b { color: var(--text); font-weight: 600; margin-left: 4px; font-variant-numeric: tabular-nums; }
.agg span { margin-left: 16px; }

.toast { position: fixed; left: 50%; bottom: 58px; transform: translateX(-50%); max-width: min(70ch, 92vw);
  background: var(--raise); color: var(--text); padding: 11px 18px; border-radius: 16px; z-index: 10;
  border: 1px solid var(--line); font-size: 13px; }
.toast.error { background: #2a1520; border-color: rgba(251,122,166,.45); color: #ffd6e4; }
.busy { cursor: progress; }
.busy .shell::after { opacity: 1; }

/* responsive: 1024 / 768 / 375 */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .chart { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 760px) {
  .privacy, .sep, .doc { display: none; }
  .ribbon { min-height: 0; margin: 0 6px; }
  .lineage { display: none; }
  .side { width: 248px; }
  .bento { padding: 10px 12px 18px; gap: 12px; }
  .card h2 { font-size: 28px; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .tile.verdict, .tile.k_low, .chart { grid-column: 1 / -1; }
  .statusbar #statusMsg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  :root { color-scheme: light; --cell: #fff; --text: #000; --muted: #333; --faint: #555; --grid: #ccc;
    --line: #bbb; --hdr: #f2f2f2; --surface: #fff; --surface-2: #f6f6f6; --neg: #b00020; }
  body { display: block; overflow: visible; background: #fff; color: #000; }
  .work { display: block; }
  .shell, .tabs, .ribbon, .fxbar, .sheetbar, .empty, .toast, .t-ref, .side { display: none !important; }
  .wrap { overflow: visible; background: #fff; }
  .tile { background: #fff !important; border: 1px solid #ccc; break-inside: avoid; }
  .t-value, .wordmark b { color: #000 !important; background: none !important; }
  .grid td.active, .grid td.in { outline: 0; background: #fff; }
  .grid thead, .grid th.rh { display: none; }
}

/* landing page (login mode, signed out): one card, no app chrome */
body.landing { display: flex; flex-direction: column; overflow: auto; min-height: 100%; }
.landing-main { flex: 1; display: grid; place-items: center; padding: 32px 20px 48px; }
.landing .card h1 { margin: 0 0 12px; font-size: 34px; font-weight: 650; letter-spacing: -.8px; }
.landing .points { list-style: none; padding: 0; margin: 0 auto 28px; max-width: 46ch; text-align: left;
  color: var(--muted); display: grid; gap: 8px; }
.landing .points li { padding-left: 22px; position: relative; }
.landing .points li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--ribbon); }
.landing .btn { display: inline-flex; align-items: center; text-decoration: none; }
.lang-pick select { background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
