:root {
  --ink: #182b25; --muted: #66756d; --background: #f7f8f3; --paper: #fff;
  --line: #d9dfd5; --soft: #eef2e7; --accent: #cadfa6;
  --danger: #9d4635; --shadow: 0 20px 55px rgba(31,52,40,.045);
  color-scheme: light;
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--background); color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; }
button,input,select { font:inherit; }
button { cursor:pointer; }
button:disabled { opacity:.35; cursor:default; }
[hidden] { display:none !important; }
.shell { width:min(100% - 36px, 680px); margin:0 auto; padding-bottom:28px; }
.masthead { padding:29px 0 23px; display:flex; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); align-items:center; }
.brand { font-size:13px; letter-spacing:.13em; font-weight:850; }
.brandmark { display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:8px; background:var(--ink); color:var(--accent); font-size:21px; margin-right:6px; vertical-align:middle; }
.brand-sub { color:#89968c; font-size:10px; font-weight:600; letter-spacing:.1em; }
.online { font-size:10px; letter-spacing:.09em; color:var(--muted); font-weight:700; }
.day-head { padding:37px 0 25px; }
.eyebrow, .section-top, .fineprint, footer { font-size:11px; letter-spacing:.12em; font-weight:700; }
.eyebrow { color:var(--muted); margin:0 0 12px; }
.headline { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
h1 { font-size:clamp(34px,8vw,48px); letter-spacing:-.065em; font-weight:690; line-height:1.09; margin:0; }
.intro { color:var(--muted); font-size:15px; line-height:1.52; margin:11px 0 0; }
.slot-badge { flex:none; width:70px; height:74px; display:flex; align-items:center; justify-content:center; background:var(--ink); color:var(--accent); border-radius:19px; font-size:40px; font-weight:700; letter-spacing:-.08em; }
.section-top { display:flex; justify-content:space-between; color:var(--muted); border-bottom:1px solid var(--line); padding-bottom:10px; margin:0 0 13px; }
.cards { display:grid; gap:13px; }
.exercise { background:var(--paper); border:1px solid var(--line); border-radius:20px; padding:21px 21px 18px; box-shadow:var(--shadow); }
.exercise.completed { background:var(--soft); }
.exercise-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.exercise-name { font-size:21px; letter-spacing:-.04em; font-weight:700; margin:0; }
.pill { display:inline-flex; align-items:center; font-size:10px; font-weight:750; letter-spacing:.09em; background:#e6ebdf; color:var(--ink); padding:6px 10px; border-radius:100px; white-space:nowrap; }
.pill.heavy { color:#e7eadf; background:var(--ink); }
.dose { display:flex; align-items:center; gap:21px; margin:23px 0 12px; }
.dose-item { display:flex; align-items:baseline; gap:5px; }
.dose-number { font-size:46px; line-height:1; font-weight:670; letter-spacing:-.07em; font-variant-numeric:tabular-nums; }
.dose-unit { color:var(--muted); font-weight:600; font-size:14px; }
.dose-divider { width:1px; background:var(--line); height:44px; }
.dose-sessions .dose-number { color:#3c654f; }
.detail { color:var(--muted); font-size:13px; min-height:20px; line-height:1.4; margin:0 0 16px; }
.actions { display:grid; grid-template-columns:1.25fr 1fr .75fr; gap:7px; }
.action { border:1px solid var(--line); border-radius:11px; padding:13px 5px; background:#fff; font-size:13px; font-weight:700; min-height:45px; }
.action:focus-visible,button:focus-visible,summary:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline:3px solid #8cac64; outline-offset:3px; }
.action.done { background:var(--ink); color:#fff; border-color:var(--ink); }
.action.skip { color:var(--muted); }
.status-saved { display:flex; gap:6px; align-items:center; color:var(--ink); font-size:14px; font-weight:750; padding:11px 0 5px; }
.notice { background:#eaf0df; color:#2a4a36; border-left:3px solid #7d9c60; border-radius:9px; margin:0 0 19px; padding:13px 14px; font-size:13px; line-height:1.5; }
.notice.rest { background:#ecefeb; border-left-color:#96a49a; }
.completion { padding:14px 0; color:var(--ink); font-size:13px; }
.after { margin-top:30px; }
.statline { display:flex; justify-content:space-between; gap:10px; color:var(--muted); font-size:10px; letter-spacing:.07em; font-weight:750; margin-bottom:16px; }
details { border-top:1px solid var(--line); }
details:last-child { border-bottom:1px solid var(--line); }
summary { cursor:pointer; list-style:none; padding:18px 0; font-size:14px; font-weight:700; display:flex; justify-content:space-between; }
summary::-webkit-details-marker { display:none; }
summary span { color:var(--muted); font-size:18px; font-weight:400; }
.history-list { padding:0 0 15px; }
.history-row { display:flex; padding:12px 0; gap:12px; align-items:start; border-top:1px solid #e3e7df; }
.history-date { font-size:12px; width:75px; color:var(--muted); flex:none; }
.history-detail { flex:1; font-size:12px; line-height:1.5; }
.history-detail b { font-weight:700; }
.history-detail p { margin:3px 0; color:var(--muted); }
.fineprint { letter-spacing:0; line-height:1.55; font-size:12px; color:var(--muted); font-weight:400; margin:0 0 18px; }
.track-row { border-top:1px solid var(--line); display:flex; align-items:center; gap:10px; justify-content:space-between; padding:11px 0; }
.track-text { font-size:12px; }
.track-text small { display:block; font-size:11px; color:var(--muted); padding-top:3px; }
.track-row select { border:1px solid var(--line); background:#fff; color:var(--ink); border-radius:9px; padding:8px 9px; min-width:83px; }
.admin-actions { display:flex; flex-wrap:wrap; gap:17px 23px; padding:23px 0; }
.plain-link,.text-button { padding:0; background:none; border:0; color:var(--ink); font-weight:700; font-size:12px; text-decoration:underline; text-underline-offset:4px; text-decoration-color:#9daa9a; }
.text-button { color:#866053; }
footer { display:flex; gap:8px; justify-content:space-between; color:#89978a; letter-spacing:.07em; margin-top:40px; font-size:9px; }
.login { padding:62px 0 25px; }
.login h1 { margin-bottom:15px; }
.login form { padding-top:36px; }
.form-label { display:block; font-size:12px; margin-bottom:8px; font-weight:700; }
input[type=password] { width:100%; background:#fff; border:1px solid var(--line); border-radius:11px; padding:16px 15px; margin-bottom:12px; }
.primary { background:var(--ink); color:#fff; border:0; padding:16px 19px; border-radius:11px; font-weight:750; }
.primary span { float:right; }
.wide { width:100%; text-align:left; }
.error { color:var(--danger); font-size:13px; line-height:1.5; padding:10px 0; }
.toast { position:fixed; z-index:8; left:50%; bottom:calc(25px + env(safe-area-inset-bottom)); transform:translateX(-50%); background:var(--ink); color:#fff; border-radius:12px; padding:14px 20px; font-size:13px; box-shadow:0 12px 36px #0002; max-width:calc(100% - 34px); width:max-content; }
@media (min-width:650px) { .shell { padding-bottom:70px } .day-head { padding-top:56px } .cards { gap:16px } .exercise { padding:24px 27px 24px; } }
@media (max-width:360px) { .brand-sub { display:none } .dose-number { font-size:39px } .dose { gap:12px } .exercise { padding:17px } .action { font-size:12px; padding:10px 2px; } }
