/* Near-black, glass panels, lime actions, flowing light. */
:root {
  --bg: #05080b;
  --side: #090d12;
  --panel: rgba(13, 18, 24, .86);
  --field: #0b1015;
  --raise: #151b23;
  --line: #1d252e;
  --line-2: #2b353f;
  --text: #f2f5f7;
  --quiet: #96a1ad;
  --lime: #b6f542;
  --lime-ink: #0b1402;
  --cyan: #22c3e6;
  --blue: #2f86f6;
  --purple: #a855f7;
  --green: #4ade5a;
  --amber: #e0a126;
  --pink: #ec4899;
  --red: #ff5d62;
  --sq-light: #c5d0da;
  --sq-dark: #566b80;
  --sans: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); }
body { margin: 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 1.85rem; font-weight: 700; }
h2 { font-size: 1.13rem; }
h3 { font-size: 1rem; margin-top: 1.25rem; }
p { margin: 0 0 .75rem; max-width: 72ch; }
a { color: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Flowing light behind everything */
.backdrop { position: fixed; inset: auto 0 0 0; height: 58vh; z-index: 0; pointer-events: none; }
.ribbon { position: absolute; z-index: -1; left: 0; right: 0; bottom: 70px; height: 320px; pointer-events: none; }
.ribbon svg { width: 100%; height: 100%; display: block; }
.backdrop svg { width: 100%; height: 100%; display: block; }
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }

/* Sidebar */
.rail { position: sticky; isolation: isolate; top: 0; height: 100vh; display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem .7rem .9rem; overflow-y: auto; border-right: 1px solid var(--line); background: var(--side); }
.brand { display: flex; align-items: center; gap: .65rem; padding: 0 .45rem .4rem; }
.brand b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--lime); color: var(--lime-ink); font-size: 1.15rem; font-weight: 800; }
.brand span { font-weight: 700; line-height: 1.1; }
.brand small { display: block; font-weight: 400; color: var(--quiet); font-size: .78rem; }
.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail nav a { display: flex; align-items: center; gap: .7rem; padding: .5rem .65rem; border: 1px solid transparent; border-radius: 9px; color: #c3ccd5; text-decoration: none; font-size: .9rem; }
.rail nav a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.rail nav a[aria-current] { color: var(--text); border-color: rgba(182, 245, 66, .45); background: linear-gradient(90deg, rgba(182, 245, 66, .16), rgba(182, 245, 66, .03)); box-shadow: 0 0 18px rgba(182, 245, 66, .10); }
.rail nav a[aria-current] svg { color: var(--lime); }
.badge { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--lime); color: var(--lime-ink); font: 700 .72rem/20px var(--sans); text-align: center; }
.badge.red { background: var(--red); color: #1c0304; }
.live { margin-top: auto; }
.live a { display: block; padding: .6rem .7rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); color: var(--text); text-decoration: none; }
.live span { display: block; font-size: .78rem; color: var(--quiet); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live strong { font: 600 1.35rem var(--mono); }
.status { list-style: none; margin: 0; padding: .8rem .45rem 0; border-top: 1px solid var(--line); font-size: .76rem; color: var(--quiet); }
.status li { display: flex; align-items: center; gap: .6rem; padding: .2rem 0; }
.status b { color: var(--text); font-weight: 600; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.tabbar { display: none; }

.content { min-width: 0; }
main { max-width: 1360px; padding: 0 1.5rem 4rem; }
.banner { margin: 0; max-width: none; padding: .65rem 1.5rem; background: #3a1013; border-bottom: 1px solid var(--red); color: #ffd7d9; }

.head { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; min-height: 76px; margin: 0 -1.5rem 1.25rem; padding: .85rem 1.5rem; border-bottom: 1px solid var(--line); background: rgba(5, 8, 11, .7); }
.head > div:first-child, .head > h1 { display: flex; flex: 1 1 260px; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; margin: 0; }
.head h1 { margin: 0; }
.head p { margin: 0; color: var(--quiet); }
.global { display: flex; gap: .6rem; margin-left: auto; }

/* Panels */
.panel, .strip, .reading, .form.narrow, .split.even > .form, .record, .fear-card, .now-panel, .report:not(:empty), .side {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.15rem 1.25rem; }
.panel { margin-bottom: 1rem; }
.panel > :last-child { margin-bottom: 0; }
.panel .panel, .panel .form.narrow, .panel .split.even > .form { background: none; border: 0; padding: 0; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; }
.panel-head h2 { display: flex; align-items: center; gap: .6rem; margin: 0; }
.panel-head span { color: var(--quiet); font-size: .85rem; }
.panel-head svg.i { color: var(--lime); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font: 600 .9rem var(--sans); padding: .58rem 1.05rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raise); color: var(--text); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: #46535f; background: #1b232d; }
.btn.primary { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); box-shadow: 0 0 22px rgba(182, 245, 66, .22); }
.btn.primary:hover { background: #c7ff62; }
.btn.spark svg { color: var(--purple); }
.btn.big { font-size: 1rem; padding: .75rem 1.4rem; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.link { border: 0; background: none; box-shadow: none; padding: .15rem 0; color: var(--lime); text-decoration: underline; text-underline-offset: 3px; font-weight: 400; text-align: left; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .75rem 0; }

.form { display: flex; flex-direction: column; gap: .85rem; align-items: stretch; min-width: 0; }
.form > .btn { align-self: flex-start; }
.form.narrow { max-width: 640px; margin-bottom: 1rem; }
.form.inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.form h2 { margin-bottom: 0; }
.form p { margin: 0; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field > span { font-size: .85rem; font-weight: 500; color: #d5dce3; }
.form.inline .field:has(.wide) { flex: 1 1 220px; }
input, textarea, select { font: .95rem var(--sans); color: var(--text); background: var(--field); border: 1px solid var(--line-2); border-radius: 10px; padding: .62rem .75rem; max-width: 100%; }
::placeholder { color: #626d79; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 0 18px rgba(182, 245, 66, .22); }
textarea { resize: vertical; width: 100%; }
input[type="number"] { width: 9rem; }
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--lime); margin: 0; }
textarea.ink { line-height: 1.75; }

/* The day strip */
.cat-work { --c: var(--blue); }
.cat-chess { --c: var(--green); }
.cat-training { --c: var(--amber); }
.cat-writing { --c: var(--purple); }
.cat-study { --c: var(--pink); }
.cat-upkeep { --c: #7c8a99; }
.cat-sleep { --c: #4b55b8; }
.cat-wasted { --c: var(--red); }
[class*="cat-"] { background: var(--c); }
.gap { background: repeating-linear-gradient(135deg, #222c36 0 3px, transparent 3px 8px); }
.strip { margin-bottom: 1rem; }
.strip-bar { position: relative; height: 44px; background: var(--field); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.strip-bar span { position: absolute; top: 0; bottom: 0; }
.strip-bar .now { width: 2px; margin-left: -1px; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.strip-hours { position: relative; height: 1.4rem; font: .72rem/1.8 var(--mono); color: var(--quiet); }
.strip-hours span { position: absolute; transform: translateX(-50%); }
.strip-hours span:first-child { transform: none; }
.strip-hours span:last-child { transform: translateX(-100%); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: .5rem 0 0; padding: 0; font-size: .78rem; }
.legend li { padding: .2rem .65rem; background: var(--raise); border-radius: 99px; color: #c3ccd5; }
i[class] { display: inline-block; width: .6rem; height: .6rem; margin-right: .45rem; border-radius: 50%; flex: none; }

/* Today: how the day connects */
.flow { position: relative; overflow: hidden; background: radial-gradient(70% 90% at 100% 60%, rgba(34, 195, 230, .13), transparent 70%), radial-gradient(60% 70% at 0% 0%, rgba(74, 222, 90, .10), transparent 70%), var(--panel); }
.nodes { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem 2.1rem; margin: .4rem 0 1rem; padding: 0; }
.nodes li { position: relative; }
.nodes li:not(:last-child):not(:nth-child(5n))::after { content: "→"; position: absolute; right: -1.6rem; top: 50%; transform: translateY(-50%); color: #66727f; }
.node { display: flex; align-items: center; gap: .65rem; height: 100%; padding: .7rem .8rem; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 6%, #0a0f14); color: var(--text); text-decoration: none; font-size: .86rem; font-weight: 500; }
.node svg { color: var(--c); }
.node:hover { border-color: var(--c); }
.node.done { border-color: var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent), inset 0 0 14px color-mix(in srgb, var(--c) 18%, transparent); }
.node.done::after { content: "✓"; margin-left: auto; color: var(--c); font-weight: 700; }
.node.next-up { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 0 20px rgba(182, 245, 66, .3); }
.next { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.next h2 { margin: 0; font-size: 1.45rem; }
.next p { margin: 0; color: var(--quiet); font-size: .85rem; }
.today-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem; align-items: start; }
.today-grid .now-panel { margin: 0 0 1rem; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 4.6rem 1.2rem minmax(0, 1fr) auto; gap: .7rem; align-items: start; position: relative; padding: .55rem 0; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: calc(4.6rem + .7rem + .55rem); top: 1.45rem; bottom: -.65rem; width: 2px; background: var(--line-2); }
.timeline time { font: .76rem/1.7 var(--mono); color: var(--quiet); text-align: right; }
.timeline input { padding: .15rem .3rem; font: .76rem var(--mono); width: 100%; }
.timeline .ring { position: relative; width: 13px; height: 13px; margin: .25rem auto 0; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg); }
.timeline .late .ring { border-color: var(--amber); }
.timeline .up .ring { border-color: var(--lime); box-shadow: 0 0 10px rgba(182, 245, 66, .6); }
.timeline .done .ring { border-color: var(--lime); background: var(--lime); }
.timeline a { color: var(--text); text-decoration: none; font-weight: 600; }
.timeline a:hover { color: var(--lime); }
.timeline small { display: block; color: var(--quiet); font-size: .8rem; }
.pill { white-space: nowrap; padding: .15rem .65rem; border-radius: 99px; background: var(--raise); color: var(--quiet); font-size: .75rem; }
.pill::before { content: "● "; font-size: .6rem; }
.pill.good { color: var(--lime); }
.pill.late { color: var(--amber); }

.now-panel { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1rem; }
.now-panel h2 { margin: 0; }
.now-panel .row { margin: 0; }
.running { display: flex; align-items: center; gap: .8rem; }
.running i[class] { width: .35rem; height: 2.8rem; margin: 0; border-radius: 99px; box-shadow: 0 0 12px var(--c); }
.running p { margin: 0; color: var(--quiet); }
.running .clock { margin-left: auto; }
summary { cursor: pointer; color: var(--lime); }
details > .field, details > .form { margin-top: .75rem; }

.clock { font: 600 2.1rem/1.1 var(--mono); font-variant-numeric: tabular-nums; min-width: 5ch; letter-spacing: -.04em; }
.clock.met { color: var(--lime); text-shadow: 0 0 18px rgba(182, 245, 66, .5); }
.timer { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.timer p { margin: 0 0 .25rem; font-size: .76rem; color: var(--quiet); }
.head .timer + .global { margin-left: 0; }

table { border-collapse: separate; border-spacing: 0; width: 100%; }
.data { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .86rem; }
.data th, .data td { border-bottom: 1px solid var(--line); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.data tr:last-child > * { border-bottom: 0; }
.data thead th { color: var(--quiet); font-weight: 500; }
.data th[scope] { font-weight: 600; }
.week td { font-family: var(--mono); font-size: .8rem; white-space: nowrap; }
.panel .data { border: 0; background: none; }
.scroll { overflow-x: auto; margin-bottom: 1rem; }
.score { display: flex; align-items: baseline; gap: .5rem; margin-left: auto; }
.score strong { font: 600 1.6rem var(--mono); color: var(--lime); }
.score span { color: var(--quiet); font-size: .8rem; }
.score + .global { margin-left: 0; }

.split { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-bottom: 1rem; }
.split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split > div:not(.board-wrap):not(.form):not(.reading) { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.15rem 1.25rem; }

/* Chess: segmented controls as in the control center tabs */
.stages, .chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: .35rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 1rem; }
.btn.stage, .btn.chip { background: transparent; border-color: transparent; color: var(--quiet); }
.btn.stage { min-width: 0; justify-content: center; }
.stage strong { font-weight: 600; }
.stage span { font: .72rem var(--mono); background: var(--raise); padding: .05rem .5rem; border-radius: 6px; }
.btn.stage.done strong { color: var(--lime); }
.btn.stage.on, .btn.chip.on { background: var(--raise); border-color: var(--line-2); color: var(--text); }

.board-wrap { position: relative; width: 100%; max-width: 520px; }
.board { display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); aspect-ratio: 1; border: 6px solid #10171e; border-radius: 12px; overflow: hidden; background: #10171e; box-shadow: 0 0 0 1px var(--line-2), 0 0 40px rgba(34, 195, 230, .16); }
.sq { position: relative; padding: 0; border: 0; min-width: 0; min-height: 0; cursor: pointer; display: grid; place-items: center; overflow: hidden; }
.sq.light { background: var(--sq-light); }
.sq.dark { background: var(--sq-dark); }
.sq:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; z-index: 1; }
.sq.last { box-shadow: inset 0 0 0 100px rgba(182, 245, 66, .36); }
.sq.selected { box-shadow: inset 0 0 0 100px rgba(34, 195, 230, .55); }
.sq.picked { box-shadow: inset 0 0 0 4px #0877a8, inset 0 0 0 100px rgba(34, 195, 230, .35); }
.sq.right { box-shadow: inset 0 0 0 100px rgba(110, 220, 40, .7); }
.sq.wrong { box-shadow: inset 0 0 0 100px rgba(255, 70, 80, .7); }
.sq.missed { box-shadow: inset 0 0 0 4px #05080b; }
.sq.dot::after { content: ""; position: absolute; width: 28%; height: 28%; border-radius: 50%; background: rgba(5, 60, 90, .7); }
.sq.take::after { content: ""; position: absolute; inset: 4%; border: 4px solid #0a6e96; border-radius: 50%; }
.pc { width: 92%; height: 92%; pointer-events: none; stroke-linejoin: round; stroke-linecap: round; stroke-width: 1.6; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.pc.w { fill: #fff; stroke: #10171e; }
.pc.b { fill: #121920; stroke: #05080b; }
.pc.b .line { stroke: #e8eef3; }
.sq .rank, .sq .file { position: absolute; font: 600 .62rem var(--mono); color: #05080b; opacity: .75; pointer-events: none; }
.sq .rank { top: 1px; left: 3px; }
.sq .file { right: 3px; bottom: 0; }
.promo { position: absolute; inset: 40% 12% auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 7px; background: var(--side); border: 1px solid var(--lime); border-radius: 12px; z-index: 2; }
.promo button { aspect-ratio: 1; background: var(--sq-light); border: 0; border-radius: 8px; cursor: pointer; padding: 4px; }

.reading p { line-height: 1.7; color: #d3dae1; }
.reading select { width: 100%; margin-bottom: 1rem; }
.reading p.task, .task { font-weight: 600; color: var(--text); }
.verdict { min-height: 1.5em; font-weight: 600; }
.verdict.good { color: var(--lime); }
.verdict.bad { color: var(--red); }
.note, .moves-line { color: var(--quiet); font-size: .86rem; }
.moves { list-style-position: inside; padding: .4rem .75rem; margin: 0; max-height: 15rem; min-height: 4rem; overflow-y: auto; background: var(--field); border: 1px solid var(--line); border-radius: 10px; font: .82rem var(--mono); }
.moves li { border-bottom: 1px solid var(--line); padding: .2rem 0; }
.moves li span { display: inline-block; width: 38%; margin-left: .5rem; }
.entry { background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .95rem; margin-bottom: .5rem; }
.entry p, .entry ul { margin-top: .6rem; }

/* Journal */
.record { list-style: none; margin: 0; }
.panel .record { background: none; border: 0; padding: 0; }
.record li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; border-top: 1px solid var(--line); padding: .75rem 0; }
.record li:first-child { border-top: 0; }
.record time { font: .8rem var(--mono); color: var(--quiet); }
.record p { margin: 0 0 .2rem; }
.record details .btn { margin-top: .6rem; }

/* Fear */
.fear-card { margin-bottom: 1rem; border-color: rgba(182, 245, 66, .5); box-shadow: 0 0 26px rgba(182, 245, 66, .10); }
.fear-card h2 { margin: 0 0 .6rem; font-size: 1.6rem; }
.fear-card.carried { border-color: var(--red); box-shadow: 0 0 30px rgba(255, 93, 98, .2); }
.fear-card.carried > p:first-child { color: var(--red); font-weight: 700; }
.fear-card .timer { margin-left: 0; }
.ladder { columns: 2; padding-left: 1.1rem; gap: 2rem; }
.ladder li { break-inside: avoid; }
/* The quote of the day and the one question */
.daily { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1rem; margin-bottom: 1rem; }
.daily > .panel { margin: 0; }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; margin: 0; padding: 1.5rem 1.6rem; background: radial-gradient(75% 110% at 100% 0%, rgba(168, 85, 247, .20), transparent 70%), radial-gradient(65% 100% at 0% 100%, rgba(47, 134, 246, .16), transparent 70%), var(--panel); }
.quote blockquote { margin: 0; max-width: 34ch; font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 700; line-height: 1.28; letter-spacing: -.02em; text-wrap: balance; }
.quote blockquote.long { max-width: 52ch; font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 600; line-height: 1.45; }
.quote figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; }
.quote figcaption span { color: var(--quiet); font-size: .8rem; }
.consist > p { color: var(--quiet); }
.consist .form { margin-top: .9rem; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.btn.answer { padding: .95rem; font-size: 1.1rem; }
.btn.answer.yes.on { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); box-shadow: 0 0 22px rgba(182, 245, 66, .3); }
.btn.answer.no.on { background: #2a1114; border-color: var(--red); color: #ffd7d9; box-shadow: 0 0 22px rgba(255, 93, 98, .25); }
.grid28 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .45rem; max-width: 460px; list-style: none; padding: 0; }
.grid28 li { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--line-2); border-radius: 10px; background: var(--field); font: 600 .85rem var(--mono); color: var(--quiet); }
.grid28 li.kept { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); box-shadow: 0 0 12px rgba(182, 245, 66, .35); }
.grid28 li.missed { background: #2a1114; border-color: var(--red); color: #ffd7d9; }
.grid28 li.before { opacity: .35; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Sign in */
.signin { max-width: 420px; margin: 14vh auto 0; }
.signin h1 { margin: 0; }
.signed-out .rail, .signed-out .tabbar { display: none; }
.signed-out .shell { display: block; }
.signed-out main { margin: 0 auto; padding-inline: 16px; }
.checks, .rules { list-style: none; padding: 0; }
.checks label { display: flex; gap: .75rem; align-items: center; padding: .7rem .9rem; margin-bottom: .4rem; background: var(--field); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.checks label:has(:checked) { border-color: rgba(182, 245, 66, .5); }
.rules li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .65rem 0; border-top: 1px solid var(--line); }
.rules li:first-child { border-top: 0; }
.rules span { max-width: 70ch; }
.rules small { color: var(--quiet); white-space: nowrap; }
.prompt { font-size: 1.25rem; font-weight: 600; max-width: 50ch; margin-bottom: 1.25rem; }
.count { color: var(--quiet); font: .8rem var(--mono); margin-top: .4rem; }
.report p.task { margin-bottom: 0; }
.page-text { white-space: pre-wrap; }

.control { border: 1px solid var(--line-2); border-radius: 16px; padding: 1.6rem; width: min(440px, 92vw); background: #0c1117; color: var(--text); box-shadow: 0 0 60px rgba(34, 195, 230, .2); }
.control::backdrop { background: rgba(2, 4, 6, .86); }
.control > * { display: flex; margin-bottom: 1rem; }
.control > h2 { margin-top: 0; }
.control > p { display: block; }
.control > .field { flex-direction: column; }
.control > .btn { display: table; }
.control .timer { margin-left: 0; }
.orb { width: 120px; height: 120px; margin: 1rem auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--lime), var(--cyan) 55%, #12306a); box-shadow: 0 0 50px rgba(34, 195, 230, .5); animation: breathe 10s ease-in-out infinite; }
@keyframes breathe { 0% { transform: scale(.55); } 40% { transform: scale(1.1); } 100% { transform: scale(.55); } }
.toast { position: fixed; z-index: 20; right: 1rem; bottom: 1rem; max-width: min(360px, 90vw); padding: .8rem 1rem; background: var(--raise); border: 1px solid var(--lime); border-radius: 12px; }

@media (max-width: 1150px) {
  .nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nodes li:not(:last-child):nth-child(5n)::after { content: "→"; position: absolute; right: -1.6rem; top: 50%; transform: translateY(-50%); color: #66727f; }
  .nodes li:nth-child(3n)::after { display: none; }
  .today-grid, .daily { grid-template-columns: minmax(0, 1fr); }
}

/* Narrow: the control center's bottom bar */
@media (max-width: 900px) {
  .shell { display: block; }
  .rail { display: none; position: fixed; inset: 0 0 62px 0; z-index: 9; height: auto; background: var(--side); }
  .rail.open { display: flex; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 10; inset: auto 0 0 0; height: 62px; background: #090d12; border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; border: 0; background: none; color: var(--quiet); font: .7rem var(--sans); text-decoration: none; cursor: pointer; }
  .tabbar [aria-current] { color: var(--text); }
  .tabbar [aria-current] svg { color: var(--lime); }
  .tabbar [aria-current]::before { content: ""; position: absolute; top: 0; width: 22px; height: 2px; background: var(--lime); }
  main { padding: 0 16px 6rem; }
  .head { margin: 0 -16px 1rem; padding: .85rem 16px; min-height: 0; }
  .head h1 { font-size: 1.5rem; }
  .global .btn span { display: none; }
  .global .btn { padding: .6rem; }
  .banner { padding: .65rem 16px; }
  .split, .split.even { grid-template-columns: minmax(0, 1fr); }
  .ladder { columns: 1; }
  .btn.stage { flex: 1 1 40% !important; }
  .record li { grid-template-columns: 1fr; gap: .25rem; }
  .nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .nodes li::after { display: none; }
  .timeline li { grid-template-columns: 3.4rem 1rem minmax(0, 1fr); }
  .timeline li:not(:last-child)::before { left: calc(3.4rem + .7rem + .45rem); }
  .timeline .pill { grid-column: 3; justify-self: start; }
  .toast { bottom: 74px; }
}
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }
