@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('/fonts/inter-tight-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #0a0a0a;
  --ink-2: #3b3f46;
  --mute: #8a8f98;
  --line: #e7e7e4;
  --line-2: #f0f0ed;
  --bg: #ffffff;
  --bg-2: #f6f6f4;
  --red: #e5202e;
  --red-soft: #fdecee;
  --navy: #0b1f44;
  --navy-2: #1c3a73;
  --navy-soft: #e8edf6;
  --rail: 232px;
  --radius: 10px;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum' 1, 'cv11' 1;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ shell */

.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.rail {
  background: var(--ink); color: #fff; padding: 22px 14px;
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
}
.brand { font-family: var(--display); font-weight: 900; letter-spacing: .16em; font-size: 15px; padding: 4px 12px 22px; }
.brand i { color: var(--red); font-style: normal; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px;
  text-decoration: none; color: #b9bcc2; font-weight: 600; font-size: 14px;
}
.nav a:hover { color: #fff; background: #17171a; }
.nav a.on { color: #fff; background: #1d1d21; }
.nav a.on svg { color: var(--red); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav .badge { margin-left: auto; background: var(--red); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; font-weight: 700; }
.mantra { display: grid; gap: 2px; margin-top: auto; padding: 0 12px 18px; font-size: 12px; line-height: 1.5; color: #6e727a; font-weight: 500; }
.mantra span:first-child { color: #fff; font-weight: 700; }
.login-mantra { margin-top: 28px; padding: 0; font-size: 14px; }
.mantra-line { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--ink-2); text-align: right; max-width: 260px; }
.mantra-line::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 2px; }
.mantra-modal { font-size: 13px; color: var(--mute); font-weight: 500; line-height: 1.5; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.rail-foot { padding: 12px; border-top: 1px solid #222; display: grid; gap: 10px; }
.duo { display: grid; gap: 8px; }
.duo-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #fff; font-weight: 700; }
.duo-name { display: grid; line-height: 1.2; }
.duo-name small { color: #6e727a; font-size: 11px; font-weight: 600; }
.duo-row b { color: #fff; font-family: var(--display); font-size: 24px; font-weight: 900; margin-left: auto; white-space: nowrap; }
.flame { display: inline-flex; align-items: center; gap: 4px; }
.flame svg { width: 18px; height: 18px; color: #4a4d53; }
.flame.lit svg { color: var(--red); }

/* ------------------------------------------------------------ streak race */

.race { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.racer { padding: 20px 24px 22px; background: #fff; display: grid; gap: 10px; min-width: 0; }
.racer + .racer { border-left: 2px solid var(--ink); }
.racer.lead { background: var(--ink); color: #fff; }
.racer-top { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.racer-top .tag { margin-left: auto; }
.racer.lead .tag.red { background: var(--red); color: #fff; }
.racer-streak { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 900; font-size: 84px; line-height: .9; letter-spacing: -.04em; }
.racer-streak .fire { display: inline-flex; color: #d4d6da; }
.racer-streak .fire svg { width: 64px; height: 64px; }
.racer.lead .racer-streak .fire { color: #3a3a3f; }
.racer-streak .fire.lit, .racer.lead .racer-streak .fire.lit { color: var(--red); }
.racer-streak .fire.lit { animation: flicker 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.racer-sub { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--mute); font-weight: 600; }
.racer-sub b { font-family: var(--display); font-size: 18px; color: var(--ink); }
.racer.lead .racer-sub { color: #8b8f97; }
.racer.lead .racer-sub b { color: #fff; }
.hero.two { grid-template-columns: 2fr 1fr; }
@media (max-width: 1100px) { .hero.two > div { border-bottom: 0 !important; } .hero.two > div:first-child { border-right: 1px solid var(--line); } }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.07) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .racer-streak .fire.lit { animation: none; } }

.main { padding: 32px 40px 80px; max-width: 1240px; width: 100%; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.eyebrow.red { color: var(--red); }
h1 { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -.02em; margin: 4px 0 0; line-height: 1.05; }
h2 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0; font-weight: 800; }

.tabs-mobile { display: none; }

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

.hero { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.hero > div { padding: 20px 22px; border-right: 1px solid var(--line); min-width: 0; }
.hero > div:last-child { border-right: 0; }
.hero .big { font-family: var(--display); font-weight: 900; font-size: 52px; line-height: 1; letter-spacing: -.03em; margin-top: 10px; }
.hero .big small { font-size: 22px; color: var(--mute); font-weight: 800; letter-spacing: 0; }
.hero .sub { color: var(--mute); font-size: 13px; margin-top: 8px; }
.hero .dark { background: var(--ink); color: #fff; }
.hero .dark .sub { color: #8b8f97; }
.hero .dark .eyebrow { color: #8b8f97; }
.bar { height: 4px; background: #26262b; border-radius: 4px; margin-top: 14px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--red); transition: width .4s ease; }
.hero .light .bar { background: var(--line-2); }
.red-t { color: var(--red); }
.navy-t { color: var(--navy); }

/* ------------------------------------------------------------ grid */

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.stack { display: grid; gap: 28px; }
.section { min-width: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.section-head .meta { color: var(--mute); font-size: 13px; font-weight: 500; }

/* ------------------------------------------------------------ rows */

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; font-size: 15px; word-wrap: break-word; }
.row .sub { color: var(--mute); font-size: 13px; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.row.done .title { color: var(--mute); text-decoration: line-through; text-decoration-color: #c6c8cc; }
.row .idx { font-family: var(--display); font-weight: 800; color: var(--mute); width: 18px; padding-top: 1px; }
.row .right { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.check {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; flex: none;
  display: grid; place-items: center; cursor: pointer; padding: 0; margin-top: -1px; transition: all .15s;
}
.check:hover { border-color: var(--red); }
.check svg { width: 13px; height: 13px; opacity: 0; color: #fff; }
.check.on { background: var(--navy); border-color: var(--navy); }
.check.on svg { opacity: 1; }
.check:disabled { cursor: default; border-color: #c9cbcf; }
.check.on:disabled { border-color: var(--navy); }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 4px; background: var(--bg-2); color: var(--ink-2); text-transform: uppercase; white-space: nowrap; }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.navy { background: var(--navy-soft); color: var(--navy); }
.tag.ink { background: var(--ink); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--line); }

.empty { color: var(--mute); padding: 18px 0; font-size: 14px; }

/* ------------------------------------------------------------ controls */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--ink); background: #fff; color: var(--ink); font-weight: 700; font-size: 13px;
  padding: 9px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: #c41824; border-color: #c41824; }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-2); }
.btn.ghost { border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: #fff; color: var(--ink); }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn.block { width: 100%; padding: 13px 16px; font-size: 14px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--mute); font-size: 12px; font-weight: 600; cursor: pointer; }
.link:hover { color: var(--red); }

.add { display: flex; gap: 8px; margin-top: 12px; }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; outline: none;
  transition: border-color .15s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--ink); }
.textarea { min-height: 76px; resize: vertical; line-height: 1.45; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
label.field span { color: var(--ink-2); }

.callout {
  border: 1px dashed #cfd1d5; border-radius: var(--radius); padding: 18px; color: var(--ink-2); font-size: 14px; margin-top: 14px;
}
.callout b { color: var(--ink); }
.lockline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; background: var(--bg-2); border-radius: 8px; font-size: 13px; color: var(--ink-2); }
.submitbar { margin-top: 16px; }

.locked-tray { position: relative; }
.locked-tray .rows { filter: blur(3px); opacity: .45; pointer-events: none; user-select: none; }
.locked-tray .veil { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 700; font-size: 14px; }
.locked-tray .veil span { background: #fff; border: 1px solid var(--line); padding: 10px 14px; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.06); }

/* ------------------------------------------------------------ partner card */

.partner { border: 1px solid var(--line); border-radius: var(--radius); }
.partner-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.partner-head .who { font-weight: 800; font-size: 15px; }
.partner-head .state { color: var(--mute); font-size: 12px; }
.partner-head .score { margin-left: auto; text-align: right; }
.partner-head .score b { font-family: var(--display); font-size: 26px; font-weight: 900; line-height: 1; display: block; }
.partner .rows { padding: 0 18px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--navy); color: #fff; flex: none; font-family: var(--display);
}
.avatar.me { background: var(--red); }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }

/* ------------------------------------------------------------ inbox / feed */

.card-list { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.feed li:last-child { border-bottom: 0; }
.feed time { margin-left: auto; color: var(--mute); white-space: nowrap; font-size: 12px; }

.help { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 16px 18px; }
.help .eyebrow { color: #9fb0d0; }
.help p { margin: 8px 0 12px; font-size: 14px; white-space: pre-wrap; }
.help .btn { border-color: #fff; background: transparent; color: #fff; }
.help .btn:hover { background: #fff; color: var(--navy); }

/* ------------------------------------------------------------ scoreboard */

.versus { display: grid; grid-template-columns: 1fr auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.versus .side { padding: 26px; }
.versus .side.lead { background: var(--ink); color: #fff; }
.versus .side.lead .sub { color: #8b8f97; }
.versus .vs { display: grid; place-items: center; padding: 0 18px; font-family: var(--display); font-weight: 900; color: var(--mute); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.versus .big { font-family: var(--display); font-weight: 900; font-size: 72px; line-height: 1; letter-spacing: -.04em; margin: 12px 0 6px; }
.versus .sub { color: var(--mute); font-size: 13px; }
.versus .side.right { text-align: right; }

.stat-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stat-table th, .stat-table td { text-align: right; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.stat-table th:first-child, .stat-table td:first-child { text-align: left; color: var(--ink-2); font-weight: 500; }
.stat-table th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.stat-table td b { font-family: var(--display); font-size: 18px; }
.stat-table .win { color: var(--red); }

.weeks { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; align-items: end; height: 180px; padding-top: 16px; }
.wk { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; }
.wk .bars { display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.wk .bars span { flex: 1; background: var(--red); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.wk .bars span.b { background: var(--navy); }
.wk label { font-size: 11px; color: var(--mute); text-align: center; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-2); margin-top: 12px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 6px; vertical-align: -1px; }

/* ------------------------------------------------------------ agenda */

.cal-head { display: flex; align-items: center; gap: 8px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 14px; }
.cal .dow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 700; padding: 8px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.cell { min-height: 108px; padding: 8px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; gap: 5px; background: #fff; transition: background .12s; min-width: 0; }
.cell:hover { background: var(--bg-2); }
.cell.out { background: #fcfcfb; color: #c0c2c6; }
.cell.today { box-shadow: inset 0 0 0 2px var(--red); }
.cell .d { font-family: var(--display); font-weight: 800; font-size: 15px; }
.who-line { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.who-line .st { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #c9cbcf; flex: none; }
.st.complete { background: var(--navy); border-color: var(--navy) !important; }
.st.submitted, .st.closed { background: #fff; border-color: var(--navy) !important; }
.st.missed { background: var(--red); border-color: var(--red) !important; }
.st.locked { border-color: var(--ink) !important; }
.st.draft { border-style: dashed !important; }
.st.rest, .st.excused { background: var(--line); border-color: var(--line) !important; }
.cell .due { font-size: 11px; color: var(--red); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------ backlog */

.toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 4px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.compose { display: grid; grid-template-columns: 1fr 140px 150px 150px 170px auto; gap: 8px; margin-top: 16px; }
.prio { font-family: var(--display); font-weight: 900; font-size: 12px; width: 22px; text-align: center; padding-top: 2px; }
.prio.p1 { color: var(--red); }
.prio.p2 { color: var(--ink); }
.prio.p3 { color: var(--mute); }

/* ------------------------------------------------------------ day / me */

.qa { display: grid; gap: 18px; margin-top: 8px; }
.qa .q { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.qa .a { margin-top: 4px; white-space: pre-wrap; font-size: 15px; }
.qa .a.help-a { background: var(--navy-soft); color: var(--navy); padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.thread { display: grid; gap: 12px; margin-top: 12px; }
.msg { display: flex; gap: 10px; }
.msg .body { background: var(--bg-2); padding: 10px 12px; border-radius: 8px; font-size: 14px; white-space: pre-wrap; flex: 1; }
.msg .body small { display: block; color: var(--mute); font-size: 11px; margin-bottom: 2px; font-weight: 600; }

.history details { border-bottom: 1px solid var(--line); }
.history summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; }
.history summary::-webkit-details-marker { display: none; }
.history summary .grow { flex: 1; font-weight: 600; }
.history .inner { padding: 0 0 18px 23px; }

.settings { display: grid; gap: 16px; max-width: 460px; }
.weekdays { display: flex; gap: 6px; flex-wrap: wrap; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.switch { width: 40px; height: 22px; border-radius: 99px; background: #d4d6da; border: 0; position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch.on { background: var(--navy); }
.switch.on::after { transform: translateX(18px); }

/* ------------------------------------------------------------ files */

.files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 600; text-decoration: none; color: var(--navy); background: #fff; }
.file:hover { border-color: var(--navy); }
.file svg { width: 13px; height: 13px; flex: none; }
.file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.file small { color: var(--mute); font-weight: 500; }
.row.done .file { text-decoration: none; }
.drop { display: grid; justify-items: center; gap: 6px; text-align: center; border: 2px dashed #cfd1d5; border-radius: 12px; padding: 28px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--red); background: var(--red-soft); }
.drop svg { width: 26px; height: 26px; color: var(--red); }
.drop b { font-size: 15px; }
.drop span { font-size: 12px; color: var(--mute); }
.picked { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.picked:empty { display: none; }
.picked li { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 10px; background: var(--bg-2); border-radius: 8px; }
.picked li svg { width: 15px; height: 15px; flex: none; color: var(--navy); }
.picked li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.picked li small { color: var(--mute); }
.progress { height: 6px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--navy); transition: width .2s; }

/* ------------------------------------------------------------ modal / toast */

.modal-back { position: fixed; inset: 0; background: rgba(10,10,10,.55); display: grid; place-items: center; padding: 20px; z-index: 50; animation: fade .15s ease; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 580px; max-height: calc(100vh - 40px); overflow: auto; }
.modal-head { padding: 22px 24px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h3 { font-family: var(--display); font-weight: 800; font-size: 22px; margin: 4px 0 0; letter-spacing: -.01em; }
.modal-body { padding: 18px 24px 24px; display: grid; gap: 16px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; position: sticky; bottom: 0; background: #fff; }
.x { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--mute); padding: 4px; }
.sub-task { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; }
.sub-task .top { display: flex; gap: 12px; align-items: center; font-weight: 600; }

#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .2s; z-index: 60; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--red); }

@keyframes fade { from { opacity: 0; } }
.boot { min-height: 100vh; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 900; letter-spacing: .16em; }
.boot i { color: var(--red); font-style: normal; }

/* ------------------------------------------------------------ login */

.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login .l { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login .l .claim { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: .95; letter-spacing: -.035em; }
.login .l .claim i { color: var(--red); font-style: normal; }
.login .r { display: grid; place-items: center; padding: 32px 20px; }
.login form { width: 100%; max-width: 340px; display: grid; gap: 14px; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero > div:nth-child(2) { border-right: 0; }
  .hero > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .compose { grid-template-columns: 1fr 1fr; }
  .compose .input:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .main { padding: 18px 16px 110px; }
  h1 { font-size: 28px; }
  .topbar { margin-bottom: 18px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .mantra-line { text-align: left; font-size: 14px; }
  .hero .big { font-size: 40px; }
  .racer { padding: 14px 14px 16px; }
  .racer-streak { font-size: 52px; gap: 6px; }
  .racer-streak .fire svg { width: 40px; height: 40px; }
  .racer-sub { flex-direction: column; gap: 2px; }
  .hero > div { padding: 16px; }
  .tabs-mobile {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: var(--ink); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .tabs-mobile a { display: grid; justify-items: center; gap: 3px; color: #8b8f97; text-decoration: none; font-size: 10px; font-weight: 700; letter-spacing: .04em; position: relative; }
  .tabs-mobile a svg { width: 20px; height: 20px; }
  .tabs-mobile a.on { color: #fff; }
  .tabs-mobile a.on svg { color: var(--red); }
  .tabs-mobile .badge { position: absolute; top: -3px; right: calc(50% - 18px); background: var(--red); color: #fff; border-radius: 99px; font-size: 9px; padding: 0 5px; }
  .versus { grid-template-columns: 1fr 1fr; }
  .versus .vs { display: none; }
  .versus .side { padding: 18px; }
  .versus .big { font-size: 48px; }
  .cell { min-height: 72px; padding: 6px; }
  .cell .who-line span.n { display: none; }
  .cell .due { display: none; }
  .cal .dow { padding: 6px; font-size: 10px; letter-spacing: .04em; }
  .compose { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login .l { padding: 28px 20px; min-height: 220px; }
  .login .l .claim { font-size: 40px; }
  .row .right { flex-direction: column; align-items: flex-end; }
  .weeks { gap: 6px; }
  #toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------------ v3: avatars, AI, season, settings */

.avatar { overflow: hidden; }
.avatar.has-img { background: var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xl { width: 88px; height: 88px; font-size: 32px; }
.avatar-edit { display: flex; align-items: center; gap: 16px; }
.opt { color: var(--mute); font-weight: 500; font-size: 12px; }
.nav .sub-link { margin-top: 8px; border-top: 1px solid #222; border-radius: 0 0 8px 8px; padding-top: 14px; font-size: 13px; }
.gear-btn svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .gear-btn span { display: none; } }

/* AI picks */
.picks { border: 1px solid var(--navy); border-radius: var(--radius); padding: 4px 14px 6px; margin-top: 14px; background: linear-gradient(180deg, var(--navy-soft), #fff 60px); }
.picks-head { display: flex; align-items: center; gap: 8px; padding: 10px 0 6px; font-size: 13px; color: var(--navy); }
.picks-head svg { width: 16px; height: 16px; }
.picks-head span { color: var(--mute); }
.picks-head .link { margin-left: auto; }
.picks-empty { font-size: 13px; color: var(--mute); padding: 4px 0 12px; }
.picks-empty a { color: var(--navy); font-weight: 700; }
.pick-kind { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); width: 68px; flex: none; padding-top: 3px; }

/* season on Today */
.season-cta { display: flex; align-items: center; gap: 14px; border: 1px dashed #cfd1d5; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; text-decoration: none; color: var(--ink-2); font-size: 14px; transition: border-color .15s; }
.season-cta:hover { border-color: var(--red); }
.season-cta svg { width: 22px; height: 22px; color: var(--red); flex: none; }
.season-cta b { color: var(--ink); margin-right: 6px; }
.season-cta i { margin-left: auto; font-style: normal; font-weight: 800; color: var(--red); }
.season-strip { display: grid; gap: 8px; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; text-decoration: none; color: #fff; background: var(--navy); }
.ss-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.season-strip .eyebrow { color: #9fb0d0; }
.ss-status { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: #fff; color: var(--navy); padding: 3px 8px; border-radius: 4px; }
.st-behind .ss-status, .st-missed .ss-status { background: var(--red); color: #fff; }
.st-at_risk .ss-status { background: #ffd8db; color: var(--red); }
.ss-goal { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.ss-bars { display: grid; gap: 4px; }
.ss-bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.15); overflow: hidden; }
.ss-bar span { display: block; height: 100%; background: var(--red); border-radius: 6px; }
.ss-bar.time { height: 3px; }
.ss-bar.time span { background: rgba(255,255,255,.55); }
.ss-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: #c9d3e6; }
.ss-meta b { color: #fff; font-family: var(--display); font-size: 16px; }

/* season page */
.season-hero { display: grid; grid-template-columns: 1fr 300px; gap: 24px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px; margin-bottom: 16px; align-items: end; }
.season-hero .eyebrow { color: #9fb0d0; }
.season-hero .big { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: 1; letter-spacing: -.03em; margin: 10px 0 14px; }
.season-hero .big small { font-size: 22px; color: #9fb0d0; font-weight: 800; letter-spacing: 0; }
.season-hero .sub { color: #c9d3e6; font-size: 13px; margin-top: 10px; }
.season-hero.st-behind, .season-hero.st-missed { background: #3a0f14; }
.checkin { display: grid; gap: 8px; }
.checkin .field span { color: #c9d3e6; }
.checkin .input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.checkin .input::placeholder { color: #9fb0d0; }
.ai-note { display: flex; gap: 10px; align-items: flex-start; background: var(--navy-soft); color: var(--navy); border-radius: 8px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.ai-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.smart { display: grid; gap: 0; }
.smart-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.smart-row b { font-family: var(--display); font-weight: 900; font-size: 18px; width: 22px; color: var(--red); flex: none; }
.smart-row.ok b { color: var(--navy); }
.smart-row small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 90px; padding-top: 12px; }
.spark span { flex: 1; max-width: 22px; background: var(--navy); border-radius: 2px 2px 0 0; }
.spark span:last-child { background: var(--red); }
.season-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.season-form .full { grid-column: 1 / -1; }

/* New */
.asks { list-style: none; margin: 0; padding: 0; }
.ask { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ask-q { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--navy); }
.ask-q svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.ask-q .link { margin-left: auto; }
.ask .add { margin-top: 8px; }
.focus-card { background: var(--ink); color: #fff; border-radius: 8px; padding: 14px 16px; margin-top: 14px; }
.focus-card p { margin: 0 0 6px; font-weight: 700; font-size: 15px; white-space: pre-wrap; }
.focus-card small { color: #8b8f97; }

/* troubleshooting */
.row.health { align-items: center; gap: 10px; font-size: 14px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }

@media (max-width: 760px) {
  .tabs-mobile { grid-template-columns: repeat(6, 1fr); }
  .season-hero { grid-template-columns: 1fr; padding: 18px; }
  .season-hero .big { font-size: 44px; }
  .season-form { grid-template-columns: 1fr 1fr; }
  .pick-kind { display: none; }
}

/* profile photo picker + small fixes */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin: 14px 0 28px; }
.photo-opt { display: grid; gap: 6px; justify-items: center; background: none; border: 2px solid transparent; border-radius: 12px; padding: 8px; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.photo-opt img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; display: block; }
.photo-opt:hover { border-color: var(--line); }
.photo-opt.on { border-color: var(--red); color: var(--ink); }
.photo-opt.upload { border: 2px dashed #cfd1d5; align-content: center; min-height: 120px; }
.photo-opt.upload svg { width: 24px; height: 24px; color: var(--red); }
.lockline svg { width: 16px; height: 16px; flex: none; vertical-align: -3px; margin-right: 6px; color: var(--navy); }

/* excuses */
.excuses { display: flex; flex-wrap: wrap; gap: 8px; }
.excuses .chip { padding: 9px 14px; font-size: 13px; }
.excused-line { background: var(--navy-soft); color: var(--navy); }
.section-head .meta .link { font-size: 12px; }

.top-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .top-actions { justify-content: flex-start; } }

/* ================================================================ v4: Today head + motion */

.today-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 10px; }
.today-meta { color: var(--mute); font-size: 13px; margin-top: 4px; }
.today-count { font-family: var(--display); font-weight: 900; line-height: .9; letter-spacing: -.03em; }
.today-count b { font-size: 56px; }
.today-count span { font-size: 24px; color: var(--mute); }
.today-bar { height: 4px; background: var(--line-2); border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.today-bar span { display: block; height: 100%; background: var(--ink); border-radius: 4px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.today-sec .today-bar { margin-bottom: 0; height: 3px; }
.racer-streak { font-size: 72px; }
.racer-streak .fire svg { width: 54px; height: 54px; }

/* page enter: sections rise in, staggered (only on navigation) */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.enter .topbar { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.enter > *:not(.topbar), .enter .stack > *, .enter .cols > section { animation: rise .55s cubic-bezier(.2,.8,.2,1) both; }
.enter > *:nth-child(2) { animation-delay: 40ms; }
.enter > *:nth-child(3) { animation-delay: 90ms; }
.enter > *:nth-child(4) { animation-delay: 140ms; }
.enter .stack > *:nth-child(1) { animation-delay: 140ms; }
.enter .stack > *:nth-child(2) { animation-delay: 200ms; }
.enter .stack > *:nth-child(3) { animation-delay: 260ms; }
.enter .stack > *:nth-child(4) { animation-delay: 320ms; }
.enter .racer + .racer { animation: rise .55s .08s cubic-bezier(.2,.8,.2,1) both; }
.enter .today-bar span, .enter .ss-bar span, .enter .bar > span, .enter .wk .bars span { transform-origin: left; animation: grow .9s .25s cubic-bezier(.2,.8,.2,1) both; }
.enter .wk .bars span { transform-origin: bottom; animation-name: growY; }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.enter .rows > li { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
.enter .rows > li:nth-child(2) { animation-delay: 50ms; }
.enter .rows > li:nth-child(3) { animation-delay: 100ms; }
.enter .rows > li:nth-child(n+4) { animation-delay: 140ms; }

/* buttons: lift on hover, press on click */
.btn, .chip, .check, .photo-opt, .switch { transition: transform .12s ease, background .15s, color .15s, border-color .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active, .chip:active, .photo-opt:active { transform: translateY(0) scale(.97); }
.btn.primary:hover { box-shadow: 0 8px 22px rgba(229, 32, 46, .28); }
.btn.navy:hover { box-shadow: 0 8px 22px rgba(11, 31, 68, .25); }
.check:hover { transform: scale(1.08); }
.check:active { transform: scale(.9); }
.check.on svg { animation: tick .35s cubic-bezier(.2,.8,.2,1); }
@keyframes tick { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.row { transition: background .15s; }
.rows .row:hover { background: linear-gradient(90deg, transparent, var(--bg-2) 8%, var(--bg-2) 92%, transparent); }
.nav a { transition: background .15s, color .15s; }
.nav a svg { transition: transform .2s; }
.nav a:hover svg { transform: scale(1.1); }
.season-strip, .season-cta, .racer { transition: transform .2s, box-shadow .2s; }
.season-strip:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11, 31, 68, .25); }
.link { transition: color .15s; }

/* modal + toast */
.modal-back { animation: fade .2s ease; backdrop-filter: blur(3px); }
.modal { animation: pop .28s cubic-bezier(.2,.9,.25,1.1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
#toast { transition: opacity .25s, transform .35s cubic-bezier(.2,.9,.25,1.2); }

/* rewards */
.float-pts { position: absolute; z-index: 80; transform: translate(-50%, 0); font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--red); pointer-events: none; animation: floatUp 1.3s cubic-bezier(.2,.8,.2,1) forwards; }
.float-pts.navy { color: var(--navy); font-size: 18px; }
.float-pts.bonus { font-size: 26px; color: var(--ink); }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -8px) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }
.confetti { position: absolute; z-index: 79; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; animation: burst 1.05s cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes burst { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--x), calc(var(--y) + 60px)) rotate(var(--r)); opacity: 0; } }

@media (max-width: 760px) {
  .today-count b { font-size: 44px; }
  .racer-streak { font-size: 48px; }
  .racer-streak .fire svg { width: 36px; height: 36px; }
  .tabs-mobile a { transition: color .15s; }
  .tabs-mobile a.on svg { animation: tick .3s ease; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.tag svg { width: 11px; height: 11px; }

.rail-excuse { margin: 10px 12px 0; width: calc(100% - 24px); padding: 10px 12px; background: var(--navy-2); border-color: #2c4f8f; }
.rail-excuse:hover { background: var(--navy-2); }

/* "Lock in" = the season tab: always a red bar */
.nav a.lockin-tab { background: var(--red); color: #fff; margin: 6px 0; font-weight: 800; letter-spacing: .01em; }
.nav a.lockin-tab svg { color: #fff; }
.nav a.lockin-tab:hover, .nav a.lockin-tab.on { background: #c41824; color: #fff; }
.nav a.lockin-tab.on svg { color: #fff; }
.nav a.lockin-tab:hover svg { transform: translateY(-2px) rotate(-8deg); }
@media (max-width: 760px) {
  .tabs-mobile a.lockin-tab { color: #fff; }
  .tabs-mobile a.lockin-tab svg { width: 40px; height: 40px; padding: 9px; margin-top: -18px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(229, 32, 46, .45); border: 3px solid var(--ink); box-sizing: border-box; }
  .tabs-mobile a.lockin-tab.on svg { color: #fff; background: #c41824; }
}

/* suggest to partner / joint */
.partner-form { display: grid; gap: 8px; margin-top: 12px; }
.partner-form-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.partner-form-row .select { width: auto; }
.partner-form-row .btn { margin-left: auto; }
.joint-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.joint-toggle small { color: var(--mute); font-weight: 500; }
.joint-toggle input { display: none; }
.switch-mini { width: 32px; height: 18px; border-radius: 99px; background: #d4d6da; position: relative; transition: background .15s; flex: none; }
.switch-mini::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.joint-toggle input:checked + .switch-mini { background: var(--navy); }
.joint-toggle input:checked + .switch-mini::after { transform: translateX(14px); }
.pick-kind.from-partner { color: var(--red); }
@media (max-width: 760px) { .joint-toggle small { display: none; } }

/* analytics chart */
.analytics { margin-bottom: 28px; }
.analytics .section-head { flex-wrap: wrap; }
.an-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 16px 0 6px; }
.an-who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.an-who i, .tip-row i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.an-big { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; letter-spacing: -.03em; margin-top: 6px; }
.an-sub { color: var(--mute); font-size: 13px; margin-top: 4px; }
.chart { position: relative; margin-top: 8px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .cg { stroke: var(--line); stroke-width: 1; }
.chart .cy, .chart .cx { font-size: 11px; fill: var(--mute); font-family: inherit; }
.chart .cy { text-anchor: end; }
.chart .cx { text-anchor: middle; }
.chart .ch-x { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; pointer-events: none; }
.chart .ch-dot { pointer-events: none; opacity: 0; transition: opacity .12s; }
.ch-tip { position: absolute; top: 0; background: var(--ink); color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 12px; min-width: 118px; pointer-events: none; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.tip-date { color: #9a9ea6; font-weight: 600; margin-bottom: 4px; }
.tip-row { display: flex; align-items: center; gap: 8px; }
.tip-row b { font-family: var(--display); font-size: 15px; min-width: 18px; }
.tip-row span { color: #c9ccd1; }
.legend .line-key { width: 16px; height: 3px; border-radius: 2px; vertical-align: 3px; }
.an-table { margin-top: 12px; font-size: 13px; }
.an-table summary { cursor: pointer; color: var(--mute); font-weight: 600; }
.enter .cline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s .2s cubic-bezier(.4,.2,.2,1) forwards; }
.enter .carea { opacity: 0; animation: fadeIn .8s .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@media (max-width: 760px) { .an-big { font-size: 34px; } }

/* mobile polish v5 */
.files.many:not(.open) .file:nth-of-type(n+3) { display: none; }
.more-files { border: 1px dashed var(--line); background: #fff; border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.more-files:hover { border-color: var(--ink); }
.me-links { display: none; gap: 8px; margin-bottom: 18px; }
.me-links .btn { flex: 1; }
.me-links svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .me-links { display: flex; }
  .tabs-mobile { grid-template-columns: repeat(5, 1fr); align-items: end; padding-top: 10px; }
  .tabs-mobile a { font-size: 11px; gap: 4px; }
  .tabs-mobile a svg { width: 22px; height: 22px; }
  .tabs-mobile a.lockin-tab { font-weight: 800; font-size: 12px; }
  .tabs-mobile a.lockin-tab svg { width: 62px; height: 62px; padding: 15px; margin-top: -34px; border: 4px solid var(--ink); box-shadow: 0 8px 22px rgba(229, 32, 46, .5); }
  .tabs-mobile .badge { right: calc(50% - 20px); }
  /* Today header + race: tighter, centered rhythm on phones */
  .racer-top { font-size: 15px; }
  .racer-top .tag { font-size: 10px; padding: 2px 6px; }
  .today-head { align-items: center; }
  .files { gap: 6px; }
  .file span { max-width: 170px; }
  .main { padding-bottom: 130px; }
}

.lockin-tab svg { overflow: visible; }

/* reading back a day */
.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.day-peek + .day-peek { margin-top: 10px; }
.day-peek .section-head h2 { display: flex; align-items: center; gap: 8px; }
.day-peek .qa { margin: 6px 0 4px; gap: 10px; }
.day-peek .qa .a { font-size: 14px; }
.day-open { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--navy); }

.brief-tabs { margin: 0 0 18px; }
.ask-q .tag { margin-left: 4px; flex: none; }

.tz-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--navy-soft); color: var(--navy); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.tz-actions { display: flex; align-items: center; gap: 12px; }

/* ------------------------------------------------------------ onboarding */

.login .linkline { font-size: 13px; color: var(--mute); }
.login .linkline button { display: block; margin-top: 6px; }
.setup { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.setup-top { background: var(--ink); color: #fff; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; }
.setup-top .brand { padding: 0; }
.setup-top small { color: #9a9da3; }
.setup-body { width: 100%; max-width: 560px; margin: 0 auto; padding: 40px 20px 80px; }
.setup-bar { height: 4px; background: var(--line); border-radius: 4px; margin-bottom: 28px; overflow: hidden; }
.setup-bar span { display: block; height: 100%; background: var(--red); transition: width .25s; }
.setup h1 { font-size: 30px; margin: 4px 0 6px; }
.setup .lead { color: var(--ink-2); margin: 0 0 24px; }
.setup form { display: grid; gap: 20px; }
.setup fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 20px; min-width: 0; }

.setup .textarea { min-height: 76px; }
.setup-actions { display: flex; gap: 10px; }
.consent { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: 14px; }
.consent input { margin-top: 3px; flex: none; }
.danger { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
[hidden] { display: none !important; }
