:root{color-scheme:light;--bg: #f5f5f7;--card: #ffffff;--text: #1c1c1e;--text2: #636366;--text3: #8e8e93;--sep: rgba(60, 60, 67, .13);--fill: #eeeef1;--fill-strong: #e2e2e7;--accent: #2a6fc2;--accent-soft: rgba(42, 111, 194, .12);--on-accent: #ffffff;--danger: #d1372f;--bar-bg: rgba(250, 250, 252, .86);--shadow: 0 1px 2px rgba(0, 0, 0, .04);--series-1: #2a78d6;--series-2: #eb6834;--series-3: #1baf7a;--series-4: #eda100;--series-5: #e87ba4;--series-6: #008300;--series-7: #6250d6;--series-8: #e34948}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--bg: #000000;--card: #1c1c1e;--text: #f2f2f7;--text2: #aeaeb2;--text3: #8e8e93;--sep: rgba(120, 120, 128, .32);--fill: #2c2c2e;--fill-strong: #3a3a3c;--accent: #5a9ee8;--accent-soft: rgba(90, 158, 232, .18);--on-accent: #06203f;--danger: #ff6961;--bar-bg: rgba(22, 22, 24, .86);--shadow: none;--series-1: #3987e5;--series-2: #d95926;--series-3: #199e70;--series-4: #c98500;--series-5: #d55181;--series-6: #008300;--series-7: #9085e9;--series-8: #e66767}}:root[data-theme=dark]{color-scheme:dark;--bg: #000000;--card: #1c1c1e;--text: #f2f2f7;--text2: #aeaeb2;--text3: #8e8e93;--sep: rgba(120, 120, 128, .32);--fill: #2c2c2e;--fill-strong: #3a3a3c;--accent: #5a9ee8;--accent-soft: rgba(90, 158, 232, .18);--on-accent: #06203f;--danger: #ff6961;--bar-bg: rgba(22, 22, 24, .86);--shadow: none;--series-1: #3987e5;--series-2: #d95926;--series-3: #199e70;--series-4: #c98500;--series-5: #d55181;--series-6: #008300;--series-7: #9085e9;--series-8: #e66767}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Hiragino Sans,Hiragino Kaku Gothic ProN,Yu Gothic UI,Noto Sans JP,Meiryo,sans-serif;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;overscroll-behavior-y:none}h1,h2,h3,p{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{border:0;background:none;padding:0;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app{max-width:640px;margin:0 auto;padding:calc(env(safe-area-inset-top) + 12px) max(16px,env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 96px) max(16px,env(safe-area-inset-left))}.screen{display:flex;flex-direction:column;gap:16px}.screen-head h1,.home-head h1{font-size:30px;font-weight:700;letter-spacing:-.01em;line-height:1.2}.screen-head{padding:12px 4px 0}.home-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:12px 4px 0}.eyebrow{font-size:13px;color:var(--text3);font-weight:600}.muted{color:var(--text3)}.fatal{max-width:480px;margin:0 auto;padding:25vh 24px 0;text-align:center;display:flex;flex-direction:column;gap:14px;align-items:center}.fatal h1{font-size:20px}.card{background:var(--card);border-radius:20px;padding:18px 16px;box-shadow:var(--shadow);min-width:0}.card-title{font-size:13px;font-weight:600;color:var(--text2);margin-bottom:6px}.card-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.card-aside{font-size:13px;color:var(--text3);white-space:nowrap}.card-note{font-size:12.5px;color:var(--text3);margin-top:10px;line-height:1.6}.card-note.warn{color:var(--text);background:var(--accent-soft);border-radius:10px;padding:8px 10px;margin:4px 0 6px}.sub-title{font-size:13px;font-weight:600;color:var(--text2);margin:18px 0 2px}.empty{color:var(--text3);font-size:14px;padding:10px 0 4px}.footnote{text-align:center;font-size:12px;color:var(--text3);padding:4px 0 8px}.link{color:var(--accent);font-weight:600;font-size:15px;padding:6px 4px;margin:-6px -4px}.row{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:8px 0;text-align:left;border-top:1px solid var(--sep)}.card-title+.row,.card-head+.row,.day:first-of-type .row{border-top:0}.row-main{flex:1;min-width:0;display:flex;flex-direction:column}.row-title{font-size:16px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-sub{font-size:13px;color:var(--text2);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.row-date{color:var(--text3);margin-right:8px;font-variant-numeric:tabular-nums}.row-value{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.row-value.zero{color:var(--text3);font-weight:500}.row-value.accent{color:var(--accent)}.row-tap{display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:44px;text-align:left}.piece-row .row-title,.piece-option .row-title{white-space:normal;line-height:1.35}.piece-row.archived .row-title{color:var(--text3)}.chev{color:var(--text3);font-size:20px;line-height:1;transition:transform .15s}.chev.down{transform:rotate(90deg)}.dot{flex:none;width:10px;height:10px;border-radius:50%}.icon-btn{flex:none;width:40px;height:40px;border-radius:50%;background:var(--fill);color:var(--accent);display:grid;place-items:center}.icon-btn svg{width:20px;height:20px}.icon-btn:disabled{color:var(--text3);opacity:.5}.icon-btn:active:not(:disabled){background:var(--fill-strong)}.lesson-chip{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:10px 16px;border-radius:16px;background:var(--card);box-shadow:var(--shadow);text-align:left}.lesson-chip-label{font-size:14px;color:var(--text2)}.lesson-chip strong{font-size:18px;font-weight:700;color:var(--accent);white-space:nowrap}.lesson-chip strong.unset{font-size:15px}.timer-banner{display:flex;align-items:center;gap:12px;background:var(--accent-soft);border-radius:16px;padding:12px 14px;text-align:left}.timer-banner-time{font-size:20px;font-weight:700;font-variant-numeric:tabular-nums}.pulse{width:10px;height:10px;border-radius:50%;background:var(--text3);flex:none}.pulse.on{background:var(--accent);animation:pulse 1.6s ease-in-out infinite}@keyframes pulse{50%{opacity:.35}}.today-card{display:flex;flex-direction:column;align-items:center;padding:24px 16px 20px}.ring{position:relative;width:min(62vw,230px);aspect-ratio:1}.ring svg{width:100%;height:100%;display:block}.ring-track{fill:none;stroke:var(--fill);stroke-width:14}.ring-bar{fill:none;stroke:var(--accent);stroke-width:14;stroke-linecap:round;transition:stroke-dasharray .5s ease}.ring-tick{fill:var(--card);opacity:.9}.ring-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.ring-value{font-size:clamp(56px,19vw,76px);font-weight:700;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}.ring-value span{font-size:.34em;font-weight:600;margin-left:2px;letter-spacing:0}.ring-sub{font-size:13px;color:var(--text2);margin-top:6px}.today-pct{margin-top:14px;font-size:14px;color:var(--text2)}.today-pct strong{color:var(--text);font-size:17px;font-variant-numeric:tabular-nums}.milestones{display:flex;gap:8px;margin-top:12px}.milestone{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;padding:6px 12px 6px 8px;border-radius:999px;background:var(--fill);color:var(--text2)}.milestone i{width:18px;height:18px;border-radius:50%;border:1.5px solid var(--text3);font-style:normal;font-size:11px;display:grid;place-items:center}.milestone.on{background:var(--accent-soft);color:var(--text)}.milestone.on i{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.today-msg{margin-top:12px;font-size:14px;color:var(--text2);text-align:center}.big-number{font-size:30px;font-weight:700;letter-spacing:-.01em;font-variant-numeric:tabular-nums;line-height:1.2}.week{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:14px}.week-day{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}.week-min{font-size:11.5px;color:var(--text2);height:16px;font-variant-numeric:tabular-nums}.week-bar{width:100%;max-width:30px;height:56px;border-radius:8px;background:var(--fill);display:flex;align-items:flex-end;overflow:hidden}.week-bar i{display:block;width:100%;border-radius:4px 4px 0 0;background:var(--accent);opacity:.35}.week-day.min .week-bar i{opacity:.6}.week-day.done .week-bar i{opacity:1}.week-day.future .week-bar{opacity:.5}.week-label{font-size:12px;color:var(--text3);width:24px;height:24px;display:grid;place-items:center;border-radius:50%}.week-day.today .week-label{background:var(--text);color:var(--card);font-weight:700}.task{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;padding:12px 0;border-top:1px solid var(--sep)}.card-title+.task{border-top:0;padding-top:6px}.task-head{display:flex;align-items:center;gap:8px}.task-piece{flex:1;min-width:0;font-size:13px;font-weight:600;color:var(--text2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-edit{font-size:13px;color:var(--accent)}.task-text{font-size:16px;font-weight:500;white-space:pre-wrap;overflow-wrap:anywhere}.task-text.unset{color:var(--text3);font-weight:400}.task-memo{font-size:13px;color:var(--text2);overflow-wrap:anywhere}.segmented{display:flex;background:var(--fill);border-radius:11px;padding:2px}.segmented button{flex:1;min-height:36px;border-radius:9px;font-size:14px;font-weight:500;color:var(--text2);white-space:nowrap}.segmented button.on{background:var(--card);color:var(--text);font-weight:600;box-shadow:0 1px 3px #0000001f}:root[data-theme=dark] .segmented button.on{background:#636366}@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .segmented button.on{background:#636366}}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border-radius:14px;font-size:16px;font-weight:600;text-align:center}.btn.block{display:flex;width:100%;margin-top:10px}.btn.big{min-height:56px;font-size:18px;flex:1}.btn.primary{background:var(--accent);color:var(--on-accent)}.btn.secondary{background:var(--fill);color:var(--text)}.btn.plain{color:var(--accent)}.btn.danger{background:var(--danger);color:#fff}.btn.danger-plain{color:var(--danger);font-weight:500}.btn:active:not(:disabled){opacity:.75}.btn:disabled{opacity:.45}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.field-label{font-size:13px;font-weight:600;color:var(--text2)}.field-hint{font-size:12.5px;color:var(--text3);line-height:1.5}input[type=text],input[type=date],select,textarea{width:100%;min-height:46px;border:0;border-radius:12px;background:var(--fill);padding:10px 12px;font-size:16px;-webkit-appearance:none;appearance:none;min-width:0}input[type=date]{display:block;text-align:left}input::-webkit-date-and-time-value{text-align:left}textarea{resize:vertical;line-height:1.5}select{background-image:linear-gradient(45deg,transparent 50%,var(--text3) 50%),linear-gradient(135deg,var(--text3) 50%,transparent 50%);background-position:calc(100% - 19px) 20px,calc(100% - 14px) 20px;background-size:5px 5px;background-repeat:no-repeat;padding-right:34px}::placeholder{color:var(--text3)}.minutes-input{display:flex;align-items:stretch;gap:6px}.step{flex:1 1 0;min-width:0;min-height:52px;border-radius:12px;background:var(--fill);font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}.step:active:not(:disabled){background:var(--fill-strong)}.step:disabled{color:var(--text3);opacity:.6}.minutes-field{flex:1.5 1 0;min-width:0;display:flex;align-items:baseline;justify-content:center;gap:2px;border-radius:12px;border:1.5px solid var(--sep);padding:0 6px}.minutes-field:focus-within{border-color:var(--accent)}.minutes-input .minutes-field{background:var(--card)}.minutes-input .minutes-field input[type=text]{background:none;border-radius:0}.minutes-field input{width:2.4em;min-height:48px;padding:0;background:none;text-align:right;font-size:26px;font-weight:700;font-variant-numeric:tabular-nums;outline:none}.minutes-field span{font-size:14px;color:var(--text2);font-weight:600}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;font-weight:500}.switch-row small{display:block;font-size:12.5px;color:var(--text3);font-weight:400}.switch-row input{width:22px;height:22px;accent-color:var(--accent);flex:none}.range{display:flex;align-items:center;gap:8px;color:var(--text3)}.range input{background:var(--card)}.piece-picker{display:flex;flex-direction:column;gap:8px}.piece-option{display:flex;align-items:center;gap:10px;min-height:50px;padding:8px 12px;border-radius:14px;background:var(--fill);text-align:left;border:1.5px solid transparent}.piece-option.on{background:var(--accent-soft);border-color:var(--accent)}.piece-option .check{width:18px;color:var(--accent);font-weight:700}.timer-card{text-align:center;padding:26px 16px 20px}.timer-state{font-size:13px;font-weight:600;color:var(--text3)}.timer-state.on{color:var(--accent)}.timer-clock{font-size:clamp(60px,21vw,88px);font-weight:700;letter-spacing:-.02em;line-height:1.15;font-variant-numeric:tabular-nums}.timer-actions{display:flex;gap:10px;margin-top:18px}.tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tile{background:var(--card);border-radius:18px;padding:14px 16px;box-shadow:var(--shadow);display:flex;flex-direction:column;min-width:0}.tile-label{font-size:12.5px;color:var(--text2);font-weight:600}.tile strong,.summary strong{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.01em;white-space:nowrap}.tile-sub{font-size:12px;color:var(--text3)}.summary{display:grid;grid-template-columns:repeat(3,auto);justify-content:space-between;gap:10px;margin-top:6px}.summary>div{display:flex;flex-direction:column;min-width:0}.summary strong{font-size:20px}.summary small{font-size:13px;font-weight:500;color:var(--text3)}.chart{margin-top:14px;min-width:0}.chart svg{display:block;touch-action:pan-y}.chart-readout{display:flex;justify-content:space-between;align-items:baseline;font-size:13px;color:var(--text2);margin-bottom:4px}.chart-readout strong{font-size:17px;color:var(--text);font-variant-numeric:tabular-nums}.chart .grid{stroke:var(--sep);stroke-width:1}.chart .axis{stroke:var(--text3);stroke-width:1;opacity:.6}.chart .tick{font-size:10.5px;fill:var(--text3);font-variant-numeric:tabular-nums}.chart .goal-line{stroke:var(--text3);stroke-width:1;stroke-dasharray:3 4}.chart .bar{fill:var(--series-1);opacity:.55}.chart .bar.on{opacity:1}.chart .zero-mark{fill:var(--text3);opacity:.6}.chart .hit{fill:transparent}.share{margin-top:8px}.share-bar{display:flex;gap:2px;height:14px;border-radius:7px;overflow:hidden}.share-bar span{min-width:3px;flex-basis:0}.share-bar.empty{background:var(--fill)}.share-list{list-style:none;margin:10px 0 0;padding:0}.share-list li{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid var(--sep)}.share-list li:first-child{border-top:0}.share-value{display:flex;flex-direction:column;align-items:flex-end;font-variant-numeric:tabular-nums;white-space:nowrap}.share-value span{font-size:12.5px;color:var(--text2)}.day-row:disabled{color:inherit}.day.none .row-title,.day.none .row-value{color:var(--text3);font-weight:400}.day.none .row-value{font-size:14px}.day-mark{flex:none;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--sep);display:grid;place-items:center;font-size:12px;color:var(--on-accent)}.day-mark.min{background:var(--accent-soft);border-color:transparent;color:var(--accent)}.day-mark.done{background:var(--accent);border-color:var(--accent)}.day-sessions{margin:0 0 8px 32px;padding:0 12px;border-radius:12px;background:var(--fill)}.day-sessions .row:first-child{border-top:0}.overlay{position:fixed;inset:0;z-index:40;background:#0006;display:flex;align-items:flex-end;justify-content:center;animation:fade .18s ease}.overlay.center{align-items:center;padding:24px;z-index:60}@keyframes fade{0%{opacity:0}}.sheet{width:100%;max-width:560px;max-height:92dvh;background:var(--bg);border-radius:22px 22px 0 0;display:flex;flex-direction:column;animation:rise .24s cubic-bezier(.2,.8,.2,1)}@keyframes rise{0%{transform:translateY(40px);opacity:0}}.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 8px}.sheet-head h2{font-size:19px;font-weight:700}.sheet-close{color:var(--accent);font-size:16px;font-weight:500;min-height:44px;padding:0 4px}.sheet-body{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:8px 20px calc(env(safe-area-inset-bottom) + 24px)}.sheet-body input[type=text],.sheet-body input[type=date],.sheet-body select,.sheet-body textarea,.sheet-body .step{background:var(--card)}.sheet-lead{font-size:15px;color:var(--text2);margin-bottom:14px;font-variant-numeric:tabular-nums}.sheet-note{font-size:12.5px;color:var(--text3);margin-top:8px;text-align:center;line-height:1.6}.import-box{background:var(--card);border-radius:14px;padding:12px 14px;margin-bottom:10px;font-size:14px}@media(min-width:700px){.overlay{align-items:center;padding:24px}.sheet{border-radius:22px;max-height:86dvh}}.dialog{width:100%;max-width:340px;background:var(--card);border-radius:20px;padding:22px 20px 16px;text-align:center;box-shadow:0 20px 50px #00000040}.dialog h3{font-size:17px;font-weight:700}.dialog p{font-size:14px;color:var(--text2);margin-top:8px;white-space:pre-line;overflow-wrap:anywhere;line-height:1.6}.dialog-actions{display:flex;gap:8px;margin-top:18px}.dialog-actions .btn{flex:1;padding:0 10px;font-size:15px}.dialog-actions.stack{flex-direction:column}.dialog-actions.stack .btn{flex:none}.toast{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom) + 92px);transform:translate(-50%);z-index:80;width:max-content;max-width:calc(100vw - 32px);background:var(--text);color:var(--bg);font-size:14px;font-weight:500;padding:11px 18px;border-radius:14px;box-shadow:0 8px 24px #00000038;animation:rise .22s ease}.toast.error{background:var(--danger);color:#fff}.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;justify-content:center;padding:6px max(8px,env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 4px) max(8px,env(safe-area-inset-left));background:var(--bar-bg);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-top:1px solid var(--sep)}.tabbar button{position:relative;flex:1;max-width:150px;min-height:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--text3);font-size:10.5px;font-weight:600}.tabbar button.on{color:var(--accent)}.tabbar svg{width:25px;height:25px}.tab-badge{position:absolute;top:5px;left:calc(50% + 9px);width:9px;height:9px;border-radius:50%;background:var(--text3);border:1.5px solid var(--bg)}.tab-badge.on{background:var(--accent)}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
