:root{color-scheme:light;--bg: #f6f5f2;--surface: #fcfcfb;--surface-2: #efeee9;--border: #dedcd5;--text: #0b0b0b;--text-2: #52514e;--text-3: #7a7973;--accent: #d9461f;--accent-ink: #ffffff;--accent-soft: #fbe3da;--good: #1a7f37;--warn: #9a6700;--rest: #2a78d6;--work: #d9461f;--grid: #e6e4de;--c-strengthPower: #2a78d6;--c-powerEndurance: #eb6834;--c-endurance: #1baf7a;--c-conditioning: #eda100;--c-technique: #e87ba4;--c-openClimbing: #008300;--c-crossTraining: #6250d6;--radius: 14px;--tabbar-h: 64px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;-webkit-text-size-adjust:100%}@media (prefers-color-scheme: dark){:root:not([data-theme=light]){color-scheme:dark;--bg: #111110;--surface: #1a1a19;--surface-2: #242422;--border: #34332f;--text: #f0efec;--text-2: #c3c2b7;--text-3: #8e8d85;--accent: #f06a40;--accent-ink: #160a05;--accent-soft: #3a1d12;--good: #4cc26a;--warn: #e0a83a;--rest: #3987e5;--work: #f06a40;--grid: #2c2b28;--c-strengthPower: #3987e5;--c-powerEndurance: #d95926;--c-endurance: #199e70;--c-conditioning: #c98500;--c-technique: #d55181;--c-openClimbing: #008300;--c-crossTraining: #9085e9}}:root[data-theme=dark]{color-scheme:dark;--bg: #111110;--surface: #1a1a19;--surface-2: #242422;--border: #34332f;--text: #f0efec;--text-2: #c3c2b7;--text-3: #8e8d85;--accent: #f06a40;--accent-ink: #160a05;--accent-soft: #3a1d12;--good: #4cc26a;--warn: #e0a83a;--rest: #3987e5;--work: #f06a40;--grid: #2c2b28;--c-strengthPower: #3987e5;--c-powerEndurance: #d95926;--c-endurance: #199e70;--c-conditioning: #c98500;--c-technique: #d55181;--c-openClimbing: #008300;--c-crossTraining: #9085e9}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text)}body{min-height:100dvh;overscroll-behavior-y:none}button,input,select,textarea{font:inherit;color:inherit}a{color:inherit;text-decoration:none}h1,h2,h3{margin:0;letter-spacing:-.01em}h1{font-size:28px;font-weight:800}h2{font-size:19px;font-weight:700}h3{font-size:15px;font-weight:650}p{margin:0}.app{max-width:720px;margin:0 auto;padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px)}.page{padding:calc(env(safe-area-inset-top) + 16px) 16px 16px;display:flex;flex-direction:column;gap:16px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.page-head .back{font-size:15px;color:var(--accent);font-weight:600;background:none;border:0;padding:0;cursor:pointer}.muted{color:var(--text-2)}.faint{color:var(--text-3);font-size:13px}.small{font-size:13px}.row{display:flex;align-items:center;gap:8px}.row.wrap{flex-wrap:wrap}.spread{display:flex;align-items:center;justify-content:space-between;gap:8px}.stack{display:flex;flex-direction:column;gap:12px}.stack-sm{display:flex;flex-direction:column;gap:6px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.grow{flex:1;min-width:0}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px}.card.link{display:block;cursor:pointer;transition:border-color .15s}.card.link:hover{border-color:var(--text-3)}.list{display:flex;flex-direction:column;gap:10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px;border-radius:12px;border:1px solid var(--border);background:var(--surface);font-weight:600;cursor:pointer}.btn:disabled{opacity:.5;cursor:default}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn.ghost{background:transparent;border-color:transparent;color:var(--accent)}.btn.danger{color:#c62828}.btn.block{width:100%}.btn.sm{min-height:34px;padding:0 12px;font-size:14px;border-radius:10px}.icon-btn{width:44px;height:44px;border-radius:50%;border:1px solid var(--border);background:var(--surface);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:18px}.chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:var(--surface-2);color:var(--text-2);font-size:12px;font-weight:600;white-space:nowrap}.chip.on{background:var(--text);color:var(--bg)}.chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}button.chip{border:0;cursor:pointer;min-height:32px;font-size:13px}.dot{width:10px;height:10px;border-radius:50%;flex:none}.cat-bar{width:4px;align-self:stretch;border-radius:4px;flex:none}.field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--text-2);font-weight:600}.input,select.input,textarea.input{width:100%;min-height:44px;padding:10px 12px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:16px;font-weight:400}textarea.input{min-height:80px;resize:vertical}.seg{display:flex;background:var(--surface-2);border-radius:10px;padding:3px;gap:3px}.seg button{flex:1;min-height:36px;border:0;border-radius:8px;background:transparent;font-weight:600;font-size:14px;color:var(--text-2);cursor:pointer}.seg button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #0000001f}.switch{display:flex;align-items:center;justify-content:space-between;min-height:44px}.switch input{width:22px;height:22px;accent-color:var(--accent)}.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:20;background:color-mix(in srgb,var(--surface) 92%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom)}.tabbar nav{max-width:720px;margin:0 auto;display:grid;grid-template-columns:repeat(5,1fr);height:var(--tabbar-h)}.tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;font-weight:600;color:var(--text-3)}.tabbar a.active{color:var(--accent)}.tabbar svg{width:24px;height:24px}.stat{display:flex;flex-direction:column;gap:2px}.stat b{font-size:24px;font-weight:800;font-variant-numeric:tabular-nums}.stat span{font-size:12px;color:var(--text-2);font-weight:600}.hero{background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 60%,#6b1d08));color:#fff;border:0}.hero .muted,.hero .faint{color:#ffffffd9}.badge{font-size:11px;font-weight:700;padding:2px 8px;border-radius:6px;background:var(--accent-soft);color:var(--accent)}.empty{text-align:center;padding:28px 12px;color:var(--text-2)}.activity{display:flex;gap:12px}.activity .num{width:28px;height:28px;border-radius:50%;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;flex:none}.presc{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:var(--text-2)}.presc b{color:var(--text);font-weight:650}.personal{color:var(--accent);font-weight:700}.player{min-height:100dvh;display:flex;flex-direction:column;padding:calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 16px);gap:14px;background:var(--bg)}.player.work{background:color-mix(in srgb,var(--work) 14%,var(--bg))}.player.rest{background:color-mix(in srgb,var(--rest) 12%,var(--bg))}.dial{position:relative;width:min(78vw,320px);aspect-ratio:1;margin:0 auto}.dial svg{width:100%;height:100%;transform:rotate(-90deg)}.dial .center{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.dial .clock{font-size:clamp(56px,18vw,84px);font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.03em}.dial .label{font-size:15px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.player.work .dial .label{color:var(--work)}.player.rest .dial .label{color:var(--rest)}.progress-dots{display:flex;gap:4px;flex-wrap:wrap;justify-content:center}.progress-dots i{width:8px;height:8px;border-radius:50%;background:var(--border)}.progress-dots i.done{background:var(--text-2)}.progress-dots i.cur{background:var(--accent)}.controls{display:flex;justify-content:center;align-items:center;gap:20px}.controls .main{width:76px;height:76px;font-size:28px;background:var(--accent);color:var(--accent-ink);border:0}.set-table{width:100%;border-collapse:collapse;font-size:14px}.set-table th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-3);font-weight:700;padding:4px}.set-table td{padding:4px;border-top:1px solid var(--grid)}.set-table input.input{min-height:36px;padding:6px 8px;font-size:15px}.set-table input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent)}.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.cal .dow{text-align:center;font-size:11px;color:var(--text-3);font-weight:700;padding-bottom:4px}.cal button{aspect-ratio:1;border-radius:10px;border:1px solid transparent;background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer;font-size:14px;font-variant-numeric:tabular-nums;padding:0}.cal button.out{opacity:.35}.cal button.today{border-color:var(--accent);font-weight:800}.cal button.sel{background:var(--text);color:var(--bg)}.cal .dots{display:flex;gap:2px;height:6px}.cal .dots .dot{width:6px;height:6px}.cal .planned{width:14px;height:2px;border-radius:2px;background:var(--text-3)}.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.week .day{background:var(--surface-2);border-radius:8px;min-height:64px;padding:4px;display:flex;flex-direction:column;gap:3px;font-size:10px}.week .day.today{outline:2px solid var(--accent)}.week .day .dn{font-weight:700;color:var(--text-3);font-size:10px}.week .pill{border-radius:5px;padding:3px 4px;color:#fff;font-weight:700;line-height:1.15;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;word-break:break-word;cursor:pointer;border:0;text-align:left;font-size:10px}.week .pill.done{opacity:.45;text-decoration:line-through}.week .add{border:1px dashed var(--border);background:transparent;border-radius:5px;color:var(--text-3);cursor:pointer;font-size:14px;min-height:22px}.chart{width:100%;height:auto;display:block;overflow:visible}.chart text{fill:var(--text-2);font-size:11px;font-variant-numeric:tabular-nums}.chart .gridline{stroke:var(--grid);stroke-width:1}.chart .axis{stroke:var(--border)}.legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:var(--text-2)}.legend span{display:inline-flex;align-items:center;gap:6px}.tooltip{position:absolute;pointer-events:none;background:var(--text);color:var(--bg);padding:6px 10px;border-radius:8px;font-size:12px;white-space:nowrap;transform:translate(-50%,calc(-100% - 10px));z-index:5}.chart-wrap{position:relative}.sheet-bg{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;z-index:50;display:flex;align-items:flex-end;justify-content:center}.sheet{background:var(--bg);width:100%;max-width:720px;max-height:88dvh;overflow:auto;border-radius:18px 18px 0 0;padding:16px 16px calc(env(safe-area-inset-bottom) + 16px);display:flex;flex-direction:column;gap:12px}@media (min-width: 720px){.sheet-bg{align-items:center}.sheet{border-radius:18px}}.table{width:100%;border-collapse:collapse;font-size:13px}.table th,.table td{text-align:left;padding:6px 4px;border-bottom:1px solid var(--grid)}.table th{color:var(--text-3);font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:.05em}.table td.num,.table th.num{text-align:right;font-variant-numeric:tabular-nums}details summary{cursor:pointer;font-size:13px;color:var(--accent);font-weight:600}
