/* Fonts are self-hosted (Inter, Space Grotesk – SIL OFL, licences in /assets/fonts). No Google Fonts. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/inter-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/inter-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/inter-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/inter-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/space-grotesk-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/space-grotesk-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/space-grotesk-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/space-grotesk-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #0b0b0c;
  --panel: #131315;
  --panel-2: #1a1a1d;
  --line: #26262b;
  --line-2: #33333a;
  --ink: #f4f4f5;
  --muted: #9b9ba4;
  --faint: #6b6b74;
  --accent: #d4ff3f;
  --accent-ink: #0b0b0c;
  --accent-soft: rgba(212, 255, 63, .1);
  --ai: #9d8cff;
  --ai-soft: rgba(157, 140, 255, .12);
  --danger: #ff6b6b;
  --radius: 18px;
  --radius-sm: 12px;
  --side: 248px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- Buttons & inputs ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .1s;
}
.btn:hover { border-color: var(--faint); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ai { background: var(--ai-soft); border-color: rgba(157, 140, 255, .35); color: #d6ceff; }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); }
.btn.big { padding: 14px 24px; font-size: 16px; }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  flex: none;
}
.icon-btn:hover { color: var(--ink); background: var(--panel-2); }
.icon-btn svg { width: 17px; height: 17px; }

input[type="text"], input[type="password"], input[type="date"], input[type="email"], input[type="tel"], input[type="number"], input:not([type]), textarea, select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 16px;
  transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { resize: none; min-height: 52px; line-height: 1.5; overflow: hidden; }
label.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
::placeholder { color: var(--faint); }

/* ---------- Logo ---------- */

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.02em;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.logo b { color: var(--accent); font-weight: 700; }

/* ---------- Auth ---------- */

.auth { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; overflow: hidden; }
.auth-bg { position: absolute; inset: -40px 0; display: grid; gap: 14px; align-content: center; transform: rotate(-6deg) scale(1.15); opacity: .8; }
.marquee { display: flex; gap: 14px; width: max-content; animation: slide 70s linear infinite; }
.marquee.rev { animation-direction: reverse; animation-duration: 85s; }
.marquee.slow { animation-duration: 100s; }
.marquee img { width: 260px; height: 190px; object-fit: cover; border-radius: 18px; filter: saturate(.9); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.auth-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(11, 11, 12, .7) 0%, rgba(11, 11, 12, .45) 55%, rgba(11, 11, 12, .85) 100%); }
.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(19, 19, 21, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: 32px 28px;
  display: grid;
  gap: 16px;
}
.auth-card h1 { font-family: var(--display); font-size: 34px; line-height: 1.05; letter-spacing: -.03em; margin-top: 8px; }
.err { color: var(--danger); font-size: 14px; min-height: 1em; }

/* ---------- Shell ---------- */

.shell { min-height: 100vh; }
.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  border-right: 1px solid var(--line);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--bg);
  z-index: 20;
}
.side .logo { padding: 0 10px; }
.nav { display: grid; gap: 2px; overflow-y: auto; }
.nav-sep { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); padding: 18px 12px 6px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a:hover { color: var(--ink); background: var(--panel); }
.nav a.on { color: var(--ink); background: var(--panel-2); }
.nav a.on svg { color: var(--accent); }
.nav .count { margin-left: auto; font-size: 12px; color: var(--muted); background: var(--panel-2); border-radius: 999px; padding: 1px 8px; }
.nav a.on .count { background: var(--accent); color: var(--accent-ink); }
.side-foot { margin-top: auto; padding: 0 10px; font-size: 13px; color: var(--faint); }

.main { margin-left: var(--side); min-width: 0; }
.top {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 28px;
  background: rgba(11, 11, 12, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .logo { display: none; }
.status { margin-left: auto; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status.saved .dot { background: var(--accent); }
.status.think { color: #d6ceff; }
.status.think .dot { background: var(--ai); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }

/* Wins ticker */
.ticker { position: relative; flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 8px; width: max-content; animation: slide 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink);
}
.chip.win { border-color: rgba(212, 255, 63, .35); background: var(--accent-soft); }
.chip.win svg { color: var(--accent); width: 13px; height: 13px; }
.chip.str { color: var(--muted); }
.ticker-empty { font-size: 13px; color: var(--muted); }
.ticker-empty a { color: var(--accent); }

.view { padding: 32px 28px 120px; max-width: 1180px; margin: 0 auto; animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Typography blocks ---------- */

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.eyebrow.ai { color: var(--ai); }
.h1 { font-family: var(--display); font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
.h2 { font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
.h3 { font-family: var(--display); font-size: 19px; line-height: 1.2; letter-spacing: -.01em; font-weight: 600; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); margin-top: 12px; max-width: 60ch; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.section { margin-top: 40px; }
.section > .h2 { margin-bottom: 16px; }

/* ---------- Cards & grids ---------- */

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card.ai { background: linear-gradient(160deg, rgba(157, 140, 255, .14), rgba(157, 140, 255, .03) 60%), var(--panel); border-color: rgba(157, 140, 255, .28); }
.card.accent { background: linear-gradient(160deg, rgba(212, 255, 63, .12), rgba(212, 255, 63, .02) 60%), var(--panel); border-color: rgba(212, 255, 63, .3); }
.card-link { text-decoration: none; display: block; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--line-2); transform: translateY(-2px); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: grid; gap: 12px; }
.small { font-size: 13px; }
.ai-text { font-size: 17px; line-height: 1.55; }
.ai-text p + p { margin-top: 10px; }

/* ---------- Home hero ---------- */

.hero { position: relative; border-radius: 28px; overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; border: 1px solid var(--line); }
.bento { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, 1fr); gap: 6px; }
.bento img { width: 100%; height: 100%; object-fit: cover; }
.bento img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento img:nth-child(4) { grid-row: span 2; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 12, .05) 0%, rgba(11, 11, 12, .55) 45%, rgba(11, 11, 12, .95) 100%); }
.hero-text { position: relative; z-index: 1; padding: 32px; }
.hero-text .h1 { font-size: clamp(40px, 7vw, 84px); }
.hero-text .lead { color: #d4d4d8; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
@media (max-width: 1180px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { position: relative; padding: 18px; }
.step .n { font-family: var(--display); font-size: 13px; color: var(--muted); }
.step .t { font-weight: 600; margin-top: 4px; }
.step .bar { height: 4px; border-radius: 4px; background: var(--line-2); margin-top: 14px; overflow: hidden; }
.step .bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.step.done .n { color: var(--accent); }

.bignum { font-family: var(--display); font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--accent); }

/* ---------- Wins ---------- */

.wins-hero { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; }
.wins-stats { display: flex; gap: 28px; }
.wins-stats .label { font-size: 13px; color: var(--muted); margin-top: 6px; }
.wins-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.win-card { position: relative; padding: 20px 20px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-height: 120px; }
.win-card .t { font-family: var(--display); font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.win-card .meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.win-card .star { color: var(--accent); width: 22px; height: 22px; }
.src { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.src.claude { color: var(--ai); }
.item-actions { display: flex; gap: 2px; opacity: .55; transition: opacity .15s; }
.win-card:hover .item-actions, .li:hover .item-actions { opacity: 1; }
.add-form { display: flex; gap: 8px; margin-top: 14px; }
.add-form input { flex: 1; }

/* Generic lists */
.list { display: grid; gap: 6px; list-style: none; }
.li { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 14px; }
.li .t { flex: 1; min-width: 0; }
.li .src { flex: none; }
.li input[type="text"] { padding: 6px 10px; }
.li.done .t { text-decoration: line-through; color: var(--muted); }
.check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; background: none; flex: none; }
.check.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.check svg { width: 14px; height: 14px; }

/* ---------- Talk ---------- */

.rounds { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.rounds::-webkit-scrollbar { display: none; }
.round-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-weight: 500; font-size: 14px; white-space: nowrap; }
.round-tab .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; }
.round-tab.on { color: var(--ink); border-color: var(--line-2); background: var(--panel-2); }
.round-tab.on .n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.round-tab.done .n { border-color: var(--accent); color: var(--accent); }
.round-tab:disabled { opacity: .4; cursor: default; }
.stage { margin-top: 28px; min-height: 52vh; display: flex; flex-direction: column; }
.q-label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.q { font-family: var(--display); font-size: clamp(28px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; margin-top: 14px; max-width: 22ch; }
.q-sub { font-size: clamp(17px, 2vw, 22px); color: var(--muted); margin-top: 12px; max-width: 46ch; }
.answer { margin-top: 26px; min-height: 140px; font-size: clamp(17px, 1.8vw, 20px); padding: 16px 18px; border-radius: 16px; }
.talk-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; }
.dots { display: flex; gap: 7px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.dots i.filled { background: var(--faint); }
.dots i.on { background: var(--accent); transform: scale(1.25); }
.intro-lines { list-style: none; display: grid; gap: 8px; margin: 22px 0 28px; }
.intro-lines li { font-family: var(--display); font-size: clamp(20px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.bubble { display: flex; gap: 14px; margin: 22px 0 28px; max-width: 70ch; }
.avatar { width: 36px; height: 36px; border-radius: 12px; background: var(--ai-soft); border: 1px solid rgba(157, 140, 255, .3); display: grid; place-items: center; color: var(--ai); flex: none; }
.avatar svg { width: 18px; height: 18px; }
.summary { list-style: none; display: grid; gap: 10px; margin: 20px 0; }
.summary li { padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.summary .sq { font-weight: 600; }
.summary .sa { color: var(--muted); margin-top: 4px; white-space: pre-wrap; }

/* ---------- Paths ---------- */

.path { padding: 0; overflow: hidden; }
.path-head { padding: 22px 22px 0; display: grid; gap: 10px; }
.path-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--muted); }
.pill svg { width: 13px; height: 13px; }
.pill.fit { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pill.safe { color: #9ff0c9; border-color: rgba(120, 230, 180, .3); background: rgba(120, 230, 180, .08); }
.pill.mid { color: #ffd88a; border-color: rgba(255, 216, 138, .3); background: rgba(255, 216, 138, .08); }
.pill.low { color: var(--danger); border-color: rgba(255, 107, 107, .3); background: rgba(255, 107, 107, .08); }
.path-actions { margin-left: auto; display: flex; gap: 4px; }
.path-actions .on-fav { color: var(--accent); }
.path-actions .on-no { color: var(--danger); }
.path .short { color: var(--muted); font-size: 14px; }
.path-body { padding: 18px 22px 22px; display: grid; gap: 16px; }
.path { container-type: inline-size; }
.ladder { list-style: none; display: grid; grid-template-columns: 1fr; padding-left: 4px; }
.ladder li { position: relative; padding: 0 0 18px 26px; }
.ladder li::before { content: ""; position: absolute; top: 12px; bottom: 0; left: 5px; width: 2px; background: var(--line-2); }
.ladder li::after { content: ""; position: absolute; top: 2px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--faint); }
.ladder li:first-child::after { border-color: var(--accent); background: var(--accent); }
.ladder li.goal::before { display: none; }
.ladder li.goal::after { border-color: var(--accent); background: var(--bg); box-shadow: 0 0 0 4px var(--accent-soft); }
@container (min-width: 820px) {
  .ladder { grid-template-columns: repeat(5, 1fr); padding-left: 0; }
  .ladder li { padding: 18px 14px 0 0; }
  .ladder li::before { top: 5px; bottom: auto; left: 0; right: 0; width: auto; height: 2px; }
  .ladder li::after { top: 0; }
}
.ladder .when { font-size: 12px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ladder .lt { font-weight: 600; margin-top: 4px; line-height: 1.3; }
.ladder .money { font-size: 13px; color: var(--accent); margin-top: 4px; }
.ladder .what { font-size: 13px; color: var(--muted); margin-top: 6px; }
.first-step { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(212, 255, 63, .25); }
.first-step svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--faint); }
.path.no { opacity: .5; }

/* ---------- Jobs ---------- */

.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 18px; }
.filters::-webkit-scrollbar { display: none; }
.filter { border: 1px solid var(--line); background: var(--panel); color: var(--muted); padding: 7px 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.filter.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.job { display: grid; gap: 10px; }
.job .co { color: var(--muted); font-size: 14px; }
.job .pay { color: var(--accent); font-weight: 600; font-size: 14px; }

/* ---------- Story ---------- */

.progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width .3s; }
.story-sec { display: grid; gap: 18px; }
.story-q { display: grid; gap: 8px; }
.story-q .ql { font-weight: 600; }
.story-q .qh { font-size: 13px; color: var(--faint); margin-top: -4px; }
.opts { display: flex; gap: 6px; flex-wrap: wrap; }
.opt { border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.opt.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; max-width: 520px; }
.scale .opt { padding: 10px 0; text-align: center; border-radius: 10px; }

.moodbar { position: relative; height: 12px; border-radius: 12px; background: linear-gradient(90deg, rgba(255, 107, 107, .25), rgba(255, 216, 138, .25) 50%, rgba(212, 255, 63, .25)); }
.moodbar i { position: absolute; inset: 0 auto 0 0; border-radius: 12px; background: linear-gradient(90deg, #ff6b6b, #ffd88a 55%, var(--accent)); background-size: 100vw 100%; }
.moodbar b { position: absolute; top: -4px; width: 3px; height: 20px; border-radius: 2px; background: var(--ink); transform: translateX(-50%); }
.spark { width: 100%; height: 44px; color: var(--accent); }
.mood-card .up { color: var(--accent); font-weight: 600; }
.mood-card .down { color: #ffb86b; font-weight: 600; }
.support { border-color: rgba(255, 107, 107, .35); background: linear-gradient(160deg, rgba(255, 107, 107, .12), transparent 70%), var(--panel); }

/* ---------- Toast, modal, sheet ---------- */

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60; width: min(560px, calc(100% - 32px)); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .card { display: flex; gap: 12px; align-items: flex-start; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }

.modal { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.modal-card { width: min(680px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 22px; padding: 26px; display: grid; gap: 18px; }
.video-modal { padding: 12px; }
.video-card { position: relative; height: calc(100dvh - 24px); max-height: 980px; aspect-ratio: 360 / 780; max-width: 100%; background: #000; border: 1px solid var(--line-2); border-radius: 28px; overflow: hidden; display: block; }
.video-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(0, 0, 0, .5); color: #fff; width: 36px; height: 36px; border-radius: 50%; }
@media (max-width: 960px) {
  .video-modal { padding: 0; background: #000; }
  .video-card { width: 100vw; height: 100dvh; max-height: none; aspect-ratio: auto; border: 0; border-radius: 0; }
  .video-close { top: max(10px, env(safe-area-inset-top)); }
}
.video-btn svg { width: 14px; height: 14px; }
.copybox { white-space: pre-wrap; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: 15px; }

.tabbar, .sheet { display: none; }

/* Wizard (full screen, no chrome) */
body.wz .side, body.wz .top, body.wz .tabbar { display: none !important; }
body.wz .main { margin-left: 0; }
body.wz .view { max-width: 820px; padding-top: 0; padding-bottom: 150px; }
.wz-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 16px 0 12px; padding-top: max(16px, env(safe-area-inset-top)); background: rgba(11, 11, 12, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.wz-chapter { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-body { padding: 40px 0 24px; min-height: 52vh; }
.wz-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; padding: 18px 16px max(16px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, var(--bg) 35%); }
.wz-nav-inner { width: min(820px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wz-path.no { opacity: .45; }
.wz-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 18px; }

/* Chat */
.chat { display: flex; flex-direction: column; min-height: calc(100vh - 150px); }
.msgs { flex: 1; display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; }
.msg { max-width: min(80%, 640px); padding: 12px 16px; border-radius: 20px; line-height: 1.5; }
.msg p + p { margin-top: 8px; }
.msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.msg.assistant { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.typing { display: flex; gap: 5px; padding: 16px 18px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; }
.msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.composer { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: flex-end; padding: 14px 0 18px; background: linear-gradient(180deg, transparent, var(--bg) 30%); }
.composer .answer-wrap { flex: 1; }
.composer textarea { min-height: 52px; max-height: 40vh; overflow: auto; border-radius: 22px; padding: 14px 58px 14px 18px; }
.composer .mic { bottom: 6px; right: 6px; }
.composer > .btn { width: 52px; height: 52px; padding: 0; border-radius: 50%; }

/* Voice */
.voice-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.answer-wrap { position: relative; }
.answer-wrap textarea { padding-right: 58px; }
.answer-wrap .answer { margin-top: 26px; }
.answer.follow { margin-top: 0; min-height: 90px; }
.mic { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); display: grid; place-items: center; }
.mic:hover { color: var(--ink); border-color: var(--faint); }
.mic svg { width: 19px; height: 19px; }
.mic.rec { background: var(--danger); border-color: var(--danger); color: #fff; animation: ring 1.4s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, .5); } 100% { box-shadow: 0 0 0 14px rgba(255, 107, 107, 0); } }

/* Week */
.daybar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; gap: 2px; }
.daybar i { display: block; min-width: 2px; }
.daybar i.free { background: repeating-linear-gradient(135deg, rgba(212, 255, 63, .25) 0 6px, rgba(212, 255, 63, .08) 6px 12px); }
.budget { display: grid; gap: 10px; }
.budget-row { display: grid; grid-template-columns: 12px minmax(130px, 200px) 1fr minmax(150px, auto); align-items: center; gap: 12px; font-size: 15px; }
.budget-row .sw { width: 12px; height: 12px; border-radius: 4px; }
.budget-row input[type="range"] { width: 100%; accent-color: var(--accent); }
.tips { padding-left: 18px; display: grid; gap: 6px; color: var(--ink); }
.tips li::marker { color: var(--accent); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.weekgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 6px; align-content: start; }
.day .h3 { font-size: 15px; margin-bottom: 4px; }
.block { border-left: 3px solid; padding: 4px 0 4px 8px; font-size: 13px; line-height: 1.35; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: currentColor; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--faint); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.photo-credit { font-size: 11px; color: var(--faint); margin-top: 8px; }

/* ---------- Mobile ---------- */

@media (max-width: 960px) {
  .side { display: none; }
  .main { margin-left: 0; }
  .top { flex-wrap: wrap; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); gap: 8px 12px; }
  .top .logo { display: inline-flex; }
  .ticker { order: 3; flex-basis: 100%; }
  .view { padding: 20px 16px 120px; }
  .hero { min-height: 340px; border-radius: 22px; }
  .hero-text { padding: 22px; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento img:nth-child(n+6) { display: none; }
  .bento img:nth-child(4) { grid-row: span 1; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .card { padding: 18px; }
  .path-head { padding: 18px 18px 0; }
  .path-body { padding: 16px 18px 18px; }
  .stage { min-height: 0; }
  .answer { min-height: 160px; }
  .table .hide-sm { display: none; }
  .weekgrid { grid-template-columns: 1fr; }
  .budget-row { grid-template-columns: 12px 1fr; }
  .budget-row input[type="range"] { grid-column: 1 / -1; }
  .budget-row .small { grid-column: 1 / -1; margin-top: -6px; }

  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: rgba(11, 11, 12, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding: 6px 4px max(8px, env(safe-area-inset-bottom));
  }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; font-size: 11px; color: var(--muted); text-decoration: none; font-weight: 500; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on svg { color: var(--accent); }

  .sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .55); }
  .sheet.open { display: flex; align-items: flex-end; }
  .sheet-card { width: 100%; background: var(--panel); border-top: 1px solid var(--line-2); border-radius: 24px 24px 0 0; padding: 10px 12px max(16px, env(safe-area-inset-bottom)); animation: up .25s ease both; }
  .sheet-card .grabber { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 4px auto 10px; }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.wz .view { padding: 0 16px 150px; }
  .wz-body { padding-top: 28px; }
  .composer { bottom: calc(68px + env(safe-area-inset-bottom)); }
  .msg { max-width: 88%; }
}

@media (max-width: 520px) {
  .auth-card { padding: 26px 20px; }
  .marquee img { width: 180px; height: 130px; }
  .wins-stats { gap: 20px; }
  .bignum { font-size: 44px; }
  .page-head .btn { width: 100%; }
  .scale { grid-template-columns: repeat(5, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee, .ticker-track { animation: none; }
  .view, .sheet-card { animation: none; }
}

/* ---------- Growth: journey, goals, jobs, CV, people, detox ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip { white-space: normal; }
.chip svg { width: 13px; height: 13px; flex: none; }
.chip.need { border-style: dashed; color: var(--muted); background: none; }

.ready { display: grid; gap: 6px; }
.ready.safe .progress i { background: #5ee6a8; }
.ready.mid .progress i { background: #ffd88a; }
.ready.low .progress i { background: #ff8a8a; }
.ready.safe .rl { color: #9ff0c9; }
.ready.mid .rl { color: #ffd88a; }
.ready.low .rl { color: #ff8a8a; }
.missing { gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.miss { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; }
.miss .mt { font-weight: 600; }
.miss .tag { display: block; margin: 2px 0 2px; }
.miss .btn { flex: none; }
.tag { font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin-left: 8px; }

.option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; background: var(--panel-2); }
.option.on { border-color: var(--accent); background: var(--accent-soft); }
.option input { margin-top: 5px; accent-color: var(--accent); }
.option a { color: var(--ai); }
.ms-preview { padding-left: 20px; display: grid; gap: 4px; }

.reached { border-color: rgba(212, 255, 63, .35); }
.goal-form { display: grid; grid-template-columns: 150px 1fr 170px; gap: 8px; }
.li .wk { display: block; font-size: 12px; font-weight: 600; color: var(--faint); }
.li .wk.late { color: #ffd88a; }
.li.now { border-color: rgba(212, 255, 63, .45); }
.li.now .wk { color: var(--accent); }

.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stage { position: relative; display: grid; gap: 10px; align-content: start; }
.stage:not(:last-child)::after { content: "→"; position: absolute; right: -8px; top: 22px; transform: translateX(50%); color: var(--accent); font-weight: 700; z-index: 1; }
.stage .sh { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stage .si { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.stage .si svg { width: 17px; height: 17px; }
.gap-h { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; color: var(--accent); }

.lock-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); }
.lock-ic svg { width: 18px; height: 18px; }
.grant-amount { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--accent); }

.cv-paper { background: #fff; color: #1b1b1f; border-radius: 8px; padding: 44px 48px; max-width: 820px; font-size: 14px; line-height: 1.5; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.cv-paper header { border-bottom: 3px solid #1b1b1f; padding-bottom: 16px; margin-bottom: 8px; }
.cv-paper h1 { font-family: var(--display); font-size: 32px; letter-spacing: -.02em; line-height: 1.1; }
.cv-headline { color: #44444c; font-size: 16px; margin-top: 4px; }
.cv-contact { color: #66666e; font-size: 13px; margin-top: 8px; white-space: pre-wrap; }
.cv-paper h2 { font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #4d5c00; margin: 18px 0 8px; }
.cv-cols { display: grid; grid-template-columns: 1fr 210px; gap: 32px; }
.cv-item { margin-bottom: 12px; }
.cv-row { display: flex; justify-content: space-between; gap: 12px; }
.cv-item .ct { font-weight: 600; }
.cv-item .cm { color: #66666e; font-size: 13px; white-space: nowrap; }
.cv-item ul { padding-left: 18px; margin-top: 4px; }
.cv-paper aside ul { list-style: none; display: grid; gap: 4px; }
#cvPrint { display: none; }
@media print {
  @page { margin: 14mm; }
  body.print-cv { background: #fff !important; min-height: 0; }
  body.print-cv > *:not(#cvPrint) { display: none !important; }
  body.print-cv #cvPrint { display: block; }
  #cvPrint .cv-paper { box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
  #cvPrint .cv-cols { grid-template-columns: 1fr 190px; }
}

.safety { font-size: 13px; color: var(--muted); padding: 10px 14px; border-radius: 12px; background: rgba(255, 216, 138, .06); border: 1px solid rgba(255, 216, 138, .25); }
.safety svg { vertical-align: -2px; color: #ffd88a; }
.cx-thread { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; padding: 4px 2px; }
.cx-thread .msg { max-width: 85%; }
.msg-time { font-size: 11px; opacity: .6; margin-top: 4px; }
.cx-send { display: flex; gap: 8px; align-items: flex-end; }
.cx-send textarea { flex: 1; min-height: 46px; }
.cx-conv { display: flex; justify-content: space-between; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.cx-conv:hover { border-color: var(--line-2); }
.badge { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 2px 8px; }
details.report { padding: 10px 0; border-top: 1px solid var(--line); }
details.report summary { cursor: pointer; }

.detox-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin: 8px 0 18px; }
.detox-chart .wk { flex: 1; position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; background: var(--panel-2); border-radius: 6px; }
.detox-chart .act { border-radius: 6px 6px 2px 2px; }
.detox-chart .act.met { background: #5ee6a8; }
.detox-chart .act.miss { background: #ff6b9a; }
.detox-chart .tgt { position: absolute; left: -2px; right: -2px; height: 3px; border-radius: 2px; background: var(--accent); }
.detox-chart .lbl { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--faint); }
.detox-chart .wk.now .lbl { color: var(--accent); font-weight: 700; }
.detox-log { display: flex; gap: 10px; align-items: flex-end; }
.detox-log .field { flex: 1; }

@media (max-width: 960px) {
  .journey { grid-template-columns: 1fr; }
  .stage:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -8px; transform: translate(-50%, 50%); }
  .goal-form { grid-template-columns: 1fr; }
  .sheet-card { max-height: 85vh; overflow-y: auto; }
  .sheet-card .nav { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .cv-paper { padding: 26px 20px; }
  .cv-cols { grid-template-columns: 1fr; gap: 0; }
  .miss { flex-direction: column; align-items: stretch; }
  .detox-log { flex-direction: column; align-items: stretch; }
}

/* Menu items with nothing to show yet */
.nav a.locked { color: var(--faint); }
.nav a.locked svg { opacity: .55; }
.nav a.locked .lock { margin-left: auto; display: grid; }
.nav a.locked .lock svg { width: 14px; height: 14px; }
.nav a small { display: block; font-size: 11px; line-height: 1.3; color: var(--faint); font-weight: 400; margin-top: 2px; }
.tabbar a.locked { opacity: .45; }
.nav-tip { position: fixed; z-index: 90; display: flex; gap: 8px; align-items: flex-start; max-width: 260px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--ink); font-size: 13px; line-height: 1.4; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); pointer-events: none; }
.nav-tip svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--accent); }

/* Long AI text and links must never widen the modal past the screen */
.modal-card, .modal-card > *, .modal-body, .modal-body > * { min-width: 0; }
.modal-card { overflow-x: hidden; }
.modal-body, .option { overflow-wrap: anywhere; }

/* Account on hold */
.hold-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.hold-card { max-width: 560px; }
.hold-card a { color: var(--accent); }
.table-wrap { overflow-x: auto; }

/* Trial banner and credits bars */
.trial-bar { display: grid; gap: 6px; margin: -8px 0 22px; padding: 10px 14px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(212, 255, 63, .3); }
.trial-bar a { color: var(--accent); }
.trial-bar.low { background: rgba(255, 107, 107, .08); border-color: rgba(255, 107, 107, .35); }
.trial-bar.low .progress i { background: #ff8a8a; }
.credits-mini { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; text-decoration: none; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.credits-mini b { color: var(--ink); }
.credits-mini .progress { grid-column: 1 / -1; height: 4px; }
.auth-card .tips { color: var(--muted); }

/* Long button labels wrap on narrow screens instead of widening their card */
.card .btn { max-width: 100%; white-space: normal; text-align: center; }
.card { min-width: 0; }

.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-links a { color: var(--muted); }
.auth-links a:hover { color: var(--ink); }
