:root{--paper:#f4f1ea;--card:#fffdf8;--ink:#1b2433;--muted:#5d6675;--rule:#e2ddd1;--accent:#2f7d5b;--accent-2:#e9f3ee;--gold:#c08a2b;color-scheme:light;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--ink);background:var(--paper);-webkit-text-size-adjust:100%}*{box-sizing:border-box}body{margin:0;background:var(--paper);-webkit-tap-highlight-color:transparent}h1,h2,h3,h4{font-family:Georgia,Iowan Old Style,Times New Roman,serif;margin:0;letter-spacing:-.01em}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,textarea:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}a{color:var(--accent)}.app{max-width:640px;margin:0 auto;padding:calc(env(safe-area-inset-top) + 10px) 14px calc(88px + env(safe-area-inset-bottom))}.top{display:flex;align-items:flex-end;justify-content:space-between;padding:8px 2px 14px}.kicker{font:700 .68rem/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.18em;text-transform:uppercase;color:var(--accent);margin:0 0 6px}h1{font-size:2rem}.badges{display:flex;gap:8px}.badge{min-width:44px;height:44px;padding:0 12px;border-radius:22px;border:1px solid var(--rule);background:var(--card);display:inline-flex;align-items:center;justify-content:center;font-weight:700}.badge.score{background:var(--ink);color:#fff;border-color:var(--ink)}.card{background:var(--card);border:1px solid var(--rule);border-radius:16px;padding:16px;margin:0 0 12px;box-shadow:0 1px #0000000a}.hero h2{font-size:1.45rem;margin-bottom:6px}.date{margin:0 0 4px;color:var(--muted);font-size:.85rem}.muted{color:var(--muted);margin:.35rem 0;line-height:1.45}.small{font-size:.82rem}.center{text-align:center}h3{font-size:1.12rem;margin-bottom:4px}h4{font-size:1.05rem;margin:2px 0 6px}.reps,.entries{list-style:none;margin:0;padding:0}.rep{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:start}.rep.done{background:var(--accent-2);border-color:#bfdccd}.check{width:44px;height:44px;border-radius:12px;border:2px solid var(--accent);background:#fff;color:#fff;font-size:1.3rem;font-weight:800}.rep.done .check{background:var(--accent)}.part{font:600 .7rem/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.06em;text-transform:uppercase;color:var(--gold);margin:0}.do{margin:0 0 6px;line-height:1.45;font-weight:500}details summary{color:var(--muted);font-size:.85rem;cursor:pointer}details p{margin:.4rem 0 0;color:var(--muted);line-height:1.45}.counters{display:grid;gap:10px;margin-top:10px}.counter{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--rule)}.counter strong{display:block}.counter small{color:var(--muted)}.stepper{display:flex;align-items:center;gap:6px}.stepper button{width:44px;height:44px;border-radius:12px;border:1px solid var(--rule);background:#fff;font-size:1.3rem}.stepper output{min-width:2ch;text-align:center;font-weight:800;font-size:1.2rem}.prompt{display:block;font-weight:600;margin:8px 0}.prompt small{color:var(--muted);font-weight:400}textarea{width:100%;font:inherit;font-size:16px;padding:10px 12px;border-radius:12px;border:1px solid var(--rule);background:#fff;resize:vertical;color:var(--ink)}.primary{margin-top:10px;min-height:44px;padding:0 18px;border-radius:12px;border:0;background:var(--accent);color:#fff;font-weight:700}.primary:disabled{opacity:.45;cursor:default}.part-card{padding:0;overflow:hidden}.part-head{width:100%;display:grid;grid-template-columns:40px 1fr 24px;align-items:center;gap:12px;padding:14px 16px;background:none;border:0;text-align:left;min-height:60px}.part-head strong{display:block;font-family:Georgia,serif;font-size:1.05rem}.part-head small{color:var(--muted)}.num{width:40px;height:40px;border-radius:50%;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}.chev{font-size:1.4rem;color:var(--muted)}.part-body{padding:0 16px 12px}.rule{border-top:1px solid var(--rule);padding:12px 0}.rule p{margin:0 0 8px;line-height:1.45}.rule-rep{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;background:var(--accent-2);border-radius:10px;padding:8px 10px;font-size:.92rem}.chip{min-height:36px;padding:0 12px;border-radius:18px;border:1px solid var(--accent);background:#fff;color:var(--accent);font-weight:700;font-size:.85rem}.chip.on{background:var(--accent);color:#fff}.seg{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.seg button{min-height:40px;padding:0 12px;border-radius:20px;border:1px solid var(--rule);background:#fff;font-size:.88rem}.seg button.on{background:var(--ink);color:#fff;border-color:var(--ink)}.seg.small{margin:0;flex-wrap:nowrap}.seg.small button{width:40px;padding:0}.entry p{margin:4px 0;line-height:1.45;white-space:pre-wrap}.link{background:none;border:0;color:var(--muted);text-decoration:underline;padding:8px 0;min-height:36px}.score-hero{display:flex;gap:16px;align-items:center}.ring{--p:0;flex:none;width:104px;height:104px;border-radius:50%;background:conic-gradient(var(--accent) calc(var(--p)*1%),var(--rule) 0);display:grid;place-items:center}.ring span{width:80px;height:80px;border-radius:50%;background:var(--card);display:grid;place-items:center;font:800 1.9rem Georgia,serif}.bars{display:flex;gap:8px;align-items:flex-end;height:120px;margin-top:10px}.bar{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px;position:relative}.bar i{display:block;width:100%;min-height:3px;border-radius:6px 6px 2px 2px;background:var(--accent)}.bar small{color:var(--muted);font-size:.7rem;white-space:nowrap}.bar b{position:absolute;top:0;font-size:.72rem}.weeks .bar i{background:var(--gold)}.audit{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--rule);font-size:.93rem}.foot{color:var(--muted);font-size:.82rem;line-height:1.5;padding:8px 4px 0}.foot p{margin:.4rem 0}.foot-actions{display:flex;gap:16px}.tabs{position:fixed;left:0;right:0;bottom:0;display:flex;justify-content:center;background:#fffdf8f2;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-top:1px solid var(--rule);padding:6px 8px calc(6px + env(safe-area-inset-bottom))}.tabs button{flex:1;max-width:150px;min-height:52px;background:none;border:0;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:.78rem;color:var(--muted)}.tabs button span{font-size:1.15rem;line-height:1}.tabs button.on{color:var(--ink);font-weight:700;background:var(--accent-2)}@media(min-width:700px){.app{padding-top:28px}h1{font-size:2.4rem}}@media(prefers-reduced-motion:no-preference){.rep,.check{transition:background .15s,border-color .15s}}
