:root{--bg:#f6f5f1;--surface:#fff;--ink:#192522;--green:#244c40;--green-soft:#e7f0eb;--amber:#c7793a;--amber-soft:#fff0e3;--muted:#777c83;--line:#e5e5e1;--danger:#a14535;--radius:16px;color:var(--ink);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.55}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible{outline-offset:4px;outline:3px solid #c7793a80}input:focus,textarea:focus,select:focus{outline-offset:1px;outline:2px solid #244c4077}a{color:var(--green)}h1,h2,h3,h4,p{margin:0}p{line-height:1.75}svg{vertical-align:middle;flex-shrink:0}button{border:0}a{overflow-wrap:anywhere}.button{border:1px solid var(--line);background:#fff;border-radius:10px;justify-content:center;align-items:center;gap:8px;min-height:46px;padding:11px 20px;font-size:15px;font-weight:550;line-height:1.4;text-decoration:none;transition:background .15s,border-color .15s;display:inline-flex}.button:hover:not(:disabled){background:#f0f1ed;border-color:#bdc7bf}.button.primary{background:var(--green);color:#fff;border-color:var(--green)}.button.primary:hover:not(:disabled){background:#163c31}.button.small{min-height:40px;padding:9px 12px;font-size:13px}.button.danger{color:var(--danger);border-color:#e1b6af}.icon-button{min-width:38px;min-height:38px;color:var(--muted);background:0 0;border:0;border-radius:7px;justify-content:center;align-items:center;padding:8px;display:inline-flex}.icon-button:hover:not(:disabled){background:#244c4009}.text-button{color:var(--green);text-underline-offset:3px;background:0 0;justify-content:center;align-items:center;gap:5px;padding:8px 0;font-size:13px;font-weight:600;line-height:1.4;text-decoration:underline;display:inline-flex}.actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.danger-text{color:var(--danger)}.preserve-text{white-space:pre-wrap;overflow-wrap:anywhere}.loading{min-height:80dvh;color:var(--green);flex-direction:column;justify-content:center;align-items:center;gap:20px;display:flex}.loading p{color:var(--muted);font-size:14px}.login-page{flex-direction:column;max-width:440px;min-height:100dvh;margin:auto;padding:clamp(70px,18vh,165px) 30px 36px;display:flex}.login-brand{text-align:center;color:var(--green)}.login-brand h1{letter-spacing:-1px;margin-top:18px;font-size:42px;font-weight:750;line-height:1.35}.login-brand p{color:var(--muted);letter-spacing:1px;margin-top:8px;font-size:19px}.login-form{margin-top:62px}.login-form>label{margin-bottom:13px;font-size:15px;font-weight:650;display:block}.password-input{background:#fff;border:1px solid #dedfe3;border-radius:12px;align-items:center;min-height:53px;padding-right:8px;display:flex;box-shadow:0 1px 2px #00000002}.password-input:focus-within{outline:2px solid #244c4055}.password-input input{letter-spacing:.02em;background:0 0;border:0;outline:none;width:100%;min-width:0;padding:15px 16px;font-size:16px}.password-input input:focus{outline:none}.password-input button{color:#8a8f9a;background:0 0;border-radius:6px;padding:10px}.password-input input::placeholder{letter-spacing:0;color:#989ca4}.login-error{min-height:48px;color:var(--danger);padding:9px 1px 5px;font-size:13px;line-height:1.6}.login-error .text-button{margin-left:10px}.login-submit{letter-spacing:1px;border-radius:12px;width:100%;min-height:55px;font-size:18px}.login-hint{color:#8b8f93;text-align:center;margin-top:19px;font-size:12px}.app-shell{min-height:100dvh}.topbar{justify-content:space-between;align-items:center;gap:12px;max-width:800px;margin:auto;padding:26px 24px 0;display:flex}.brand{color:var(--green);background:0 0;align-items:center;gap:11px;padding:0;font-size:19px;font-weight:700;display:flex}.logout-button{color:#6d7479;background:0 0;justify-content:center;align-items:center;gap:9px;min-height:40px;padding:6px 0 6px 10px;font-size:12px;display:flex}.page{max-width:800px;margin:auto;padding:0 24px 155px}.page-heading{margin:36px 0 23px}.page-heading h1{letter-spacing:-1px;color:var(--green);font-size:34px;font-weight:750;line-height:1.4}.page-heading p{color:var(--muted);margin-top:4px;font-size:16px}.search-input{color:#91959e;background:#fff;border:1px solid #e0e1e3;border-radius:25px;align-items:center;gap:11px;height:47px;padding:0 15px;display:flex}.search-input input{min-width:0;color:var(--ink);background:0 0;border:0;outline:0;flex:1;padding:12px 0;font-size:15px}.search-input input:focus{outline:0}.search-input:focus-within{outline:2px solid #244c4044}.search-input input::placeholder{color:#9297a0}.search-input .icon-button{min-width:30px;min-height:30px;padding:5px}.category-tabs{scrollbar-width:none;gap:9px;margin:15px 0 22px;display:flex;overflow-x:auto}.category-tabs button{white-space:nowrap;color:#4e6259;background:#eaece8;border-radius:11px;flex:1;min-height:37px;padding:8px 15px;font-size:14px}.category-tabs button.selected{background:var(--amber);color:#fff;font-weight:600}.record-list{flex-direction:column;gap:13px;display:flex}.tip-row{text-align:left;background:var(--surface);border-radius:var(--radius);width:100%;padding:19px 19px 12px;transition:box-shadow .15s,transform .15s;display:block}.tip-row:hover{transform:translateY(-1px);box-shadow:0 4px 20px #244c4008}.row-top{justify-content:space-between;align-items:flex-start;gap:9px;display:flex}.row-top h2{overflow-wrap:anywhere;font-size:17px;font-weight:650;line-height:1.6}.category-label{white-space:nowrap;color:#36604f;background:var(--green-soft);border-radius:6px;margin-top:3px;padding:4px 8px;font-size:11px;font-weight:500;line-height:1.4;display:inline-block}.tip-summary{color:#727883;white-space:pre-wrap;overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:9px;font-size:14px;line-height:1.9;display:-webkit-box;overflow:hidden}.row-bottom{color:#969aa0;justify-content:space-between;align-items:center;min-height:22px;margin-top:9px;font-size:11px;display:flex}.row-bottom svg{color:#8d929a}.status-tabs{gap:9px;margin:26px 0 24px;display:flex}.status-tabs button{color:#4e6259;background:#eaece8;border-radius:11px;flex:1;min-height:46px;font-size:15px}.status-tabs button.selected{background:var(--amber);color:#fff;font-weight:600}.status-tabs button span{margin-left:3px;font-size:13px}.month-heading{color:var(--green);margin:24px 0 11px;font-size:16px;font-weight:600;line-height:1.5}.expiry-row{border-radius:var(--radius);background:#fff;align-items:flex-start;gap:4px;margin:0 0 12px;padding:14px 13px 15px 14px;display:flex;position:relative}.expiry-open{text-align:left;background:0 0;flex:1;align-items:flex-start;gap:15px;min-width:0;padding:0;display:flex}.date-block{background:var(--amber-soft);color:#925021;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;min-width:49px;padding:7px 5px;display:flex}.date-block>span{font-size:11px;line-height:1.5}.date-block strong{font-variant-numeric:tabular-nums;font-size:27px;font-weight:500;line-height:1.18}.date-block small{color:#72706d;margin-top:2px;font-size:10px}.expiry-content{flex:1;min-width:0;padding-top:2px}.expiry-content h3{overflow-wrap:anywhere;font-size:16px;font-weight:650;line-height:1.6}.due-badge{background:var(--amber-soft);color:#aa5a22;border-radius:5px;margin:5px 0 0;padding:3px 7px;font-size:11px;line-height:1.4;display:inline-block}.due-badge.overdue{color:var(--danger);background:#f8e5e0}.due-badge.later{color:#777e77;background:#f2f3ef}.due-badge.complete{color:var(--green);background:var(--green-soft)}.expiry-content>p{color:#888b92;-webkit-line-clamp:2;overflow-wrap:anywhere;-webkit-box-orient:vertical;margin-top:6px;font-size:12px;line-height:1.8;display:-webkit-box;overflow:hidden}.completion{background:0 0;border:1.5px solid #aeb2b8;border-radius:5px;flex-shrink:0;place-items:center;width:20px;height:20px;margin:6px 0 0 4px;padding:0;display:grid;position:relative}.completion:after{content:"";position:absolute;inset:-12px}.completion.checked{background:var(--green);border-color:var(--green);color:#fff}.is-done .expiry-content h3,.agenda-row.is-done h4{color:#8c9390;text-decoration:line-through}.calendar-panel{border-radius:var(--radius);background:#fff;margin-top:22px;padding:16px 12px 12px}.calendar-week,.calendar-days{text-align:center;grid-template-columns:repeat(7,minmax(0,1fr));display:grid}.calendar-week{color:#8c9198;margin-bottom:7px;font-size:12px}.calendar-week span{padding:3px 0 9px}.calendar-days{row-gap:3px}.calendar-days>button{background:0 0;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;min-height:45px;padding:0;font-size:14px;display:flex;position:relative}.calendar-days>button>span{font-variant-numeric:tabular-nums;border-radius:50%;place-items:center;width:34px;height:34px;display:grid}.calendar-days button.today>span{background:var(--green);color:#fff;font-weight:600}.calendar-days button.is-selected>span{box-shadow:0 0 0 2px var(--amber)}.calendar-days button:hover{background:#f6f7f3}.calendar-days i{background:0 0;border-radius:50%;width:5px;height:5px;margin-top:2px}.calendar-days i.has-event{background:var(--amber)}.agenda-heading{justify-content:space-between;align-items:center;gap:12px;min-height:28px;margin:26px 0 15px;display:flex}.agenda-heading h2{color:var(--green);font-size:16px;font-weight:600}.agenda-heading>span{color:#90958f;font-size:12px}.agenda-day>h3{color:var(--green);margin:24px 0 11px;font-size:14px;font-weight:600}.agenda-day>h3>span{margin-left:12px;font-size:12px;font-weight:400}.agenda-row{text-align:left;background:0 0;align-items:center;gap:12px;width:100%;margin-bottom:12px;padding:0;display:flex}.time-rail{color:#65706b;font-variant-numeric:tabular-nums;border-right:1px solid #dcded8;flex-direction:column;justify-content:flex-start;align-self:stretch;gap:7px;width:62px;min-width:62px;padding:14px 14px 14px 0;display:flex;position:relative}.time-rail strong{font-size:13px;font-weight:500}.time-rail>span{color:#999e9b;font-size:12px}.time-rail>i{background:var(--amber);width:9px;height:9px;box-shadow:0 0 0 3px var(--bg);border-radius:50%;position:absolute;top:18px;right:-5px}.agenda-content{background:#fff;border-radius:12px;flex:1;min-width:0;min-height:70px;padding:15px}.agenda-content h4{overflow-wrap:anywhere;font-size:15px;font-weight:650;line-height:1.6}.agenda-content p{color:#838a86;-webkit-line-clamp:2;overflow-wrap:anywhere;-webkit-box-orient:vertical;margin-top:5px;font-size:12px;line-height:1.8;display:-webkit-box;overflow:hidden}.agenda-row>svg{color:#969c98;width:14px;margin-left:-4px}.done-label{background:var(--green-soft);color:var(--green);white-space:nowrap;border-radius:4px;margin-left:7px;padding:3px 6px;font-size:10px;font-weight:400;display:inline-block}.add-day{margin-top:13px}.outside-events{border-top:1px solid var(--line);color:var(--muted);margin-top:30px;padding-top:18px;font-size:13px}.outside-events summary{cursor:pointer;padding:8px 0}.outside-events>p{margin:7px 0 12px;font-size:12px}.outside-row{text-align:left;border-bottom:1px solid var(--line);background:0 0;align-items:center;gap:10px;width:100%;padding:12px 0;font-size:12px;display:flex}.outside-row>span{color:var(--muted)}.outside-row>strong{overflow-wrap:anywhere;flex:1;font-weight:500}.empty-state{text-align:center;max-width:330px;margin:0 auto;padding:45px 0 28px}.empty-icon{color:#789382;background:#eaf0e9;border-radius:20px;place-items:center;width:64px;height:64px;margin:0 auto 20px;display:grid}.empty-state h2{color:var(--green);font-size:18px;font-weight:600;line-height:1.6}.empty-state p{color:#929790;margin:9px 0 21px;font-size:13px;line-height:1.9}.empty-state .button{min-height:42px;color:var(--green);background:0 0;border-color:#d9dfd5;padding:10px 16px;font-size:13px}.sync-footer{color:#969e95;justify-content:center;align-items:center;gap:6px;min-height:32px;margin:26px 0 0;font-size:10px;display:flex}.sync-dot{background:#7c9980;border-radius:50%;width:4px;height:4px}.sync-dot.offline{background:var(--amber)}.sync-footer .icon-button{color:#969e95;min-width:28px;min-height:28px;padding:5px}.connection-banner{color:#9b592f;background:#fff0e3;border-radius:10px;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px;padding:12px 14px;font-size:12px;line-height:1.7;display:flex}.connection-banner button{white-space:nowrap;color:inherit;background:0 0;padding:7px 2px;text-decoration:underline}.bottom-nav{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:10;width:100%;max-width:800px;padding:5px 12px calc(8px + env(safe-area-inset-bottom));background:#ffffffef;border-top:1px solid #e8e8e3;min-height:78px;display:flex;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.bottom-nav button{color:#656e6a;background:0 0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:5px;min-height:60px;padding:5px 0 10px;font-size:12px;display:flex;position:relative}.bottom-nav button.active{color:var(--green);font-weight:650}.bottom-nav button.active:after{content:"";background:var(--green);border-radius:2px;width:54px;height:3px;position:absolute;bottom:1px}.bottom-nav button.active svg{stroke-width:2.2px}.add-button{right:max(23px,50vw - 376px);bottom:calc(99px + env(safe-area-inset-bottom));background:var(--amber);color:#fff;z-index:9;border-radius:16px;place-items:center;width:53px;height:53px;transition:transform .15s,background .15s;display:grid;position:fixed;box-shadow:0 4px 9px #b27b4722}.add-button:hover{background:#b66b32;transform:translateY(-2px)}.sheet{width:min(540px,100vw - 36px);max-height:calc(100dvh - 64px);color:var(--ink);overscroll-behavior:contain;background:#fff;border:0;border-radius:20px;padding:0;overflow:auto;box-shadow:0 15px 100px #19352b33}.sheet::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#142d254d}.sheet-header{z-index:2;background:#fffffffa;border-bottom:1px solid #eceee8;justify-content:space-between;align-items:center;gap:15px;padding:17px 22px 13px;display:flex;position:sticky;top:0}.sheet-header h2{color:var(--green);font-size:18px;font-weight:650}.sheet-body{padding:22px 24px 25px}.sheet-actions{padding:15px 24px calc(16px + env(safe-area-inset-bottom));z-index:2;background:#fffffffa;border-top:1px solid #eceee8;justify-content:flex-end;gap:10px;display:flex;position:sticky;bottom:0}.field{flex-direction:column;gap:9px;min-width:0;margin-bottom:20px;display:flex}.field>span{color:#58665d;font-size:13px;font-weight:600}.field b{color:var(--amber);font-weight:400}.field input,.field textarea,.field select{width:100%;min-width:0;max-width:100%;color:var(--ink);appearance:auto;background:#fff;border:1px solid #dedfda;border-radius:9px;min-height:48px;padding:12px 13px;font-size:16px;line-height:1.5}.field input::placeholder,.field textarea::placeholder{color:#a0a59d;font-size:14px}.field textarea{resize:vertical;line-height:1.8}.field select{font-size:14px}.field-row{gap:14px;display:flex}.field-row>.field{flex:1;margin-bottom:10px}.field-hint{color:#969e91;margin:-8px 0 20px;font-size:12px;line-height:1.8}.error-message{color:var(--danger);white-space:pre-wrap;background:#fcf1ed;border-radius:8px;padding:11px 13px;font-size:13px;line-height:1.8}.conflict-box{color:#85512d;background:#fff4e9;border-radius:10px;margin:16px 0;padding:16px;font-size:13px;line-height:1.8}.conflict-box p{margin:6px 0}.conflict-box .actions{margin-top:10px}.detail-body>.category-label{margin:0 0 12px}.detail-body>h3{letter-spacing:-.4px;overflow-wrap:anywhere;font-size:25px;font-weight:650;line-height:1.6}.detail-body section{margin-top:24px}.detail-body section h4{color:#959c91;margin-bottom:8px;font-size:12px;font-weight:500}.detail-body section p{color:#58645c;font-size:15px;line-height:1.95}.detail-body section p.solution{color:var(--ink)}.detail-date{color:var(--green);align-items:center;gap:10px;display:flex}.detail-date>p{font-size:14px!important}.detail-body>a{margin-top:22px}.detail-updated{color:#a0a69b;margin-top:29px;font-size:11px!important}.history{color:#858c80;border-top:1px solid var(--line);margin-top:20px;padding-top:14px;font-size:12px}.history summary{cursor:pointer;padding:8px 0}.version{overflow-wrap:anywhere;border-top:1px solid #dfe3d8;margin-top:8px;padding:12px 0}.version>strong{margin:6px 0;font-size:13px;font-weight:600;display:block}.version>p{margin:4px 0;font-size:12px;line-height:1.8}.version>small{font-size:11px}.version .preserve-text{max-height:160px;overflow:auto}.delete-confirm{background:#fff8f6;border:1px solid #efd9d4;border-radius:10px;margin-top:20px;padding:15px}.delete-confirm p{color:var(--danger);margin-bottom:12px;font-size:13px}.detail-actions{justify-content:space-between;align-items:center}.settings-body>svg{color:var(--green);margin-bottom:15px}.settings-body h3{color:var(--green);margin-bottom:14px;font-size:23px}.settings-body>p{color:#788271;margin:15px 0;font-size:14px;line-height:1.9}.settings-body>.button{margin:10px 0 24px}.settings-body>.field-hint{font-size:12px}.toast{bottom:calc(94px + env(safe-area-inset-bottom));z-index:100;color:#fff;background:#244438;border-radius:11px;align-items:center;gap:14px;width:max-content;max-width:min(90vw,600px);padding:13px 14px 13px 18px;font-size:13px;line-height:1.6;display:flex;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 5px 25px #244c4025}.toast button{color:#fff;background:0 0;min-width:26px;padding:4px}@media (width>=720px){.topbar{padding-top:34px}.page-heading{margin-top:42px;margin-bottom:26px}.page-heading h1{font-size:38px}.record-list{gap:14px}.tip-row{padding:23px 25px 15px}.row-top{justify-content:flex-start;align-items:center;gap:13px}.row-top h2{font-size:19px}.category-tabs button{flex:initial;min-width:74px}.expiry-row{padding:20px}.expiry-content{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.expiry-content h3{font-size:18px}.expiry-content p{flex-basis:100%;font-size:13px}.due-badge{margin:0 0 0 4px}.expiry-content small{flex-basis:100%}.calendar-panel{max-width:100%;padding:22px 20px 16px}.calendar-days>button{min-height:55px}.calendar-days>button>span{width:38px;height:38px;font-size:16px}.calendar-week{font-size:13px}.agenda-row{gap:18px}.time-rail{width:75px;min-width:75px}.agenda-content{padding:20px}.empty-state{padding:65px 0 40px}.bottom-nav button{flex-direction:row;gap:10px;font-size:14px}.bottom-nav{min-height:68px;padding-top:0;padding-bottom:5px}.bottom-nav button{min-height:60px}.add-button{bottom:95px}.login-page{max-width:440px}.login-form{margin-top:58px}}@media (width<=560px){.sheet{border-radius:21px 21px 0 0;width:100%;max-width:100%;max-height:calc(100dvh - 35px);margin:0;position:fixed;inset:auto 0 0}.sheet-header{padding:16px 22px 12px}.sheet-body{padding:22px 22px 24px}.sheet-actions{padding-left:22px;padding-right:22px}.sheet-actions>.button.primary{flex:1}.sheet-actions>.button:not(.primary){min-width:86px}.detail-actions>.actions{justify-content:flex-end}.detail-actions>.actions>.button{min-width:85px}.detail-actions>.actions>.button.primary{flex:initial}.login-page{padding-left:27px;padding-right:27px}}@media (width<=360px){.topbar,.page{padding-left:19px;padding-right:19px}.brand{gap:8px;font-size:17px}.logout-button{font-size:11px}.page-heading h1{font-size:31px}.page-heading p{font-size:14px}.category-tabs{gap:6px}.category-tabs button{padding-left:11px;padding-right:11px}.tip-row{padding:16px 15px 10px}.row-top h2{font-size:16px}.expiry-open{gap:11px}.expiry-row{padding:13px 11px}.date-block{min-width:44px}.expiry-content h3{font-size:15px}.login-brand h1{font-size:37px}.login-brand p{font-size:16px}.login-form{margin-top:45px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
