/* ─────────────────────────────────────────────────────────────
   Marvin · Refined Operator theme
   Modern, light/dark, professional. Designed to pair with Tailwind
   utilities, so this file only carries tokens + components that
   are awkward to express as utility classes.
   ───────────────────────────────────────────────────────────── */

:root {
  color-scheme: light;

  /* Neutrals — cool slate */
  --ink-0:   oklch(0.99  0.003 240);   /* page                  */
  --ink-1:   oklch(0.975 0.004 240);   /* soft surface          */
  --ink-2:   oklch(0.955 0.006 240);   /* hover, rail bg        */
  --ink-3:   oklch(0.92  0.008 240);   /* border                */
  --ink-4:   oklch(0.84  0.010 240);   /* strong divider        */
  --ink-5:   oklch(0.58  0.012 245);   /* meta text             */
  --ink-6:   oklch(0.42  0.014 245);   /* body                  */
  --ink-7:   oklch(0.28  0.016 245);   /* heading               */
  --ink-8:   oklch(0.18  0.020 245);   /* ink                   */

  /* Flat surface (replaces hardcoded `white`) */
  --surface: white;

  /* Accent — cobalt indigo */
  --accent:    oklch(0.55 0.18 265);
  --accent-2:  oklch(0.62 0.16 265);
  --accent-bg: oklch(0.965 0.025 265);

  /* Semantic risk — equal chroma, varying hue */
  --risk-low:         oklch(0.66 0.14 155);
  --risk-low-bg:      oklch(0.965 0.04 155);
  --risk-medium:      oklch(0.74 0.14 85);
  --risk-medium-bg:   oklch(0.97  0.05 85);
  --risk-high:        oklch(0.68 0.16 50);
  --risk-high-bg:     oklch(0.97  0.05 50);
  --risk-critical:    oklch(0.60 0.18 22);
  --risk-critical-bg: oklch(0.97  0.04 22);

  /* Badge / perm text colours (need inverting in dark mode) */
  --badge-low-color:      oklch(0.32 0.10 155);
  --badge-medium-color:   oklch(0.38 0.10 85);
  --badge-high-color:     oklch(0.36 0.13 50);
  --badge-critical-color: oklch(0.36 0.14 22);
  --perm-critical-color:  oklch(0.32 0.14 22);
  --perm-high-color:      oklch(0.32 0.13 50);
  --perm-medium-color:    oklch(0.34 0.10 85);
}

/* ── Dark theme ────────────────────────────────────────────── */
[data-theme="dark"] {
  color-scheme: dark;

  --ink-0:   oklch(0.13 0.008 240);
  --ink-1:   oklch(0.17 0.008 240);
  --ink-2:   oklch(0.21 0.010 240);
  --ink-3:   oklch(0.28 0.012 240);
  --ink-4:   oklch(0.35 0.012 240);
  --ink-5:   oklch(0.55 0.012 245);
  --ink-6:   oklch(0.72 0.010 245);
  --ink-7:   oklch(0.86 0.008 245);
  --ink-8:   oklch(0.95 0.005 245);

  --surface: oklch(0.20 0.009 240);

  --accent:    oklch(0.68 0.18 265);
  --accent-2:  oklch(0.75 0.16 265);
  --accent-bg: oklch(0.22 0.05  265);

  --risk-low-bg:      oklch(0.20 0.06 155);
  --risk-medium-bg:   oklch(0.20 0.06 85);
  --risk-high-bg:     oklch(0.20 0.06 50);
  --risk-critical-bg: oklch(0.20 0.06 22);

  --badge-low-color:      oklch(0.76 0.14 155);
  --badge-medium-color:   oklch(0.80 0.14 85);
  --badge-high-color:     oklch(0.76 0.16 50);
  --badge-critical-color: oklch(0.74 0.18 22);
  --perm-critical-color:  oklch(0.74 0.18 22);
  --perm-high-color:      oklch(0.76 0.16 50);
  --perm-medium-color:    oklch(0.80 0.14 85);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--ink-0);
  color: var(--ink-7);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

[x-cloak] { display: none !important; }

.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

/* Bedrock typography helpers ----------------------------------- */
.text-meta { font-size: 11.5px; color: var(--ink-5); }
.label-cap {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-5);
}
.page-title    { font-size: 20px; font-weight: 600; color: var(--ink-8); letter-spacing: -0.01em; margin: 0; }
.page-sub      { font-size: 13px; color: var(--ink-5); margin-top: 3px; }
.section-title { font-size: 14px; font-weight: 600; color: var(--ink-8); margin: 0 0 12px; }

/* ── Layout shell ─────────────────────────────────────────── */
.page-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.rail {
  background: var(--ink-1);
  border-right: 1px solid var(--ink-3);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0;
  height: 100vh;
}
.topbar {
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--ink-3);
  background: var(--surface);
  gap: 14px;
  position: sticky; top: 0; z-index: 10;
}
.content    { padding: 28px; max-width: 1280px; }

/* Running build, pinned to the bottom of the flex rail */
.rail-version {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ink-3);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--ink-5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Sidebar nav links ────────────────────────────────────── */
.rail-link {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--ink-6);
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.rail-link:hover { background: var(--ink-2); color: var(--ink-8); text-decoration: none; }
.rail-link.active {
  background: var(--surface);
  color: var(--ink-8);
  box-shadow: 0 1px 0 var(--ink-3), 0 0 0 1px var(--ink-3) inset;
}
.rail-link svg { width: 16px; height: 16px; flex: none; opacity: 0.75; }
.rail-link.active svg { opacity: 1; color: var(--accent); }

/* ── Surfaces ─────────────────────────────────────────────── */
.surface      { background: var(--surface); border: 1px solid var(--ink-3); border-radius: 10px; }
.surface-soft { background: var(--ink-1);   border: 1px solid var(--ink-3); border-radius: 10px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary   { background: var(--ink-8); color: var(--ink-0); border-color: var(--ink-8); }
.btn-primary:hover:not(:disabled)   { background: var(--ink-7); border-color: var(--ink-7); }
.btn-secondary { background: var(--surface); color: var(--ink-7); border-color: var(--ink-3); }
.btn-secondary:hover:not(:disabled) { background: var(--ink-1); border-color: var(--ink-4); }
.btn-ghost     { background: transparent; color: var(--ink-6); border-color: transparent; }
.btn-ghost:hover:not(:disabled)     { background: var(--ink-2); color: var(--ink-8); }
.btn-danger    { background: var(--surface); color: var(--risk-critical); border-color: var(--ink-3); }
.btn-danger:hover:not(:disabled)    { background: var(--risk-critical-bg); border-color: var(--risk-critical); }
.btn-sm { font-size: 12px; padding: 5px 9px; }

/* ── Inputs ───────────────────────────────────────────────── */
.field, input[type="text"], input[type="password"], input[type="email"], select, textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--ink-3);
  color: var(--ink-8);
  font-family: inherit;
  font-size: 13.5px;
  padding: 8px 11px;
  border-radius: 7px;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.field:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 18%, transparent);
}
.field-mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-store {
  background: var(--ink-1);
  color: var(--ink-7);
  border-color: var(--ink-3);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px;
  text-transform: lowercase;
}
.badge-store .dot { width: 6px; height: 6px; border-radius: 999px; }
.badge-chrome .dot { background: oklch(0.65 0.18 260); }
.badge-vscode .dot { background: oklch(0.65 0.18 220); }
.badge-edge   .dot { background: oklch(0.65 0.18 195); }

.badge-low      { background: var(--risk-low-bg);      color: var(--badge-low-color);      border-color: color-mix(in oklch, var(--risk-low) 25%, transparent); }
.badge-medium   { background: var(--risk-medium-bg);   color: var(--badge-medium-color);   border-color: color-mix(in oklch, var(--risk-medium) 30%, transparent); }
.badge-high     { background: var(--risk-high-bg);     color: var(--badge-high-color);     border-color: color-mix(in oklch, var(--risk-high) 30%, transparent); }
.badge-critical { background: var(--risk-critical-bg); color: var(--badge-critical-color); border-color: color-mix(in oklch, var(--risk-critical) 35%, transparent); }

/* Legacy risk text colours (kept for templates that use them) */
.risk-low      { color: var(--risk-low); }
.risk-medium   { color: var(--risk-medium); }
.risk-high     { color: var(--risk-high); }
.risk-critical { color: var(--risk-critical); }

/* ── Permission tags ──────────────────────────────────────── */
.perm-tag {
  display: inline-flex;
  padding: 3px 8px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11.5px;
  border-radius: 5px;
  background: var(--ink-1);
  color: var(--ink-7);
  border: 1px solid var(--ink-3);
  margin: 2px;
}
.perm-critical { background: var(--risk-critical-bg); color: var(--perm-critical-color); border-color: color-mix(in oklch, var(--risk-critical) 35%, transparent); }
.perm-high     { background: var(--risk-high-bg);     color: var(--perm-high-color);     border-color: color-mix(in oklch, var(--risk-high) 30%, transparent); }
.perm-medium   { background: var(--risk-medium-bg);   color: var(--perm-medium-color);   border-color: color-mix(in oklch, var(--risk-medium) 30%, transparent); }
.perm-low      { /* default */ }

/* ── Score bar ────────────────────────────────────────────── */
.score-bar-track { background: var(--ink-2); height: 5px; border-radius: 999px; overflow: hidden; }
.score-bar-fill  { height: 100%; border-radius: 999px; transition: width 0.3s ease; }

/* ── Gauge ────────────────────────────────────────────────── */
.gauge { position: relative; width: 130px; height: 130px; }
.gauge svg { transform: rotate(-90deg); }
.gauge .track { stroke: var(--ink-3); }
.gauge .num   { font-size: 38px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-8); }

/* ── Tables ───────────────────────────────────────────────── */
table { width: 100%; border-collapse: separate; border-spacing: 0; }
thead th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-5);
  padding: 11px 14px;
  background: var(--ink-1);
  border-bottom: 1px solid var(--ink-3);
}
tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--ink-2);
  vertical-align: middle;
  font-size: 13.5px;
  color: var(--ink-7);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--ink-1); }
.sortable { cursor: pointer; user-select: none; }

/* ── Flash ────────────────────────────────────────────────── */
.flash {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--ink-3);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-7);
  margin-bottom: 16px;
}

/* ── Avatar ───────────────────────────────────────────────── */
.avatar {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}

/* ── Search input in topbar ───────────────────────────────── */
.search { position: relative; width: 360px; max-width: 50vw; }
.search svg {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--ink-5);
}
.search input {
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  padding: 7px 11px 7px 30px;
  border-radius: 7px;
  font-size: 13px;
}
.search input:focus { background: var(--surface); }
.search kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  padding: 2px 5px;
  border: 1px solid var(--ink-3);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink-5);
}

/* ── Login layout ─────────────────────────────────────────── */
.login-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  padding: 32px;
  background: linear-gradient(180deg, var(--ink-0), var(--ink-1));
}
.login-card { width: 100%; max-width: 400px; }

/* ── Sparkline ────────────────────────────────────────────── */
.spark path.line { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.spark path.area { fill: color-mix(in oklch, var(--accent) 10%, transparent); stroke: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .page-shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .content { padding: 20px; }
  .topbar { padding: 0 16px; }
  .search { width: 100%; }
}

/* ─────────────────────────────────────────────────────────────
   Marvin · Redesign additions
   New patterns introduced by the UI review — built on the existing
   token system (app.css). Tabs, sub-nav, trend chart, switches,
   review-document helpers. Nothing here overrides base tokens.
   ───────────────────────────────────────────────────────────── */

/* ── Tabbed sub-navigation (extension detail) ─────────────── */
.tabbar {
  display: flex;
  align-items: center;
  gap: 2px;
  border-bottom: 1px solid var(--ink-3);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px 11px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-5);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s, border-color 0.12s;
}
.tab:hover { color: var(--ink-7); }
.tab.active { color: var(--ink-8); border-bottom-color: var(--accent); }
.tab .count {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--ink-2);
  color: var(--ink-6);
}
.tab.active .count { background: var(--accent-bg); color: var(--accent); }
.tab .count.alert { background: var(--risk-critical-bg); color: var(--badge-critical-color); }

/* ── Switch (watchlist, etc.) ─────────────────────────────── */
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-7);
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.switch .track {
  position: relative;
  width: 34px; height: 19px;
  border-radius: 999px;
  background: var(--ink-3);
  transition: background 0.15s;
  flex: none;
}
.switch .thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 15px; height: 15px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  transition: transform 0.15s;
}
.switch.on .track { background: var(--accent); }
.switch.on .thumb { transform: translateX(15px); }

/* ── Trend chart ──────────────────────────────────────────── */
.trend { width: 100%; }
.trend .grid-line { stroke: var(--ink-2); stroke-width: 1; }
.trend .band { opacity: 0.10; }
.trend path.area { stroke: none; }
.trend path.line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend .dot { stroke: var(--surface); stroke-width: 2; }
.trend .axis-label { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 10px; fill: var(--ink-5); }

/* ── Mini KPI inline stat ─────────────────────────────────── */
.kpi-row { display: flex; flex-wrap: wrap; gap: 28px; }
.kpi .v { font-size: 19px; font-weight: 600; color: var(--ink-8); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kpi .v.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

/* ── Delta pill (score change) ────────────────────────────── */
.delta {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 500;
  padding: 1px 6px; border-radius: 999px;
}
.delta.up   { background: var(--risk-critical-bg); color: var(--badge-critical-color); }
.delta.down { background: var(--risk-low-bg);      color: var(--badge-low-color); }
.delta.flat { background: var(--ink-1);            color: var(--ink-5); }

/* ── Segmented filter control ─────────────────────────────── */
.seg {
  display: inline-flex;
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.seg button {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-6);
  background: none;
  border: none;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.seg button:hover { color: var(--ink-8); }
.seg button.active { background: var(--surface); color: var(--ink-8); box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 0 0 1px var(--ink-3); }

/* ── Severity rail (left accent on finding cards) ─────────── */
.finding {
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  border-radius: 9px;
  padding: 11px 13px;
  position: relative;
  overflow: hidden;
}
.finding::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
}
.finding.sev-critical::before { background: var(--risk-critical); }
.finding.sev-high::before     { background: var(--risk-high); }
.finding.sev-medium::before   { background: var(--risk-medium); }
.finding.sev-low::before      { background: var(--risk-low); }

/* ── Chip (sentence-rule label) ───────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 500;
  padding: 3px 9px; border-radius: 999px;
  background: var(--ink-1); color: var(--ink-6); border: 1px solid var(--ink-3);
}

/* ── Callout / annotation (review doc) ────────────────────── */
.callout {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.55;
}
.callout.problem { background: var(--risk-critical-bg); border: 1px solid color-mix(in oklch, var(--risk-critical) 28%, transparent); }
.callout.fix     { background: var(--risk-low-bg);      border: 1px solid color-mix(in oklch, var(--risk-low) 28%, transparent); }

.tag-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex: none;
  border-radius: 999px;
  background: var(--ink-8); color: var(--ink-0);
  font-size: 11px; font-weight: 600;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ── Review doc layout ────────────────────────────────────── */
.review-prose p { font-size: 14px; line-height: 1.65; color: var(--ink-6); }
.review-prose strong { color: var(--ink-8); font-weight: 600; }

.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .before-after { grid-template-columns: 1fr; } }
.ba-col { border-radius: 10px; padding: 13px 15px; font-size: 13px; line-height: 1.5; }
.ba-col .ba-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.ba-col.before { background: var(--ink-1); border: 1px solid var(--ink-3); }
.ba-col.before .ba-label { color: var(--ink-5); }
.ba-col.after { background: var(--accent-bg); border: 1px solid color-mix(in oklch, var(--accent) 22%, transparent); }
.ba-col.after .ba-label { color: var(--accent); }
.ba-col ul { margin: 0; padding-left: 16px; color: var(--ink-6); }
.ba-col li { margin-bottom: 3px; }

/* card grid for review nav */
.screen-link {
  display: block;
  background: var(--surface);
  border: 1px solid var(--ink-3);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.12s, transform 0.12s, box-shadow 0.12s;
}
.screen-link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px oklch(0.05 0.01 240 / 0.10); text-decoration: none; }

/* ─────────────────────────────────────────────────────────────
   Marvin · Branding additions  →  append to static/css/app.css
   Login "Branded split" (Option B) + the aperture watermark.
   All colors are existing tokens; nothing here overrides base.
   ───────────────────────────────────────────────────────────── */

/* Two-column split login. Left = branded indigo panel, right = form. */
.login-split {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 46%) 1fr;
}

/* Left brand panel */
.login-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  color: #fff;
  background: linear-gradient(165deg, var(--accent-2, oklch(0.42 0.17 266)), oklch(0.145 0.01 264));
}
.login-brand__watermark {
  position: absolute;
  right: -60px;
  top: -50px;
  color: #fff;
  opacity: 0.07;
  pointer-events: none;
}
.login-brand__headline {
  position: relative;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.login-brand__sub {
  position: relative;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.72;
  margin-top: 12px;
  max-width: 38ch;
}
.login-brand__lockup { position: relative; display: flex; align-items: center; gap: 13px; }
.login-brand__lockup .name { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }

/* Right form column */
.login-form-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--surface);
}
.login-form-col .form-inner { width: 100%; max-width: 320px; }

/* Mark tiles used in the lockups (rail + login) */
.brand-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 26%;
}
.brand-tile--rail   { width: 78px; height: 78px; color: var(--accent); background: var(--ink-1); border: 1px solid var(--ink-3); }
.brand-tile--ondark { width: 40px; height: 40px; color: oklch(0.68 0.18 264); background: oklch(0.205 0.012 264 / 0.6); border: 1px solid oklch(1 0 0 / 0.12); }

/* Collapse to single column on narrow screens — hide the brand panel */
@media (max-width: 720px) {
  .login-split { grid-template-columns: 1fr; }
  .login-brand { display: none; }
}
