:root {
  /* Layout: a ruled notebook page for the day's tiered tasks beside a report card of results.
     Red pen does the grading: ticks, crosses, circled marks and teacher remarks. */
  --bg: #edf1f7;
  --paper: #ffffff;
  --wash: #f2f5fa;
  --ink: #14213d;
  --ink-2: #4a5672;
  --ink-3: #64708a;
  --line: #dde3ed;
  --rule: #d6e1f1;
  --axis: #b9c3d3;
  --pen: #d42a1e;
  --margin: #f1aaa3;
  --bar: #2a78d6;
  --track: #cde2fb;
  --good: #006300;
  --l0: #86b6ef; --l1: #5598e7; --l2: #2a78d6; --l3: #1c5cab; --l4: #0d366b;
  --lt0: #0b0b0b; --lt1: #ffffff; --lt2: #ffffff; --lt3: #ffffff; --lt4: #ffffff;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .07);
  --scrim: rgba(11, 17, 28, .45);
  --ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Kalam", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b111c;
    --paper: #141c2c;
    --wash: #1a2337;
    --ink: #e8edf6;
    --ink-2: #a9b3c7;
    --ink-3: #8a95ab;
    --line: #273350;
    --rule: #243149;
    --axis: #3a4761;
    --pen: #ff7b6b;
    --margin: #6e3536;
    --bar: #3987e5;
    --track: #0d366b;
    --good: #0ca30c;
    --l0: #184f95; --l1: #256abf; --l2: #3987e5; --l3: #6da7ec; --l4: #b7d3f6;
    --lt0: #ffffff; --lt1: #ffffff; --lt2: #ffffff; --lt3: #0b0b0b; --lt4: #0b0b0b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 8px 24px rgba(0, 0, 0, .3);
    --scrim: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b111c;
  --paper: #141c2c;
  --wash: #1a2337;
  --ink: #e8edf6;
  --ink-2: #a9b3c7;
  --ink-3: #8a95ab;
  --line: #273350;
  --rule: #243149;
  --axis: #3a4761;
  --pen: #ff7b6b;
  --margin: #6e3536;
  --bar: #3987e5;
  --track: #0d366b;
  --good: #0ca30c;
  --l0: #184f95; --l1: #256abf; --l2: #3987e5; --l3: #6da7ec; --l4: #b7d3f6;
  --lt0: #ffffff; --lt1: #ffffff; --lt2: #ffffff; --lt3: #0b0b0b; --lt4: #0b0b0b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 8px 24px rgba(0, 0, 0, .3);
  --scrim: rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.45 var(--ui); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--bar); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 16px 16px 40px; display: grid; gap: 14px; }

/* Header and player level */
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 2px 2px 0; }
.top > div { min-width: 0; }
.top h1 { margin: 0; font-size: 26px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
.top h1 .ten { font-family: var(--hand); color: var(--pen); font-weight: 700; letter-spacing: 0; }
.top .tag { margin: 3px 0 0; font-size: 13px; color: var(--ink-2); }
.sync { margin: 0; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.sync[data-s="ok"] i { background: var(--good); }
.sync[data-s="err"] i { background: var(--pen); }
.sync[data-s="busy"] i { animation: blink 1.1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }

.player { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; }
.lv { display: grid; place-items: center; align-content: center; width: 56px; height: 56px; border-radius: 14px; border: 2px solid var(--ink); }
.lv small { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); line-height: 1.1; }
.lv b { font-size: 24px; line-height: 1.05; font-weight: 700; }
.xp { display: grid; gap: 6px; min-width: 0; }
.xp-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; font-size: 15px; }
.xp-line b { font-weight: 700; }
.xp-line span { font-size: 13px; color: var(--ink-2); }
.xp-track { display: block; height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.xp-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--bar); }
.streak { display: grid; justify-items: end; font-size: 12px; color: var(--ink-2); line-height: 1.25; }
.streak b { font-size: 20px; color: var(--ink); font-weight: 700; }
@media (max-width: 520px) {
  .player { grid-template-columns: auto minmax(0, 1fr); }
  .streak { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; justify-items: start; border-top: 1px solid var(--line); padding-top: 8px; }
  .streak b { font-size: 15px; }
}

.grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .grid { grid-template-columns: minmax(360px, 430px) minmax(0, 1fr); align-items: start; } }

/* Notebook page */
.page { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.page-head { padding: 14px 14px 12px; display: grid; gap: 10px; }
.datenav { display: flex; align-items: center; gap: 8px; }
.iconbtn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-size: 22px; line-height: 1; color: var(--ink); padding: 0 0 3px; }
.iconbtn:hover:not(:disabled) { background: var(--wash); }
.iconbtn:disabled { opacity: .35; }
.dlabel { flex: 1; min-width: 0; }
.dlabel h2 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.2; }
.dlabel h2:focus { outline: none; }
.dlabel p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); min-height: 1.2em; }
.jumprow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jumprow label { font-size: 13px; color: var(--ink-2); }
.jumprow input { height: 36px; min-width: 0; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper); font-size: 15px; }
.pill { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--wash); font-size: 13px; font-weight: 600; }
.scoreline { display: flex; align-items: center; gap: 18px; padding: 2px 4px 0; }
.mark { position: relative; display: inline-flex; align-items: baseline; padding: 10px 18px 8px; isolation: isolate; }
.mark .ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: -1; }
.ring path { fill: none; stroke: var(--pen); stroke-width: 2.4; stroke-linecap: round; }
.mark.none .ring { display: none; }
.mark .num { font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.mark .den { font-size: 22px; font-weight: 500; color: var(--ink-2); margin-left: 1px; }
.scoremeta { display: grid; gap: 6px; min-width: 0; }
.remark { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 24px; line-height: 1.15; color: var(--pen); transform: rotate(-3deg); transform-origin: left center; min-height: 1.15em; display: inline-flex; align-items: center; gap: 6px; }
.remark .star { width: 22px; height: 22px; }
.star path { fill: none; stroke: var(--pen); stroke-width: 1.8; stroke-linejoin: round; }
.remark.pop { animation: write .6s ease-out; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.subpct { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--ink-2); }
.lvchip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--wash); font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.lvchip[data-l="4"] { border-color: var(--pen); color: var(--pen); }
.lvchip.pop { animation: bump .45s ease-out; }
@keyframes bump { 40% { transform: scale(1.12); } }

.note { margin: 0 14px 12px; padding: 10px 12px; border-radius: 10px; background: var(--wash); font-size: 14px; color: var(--ink-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.linkbtn { border: 0; background: none; padding: 4px 0; color: var(--bar); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.tiers { position: relative; border-top: 1px solid var(--rule); }
.tiers::before { content: ""; position: absolute; top: 0; bottom: 0; left: 44px; width: 2px; background: var(--margin); pointer-events: none; z-index: 1; }
.tiers[aria-busy="true"] { opacity: .55; }
.tier-h { margin: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; min-height: 32px; padding-right: 16px; background: var(--wash); border-bottom: 1px solid var(--rule); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.tier-h .tn { grid-column: 2; padding-left: 14px; }
.tier-h .tp { margin-left: 8px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.tier-h .tc { letter-spacing: 0; font-variant-numeric: tabular-nums; }
.tier-h .tc.ok { color: var(--good); }
.tier[data-tier="3"] .tier-h { color: var(--pen); }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { border-bottom: 1px solid var(--rule); }
.task { width: 100%; min-height: 54px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 60px; align-items: center; border: 0; background: transparent; text-align: left; padding: 0; }
.task:hover:not(:disabled) { background: var(--wash); }
.task:focus-visible { outline-offset: -2px; }
.task .n { font-size: 13px; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.task .name { padding: 10px 6px 10px 14px; font-size: 16px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.task.god .name { font-weight: 700; }
.box { justify-self: center; position: relative; width: 26px; height: 26px; border-radius: 6px; border: 1.5px solid var(--ink-3); }
.box svg { position: absolute; left: -7px; top: -11px; width: 40px; height: 40px; overflow: visible; }
.box path { fill: none; stroke: var(--pen); stroke-linecap: round; stroke-linejoin: round; }
.box .tk { stroke-width: 3.4; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.task[aria-checked="true"] .tk { stroke-dashoffset: 0; opacity: 1; }
.task.anim .tk { transition: stroke-dashoffset .32s cubic-bezier(.3, .7, .4, 1); }
.box .x { stroke-width: 2.2; opacity: 0; }
.task.missed .x { opacity: .6; }
.task.god .box { border-width: 2px; border-color: var(--ink-2); }

.page-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.foot-note { margin: 0; font-size: 13px; color: var(--ink-2); }
.planned { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 14px 14px; font-size: 13px; color: var(--ink-2); }
.btn { height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-size: 15px; font-weight: 600; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--wash); }
.btn:disabled { opacity: .45; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.primary:hover:not(:disabled) { background: var(--ink); opacity: .92; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Report card */
.card { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; display: grid; gap: 18px; min-width: 0; }
.sect:empty { display: none; }
.r-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.r-head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: 11px; background: var(--wash); border: 1px solid var(--line); width: 100%; max-width: 380px; }
.seg button { height: 36px; border: 0; border-radius: 8px; background: transparent; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(20, 33, 61, .14); }
@media (max-width: 560px) { .seg { max-width: none; } }
.r-period { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.r-period[data-kind="custom"] { display: grid; gap: 10px; }
.plabel-wrap { flex: 1; min-width: 0; text-align: center; }
.plabel { margin: 0; font-weight: 600; font-size: 16px; }
.prel { margin: 1px 0 0; font-size: 13px; color: var(--ink-2); min-height: 1.2em; }
.r-period[data-kind="custom"] .plabel { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.range { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.range label { font-size: 13px; color: var(--ink-2); }
.range input { width: 100%; min-width: 0; height: 40px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper); font-size: 15px; }
@media (max-width: 400px) { .range { grid-template-columns: auto minmax(0, 1fr); } }

.summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 28px; align-items: center; }
.hero { display: grid; justify-items: start; gap: 8px; padding-left: 4px; }
.mark.big .num { font-size: 52px; }
.stats { margin: 0; display: grid; font-size: 14px; }
.srow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.srow:last-child { border-bottom: 0; }
.stats dt { color: var(--ink-2); }
.stats dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.delta { font-size: 13px; font-weight: 600; margin-left: 6px; color: var(--ink-2); }
.delta.up { color: var(--good); }
.delta.down { color: var(--pen); }
.snote { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink-2); }
@media (max-width: 480px) {
  .summary { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-auto-flow: column; align-items: center; justify-content: start; gap: 18px; }
}

/* Charts */
.chart { margin: 0; display: grid; gap: 6px; min-width: 0; }
.chart-title { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.readout { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-height: 30px; font-size: 14px; color: var(--ink-2); }
.readout strong { font-size: 19px; font-weight: 600; color: var(--ink); }
.plot { position: relative; height: 168px; margin: 20px 0 0 38px; }
.gl { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.gl.base { background: var(--axis); }
.yt { position: absolute; left: -38px; width: 32px; text-align: right; transform: translateY(50%); font-size: 11px; line-height: 1; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.avg { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--ink-2); pointer-events: none; z-index: 1; }
.avg span { position: absolute; right: 0; bottom: 3px; font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--paper); padding: 0 4px; border-radius: 4px; }
.cols { position: absolute; inset: 0; display: flex; }
.col { flex: 1 1 0; min-width: 0; position: relative; display: flex; align-items: flex-end; justify-content: center; border: 0; background: transparent; padding: 0; border-radius: 6px 6px 0 0; }
.col:hover, .col.sel { background: var(--wash); }
.col:focus-visible { outline-offset: 0; }
.bar { width: min(24px, calc(100% - 2px)); background: var(--bar); border-radius: 4px 4px 0 0; }
.bar.l0 { background: var(--l0); } .bar.l1 { background: var(--l1); } .bar.l2 { background: var(--l2); } .bar.l3 { background: var(--l3); } .bar.l4 { background: var(--l4); }
.zero { position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font-family: var(--hand); font-weight: 700; color: var(--pen); font-size: 17px; line-height: 1; }
.vlab { display: none; position: absolute; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--paper); padding: 1px 4px; border-radius: 4px; white-space: nowrap; }
.col.sel .vlab { display: block; }
.xaxis { display: flex; margin-left: 38px; padding-top: 4px; }
.xaxis span { flex: 1 1 0; min-width: 0; text-align: center; font-size: 11px; line-height: 1.25; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.xaxis b { display: block; font-weight: 600; color: var(--ink-2); }
.xaxis .is-today, .xaxis .is-today b { color: var(--pen); }

.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dow { font-size: 11px; color: var(--ink-3); text-align: center; padding-bottom: 2px; }
.cell { position: relative; aspect-ratio: 1 / 1; min-height: 38px; border-radius: 8px; border: 1px solid transparent; background: var(--wash); padding: 0; display: grid; place-items: center; color: var(--ink-2); }
.cell .dn { position: absolute; top: 4px; left: 5px; font-size: 10px; line-height: 1; opacity: .85; font-variant-numeric: tabular-nums; }
.cell .pv { font-size: 13px; font-weight: 700; margin-top: 7px; }
.cell.pre { background: transparent; border-color: var(--line); color: var(--ink-3); }
.cell.future { background: transparent; border-color: var(--line); color: var(--ink-3); opacity: .55; }
.cell.z { background: var(--paper); border-color: var(--line); }
.cell.z .pv { font-family: var(--hand); color: var(--pen); font-size: 20px; margin-top: 4px; }
.cell.l0 { background: var(--l0); color: var(--lt0); }
.cell.l1 { background: var(--l1); color: var(--lt1); }
.cell.l2 { background: var(--l2); color: var(--lt2); }
.cell.l3 { background: var(--l3); color: var(--lt3); }
.cell.l4 { background: var(--l4); color: var(--lt4); }
.cell .ring { position: absolute; inset: -5px -6px; width: calc(100% + 12px); height: calc(100% + 10px); overflow: visible; pointer-events: none; }
.cell.sel { outline: 2px solid var(--ink); outline-offset: 1px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--ink-2); align-items: center; margin-top: 4px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-grid; place-items: center; flex: none; font-style: normal; border: 1px solid transparent; }
.sw.z { background: var(--paper); border-color: var(--line); color: var(--pen); font-family: var(--hand); font-weight: 700; font-size: 13px; line-height: 1; }
.sw.l0 { background: var(--l0); } .sw.l1 { background: var(--l1); } .sw.l2 { background: var(--l2); } .sw.l3 { background: var(--l3); } .sw.l4 { background: var(--l4); }

.tview summary { cursor: pointer; font-size: 13px; color: var(--ink-2); font-weight: 600; padding: 6px 0; width: max-content; }
.tview table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; }
.tview th, .tview td { text-align: left; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tview th { color: var(--ink-2); font-weight: 600; }
.tview td:nth-child(n+2), .tview th:nth-child(n+2) { text-align: right; }
.tscroll { max-height: 280px; overflow: auto; }

.sect h3, .daylists h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.lvlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lvlist li { display: grid; grid-template-columns: minmax(118px, auto) minmax(0, 1fr) 56px; align-items: center; gap: 10px; font-size: 14px; }
.lname { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ltrack { display: block; height: 10px; border-radius: 999px; background: var(--wash); overflow: hidden; }
.lfill { display: block; height: 100%; border-radius: 999px; }
.lfill.l0 { background: var(--l0); } .lfill.l1 { background: var(--l1); } .lfill.l2 { background: var(--l2); } .lfill.l3 { background: var(--l3); } .lfill.l4 { background: var(--l4); }
.lcount { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.daylists { display: grid; gap: 16px; }
@media (min-width: 560px) { .daylists { grid-template-columns: 1fr 1fr; } }
.daylists ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.daylists li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.daylists li::before { font-family: var(--hand); font-weight: 700; color: var(--pen); line-height: 1.2; }
.daylists .missed li::before { content: "\00D7"; }
.daylists .done li::before { content: "\2713"; }
.daylists .empty { color: var(--ink-3); }
.daylists .empty::before { content: ""; }
.ttag { margin-left: 6px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }

.callout { margin: 0 0 12px; display: grid; gap: 3px; font-size: 14px; color: var(--ink-2); }
.callout b { color: var(--ink); font-weight: 600; }
.meters { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: baseline; }
.mgroup { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); padding-top: 4px; }
.mgroup.god { color: var(--pen); }
.m-name { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.m-name .tag { font-family: var(--hand); font-weight: 700; color: var(--pen); margin-left: 6px; white-space: nowrap; }
.m-val { font-size: 13px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.m-val b { color: var(--ink); font-weight: 600; }
.m-track { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.m-fill { display: block; height: 100%; border-radius: 999px; background: var(--bar); }

.how { border-top: 1px solid var(--line); padding-top: 14px; }
.how h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.how ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); max-width: 70ch; }
.foot { font-size: 13px; color: var(--ink-2); text-align: center; margin: 0; }

/* Task editor */
.sheet { position: fixed; inset: 0; z-index: 10; display: grid; align-items: end; justify-items: center; background: var(--scrim); }
.sheet-panel { width: 100%; max-width: 520px; max-height: 92%; overflow: auto; background: var(--paper); border-radius: 18px 18px 0 0; padding: 18px 16px 16px; display: grid; gap: 12px; box-shadow: 0 -8px 30px rgba(0, 0, 0, .2); }
@media (min-width: 640px) { .sheet { align-items: center; padding: 24px; } .sheet-panel { border-radius: 18px; } }
.sheet-panel h2 { margin: 0; font-size: 20px; }
.hint { margin: 0; font-size: 14px; color: var(--ink-2); }
.ed-list { display: grid; gap: 14px; }
.ed-tier { display: grid; gap: 6px; }
.ed-th { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.ed-th span { margin-left: 8px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.ed-tier.god .ed-th { color: var(--pen); }
.ed-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 8px; }
.ed-row label { font-size: 13px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.ed-row input { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-size: 16px; }
.ed-row input:focus { outline: none; border-color: var(--bar); box-shadow: 0 0 0 3px rgba(42, 120, 214, .22); }
.ed-row input.vague { border-color: var(--pen); }
.apply { border: 0; margin: 0; padding: 0; display: grid; gap: 2px; }
.apply legend { font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 0; margin-bottom: 4px; }
.apply label { display: flex; align-items: center; gap: 10px; min-height: 38px; font-size: 15px; }
.apply input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.ed-first { margin: 0; font-size: 14px; color: var(--ink-2); }
.ed-err { margin: 0; color: var(--pen); font-size: 14px; min-height: 1.2em; }
.ed-actions { display: flex; justify-content: flex-end; gap: 8px; position: sticky; bottom: -16px; background: var(--paper); padding: 8px 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 10 Task app shell ---------- */
body { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.top-right { display: flex; align-items: center; gap: 8px; flex: none; }
.acct { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 15px; font-weight: 700; color: var(--ink); }
.acct:hover { background: var(--wash); }
.brand .ten { font-family: var(--hand); color: var(--pen); font-weight: 700; letter-spacing: 0; }

/* Login and setup screens */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.gate-card { width: 100%; max-width: 380px; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); padding: 24px 20px; display: grid; gap: 8px; }
.gate-card .brand { margin: 0; font-size: 34px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
.gate-card .tag { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.gate-card p { margin: 0; font-size: 14px; color: var(--ink-2); }
.gate-card code, .hint code { font-size: 13px; background: var(--wash); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.field { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input { width: 100%; min-width: 0; height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-size: 16px; }
.input:focus { outline: none; border-color: var(--bar); box-shadow: 0 0 0 3px rgba(42, 120, 214, .22); }
.btn.wide { width: 100%; height: 46px; margin-top: 6px; }
.fine { margin-top: 6px !important; font-size: 13px !important; color: var(--ink-3) !important; text-align: center; }
.ok-msg { color: var(--good) !important; }
.acct-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
