/* Tabularium app. Canessa System Labs design system: dark-first glass and hairline, status never by colour alone.
   Phone: header, list, bottom tabs, bottom sheet. Desktop (≥ 960px): side rail, list, detail panel. */
@font-face { font-family: "Inter"; src: url("assets/fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #18191c; --bg-2: #1f2024; --panel: rgba(255,255,255,.04); --panel-hover: rgba(255,255,255,.07);
  --border: rgba(255,255,255,.07); --border-strong: rgba(255,255,255,.15);
  --ink: #f5f5f7; --ink-2: #94a3b8; --ink-3: #7d8ba1;
  --done: #34d399; --partial: #fbbf24; --open: rgba(148,163,184,.28); --danger: #fb7185;
  --you: #fbbf24; --you-soft: rgba(251,191,36,.10);
  --grad-a: #2dd4bf; --grad-b: #818cf8; --grad-c: #c084fc; --logo-accent: #2dd4bf; --focus: #2dd4bf;
  --btn-bg: #ffffff; --btn-ink: #000000; --dot: #2c2f36; --scrim: rgba(0,0,0,.55);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 22px; --tab-h: 64px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root {
  --bg: #f5f5f7; --bg-2: #ffffff; --panel: rgba(255,255,255,.7); --panel-hover: #ffffff;
  --border: rgba(0,0,0,.08); --border-strong: rgba(0,0,0,.16);
  --ink: #1d1d1f; --ink-2: #515154; --ink-3: #6e6e73;
  --done: #15803d; --partial: #b45309; --open: rgba(0,0,0,.12); --danger: #be123c;
  --you: #b45309; --you-soft: rgba(180,83,9,.08);
  --grad-a: #0d9488; --grad-b: #6366f1; --grad-c: #9333ea; --logo-accent: #0d9488; --focus: #0d9488;
  --btn-bg: #1d1d1f; --btn-ink: #ffffff; --dot: #c7cdd6; --scrim: rgba(0,0,0,.3);
  color-scheme: light;
} }

* { box-sizing: border-box; }
html, body, #app { height: 100%; }
#app { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 20px 20px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
.eyebrow { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Gate (loading, sign-in, setup) */
.gate { min-height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 32px max(20px, env(safe-area-inset-left)); text-align: center; }
.gate .mark { width: 44px; height: 44px; }
.mark .pt { fill: var(--logo-accent); }
.gate h1 { font-size: clamp(30px, 6vw, 44px); letter-spacing: -.04em; line-height: 1.05; }
.gate .gate-msg { color: var(--ink-2); max-width: 420px; }
.uid { font: 500 13px/1.4 var(--mono); padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--panel); user-select: all; word-break: break-all; }

/* Buttons and controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: transparent; cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--panel-hover); }
.btn.primary { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; }
.btn.primary:hover { opacity: .9; }
.btn.warn { color: var(--danger); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: default; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border-strong); border-radius: 999px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 8px 12px; min-height: 36px; cursor: pointer; color: var(--ink-2); font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-ink); }
.field { display: grid; gap: 6px; }
.field > span { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg-2); }
.field textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.err { color: var(--danger); font-size: 13px; }

/* Shell */
.shell { display: grid; min-height: 100%; grid-template-rows: auto 1fr; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.brand svg { width: 20px; height: 20px; }
.sync { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--done); }
.sync.off i { background: transparent; box-shadow: inset 0 0 0 2px var(--partial); }
.sync.err i { background: var(--danger); }
.main { padding: 20px max(16px, env(safe-area-inset-right)) calc(var(--tab-h) + 28px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); max-width: 980px; width: 100%; }

.tabs { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--border); }
.tabs a { display: grid; justify-items: center; gap: 3px; padding: 6px 0; min-height: 52px; text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 500; position: relative; }
.tabs a svg { width: 22px; height: 22px; }
.tabs .signout { display: none; }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs .badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--you); color: #1d1d1f; font: 600 11px/18px var(--sans); }

@media (min-width: 960px) {
  .shell { grid-template-columns: 232px 1fr; grid-template-rows: auto 1fr; }
  .top { grid-column: 1 / -1; }
  .tabs { position: sticky; top: 61px; align-self: start; grid-template-columns: 1fr; gap: 4px; padding: 20px 12px; height: calc(100vh - 61px);
    border-top: 0; border-right: 1px solid var(--border); background: transparent; backdrop-filter: none; align-content: start; }
  .tabs a { grid-template-columns: 22px 1fr auto; justify-items: start; align-items: center; gap: 12px; padding: 10px 12px; min-height: 44px; font-size: 14px; border-radius: 12px; }
  .tabs a[aria-current="page"] { background: var(--panel-hover); }
  .tabs .badge { position: static; }
  .tabs .signout { display: inline-flex; margin-top: 16px; justify-self: start; }
  .main { padding: 28px 36px 48px; }
}
/* Side by side only when both fit; otherwise the panel overlays the list behind a scrim. */
@media (min-width: 1320px) { .shell.with-sheet .main { padding-right: 476px; } }

/* Page heads and sections */
.head { display: grid; gap: 6px; margin-bottom: 18px; }
.head h1 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -.03em; line-height: 1.1; }
.head p { color: var(--ink-2); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.fact { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); font-size: 13px; color: var(--ink-2); }
.fact b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.fact.you b { color: var(--you); }
.sect { margin-top: 26px; }
.sect-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.sect-h h2 { font-size: 13px; font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.sect-h .n { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.sect-h .more { margin-left: auto; }
.empty { padding: 18px; border: 1px dashed var(--border-strong); border-radius: 16px; color: var(--ink-3); font-size: 14px; }

/* Rows */
.list { display: grid; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; text-align: left;
  border: 0; border-top: 1px solid var(--border); background: transparent; cursor: pointer; min-height: 60px; width: 100%; }
.row:first-child { border-top: 0; }
.row:hover, .row.sel { background: var(--panel-hover); }
.row .t { font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.row .m { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.row .end { display: grid; justify-items: end; gap: 4px; max-width: 46vw; }
.row .end .chip { white-space: normal; text-align: right; }
.tile { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.tile svg { width: 18px; height: 18px; }
.tile .acc { stroke: var(--ink); }
.tile.lg { width: 48px; height: 48px; border-radius: 14px; } .tile.lg svg { width: 28px; height: 28px; }

/* Status vocabulary: word + shape, never colour alone */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border-strong); font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.chip.you { color: var(--you); border-color: color-mix(in srgb, var(--you) 40%, transparent); }
.chip.ready { color: var(--you); } .chip.ready::before { background: currentColor; }
.chip.active::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.chip.done { color: var(--done); } .chip.done::before { background: currentColor; }
.chip.parked { border-style: dashed; } .chip.parked::before { box-shadow: none; border: 1.5px dashed currentColor; }
.chip.overdue { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); } .chip.overdue::before { border-radius: 1px; background: currentColor; transform: rotate(45deg); }
.chip.risk { color: var(--partial); } .chip.risk::before { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: currentColor; box-shadow: none; }
.chip.hard { font-weight: 600; }
.chip.plain::before { display: none; }

/* Solutions */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { display: grid; gap: 12px; padding: 18px; border-radius: var(--r); border: 1px solid var(--border); background: var(--panel); text-align: left; cursor: pointer; }
.card:hover { background: var(--panel-hover); border-color: var(--border-strong); }
.card-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.card h3 { font-size: 17px; letter-spacing: -.02em; }
.card .sub { font-size: 13px; color: var(--ink-2); }
.card .counts { display: flex; flex-wrap: wrap; gap: 6px; }
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.step { display: grid; gap: 5px; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.step::before { content: ""; height: 4px; border-radius: 2px; background: var(--open); }
.step.done { color: var(--ink-2); } .step.done::before { background: var(--done); }
.step.partial { color: var(--ink-2); } .step.partial::before { background: linear-gradient(90deg, var(--partial) 55%, var(--open) 55%); }
.kv { display: grid; gap: 8px; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--panel); margin-bottom: 8px; }
.kv div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.kv span { font: 500 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.lane-l { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 6px 2px; }
.lane-l.you { color: var(--you); }

/* Log */
.ev { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-top: 1px solid var(--border); font-size: 14px; }
.ev:first-child { border-top: 0; }
.ev time { font: 500 11.5px/1.5 var(--mono); color: var(--ink-3); }
.ev b { font-weight: 500; }
.ev .who { font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-right: 6px; }
.ev .who.owner { color: var(--you); }
.ev .note { color: var(--ink-2); font-size: 13.5px; margin-top: 3px; overflow-wrap: anywhere; }
.filters { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; margin-bottom: 14px; scrollbar-width: none; }
.filters button { flex: none; }

/* Detail sheet: bottom sheet on phones, side panel on desktop */
.scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); }
.sheet { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; overscroll-behavior: contain;
  background: var(--bg-2); border-top: 1px solid var(--border-strong); border-radius: 24px 24px 0 0;
  padding: 10px max(18px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--border-strong); margin: 0 auto 12px; }
@media (min-width: 1320px) { .scrim { display: none; } }
@media (min-width: 960px) {
  .sheet { left: auto; top: 61px; width: 452px; max-height: none; border-radius: 0; border-top: 0; border-left: 1px solid var(--border-strong); padding: 24px 28px 40px; }
  .sheet .grab { display: none; }
}
.sheet-h { display: grid; gap: 10px; margin-bottom: 16px; }
.sheet-h .crumb { display: flex; align-items: center; gap: 10px; }
.sheet-h .close { margin-left: auto; }
.sheet h2 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.sheet .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet .detail { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; }
.block { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 18px; margin-top: 14px; background: var(--panel); }
.block h3 { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.block .hint { font-size: 13px; color: var(--ink-3); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hist { display: grid; gap: 10px; }
.hist div { font-size: 13.5px; color: var(--ink-2); } .hist time { font: 500 11px/1 var(--mono); color: var(--ink-3); margin-right: 6px; }

#toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tab-h) + 22px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); opacity: 0;
  max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 14px; background: var(--btn-bg); color: var(--btn-ink); font-size: 14px; pointer-events: none; transition: opacity .2s, transform .2s; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 960px) { #toast { bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Sign in with Google: Google's branding guidelines (developers.google.com/identity/branding-guidelines).
   Light: #FFFFFF fill, #747775 1px stroke, #1F1F1F text. Dark: #131314 fill, #8E918F stroke, #E3E3E3 text.
   Roboto Medium 14/20, logo at standard colours, pill shape allowed. */
.gsi { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 12px; border-radius: 22px; cursor: pointer;
  background: #131314; border: 1px solid #8E918F; color: #E3E3E3; font: 500 14px/20px "Roboto", var(--sans); letter-spacing: .25px; }
.gsi .g { width: 20px; height: 20px; }
.gsi:hover { background: #1f1f20; } .gsi:active { background: #2a2a2b; }
@media (prefers-color-scheme: light) { .gsi { background: #FFFFFF; border-color: #747775; color: #1F1F1F; } .gsi:hover { background: #f6f6f6; } }
.gate .err { max-width: 420px; }

/* Sign-in: HD neural emulation behind a glass console (Tabularium). */
.login { position: fixed; inset: 0; overflow: hidden; display: grid; place-items: center; background: #0a0a0c; color: #e5e5e5;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px); background-size: 24px 24px; background-position: center;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.neural { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: fadein 2.4s ease-out .1s forwards; }

.login-mark { position: relative; width: 64px; height: 64px; margin-bottom: 28px; }
.login-mark::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #e8835a; filter: blur(28px); opacity: .3; transition: opacity .7s; }
.login-mark:hover::before { opacity: .55; }
.login-mark svg { position: relative; width: 100%; height: 100%; }
.login-mark .lane { filter: drop-shadow(0 0 6px #e8835a) drop-shadow(0 0 16px #e8835a); }

.login-lede { font-size: 13.5px; line-height: 1.6; color: #a3a3a3; max-width: 300px; text-wrap: balance; margin-bottom: 32px; }

.login-note { margin-top: 18px; font-size: 11.5px; color: #8a8a8a; letter-spacing: .02em; }
.login-foot { position: absolute; z-index: 1; bottom: max(24px, env(safe-area-inset-bottom)); left: 0; right: 0; display: grid; justify-items: center; gap: 12px;
  opacity: 0; animation: fadein 1s ease-out .5s forwards; }
.login-foot svg { width: 26px; height: 26px; color: #fff; }
.login-foot span { font: 600 10px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: #9a9a9a;
  padding: 6px 12px; border-radius: 999px; background: rgba(10,10,12,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@keyframes fadein { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (max-height: 640px) { .login-foot { display: none; } }
@media (prefers-reduced-motion: reduce) { .neural, .login-card, .login-foot { animation: none; opacity: 1; transform: none; } }
/* The sign-in screen is always dark, so it always uses Google's dark button (#131314 fill, #8E918F outline, #E3E3E3 text). */
.login:not(.conv) .gsi, .login:not(.conv) .gsi:hover { background: #131314; border-color: #8E918F; color: #E3E3E3; }
.login:not(.conv) .gsi:hover { background: #1f1f20; }

/* Convergence: warm graphite ground; the sign-in is a borderless lens whose edge is drawn by the converging light. */
.login.conv { background-color: #14110f;
  background-image: radial-gradient(ellipse 70% 60% at 50% 46%, rgba(232,131,90,.13), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, #221a16 0%, #17130f 55%, #100e0c 100%),
    radial-gradient(rgba(255,235,220,.05) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px; }

/* Round 2 of Convergence: the Google icon node at the centre of the system, plexus-friendly vignette, corner code. */
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 85% 75% at 50% 48%, transparent 55%, rgba(8,6,5,.55) 100%); }

@keyframes orbitpulse { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes orbitspin { to { transform: rotate(360deg); } }

/* Convergence v3: design-system tokens in both themes (bg, ink, ink-2, ink-3, logo-accent; Tabularium accent). */
.login.conv { --tab-accent: #e8835a; color: var(--ink); background-color: var(--bg);
  background-image: radial-gradient(ellipse 60% 55% at 50% 47%, rgba(232,131,90,.12), transparent 70%), radial-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px);
  background-size: auto, 24px 24px; }
@media (prefers-color-scheme: light) { .login.conv { --tab-accent: #c4643c; background-image: radial-gradient(ellipse 60% 55% at 50% 47%, rgba(232,131,90,.10), transparent 70%), radial-gradient(rgba(0,0,0,.06) 1px, transparent 1px); } }
.login.conv .vignette { background: radial-gradient(ellipse 85% 75% at 50% 48%, transparent 60%, color-mix(in srgb, var(--bg) 70%, #000 30%) 100%); opacity: .5; }
@media (prefers-color-scheme: light) { .login.conv .vignette { background: radial-gradient(ellipse 85% 75% at 50% 48%, transparent 60%, rgba(0,0,0,.06) 100%); opacity: 1; } }

   
/* Studio mark per the brand book: 16px Set-Square inline with the uppercase sans wordmark, logo-accent point. */
.login.conv .login-foot { display: flex; justify-content: center; gap: 0; }
.login.conv .login-foot .csl { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); background: none; padding: 0; }
.login.conv .login-foot svg { width: 16px; height: 16px; color: var(--ink); }

/* The studio lockup sits in the lower-left corner so the converging lanes never cross it. */
.login.conv .login-foot { left: max(32px, env(safe-area-inset-left)); right: auto; bottom: max(28px, env(safe-area-inset-bottom)); justify-content: flex-start; }

@media (max-width: 760px) { .login.conv .login-foot { left: 0; right: 0; justify-content: center; } }

@media (max-width: 560px) { .login.conv { place-items: end center; padding-bottom: max(64px, env(safe-area-inset-bottom)); }
   }

/* Three-act sign-in: capability tiles | the brain | the console (design-system glass panels throughout). */
.login.scene { display: grid; grid-template-columns: 200px minmax(0, 1fr) 380px; gap: 32px; align-items: center; place-items: initial;
  padding: 48px max(40px, env(safe-area-inset-right)) 64px max(40px, env(safe-area-inset-left)); }
.scene .caps { position: relative; z-index: 1; display: grid; gap: 14px; align-content: center; }
.cap-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; color: var(--ink-2);
  background: var(--panel); border: 1px solid var(--border); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  font: 500 13px/1 var(--sans); }
.cap-tile svg { width: 22px; height: 22px; color: var(--ink); flex: none; }
.scene .brain-slot { position: relative; height: min(78vh, 640px); align-self: center; }
.scene .term { position: absolute; right: 6%; bottom: 6%; z-index: 1; margin: 0; padding: 12px 16px; border-radius: 14px; font: 500 11px/1.7 var(--mono);
  color: var(--ink-2); background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.scene .term b { color: var(--ink-3); letter-spacing: 2px; font-weight: 500; }
.scene .console { position: relative; z-index: 1; align-self: center; display: grid; gap: 0; padding: 30px 28px 26px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--border); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 10%, transparent); opacity: 0; animation: fadein 1s ease-out .3s forwards; }
.console-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.console .login-mark { width: 40px; height: 40px; margin: 0; color: var(--ink); }
.console .login-mark::before { display: none; }
.console .eyebrow { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.console h1 { font-size: 34px; letter-spacing: -.03em; line-height: 1; color: var(--ink); margin-bottom: 10px; }
.console .login-lede { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin-bottom: 22px; }
.console .gsi { width: 100%; justify-content: center; height: 46px; border-radius: 23px; }
.widgets { display: grid; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.w-t { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.w-lanes { display: flex; align-items: center; gap: 8px; }
.w-lanes .w-t { margin-right: auto; }
.w-lanes i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); transition: background .3s, box-shadow .3s; }
.w-lanes i.on { background: var(--tab-accent); box-shadow: 0 0 10px var(--tab-accent); }
.w-queue { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.w-queue b { font: 600 15px/1 var(--sans); color: var(--ink); }
.w-queue .bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.w-queue .bar span { display: block; height: 100%; width: 10%; background: var(--tab-accent); transition: width .5s ease; }
.w-spark { width: 100%; height: 28px; color: var(--tab-accent); }
.login.scene .login-foot { position: absolute; }
@media (max-width: 960px) {
  .login.scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(220px, 34vh) auto; gap: 14px; padding: 20px 16px 72px; overflow-y: auto; align-content: start; }
  .scene .caps { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
  .cap-tile { flex-direction: column; gap: 6px; padding: 10px 4px; font-size: 10.5px; }
  .scene .brain-slot { height: 100%; }
  .scene .term { display: none; }
  .scene .console { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) { .scene .console { animation: none; opacity: 1; } }

/* Heat (0…1, set by the engine as the pointer nears the Command): the console warms; the code panel stays quiet. */
.scene .console { --heat: 0; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 10%, transparent), 0 0 calc(var(--heat) * 60px) color-mix(in srgb, var(--tab-accent) calc(var(--heat) * 35%), transparent);
  border-color: color-mix(in srgb, var(--tab-accent) calc(var(--heat) * 45%), var(--border)); }
.scene .term { top: 4%; bottom: auto; opacity: .7; }

/* ---------- Inside views, in the sign-in's language: glass, terracotta for you, light traces; no background layers. ---------- */
:root { --tab-accent: #e8835a; --you: #e8835a; --you-soft: rgba(232,131,90,.12); --focus: #e8835a; --trace: #e8835a; }
@media (prefers-color-scheme: light) { :root { --tab-accent: #a84b26; --you: #a84b26; --you-soft: rgba(168,75,38,.08); --focus: #a84b26; --trace: #c4643c; } }
body { background-image: radial-gradient(ellipse 70% 50% at 50% -10%, color-mix(in srgb, var(--tab-accent) 9%, transparent), transparent 70%); background-size: auto; background-attachment: fixed; }
.tabs .badge { color: #fff; }
@media (prefers-color-scheme: dark) { .tabs .badge { color: #1d1d1f; } }

/* Glass panels: the console's material. */
.list, .card, .block, .kv, .fact, .empty { backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 7%, transparent); }
.sheet { background: color-mix(in srgb, var(--bg-2) 86%, transparent); backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%); }

/* Light trace along the top bar: one pulse crossing, like a "ready" pulse travelling to the console. */
.top { position: sticky; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0, transparent 40%, var(--trace) 50%, transparent 60%, transparent 100%) no-repeat;
  background-size: 40% 100%; background-position: -40% 0; animation: trace 7s cubic-bezier(.4,0,.2,1) infinite; opacity: .8; }
@keyframes trace { 0% { background-position: -40% 0; } 60%, 100% { background-position: 140% 0; } }
.sync:not(.off):not(.err) i { background: var(--tab-accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--tab-accent) 50%, transparent); animation: beat 2.4s ease-out infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tab-accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* Where you are, and what waits for you, carry the lit lane. */
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"] svg { color: var(--tab-accent); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--tab-accent) 55%, transparent)); }
@media (min-width: 960px) {
  .tabs a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px;
    background: var(--tab-accent); box-shadow: 0 0 10px var(--tab-accent); }
  .tabs { background: transparent; }
}
.row { position: relative; transition: background .2s; }
.row:hover::before, .row.sel::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px;
  background: var(--tab-accent); box-shadow: 0 0 8px var(--tab-accent); }
.chip.ready::before, .chip.you::before { box-shadow: 0 0 8px currentColor; }
.head .eyebrow, .sect-h h2 { letter-spacing: .14em; }
.card:hover { border-color: color-mix(in srgb, var(--tab-accent) 35%, var(--border-strong)); }
.btn.primary { box-shadow: 0 0 0 0 transparent; transition: box-shadow .25s; }
.btn.primary:hover { opacity: 1; box-shadow: 0 0 22px color-mix(in srgb, var(--tab-accent) 35%, transparent); }
@media (prefers-reduced-motion: reduce) { .top::after, .sync i { animation: none !important; } }

.ms-track { fill: none; stroke: var(--open); stroke-width: 3; }
.ms-fill { fill: none; stroke: var(--tab-accent); stroke-width: 3; stroke-linecap: round; }
.ms-trend { display: grid; justify-items: end; gap: 2px; width: 100%; }
.ms-trend svg { width: 100%; height: 24px; }
.ms-trend polyline { fill: none; stroke: var(--tab-accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ms-trend span { font: 500 10.5px/1 var(--mono); color: var(--ink-3); }

/* Today: a Kanban whose rows follow the hierarchy (solution, then module or epic). */
.kb-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 18px; }
.kb-sum { margin-left: auto; }
.mut { font-size: 12.5px; color: var(--ink-3); }
.kb-tabs { display: none; margin-bottom: 14px; }
.kb { display: grid; grid-template-columns: minmax(170px, .8fr) repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.kb-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; padding: 10px; font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--border); }
.kb-h small { flex-basis: 100%; font: 12px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.kb-h.c-ready { color: var(--you); }
.kb-h.c-ready, .kb-cell.c-ready { background: color-mix(in srgb, var(--you) 6%, transparent); }
.kb-sol { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 16px 10px 8px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.kb-sol b { font-size: 15px; }
.kb-sol[aria-expanded="false"] { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.kb-sol[aria-expanded="false"] .mut::after { content: " · tap to open"; }
.kb-lane { display: grid; align-content: start; gap: 4px; padding: 10px; border-bottom: 1px solid var(--border); }
.kb-lane b { font-size: 14px; }
.kb-cell { padding: 10px 8px; border-bottom: 1px solid var(--border); display: grid; align-content: start; gap: 8px; min-height: 60px; transition: background .15s; }
.kb-cell.over { background: color-mix(in srgb, var(--tab-accent) 12%, transparent); }
.pbar { display: block; height: 4px; border-radius: 4px; background: var(--open); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--done); border-radius: inherit; }
.kc { display: grid; gap: 5px; text-align: left; padding: 10px 11px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); color: inherit; font: inherit; cursor: pointer; }
.kc:hover, .kc.sel { border-color: color-mix(in srgb, var(--tab-accent) 40%, var(--border-strong)); background: var(--panel-hover); }
.kc.blocked { border-style: dashed; }
.kc-id { font: 500 11px var(--mono); color: var(--ink-3); }
.kc-t { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.kc-crumb { font-size: 12px; color: var(--ink-3); }
.kc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
@media (max-width: 760px) {
  .kb-tabs { display: block; } .kb-tabs .seg { width: 100%; justify-content: space-between; } .kb-tabs .seg button { flex: 1; padding: 8px 4px; font-size: 13px; }
  .kb-sum { margin-left: 0; flex-basis: 100%; }
  .kb { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .kb .kb-h, .kb-lane .pbar, .kb-lane .mut { display: none !important; }
  .kb-sol { flex-wrap: wrap; row-gap: 2px; } .kb-sol .mut { flex-basis: 100%; padding-left: 42px; }
  .kb-bar .seg { max-width: 100%; }
  .kb-lane { padding: 12px 2px 4px; border: 0; } .kb-lane b { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
  .kb-cell { display: none; padding: 0; border: 0; min-height: 0; background: none !important; }
  .kb[data-col="open"] .c-open, .kb[data-col="active"] .c-active, .kb[data-col="ready"] .c-ready, .kb[data-col="done"] .c-done { display: grid; }
}

/* Milestones: a program header per solution, then one card per release window. */
.pg { margin: 0 0 34px; }
.pg-h { display: grid; grid-template-columns: auto minmax(0, 1fr) 220px; gap: 20px; align-items: center; margin-bottom: 14px; }
.pg-h h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; letter-spacing: -.01em; margin-bottom: 4px; }
.pg-ring { width: 84px; height: 84px; }
.pg-ring text { font: 650 17px var(--sans); fill: var(--ink); }
.ms-track { fill: none; stroke: var(--open); }
.msc { display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
.msc > section { padding: 18px 20px; display: grid; align-content: start; gap: 6px; }
.msc > section + section { border-left: 1px solid var(--border); }
.msc h3 { font-size: 18px; letter-spacing: -.01em; }
.row-i { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.msc-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 4px; }
.msc-kv div { border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; }
.msc-kv b { display: block; font-size: 16px; }
.msc-kv span { font-size: 11.5px; color: var(--ink-3); }
.msc-sub { margin-top: 12px; font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.msc-feats { display: grid; gap: 4px; }
.msc-f { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 8px; margin: 0 -8px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.msc-f:hover { background: var(--panel-hover); }
.msc .btn { justify-self: start; margin-top: 8px; }
.ms-line { width: 100%; height: 70px; }
.ms-line polyline { fill: none; stroke: var(--done); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.ms-line .ideal { stroke: var(--border-strong); stroke-dasharray: 4 4; }
.bgates { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.bgate { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 4px 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 13px; text-align: left; }
button.bgate { cursor: pointer; } button.bgate:hover { color: var(--ink); }
.bgate i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--border-strong); flex: none; }
.bgate.ok { color: var(--ink); } .bgate.ok i { background: var(--done); border-color: var(--done); }
.bgate em { flex-basis: 100%; padding-left: 22px; font-style: normal; font-size: 11.5px; color: var(--tab-accent); }
.crit { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.crit li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.crit li > span { display: grid; gap: 2px; } .crit .m { font-size: 12px; color: var(--ink-3); }
.crit i { width: 14px; height: 14px; margin-top: 3px; border-radius: 4px; border: 1.5px solid var(--border-strong); }
.crit li.met i { background: var(--done); border-color: var(--done); }
.chk { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.chk input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--tab-accent); }
.chk .m { display: block; font-size: 12px; color: var(--ink-3); }
@media (max-width: 760px) {
  .pg-h { grid-template-columns: auto minmax(0, 1fr); } .pg-t { display: none; }
  .msc { grid-template-columns: 1fr; } .msc > section + section { border-left: 0; border-top: 1px solid var(--border); }
  .bgates { grid-template-columns: 1fr; }
}
.pg-ring circle { stroke-width: 8; }
.main:has(.kb), .main:has(.pg) { max-width: 1280px; }

/* ---------- work model (3c): needs line, decision options, epic rows, Product Map ---------- */
.row.need { grid-template-columns: auto minmax(0, 1fr) auto; }
.row.need .chip { justify-self: start; }
.row.dim, .msc.dim { opacity: .62; }
.lane-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lane-btn:hover b { text-decoration: underline; text-underline-offset: 3px; }
.kb-lane .kc-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.rl { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.opts { display: grid; gap: 6px; margin-bottom: 10px; }
.opt { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.opt:hover { border-color: var(--border-strong); }
.opt:has(input:checked) { border-color: var(--you); box-shadow: 0 0 0 1px var(--you) inset; }
.opt input { margin: 3px 0 0; accent-color: var(--you); }
.opt > span { display: grid; gap: 2px; } .opt .m { font-size: 12.5px; color: var(--ink-3); }
.tmap { margin: 0; padding-left: 22px; display: grid; gap: 6px; } .tmap li { display: grid; } .tmap .m { font-size: 12px; color: var(--ink-3); }
.meet { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.meet input, .meet select { min-height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-2); color: inherit; padding: 0 10px; font: inherit; }
.meet input { flex: 1; min-width: 0; }
.kv div > span:last-child { color: var(--ink); text-transform: none; letter-spacing: 0; font: inherit; overflow-wrap: anywhere; }
.pmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 0 0 22px; }
.pmap .lvl { position: relative; display: grid; gap: 2px; min-width: 0; padding: 10px 11px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--panel); color: inherit; text-decoration: none; overflow-wrap: break-word; }
.pmap .lvl span { font: 500 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.pmap .lvl b { font-size: 13.5px; font-weight: 600; } .pmap .lvl i { font-style: normal; font-size: 12px; color: var(--ink-2); }
.pmap a.lvl[href]:hover { background: var(--panel-hover); }
.pmap .lvl.on { border-color: var(--tab-accent); box-shadow: 0 0 0 1px var(--tab-accent) inset; }
.pmap .lvl.none { opacity: .5; border-style: dashed; }
.map-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.map-grid .row { grid-template-columns: auto minmax(0, 1fr) auto; color: inherit; text-decoration: none; }
.tbl { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 13.5px; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); }
.tbl th { text-align: left; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tbl th, .tbl td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.tbl tr:last-child td { border-bottom: 0; }
@media (max-width: 959px) {
  .row.need { grid-template-columns: minmax(0, 1fr) auto; } .row.need > .chip { grid-column: 1 / -1; }
  .map-grid { grid-template-columns: 1fr; }
}
.main:has(.pmap), .main:has(.msc) { max-width: 1280px; }
