: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}
*{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)}
.record-ring{position:absolute;width:min(38px,calc(100% - 6px));height:34px;left:50%;top:calc(50% - 4px);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}}
#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}
.swim-panel{border-top:1px dashed #cbd9ce;margin-top:18px;padding-top:22px}.swim-panel h3{margin:0 0 16px;font-size:1rem}.swim-balance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;background:#eaf2ed;border-radius:12px;padding:15px 8px;gap:8px;text-align:center}.swim-balance dt{font-size:.72rem;color:var(--muted);margin-bottom:6px}.swim-balance dd{margin:0;font-size:1.25rem;font-weight:700;font-variant-numeric:tabular-nums}.swim-tip,.lesson-note{font-size:.75rem;line-height:1.8;color:var(--muted)}.swim-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}.swim-settings{margin-top:6px}.swim-settings summary{font-size:.8rem;color:var(--green)}.lesson-note{margin:10px 0 0}#class-options{grid-template-columns:repeat(4,minmax(0,1fr))}
