
@font-face { font-family: 'Inter'; src: url('/fonts/inter-variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'OpenTUI Mono'; src: url('/fonts/opentui-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'OpenTUI Mono'; src: url('/fonts/opentui-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root {
  color-scheme: dark;
  --canvas: #080808; --surface: #161616; --layer: #242424; --text: #FAFAFA; --muted: #AEAEAE; --faint: #808080;
  --border: rgb(255 255 255 / 10%); --border-muted: rgb(255 255 255 / 8%); --accent: #A2BCFF;
  --success: #49C970; --warning: #E7AF36; --danger: #F17471; --neutral: #4A4A4A;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif; --font-mono: 'OpenTUI Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: var(--font-body); font-size: 14px; line-height: 20px; font-weight: 440; font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
strong, b { font-weight: 530; }
main { padding: calc(env(safe-area-inset-top) + 20px) calc(env(safe-area-inset-right) + 16px) calc(env(safe-area-inset-bottom) + 40px) calc(env(safe-area-inset-left) + 16px); max-width: 640px; margin: 0 auto; }
.wordmark { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 530; letter-spacing: -.13px; }
.wordmark-square { width: 16px; height: 16px; border-radius: 4px; background: var(--accent); box-shadow: inset 0 0 0 1px var(--border-muted); flex-shrink: 0; }
h1 { margin: 24px 0 4px; font-family: var(--font-mono); font-size: 28px; line-height: 1.1; font-weight: 400; letter-spacing: -.02em; }
.muted { color: var(--muted); font-size: 13px; }
.faint { color: var(--faint); }
.summary { margin: 16px 0 8px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.summary p { margin: 0; text-wrap: pretty; }
.meter { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; }
.meter .value { font-family: var(--font-mono); font-size: 36px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bar { height: 4px; background: var(--layer); border-radius: 2px; overflow: hidden; margin-top: 12px; }
.bar > i { display: block; height: 100%; background: var(--accent); }
h2 { margin: 28px 0 8px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; margin-bottom: 8px; overflow: hidden; }
.card > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.card > summary::-webkit-details-marker { display: none; }
.card > summary strong { flex: 1; }
.count { font-family: var(--font-mono); font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.chev { width: 8px; height: 8px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: rotate(-45deg); transition: transform .15s ease; margin-left: 4px; }
details[open] > summary .chev { transform: rotate(45deg); }
.row { display: flex; gap: 10px; padding: 12px; overflow-wrap: anywhere; border-top: 1px solid var(--border-muted); }
.row .note { color: var(--muted); font-size: 13px; margin-top: 2px; text-wrap: pretty; }
.mark { flex: none; width: 10px; height: 10px; border-radius: 3px; margin-top: 5px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--neutral); }
.card > summary .mark { margin-top: 0; }
.mark.done { background: var(--success); box-shadow: none; }
.mark.active { background: var(--warning); box-shadow: none; }
.mark.blocked { background: var(--danger); box-shadow: none; }
.list { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.list .row:first-child { border-top: 0; }
.log time { flex: none; width: 64px; color: var(--faint); font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 14px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .mark { margin-top: 0; }
button { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; min-height: 36px; padding: 0 14px; margin-top: 12px; }
