/* AI&I Position Desk: engine page */

:root {
  --indigo: #6366f1;
  --purple: #a855f7;
  --indigo-soft: #818cf8;
  --purple-soft: #c084fc;
  --pink: #f472b6;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 1rem;
  --board-w: min(100% - 3rem, clamp(56.25rem, 66vw, 83.75rem));
  --chat-h: clamp(22rem, 100svh - 21rem, 38rem);
}

html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html[data-font-size="md"] { font-size: 112.5%; }
html[data-font-size="lg"] { font-size: 125%; }
html[data-font-size="xl"] { font-size: 137.5%; }

/* Dark theme (engine default) */
:root,
html[data-theme="dark"] {
  --bg: #0b0b1d;
  --text: #eef0ff;
  --muted: #b9bce6;
  --faint: #9a9ed6;
  --panel: rgba(22, 22, 48, 0.9);
  --panel-glass: rgba(22, 22, 48, 0.62);
  --panel-border: rgba(129, 140, 248, 0.26);
  --field: rgba(10, 10, 28, 0.85);
  --field-border: rgba(129, 140, 248, 0.38);
  --bubble-user: #4f46e5;
  --bubble-user-text: #ffffff;
  --bubble-bot: rgba(255, 255, 255, 0.06);
  --chip-bg: rgba(129, 140, 248, 0.16);
  --chip-text: #d7dbff;
  --link: #c4b5fd;
  --accent-text: #c4b5fd;
  --coral: #ff9b8a;
  --nav-bg: rgba(11, 11, 29, 0.92);
  --nav-glass: rgba(11, 11, 29, 0.6);
  --glow-1: rgba(99, 102, 241, 0.55);
  --glow-2: rgba(168, 85, 247, 0.45);
  --glow-3: rgba(244, 114, 182, 0.32);
  --scroll-thumb: rgba(165, 170, 255, 0.55);
  --btn-text: #ffffff;
  --btn-bg: #5b5ef0;
  --shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f4f3ff;
  --text: #1b1847;
  --muted: #45437a;
  --faint: #55538a;
  --panel: rgba(255, 255, 255, 0.95);
  --panel-glass: rgba(255, 255, 255, 0.72);
  --panel-border: rgba(99, 102, 241, 0.22);
  --field: #ffffff;
  --field-border: rgba(79, 70, 229, 0.35);
  --bubble-user: #4f46e5;
  --bubble-user-text: #ffffff;
  --bubble-bot: rgba(99, 102, 241, 0.08);
  --chip-bg: rgba(99, 102, 241, 0.12);
  --chip-text: #312e81;
  --link: #5b21b6;
  --accent-text: #6d28d9;
  --coral: #b4321f;
  --nav-bg: rgba(255, 255, 255, 0.94);
  --nav-glass: rgba(255, 255, 255, 0.7);
  --glow-1: rgba(99, 102, 241, 0.32);
  --glow-2: rgba(168, 85, 247, 0.26);
  --glow-3: rgba(244, 114, 182, 0.22);
  --scroll-thumb: rgba(79, 70, 229, 0.45);
  --btn-text: #ffffff;
  --btn-bg: #4f46e5;
  --shadow: 0 1rem 2rem rgba(49, 46, 129, 0.12);
  color-scheme: light;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

/* Vibrant background glow, never dulled by a scrim */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42rem 30rem at 12% -6%, var(--glow-1), transparent 70%),
    radial-gradient(36rem 28rem at 92% 4%, var(--glow-2), transparent 70%),
    radial-gradient(40rem 30rem at 60% 108%, var(--glow-3), transparent 70%);
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--link); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 0.1875rem solid var(--purple-soft); outline-offset: 0.125rem; border-radius: 0.375rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--btn-bg); color: var(--btn-text); padding: 0.5rem 1rem; border-radius: 0.5rem;
}
.skip:focus { top: calc(0.5rem + env(safe-area-inset-top)); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--panel-border);
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav { background: var(--nav-glass); }
}
.nav-row {
  width: var(--board-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.6rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand-mark {
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: 0.7rem;
  background: linear-gradient(135deg, #4f46e5, #7e22ce 55%, #be185d);
  color: #ffffff; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.brand-top { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.brand-bottom { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.nav-links { display: flex; gap: 0.25rem; flex-wrap: wrap; justify-content: center; }
.nav-links a {
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.92rem;
  padding: 0.4rem 0.75rem; border-radius: 999px;
}
.nav-links a[aria-current="page"] { background: var(--chip-bg); color: var(--chip-text); }
.nav-links a:hover { background: var(--chip-bg); }
.prefs { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.size-group { display: inline-flex; align-items: flex-end; border: 1px solid var(--panel-border); border-radius: 999px; padding: 0.15rem; background: var(--panel); }
.size-btn {
  border: 0; background: transparent; color: var(--text); font-weight: 700; font-family: var(--font-head);
  min-width: 2rem; height: 2rem; border-radius: 999px; line-height: 1; padding: 0 0.3rem;
}
.size-btn[data-size="sm"] { font-size: 0.78rem; }
.size-btn[data-size="md"] { font-size: 0.92rem; }
.size-btn[data-size="lg"] { font-size: 1.06rem; }
.size-btn[data-size="xl"] { font-size: 1.2rem; }
.size-btn[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-text); }
.theme-btn {
  width: 2.4rem; height: 2.4rem; border-radius: 999px; border: 1px solid var(--panel-border);
  background: var(--panel); display: grid; place-items: center; color: var(--text);
}
.theme-btn svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-btn .icon-moon { display: none; }
html[data-theme="light"] .theme-btn .icon-moon { display: block; }
html[data-theme="light"] .theme-btn .icon-sun { display: none; }

/* ---------- Hero ---------- */
.hero {
  width: var(--board-w);
  margin: 0 auto;
  padding: 0.9rem 0 0.8rem;
  text-align: center;
}
.hero-chip {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--chip-bg); color: var(--chip-text);
  border: 1px solid var(--panel-border);
}
.hero h1 {
  margin-top: 0.5rem;
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.grad {
  color: var(--purple-soft);
  background: linear-gradient(90deg, var(--indigo-soft), var(--purple-soft) 50%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .grad {
  color: var(--accent-text);
  background: linear-gradient(90deg, #4f46e5, #7e22ce 55%, #be185d);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-sub { margin: 0.45rem auto 0; font-weight: 600; color: var(--muted); max-width: 60rem; font-size: 0.98rem; }
.br-wide { display: none; }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.6rem; }
.chip-link {
  text-decoration: none; font-weight: 600; font-size: 0.88rem;
  padding: 0.4rem 0.9rem; border-radius: 999px; color: var(--chip-text);
  background: var(--chip-bg); border: 1px solid var(--panel-border);
}
.chip-link:hover { border-color: var(--purple-soft); }

/* ---------- Board ---------- */
.board {
  width: var(--board-w);
  margin: 0 auto 1rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.chat-slot { grid-column: 1; grid-row: 1; min-width: 0; height: var(--chat-h); }
.top-card { grid-column: 1; grid-row: 2; }
.short-card { grid-column: 1; grid-row: 3; }
.detail-card { grid-column: 1; grid-row: 4; }

@media (min-width: 700px) {
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chat-slot { grid-column: 1 / -1; grid-row: 1; }
  .top-card { grid-column: 1; grid-row: 2; }
  .short-card { grid-column: 2; grid-row: 2; }
  .detail-card { grid-column: 3; grid-row: 2; }
  .br-wide { display: inline; }
}
@media (min-width: 1100px) {
  .board { grid-template-columns: minmax(0, 1.36fr) minmax(0, 1.06fr) minmax(0, 0.98fr) minmax(0, 0.98fr); }
  .chat-slot { grid-column: 1; grid-row: 1; }
  .top-card { grid-column: 2; grid-row: 1; }
  .short-card { grid-column: 3; grid-row: 1; }
  .detail-card { grid-column: 4; grid-row: 1; }
  .side-card { max-height: var(--chat-h); }
}

.card {
  position: relative;
  min-width: 0;
  background: var(--panel);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  overflow: hidden;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .card { background: var(--panel-glass); }
  html[data-theme="light"] .card { background: rgba(255, 255, 255, 0.86); }
}
.card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 0.2rem;
  background: linear-gradient(90deg, var(--indigo), var(--purple), var(--pink));
}
.top-card::before { background: linear-gradient(90deg, var(--purple), var(--pink)); }
.short-card::before { background: linear-gradient(90deg, var(--indigo), var(--indigo-soft)); }
.detail-card::before { background: linear-gradient(90deg, var(--pink), var(--purple-soft)); }

/* Thin scrollbars that work with wheel, trackpad, touch and keys */
.scroll, .log {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
  -webkit-overflow-scrolling: touch;
}
.scroll::-webkit-scrollbar, .log::-webkit-scrollbar { width: 0.45rem; }
.scroll::-webkit-scrollbar-thumb, .log::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 999px; }
.scroll::-webkit-scrollbar-track, .log::-webkit-scrollbar-track { background: transparent; }

/* ---------- Chat card ---------- */
.chat-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  container-type: inline-size;
  container-name: chat;
}
.chat-head { flex: none; display: flex; flex-direction: column; gap: 0.15rem; text-align: left; min-width: 0; }
.chat-title-row { display: flex; align-items: center; justify-content: space-between; gap: 0.25rem 0.5rem; flex-wrap: wrap; }
.chat-head h2 { font-size: 1.1rem; }
.chat-sub { color: var(--muted); font-size: 0.84rem; }
.chat-actions { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; margin-top: 0.3rem; }
.icon-btn {
  width: 2.25rem; height: 2.25rem; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--panel-border); background: var(--chip-bg); color: var(--text);
}
.icon-btn svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:disabled { opacity: 0.45; }
.full-btn {
  height: 2.25rem; padding: 0 0.85rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--panel-border); background: var(--chip-bg); color: var(--chip-text); white-space: nowrap;
}
.count-chip {
  flex: none;
  font-size: 0.72rem; font-weight: 600; color: var(--chip-text);
  background: var(--chip-bg); border-radius: 999px; padding: 0.2rem 0.65rem;
}
.log {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.25rem 0.25rem 0.25rem 0;
  text-align: left;
}
.msg { flex: none; max-width: 92%; border-radius: 0.9rem; padding: 0.65rem 0.85rem; font-size: 0.95rem; min-width: 0; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--bubble-user); color: var(--bubble-user-text); border-bottom-right-radius: 0.3rem; white-space: pre-wrap; }
.msg.bot { align-self: flex-start; background: var(--bubble-bot); border: 1px solid var(--panel-border); border-bottom-left-radius: 0.3rem; }
.msg.bot p + p, .msg.bot p + ul, .msg.bot ul + p { margin-top: 0.55rem; }
.msg.bot ul { margin: 0; padding-left: 1.2rem; }
.msg.bot li + li { margin-top: 0.25rem; }
.msg.bot strong { font-weight: 700; }
.msg.bot .next-line { margin-top: 0.65rem; padding-top: 0.55rem; border-top: 1px solid var(--panel-border); font-weight: 600; }
.msg.error { align-self: flex-start; background: transparent; border: 1px solid var(--coral); color: var(--coral); font-weight: 600; }
.msg a { color: var(--link); }
.msg.user a { color: #ffffff; }

.thinking { display: flex; flex-direction: column; gap: 0.35rem; }
.dots { display: inline-flex; gap: 0.35rem; align-items: center; height: 1rem; }
.dots span { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--purple-soft); animation: pulse 1.2s ease-in-out infinite; }
html[data-theme="light"] .dots span { background: var(--purple); }
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse { 0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) {
  .dots span { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.wait-note { font-size: 0.84rem; color: var(--muted); }

.composer { flex: none; display: grid; gap: 0.5rem; grid-template-columns: minmax(0, 1fr); }
.composer textarea {
  width: 100%;
  min-width: 0;
  resize: none;
  min-height: 2.75rem;
  max-height: 8rem;
  line-height: 1.4;
  padding: 0.65rem 0.9rem;
  border-radius: 1.4rem;
  border: 1px solid var(--field-border);
  background: var(--field);
  color: var(--text);
  overflow-y: hidden;
  display: block;
}
.composer textarea::placeholder { color: var(--muted); opacity: 1; }
.composer textarea.is-scrolling { overflow-y: auto; }
.composer-btns { display: flex; gap: 0.5rem; justify-content: flex-end; align-items: center; }
.mic-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 1px solid var(--field-border); background: var(--chip-bg); color: var(--text);
}
.mic-btn[hidden] { display: none; }
.mic-btn svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mic-btn[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #2a0b1c; box-shadow: 0 0 0 0.3rem rgba(244, 114, 182, 0.3); }
.send-btn {
  height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; border: 0; flex: none;
  background: linear-gradient(135deg, #4f46e5, #7e22ce); color: #ffffff; font-weight: 700;
  min-width: 5.25rem;
}
.send-btn[aria-busy="true"], .send-btn:disabled { opacity: 0.6; }
@container chat (min-width: 18.5rem) {
  .composer { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
.mic-status { flex: none; font-size: 0.82rem; color: var(--muted); text-align: left; }
.mic-error { flex: none; font-size: 0.84rem; color: var(--coral); font-weight: 600; text-align: left; }
.mic-status[hidden], .mic-error[hidden] { display: none; }
.chat-note { flex: none; font-size: 0.72rem; line-height: 1.4; color: var(--muted); text-align: left; }

/* Full page overlay: the slot keeps its size so nothing behind it moves */
.chat-card.is-full {
  position: fixed;
  z-index: 60;
  top: calc(0.75rem + env(safe-area-inset-top));
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  left: calc(0.75rem + env(safe-area-inset-left));
  right: calc(0.75rem + env(safe-area-inset-right));
  height: auto;
  max-width: 64rem;
  margin: 0 auto;
}
.backdrop {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(8, 8, 24, 0.55);
}
.backdrop[hidden] { display: none; }
body.chat-full { overflow: hidden; }

/* ---------- Side cards ---------- */
.side-card { display: flex; flex-direction: column; gap: 0.7rem; text-align: left; }
.side-card h2 { font-size: 1.05rem; }
.pill {
  flex: none; align-self: flex-start; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--chip-bg); color: var(--chip-text);
}
.match-tile {
  flex: none;
  border-radius: 0.85rem;
  padding: 1rem;
  background: linear-gradient(135deg, #4f46e5, #7e22ce 55%, #be185d);
  color: #ffffff;
  display: flex; flex-direction: column; gap: 0.3rem;
  min-height: 6.5rem; justify-content: flex-end;
}
.tile-kind { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #f3e8ff; }
.tile-title { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.2; overflow-wrap: anywhere; }
.fit-row { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.fit-label { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.fit-value { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--accent-text); }
.top-why { flex: 0 1 auto; min-height: 0; max-height: 9rem; font-size: 0.9rem; color: var(--text); }

.short-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.gauge { position: relative; width: 3.25rem; height: 3.25rem; flex: none; }
.gauge-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: var(--chip-bg); stroke-width: 5; }
.gauge-fill { opacity: 0; fill: none; stroke: var(--purple-soft); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0 113.1; }
html[data-theme="light"] .gauge-fill { stroke: var(--purple); }
.gauge-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; }
.rank-note { flex: none; font-size: 0.84rem; color: var(--muted); }
.short-list { flex: 0 1 auto; min-height: 0; list-style: none; margin: 0; padding: 0 0.15rem 0 0; display: flex; flex-direction: column; gap: 0.4rem; }
.short-list li { flex: none; }
.short-empty { font-size: 0.88rem; color: var(--muted); }
.short-item {
  width: 100%; display: flex; align-items: center; gap: 0.6rem; text-align: left;
  padding: 0.55rem 0.65rem; border-radius: 0.7rem; border: 1px solid var(--panel-border);
  background: transparent; color: var(--text);
}
.short-item[aria-pressed="true"] { border-color: var(--purple-soft); background: var(--chip-bg); }
.short-rank { flex: none; font-size: 0.75rem; font-weight: 700; color: var(--muted); width: 1.2rem; }
.short-name { flex: 1 1 auto; min-width: 0; font-size: 0.9rem; font-weight: 600; overflow-wrap: anywhere; }
.short-score { flex: none; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--accent-text); }

.detail-card { overflow: hidden; }
.detail-fields { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 0.6rem; padding-right: 0.15rem; }
.detail-empty { font-size: 0.88rem; color: var(--muted); flex: none; }
.detail-dl { margin: 0; display: flex; flex-direction: column; gap: 0.45rem; flex: none; }
.detail-dl:empty { display: none; }
.detail-row { flex: none; padding: 0.45rem 0.6rem; border-radius: 0.6rem; background: var(--chip-bg); min-width: 0; }
.detail-row dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.detail-row dd { margin: 0.1rem 0 0; font-size: 0.9rem; overflow-wrap: anywhere; }
.guide-link { flex: none; font-weight: 600; font-size: 0.88rem; }
.guide-link[hidden] { display: none; }
.next-step { flex: none; border-top: 1px solid var(--panel-border); padding-top: 0.6rem; }
.next-step h3 { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.next-step p { margin-top: 0.25rem; font-size: 0.9rem; font-weight: 600; }

/* ---------- Footer ---------- */
.foot {
  width: var(--board-w); margin: 0 auto; padding: 0.5rem 0 calc(1.5rem + env(safe-area-inset-bottom));
  text-align: center; color: var(--muted); font-size: 0.8rem;
}
@media (min-width: 700px) {
  .hero { text-align: center; }
}
@media (max-width: 1099.98px) {
  .short-list { max-height: 16rem; }
  .detail-fields { max-height: 22rem; }
}
