/* Creator Streaks: the app's styles. Layout steps are plain @media widths on purpose: an older Android phone's web view
   (Chromium 99) has no container queries, :has(), color-mix(), dvh or nesting, so none of those are used here.

   The channel colours (--s0..--s4) go to a creator's channels in their own order: orange, blue, teal, magenta, ochre.
   The first two are the look's own accents, so a one-channel account is drawn in them alone. The set has not been
   measured for colour-blind separation, so a channel is always named beside its colour. A sixth is drawn in --other. */
/* The look ("the chain"): a warm grey ground, white cards with no outline, near-black ink, and two accents that each
   mean one thing. Orange is a day you published, and the streak they add up to. Blue is everything that is not that:
   a rest day, a gain since last time, and what a paid plan adds. Headings and big numbers are set in Bricolage
   Grotesque, the rest in Instrument Sans; both are served from /fonts (open fonts, licences beside them).
   --slab is the dark panel (the Plus offer, the promise, the phone's reminder strip); it stays dark in both themes. */
@font-face { font-family: "Bricolage Grotesque"; src: url(/fonts/bricolage-grotesque.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
  color-scheme: light;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --page: #f1f0ec; --surface: #ffffff; --raised: #e7e5de; --seg: #e7e5de; --sel: #ffffff;
  --ink: #15161a; --ink2: #54565f; --muted: #6b6e78; --border: #e7e5de; --grid: #e7e5de; --axis: #dad8d0;
  --wash: rgba(21,22,26,.06); --bad: #a02a2a; --warn-bg: #fbebc6; --warn-ink: #5c4300; --tick: #2747e6; --bar: #8b8e99;
  --s0: #f2541b; --s1: #2747e6; --s2: #0e9384; --s3: #b4379e; --s4: #8a6a00; --other: #8b8e99;
  --up: #1b2f9e; --up-bg: #e3e8fd; --xp: #f2541b; --xp-ink: #b23a0c; --fire: #f2541b; --fire-bg: rgba(242,84,27,.13);
  --blue: #2747e6; --blue-ink: #1b2f9e; --blue-bg: #e3e8fd; --blue-line: #5c74ee; --hatch-a: #c9d2fa; --hatch-b: #eef1fe;
  --slab: #15161a; --slab-ink: #ffffff; --slab-ink2: #c9cbd3; --slab-line: #3a3c45;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #101114; --surface: #1b1c21; --raised: #2a2c33; --seg: #24262c; --sel: #3a3c45;
    --ink: #f4f3ef; --ink2: #b9bbc4; --muted: #9093a0; --border: #2c2e36; --grid: #2c2e36; --axis: #3f414b;
    --wash: rgba(255,255,255,.07); --bad: #ff9a8f; --warn-bg: #3a2f10; --warn-ink: #fab219; --tick: #8fa0ff; --bar: #8b8e99;
    --s0: #f2541b; --s1: #6e86ff; --s2: #2cb5a5; --s3: #d667c2; --s4: #c9a227; --other: #9093a0;
    --up: #b4c0ff; --up-bg: rgba(92,116,238,.24); --xp: #f2541b; --xp-ink: #ff8a5c; --fire: #f2541b; --fire-bg: rgba(242,84,27,.2);
    --blue: #2f4be0; --blue-ink: #c3ccff; --blue-bg: #1d2452; --blue-line: #5c74ee; --hatch-a: #34408a; --hatch-b: #1d2452;
    --slab: #2a2c33; --slab-ink: #ffffff; --slab-ink2: #c9cbd3; --slab-line: #45474f;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #101114; --surface: #1b1c21; --raised: #2a2c33; --seg: #24262c; --sel: #3a3c45;
  --ink: #f4f3ef; --ink2: #b9bbc4; --muted: #9093a0; --border: #2c2e36; --grid: #2c2e36; --axis: #3f414b;
  --wash: rgba(255,255,255,.07); --bad: #ff9a8f; --warn-bg: #3a2f10; --warn-ink: #fab219; --tick: #8fa0ff; --bar: #8b8e99;
  --s0: #f2541b; --s1: #6e86ff; --s2: #2cb5a5; --s3: #d667c2; --s4: #c9a227; --other: #9093a0;
  --up: #b4c0ff; --up-bg: rgba(92,116,238,.24); --xp: #f2541b; --xp-ink: #ff8a5c; --fire: #f2541b; --fire-bg: rgba(242,84,27,.2);
  --blue: #2f4be0; --blue-ink: #c3ccff; --blue-bg: #1d2452; --blue-line: #5c74ee; --hatch-a: #34408a; --hatch-b: #1d2452;
  --slab: #2a2c33; --slab-ink: #ffffff; --slab-ink2: #c9cbd3; --slab-line: #45474f;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.45 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
main { max-width: 1720px; margin: 0 auto; padding: 20px 20px 56px; display: flex; flex-direction: column; gap: 22px; }   /* wide enough to use a full-HD screen, not so wide that a table row is hard to follow */
@media (max-width: 560px) { main { padding: 20px 16px 56px; } }
h1 { font-size: 22px; margin: 0; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 0; font-weight: 700; }
h3 { font-size: 15px; margin: 0; font-weight: 700; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.card { background: var(--surface); border-radius: 22px; padding: 20px; min-width: 0; }
.empty { color: var(--ink2); padding: 28px 8px; text-align: center; }
.err { color: var(--bad); font-size: 13px; }
.banner { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.banner.demo { font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.banner.demo b { font-weight: 700; }
.banner .plainbtn { color: var(--ink); background: var(--surface); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.section { display: flex; flex-direction: column; gap: 14px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.section-title .left { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 12.5px; }

/* header */
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 auto; }
.brand svg { flex: none; }
.sub { color: var(--ink2); font-size: 13px; margin-top: 2px; }
/* "Updated … · next refresh in 4:12": each part carries its dot on the left, and the row is pulled left under a
   clipping edge, so a part that starts a line (the first, or one that wrapped) shows no dot. */
.upd { overflow: hidden; }
.upd > div { display: flex; flex-wrap: wrap; margin-left: -16px; }
.upd > div > span { position: relative; padding-left: 16px; }
.upd > div > span::before { content: "·"; position: absolute; left: 5px; }
.seg { display: inline-flex; gap: 2px; background: var(--seg); border: 1px solid var(--border); border-radius: 10px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; min-height: 36px; padding: 0 12px; border-radius: 7px; cursor: pointer; color: var(--ink2); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.seg button:hover { background: var(--wash); color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--sel); color: var(--ink); font-weight: 600; }
.seg .dot { width: 9px; height: 9px; }
.seg.plain { background: none; border: 0; padding: 0; }
@media (pointer: coarse) { .seg button { min-height: 44px; } }

/* right now. Two things lead the page and nothing sits beside them: all the views together, and how much of today's
   publishing is done. They stand on the page itself, not in a box. The one panel under them answers both for each
   channel, a line per channel with every column named once: views on the left, the week's publishing on the right.
   The two halves are two tables with rows of one height, so on a narrow screen the second simply drops under the first.
   Its steps are media queries on the window, not container queries: some phones still run a 2022 web engine
   that has none. The panel is as wide as the page allows, so the window says the same thing: the panel's width plus the
   rail (100), the page's padding (40) and a scrollbar (15); about 50 more than the panel once the rail lies along the bottom. */
.hero { display: flex; flex-direction: column; gap: 12px; --pubw: 500px; }
.label { font-size: 13px; font-weight: 600; color: var(--ink2); }
.bignum { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.bignum b { font-size: clamp(40px, 9vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
.bignum span { font-size: 16px; color: var(--ink2); }
.bignum .change { margin: 0 0 0 8px; font-size: 15px; align-self: baseline; }
.bignum .change b, .bignum .change span { font-size: inherit; letter-spacing: 0; line-height: inherit; }
.change { display: flex; align-items: center; gap: 6px; font-size: 13.5px; margin-top: 2px; }
.change b { font-weight: 600; }
.change span { color: var(--ink2); }
.change svg { flex: none; }
.quiet { font-size: 13px; color: var(--muted); margin-top: 1px; }
.pair { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--border); margin-top: auto; }
.pair div { display: flex; flex-direction: column; }
.pair b { font-size: 22px; font-weight: 700; }
.pair span { font-size: 13px; color: var(--ink2); }
.tgt-sum { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.tgt-sum b { font-size: clamp(40px, 9vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
.tgt-sum span { font-size: 16px; color: var(--ink2); }
.board { padding: 0; overflow: hidden; display: flex; flex-wrap: wrap; }
.board-views { flex: 1 1 0; min-width: 0; padding: 2px 22px 4px; overflow: hidden; }
.board-pub { flex: none; min-width: 0; width: var(--pubw); padding: 2px 22px 4px 26px; box-shadow: -1px 0 0 var(--border); }
.board-notes { flex: 1 1 100%; padding: 10px 22px 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.card > .board-notes:only-child { padding: 0; border-top: 0; }   /* nothing but problems to show */
.board th, .board td { height: 52px; padding-top: 0; padding-bottom: 0; vertical-align: middle; }
.board thead th { height: 38px; font-weight: 500; color: var(--muted); }
.board tbody tr:last-child th { border-bottom: 0; }
.board tbody th { color: var(--ink); font-size: 13.5px; }
table.chanrows th, table.chanrows td { text-align: left; }
table.chanrows .who { display: flex; align-items: center; gap: 11px; min-width: 0; }
table.chanrows .who svg { flex: none; }
table.chanrows .name { font-size: 15px; font-weight: 700; white-space: nowrap; }
table.chanrows th:first-child, table.chanrows .v, table.chanrows .c-spark, table.chanrows .c-subs { width: 1%; }   /* these take what they need; the gain and its bar take the rest */
table.chanrows th:first-child { padding-right: 28px; }
table.chanrows .v { padding-right: 20px; }
table.chanrows .v b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
table.chanrows .v .plus { margin-left: 8px; vertical-align: 3px; }
table.chanrows .c-spark { padding-right: 24px; }
table.chanrows td.c-subs, table.chanrows th.c-subs { text-align: right; padding-left: 24px; }
table.chanrows .c-subs b { font-weight: 600; }
table.chanrows .c-subs span { color: var(--up); margin-left: 6px; font-size: 12.5px; font-weight: 600; }
.spark { line-height: 0; cursor: default; }
/* what a channel gained, as a number and as a bar measured against the channel that gained most: the bars are how
   "which channel is moving" is read without reading */
.gain { display: flex; align-items: center; gap: 7px; }
.gain svg { flex: none; color: var(--ink2); }
.gain b { font-weight: 600; min-width: 46px; }
.gain .track { flex: 1 1 0; min-width: 0; max-width: 300px; height: 6px; }
.gain .track i { display: block; height: 6px; min-width: 3px; border-radius: 3px; }
@media (max-width: 1554px) {   /* a laptop: the publishing half and the sparkline give some width to the gain bars */
  .hero { --pubw: 440px; }
  .spark svg { width: 112px; height: auto; }
  .board .c-subs { display: none; }
}
@media (max-width: 1304px) { .board .c-spark { display: none; } }
@media (max-width: 1204px) {   /* too narrow for the two halves side by side: publishing goes under views, with the channels named again */
  .lead { flex-direction: column; padding: 0 2px; }
  .lead-today { width: auto; padding-left: 0; }
  .board-views, .board-pub { flex: 1 1 100%; width: auto; padding: 2px 22px 4px; }
  .board-pub { box-shadow: 0 -1px 0 var(--border); }
  .board .c-spark { display: table-cell; }
  .board table.targets .pubname { display: table-cell; }
}
@media (max-width: 934px) { .board .c-spark { display: none; } }
@media (max-width: 650px) {
  .board-views, .board-pub { padding: 2px 14px 4px; }
  .board .togo { display: none; }
  table.targets .pubname .chip { gap: 6px; }
  /* a phone, down to 360 wide: name, views and gain on one line for the short names; the longest name takes two */
  table.chanrows .name { white-space: normal; font-size: 14px; }
  table.chanrows th:first-child { padding-right: 8px; width: auto; }
  table.chanrows .who { gap: 8px; }
  table.chanrows .who svg { width: 26px; height: 26px; }
  table.chanrows .v b { font-size: 19px; }
  table.chanrows .v { padding: 0 8px 0 6px; }
  .gain { gap: 5px; }
  .gain .track { display: none; }
  .gain b { min-width: 0; }
  table.chanrows .c-gain { width: 1%; white-space: nowrap; padding-left: 6px; }
}

/* first 48 hours: one panel again, a cell for each channel's newest video */
.launches { padding: 0; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.launches.n2, .launches.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .launches, .launches.n2, .launches.n4 { grid-template-columns: minmax(0, 1fr); } }
.launch { min-width: 0; padding: 16px 22px 14px; display: flex; flex-direction: column; gap: 12px; box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border); }
.launch .vid { min-width: 0; max-width: none; }
.launch .meta .dot { margin-right: 6px; }   /* in the line of text, so a long channel name wraps under it, not away from it */
.launch .views { display: flex; align-items: baseline; gap: 8px; }
.launch .views b { font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.launch .views span { color: var(--ink2); }
.change.ahead b, .change.ahead svg { color: var(--up); }

/* next goals: the channel's ring as a dial that fills toward the next round number */
.goals { padding: 0; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.goals.n2, .goals.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .goals, .goals.n2, .goals.n4 { grid-template-columns: minmax(0, 1fr); } }
/* five cells: all five in a row when the panel is wide (1,320 and up); otherwise three over two (so no row ends in a
   gap); narrower still, two, two and one full width; then one under the other. The steps are read from the window,
   as for the panel at the top of the page. Thirty columns, because five, three and two across all divide it: a cell
   spans 6, 10 or 15 of them. */
.launches.n5, .goals.n5 { grid-template-columns: repeat(30, minmax(0, 1fr)); }
.launches.n5 > *, .goals.n5 > * { grid-column: span 10; }
.launches.n5 > :nth-child(n+4), .goals.n5 > :nth-child(n+4) { grid-column: span 15; }
@media (min-width: 1475px) {
  .launches.n5 > *, .goals.n5 > *,
  .launches.n5 > :nth-child(n+4), .goals.n5 > :nth-child(n+4) { grid-column: span 6; }
}
@media (max-width: 1054px) {
  .launches.n5 > *, .goals.n5 > *, .launches.n5 > :nth-child(n+4), .goals.n5 > :nth-child(n+4) { grid-column: span 15; }
  .launches.n5 > :last-child, .goals.n5 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .launches.n5 > *, .goals.n5 > *, .launches.n5 > :nth-child(n+4), .goals.n5 > :nth-child(n+4) { grid-column: 1 / -1; }
}
.goalcell { min-width: 0; padding: 16px 22px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border); }
.goalcell .who { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.goalpair { display: flex; gap: 20px 28px; flex-wrap: wrap; }
/* one goal: its badge, "now of target", a bar from nothing to the target, and what is left */
.goal { flex: 1 1 210px; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; align-items: center; align-content: start; }
.goal .medal { grid-row: span 3; }
.medal { flex: none; display: block; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.28)); }
.medal.locked { filter: none; }

/* the streak's pep talk, shown beside the flame while the mouse is on it. A plain card with a small pointer toward the
   flame; no coloured stripe down its side. */
.hype { position: fixed; z-index: 30; display: none; width: min(360px, calc(100vw - 24px)); padding: 16px 20px; border-radius: 14px; pointer-events: none;
  background: var(--surface); border: 1px solid var(--axis); box-shadow: 0 12px 34px rgba(0,0,0,.32); }
.hype::before { content: ""; position: absolute; left: -6px; top: var(--point, 30px); width: 10px; height: 10px; background: var(--surface);
  border-left: 1px solid var(--axis); border-bottom: 1px solid var(--axis); transform: rotate(45deg); }
.hype.above::before { display: none; }   /* over the bar along the bottom there is nothing beside it to point at */
.hype .k { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.hype .line { margin-top: 8px; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; transition: opacity .22s; }
.hype .sub { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .hype .line { transition: none; } }

/* achievements page */
.levelup { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--up-bg); color: var(--ink); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.levelup button { margin-left: auto; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; min-height: 36px; padding: 0 14px; cursor: pointer; font-weight: 600; }
.lvlcard { display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; padding: 24px; }
.lvlcard > svg { flex: none; }
.lvlcard .mid { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lvlcard .name { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lvlcard .name span { font-size: 16px; font-weight: 600; color: var(--xp); letter-spacing: 0; }
.xpbar { height: 12px; border-radius: 6px; background: var(--grid); overflow: hidden; }
.xpbar i { display: block; height: 100%; min-width: 6px; border-radius: 6px; background: var(--xp); }
.lvlcard .left, .ach .left { font-size: 13px; color: var(--ink2); }
.lvlcard .left b, .ach .left b { color: var(--ink); font-weight: 600; }
.lvlcard .pair { flex: 1 1 100%; margin-top: 0; }
.xpcard { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.xprows { display: flex; flex-direction: column; gap: 12px; }
.xprow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 14px; align-items: baseline; }
.xprow .n, .streakrow .n { min-width: 0; display: flex; flex-direction: column; }
.xprow .n span, .streakrow .n span, .streakrow .v span { font-size: 12.5px; color: var(--muted); }
.xprow .v { white-space: nowrap; }
.xprow .v span { color: var(--ink2); font-size: 12.5px; }
.xprow .goalbar { grid-column: 1 / -1; height: 6px; }
.streakrow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.streakrow.main { padding-top: 0; border-top: 0; }
.streakrow .dot { justify-self: center; }
.streakrow .flame { color: var(--xp); line-height: 0; }
.streakrow .v { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.shelf { padding: 0; overflow: hidden; }
.shelfrow { padding: 16px 22px 18px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--border); }
.shelfrow:first-child { border-top: 0; }
.shelfrow .who { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.shelfkind { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.shelfkind .kind { min-width: 118px; }
.medals { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.medals > span { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.medals .todo .medal { filter: grayscale(1); opacity: .38; }
.medals .todo em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.medals .isnew::after { content: ""; position: absolute; top: 1px; right: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--s1); border: 2px solid var(--surface); }
.achs { padding: 0; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ach { min-width: 0; padding: 16px 20px 18px; display: flex; align-items: flex-start; gap: 14px; box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border); }
.ach .body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ach .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ach .top b { font-size: 15px; }
.ach .pct { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.ach .what { font-size: 13px; color: var(--ink2); }
.ach.none .top b { color: var(--ink2); }
.ach.rec .big { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.ach.rec .big span { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ink2); }
.ach.rec .what { display: flex; align-items: baseline; gap: 7px; overflow-wrap: anywhere; }
.ach.rec .what .dot { width: 8px; height: 8px; transform: translateY(-1px); }

/* quests */
.qleft { position: absolute; top: 4px; left: 50%; margin-left: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--xp); color: #1b1300;
  font-style: normal; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.quests { flex: 1 1 380px; display: flex; flex-direction: column; padding: 20px 22px 8px; }
.qhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding-bottom: 14px; }
.qhead > div { display: flex; flex-direction: column; gap: 2px; }
.qcount { font-size: 12.5px; font-weight: 600; color: var(--ink2); padding: 2px 0; }
.quest { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--border); }
.quest .body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.quest .body b { font-size: 14px; font-weight: 600; }
.quest .body b .dot { margin-right: 8px; }
.quest .sub { font-size: 12.5px; color: var(--muted); }
.quest .goalbar { height: 6px; }
.quest.done .body b { color: var(--ink2); }
.reward { font-size: 12.5px; font-weight: 700; white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: var(--raised); }
.reward.got { color: var(--up); background: var(--up-bg); }
.qpast { display: flex; flex-direction: column; gap: 14px; }
.qdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.qday { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; border-radius: 12px; background: var(--wash); }
.qday.today { box-shadow: inset 0 0 0 1.5px var(--xp); }
.qday .k { font-size: 12px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.qday .pip.on { background: var(--up); border-color: var(--up); }
.qday b { font-size: 13.5px; }
@media (max-width: 560px) { .qdays { gap: 4px; } .qday { padding: 10px 2px; } .qday .pips { gap: 2px; } .qday .pip { width: 9px; height: 9px; } .qday .k { font-size: 11px; } }
table.recs td { vertical-align: top; white-space: normal; min-width: 132px; }
table.recs td b { font-size: 15px; }
table.recs td .passed { margin-left: 8px; font-size: 11.5px; padding: 1px 7px; font-style: normal; }
table.recs td .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
table.recs tbody th { text-align: left; white-space: nowrap; color: var(--ink); font-size: 13.5px; vertical-align: top; }
table.recs thead th:first-child { text-align: left; }
.kind { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 7px; border-radius: 999px; background: var(--raised); font-size: 12.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.kind svg { flex: none; }
.goal .to { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.goal .to b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.goal .to span { color: var(--ink2); }
.goalbar { height: 8px; border-radius: 4px; background: var(--grid); overflow: hidden; }
.goalbar i { display: block; height: 100%; min-width: 4px; border-radius: 4px; }
.goal .left { font-size: 13px; color: var(--ink2); }
.goal .left b { color: var(--ink); font-weight: 600; }
.passed { padding: 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; color: var(--up); background: var(--up-bg); align-self: center; }

/* the week's publishing: a pip for each video the day asks for, filled once it has gone out */
table.targets th, table.targets td { text-align: center; padding: 0 4px; }
table.targets .pubname { display: none; text-align: left; padding-left: 0; }   /* the channel's name again, only when this half sits under the other */
table.targets .pubname .chip { white-space: nowrap; }
table.targets thead th.today { font-weight: 700; color: var(--ink); }
table.targets td.today, table.targets th.today { width: 128px; white-space: nowrap; }
.togo { margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.togo.met { color: var(--up); }
.togo.none { margin-left: 0; font-weight: 500; color: var(--muted); }
@media (max-width: 650px) {   /* a phone: these come after the rules above, so that it is these that count */
  table.targets th, table.targets td { padding: 0 2px; }
  table.targets thead th { font-size: 11px; }
  table.targets td.today, table.targets th.today { width: auto; }
}
.pips { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; cursor: default; }
.pip { box-sizing: border-box; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); }
td.today .pip { width: 16px; height: 16px; }
.pips .extra { font-size: 11.5px; font-weight: 600; color: var(--ink2); }
@media (max-width: 720px) {
  .pips { gap: 3px; }
  .pip { width: 10px; height: 10px; }
  td.today .pip { width: 13px; height: 13px; }
}

/* tables */
.tablecard { padding: 6px 20px; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { padding: 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--border); }
th { color: var(--ink2); font-weight: 600; font-size: 12px; vertical-align: bottom; }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
th.l, td.l { text-align: left; }
tbody tr:last-child td { border-bottom: 0; }
tr.total td { font-weight: 700; border-top: 1px solid var(--axis); }
th button { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 600; font-size: 12px; color: var(--ink2); }
th button:hover, th[aria-sort] button { color: var(--ink); }
.vid { display: flex; align-items: center; gap: 12px; white-space: normal; min-width: 240px; max-width: 460px; }
.thumb { flex: none; width: 34px; height: 60px; border-radius: 6px; background: var(--raised); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid .t { font-weight: 600; }
.vid .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.chip { display: inline-flex; align-items: center; gap: 8px; }
.viewbar { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.viewbar .num { min-width: 54px; text-align: right; font-weight: 600; }
.viewbar .gain { color: var(--ink2); font-size: 12px; font-weight: 500; min-width: 38px; text-align: left; }
.viewbar .track { flex-grow: 1; height: 8px; }
.viewbar .fill { height: 8px; border-radius: 0 4px 4px 0; min-width: 3px; }
.narrow { display: none; }
@media (max-width: 720px) {
  .wide { display: none; }
  .narrow { display: inline; }
  .tablecard { padding: 6px 14px; }
  th, td { padding: 12px 8px; }
  .vid { min-width: 150px; gap: 10px; }
  .viewbar { min-width: 0; gap: 6px; }
  .viewbar .track { display: none; }
  .viewbar .num { min-width: 0; }
}
/* "stayed to watch": typed in by hand, because YouTube keeps it out of its API */
.staybtn { border: 0; background: none; min-height: 32px; min-width: 44px; padding: 0 8px; margin-right: -8px; border-radius: 6px; cursor: pointer; font-weight: 600; text-align: right; }
.staybtn:hover { background: var(--wash); }
.staybtn.none { font-weight: 500; font-size: 12.5px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); margin-right: 0; }
.staybtn.none:hover { color: var(--ink); }
.stayin { width: 62px; min-height: 32px; font: inherit; font-weight: 600; text-align: right; padding: 0 8px; border-radius: 6px; border: 1px solid var(--axis); background: var(--surface); color: var(--ink); }
.stayin[aria-invalid="true"] { border-color: var(--bad); }
@media (pointer: coarse) { .staybtn, .stayin { min-height: 44px; } }
.more { padding: 8px 0 10px; }
.linkbtn { border: 0; background: none; color: var(--ink2); cursor: pointer; padding: 6px 8px; border-radius: 6px; font-size: 12.5px; }
.linkbtn:hover { background: var(--wash); color: var(--ink); }

/* quest complete: a card in the middle of the screen, on whatever page is open, with confetti behind it */
.cheer { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(4,7,12,.62); animation: cheerin .18s ease-out; }
.cheerfx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cheercard { position: relative; width: min(460px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 28px 26px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--axis);
  box-shadow: 0 30px 80px rgba(0,0,0,.5); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; animation: cheerpop .5s cubic-bezier(.2,1.5,.4,1); }
.cheercard .ct { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.cheercard ul { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.cheercard li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; text-align: left; padding: 10px 14px; border-radius: 12px; background: var(--wash); font-size: 14px; }
.cheercard li b { color: var(--up); white-space: nowrap; }
.cheercard .cx { font-size: 46px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; color: var(--xp); }
.cheercard button { min-height: 46px; padding: 0 36px; border: 0; border-radius: 14px; background: var(--xp); color: #1b1300; font-weight: 800; font-size: 15px; cursor: pointer; }
.cheertick circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: cheerdraw .5s .1s ease-out forwards; }
.cheertick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: cheerdraw .35s .45s ease-out forwards; }
@keyframes cheerdraw { to { stroke-dashoffset: 0; } }
@keyframes cheerpop { from { transform: scale(.7); opacity: 0; } }
@keyframes cheerin { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cheer, .cheercard { animation: none; } .cheertick circle, .cheertick path { animation: none; stroke-dashoffset: 0; } }

/* period analytics */
.filters { display: flex; gap: 12px; flex-wrap: wrap; }
.kpis { padding: 0; overflow: hidden; display: flex; flex-wrap: wrap; }
.kpi { flex: 1 1 190px; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border); }
.kpi .value { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.kpi .extra { color: var(--ink2); font-size: 12.5px; }
.delta { font-size: 12.5px; color: var(--ink2); }
.delta b { color: var(--ink); font-weight: 600; }
.split { display: flex; flex-wrap: wrap; gap: 16px; }
.chartcard { flex: 2 1 560px; display: flex; flex-direction: column; gap: 12px; }
.sidecard { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink2); font-size: 13px; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 7px; }
.legend .key { color: var(--muted); }
.legend i.dash { width: 18px; height: 0; border-radius: 0; background: none; border-top: 2px dashed currentColor; }
.plot { position: relative; }
.plot svg { display: block; width: 100%; outline: none; }
.plot svg:focus-visible { box-shadow: 0 0 0 2px var(--axis); border-radius: 6px; }
.tick { fill: var(--muted); font-size: 11.5px; }
.endlabel { fill: var(--ink2); font-size: 12px; }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 6px 20px rgba(0,0,0,.22); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; z-index: 20; min-width: 150px; display: none; }
.tip .th { color: var(--ink2); margin-bottom: 4px; }
.tip .tr { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tip .tr i { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.tip .tr b { font-weight: 600; }
.tip .tr span { color: var(--ink2); }
.tip .tr.on span { color: var(--ink); font-weight: 600; }
.tip .tf { color: var(--muted); margin-top: 4px; }
.bars { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.bar-row { display: flex; flex-direction: column; gap: 5px; border-radius: 6px; padding: 2px 4px; margin: 0 -4px; }
.bar-row:hover, .bar-row:focus-visible { background: var(--wash); outline: none; }
.bar-row .top { display: flex; justify-content: space-between; gap: 8px; }
.bar-row .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .v { font-weight: 600; }
.bar-row .v span { color: var(--muted); font-weight: 400; margin-left: 6px; }
.bar-row .track { height: 8px; }
.bar-row .fill { height: 8px; border-radius: 0 4px 4px 0; min-width: 3px; background: var(--bar); }
.waiting { padding: 24px; display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; }
.waiting > svg { flex: none; color: var(--muted); }
.waiting .msg { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.waiting .msg b { font-size: 16px; font-weight: 700; }
.waiting .msg span { color: var(--ink2); }
.waiting .list { flex: 0 1 auto; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.waiting .list div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.waiting .list b { font-weight: 600; min-width: 100px; }
.waiting .list span { color: var(--ink2); }
.foot { color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* ticker: a number that has passed its previous high counts up, glows, then settles */
.tick { transition: color 1.4s ease; }
b.tick.up, span.tick.up { color: var(--up); transition: none; }
.plus { align-self: center; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; font-style: normal; line-height: 1.5;
  letter-spacing: 0; white-space: nowrap; color: var(--up); background: var(--up-bg); opacity: 0; transition: opacity .9s ease; }
.plus.up { opacity: 1; }
.plus.new { animation: pop .5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes pop { from { transform: translateY(6px) scale(.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tick, .plus { transition: none; } .plus.new { animation: none; } }
.foot b { color: var(--ink2); font-weight: 600; }
.setcard { padding: 4px 22px; }
.setrow { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--border); }
.setrow:first-child { border-top: 0; }
.setrow > svg { flex: none; }
.setrow .n { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.setrow .n b { font-size: 15px; }
.setrow .n span { font-size: 12.5px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 2px; flex: none; background: var(--seg); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.stepper button { width: 40px; height: 36px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink); }
.stepper button:hover { background: var(--wash); }
.stepper button:disabled { color: var(--axis); cursor: default; background: transparent; }
.stepper output { min-width: 80px; text-align: center; font-size: 13.5px; }
.stepper output span { color: var(--ink2); }
.plainbtn { flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--seg); cursor: pointer; font-weight: 600; font-size: 13px; }
.plainbtn:hover { background: var(--wash); }
@media (max-width: 560px) { .setcard { padding: 4px 16px; } }
.tablewrap { position: relative; }   /* keeps a table's hidden screen-reader labels inside its own scroll area: loose, they made the whole page scroll sideways */
@media (pointer: coarse) {   /* fingers: Android asks for 48px targets; 44 where a table row would grow too tall */
  .seg button { min-height: 48px; }
  th button, .linkbtn { min-height: 44px; }
  .linkbtn { padding: 6px 12px; }
  .stepper button { width: 48px; height: 48px; }
  .plainbtn { min-height: 48px; }
}

/* ---------- Before the app: welcome, log in, create an account, connect a channel ----------
   One narrow column in the middle of the page. No rail and no bottom bar here: there is nowhere to go yet. */
.gate { width: 100%; max-width: 440px; margin: 0 auto; padding: 32px 0 24px; display: flex; flex-direction: column; gap: 20px; }
.gate-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.gate-brand h1 { font-size: 28px; margin-top: 8px; }
.gate-brand p { margin: 0; color: var(--ink2); font-size: 15px; }
.gate-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.gate-card h2 { font-size: 19px; }
.gate-card p { margin: 0; color: var(--ink2); }
.gate-card form { display: flex; flex-direction: column; gap: 14px; }
.gate-tabs { display: flex; }
.gate-tabs button { flex: 1 1 0; justify-content: center; min-height: 40px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.field input { min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--axis); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
.field input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--ink); color: var(--page); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { opacity: .9; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost, .btn.google { background: var(--seg); color: var(--ink); border: 1px solid var(--axis); }
.gate-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; }
.gate-or::before, .gate-or::after { content: ""; flex: 1 1 0; height: 1px; background: var(--border); }
.gate-msg { padding: 10px 14px; border-radius: 10px; background: var(--wash); font-size: 13.5px; }
.gate-msg.bad { background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; }
.gate-small { font-size: 12.5px; color: var(--muted); }
.gate-card .linkbtn { align-self: center; text-decoration: underline; text-underline-offset: 2px; }
.gate-demo { align-self: center; font-size: 14px; text-decoration: underline; text-underline-offset: 2px; }
.gate-step { font-size: 12.5px; font-weight: 700; color: var(--xp); }
.gate-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.gate-list li { padding: 12px 14px; border-radius: 10px; background: var(--wash); font-size: 13.5px; color: var(--ink2); }
.gate-list b { color: var(--ink); }
.gate-stepper { align-self: center; }
.gate-stepper button { width: 56px; height: 52px; }
.gate-stepper output { min-width: 110px; font-size: 16px; }
.gate-foot { display: flex; align-items: center; justify-content: center; gap: 4px 12px; flex-wrap: wrap; font-size: 13px; }
a.plainbtn { display: inline-flex; align-items: center; text-decoration: none; }
.plainbtn.danger { color: var(--bad); }
.setrow .err { color: var(--bad); }
@media (max-width: 560px) { .gate { padding-top: 20px; } .gate-card { padding: 20px 16px; } }

/* ---------- Free and paid ----------
   A paid feature stays on the page for a free account, with a small lock and the word Pro: it is something to want, not
   something hidden. The accent is the XP gold, used only on the tag, never as a frame or a stripe. */
.protag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--raised); color: var(--xp); font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.protag svg { flex: none; }
.lockdot { position: absolute; top: 5px; left: 50%; margin-left: 8px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--xp); box-shadow: 0 0 0 2px var(--surface); }
.lockring { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--muted); }
.lockring.open { color: var(--xp); }
.upsell { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; max-width: 760px; }
.upsell h2 { font-size: 22px; letter-spacing: -.01em; }
.upsell p { margin: 0; color: var(--ink2); font-size: 14.5px; }
.upsell p.yours { color: var(--ink); font-weight: 600; }
.upsell-go { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 6px; }
.cheer .upsell { width: min(520px, 100%); box-shadow: 0 30px 80px rgba(0,0,0,.5); border-color: var(--axis); }
.cheer .upsell .linkbtn { align-self: center; }
.quests.shut .quest { grid-template-columns: 28px minmax(0, 1fr) auto; }
.quests.shut .quest:first-child { border-top: 0; }
.quests.shut .quest .body b { color: var(--ink2); }
th.ins, td.ins { width: 56px; padding-left: 4px; text-align: right; }
.bolt { position: relative; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--ink2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bolt:hover { background: var(--wash); color: var(--ink); }
.bolt .lockdot { top: -6px; left: auto; right: -6px; margin: 0; width: 17px; height: 17px; }

/* ---------- Account: plan and billing ---------- */
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--raised); color: var(--ink); font-size: 16px; font-weight: 700; cursor: pointer; display: inline-grid; place-items: center; }
.avatar:hover, .avatar[aria-current="page"] { border-color: var(--ink2); }
.avatar.big { cursor: default; }
.plancard { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.planhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }
.planname { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; }
.proside { display: flex; flex-direction: column; gap: 16px; padding-top: 18px; border-top: 1px solid var(--border); }
.prolist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.prolist li { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.prolist li div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prolist li span { font-size: 13px; color: var(--ink2); }
.prolist .lockring span { display: none; }
@media (max-width: 720px) { .prolist { grid-template-columns: minmax(0, 1fr); } }

/* ---------- The upload schedule: seven day buttons and a "videos a day" stepper ---------- */
.sched-edit { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.daypick { display: inline-flex; gap: 4px; }
.daypick button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.daypick button:hover { color: var(--ink); border-color: var(--axis); }
.daypick button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--page); }
.setrow.sched .n { flex-basis: 200px; }
.tgt-sum.rest b { font-size: clamp(28px, 7vw, 38px); }
.gate-opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 52px; padding: 10px 16px; justify-content: center; border-radius: 12px; border: 1px solid var(--border); background: var(--seg); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.opt:hover { border-color: var(--ink2); }
.opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt b { font-size: 15px; }
.opt span { font-size: 12.5px; color: var(--muted); }
.gate-plan { font-weight: 600; color: var(--ink) !important; }
.gate-card .sched-edit { justify-content: center; }
@media (pointer: coarse) { .daypick button { width: 42px; height: 42px; } }
@media (max-width: 400px) { .daypick { gap: 2px; } .daypick button { width: 38px; height: 38px; } }

/* the paid plans on the Account page: one after the other, each with its price, what it adds and its button */
.tierline { margin: 0; color: var(--ink2); font-size: 14px; }
.proside .planname { font-size: 21px; letter-spacing: -.01em; }
/* ====================================================================================================================
   The chain look. Everything from here down is the redesign of 24 November 2026: the shell (a sidebar on a wide screen,
   a bar along the bottom on a phone), the overview built around the streak and the calendar of upload days, the screens
   before the app, and the plan page. Rules above this line that name the same thing are older; these win.
   ==================================================================================================================== */
html { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
.display { font-family: var(--display); }
.wideonly { }
@media (max-width: 820px) { .wideonly { display: none !important; } }
@media (min-width: 821px) { .phoneonly { display: none !important; } }
.tablewrap { position: relative; }   /* keeps a table's hidden screen-reader labels inside its own scroll area */
.section-title h2 { font-size: 18px; }
.note { font-size: 13.5px; }
.label { font-size: 13.5px; }
.banner { border-radius: 14px; padding: 12px 16px; }
.banner.demo { background: var(--slab); color: var(--slab-ink); }
.banner.demo .plainbtn { background: #ffffff; color: #15161a; }
.empty { border-radius: 22px; }

/* ---------- buttons ---------- */
.btn { min-height: 52px; padding: 0 22px; border-radius: 16px; font-size: 16px; }
.btn.big { min-height: 56px; font-size: 17px; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.white { background: #ffffff; color: #15161a; }
.btn.fire { background: var(--fire); color: #15161a; }
.btn.ghost, .btn.google { background: var(--raised); color: var(--ink); border: 0; }
.plainbtn { min-height: 44px; border: 0; border-radius: 12px; background: var(--raised); font-weight: 700; font-size: 14px; }
.plainbtn:hover { background: var(--axis); }
.textbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--ink2); font: inherit; font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.textbtn:hover { color: var(--ink); }
.textbtn.danger { color: var(--bad); }
.seg { border: 0; border-radius: 12px; }
.seg button { border-radius: 9px; font-weight: 600; }
.stepper { border: 0; border-radius: 12px; }
.plusbadge { display: inline-flex; align-items: center; gap: 5px; flex: none; font-family: "Instrument Sans", system-ui, sans-serif; font-size: 11.5px; font-weight: 700; line-height: 1.4; letter-spacing: 0; padding: 3px 8px; border-radius: 9px; background: var(--blue); color: #ffffff; white-space: nowrap; }
.protag { background: var(--blue); color: #ffffff; border-radius: 9px; padding: 3px 9px 3px 7px; }
.lockring { background: var(--page); color: var(--ink2); width: 30px; height: 30px; }
.lockring.open { color: var(--xp-ink); }
.passed { border-radius: 9px; }
.reward { border-radius: 9px; }
.kind { border-radius: 9px; }
.avatar { border: 0; background: var(--ink); color: var(--page); }
.avatar.big { width: 48px; height: 48px; font-size: 18px; }

/* ---------- the shell: sidebar on a wide screen ---------- */
main { max-width: 1272px; margin: 0; padding: 28px 32px 56px 16px; gap: 18px; }
body:not(.railed) main { margin: 0 auto; padding: 0 20px; }
body.railed { padding-left: 248px; }
.rail { position: fixed; z-index: 15; left: 0; top: 0; bottom: 0; width: 248px; padding: 24px 16px; display: flex; flex-direction: column; gap: 6px; overflow: hidden auto; background: var(--page); }
.rail:empty { display: none; }
.rail .logo { display: flex; align-items: center; gap: 10px; padding: 0 10px 18px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.rail .logo svg, .headmark svg { display: block; flex: none; }
.rail .nv { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 46px; flex: none; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); font-weight: 600; font-size: 15px; text-align: left; cursor: pointer; }
.rail .nv:hover { background: var(--wash); }
.rail .nv[aria-current="page"] { background: var(--ink); color: var(--page); font-weight: 700; }
.rail .nv .ind { display: grid; place-items: center; flex: none; }
.rail .nv .lab { flex: 1 1 auto; min-width: 0; }
.rail .qleft { position: static; margin: 0; min-width: 22px; height: 22px; line-height: 22px; border-radius: 9px; box-shadow: none; background: var(--fire); color: #15161a; font-size: 12px; }
.rail .newdot { position: static; margin: 0; flex: none; border: 0; background: var(--fire); }
.rail .me { display: flex; align-items: center; gap: 12px; width: 100%; flex: none; margin-top: 18px; padding: 12px 14px; border: 0; border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.rail .me:hover, .rail .me[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--ink); }
.rail .me .av { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--page); font-weight: 700; }
.rail .me .who { display: flex; flex-direction: column; min-width: 0; }
.rail .me .who b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail .me .who span { font-size: 12.5px; color: var(--ink2); }
/* header: the date and when the numbers were read, over the page's name */
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.headmark { display: none; }
.headmain { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.head h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.1; letter-spacing: -.025em; }
.head .sub { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink2); }
.head .sub.late { color: var(--bad); }
.schedchip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.schedchip:hover { box-shadow: inset 0 0 0 2px var(--ink); }
@media (max-width: 1100px) { body.railed { padding-left: 220px; } .rail { width: 220px; padding: 24px 12px; } }
@media (max-width: 820px) {
  :root { --safe-t: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px)); --safe-b: max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px)); }
  main, body:not(.railed) main { padding: 0 20px 24px; gap: 14px; }
  body.railed { padding-left: 0; padding-bottom: calc(72px + var(--safe-b)); }
  .rail { top: auto; right: 0; width: auto; flex-direction: row; align-items: stretch; gap: 0; padding: 8px 6px calc(10px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--border); overflow: visible; -webkit-user-select: none; user-select: none; }
  .rail .logo { display: none; }
  .rail .nv { flex: 1 1 0; width: auto; min-width: 0; height: auto; min-height: 48px; flex-direction: column; justify-content: center; gap: 3px; padding: 0; border-radius: 0; font-size: 11.5px; color: var(--ink2); text-align: center; }
  .rail .nv, .rail .nv:hover, .rail .nv[aria-current="page"] { background: transparent; }
  .rail .nv[aria-current="page"] { color: var(--ink); }
  .rail .nv .ind { width: 52px; height: 28px; border-radius: 14px; }
  .rail .nv[aria-current="page"] .ind { background: var(--ink); color: var(--page); }
  .rail .nv:active .ind { background: var(--wash); }
  .rail .nv .lab { flex: none; }
  .rail .plusbadge { display: none; }
  .rail .qleft, .rail .newdot { position: absolute; top: -3px; left: 50%; margin-left: 12px; }
  .rail .qleft { min-width: 18px; height: 18px; line-height: 18px; font-size: 11px; box-shadow: 0 0 0 2px var(--surface); }
  .rail .newdot { box-shadow: 0 0 0 2px var(--surface); }
  .head { position: sticky; top: 0; z-index: 14; flex-wrap: nowrap; gap: 10px; margin: 0 -20px; padding: calc(14px + var(--safe-t)) 20px 10px; background: var(--page); border-bottom: 1px solid transparent; }
  .head.scrolled { border-bottom-color: var(--axis); }
  .headmark { display: block; flex: none; }
  .headmain { flex-direction: column-reverse; gap: 0; }
  .head h1 { flex-wrap: nowrap; font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1.3; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .head .sub { font-size: 12.5px; font-weight: 400; white-space: nowrap; }
  .head .upd > div { flex-wrap: nowrap; }
  .head .date, .head .cd, .head .err, .schedchip { display: none; }
}

/* ---------- the overview: the streak, today, and the chain ---------- */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.duo > *, .trio > * { min-width: 0; }
.streakcard { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 26px; background: var(--fire); color: #15161a; min-height: 320px; }
.streakcard.cold { background: var(--slab); color: var(--slab-ink); }
.streakcard .n { display: flex; align-items: baseline; gap: 14px; align-self: flex-start; font-family: var(--display); font-weight: 800; cursor: default; }
.streakcard .n b { font-size: 168px; line-height: .8; letter-spacing: -.06em; }
.streakcard .n span { font-size: 38px; line-height: 1; letter-spacing: -.025em; }
.streakcard .today { display: flex; align-items: center; gap: 14px; margin-top: auto; flex-wrap: wrap; }
.streakcard .say { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.streakcard .say b { font-size: 18px; }
.streakcard .say span { font-size: 15px; }
.streakcard .strip { display: none; }
.slots { display: flex; gap: 8px; flex-wrap: wrap; }
.slot { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; border: 3px dashed currentColor; }
.slot.on { border: 0; background: #15161a; color: #ffffff; }
.streakcard.cold .slot.on { background: var(--fire); color: #15161a; }
.chaincard { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 26px; background: var(--surface); }
.cardhead { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.cardhead h2 { font-size: 18px; }
.cardhead .note { font-size: 13.5px; color: var(--ink2); }
.wk, .chain { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.wk { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.wk .s { display: none; }
.chain i { display: block; height: 42px; border-radius: 11px; border: 2px solid var(--axis); }
.chain i.on { border: 0; background: var(--fire); }
.chain i.rest { border: 0; background: repeating-linear-gradient(135deg, var(--hatch-a) 0, var(--hatch-a) 4px, var(--hatch-b) 4px, var(--hatch-b) 8px); }
.chain i.next { border-style: dashed; }
.chain i.pre { border: 0; background: var(--wash); }
.chain i.today { border: 3px solid var(--ink); }
.chain i.today.part { background: linear-gradient(90deg, var(--fire) 0, var(--fire) 50%, var(--surface) 50%, var(--surface) 100%); }
.chainkey { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: auto; font-size: 13px; color: var(--ink2); }
.chainkey span { display: inline-flex; align-items: center; gap: 6px; }
.chainkey i { display: block; width: 12px; height: 12px; border-radius: 4px; border: 2px solid var(--axis); }
.chainkey i.on { border: 0; background: var(--fire); }
.chainkey i.rest { border: 0; background: repeating-linear-gradient(135deg, var(--hatch-a) 0, var(--hatch-a) 3px, var(--hatch-b) 3px, var(--hatch-b) 6px); }
.chainkey i.today { border: 2.5px solid var(--ink); }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 22px; background: var(--surface); border: 0; color: var(--ink); text-align: left; font: inherit; }
.stat .k { font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.stat .v { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.stat .v > b { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -.03em; }
.stat .d { font-size: 14px; font-weight: 600; color: var(--up); }
.stat .d.flat { color: var(--ink2); font-weight: 400; }
button.stat { cursor: pointer; gap: 10px; }
button.stat:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.lvlrow { display: flex; align-items: center; gap: 12px; }
.lvlnum { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--page); font-family: var(--display); font-weight: 800; font-size: 21px; }
.lvlrow > div { display: flex; flex-direction: column; min-width: 0; }
.lvlrow b { font-size: 17px; }
.lvlrow > div span { font-size: 13.5px; color: var(--ink2); }
.bar { height: 10px; border-radius: 5px; background: var(--raised); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 5px; background: var(--ink); }
.stat .foot1 { font-size: 13.5px; color: var(--ink2); }
/* what a paid plan adds, shown where it would be used: a blue card with the creator's own numbers in it */
.bluecard { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 26px; background: var(--blue); color: #ffffff; }
.bluecard h2 { font-size: 18px; }
.bluecard .pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border-radius: 14px; background: #ffffff; color: #1b2f9e; font-size: 12.5px; font-weight: 700; }
.bluecard .rows { display: flex; flex-direction: column; }
.bluecard .rows > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--blue-line); font-size: 15.5px; font-weight: 600; }
.bluecard .rows > div:first-child { border-top: 0; }
.bluecard .rows > div > span + span { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.bluecard .yours { margin: auto 0 0; font-size: 14.5px; line-height: 1.45; color: #eef1fe; }
.bluecard .k { font-size: 13px; font-weight: 600; color: #dce2fd; }
.bluecard .big { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.02; letter-spacing: -.025em; }
.bluecard p { margin: 0; font-size: 15px; line-height: 1.45; color: #eef1fe; }
.bluecard .btn { margin-top: 6px; }
.bluecard .linkbtn { color: #eef1fe; align-self: center; }
.upsell.bluecard { max-width: 760px; align-items: stretch; }
.upsell.bluecard .note { color: #dce2fd; }
.cheer .upsell.bluecard { width: min(520px, 100%); border: 0; }
.questcard { display: flex; flex-direction: column; gap: 4px; padding: 24px 24px 16px; border-radius: 26px; background: var(--surface); }
.questcard .quest:first-of-type { border-top: 0; }
.questcard .plainbtn { align-self: flex-start; margin-top: 6px; }
.listcard { display: flex; flex-direction: column; padding: 2px 16px; border-radius: 20px; background: var(--surface); }
.listcard > * { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 13px 0; border: 0; border-top: 1px solid var(--border); background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: none; }
.listcard > :first-child { border-top: 0; }
.listcard > button, .listcard > a { cursor: pointer; }
.listcard .t { flex: 1 1 auto; min-width: 0; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.listcard .x { font-size: 13.5px; color: var(--ink2); white-space: nowrap; }
.listcard .x.b { font-size: 13px; font-weight: 700; }
.subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin-top: 6px; }
.subhead b { font-size: 16px; }
.subhead span { font-size: 13px; color: var(--ink2); }
.center { text-align: center; }
.lockedcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 650px) {
  /* a phone: the streak stands on the page itself, today's videos beside it, and the nudge on a dark strip under them */
  .duo, .trio { gap: 14px; }
  .streakcard, .streakcard.cold { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 12px; padding: 0; min-height: 0; border-radius: 0; background: none; color: var(--ink); }
  .streakcard .n { gap: 10px; align-self: auto; }
  .streakcard .n b { font-size: 104px; line-height: .84; letter-spacing: -.05em; }
  .streakcard .n span { font-size: 24px; line-height: 1.05; letter-spacing: -.02em; }
  .streakcard .today { flex-direction: column-reverse; align-items: flex-end; gap: 6px; margin: 0; padding-bottom: 4px; }
  .streakcard .say b { font-size: 13px; font-weight: 600; color: var(--ink2); }
  .streakcard .say span { display: none; }
  .streakcard .strip { display: flex; align-items: center; gap: 10px; flex: 1 1 100%; padding: 12px 14px; border-radius: 14px; background: var(--slab); color: var(--slab-ink); font-size: 14px; line-height: 1.35; }
  .streakcard .strip svg { flex: none; }
  .slots { gap: 6px; justify-content: flex-end; }
  .slot { width: 40px; height: 40px; border-radius: 11px; border-width: 2.5px; }
  .slot.on, .streakcard.cold .slot.on { background: var(--fire); color: #15161a; }
  .chaincard { gap: 10px; padding: 16px; border-radius: 20px; }
  .cardhead h2 { font-size: 15px; }
  .cardhead .note { font-size: 12.5px; }
  .wk, .chain { gap: 5px; }
  .wk { font-size: 11px; }
  .wk .l { display: none; }
  .wk .s { display: inline; }
  .chain i { height: 34px; border-radius: 9px; }
  .chain i.today { border-width: 2.5px; }
  .chainkey { gap: 4px 14px; font-size: 12px; }
  .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .trio > button.stat { grid-column: 1 / -1; }
  .stat { padding: 14px 16px; border-radius: 18px; gap: 2px; }
  .stat .k { font-size: 12.5px; }
  .stat .v > b { font-size: 28px; letter-spacing: -.02em; }
  .stat .d { font-size: 12.5px; }
  .lvlrow b { font-size: 15px; }
  .bar { height: 8px; }
  .bluecard, .questcard { padding: 20px; border-radius: 22px; }
}

/* ---------- cards and panels that were there before, in the new look ---------- */
.card { border: 0; border-radius: 22px; }
.launches, .goals, .kpis, .achs, .shelf, .board { border-radius: 22px; }
.launch .views b, .kpi .value, .goal .to b, table.chanrows .v b, .ach.rec .big, .pair b { font-family: var(--display); }
.launch .cardhead { margin-bottom: 2px; }
.change.ahead b, .change.ahead svg { color: var(--up); }
.bignum b, .tgt-sum b { font-family: var(--display); font-weight: 800; }
.lvlcard { border-radius: 26px; }
.lvlcard .name { font-family: var(--display); font-weight: 800; font-size: 34px; }
.lvlcard .name span { font-family: "Instrument Sans", system-ui, sans-serif; color: var(--xp-ink); }
.xpbar i { background: var(--ink); }
.gate-step { color: var(--xp-ink); }
.cheercard { border: 0; border-radius: 26px; }
.cheercard .ct, .cheercard .cx { font-family: var(--display); }
.cheercard .cx { color: var(--xp-ink); }
.cheercard button { background: var(--fire); color: #15161a; border-radius: 16px; min-height: 52px; }
.qday.today { box-shadow: inset 0 0 0 2px var(--ink); }
.qleft { background: var(--fire); color: #15161a; }
.hype { border: 0; border-radius: 18px; }
.hype::before { border: 0; }
.hype .line { font-family: var(--display); }
.tip { border: 0; border-radius: 12px; }
.setcard { border-radius: 20px; }
.daypick button { border-radius: 11px; border: 2px solid var(--axis); width: 40px; height: 40px; }
.daypick button[aria-pressed="true"] { background: var(--fire); border-color: var(--fire); color: #15161a; }
@media (pointer: coarse) { .daypick button { width: 44px; height: 44px; } }
@media (max-width: 400px) { .daypick { gap: 2px; } .daypick button { width: 38px; height: 40px; } }

/* ---------- account: the plan you are on, and the ones above it ---------- */
.acct { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; align-items: start; }
.acct > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 1100px) { .acct { grid-template-columns: minmax(0, 1fr); } }
.whorow { display: flex; align-items: center; gap: 12px; padding: 4px 0 2px; }
.whorow > div { display: flex; flex-direction: column; min-width: 0; }
.whorow b { font-size: 17px; }
.whorow > div span { font-size: 13px; color: var(--ink2); overflow-wrap: anywhere; }
.planrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 20px; background: var(--surface); }
.planrow > div { display: flex; flex-direction: column; gap: 2px; }
.planrow .k { font-size: 13px; font-weight: 600; color: var(--ink2); }
.planrow .planname { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.05; letter-spacing: -.02em; }
.planrow > span { max-width: 220px; font-size: 13.5px; line-height: 1.4; color: var(--ink2); text-align: right; }
.slabcard { display: flex; flex-direction: column; gap: 16px; padding: 22px 18px 18px; border-radius: 22px; background: var(--slab); color: var(--slab-ink); }
.slabcard .top { display: flex; flex-direction: column; gap: 8px; }
.slabcard .tier { font-size: 13px; font-weight: 700; color: var(--fire); }
.slabcard .pitch { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.02; letter-spacing: -.025em; }
.slabcard .line { font-size: 14.5px; line-height: 1.45; color: var(--slab-ink2); }
.slabcard ul { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--slab-line); display: flex; flex-direction: column; gap: 14px; }
.slabcard li { display: flex; align-items: flex-start; gap: 12px; }
.slabcard li svg { flex: none; margin-top: 1px; color: var(--fire); }
.slabcard li div { display: flex; flex-direction: column; gap: 2px; }
.slabcard li b { font-size: 15.5px; }
.slabcard li span { font-size: 13.5px; line-height: 1.4; color: var(--slab-ink2); }
.slabcard .fine { font-size: 12.5px; line-height: 1.45; color: var(--slab-ink2); text-align: center; }
.slabcard .btn.ghost { background: var(--slab-line); color: var(--slab-ink); }
.tiercard { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 20px; background: var(--surface); }
.tiercard.soon { background: var(--blue-bg); color: var(--blue-ink); }
.tiercard .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tiercard .top b { font-size: 15.5px; }
.tiercard .top span { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.tiercard p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.tiercard .plainbtn { align-self: flex-start; margin-top: 4px; }
.tiercard.soon .plainbtn { background: #ffffff; color: #1b2f9e; }
.tiercard .fine { font-size: 12.5px; opacity: .85; }

/* ---------- the screens before the app: welcome, connect, the opening questions ----------
   One column, as wide as a phone, as tall as the screen: the question at the top, the way on at the bottom. */
.onb { width: 100%; max-width: 440px; min-height: 100vh; margin: 0 auto; padding: 28px 4px 24px; display: flex; flex-direction: column; gap: 22px; }
.onb-logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.onb-top { display: flex; flex-direction: column; gap: 10px; }
.onb-prog { display: flex; gap: 6px; }
.onb-prog i { flex: 1 1 0; height: 10px; border-radius: 5px; background: var(--axis); }
.onb-prog i.on { background: var(--fire); }
.onb-top .k { font-size: 13px; font-weight: 600; color: var(--ink2); }
.onb-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0; border: 0; background: none; color: var(--ink2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.onb-back:hover { color: var(--ink); }
.onb-q { display: flex; flex-direction: column; gap: 10px; }
.onb h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1.02; letter-spacing: -.03em; }
.onb h1.huge { font-size: 54px; line-height: .98; }
.onb .lead { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink2); }
.onb-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: var(--surface); }
.onb-card .k { font-size: 13px; font-weight: 600; color: var(--ink2); }
.onb-card .chain { gap: 6px; }
.onb-card .chain i { height: 38px; border-radius: 10px; }
.onb-card .wk { gap: 6px; font-size: 11.5px; }
.onb-card .wk .l { display: none; }
.onb-card .wk .s { display: inline; }
.onb-rows { padding: 4px 18px; gap: 0; }
.onb-rows > div { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); }
.onb-rows > div:first-child { border-top: 0; }
.onb-rows svg { flex: none; margin-top: 1px; }
.onb-rows > div > div { display: flex; flex-direction: column; gap: 2px; }
.onb-rows b { font-size: 15.5px; }
.onb-rows span { font-size: 14px; line-height: 1.4; color: var(--ink2); }
.bluetip { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--blue-bg); color: var(--blue-ink); font-size: 14px; line-height: 1.4; }
.bluetip svg { flex: none; }
.onb-foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.onb-foot .fine, .onb .fine { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink2); text-align: center; }
.onb-foot .textbtn { align-self: center; }
.onb .gate-msg { border-radius: 14px; }
.onb-big { display: flex; flex-direction: column; gap: 8px; }
.onb-big .k { font-size: 15px; font-weight: 600; color: var(--ink2); }
.onb-big .n { display: flex; align-items: baseline; gap: 12px; font-family: var(--display); font-weight: 800; }
.onb-big .n b { font-size: 124px; line-height: .86; letter-spacing: -.05em; color: var(--fire); }
.onb-big .n span { font-size: 34px; line-height: 1; letter-spacing: -.02em; }
.onb-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.onb-3 div { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; background: var(--surface); }
.onb-3 b { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; }
.onb-3 span { font-size: 12.5px; color: var(--ink2); }
.picks { display: flex; flex-direction: column; gap: 12px; }
.picks.tight { gap: 10px; }
.pick { display: flex; align-items: center; gap: 18px; width: 100%; padding: 18px; border: 0; border-radius: 20px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 2px transparent; }
.pick:hover, .pick[aria-pressed="true"] { box-shadow: inset 0 0 0 2.5px var(--ink); }
.pick > div:last-child, .pick > .body { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.pick b { font-family: var(--display); font-size: 22px; letter-spacing: -.01em; }
.pick span { font-size: 14px; line-height: 1.4; color: var(--ink2); }
.pick .shape { position: relative; flex: none; width: 60px; height: 60px; }
.pick .shape i { position: absolute; display: block; border-radius: 8px; }
.picks.tight .pick { gap: 14px; min-height: 68px; padding: 12px 18px; border-radius: 18px; }
.picks.tight .pick b { font-family: inherit; font-size: 17px; letter-spacing: 0; }
.picks.tight .pick span { font-size: 13.5px; }
.picks.tight .pick svg { flex: none; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid2 .pick { justify-content: center; min-height: 64px; padding: 10px 12px; border-radius: 18px; font-weight: 700; font-size: 16px; text-align: center; }
.grid2 .pick.wide { grid-column: 1 / -1; }
.sched { gap: 16px; padding: 18px 14px; }
.sched .from { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--blue-ink); }
.daybtns { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.daybtns button { height: 56px; min-width: 0; padding: 0; border-radius: 14px; border: 2px solid var(--axis); background: var(--surface); color: var(--ink2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.daybtns button[aria-pressed="true"] { border-color: var(--fire); background: var(--fire); color: #15161a; font-weight: 700; }
.perday { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.perday > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.perday b { font-size: 15.5px; }
.perday span { font-size: 13px; color: var(--ink2); }
.perday .step { display: flex; align-items: center; gap: 4px; }
.perday .step button { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--axis); background: var(--surface); color: var(--ink); font: inherit; font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; }
.perday .step button:disabled { color: var(--axis); cursor: default; }
.perday .step output { width: 40px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 28px; }
.promise { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 20px; background: var(--slab); color: var(--slab-ink); }
.promise .k { font-size: 13px; font-weight: 600; color: var(--slab-ink2); }
.promise b { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.promise .slots { margin-top: 6px; }
.promise .slot { width: 44px; height: 44px; border-radius: 12px; border: 2.5px dashed #8b8e99; }
.promise .slot.on { border: 0; background: var(--fire); color: #15161a; }
/* the last screen is the streak's own colour, edge to edge */
body.onfire { background: var(--fire); }
.onb.done { color: #15161a; gap: 20px; padding-top: 36px; }
.onb.done .k { font-size: 15px; font-weight: 700; }
.onb.done h1 { font-size: 60px; line-height: .94; letter-spacing: -.035em; }
.onb.done .onb-card { gap: 14px; border-radius: 22px; background: #ffffff; color: #15161a; }
.onb.done .onb-card .lvlnum { width: 58px; height: 58px; font-size: 26px; background: #15161a; color: #ffffff; }
.onb.done .onb-card .lvlrow > div { flex: 1 1 auto; gap: 6px; }
.onb.done .onb-card .lvlhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.onb.done .onb-card .lvlhead span, .onb.done .onb-card p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #54565f; }
.onb.done .bar { background: #e7e5de; }
.onb.done .bar i { background: #15161a; }
.onb.done .promise { background: #15161a; color: #ffffff; border-radius: 22px; padding: 18px; gap: 12px; }
.onb.done .promise b { font-size: 24px; line-height: 1.15; }
.onb.done .btn { background: #15161a; color: #ffffff; }
.onb.done .fine { color: #15161a; }
/* the email form, for when an email service is connected */
.onb form { display: flex; flex-direction: column; gap: 14px; }
.field input { border-radius: 14px; border: 2px solid var(--axis); min-height: 52px; }
@media (max-width: 400px) { .onb h1.huge { font-size: 46px; } .onb.done h1 { font-size: 50px; } .daybtns { gap: 4px; } .daybtns button { font-size: 12.5px; } }
@media (min-width: 821px) { .onb { min-height: calc(100vh - 0px); padding-top: 48px; padding-bottom: 40px; } }
@media (prefers-reduced-motion: reduce) { .head { transition: none; } }
.shape.shorts i { left: 13px; top: 0; width: 34px; height: 60px; background: var(--fire); }
.shape.long i { left: 0; top: 13px; width: 60px; height: 34px; background: var(--ink); }
.shape.both i { left: 0; top: 17px; width: 44px; height: 26px; border-radius: 7px; background: var(--ink); }
.shape.both i + i { left: auto; right: 0; top: 5px; width: 28px; height: 50px; background: var(--fire); box-shadow: 0 0 0 3px var(--surface); }
.pick > svg { flex: none; }
.onb-card .cardhead b { font-size: 22px; letter-spacing: -.02em; }
.bluecard.upsell p.yours { color: #ffffff; }
.fine .linkbtn { padding: 0; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
.onb .btn:disabled { opacity: .4; }
.promise .slots { justify-content: flex-start; }
.onb.done .onb-card .lvlhead { flex-wrap: wrap; gap: 0 10px; }
.onb.done .onb-card .lvlhead b, .onb.done .onb-card .lvlhead span { white-space: nowrap; }

/* ---------- the first view ----------
   The overview is laid out so one screen holds the lot: on a wide screen the streak, the chain and the numbers share
   the top row, and the newest video and today's quests fit under them without scrolling. The content runs as wide
   as the window allows; the chain's tiles follow the window's height so a short laptop screen still shows the row below. */
main { max-width: 1688px; padding-top: 22px; }
.hometop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hometop > * { min-width: 0; }
.hometop > .trio { grid-column: 1 / -1; }
.streakcard { min-height: 0; padding: 20px 28px 20px; gap: 10px; }   /* tighter since the check-in line joined it: the card must not push the first view down */
.streakcard .n { flex-wrap: wrap; }
.streakcard .n b { font-size: clamp(104px, 8.2vw, 160px); }
.streakcard .n span { font-size: clamp(26px, 2.1vw, 38px); }
@media (min-width: 821px) {
  .chain i { height: clamp(28px, 4.4vh, 42px); }
  .chaincard { padding: 22px 24px; }
}
@media (min-width: 1280px) {
  .hometop { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, .9fr); }
  .hometop > .trio { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr auto; gap: 12px; }
  .hometop > .trio > button.stat { grid-column: 1 / -1; }
  .hometop .stat { padding: 16px 18px; justify-content: center; }
  .hometop .stat .v > b { font-size: 32px; }
  .hometop .stat .d { font-size: 13px; }
}
@media (max-width: 820px) { main { padding-top: 0; } }
@media (max-width: 650px) {
  .hometop { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .streakcard { padding: 0; }
  .streakcard .n b { font-size: 104px; }
  .streakcard .n span { font-size: 24px; }
}
/* the AI-insight button's lock sits on the button's corner: the cell leaves room for it, so the table never scrolls for it */
.tablecard th.ins, .tablecard td.ins { width: 58px; padding-right: 8px; }
.bolt { border: 0; background: var(--page); border-radius: 12px; }
.bolt .lockdot { top: -5px; right: -6px; width: 17px; height: 17px; background: var(--blue); color: #ffffff; box-shadow: 0 0 0 2px var(--surface); }
.listcard .danger .t { color: var(--bad); }
@media (min-width: 651px) {   /* a few tiles: the words sit beside them, and the card stays short */
  .streakcard .today.few { flex-wrap: nowrap; }
  .streakcard .today.few .slots { flex: none; }
}

/* ---------- one video in depth ---------- */
.vhead { display: flex; align-items: flex-start; gap: 20px; padding: 20px; border-radius: 26px; }
.vthumb { display: grid; place-items: center; flex: none; width: 240px; height: 135px; border-radius: 14px; background: var(--raised); color: var(--muted); overflow: hidden; }
.vthumb.tall { width: 96px; height: 170px; }
.vthumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vhead .body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vhead .who { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.vhead h2 { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.vhead .facts { font-size: 14px; color: var(--ink2); }
.vhead .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.vstats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.vstats .stat { padding: 16px 18px; }
.vstats .stat .v > b { font-size: 30px; }
.vstats .stat .d { font-size: 13px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.vgrid > * { min-width: 0; }
.vcard { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border-radius: 22px; }
.vcard .bar-row .fill { background: var(--ink); border-radius: 4px; }
.aiask { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-radius: 18px; background: var(--blue-bg); color: var(--blue-ink); font: inherit; text-align: left; cursor: pointer; }
.aiask > svg { flex: none; }
.aiask .t { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.aiask .t b { font-size: 15px; }
.aiask .t span { font-size: 13px; }
.vdesc { margin: 0; max-height: 220px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; color: var(--ink2); }
.vtags { display: flex; gap: 6px; flex-wrap: wrap; }
.vid a.t:hover, .launch a.t:hover { text-decoration: underline; }
@media (max-width: 650px) {
  .vhead { gap: 14px; padding: 16px; border-radius: 20px; }
  .vthumb { width: 124px; height: 70px; border-radius: 10px; }
  .vthumb.tall { width: 68px; height: 121px; }
  .vhead h2 { font-size: 20px; }
  .vhead .acts .plainbtn { font-size: 13px; padding: 0 12px; }
  .vstats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vstats .stat { padding: 14px 16px; }
  .vstats .stat .v > b { font-size: 24px; }
  .vgrid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .vcard { padding: 16px; border-radius: 20px; }
}

/* ====================================================================================================================
   The landing page (public/index.html, #landing): what a visitor who is not signed in sees. theme.js puts "app" on
   <html> for someone who is signed in or in the demo; without it the landing shows and the app's own parts are hidden.
   ==================================================================================================================== */
html.app #landing { display: none; }
html:not(.app) #app, html:not(.app) #nav, html:not(.app) #tip { display: none; }
html:not(.app) body { padding: 0; background: var(--page); }
.land { max-width: 1240px; margin: 0 auto; padding: 0 28px 40px; display: flex; flex-direction: column; gap: 72px; }
.land h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.04; letter-spacing: -.03em; }
.land h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.land p { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink2); }
.land-top { display: flex; align-items: center; gap: 12px 28px; padding: 20px 0 0; }
.land-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.land-brand:hover { text-decoration: none; }
.land-links { display: flex; gap: 24px; margin-left: 12px; font-size: 15px; font-weight: 600; color: var(--ink2); }
.land-links a:hover { color: var(--ink); text-decoration: none; }
.land-in { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.land-in .btn { min-height: 44px; font-size: 15px; border-radius: 14px; }
.land-in .textbtn { text-decoration: none; }
.land-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; margin-top: -24px; }
.land-pitch { display: flex; flex-direction: column; gap: 20px; }
.land-eyebrow { font-size: 15px; font-weight: 600; color: var(--xp-ink); }
.land h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5.4vw, 80px); line-height: .96; letter-spacing: -.035em; }
.land-pitch > p { font-size: 19px; max-width: 34em; }
.land-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.land-cta .btn { padding: 0 28px; }
.land-fine { font-size: 13.5px; color: var(--ink2); }
.land-shot { display: flex; flex-direction: column; gap: 16px; }
.shot-streak { display: flex; flex-direction: column; gap: 22px; padding: 26px 28px; border-radius: 26px; background: var(--fire); color: #15161a; }
.shot-streak .n { display: flex; align-items: baseline; gap: 14px; font-family: var(--display); font-weight: 800; }
.shot-streak .n b { font-size: clamp(96px, 9vw, 140px); line-height: .8; letter-spacing: -.06em; }
.shot-streak .n span { font-size: clamp(24px, 2.2vw, 34px); line-height: 1; letter-spacing: -.025em; }
.shot-streak .row { display: flex; align-items: center; gap: 8px; }
.shot-streak .slot { flex: none; width: 48px; height: 48px; border-radius: 13px; }
.shot-streak .row > div { display: flex; flex-direction: column; gap: 2px; margin-left: 6px; }
.shot-streak .row b { font-size: 17px; }
.shot-streak .row span { font-size: 14.5px; }
.shot-chain { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border-radius: 26px; background: var(--surface); }
.shot-chain .chain i { height: 36px; }
.shot-chain h2 { font-family: inherit; font-weight: 700; font-size: 18px; line-height: 1.3; letter-spacing: 0; }
.land-slab { display: flex; flex-direction: column; gap: 16px; padding: 44px 48px; border-radius: 30px; background: var(--slab); color: var(--slab-ink); }
.land-slab h2 { font-size: clamp(34px, 4.2vw, 56px); }
.land-slab p { max-width: 46em; font-size: 18px; color: var(--slab-ink2); }
.land-why { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); gap: 24px 48px; align-items: start; }
.land-why > div { display: flex; flex-direction: column; gap: 14px; max-width: 40em; }
.land-why p { font-size: 20px; line-height: 1.45; color: var(--ink); }
.land-sign { font-size: 14px; font-weight: 600; color: var(--ink2); }
.land-block { display: flex; flex-direction: column; gap: 24px; }
.land-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.land-steps article, .land-feats article { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 24px; background: var(--surface); }
.land-steps .num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--fire); color: #15161a; font-family: var(--display); font-weight: 800; font-size: 22px; }
.land-steps p, .land-feats p { font-size: 15.5px; }
.land-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mini-list { display: flex; flex-direction: column; margin-top: 6px; padding: 2px 16px; border-radius: 16px; background: var(--page); }
.mini-list div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--axis); font-size: 14.5px; font-weight: 600; }
.mini-list div:first-child { border-top: 0; }
.mini-list b { font-size: 13px; white-space: nowrap; color: var(--blue-ink); }
.mini-level { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 14px 16px; border-radius: 16px; background: var(--page); }
.mini-level > div { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.mini-level b { font-size: 15px; }
.land-price { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.land-price .early p { max-width: 44em; }
.land-price .k { font-size: 13.5px; font-weight: 700; }
.land-price .early { display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 28px; background: var(--fire); color: #15161a; }
.land-price .early .headline { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3.6vw, 46px); line-height: 1; letter-spacing: -.03em; }
.land-price .early p { color: #15161a; }
.land-price .early .keep { font-weight: 700; font-size: 18px; }
.land-price .early .btn { align-self: flex-start; margin-top: 6px; background: #15161a; color: #ffffff; padding: 0 28px; }
.land-price .later { display: flex; flex-direction: column; gap: 0; padding: 26px 28px 12px; border-radius: 28px; background: var(--surface); }
.land-price .later .k { color: var(--ink2); padding-bottom: 6px; }
.land-price .later div { display: flex; flex-direction: column; gap: 3px; padding: 14px 0; border-top: 1px solid var(--border); }
.land-price .later b { font-size: 16.5px; }
.land-price .later span:not(.k) { font-size: 14.5px; line-height: 1.45; color: var(--ink2); }
.land-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 36px; }
.land-trust div { display: flex; flex-direction: column; gap: 4px; }
.land-trust b { font-size: 16.5px; }
.land-trust span { font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
.land-last { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 44px 48px; border-radius: 30px; background: var(--blue-bg); color: var(--blue-ink); }
.land-last h2 { font-size: clamp(34px, 4.2vw, 56px); }
.land-last .btn { background: var(--blue); color: #ffffff; }
.land-last .btn.line { background: transparent; color: var(--blue-ink); box-shadow: inset 0 0 0 2px var(--blue-ink); }
.land-foot { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--axis); font-size: 13px; color: var(--ink2); }
.land-foot span:first-child { font-weight: 700; color: var(--ink); }
@media (max-width: 980px) {
  .land { gap: 56px; padding: 0 20px 32px; }
  .land-links { display: none; }
  .land-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: -16px; }
  .land-why { grid-template-columns: minmax(0, 1fr); }
  .land-steps, .land-trust { grid-template-columns: minmax(0, 1fr); }
  .land-price { grid-template-columns: minmax(0, 1fr); }
  .land-slab, .land-last { padding: 32px 26px; border-radius: 26px; }
}
@media (max-width: 650px) {
  .land { gap: 44px; }
  .land-top { padding-top: 14px; }
  .land-brand { font-size: 18px; }
  .land-in .textbtn { display: none; }
  .land-pitch > p { font-size: 17px; }
  .land-cta .btn { flex: 1 1 100%; }
  .land-feats { grid-template-columns: minmax(0, 1fr); }
  .land-why p { font-size: 18px; }
  .land-price .early { padding: 24px; }
  .land-price .early .btn { align-self: stretch; }
  .shot-streak { padding: 22px; gap: 18px; }
  .shot-chain { padding: 18px; }
  .shot-streak .row b { font-size: 15.5px; }
  .shot-streak .row span { font-size: 13.5px; }
}

/* ---------- the admin panel ---------- */
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.adm-tiles .stat { padding: 16px 18px; }
.adm-tiles .stat .v > b { font-size: 32px; }
.adm-who { display: flex; flex-direction: column; gap: 2px; min-width: 200px; white-space: normal; }
.adm-who b { font-size: 14.5px; overflow-wrap: anywhere; }
.adm-who span { font-size: 12.5px; color: var(--muted); }
.adm-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 8px; background: var(--raised); font-size: 11.5px; font-weight: 700; color: var(--ink2); vertical-align: 1px; }
.adm-tag.hot { background: var(--blue-bg); color: var(--blue-ink); }
table.adm td { vertical-align: top; white-space: normal; text-align: left; }
table.adm th { text-align: left; }
table.adm select { min-height: 36px; padding: 0 8px; border-radius: 10px; border: 2px solid var(--axis); background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; }
.adm-chan { display: flex; flex-direction: column; gap: 1px; }
.adm-chan span { font-size: 12.5px; color: var(--muted); }
.shot-streak .slot.on { background: #15161a; color: #ffffff; }

/* ---------- the privacy and terms pages (public/privacy.html, public/terms.html) ---------- */
body.legal-page { padding: 0; }
.legal { max-width: 800px; margin: 0 auto; padding: 0 24px 40px; display: flex; flex-direction: column; gap: 36px; }
.legal main { max-width: none; margin: 0; padding: 0; display: block; }
.legal h1 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: clamp(38px, 6vw, 56px); line-height: 1; letter-spacing: -.03em; }
.legal h2 { margin: 34px 0 10px; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.015em; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.55; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .when { color: var(--ink2); font-size: 14.5px; margin-bottom: 24px; }
.legal main a, .land-foot a, .fine a { text-decoration: underline; text-underline-offset: 2px; }
.legal .land-in .btn { text-decoration: none; }

/* the founder's note on the landing page: a quote, with a round frame for the headshot */
.land-quote { display: flex; flex-direction: column; gap: 14px; }
.land-quote figure { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 44px; align-items: start; margin: 0; padding: 48px 56px 44px; border-radius: 30px; background: var(--surface); }
.land-face { display: grid; place-items: center; width: 148px; height: 148px; border-radius: 50%; object-fit: cover; background: var(--page); box-shadow: inset 0 0 0 2px var(--axis); color: var(--muted); font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -.02em; }
.land-quote figure > div { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.land-quote figure > div::before { content: "“"; display: block; height: 58px; font-family: var(--display); font-weight: 800; font-size: 170px; line-height: .78; color: var(--fire); }
.land-quote blockquote { display: flex; flex-direction: column; gap: 16px; margin: 0; max-width: 42em; }
.land-quote blockquote p { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2vw, 27px); line-height: 1.36; letter-spacing: -.012em; color: var(--ink); }
.land-quote figcaption { display: flex; flex-direction: column; gap: 2px; }
.land-quote figcaption b { font-size: 17px; }
.land-quote figcaption span { font-size: 14.5px; color: var(--ink2); }
@media (max-width: 820px) {
  .land-quote figure { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 30px 24px 28px; border-radius: 26px; }
  .land-face { width: 96px; height: 96px; font-size: 28px; }
  .land-quote figure > div { gap: 18px; }
  .land-quote figure > div::before { height: 44px; font-size: 130px; }
}

/* the landing page's questions: one line each, opening in place */
.land-main { display: contents; }
.shot-chain .cardhead b { font-size: 18px; }
.land-faq { display: flex; flex-direction: column; padding: 4px 28px; border-radius: 26px; background: var(--surface); }
.land-faq details { border-top: 1px solid var(--border); }
.land-faq details:first-of-type { border-top: 0; }
.land-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.land-faq summary::-webkit-details-marker { display: none; }
.land-faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--page); font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 600; font-size: 20px; line-height: 32px; text-align: center; }
.land-faq details[open] summary::after { content: "−"; }
.land-faq p { max-width: 46em; padding: 0 0 22px; font-size: 16.5px; color: var(--ink2); }
@media (max-width: 650px) { .land-faq { padding: 2px 18px; } .land-faq summary { font-size: 17px; padding: 16px 0; } }
/* the demo: how to leave it */
.banner.demo .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.banner.demo .plainbtn.quiet { background: transparent; color: var(--slab-ink); box-shadow: inset 0 0 0 2px var(--slab-line); }
.rail button.logo { border: 0; background: none; color: inherit; cursor: pointer; text-align: left; }

/* ---------- the channel report ---------- */
.loader { display: flex; flex-direction: column; gap: 12px; font-size: 15.5px; font-weight: 600; }
.loadbar { height: 10px; border-radius: 5px; background: var(--axis); overflow: hidden; }
.loadbar i { display: block; width: 38%; height: 100%; border-radius: 5px; background: var(--fire); animation: loadslide 1.6s ease-in-out infinite alternate; }
@keyframes loadslide { from { transform: translateX(-20%); } to { transform: translateX(185%); } }
@media (prefers-reduced-motion: reduce) { .loadbar i { animation: none; width: 100%; opacity: .5; } }
.slabcard .loadbar { background: var(--slab-line); }
.repask { max-width: 760px; }
.repask .pitch, .rephead .pitch { margin: 0; }
.rephead { gap: 12px; padding: 30px 32px; border-radius: 26px; }
.rephead .pitch { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; }
.rephead .line { margin: 0; max-width: 52em; font-size: 16.5px; }
.reptext { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink2); }
.vcard h3 { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.repscore { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.repscore b { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: .95; letter-spacing: -.04em; }
.repscore span { flex: 1 1 200px; font-size: 14px; color: var(--ink2); }
.replist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--ink2); }
.repweek { margin: 0; padding: 20px 24px 20px 46px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.45; }
.repweek li::marker { font-family: var(--display); font-weight: 800; }
.vcard .bluetip { font-size: 14.5px; }
@media (max-width: 650px) { .rephead { padding: 22px 20px; border-radius: 22px; } .repscore b { font-size: 44px; } }
.onb.done .textbtn { color: #15161a; }
.land-note { font-size: 14.5px; line-height: 1.5; color: var(--ink2); margin: 0; }
.land-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- the first screen while the app loads ---------- */
.bootload { min-height: 76vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.bootload b { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.bootload .loadbar { width: 260px; max-width: 70vw; margin-top: 6px; }
.bootload span { font-size: 15.5px; font-weight: 600; color: var(--ink2); min-height: 1.4em; }
.cardhead .note .checked { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; font-weight: 600; color: var(--ink); }
.cardhead .note .checked svg { color: var(--fire); }
.streakcard .say .ci { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13px; font-weight: 700; }
@media (max-width: 650px) { .streakcard .say .ci { display: none; } }   /* a phone shows the check-in on the quests card instead */

/* ---------- "what could we do better?": the short chat (public/feedback.js) ---------- */
.fbchat { position: fixed; z-index: 40; right: 20px; bottom: 20px; width: 360px; max-width: calc(100vw - 24px); max-height: min(560px, calc(100vh - 40px)); display: flex; flex-direction: column;
  border-radius: 22px; background: var(--surface); color: var(--ink); border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(0,0,0,.28); overflow: hidden; animation: fbin .22s ease-out; }
@keyframes fbin { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.fbchat header { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; background: var(--slab); color: var(--slab-ink); }
.fbchat header b { flex: 1 1 auto; font-family: var(--display); font-weight: 700; font-size: 16px; }
.fbchat .fbx { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.fbchat .fbx:hover { background: rgba(255,255,255,.14); }
.fblog { flex: 1 1 auto; min-height: 120px; overflow: hidden auto; display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.fbmsg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.fbmsg.them { align-self: flex-start; background: var(--raised); border-bottom-left-radius: 6px; }
.fbmsg.me { align-self: flex-end; background: var(--fire); color: #15161a; font-weight: 600; border-bottom-right-radius: 6px; }
.fbin { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; }
.fbin:empty { padding-bottom: 6px; }
.fbchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fbchips button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 20px; background: var(--wash); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.fbchips button:hover { background: var(--raised); }
.fbchips button.go { background: var(--ink); color: var(--page); box-shadow: none; }
.fbin textarea { width: 100%; box-sizing: border-box; resize: none; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--page); color: var(--ink); font: inherit; font-size: 15px; }
.fbsaid > div { align-items: flex-start; }
.fbsaid .t { white-space: normal; }
@media (max-width: 650px) { .fbchat { right: 12px; left: 12px; width: auto; max-width: none; bottom: calc(84px + var(--safe-b, 0px)); max-height: calc(100vh - 170px); } }
@media (prefers-reduced-motion: reduce) { .fbchat { animation: none; } }
