:root{--ink:#343b35;--muted:#899086;--paper:#f8f6f1;--green:#637c66;--green-dark:#465e4b;--line:#e8e8df;--lav:#eae7f5;--peach:#f9eadf;--sage:#e8eee5;--white:#fffefa;--radius:22px;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC","PingFang TC",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #9cadd9;outline-offset:3px}button{border:0;background:none}a{color:inherit;text-decoration:none}.sidebar{position:fixed;inset:0 auto 0 0;width:242px;border-right:1px solid var(--line);padding:42px 26px;background:#fdfcf8;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font-size:25px;font-weight:650;letter-spacing:3px}.brand-icon{width:44px;height:44px;background:#e6eddf;border-radius:15px;text-align:center;font-size:40px;line-height:26px;letter-spacing:0;color:var(--green-dark)}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:5px;color:var(--muted)}.sidebar nav{display:grid;gap:10px;margin-top:62px}.sidebar nav button{text-align:left;padding:15px 18px;border-radius:12px;font-size:14px;color:#7b8279}.sidebar nav button span{font-size:22px;display:inline-block;width:34px;vertical-align:middle}.sidebar nav button.active{background:var(--sage);color:var(--green-dark);font-weight:600}.side-note{margin-top:auto;padding:30px 16px 40px;color:var(--green);line-height:1.9}.side-note>span{font-size:37px}.side-note p{font-size:20px;letter-spacing:2px}.side-note small{font-size:11px;color:var(--muted)}.local-status{border-top:1px solid var(--line);padding-top:22px;font-size:10px;color:var(--muted);white-space:nowrap}.local-status i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8ba184;margin-right:7px}.shell{margin-left:242px;max-width:1600px}header{height:95px;display:flex;align-items:center;justify-content:space-between;margin:0 50px;border-bottom:1px solid var(--line)}.eyebrow{font-size:10px;letter-spacing:2px;color:#899180}.header-right{display:flex;align-items:center;gap:12px;font-size:12px}.avatar{display:grid;place-items:center;background:#ebe6dc;border:4px solid #fff;border-radius:50%;width:39px;height:39px;color:#897c66}.mobile-brand{display:none}#demo-badge{color:#8a704b;background:#f5e5ca;padding:5px 9px;border-radius:5px}main{padding:38px 50px 20px;min-height:calc(100vh - 166px)}.intro{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:30px}.intro h1{font-size:31px;font-weight:550;letter-spacing:1px;margin:12px 0;line-height:1.45}.intro p,.muted{font-size:12px;color:var(--muted);line-height:1.8}.date-line{font-size:11px;letter-spacing:1px;color:var(--green)}.primary{background:var(--green);color:#fff;padding:14px 23px;border-radius:12px;font-size:13px;white-space:nowrap}.primary:hover{background:var(--green-dark)}.primary span{margin-left:20px}.secondary{background:#fffefa;border:1px solid var(--line);border-radius:10px;padding:11px 16px;font-size:12px}.text-btn{color:var(--green);font-size:12px;padding:8px 0}.hero{border-radius:24px;background:var(--sage);padding:27px 31px;position:relative;overflow:hidden;min-height:165px;display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.hero h2{font-size:23px;line-height:1.6;font-weight:500;letter-spacing:2px;margin:8px 0}.hero p{font-size:12px;color:#7d8e76}.hero-art{width:190px;height:135px;position:relative;flex:none}.moon{width:95px;height:95px;border-radius:50%;background:#d0dbbe;position:absolute;right:35px;top:5px}.moon:after{content:'';background:var(--sage);width:79px;height:79px;position:absolute;left:-15px;top:-10px;border-radius:50%}.cloud{position:absolute;bottom:12px;right:15px;width:115px;height:37px;border-radius:50px;background:#fafbf5;box-shadow:0 8px 0 #dde5d4}.cloud:before,.cloud:after{content:'';position:absolute;border-radius:50%;background:#fafbf5}.cloud:before{width:55px;height:55px;top:-28px;left:16px}.cloud:after{width:37px;height:37px;top:-18px;right:9px}.star{position:absolute;left:12px;top:20px;color:#a2b28f;font-size:27px}.star.second{left:auto;right:2px;top:10px;font-size:15px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:30px}.stat{background:var(--white);padding:20px;border:1px solid var(--line);border-radius:17px}.stat-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--peach);color:#b38c6e;font-size:18px}.stat:nth-child(2) .stat-icon{background:var(--lav);color:#9688ae}.stat:nth-child(3) .stat-icon{background:#e7edf2;color:#819cad}.stat:nth-child(4) .stat-icon{background:#f5eedc;color:#b49e64}.stat-top{display:flex;justify-content:space-between;align-items:center}.stat-label{font-size:11px;color:#899084}.stat-value{font-size:29px;letter-spacing:-1px;margin:16px 0 5px;font-weight:500}.stat-value small{font-size:11px;letter-spacing:0;margin-left:5px;color:#959b90}.stat-sub{font-size:10px;color:#9c9f97}.section-head{display:flex;justify-content:space-between;align-items:center;margin:8px 0 18px}.section-head h2{font-size:17px;font-weight:550;margin:0}.quick{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:0 0 32px}.quick button{border:1px solid var(--line);background:var(--white);border-radius:15px;padding:17px 5px;font-size:12px;display:grid;gap:9px;justify-items:center}.quick button:hover{border-color:#a6b39d;transform:translateY(-2px)}.quick-icon{font-size:24px;color:#85927b}.content-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:24px}.panel{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:23px;min-width:0}.panel h3{font-size:14px;font-weight:550;margin:0}.panel-note{font-size:11px;color:var(--muted);margin:8px 0 16px}.empty{display:grid;place-items:center;min-height:180px;text-align:center;padding:20px}.empty .empty-icon{font-size:34px;color:#a9b49e}.empty h3{margin:14px 0 5px;font-weight:500;font-size:15px}.empty p{font-size:12px;color:var(--muted);line-height:1.8;margin:0 0 12px}.timeline-row{display:flex;gap:14px;padding:17px 0;border-bottom:1px solid #efeee7;align-items:flex-start}.timeline-row:last-child{border-bottom:0}.record-icon{background:var(--sage);color:var(--green);width:35px;height:35px;border-radius:11px;flex:none;display:grid;place-items:center}.record-main{flex:1;min-width:0}.record-main h4{font-size:12px;font-weight:500;margin:1px 0 6px;line-height:1.8;overflow-wrap:anywhere}.record-main p{font-size:11px;color:var(--muted);margin:0;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.record-meta{display:flex;align-items:center;gap:8px;font-size:10px;color:#969c91}.record-actions{display:flex;gap:3px}.record-actions button{font-size:11px;color:var(--green);padding:5px}.record-actions .delete{color:#ad8a7d}.filterbar{display:flex;flex-wrap:wrap;gap:14px;align-items:end;background:var(--white);border:1px solid var(--line);padding:18px 22px;border-radius:16px;margin-bottom:22px}.filterbar label{font-size:11px;color:var(--muted);display:grid;gap:7px}.segmented{display:flex;border:1px solid var(--line);border-radius:10px;padding:3px;background:#f6f5ee}.segmented button{border-radius:7px;padding:8px 17px;font-size:12px}.segmented .active{background:#fff;box-shadow:0 1px 5px #0000000b;color:var(--green-dark)}select,input,textarea{border:1px solid #e1e4da;background:#fffefa;border-radius:10px;color:var(--ink);padding:11px;width:100%;min-width:0}input:focus,textarea:focus,select:focus{outline:2px solid #b4c0a9;outline-offset:1px}.filterbar input,.filterbar select{width:auto;max-width:190px;padding:9px}.charts-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.chart-card{min-width:0}.chart-card:first-child{grid-column:1/-1}.chart-shell{overflow-x:auto;margin-top:14px;overscroll-behavior-x:contain}.chart-shell svg{display:block;width:100%;min-width:320px;height:auto}.legend{display:flex;gap:15px;font-size:10px;color:var(--muted);margin-top:12px}.legend i{display:inline-block;width:8px;height:8px;border-radius:3px;margin-right:5px}.chart-label{font-size:10px;fill:#92998d}.chart-grid{stroke:#eaece3;stroke-dasharray:3 5}.chart-tip{font-size:10px;color:var(--muted);margin:12px 0 0}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.settings-grid .panel p{font-size:12px;color:var(--muted);line-height:1.9}.settings-grid .panel h3{font-size:16px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.info-list{font-size:12px;line-height:2.1;color:#7e8776;padding-left:18px}.demo-strip{background:#f6eedb;border:1px solid #e5d9bd;border-radius:13px;padding:13px 18px;display:flex;justify-content:space-between;font-size:12px;align-items:center;margin-bottom:20px}.day-head{font-size:12px;color:var(--green);margin:26px 0 4px}.history-list{max-width:900px}.history-list .panel{padding:8px 23px}footer{padding:25px 50px;font-size:9px;letter-spacing:2px;color:#a0a397;display:flex;justify-content:space-between}footer span{letter-spacing:1px}.bottom-nav{display:none}dialog{border:1px solid var(--line);border-radius:23px;padding:29px;max-width:540px;width:calc(100% - 28px);max-height:92dvh;overflow:auto;background:#fffefa;color:var(--ink);box-shadow:0 22px 80px #23302330}dialog::backdrop{background:#26322660;backdrop-filter:blur(4px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.dialog-top h2{font-size:22px;font-weight:550;margin:8px 0}.icon-btn{font-size:28px;color:#9a9f93}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:15px}.form-grid.three{grid-template-columns:repeat(3,1fr)}form label{font-size:12px;display:block;line-height:1.8}form label small{font-size:10px;color:var(--muted);float:right}form input,form textarea{margin-top:6px}textarea{resize:vertical}.section-label{font-size:11px;letter-spacing:1px;color:#939b8a;border-top:1px solid var(--line);padding-top:17px;margin:19px 0 12px}.wide{width:100%}.form-hint{font-size:10px}.error{color:#b46251;font-size:12px;line-height:1.8}.danger{background:#b16a5b;color:white;border-radius:10px;padding:11px 20px}.error:empty{display:none}#confirm-dialog h2{font-size:19px}#confirm-dialog p{font-size:12px;color:var(--muted)}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);background:#465e4bf2;color:#fff;padding:13px 22px;border-radius:12px;font-size:12px;z-index:20;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}.install-note{background:var(--sage);padding:13px 17px;border-radius:12px;font-size:12px;line-height:1.9}.summary-inline{display:flex;gap:18px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin-top:12px}.period-count{margin-left:auto;font-size:11px;color:var(--muted)}[hidden]{display:none!important}
@media(min-width:1500px){main{padding:45px 65px}.intro h1{font-size:35px}.hero{min-height:190px}}@media(max-width:1100px){.sidebar{width:200px;padding:35px 20px}.shell{margin-left:200px}header{margin:0 30px}main{padding:30px}.stats{gap:10px}.stat{padding:15px}.stat-label{font-size:10px}.content-grid{grid-template-columns:1fr}.side-note{padding-left:8px}footer{padding:25px 30px}.charts-grid{grid-template-columns:1fr}.chart-card:first-child{grid-column:auto}}
@media(max-width:760px){.sidebar{display:none}.shell{margin-left:0}header{height:74px;margin:0 22px}.mobile-brand{display:block;font-weight:650;font-size:21px;letter-spacing:2px;color:var(--green-dark)}header>.eyebrow{display:none}.header-right>span:last-child{display:none}.header-right{gap:8px}.avatar{width:33px;height:33px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:#fffefaef;backdrop-filter:blur(16px);border-top:1px solid var(--line);z-index:5;justify-content:space-around}.bottom-nav button{display:grid;justify-items:center;gap:3px;font-size:24px;color:#a3a89d;width:58px}.bottom-nav button small{font-size:10px}.bottom-nav button.active{color:var(--green-dark)}.bottom-nav .nav-add{background:var(--green);color:white;border-radius:15px;margin-top:-20px;height:53px;box-shadow:0 4px 12px #637c662b}.bottom-nav .nav-add small{font-size:9px}main{padding:27px 21px 25px;min-height:calc(100dvh - 150px)}.intro{margin-bottom:22px;align-items:center}.intro h1{font-size:26px}.intro p{font-size:11px}.intro .primary{padding:11px 13px;font-size:11px}.intro .primary span{margin-left:5px}.date-line{font-size:10px}.hero{padding:21px;min-height:150px;border-radius:20px;margin-bottom:20px}.hero h2{font-size:20px;letter-spacing:1px}.hero p{max-width:190px;line-height:1.8;font-size:10px}.hero-art{width:105px;transform:scale(.8);transform-origin:right center;margin-left:-10px}.moon{right:12px}.cloud{right:-10px}.star{left:-8px}.stats{grid-template-columns:1fr 1fr;gap:11px;margin-bottom:25px}.stat{padding:16px}.stat-value{font-size:28px;margin-top:11px}.stat-label{font-size:11px}.stat-sub{font-size:10px}.quick{gap:7px;margin-bottom:27px}.quick button{font-size:10px;padding:14px 2px;border-radius:12px;gap:8px}.quick-icon{font-size:21px}.section-head h2{font-size:16px}.content-grid{gap:18px}.panel{padding:20px;border-radius:17px}.filterbar{padding:14px;gap:12px}.filterbar label{font-size:10px}.filterbar input,.filterbar select{max-width:155px}.segmented button{padding:8px 14px}.period-count{margin-left:0}.charts-grid,.settings-grid{grid-template-columns:1fr}.chart-card:first-child{grid-column:auto}.chart-shell svg{min-width:280px}footer{padding:20px 22px 110px;font-size:8px;letter-spacing:1px}footer span{font-size:8px;letter-spacing:0}dialog{padding:22px;max-height:90dvh}.form-grid.three{gap:8px}.form-grid.three label{font-size:11px}.form-grid.three input{padding:10px 8px}.demo-strip{font-size:11px;gap:8px}#toast{bottom:103px;max-width:90%;width:max-content}.header-right #demo-badge{font-size:9px}.record-meta{font-size:9px}.intro h1.smaller{font-size:24px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.filterbar .control{font-size:11px;color:var(--muted);display:grid;gap:7px}@media(max-width:760px){.filterbar .control{font-size:10px}}
@media(max-width:430px){.intro{display:block}.intro h1{font-size:25px}.intro .primary{margin-top:7px}.intro p{margin-bottom:6px}}
.intro-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end;flex:none}.photo-entry{color:var(--green-dark)}.photo-form-button{width:100%;padding:12px;background:var(--sage);color:var(--green-dark);border-radius:10px;font-size:12px;margin-bottom:19px}#photo-dialog{max-width:650px}#photo-dialog h2{font-size:20px}.photo-buttons{display:flex;gap:12px;margin:18px 0}.photo-privacy{font-size:11px;color:var(--muted);line-height:1.9;border-top:1px solid var(--line);padding-top:15px;margin-top:24px}#photo-preview{background:#f0f0e9;border-radius:13px;padding:12px;margin:16px 0}#photo-image{max-width:100%;height:210px;object-fit:contain;display:block;margin:0 auto;transition:transform .2s}.photo-actions{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin:15px 0}.photo-actions label{display:flex;align-items:center;gap:8px}.photo-actions select{width:auto;font-size:11px;padding:8px}#photo-progress{font-size:12px;color:var(--green);line-height:1.8}#photo-meter{width:100%;accent-color:var(--green)}#photo-text-section{margin:20px 0}#photo-text-section label{font-size:12px}#photo-text{display:block;margin-top:8px;line-height:1.8}#photo-review{margin-top:23px}.photo-draft{border:1px solid var(--line);border-radius:13px;padding:16px;margin:15px 0;background:#f9faf5}.photo-draft label{font-size:12px}.photo-draft input,.photo-draft textarea{margin-top:6px}.photo-draft small{font-size:10px;color:var(--muted);float:right}.photo-draft .section-head{margin:0 0 15px}.photo-draft h3,#photo-review h3{font-size:14px}.photo-draft .form-grid{gap:10px}
@media(max-width:760px){.intro-actions{flex-direction:column}.intro-actions .primary{margin-top:0}.intro-actions .secondary{font-size:11px;padding:9px 13px}.intro h1{font-size:24px}}@media(max-width:430px){.intro-actions{flex-direction:row;justify-content:flex-start;margin-top:15px}.intro-actions .primary{margin:0}.intro-actions .secondary{font-size:11px}.photo-draft{padding:13px}}
