@import url("tokens.css");

/* ════════════════════════════════════════════════════════════════
   Auspex Desk — shared theme
   Default is the dark navy desk theme (tokens on :root). Alternate
   Color/font tokens and the theme blocks live in tokens.css so any
   page (dashboard or standalone document) can share them; this file
   adds the dashboard layout. assets/theme.js applies the saved theme
   before first paint and mounts the picker into [data-theme-picker].
   Every color resolves through the tokens — do not hard-code hex/rgba.
   ════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;

  display: grid;
  grid-template-columns: var(--side-w, 216px) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  transition: grid-template-columns 0.18s ease;
  grid-template-areas:
    "side head"
    "side tape"
    "side main"
    "side foot";
  min-height: 100vh;
}

.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.up   { color: var(--up); }
.down { color: var(--down); }

a { color: var(--series-1); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--series-1); outline-offset: 2px; }

/* ── Sidebar ──
   Expanded: icon + label per item. Collapsed (html.side-collapsed, persisted
   by theme.js): a 56px icon rail; labels move to the title tooltip. */
.sidebar {
  grid-area: side;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden;
  border-right: 1px solid var(--hairline);
  padding: 16px 12px 14px;
  background: var(--page);
  display: flex; flex-direction: column;
}
.sidebar .side-brand {
  font-family: var(--font-brand);
  font-weight: 600; font-size: 22px; letter-spacing: 0.28em;
  color: var(--ink);
  padding: 2px 10px 14px; flex: none;
  display: block; white-space: nowrap; overflow: hidden;
}
.sidebar .side-brand .brand-short { display: none; }
.side-group {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 14px 10px 5px; white-space: nowrap;
}
.side-link {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  padding: 6px 10px; border-radius: 6px;
  color: var(--ink-2); font-size: 12.5px; font-weight: 500;
  white-space: nowrap;
}
.side-link .side-icon { flex: none; width: 16px; height: 16px; color: var(--ink-3); }
.side-link .side-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.side-link:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.side-link:hover .side-icon { color: var(--ink-2); }
/* active: filled row + a 2px accent bar on the left edge; the label stays put */
.side-link.active { background: var(--surface-2); color: var(--ink); }
.side-link.active .side-icon { color: var(--series-1); }
.side-link.active::before {
  content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px;
  border-radius: 1px; background: var(--series-1);
}
.side-link .side-note {
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--hairline); border-radius: 3px; padding: 1px 5px;
}

.side-toggle {
  margin-top: auto; padding-top: 12px;
}
.side-toggle button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 6px 10px; border-radius: 6px; border: 1px solid transparent;
  background: none; color: var(--ink-3); cursor: pointer;
  font-family: var(--font-ui); font-size: 11px; font-weight: 500; white-space: nowrap;
}
.side-toggle button:hover { background: var(--surface); color: var(--ink); }
.side-toggle .side-icon { flex: none; width: 16px; height: 16px; transition: transform 0.18s ease; }

/* collapsed rail */
html.side-collapsed { --side-w: 56px; }
html.side-collapsed .sidebar { padding-left: 8px; padding-right: 8px; }
html.side-collapsed .side-brand { padding: 2px 0 14px; text-align: center; letter-spacing: 0; }
html.side-collapsed .side-brand .brand-full { display: none; }
html.side-collapsed .side-brand .brand-short { display: inline; }
html.side-collapsed .side-group {
  height: 1px; padding: 0; margin: 12px 8px 6px; overflow: hidden;
  background: var(--hairline); color: transparent; font-size: 0;
}
html.side-collapsed .side-link { justify-content: center; padding: 8px 0; }
html.side-collapsed .side-link .side-label,
html.side-collapsed .side-link .side-note,
html.side-collapsed .side-toggle .side-label { display: none; }
html.side-collapsed .side-toggle button { justify-content: center; padding: 8px 0; }
html.side-collapsed .side-toggle .side-icon { transform: rotate(180deg); }

/* ── Masthead ── */
header.masthead {
  grid-area: head;
  display: flex; align-items: center; gap: 20px;
  padding: 13px 24px 11px;
  border-bottom: 1px solid var(--hairline);
}
.masthead h1 {
  margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
}
.masthead .desk-label {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}
.session { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.session .clock { font-size: 12px; color: var(--ink-2); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--ink-2); background: var(--surface);
  white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
a.pill:hover { text-decoration: none; border-color: var(--axis); color: var(--ink); }


/* ── Ticker tape ── */
.tape-wrap {
  grid-area: tape;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden; position: relative;
  background: var(--surface);
}
.tape { display: flex; width: max-content; animation: tape-scroll 60s linear infinite; }
.tape-wrap:hover .tape { animation-play-state: paused; }
@keyframes tape-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tape { animation: none; }
  .tape-wrap { overflow-x: auto; }
}
.tick {
  display: flex; align-items: baseline; gap: 8px;
  padding: 8px 22px;
  border-right: 1px solid var(--hairline-2);
  white-space: nowrap;
}
.tick .sym { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; }
.tick .px  { font-family: var(--font-num); font-size: 13px; font-weight: 500; color: var(--ink); }
.tick .chg { font-family: var(--font-num); font-size: 11px; }

/* ── Main / layout ── */
main { grid-area: main; padding: 18px 24px 32px; display: grid; gap: 16px; align-content: start; }

.page-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.page-head .sub { font-size: 12px; color: var(--ink-3); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cols   { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.span-2 { grid-column: span 2; }

.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tiles.tiles-4 { grid-template-columns: repeat(4, 1fr); }
.tiles.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tile {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 8px;
  padding: 12px 16px 13px;
}
.tile .label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px;
}
.tile .value { font-family: var(--font-num); font-size: 21px; font-weight: 500; }
.tile .sub { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.tile .sub .num { font-size: 11px; }

/* ── Cards ── */
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 8px;
  overflow: hidden;
}
.card-head {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 16px 9px;
  border-bottom: 1px solid var(--hairline-2);
}
.card-head h2, .card-head h3 {
  margin: 0; font-size: 11px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-2);
}
.card-head .meta { margin-left: auto; font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.card-head .meta a { font-size: 11px; }
.card-pad { padding: 12px 16px 14px; }

/* ── Tables ── */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
table.wide { min-width: 720px; }
th {
  text-align: right; font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 9px 14px 7px; border-bottom: 1px solid var(--hairline-2);
  white-space: nowrap;
}
th:first-child, th.l { text-align: left; }
td {
  padding: 7px 14px; text-align: right;
  font-family: var(--font-num); font-size: 12.5px; font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--hairline-2);
  color: var(--ink);
  white-space: nowrap;
}
td:first-child, td.l { text-align: left; font-family: var(--font-ui); font-weight: 500; }
td .desc { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 400; white-space: normal; }
tr.book-row td {
  font-family: var(--font-ui); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
  text-align: left; background: var(--surface-2);
  padding: 5px 14px;
}
tbody tr:not(.book-row):hover td { background: color-mix(in srgb, var(--series-1) 6%, transparent); }
tr.total-row td { border-top: 1px solid var(--axis); border-bottom: none; font-weight: 600; }
/* instrument → security master link: inherits the cell colour, dotted underline signals the link */
a.sec-link { color: inherit; border-bottom: 1px dotted var(--ink-3); }
a.sec-link:hover { color: var(--series-1); border-bottom-color: var(--series-1); text-decoration: none; }
.sec-crumb { font-size: 12px; color: var(--ink-3); }
.sec-crumb a { color: var(--ink-2); }
.sec-crumb a:hover { color: var(--ink); }
.sec-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.sec-head .sec-id { font-family: var(--font-num); font-size: 13px; color: var(--ink-3); }
.sec-filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sec-filter input, .sec-filter select { font: inherit; font-size: 12.5px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); }
.sec-filter input { min-width: 220px; }
tr.total-row td:first-child { font-family: var(--font-ui); }
td.dim { color: var(--ink-3); }

/* ── Meters / key-value ── */
.meter { margin-bottom: 12px; }
.meter:last-child { margin-bottom: 0; }
.meter .meter-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.meter .meter-name { font-size: 11.5px; color: var(--ink-2); }
.meter .meter-val { font-family: var(--font-num); font-size: 11.5px; color: var(--ink); }
.meter .bar { position: relative; height: 6px; border-radius: 3px; background: var(--surface-2); }
.meter .fill { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--series-1); }
.meter .limit { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--warn); border-radius: 1px; }
.meter .limit-note { font-size: 10px; color: var(--ink-3); margin-top: 4px; }

.kv { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; }
.kv .k { font-size: 11.5px; color: var(--ink-2); }
.kv .v { font-family: var(--font-num); font-size: 11.5px; color: var(--ink); text-align: right; }

/* ── Chips / tags / banners ── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--hairline);
  color: var(--ink-2); white-space: nowrap;
}
.chip.live    { color: var(--up);       border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.chip.working { color: var(--series-1); border-color: var(--info-border); }
.chip.staged  { color: var(--warn);     border-color: var(--warn-border); }
.chip.filled  { color: var(--ink-2); }
.chip.research{ color: var(--ink-2); }
.chip.exited  { color: var(--ink-3); }

.cat-flag {
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px; white-space: nowrap;
}
.cat-flag.warn { color: var(--warn); border: 1px solid var(--warn-border); }
.cat-flag.info { color: var(--series-1); border: 1px solid var(--info-border); }

.banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 8px;
  border: 1px solid var(--warn-border);
  background: color-mix(in srgb, var(--warn) 6%, transparent);
  color: var(--ink-2); font-size: 12px;
}
.banner .b-flag { color: var(--warn); font-weight: 700; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }

.catalysts {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  padding: 10px 16px;
  font-size: 12px; color: var(--ink-2);
}
.catalysts .cat { display: flex; align-items: center; gap: 8px; }

/* ── Charts ── */
.legend { display: flex; flex-wrap: wrap; gap: 12px 16px; padding: 8px 16px 2px; font-size: 11px; color: var(--ink-2); }
.legend .li { display: inline-flex; align-items: center; gap: 6px; }
.legend .swatch { width: 14px; height: 3px; border-radius: 2px; }
.legend .swatch.band { width: 14px; height: 9px; border-radius: 2px; }
.legend .swatch.dot { width: 9px; height: 9px; border-radius: 2px; }
.chart-body { padding: 8px 10px 6px; }
.chart-note { padding: 0 16px 12px; font-size: 11px; color: var(--ink-3); }
svg text { font-family: var(--font-num); font-size: 10px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
svg .yline { stroke: var(--grid); }
svg .baseline { stroke: var(--axis); }
.spark-cell svg { display: block; }

.tip {
  position: fixed; z-index: 10; pointer-events: none;
  background: var(--tip-bg); border: 1px solid var(--hairline); border-radius: 6px;
  padding: 7px 10px; font-size: 11px; color: var(--ink-2);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  display: none; min-width: 130px;
}
.tip .tip-x { font-weight: 600; color: var(--ink); margin-bottom: 4px; font-family: var(--font-ui); }
.tip .tip-row { display: flex; justify-content: space-between; gap: 14px; }
.tip .tip-row .num { font-size: 11px; color: var(--ink); }

/* ── Idea board ── */
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; }
.board-col > h3 {
  margin: 0 0 10px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3);
  display: flex; justify-content: space-between; align-items: baseline;
}
.board-col > h3 .count { font-family: var(--font-num); }
.idea-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 12px;
}
.idea-card h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.idea-card .thesis { font-size: 11.5px; color: var(--ink-2); margin: 0 0 9px; }
.idea-card .idea-meta { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 10.5px; }
.idea-card .idea-meta .mk { color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.07em; font-size: 9.5px; font-weight: 600; padding-top: 1px; }
.idea-card .idea-meta .mv { color: var(--ink-2); }
.idea-card .idea-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.idea-card .owner { font-size: 10px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.06em; }

/* ── Calendar ── */
.cal { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 0; overflow-x: auto; }
.cal .cal-day { border-right: 1px solid var(--hairline-2); min-height: 100%; }
.cal .cal-day:last-child { border-right: none; }
.cal .cal-head {
  padding: 9px 12px 7px; border-bottom: 1px solid var(--hairline-2);
  font-size: 10px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-2);
  display: flex; justify-content: space-between; align-items: baseline;
}
.cal .cal-head .d { font-family: var(--font-num); color: var(--ink-3); }
.cal .cal-day.today .cal-head { color: var(--ink); border-bottom-color: var(--series-1); }
.evt { padding: 9px 12px; border-bottom: 1px solid var(--hairline-2); }
.evt .evt-time { font-family: var(--font-num); font-size: 10px; color: var(--ink-3); }
.evt .evt-name { font-size: 12px; font-weight: 500; margin: 1px 0 3px; }
.evt .evt-note { font-size: 10.5px; color: var(--ink-3); }
.evt .evt-books { margin-top: 5px; display: flex; gap: 5px; flex-wrap: wrap; }

/* ── Forms (order ticket, disabled in Phase 1) ── */
.field { margin-bottom: 10px; }
.field label {
  display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px;
}
.field input, .field select {
  width: 100%; padding: 7px 10px; border-radius: 6px;
  border: 1px solid var(--hairline); background: var(--surface-2);
  color: var(--ink); font-family: var(--font-num); font-size: 12.5px;
}
.field input:disabled, .field select:disabled { opacity: 0.45; cursor: not-allowed; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; border-radius: 6px; border: 1px solid var(--hairline);
  background: var(--series-1); color: var(--btn-ink); font-family: var(--font-ui);
  font-size: 12px; font-weight: 600; cursor: pointer; width: 100%;
}
.btn:disabled { opacity: 0.35; cursor: not-allowed; }

footer {
  grid-area: foot;
  padding: 14px 24px 22px; border-top: 1px solid var(--hairline);
  font-size: 11px; color: var(--ink-3);
  display: flex; gap: 24px; flex-wrap: wrap; align-items: center;
}

/* ── "Powered by HFA Group" lockup (theme.js renders it into [data-powered-by]) ── */
footer [data-powered-by], .auth-bottom [data-powered-by] { margin-left: auto; }
.powered-by {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink-3); text-decoration: none; white-space: nowrap;
  transition: color 0.15s ease;
}
.powered-by:hover { color: var(--ink); }
.powered-by-label { font-size: 11px; }
.hfa-mark { height: 18px; width: auto; flex: none; display: block; }
.hfa-word {
  font-family: var(--font-brand); font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
}
/* Under the AUSPEX brand: sidebar (all desk pages) and the sign-in header. */
.side-powered { flex: none; padding: 0 10px 16px; margin-top: -8px; white-space: nowrap; overflow: hidden; }
.side-powered .powered-by { gap: 5px; }
.side-powered .powered-by-label { font-size: 10px; }
.side-powered .hfa-mark { height: 13px; }
.side-powered .hfa-word { font-size: 11px; }
html.side-collapsed .side-powered { padding: 0 0 14px; margin-top: -6px; text-align: center; }
html.side-collapsed .side-powered .powered-by-label,
html.side-collapsed .side-powered .hfa-word { display: none; }
html.side-collapsed .side-powered .hfa-mark { height: 16px; }
.auth-brand-wrap { display: flex; flex-direction: column; gap: 2px; }
.auth-brand-wrap .powered-by { gap: 5px; }
.auth-brand-wrap .powered-by-label { font-size: 10px; }
.auth-brand-wrap .hfa-mark { height: 13px; }
.auth-brand-wrap .hfa-word { font-size: 11px; }

/* ── Responsive ── */
@media (max-width: 1140px) {
  .tiles, .tiles.tiles-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 940px) {
  body {
    grid-template-columns: 1fr;
    grid-template-areas: "side" "head" "tape" "main" "foot";
  }
  html.side-collapsed { --side-w: auto; }
  .sidebar {
    position: static; height: auto; border-right: none;
    border-bottom: 1px solid var(--hairline);
    display: flex; flex-direction: row; align-items: center; gap: 2px; overflow-x: auto;
    padding: 10px 12px;
  }
  .sidebar .side-brand, html.side-collapsed .side-brand { flex: none; padding: 0 12px 0 4px; font-size: 18px; letter-spacing: 0.28em; text-align: left; }
  html.side-collapsed .side-brand .brand-full { display: inline; }
  html.side-collapsed .side-brand .brand-short { display: none; }
  .side-group, html.side-collapsed .side-group { display: none; }
  .side-powered { display: none; }
  .side-link, html.side-collapsed .side-link { white-space: nowrap; justify-content: flex-start; padding: 6px 10px; }
  html.side-collapsed .side-link .side-label { display: inline; }
  .side-link.active::before { display: none; }
  .side-toggle { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}

/* ── Session controls (masthead) ── */
button.pill { font-family: var(--font-ui); cursor: pointer; line-height: 1.2; }
button.pill:hover { border-color: var(--axis); color: var(--ink); }
.pill.user-pill { text-transform: none; letter-spacing: 0.02em; font-size: 11px; }

/* ── Sign-in page (login.html) ──
   Standalone: no sidebar/tape, so the body drops the desk grid. */
body.auth { display: flex; flex-direction: column; min-height: 100vh; }
.auth-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--hairline-2);
}
.auth-brand { font-family: var(--font-brand); font-weight: 600; font-size: 22px; letter-spacing: 0.28em; color: var(--ink); }
.auth-main { flex: 1; display: grid; place-items: center; padding: 32px 20px; }
.auth-card {
  width: min(392px, 100%);
  background: var(--surface); border: 1px solid var(--hairline); border-top: 2px solid var(--series-1);
  border-radius: 10px; padding: 26px 28px 18px;
}
.auth-kicker { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.auth-card h1 { margin: 6px 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.auth-lede { margin: 0 0 20px; color: var(--ink-2); font-size: 12.5px; }
.auth-card .field input { padding: 9px 11px; font-size: 13px; }
.auth-card .field input:focus { border-color: var(--series-1); outline: none; }
.auth-remember { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); margin: 4px 0 16px; cursor: pointer; }
.auth-remember input { accent-color: var(--series-1); margin: 0; }
.auth-err {
  margin: 0 0 12px; padding: 8px 10px; border-radius: 6px; font-size: 12px;
  color: var(--down); border: 1px solid var(--down); background: color-mix(in srgb, var(--down) 10%, transparent);
}
.auth-err[hidden] { display: none; }
.auth-card .btn { padding: 10px 16px; font-size: 13px; }
.auth-card .btn:disabled { opacity: 0.6; }
.auth-foot {
  margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--hairline-2);
  font-size: 11px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.auth-bottom { padding: 14px 24px 22px; font-size: 11px; color: var(--ink-3); display: flex; gap: 24px; align-items: center; }
