:root{color-scheme:light;--bg:#eaf4ef;--paper:#fffefa;--ink:#254e43;--muted:#526b61;--green:#316c56;--soft:#dfede4;--peach:#f9ddcb;--line:#d7e3da;--error:#913728;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
.cycling-panel{max-width:650px;margin:12px 0 0;border-top:1px dashed var(--line);font-size:.875rem;line-height:1.8}.cycling-panel>summary{color:var(--green);font-weight:650}.ride-note,.ride-stats,.ride-route p{font-size:.8rem;color:var(--muted);overflow-wrap:anywhere}.ride-actions{display:flex;flex-wrap:wrap;gap:8px}.cycling-panel button{min-height:48px;padding:8px 14px;border:1px solid var(--green);border-radius:10px;background:var(--soft)}.cycling-panel #ride-start,.cycling-panel #ride-resume{background:var(--green);color:white}.ride-route{margin:12px 0;padding:12px;background:var(--bg);border-radius:12px}.ride-route svg{display:block;width:100%;height:auto;max-height:240px}.ride-route polyline{stroke:var(--green);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;fill:none}.ride-route circle{stroke:var(--paper);stroke-width:2}.ride-start-point{fill:var(--green)}.ride-end-point{fill:#b85f34}.cycling-panel h3{font-size:.9rem;margin:20px 0 4px}#ride-status{min-height:2em}#ride-history details{border-top:1px solid var(--line)}#ride-error:empty{display:none}
.offline-map{margin:16px 0 24px;padding-top:4px;border-top:1px dashed var(--line);min-width:0}.cycling-panel .offline-map h3{margin:14px 0 4px;font-size:1rem}.offline-map .ride-note{margin:6px 0 12px}.offline-map .ride-actions{margin-top:12px}#ride-map{height:360px;max-height:65svh;min-height:260px;position:relative;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#f8f6ef;isolation:isolate}#ride-map canvas{outline-offset:-4px}.map-controls{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.cycling-panel .map-controls button{min-width:48px;min-height:48px;padding:8px 10px}.map-attribution{font-size:.72rem;color:var(--muted);margin:8px 0 12px}.map-license{font-size:.8rem;margin:8px 0}.map-license-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;font:inherit;line-height:1.6}.map-license-text:empty{display:none}#map-error{overflow-wrap:anywhere}@media(max-width:359px){#ride-map{height:320px}}
.cycling-panel #map-follow[aria-pressed=true]{background:var(--green);color:white}
.masthead{padding-top:env(safe-area-inset-top,0px)}.brand-heading{display:flex;align-items:center}
#back-exit{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--green)}
#back-exit svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}#back-exit:active{background:var(--soft)}
#exit-status{margin:-8px 0 16px;color:var(--green);font-size:.8rem;line-height:1.6;overflow-wrap:anywhere}
@media(hover:hover){#back-exit:hover{background:var(--soft)}}
*{box-sizing:border-box}body{margin:0}button,summary{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;touch-action:manipulation}button:focus-visible,summary:focus-visible{outline:3px solid #a34a24;outline-offset:3px}button:disabled{opacity:.45;cursor:not-allowed}[hidden]{display:none!important}
.notebook{max-width:1080px;margin:auto;padding:36px 36px max(24px,env(safe-area-inset-bottom))}.masthead{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}h1{font-size:2rem;letter-spacing:-.03em;margin:0;font-weight:800;display:flex;align-items:center;gap:8px}h1 span{font-size:1.55rem;font-weight:650}.sprout{width:26px;height:26px;fill:#a5c5a5;stroke:var(--green);stroke-width:1.7;stroke-linecap:round}.tagline{font-size:.875rem;margin:10px 0 0;color:var(--muted)}.rabbit{transform:rotate(5deg);border-radius:24px}.today-strip{display:flex;align-items:center;gap:12px;padding:14px 18px;background:var(--soft);border-radius:14px;margin-bottom:26px;font-size:.94rem}.today-label{background:var(--green);color:white;padding:5px 10px;border-radius:8px;font-size:.8rem}.today-strip strong{font-weight:650;font-variant-numeric:tabular-nums}.workspace{display:grid;grid-template-columns:1.12fr 1fr;gap:36px;background:var(--paper);border:1px solid var(--line);border-radius:26px;padding:28px}.calendar-panel{min-width:0}.month-nav{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:18px}h2{font-size:1.25rem;margin:0;letter-spacing:-.02em}.month-actions{display:flex;gap:4px;align-items:center}.month-actions button{background:transparent;border:0;min-height:48px;padding:8px;font-size:.8rem;font-weight:600}.month-actions .arrow{font-size:1.65rem;min-width:40px}.weekdays,.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.weekdays{font-size:.8rem;color:var(--muted);text-align:center;margin-bottom:8px}.weekdays span{padding:7px 0}.weekdays span:nth-last-child(-n+2){color:#8e5135}.day{position:relative;min-width:0;min-height:52px;padding:5px 1px 14px;border:2px solid transparent;border-radius:13px;background:transparent;font-size:1rem;font-variant-numeric:tabular-nums}.day.weekend{color:#8e5135}.day.today{border-color:var(--green);font-weight:750}.day.selected{background:var(--green);color:white}.day.today.selected{box-shadow:inset 0 0 0 3px var(--paper)}.day .dot{position:absolute;bottom:6px;left:calc(50% - 3px);width:6px;height:6px;border-radius:50%;background:#a95332}.day.selected .dot{background:#ffdfaf}.legend{display:flex;align-items:center;flex-wrap:wrap;gap:14px;font-size:.72rem;color:var(--muted);border-top:1px solid var(--line);margin-top:16px;padding-top:16px}.legend>span{display:flex;align-items:center;gap:5px}.legend>span:last-child{margin-left:auto}.today-ring{width:11px;height:11px;border:1.5px solid var(--green);border-radius:4px}.record-dot{width:6px;height:6px;border-radius:50%;background:#a95332}.record-panel{min-width:0;border-left:1px dashed #cbd9ce;padding-left:32px}.record-heading{display:flex;justify-content:space-between;align-items:center}.relative{color:var(--muted);font-size:.8rem;margin:0 0 6px}.record-heading h2{font-size:1.4rem}.flower{font-size:2.6rem;color:#a95332;line-height:1}.hint{font-size:.8rem;line-height:1.8;color:var(--muted);margin:14px 0 24px}fieldset{border:0;padding:0;margin:0 0 25px;min-width:0}legend{padding:0;margin-bottom:12px;font-size:1rem;font-weight:700}legend span{font-size:.72rem;color:var(--muted);font-weight:400;margin-left:8px}.activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.activity{min-height:76px;border:1.5px solid var(--line);border-radius:15px;background:#fffefa;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;position:relative;font-size:.875rem}.activity .emoji{font-size:1.45rem;line-height:1.1}.activity[aria-pressed=true]{background:var(--soft);border-color:var(--green);font-weight:700}.activity[aria-pressed=true]::after{content:"✓";position:absolute;right:5px;top:3px;font-size:.7rem;color:var(--green)}#class-options .activity[aria-pressed=true]{background:#fce8db;border-color:#945238}#class-options .activity[aria-pressed=true]::after{color:#945238}.save-status{font-size:.78rem;line-height:1.7;margin:0;min-height:2.7em;color:var(--muted)}footer{padding:18px 4px;color:var(--muted);font-size:.75rem}.privacy{text-align:center;margin:0 0 16px}details{max-width:650px;margin:auto}summary{cursor:pointer;min-height:44px;display:list-item;padding:12px 0}.instructions{line-height:1.9}.instructions p{margin:6px 0 14px}.error{background:#fff0eb;border:1px solid #d59f8b;border-radius:14px;padding:16px;margin-bottom:18px;color:var(--error);font-size:.875rem;line-height:1.7}.error p{margin:0 0 10px}.error button{border:1px solid currentColor;background:white;padding:10px 12px;border-radius:8px;min-height:48px}
@media(hover:hover){.activity:hover{border-color:var(--green);background:#f1f5ee}.day:hover:not(.selected){background:var(--soft)}.month-actions button:hover{background:var(--soft);border-radius:10px}}
@media(max-width:839px){.notebook{max-width:540px;padding:24px 18px max(20px,env(safe-area-inset-bottom))}.masthead{margin-bottom:18px}.rabbit{width:72px;height:72px}.today-strip{margin-bottom:18px;padding:12px;gap:8px;font-size:.85rem}.workspace{display:block;padding:20px 16px;border-radius:22px}.month-nav{margin-bottom:12px}.calendar{gap:3px}.day{min-height:48px}.record-panel{border-left:0;border-top:1px dashed #cbd9ce;padding:22px 0 0;margin-top:24px}.record-heading h2{font-size:1.25rem}.hint{margin:12px 0 20px}.activity-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.activity{min-height:75px}#sport-options{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:359px){.notebook{padding-left:10px;padding-right:10px}.workspace{padding-left:10px;padding-right:10px}.today-strip{gap:6px;font-size:.78rem}.month-actions{gap:0}.month-actions button{padding:6px}.month-actions .arrow{min-width:34px}.calendar{gap:1px}h2{font-size:1.1rem}legend span{margin-left:5px;font-size:.68rem}}
@media(prefers-reduced-motion:no-preference){.activity{transition:background-color .15s ease-out,border-color .15s ease-out}.flower{animation:bloom .5s ease-out}@keyframes bloom{from{transform:rotate(-25deg) scale(.8)}to{transform:rotate(0) scale(1)}}}
@media(forced-colors:active){.day.selected{outline:3px solid Highlight}.activity[aria-pressed=true]{outline:3px solid Highlight}.dot,.record-dot{background:CanvasText!important}}
.summary-jump{display:block;margin:10px 0 0 auto;min-height:48px;padding:8px 0;background:transparent;border:0;color:var(--green);font-size:.8rem;text-decoration:underline;text-underline-offset:4px}.growth-summary{margin-top:24px;padding:28px;background:var(--paper);border:1px solid var(--line);border-radius:26px;scroll-margin-top:16px}.summary-header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.summary-modes{display:flex;gap:6px;padding:4px;background:var(--soft);border-radius:12px}.summary-modes button{min-height:48px;padding:8px 14px;background:transparent;border:1px solid transparent;border-radius:9px;font-size:.85rem}.summary-modes button[aria-pressed=true]{background:var(--green);color:white}.summary-period{display:flex;align-items:center;gap:14px;margin:22px 0 0}.summary-period h3{font-size:1.15rem;margin:0;min-width:7em;text-align:center}.summary-period button{border:1px solid var(--line);background:transparent;border-radius:10px;min-width:48px;min-height:48px;font-size:1.5rem}.summary-follow,.summary-note{font-size:.75rem;line-height:1.9;color:var(--muted)}.summary-follow{margin:8px 0 20px}.summary-overview{font-size:1.1rem;font-weight:700;margin:0;line-height:1.8}.summary-swim{font-size:.85rem;margin:7px 0 22px;color:var(--green)}.summary-message{font-size:.85rem;line-height:1.9;color:var(--muted);padding:12px 0;margin:0}.summary-groups{display:grid;grid-template-columns:1fr 1fr;gap:32px}.summary-groups h3,.summary-detail h3{font-size:1rem;margin:0 0 10px}.summary-table{width:100%;border-collapse:collapse;font-size:.85rem;table-layout:fixed}.summary-table th,.summary-table td{padding:10px 2px;border-bottom:1px solid var(--line);text-align:left;overflow-wrap:anywhere;line-height:1.7;font-weight:400}.summary-table thead th{color:var(--muted);font-size:.75rem}.summary-table th:first-child{width:65%}.summary-table td{text-align:right;font-variant-numeric:tabular-nums}.summary-table th:last-child{text-align:right}.summary-detail{margin-top:24px}.summary-months{margin:18px 0 0;max-width:none}.summary-months summary{font-size:.85rem;color:var(--green);min-height:48px}.summary-months th:first-child{width:20%}.summary-months th:not(:first-child){text-align:right}.summary-note{margin:20px 0 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(hover:hover){.summary-modes button:not([aria-pressed=true]):hover,.summary-period button:hover{background:#edf3e9}.summary-jump:hover{color:var(--ink)}}
@media(max-width:839px){.growth-summary{padding:22px 16px;border-radius:22px;margin-top:18px}.summary-groups{gap:20px}.summary-header{gap:12px}.summary-period{justify-content:center}.summary-table{font-size:.8rem}.summary-table th:first-child{width:62%}.summary-months th:first-child{width:20%}}
.day .dot{width:8px;height:8px;left:calc(50% - 4px);border:2px solid #bc2f69;background:transparent}.day.selected .dot{border-color:#ffb1d1;background:transparent}.record-dot{width:8px;height:8px;border:2px solid #bc2f69;background:transparent}.flower{color:var(--green)}
.day{min-height:4.25rem;padding:0}.day-number{position:absolute;top:.35rem;left:0;right:0;line-height:1.5rem}.record-ring{position:absolute;width:min(38px,calc(100% - 6px));height:34px;left:50%;top:1.1rem;transform:translate(-50%,-50%);fill:none;stroke:#bc2f69;stroke-width:1.9;stroke-linecap:round;pointer-events:none}.day.selected .record-ring{stroke:#ffb1d1}@media(forced-colors:active){.record-ring{stroke:CanvasText}.day.selected .record-ring{stroke:HighlightText}}
.day-icons{position:absolute;top:2.15rem;left:50%;transform:translateX(-50%);width:36px;height:24px;pointer-events:none}.day-icons>span{position:absolute;width:12px;height:14px;font-size:11px;line-height:14px;text-align:center}.icons-1>span{left:12px;top:7px}.icons-2>span:first-child{left:4px;top:3px}.icons-2>span:last-child{left:20px;top:3px}.icons-3>span:first-child{left:0;top:0}.icons-3>span:nth-child(2){left:12px;top:8px}.icons-3>span:last-child{left:24px;top:0}.day-icons>.more-activities{font-size:9px;font-weight:650;font-variant-numeric:tabular-nums}
.calendar-shell{position:relative;--calendar-gap:4px}.calendar-shell .calendar{gap:var(--calendar-gap)}.calendar-stitches{position:absolute;inset:0;pointer-events:none}.calendar-stitch{position:absolute;border-color:#c3d6c9;border-style:dashed;border-width:0}.calendar-stitch.vertical{top:0;bottom:0;width:0;border-left-width:1px}.calendar-stitch.horizontal{left:0;right:0;height:0;border-top-width:1px}.calendar-heart{position:absolute;transform:translate(-50%,-50%);width:8px;height:8px;padding:1px;background:var(--paper);fill:#568c71;stroke:none}
@media(max-width:839px){.calendar-shell{--calendar-gap:3px}}@media(max-width:359px){.calendar-shell{--calendar-gap:1px}}
#sport-options{grid-template-columns:repeat(4,minmax(0,1fr))}#other-form{margin-top:14px;font-size:.8rem}#other-form label{display:block;margin-bottom:8px}.other-input{display:flex;gap:6px;flex-wrap:wrap}.other-input input{font:inherit;font-size:1rem;min-width:100px;flex:1;width:100%;border:1px solid var(--green);border-radius:8px;padding:10px;color:var(--ink);background:white;min-height:48px}.other-input button{min-height:48px;padding:8px 12px;border:1px solid var(--green);border-radius:8px;background:var(--soft)}#other-error{color:var(--error);line-height:1.6;margin:8px 0 0}.other-input input:focus-visible{outline:3px solid #a34a24;outline-offset:2px}
.workspace{display:block;background:transparent;border:0;border-radius:0;padding:0}.record-panel,.calendar-panel,.workspace>.lesson-panel{background:var(--paper);border:1px solid var(--line);border-radius:26px;padding:28px;min-width:0;margin:0}.record-panel{scroll-margin-top:16px}.record-panel .hint{margin:12px 0 22px}.activity-groups{display:grid;grid-template-columns:1fr 1fr;gap:32px}.activity-groups fieldset{margin-bottom:20px}.calendar-panel{max-width:620px;margin:24px auto 0}.workspace>.lesson-panel{margin-top:24px}.workspace>.lesson-panel h3{margin:0 0 16px}.lesson-settings{max-width:none}.return-today{min-height:48px;padding:8px 12px;border:1px solid var(--green);border-radius:9px;color:var(--green);background:var(--soft);margin-top:12px;font-size:.85rem}.calendar-hint{margin:0 0 12px;font-size:.75rem;color:var(--muted);line-height:1.8}#selected-title,#month-title{scroll-margin-top:24px}#selected-title:focus-visible,#month-title:focus-visible{outline:2px solid var(--green);outline-offset:6px;border-radius:3px}.record-panel .summary-jump{margin-top:2px}
@media(max-width:839px){.record-panel,.calendar-panel,.workspace>.lesson-panel{padding:20px 16px;border-radius:22px}.record-panel{border-top:1px solid var(--line)}.activity-groups{display:block}.calendar-panel,.workspace>.lesson-panel{margin-top:18px}.record-panel .hint{margin:10px 0 18px}.activity-groups fieldset{margin-bottom:20px}.record-heading h2{font-size:1.25rem}.save-status{min-height:1.8em}}
@media(max-width:359px){.record-panel,.calendar-panel,.workspace>.lesson-panel{padding-left:12px;padding-right:12px}}
.lesson-panel h3,.lesson-panel h4{margin:0 0 16px;font-size:1rem}.lesson-balance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;background:#eaf2ed;border-radius:12px;padding:15px 8px;gap:8px;text-align:center}.lesson-balance dt{font-size:.72rem;color:var(--muted);margin-bottom:6px}.lesson-balance dd{margin:0;font-size:1.25rem;font-weight:700;font-variant-numeric:tabular-nums}.lesson-tip,.lesson-note{font-size:.75rem;line-height:1.8;color:var(--muted)}.lesson-tip{margin:14px 0 18px}.lesson-form{font-size:.8rem}.lesson-form label{display:block;margin-bottom:8px;line-height:1.7}.lesson-form label span{color:var(--muted);font-size:.72rem}.lesson-input{display:flex;flex-wrap:wrap;gap:8px}.lesson-input input{font:inherit;font-size:1rem;color:var(--ink);min-height:48px;min-width:72px;width:80px;flex:1;background:white;border:1px solid #b1c6b7;border-radius:8px;padding:10px}.lesson-input button{font-size:.8rem;min-height:48px;border:1px solid var(--green);border-radius:8px;background:var(--soft);padding:10px}.lesson-input input:focus-visible{outline:3px solid #a34a24;outline-offset:2px}.field-error{font-size:.8rem;color:var(--error);line-height:1.8;margin:8px 0}.field-error:empty{margin:0}.lesson-settings{margin-top:6px}.lesson-settings summary{font-size:.8rem;color:var(--green)}.lesson-note{margin:10px 0 0}#class-options{grid-template-columns:repeat(4,minmax(0,1fr))}
.ledger-modes{display:grid;grid-template-columns:1fr 1fr 1.7fr;gap:6px;padding:4px;background:var(--soft);border-radius:12px;max-width:450px;margin-bottom:22px}.ledger-modes button{min-height:48px;padding:8px 10px;background:transparent;border:1px solid transparent;border-radius:9px;font-size:.85rem}.ledger-modes button[aria-pressed=true]{background:var(--green);color:white}.summary-lessons{margin:20px 0 28px}.summary-lessons h3{font-size:1rem;margin:0 0 10px}.summary-lessons th:first-child{width:45%}.summary-lessons th:not(:first-child){text-align:right}
@media(hover:hover){.ledger-modes button:not([aria-pressed=true]):hover{background:#edf3e9}}
