/* Frame Helper engine: dark glass board, indigo/purple/pink accents. Mobile-first. */

:root {
  --bg: #f4f4fd;
  --text: #1e1b4b;
  --muted: #4a4d70;
  --line: rgba(30, 27, 75, 0.14);
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.78);
  --card-2: #eef0fb;
  --nav-bg: #ffffff;
  --nav-glass: rgba(255, 255, 255, 0.78);
  --accent: #4f46e5;
  --accent-text: #4338ca;
  --accent-2: #7e22ce;
  --accent-3: #be185d;
  --chip-bg: rgba(99, 102, 241, 0.12);
  --bubble-user: #4f46e5;
  --bubble-user-text: #ffffff;
  --bubble-bot: #ffffff;
  --input-bg: #ffffff;
  --coral: #c2413a;
  --coral-bg: #fdeceb;
  --tile-text: #ffffff;
  --tile-bg: #5b4be0;
  --tile-grad: linear-gradient(135deg, #4f46e5 0%, #7e22ce 60%, #be185d 100%);
  --strip: linear-gradient(90deg, #6366f1, #a855f7, #f472b6);
  --glow-1: rgba(99, 102, 241, 0.32);
  --glow-2: rgba(168, 85, 247, 0.26);
  --glow-3: rgba(244, 114, 182, 0.22);
  --shadow: 0 0.0625rem 0.125rem rgba(30, 27, 75, 0.06), 0 0.75rem 2rem rgba(30, 27, 75, 0.1);
  --scroll-thumb: rgba(79, 70, 229, 0.45);
  --focus: #4f46e5;
  --head: "Space Grotesk", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a0a18;
  --text: #eef0ff;
  --muted: #b6b9dc;
  --line: rgba(255, 255, 255, 0.1);
  --card: #15152b;
  --card-glass: rgba(21, 21, 43, 0.66);
  --card-2: rgba(255, 255, 255, 0.05);
  --nav-bg: #0d0d1f;
  --nav-glass: rgba(13, 13, 31, 0.7);
  --accent: #818cf8;
  --accent-text: #a5b4fc;
  --accent-2: #c084fc;
  --accent-3: #f472b6;
  --chip-bg: rgba(129, 140, 248, 0.16);
  --bubble-user: #4f46e5;
  --bubble-user-text: #ffffff;
  --bubble-bot: rgba(255, 255, 255, 0.06);
  --input-bg: rgba(255, 255, 255, 0.06);
  --coral: #ff8f85;
  --coral-bg: rgba(255, 143, 133, 0.12);
  --tile-text: #ffffff;
  --tile-bg: #4f46e5;
  --tile-grad: linear-gradient(135deg, #4f46e5 0%, #7e22ce 60%, #be185d 100%);
  --glow-1: rgba(99, 102, 241, 0.42);
  --glow-2: rgba(168, 85, 247, 0.34);
  --glow-3: rgba(244, 114, 182, 0.26);
  --shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.4), 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
  --scroll-thumb: rgba(165, 180, 252, 0.45);
  --focus: #a5b4fc;
  color-scheme: dark;
}

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

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

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

.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40rem 28rem at 12% 8%, var(--glow-1), transparent 70%),
    radial-gradient(36rem 26rem at 88% 18%, var(--glow-2), transparent 70%),
    radial-gradient(42rem 30rem at 50% 105%, var(--glow-3), transparent 70%);
}

a { color: var(--accent-text); text-underline-offset: 0.18em; }
:focus-visible { outline: 0.1875rem solid var(--focus); outline-offset: 0.1875rem; border-radius: 0.375rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -10rem; z-index: 100;
  padding: 0.5rem 1rem; border-radius: 0.5rem;
  background: var(--accent); color: #ffffff;
}
.skip-link:focus { top: calc(0.5rem + env(safe-area-inset-top)); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--nav-bg);
  border-bottom: 0.0625rem solid var(--line);
  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);
    -webkit-backdrop-filter: saturate(1.5) blur(0.875rem);
    backdrop-filter: saturate(1.5) blur(0.875rem);
  }
}
.nav-row {
  width: min(100% - 3rem, clamp(56.25rem, 66vw, 83.75rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.55rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; min-width: 0; }
.brand-mark {
  display: inline-grid; place-items: center; flex: none;
  width: 2.25rem; height: 2.25rem; border-radius: 0.7rem; color: #ffffff;
  background: #6366f1;
  background: linear-gradient(135deg, #6366f1, #a855f7 60%, #f472b6);
}
.brand-mark svg { width: 1.3rem; height: 1.3rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.brand-text strong { font-family: var(--head); font-size: 1.05rem; font-weight: 700; }
.brand-text span { font-size: 0.78rem; color: var(--muted); }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.92rem; padding: 0.4rem 0.75rem; border-radius: 999rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--chip-bg); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-tools { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.size-picker {
  display: inline-flex; align-items: flex-end; gap: 0.125rem; padding: 0.2rem;
  border: 0.0625rem solid var(--line); border-radius: 999rem; background: var(--card-2);
}
.size-btn {
  font: inherit; font-weight: 700; color: var(--text); background: transparent; border: 0;
  border-radius: 999rem; width: 2.1rem; height: 2.1rem; line-height: 1; cursor: pointer; padding: 0;
}
.size-btn.s1 { font-size: 0.8rem; }
.size-btn.s2 { font-size: 0.95rem; }
.size-btn.s3 { font-size: 1.1rem; }
.size-btn.s4 { font-size: 1.25rem; }
.size-btn:hover { background: var(--chip-bg); }
.size-btn[aria-pressed="true"] { background: #4f46e5; color: #ffffff; }
.theme-btn {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0;
  border-radius: 999rem; border: 0.0625rem solid var(--line); background: var(--card-2);
  color: var(--text); cursor: pointer;
}
.theme-btn:hover { background: var(--chip-bg); }
.theme-btn svg { width: 1.15rem; height: 1.15rem; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

/* ---------- Hero (compact) ---------- */
.hero {
  width: min(100% - 3rem, clamp(56.25rem, 66vw, 83.75rem));
  margin: 0 auto;
  padding: 0.85rem 0 0.8rem;
}
.chip {
  display: inline-block; margin: 0 0 0.5rem; padding: 0.25rem 0.75rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  border-radius: 999rem; background: var(--chip-bg); color: var(--text);
  border: 0.0625rem solid var(--line);
}
.hero h1 {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
}
.grad {
  color: var(--accent-2);
  background: linear-gradient(90deg, #818cf8, #c084fc 50%, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
:root:not([data-theme="dark"]) .grad { background: linear-gradient(90deg, #4f46e5, #7e22ce 55%, #be185d); -webkit-background-clip: text; background-clip: text; }
.subline { margin: 0 0 0.6rem; font-weight: 600; font-size: 1rem; color: var(--text); }
.hero-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.chip-link {
  display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.3rem 0.9rem;
  border-radius: 999rem; font-size: 0.88rem; font-weight: 600; text-decoration: none;
  color: var(--text); background: var(--card-glass); border: 0.0625rem solid var(--line);
}
.chip-link:hover { border-color: var(--accent); }

/* ---------- Board ---------- */
.board {
  --chat-h: clamp(22rem, 100svh - 9rem, 36rem);
  width: min(100% - 3rem, clamp(56.25rem, 66vw, 83.75rem));
  margin: 0 auto;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  text-align: left;
}
.card {
  position: relative;
  min-width: 0;
  background: var(--card);
  border: 0.0625rem solid var(--line);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
  padding: 0.9rem;
  overflow: hidden;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .card {
    background: var(--card-glass);
    -webkit-backdrop-filter: blur(1rem) saturate(1.3);
    backdrop-filter: blur(1rem) saturate(1.3);
  }
}
.card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 0.1875rem;
  background: #a855f7;
  background: var(--strip);
}
.card h2 { font-family: var(--head); font-weight: 700; font-size: 1.15rem; margin: 0; line-height: 1.25; }

.chat-slot { min-width: 0; grid-column: 1; grid-row: 1; }
.top-card { grid-column: 1; grid-row: 2; }
.shortlist-card { grid-column: 1; grid-row: 3; }
.details-card { grid-column: 1; grid-row: 4; }

@media (min-width: 700px) {
  body { text-align: left; }
  .hero { text-align: left; }
  .hero-links { justify-content: flex-start; }
  .nav-row { justify-content: space-between; }
  .nav-links { margin-left: auto; }
  .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; }
  .shortlist-card { grid-column: 2; grid-row: 2; }
  .details-card { grid-column: 3; grid-row: 2; }
}
@media (min-width: 1100px) {
  .board { grid-template-columns: 1.36fr 1.06fr 0.98fr 0.98fr; }
  .chat-slot { grid-column: 1; grid-row: 1; }
  .top-card { grid-column: 2; grid-row: 1; }
  .shortlist-card { grid-column: 3; grid-row: 1; }
  .details-card { grid-column: 4; grid-row: 1; }
  .side { max-height: var(--chat-h); display: flex; flex-direction: column; }
}

/* ---------- Thin scrollbars for every inner scroll box ---------- */
.log, .top-why, .shortlist, .details-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
  -webkit-overflow-scrolling: touch;
}
.log::-webkit-scrollbar, .top-why::-webkit-scrollbar, .shortlist::-webkit-scrollbar, .details-scroll::-webkit-scrollbar { width: 0.375rem; }
.log::-webkit-scrollbar-thumb, .top-why::-webkit-scrollbar-thumb, .shortlist::-webkit-scrollbar-thumb, .details-scroll::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 999rem; }

/* ---------- Chat card ---------- */
.chat-card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: var(--chat-h);
}
.chat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem 0.5rem; flex: none; }
.chat-head h2 { font-size: 1.08rem; min-width: 0; }
.chat-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 0.5rem; flex: none; }
.chat-sub { margin: 0; font-size: 0.84rem; color: var(--muted); min-width: 0; }
.chat-actions { display: flex; align-items: center; gap: 0.3rem; flex: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; padding: 0;
  border-radius: 999rem; border: 0.0625rem solid var(--line); background: var(--card-2);
  color: var(--text); cursor: pointer;
}
.icon-btn:hover:not(:disabled) { border-color: var(--accent); }
.icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.icon-btn svg { width: 1.1rem; height: 1.1rem; }
.pill-btn {
  font: inherit; font-size: 0.8rem; font-weight: 600; white-space: nowrap;
  min-height: 2.1rem; padding: 0.25rem 0.7rem; border-radius: 999rem;
  border: 0.0625rem solid var(--line); background: var(--card-2); color: var(--text); cursor: pointer;
}
.pill-btn:hover { border-color: var(--accent); }
.count-chip {
  flex: none; margin: 0;
  font-size: 0.76rem; font-weight: 600; padding: 0.15rem 0.6rem;
  border-radius: 999rem; background: var(--chip-bg); color: var(--text);
}
.log {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.25rem 0.35rem 0.25rem 0;
}
.log > * { flex: none; }
.intro { color: var(--text); font-size: 0.95rem; background: var(--card-2); border: 0.0625rem solid var(--line); border-radius: 0.9rem; padding: 0.7rem 0.85rem; }
.intro p { margin: 0 0 0.5rem; }
.intro p:last-child { margin-bottom: 0; }

.msg { max-width: 92%; border-radius: 0.95rem; padding: 0.6rem 0.85rem; font-size: 0.95rem; }
.msg p { margin: 0 0 0.55rem; }
.msg p:last-child, .msg ul:last-child, .msg ol:last-child { margin-bottom: 0; }
.msg ul, .msg ol { margin: 0 0 0.55rem; padding-left: 1.2rem; }
.msg li { margin-bottom: 0.25rem; }
.msg a { 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: 0.0625rem solid var(--line); border-bottom-left-radius: 0.3rem; }
.msg.bot .next-line { margin-top: 0.4rem; padding: 0.5rem 0.65rem; border-radius: 0.6rem; background: var(--chip-bg); font-weight: 600; }
.msg.error { align-self: flex-start; background: var(--coral-bg); color: var(--text); border: 0.0625rem solid var(--coral); }

.thinking { display: flex; flex-direction: column; gap: 0.35rem; }
.dots { display: inline-flex; gap: 0.3rem; align-items: center; height: 1.2rem; }
.dots span { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent-2); animation: pulse 1.2s ease-in-out infinite; }
.dots span:nth-child(2) { animation-delay: 0.2s; background: var(--accent); }
.dots span:nth-child(3) { animation-delay: 0.4s; background: var(--accent-3); }
@keyframes pulse { 0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1.1); } }
.wait-note { margin: 0; font-size: 0.86rem; color: var(--muted); }

.composer {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.45rem;
  align-items: end;
}
.composer textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--input-bg);
  border: 0.0625rem solid var(--line);
  border-radius: 1.2rem;
  padding: 0.6rem 0.9rem;
  min-height: 2.75rem;
  max-height: 8rem;
  width: 100%;
  min-width: 0;
  resize: none;
  line-height: 1.4;
  overflow-y: hidden;
}
.composer textarea::placeholder { color: var(--muted); opacity: 1; }
.composer textarea:focus { border-color: var(--accent); }
.composer-buttons { display: flex; gap: 0.45rem; justify-content: flex-end; align-items: center; }
.mic-btn {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; flex: none;
  border-radius: 50%; border: 0.0625rem solid var(--line); background: var(--card-2); color: var(--text); cursor: pointer;
}
.mic-btn[hidden] { display: none; }
.mic-btn:hover { border-color: var(--accent); }
.mic-btn[aria-pressed="true"] { background: #be185d; border-color: #be185d; color: #ffffff; box-shadow: 0 0 0 0.25rem rgba(244, 114, 182, 0.3); }
.mic-btn svg { width: 1.15rem; height: 1.15rem; }
.send-btn {
  font: inherit; font-weight: 700; font-size: 0.95rem;
  min-height: 2.75rem; padding: 0 1.2rem; border-radius: 999rem; border: 0; flex: none;
  color: #ffffff; background: #4f46e5;
  background: linear-gradient(135deg, #4f46e5, #7e22ce);
  cursor: pointer;
}
.send-btn:disabled { opacity: 0.6; cursor: progress; }
@container (min-width: 18.5rem) {
  .composer { grid-template-columns: minmax(0, 1fr) auto; }
}
.mic-status { margin: 0; font-size: 0.84rem; color: var(--muted); flex: none; }
.error-line { margin: 0; font-size: 0.86rem; color: var(--coral); flex: none; font-weight: 600; }
.mic-status[hidden], .error-line[hidden] { display: none; }
.chat-note { margin: 0; font-size: 0.72rem; line-height: 1.4; color: var(--muted); flex: none; }

/* Full page: the card becomes a fixed overlay; its slot keeps its size so nothing reflows. */
.chat-card.is-full {
  position: fixed;
  z-index: 90;
  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;
  background: var(--card);
}
body.chat-full { overflow: hidden; }
body.chat-full::after {
  content: ""; position: fixed; inset: 0; z-index: 80;
  background: rgba(10, 10, 24, 0.55);
}

/* ---------- Side cards ---------- */
.side { display: flex; flex-direction: column; gap: 0.7rem; }
.side > * { flex: none; }
.pill-label {
  align-self: flex-start; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.65rem; border-radius: 999rem; background: var(--chip-bg); color: var(--text);
}
.match-tile {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.9rem; border-radius: 0.9rem; color: var(--tile-text);
  background: var(--tile-bg);
  background: var(--tile-grad);
}
.tile-kind { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ffffff; }
.tile-title { font-family: var(--head); font-weight: 700; font-size: 1.15rem; line-height: 1.25; color: #ffffff; overflow-wrap: anywhere; }
.score-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.score-label { font-size: 0.86rem; color: var(--muted); font-weight: 600; }
.score-value { font-family: var(--head); font-size: 1.6rem; font-weight: 700; color: var(--text); }
.top-why { margin: 0; font-size: 0.92rem; color: var(--text); max-height: 12rem; }
@media (min-width: 1100px) {
  .top-why { flex: 0 1 auto; min-height: 2.5rem; max-height: none; }
}

.shortlist-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.rank-note { margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--muted); }
.gauge { position: relative; width: 3.4rem; height: 3.4rem; flex: none; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: var(--line); stroke-width: 5; }
.gauge-fill { fill: none; stroke: url(#gauge-grad); stroke-width: 5; stroke-linecap: round; transition: stroke-dasharray 0.5s ease; }
.gauge-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 0.95rem; color: var(--text); }
.shortlist { list-style: none; margin: 0; padding: 0 0.25rem 0 0; display: flex; flex-direction: column; gap: 0.4rem; max-height: 16rem; }
.shortlist > li { flex: none; }
@media (min-width: 1100px) { .shortlist { flex: 0 1 auto; min-height: 3rem; max-height: none; } }
.empty-note { color: var(--muted); font-size: 0.9rem; }
.pick {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  font: inherit; font-size: 0.9rem; text-align: left; color: var(--text);
  background: var(--card-2); border: 0.0625rem solid var(--line); border-radius: 0.7rem;
  padding: 0.5rem 0.65rem; cursor: pointer;
}
.pick:hover { border-color: var(--accent); }
.pick[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 0.0625rem var(--accent); }
.pick-title { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.pick-rank { color: var(--muted); font-weight: 600; margin-right: 0.15rem; }
.pick-score { flex: none; font-family: var(--head); font-weight: 700; font-size: 0.85rem; padding: 0.1rem 0.5rem; border-radius: 999rem; background: var(--chip-bg); color: var(--text); }

.details-card h2 { flex: none; }
.details-scroll { max-height: 18rem; padding-right: 0.25rem; }
@media (min-width: 1100px) { .details-scroll { flex: 0 1 auto; min-height: 3rem; max-height: none; } }
.details-name { margin: 0 0 0.5rem; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.details-list { margin: 0 0 0.6rem; display: grid; gap: 0.4rem; }
.details-list div { min-width: 0; padding: 0.4rem 0.55rem; border-radius: 0.6rem; background: var(--card-2); border: 0.0625rem solid var(--line); }
.details-list dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.details-list dd { margin: 0.1rem 0 0; font-size: 0.9rem; overflow-wrap: anywhere; }
.guide-link { display: inline-block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.guide-link[hidden] { display: none; }
.next-step { flex: none; border-top: 0.0625rem solid var(--line); padding-top: 0.6rem; }
.next-step h3 { margin: 0 0 0.25rem; font-family: var(--head); font-size: 0.95rem; }
.next-step p { margin: 0; font-size: 0.9rem; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .dots span { animation: none; opacity: 1; transform: none; }
  .gauge-fill { transition: none; }
}
