:root{--bg:#f7f5ef;--paper:#fffefa;--ink:#25342e;--green:#195042;--mid:#548263;--pale:#eaf1e9;--line:#e6e0d3;--muted:#777b70;--night:#be8652;--radius:24px;color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);line-height:1.6}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button{border:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #be8652;outline-offset:4px}button{touch-action:manipulation}button:not(.wheel-item){min-height:44px}a{color:inherit;text-decoration:none}.header{height:88px;max-width:1100px;margin:auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{font-weight:750;font-size:22px;display:flex;gap:10px;align-items:center;letter-spacing:.03em}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--green);color:white;font-size:30px;line-height:1}.icon-button{background:transparent;color:var(--muted);font-size:27px;min-width:44px;border-radius:50%}main{max-width:1056px;margin:0 auto;padding:36px 28px 120px}h1{font-size:30px;line-height:1.35;margin:4px 0 0;letter-spacing:.03em}h2{font-size:21px;margin:0}h3{font-size:18px;margin:0}p{margin:0}.eyebrow{font-size:12px;letter-spacing:.16em;color:var(--mid);font-weight:700}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}.date-display{font-size:14px;color:var(--muted);margin-top:8px}.badge{background:var(--pale);padding:8px 13px;border-radius:30px;font-size:14px;color:var(--green);font-weight:600;white-space:nowrap}.grid{display:grid;grid-template-columns:1.15fr .85fr;gap:24px}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:24px}.daily-card{padding:0;overflow:hidden}.card-top{background:var(--green);color:white;padding:22px 24px;display:flex;justify-content:space-between;align-items:center}.card-top .subtle{color:#d1dfd2}.subtle{font-size:14px;color:var(--muted)}.daily-slot{padding:22px 24px}.daily-slot+.daily-slot{border-top:1px solid var(--line)}.slot-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.slot-label{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:650}.sun{color:var(--mid);font-size:22px}.moon{color:var(--night);font-size:22px}.status{font-size:13px;color:var(--muted)}.status.done{color:var(--mid)}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:17px}.metric+.metric{border-left:1px solid var(--line);padding-left:20px}.metric-label{font-size:14px;color:var(--muted)}.metric-value{font-size:36px;font-weight:650;letter-spacing:-.04em;line-height:1.35;font-variant-numeric:tabular-nums}.metric-value.empty{color:#b8b9ae}.unit{font-size:14px;letter-spacing:0;color:var(--muted);font-weight:500;margin-left:4px}.primary{background:var(--green);color:white;border-radius:14px;min-height:52px;padding:12px 20px;font-weight:650;box-shadow:0 3px 0 #123b31}.secondary{background:var(--pale);color:var(--green);border:1px solid #d8e3d8;border-radius:14px;padding:10px 18px;font-weight:600}.daily-slot .primary,.daily-slot .secondary{width:100%}.aside-stack{display:grid;gap:20px;align-content:start}.trend-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.text-button{background:transparent;color:var(--green);font-size:14px;padding:4px 8px;font-weight:600}.empty-state{padding:38px 12px;text-align:center}.empty-symbol{font-size:36px;color:var(--mid);margin-bottom:12px}.empty-state h3{margin-bottom:9px}.empty-state p{color:var(--muted);font-size:14px}.empty-state button{margin-top:18px}.note-card{background:#eeeee4;border:0}.note-card h3{margin-bottom:8px}.note-card p{font-size:14px;color:#686f63;line-height:1.9}.bottom-nav{position:fixed;z-index:10;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,580px);display:grid;grid-template-columns:repeat(4,1fr);background:rgba(255,254,250,.97);border:1px solid var(--line);border-bottom:0;border-radius:22px 22px 0 0;padding:8px 10px max(10px,env(safe-area-inset-bottom));backdrop-filter:blur(16px)}.bottom-nav button{background:transparent;color:var(--muted);font-size:12px;font-weight:600;border-radius:14px;padding:5px 2px;display:flex;flex-direction:column;align-items:center;gap:0}.bottom-nav button span{font-size:25px;line-height:1.35}.bottom-nav button.active{background:var(--pale);color:var(--green)}.segmented{display:flex;gap:4px;background:#eae7df;padding:4px;border-radius:13px}.segmented button{flex:1;background:transparent;border-radius:10px;color:var(--muted);font-size:14px;padding:7px 9px;white-space:nowrap}.segmented button.active{background:var(--paper);color:var(--green);box-shadow:0 2px 5px #00000009;font-weight:650}.filters{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.filters .segmented{flex:1}.chart-card{padding:24px}.chart{width:100%;height:auto;display:block;overflow:visible}.chart text{font-family:inherit;font-size:12px;fill:var(--muted)}.chart .chart-point{cursor:pointer;outline:none}.chart .chart-point:focus{stroke-width:5}.chart-legend{display:flex;gap:20px;align-items:center;justify-content:center;font-size:14px;margin-top:12px;color:var(--muted)}.legend-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--mid);margin-right:7px}.legend-dot.night{background:var(--night);border-radius:2px}.chart-detail{margin-top:16px;text-align:center;background:var(--bg);border-radius:12px;padding:12px;font-size:14px;min-height:48px}.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.stat{background:var(--pale);border-radius:16px;padding:16px;text-align:center}.stat strong{display:block;font-size:24px;font-weight:650;font-variant-numeric:tabular-nums}.stat span{font-size:13px;color:var(--muted)}.sample-banner{background:#f7eada;color:#855b34;border-radius:12px;padding:10px 14px;display:flex;justify-content:space-between;align-items:center;font-size:14px;margin-bottom:20px}.history-group{margin-bottom:24px}.history-date{font-size:14px;font-weight:650;color:var(--muted);margin-bottom:10px}.history-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:18px 0}.history-row+.history-row{border-top:1px solid var(--line)}.history-values{display:flex;gap:20px;flex:1;justify-content:center}.history-values strong{font-size:20px}.history-actions{display:flex;gap:5px}.history-actions button{background:transparent;color:var(--green);font-size:14px;padding:5px 7px}.history-actions .delete{color:#a45b4e}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-card h2{margin-bottom:16px}.settings-card p{font-size:14px;color:var(--muted);margin-bottom:16px}.setting-field{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.setting-field label{font-size:14px}.setting-field input{width:116px;border:1px solid var(--line);border-radius:10px;padding:9px 12px;background:white;color:var(--ink)}.settings-buttons{display:flex;gap:10px;flex-wrap:wrap}.settings-buttons button{flex:1}.install-steps{padding-left:21px;font-size:14px;color:var(--muted);line-height:2}.file-input{display:none}.error{color:#a34b3f;font-size:14px;min-height:24px;margin-top:10px}dialog{padding:0;border:0;border-radius:28px 28px 0 0;background:var(--bg);color:var(--ink);width:min(100%,520px);max-height:94dvh;margin:auto auto 0;box-shadow:0 -12px 60px #0002;overflow-y:auto;overscroll-behavior:contain}dialog::backdrop{background:#182d2660;backdrop-filter:blur(3px)}#record-form{padding:14px 24px max(24px,env(safe-area-inset-bottom))}.handle{width:42px;height:5px;border-radius:5px;background:#cec8b8;margin:0 auto 20px}.sheet-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.sheet-heading h2{font-size:25px}.record-date{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;gap:8px}#date-toggle{background:var(--paper);border:1px solid var(--line);border-radius:12px;color:var(--green);font-weight:600;padding:8px 14px}.input-tip{text-align:center;margin:18px 0}.measure-section{margin:18px 0 24px}.measure-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.measure-heading h3{font-size:16px}.measure-heading strong{font-size:24px;color:var(--green);font-variant-numeric:tabular-nums}.wheel-row{display:flex;align-items:center;gap:12px}.step-button{width:44px;height:44px;flex-shrink:0;border-radius:50%;background:var(--pale);color:var(--mid);font-size:28px;border:1px solid #d2dfd2;line-height:1}.number-wheels{display:flex;flex:1;justify-content:center;align-items:center;background:white;border:1px solid var(--line);border-radius:20px;position:relative;padding:0 10px;min-width:0}.number-wheels:before{content:"";position:absolute;left:8px;right:8px;top:50%;height:44px;transform:translateY(-50%);border-radius:10px;background:#f0f5ef;pointer-events:none}.decimal{position:relative;font-size:28px;font-weight:700}.wheel{height:132px;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain;position:relative;min-width:0;flex:1;mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent)}.wheel::-webkit-scrollbar{display:none}.wheel-item{display:block;width:100%;height:44px;min-height:44px;line-height:44px;text-align:center;padding:0;background:transparent;color:#adb1a7;font-size:24px;font-weight:550;scroll-snap-align:center;font-variant-numeric:tabular-nums;border:0}.number-wheels .wheel-item{font-size:32px}.wheel-item.selected{color:var(--ink);font-weight:700}.wheel-spacer{height:44px}.wheel-wrap{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;text-align:center}.wheel-wrap p{font-size:12px;color:var(--muted);padding-top:4px}.confirm-value{background:transparent;color:var(--green);border:1px solid #ceddcd;width:100%;border-radius:11px;font-size:14px;margin-top:10px;padding:8px}.confirm-value.confirmed{background:var(--pale);border-color:var(--pale)}.clear-value{color:var(--muted);background:transparent;font-size:13px;padding:0 6px}.save-button{width:100%;margin:8px 0 12px}.sheet-note{text-align:center;font-size:12px;color:var(--muted)}#toast{position:fixed;z-index:100;left:50%;bottom:105px;transform:translateX(-50%);padding:12px 20px;border-radius:14px;color:white;background:var(--green);box-shadow:0 4px 20px #0002;max-width:90%;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}.full-width{grid-column:1/-1}.small-note{font-size:13px;color:var(--muted);margin-top:16px}.danger-text{color:#a45b4e}.mini-chart{padding-top:8px}.offline-badge{font-size:12px;color:var(--muted);margin-bottom:15px}.support-note{border-top:1px solid var(--line);padding-top:16px;margin-top:18px!important}
@media(max-width:700px){.header{height:74px;padding:0 22px}.brand{font-size:20px}main{padding:26px 20px 120px}.page-heading{margin-bottom:22px}h1{font-size:26px}.grid,.settings-grid{grid-template-columns:1fr;gap:20px}.card{padding:21px}.daily-card{padding:0}.daily-slot{padding:20px 22px}.card-top{padding:19px 22px}.metric-value{font-size:38px}.aside-stack{gap:18px}.chart-card{padding:18px 12px}.chart-card h2{padding-left:8px}.filters{gap:8px}.filters .segmented{flex-basis:calc(50% - 8px)}.stat{padding:12px 6px}.stat strong{font-size:21px}.history-values{gap:12px}.history-values strong{font-size:18px}.history-row{gap:5px}.history-actions{gap:0}.history-actions button{padding:4px}.history-values .unit{font-size:12px}.badge{font-size:12px}.bottom-nav{border-radius:0;border-left:0;border-right:0}.empty-state{padding:30px 8px}}
@media(min-width:701px){dialog{margin:auto;border-radius:28px}.bottom-nav{bottom:18px;border-bottom:1px solid var(--line);border-radius:20px;padding-bottom:8px}.page-heading{padding-top:8px}.daily-slot{padding:25px 28px}.daily-slot .primary,.daily-slot .secondary{min-height:54px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}@media(max-width:360px){main{padding-left:12px;padding-right:12px}#record-form{padding-left:16px;padding-right:16px}.wheel-row{gap:7px}.metric-value{font-size:33px}.history-row{flex-wrap:wrap}.history-actions{margin-left:auto}}

.pace-card{margin-top:20px}.pace-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}.pace-item{background:var(--pale);border-radius:16px;padding:18px}.pace-value{font-size:34px;line-height:1.5;font-weight:700;letter-spacing:-.03em;color:var(--green);font-variant-numeric:tabular-nums;margin:8px 0 2px}.pace-meta{font-size:12px;color:var(--muted);margin-top:8px}.chart-legend{flex-wrap:wrap;gap:10px 18px}.pace-card .trend-header{gap:12px;flex-wrap:wrap}@media(max-width:700px){.pace-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.pace-value{font-size:28px}.pace-value .unit{display:block;margin:0;font-size:13px}.pace-item{padding:14px}}

#date-calendar{background:white;border:1px solid var(--line);border-radius:18px;padding:12px;margin-bottom:16px}#date-calendar[hidden]{display:none}.calendar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.calendar-selects{display:flex;gap:8px}.calendar-selects select{background:var(--bg);border:1px solid var(--line);border-radius:9px;padding:7px;color:var(--green);min-height:44px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.calendar-weekday{font-size:12px;color:var(--muted);text-align:center;padding:5px 0}.calendar-day{border-radius:50%;background:transparent;color:var(--ink);min-width:0;min-height:44px;padding:0;font-size:16px}.calendar-day.today{box-shadow:inset 0 0 0 1px var(--mid)}.calendar-day.selected{background:var(--green);color:white;font-weight:700}.calendar-day:disabled{color:#b9beb5;opacity:.65}.filters .segmented{flex-basis:100%}

.header-actions{display:flex;align-items:center;gap:8px}.help-shortcut{display:flex;gap:6px;align-items:center;background:transparent;color:var(--green);font-size:14px;padding:6px}.help-shortcut span{border:1.5px solid var(--mid);border-radius:50%;width:22px;height:22px;line-height:20px;text-align:center;font-weight:650}.welcome-guide{display:flex;gap:16px;align-items:center;justify-content:space-between;background:var(--pale);border-radius:18px;padding:20px 24px;margin-bottom:24px}.welcome-guide h2{font-size:18px}.welcome-guide p:not(.eyebrow){font-size:14px;color:var(--muted);margin-top:5px}.welcome-guide button{flex-shrink:0;background:var(--paper)}.guide-intro{margin-bottom:24px}.quick-steps{display:flex;gap:22px;flex-wrap:wrap;margin-top:18px;font-size:14px;font-weight:600;color:var(--green)}.quick-steps span{display:flex;align-items:center;gap:8px}.quick-steps b{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--pale)}.guide-sections{display:grid;gap:14px}.guide-section{padding:0;overflow:hidden}.guide-section summary{display:flex;gap:14px;align-items:center;padding:20px 24px;cursor:pointer;list-style:none;min-height:70px}.guide-section summary::-webkit-details-marker{display:none}.guide-section summary:after{content:'＋';margin-left:auto;color:var(--mid);font-size:22px}.guide-section[open] summary:after{content:'−'}.guide-section summary:focus-visible{outline:3px solid var(--night);outline-offset:-4px;border-radius:20px}.guide-section summary h2{font-size:18px}.guide-number{font-size:13px;font-weight:700;color:var(--mid);letter-spacing:.08em}.guide-body{padding:0 24px 24px;line-height:1.9}.guide-body h3{font-size:16px;margin:22px 0 8px}.guide-body p{font-size:15px;margin-bottom:12px}.guide-body ol{padding-left:24px;font-size:15px;margin:10px 0 18px}.guide-body li{padding-left:4px;margin-bottom:10px}.guide-note{background:var(--pale);color:var(--green);padding:14px 16px;border-radius:12px;font-size:14px!important}.guide-sources{display:flex;flex-wrap:wrap;gap:20px;font-size:13px;color:var(--muted)}.guide-sources a{text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:44px}.guide-definitions{margin:20px 0;font-size:15px}.guide-definitions dt{font-weight:650;color:var(--green);margin-top:15px}.guide-definitions dd{margin:4px 0 12px}@media(max-width:700px){.welcome-guide{flex-wrap:wrap;padding:20px}.welcome-guide button{width:100%}.header-actions{gap:0}.help-shortcut{font-size:12px;gap:4px}.header{padding:0 16px}.brand{font-size:18px;gap:7px}.brand-mark{width:30px;height:30px}.guide-section summary{padding:18px;gap:10px}.guide-section summary h2{font-size:16px}.guide-body{padding:0 18px 20px}.quick-steps{gap:12px;flex-direction:column}}
