:root{--paper:#f9f6ef;--ink:#1c4035;--green:#245a48;--muted:#78847f;--line:#e2dfd5;--apricot:#edc79c;--tint:#eef0e6;--danger:#a84438;--body:#374c44;--serif:"Songti SC","Noto Serif CJK SC","STSong","SimSun",serif;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:var(--body);background:#edece4;font-size:15px;line-height:1.65}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}button{color:inherit}a{color:var(--green);text-decoration:none}svg.icon{width:24px;height:24px;display:block;fill:currentColor;flex-shrink:0}button:focus-visible,a:focus-visible{outline:2px solid var(--green);outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid #88a493;outline-offset:1px}h1,h2,h3,p{margin:0}h1,h2,h3{color:var(--ink)}h1,h2,.serif{font-family:var(--serif);font-weight:700}h1{font-size:29px;line-height:1.4;letter-spacing:.5px}h2{font-size:23px;line-height:1.4}h3{font-size:17px}small,.small{font-size:12px}.muted{color:var(--muted)}.app-shell{max-width:480px;min-height:100dvh;background:var(--paper);margin:auto;position:relative;padding-top:env(safe-area-inset-top)}.brand{padding:25px 25px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}.brand-link{display:flex;gap:10px;align-items:center;min-width:0}.brand-mark{color:#73844f}.brand-mark .icon{width:34px;height:42px}.brand strong{display:block;font-family:var(--serif);font-size:23px;color:var(--ink);letter-spacing:1px}.brand small{display:block;color:#7a8076;letter-spacing:2px;font-size:11px;margin-top:1px}.icon-button{display:inline-flex;justify-content:center;align-items:center;border:0;background:none;min-width:44px;min-height:44px;padding:10px;border-radius:50%}.icon-button:hover{background:var(--tint)}main{padding:10px 25px calc(100px + env(safe-area-inset-bottom));min-height:75vh}main:focus{outline:none}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;max-width:480px;display:flex;justify-content:space-around;background:#fffdf8f5;border-top:1px solid var(--line);padding:8px 12px calc(8px + env(safe-area-inset-bottom));z-index:5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:49px;min-width:65px;color:#839089;font-size:11px}.nav-item.active{color:var(--green);font-weight:650}.nav-item.active .icon{stroke:currentColor;stroke-width:4px}.hero{position:relative;min-height:250px;padding:22px 0 15px;overflow:hidden}.hero-copy{position:relative;z-index:1;width:59%;pointer-events:none}.hero h1{font-size:35px;line-height:1.55;letter-spacing:2px}.hero .date-line{margin-top:10px;font-size:13px}.hero .age-line{font-size:11px;color:var(--muted);margin-top:5px}.hero img{position:absolute;width:57%;right:-10px;bottom:5px;pointer-events:none;object-fit:contain}.hero-quote{margin-top:19px;color:#778573;font-family:var(--serif);font-size:13px;line-height:1.9}.section{margin-top:26px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.text-button{border:0;background:none;color:var(--green);padding:10px 0;font-size:13px;display:inline-flex;align-items:center;gap:5px;min-height:44px}.text-button .icon{width:17px;height:17px}.rule{border-top:1px solid var(--line);margin:22px 0}.eyebrow{color:var(--muted);font-size:11px;letter-spacing:1px}.intro{color:var(--muted);font-size:13px;margin:7px 0 20px}.badge{display:inline-flex;align-items:center;gap:4px;background:#f3e7d6;border-radius:20px;padding:3px 10px;font-size:11px;color:#88714e}.badge.green{background:var(--tint);color:var(--green)}.activity{display:flex;align-items:flex-start;gap:14px;padding:13px 0;position:relative}.activity:not(:last-child):after{content:"";position:absolute;top:52px;bottom:-6px;left:17px;border-left:1px solid var(--line)}.check-button{width:36px;height:44px;min-width:36px;border:0;background:none;padding:6px 2px;display:flex;align-items:center;justify-content:center;color:#9da69c}.check-circle{border:1.5px solid currentColor;border-radius:50%;width:25px;height:25px;display:grid;place-items:center}.check-button.checked{color:var(--green)}.checked .check-circle{background:var(--green);color:#fff;border-color:var(--green)}.check-circle .icon{width:17px;height:17px}.activity-copy{flex:1;min-width:0;padding-top:5px}.activity-title{border:0;background:none;padding:0;text-align:left;font-family:var(--serif);font-size:19px;font-weight:650;color:var(--ink)}.activity-title span{font-family:inherit;font-size:12px;font-weight:400;color:var(--muted);margin-left:8px;white-space:nowrap}.activity-copy p{font-size:12px;color:var(--muted);margin-top:2px}.activity-state{font-size:11px;white-space:nowrap;color:var(--muted);padding-top:10px}.primary,.secondary,.danger{min-height:46px;border-radius:26px;padding:10px 20px;font-weight:550;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary{background:var(--green);color:#fff}.primary:hover{background:#194533}.secondary{border-color:#c5cfc1;background:transparent;color:var(--green)}.danger{background:#f6ebe7;color:var(--danger)}.full{width:100%}.primary .icon,.secondary .icon{width:19px;height:19px}input,textarea,select{background:#fffdf8;border:1px solid #d7dbd0;border-radius:12px;color:var(--body);padding:12px 13px;width:100%;font-size:16px;min-height:46px;max-width:100%}input::placeholder,textarea::placeholder{color:#9ca69f;font-size:14px}textarea{resize:vertical;min-height:102px;line-height:1.65}input[type=date]{min-width:0;appearance:none}select{padding-right:20px}label{display:block;color:var(--ink);font-weight:550;font-size:14px;margin-bottom:8px}.field{margin-bottom:20px}.field-hint{font-size:11px;color:var(--muted);margin-top:5px}.required{color:var(--danger);font-size:11px;margin-left:5px;font-weight:400}.quick-note h2{font-size:22px;margin-bottom:12px}.quick-note textarea{margin-bottom:8px;min-height:87px}.local-caption{color:#859086;font-size:10px;text-align:center;margin-top:14px;display:flex;align-items:center;gap:5px;justify-content:center}.local-caption .icon{width:13px;height:13px}.chips{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:2px 0 7px;margin-bottom:14px}.chips.wrap{flex-wrap:wrap;overflow:visible}.chip{border:1px solid transparent;border-radius:22px;padding:9px 13px;min-height:42px;background:#efeee5;color:#67746b;font-size:12px;white-space:nowrap}.chip.active{background:var(--green);color:#fff}.chip.apricot.active{background:var(--apricot);color:var(--ink)}.measure-summary{background:var(--tint);border-radius:15px;padding:16px 18px;margin:10px 0 20px}.measure-numbers{display:flex;gap:26px;margin-top:8px}.measure-value{font-family:var(--serif);font-size:30px;color:var(--ink);line-height:1.3}.measure-value small{font-family:inherit;font-size:13px;margin-left:4px}.measure-numbers .muted{font-size:10px}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:17px}.search{font-size:14px}.record-group-title{display:flex;align-items:center;gap:12px;font-family:var(--serif);font-size:18px;margin:24px 0 6px}.record-group-title:after{content:"";height:1px;background:var(--line);flex:1}.record{padding:17px 0 17px 18px;border-left:1px solid var(--line);position:relative;margin-left:6px}.record:before{content:"";position:absolute;width:8px;height:8px;left:-5px;top:24px;border:2px solid var(--paper);border-radius:50%;background:#c99861}.record-meta{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;gap:8px}.record h3{font-family:var(--serif);font-size:19px;margin-top:6px;line-height:1.6;overflow-wrap:anywhere}.record p{font-size:13px;margin-top:5px;white-space:pre-wrap;overflow-wrap:anywhere}.record-actions{display:flex;gap:18px;margin-top:5px}.record-actions button{font-size:12px;padding:4px 0;min-height:36px}.record .badge{margin-top:7px}.empty{text-align:center;padding:28px 14px;color:var(--muted)}.empty .icon{width:33px;height:33px;margin:0 auto 10px;color:#8e9f83}.empty h3{font-family:var(--serif);font-size:19px;color:#5c705e;margin-bottom:7px}.empty p{font-size:13px;line-height:1.9}.empty button{margin-top:17px}.fab{position:fixed;bottom:calc(90px + env(safe-area-inset-bottom));right:max(20px,calc((100vw - 480px)/2 + 20px));background:var(--green);color:#fff;border:0;border-radius:50%;width:54px;height:54px;box-shadow:0 4px 14px #1c403526;display:grid;place-items:center;z-index:4}.fab .icon{width:27px;height:27px}.backup-links{display:flex;justify-content:center;gap:25px;margin-top:18px}.backup-links button{font-size:12px}.metric-switch{display:flex;background:#eeeee5;border-radius:12px;padding:3px}.metric-switch button{border:0;background:none;border-radius:9px;padding:8px 18px;font-size:13px;min-height:40px}.metric-switch button.active{background:var(--green);color:#fff}.chart-wrap{margin:15px 0 5px}.chart{width:100%;height:230px;display:block;overflow:visible}.data-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left;margin-top:10px}.data-table th,.data-table td{padding:9px 6px;border-bottom:1px solid var(--line)}.observations{margin-top:22px}.observation{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.observation .icon{color:#718967;margin-top:3px}.observation strong{font-size:14px}.observation p{font-size:12px;color:var(--muted);margin-top:3px}.plan{padding:20px 0;border-bottom:1px solid var(--line)}.plan-top{display:flex;justify-content:space-between;gap:15px;align-items:center}.plan-top h3{font-family:var(--serif);font-size:21px}.plan p{font-size:13px;margin-top:7px;white-space:pre-wrap;overflow-wrap:anywhere}.plan-footer{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.plan-footer .secondary{font-size:12px;min-height:38px;padding:6px 15px}.week{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin:20px 0}.day{display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--muted);font-size:10px}.day .dot{height:25px;width:25px;border:1px solid #c0c8be;border-radius:50%;display:grid;place-items:center}.day .dot.done{color:#fff;background:var(--green);border-color:var(--green)}.day .dot.paused{background:#e7e6dd}.day .dot.helped,.day .dot.tried{background:var(--apricot);color:var(--ink);border-color:var(--apricot)}.day .icon{width:15px;height:15px}.day.today{color:var(--ink);font-weight:650}.status-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.status-option{display:flex;gap:7px;align-items:center;background:#eeeee5;border:1px solid transparent;border-radius:12px;padding:10px;font-size:12px;margin:0;cursor:pointer}.status-option:has(input:checked){background:#f3e3ce;border-color:#d9ba93}.status-option input{width:16px;min-height:16px;height:16px;margin:0;accent-color:var(--green)}dialog{border:0;padding:0;color:var(--body);background:var(--paper);width:min(100%,480px);max-width:100%;max-height:calc(100dvh - 16px - env(safe-area-inset-top));margin:auto auto 0;border-radius:22px 22px 0 0;box-shadow:0 -10px 80px #18392b20;overscroll-behavior:contain}dialog::backdrop{background:#16312966;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}body:has(dialog[open]){overflow:hidden}.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:13px 14px 9px;position:sticky;top:0;background:var(--paper);z-index:3;border-bottom:1px solid #e9e5db}.sheet-head h2{font-size:21px}.sheet-head>span{min-width:44px;font-size:11px;color:var(--muted);text-align:center}#sheet-content{padding:20px 24px calc(20px + env(safe-area-inset-bottom))}.sheet-footer{position:sticky;bottom:calc(-20px - env(safe-area-inset-bottom));background:var(--paper);padding:12px 0 calc(13px + env(safe-area-inset-bottom));z-index:2}.sheet-footer p{font-size:11px;color:var(--muted);margin-bottom:8px}.grid-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.disclosure{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:15px}.disclosure summary{cursor:pointer;font-size:13px;color:var(--ink);min-height:23px}.disclosure[open] summary{margin-bottom:14px}.disclosure .field:last-child{margin-bottom:0}.form-error{font-size:13px;color:var(--danger);padding:8px 0}.form-error:empty{display:none}.settings-block{padding:20px 0;border-bottom:1px solid var(--line)}.settings-block:first-child{padding-top:0}.settings-block h3{font-family:var(--serif);font-size:21px;margin-bottom:12px}.settings-block p{font-size:12px;color:var(--muted);margin-top:8px}.settings-block button{margin-top:10px}.notice{background:#f1e8d8;color:#7e6746;border-radius:12px;padding:12px 14px;font-size:12px;line-height:1.8}.feedback-history{padding:14px 0;border-bottom:1px solid var(--line)}.feedback-history p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.feedback-history small{color:var(--muted)}#toast{position:fixed;z-index:30;bottom:calc(95px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%);max-width:calc(100vw - 30px);width:max-content;background:#244b3e;color:#fff;padding:12px 18px;border-radius:14px;box-shadow:0 4px 20px #213c3420;font-size:13px}#toast button{background:none;color:#f6d5a3;border:0;margin-left:12px;font-weight:700;min-height:28px}#storage-banner{margin:0 24px 12px;padding:12px;border-radius:12px;background:#f5e6dc;color:#9b4d3b;font-size:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.onboarding{font-size:11px;color:#87907f;margin-top:8px}.inline-link{text-decoration:underline}.date-picker{width:151px;font-size:13px;min-height:42px;padding:8px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.archived{opacity:.7}.back-button{margin-bottom:10px}.feedback-heading{font-family:var(--serif);font-size:22px;margin-bottom:5px}@media(min-width:600px){.app-shell{margin:22px auto;min-height:calc(100dvh - 44px);border-radius:22px;box-shadow:0 7px 45px #34412e0d}.brand{padding-top:28px}.bottom-nav{border-radius:0}.hero{min-height:265px}dialog{margin:auto;border-radius:22px;max-height:90dvh}}@media(max-width:360px){main{padding-left:18px;padding-right:18px}.brand{padding-left:18px;padding-right:18px}.brand strong{font-size:21px}.hero h1{font-size:31px}.activity-title{font-size:17px}.activity-title span{margin-left:5px}.chip{padding:9px 11px}#sheet-content{padding-left:18px;padding-right:18px}}@media(prefers-reduced-motion:no-preference){button,a{transition:background .15s,color .15s}dialog[open]{animation:enter .2s ease-out}@keyframes enter{0%{transform:translateY(20px);opacity:.5}to{transform:translateY(0);opacity:1}}}.action-dock{position:fixed;left:50%;transform:translate(-50%);bottom:calc(73px + env(safe-area-inset-bottom));width:100%;max-width:480px;padding:10px 25px 12px;background:var(--paper);border-top:1px solid var(--line);z-index:4}main:has(.action-dock){padding-bottom:calc(180px + env(safe-area-inset-bottom))}dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;max-height:calc(var(--visible-height,100dvh) - 16px - env(safe-area-inset-top));bottom:var(--keyboard-offset,0px)}#sheet-content{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding-bottom:20px}dialog>.sheet-footer{position:static;padding:12px 24px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);margin:0}.sheet-head{position:static}@media(min-width:600px){dialog[open]{max-height:calc(var(--visible-height,100dvh) - 60px)}}.date-trigger{border:1px solid #d7dbd0;background:#fffdf8;border-radius:12px;min-height:48px;padding:10px 13px;width:100%;display:flex;align-items:center;gap:10px;text-align:left;color:var(--ink);font-size:15px}.date-trigger>.icon{margin-left:auto;width:21px;height:21px}.date-trigger.compact{width:auto;font-size:12px;padding:8px 10px;gap:6px}.date-trigger.compact>.icon{width:18px;height:18px}.date-today{font-size:10px;border-radius:15px;background:#f3e7d6;color:#8a7350;padding:2px 8px}.calendar-dialog{z-index:20}.calendar-dialog[open]{grid-template-rows:auto minmax(0,1fr) auto}.calendar-body{padding:20px 22px 12px;overflow-y:auto;min-height:0}.calendar-selected{font-family:var(--serif);font-size:25px;color:var(--ink);line-height:1.5}.calendar-selected small{font-family:inherit;font-size:13px;margin-left:10px;color:var(--muted)}.calendar-shortcuts{display:flex;gap:8px;margin-top:15px;margin-bottom:15px}.calendar-shortcuts .chip{padding:7px 23px;min-height:36px}.calendar-month{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;gap:6px}.previous-month .icon{transform:rotate(180deg)}.month-selectors{display:flex;align-items:center;gap:8px}.month-selectors select{border:0;background:var(--tint);border-radius:9px;width:auto;min-height:42px;padding:7px 9px;color:var(--ink);font-size:14px}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:3px}.calendar-weekdays{color:var(--muted);font-size:11px;margin-bottom:7px}.calendar-day{min-height:42px;border:0;background:transparent;color:var(--ink);border-radius:50%;font-size:15px;position:relative;aspect-ratio:1;display:grid;place-items:center;padding:0}.calendar-day:hover:not(:disabled){background:var(--tint)}.calendar-day.selected,.calendar-day.selected:hover{background:var(--green);color:#fff}.calendar-day:disabled{opacity:.25}.calendar-day.is-today:not(.selected){outline:1px solid #c8d2c4;outline-offset:-3px}.today-dot{position:absolute;bottom:5px;width:3px;height:3px;border-radius:50%;background:currentColor}.calendar-footer{padding:12px 24px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper)}@media(max-width:360px){.calendar-body{padding-left:16px;padding-right:16px}.calendar-day{min-height:38px}}.hero img{height:auto}@media(display-mode:standalone){.brand{padding-top:calc(25px + env(safe-area-inset-top))}.app-shell{margin:0 auto;min-height:100dvh;border-radius:0}}
