@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+TC:wght@400;500;600;700;800&display=swap');
:root{--ink:#193b39;--muted:#748481;--paper:#f8f8f3;--white:#fff;--line:#e8eae4;--mint:#dcebe4;--deep:#123f3b;--orange:#eaa268;--pale-orange:#fff0e3;--pale-green:#e9f3ed;--shadow:0 14px 38px rgba(22,57,52,.055)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans','Noto Sans TC',sans-serif;font-size:15px}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:#fff;border-right:1px solid var(--line);padding:35px 21px 22px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:2px 7px}.brand-mark{width:43px;height:43px;border-radius:14px;background:var(--deep);color:#f8dcaa;display:grid;place-items:center;font-size:27px;line-height:1}.brand strong{font-size:20px;letter-spacing:.11em;font-weight:800;display:block}.brand small{font-size:9px;color:#91a09b;letter-spacing:.18em;display:block;margin-top:5px}.nav-label{font-size:11px;color:#a7b4ac;letter-spacing:.15em;margin:61px 10px 13px}.nav{display:grid;gap:6px}.nav a{height:48px;display:flex;align-items:center;gap:15px;padding:0 15px;border-radius:11px;color:#6e807b;font-weight:600;transition:.2s}.nav a:hover{background:#f2f7f2;color:var(--deep)}.nav a.active{background:#eaf3e8;color:#245448}.nav a span{font-size:21px;font-weight:400;width:22px;text-align:center}.sidebar-bottom{margin-top:auto}.side-note{background:#f1f5e9;border-radius:15px;padding:20px 18px;color:#436758}.side-note .spark{display:block;font-size:22px;color:#d09358;margin-bottom:14px}.side-note strong{font-size:14px;line-height:1.7}.side-note p{font-size:11px;line-height:1.8;color:#84948b;margin:12px 0 0}.prototype-label{font-size:10px;color:#a5b0a9;display:block;margin:20px 7px 0}.main-wrap{margin-left:240px;width:calc(100% - 240px);min-width:0}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 46px;border-bottom:1px solid #ecede8;background:rgba(255,255,255,.38)}.breadcrumb{font-size:12px;color:#8b9a96}.breadcrumb span{padding:0 9px;color:#bdc7c3}.breadcrumb b{font-weight:600;color:#456660}.top-right{display:flex;align-items:center;gap:18px}.top-date{font-size:12px;color:#8c9c95}.avatar{width:34px;height:34px;border-radius:50%;background:#d9e9de;display:grid;place-items:center;font-weight:700;color:#426b58}.mobile-menu{display:none}.page{max-width:1400px;margin:0 auto;padding:42px 46px 72px}.eyebrow{font-size:10px;letter-spacing:.19em;color:#8ea69a;font-weight:700;text-transform:uppercase}.page-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px}.page-head h1{font-size:30px;letter-spacing:.06em;margin:8px 0 7px;line-height:1.35}.page-head p{margin:0;color:#91a09b;font-size:13px}.btn{border:0;border-radius:10px;min-height:44px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;gap:13px;font-size:13px;font-weight:700;transition:transform .2s,background .2s}.btn:hover{transform:translateY(-2px)}.btn-primary{background:var(--deep);color:white;box-shadow:0 6px 15px rgba(18,63,59,.12)}.btn-primary:hover{background:#215c54}.btn-soft{background:#e6efe9;color:#245a4d}.btn-outline{border:1px solid #c8d7ce;background:transparent;color:#245a4d}.btn-ghost{background:#f0f3ef;color:#60756e}.btn span{font-size:17px}.hero{min-height:333px;border-radius:20px;overflow:hidden;background:#e6efe6;position:relative;display:grid;grid-template-columns:1fr 48%;align-items:center;padding:40px 42px;margin-bottom:22px}.hero:after{content:'';width:340px;height:340px;border:1px solid rgba(65,113,92,.16);border-radius:50%;position:absolute;right:5%;top:-83px}.hero-content{position:relative;z-index:2}.hero .eyebrow{display:inline-block;background:rgba(255,255,255,.62);border-radius:30px;padding:8px 13px;color:#5c8575}.hero h2{font-size:32px;line-height:1.55;letter-spacing:.07em;margin:16px 0 12px}.hero p{font-size:13px;color:#698276;line-height:1.8;max-width:375px;margin:0 0 24px}.hero-art{width:100%;max-width:470px;justify-self:center;position:relative;z-index:1}.hero-art svg{width:100%;display:block}.hero-sticker{position:absolute;right:4%;bottom:5%;background:#fff;border-radius:30px;padding:10px 17px;box-shadow:var(--shadow);font-size:11px;color:#678574;transform:rotate(-5deg)}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:47px}.stat-card{background:white;border:1px solid #eaede8;border-radius:16px;min-height:114px;display:flex;align-items:center;padding:22px;gap:17px;box-shadow:var(--shadow)}.stat-icon{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;font-size:25px;background:#e9f3eb;color:#326854}.stat-card:nth-child(2) .stat-icon{background:#fff0e2;color:#d6925e}.stat-card:nth-child(3) .stat-icon{background:#e9f0f4;color:#5f8293}.stat-card small{display:block;color:#8b9c96;font-size:11px;margin-bottom:5px}.stat-card strong{font-size:27px;line-height:1}.stat-card em{font-style:normal;color:#93a49e;font-size:11px;margin-left:7px}.section-grid{display:grid;grid-template-columns:1.45fr .9fr;gap:25px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:17px}.section-heading h2{font-size:21px;margin:0 0 5px;letter-spacing:.04em}.section-heading p{font-size:12px;color:#9aa8a2;margin:0}.link-btn{border:0;background:none;color:#547e6a;font-size:12px;font-weight:700;padding:6px 0}.link-btn:hover{text-decoration:underline}.panel{background:#fff;border:1px solid #e9ede7;border-radius:17px;box-shadow:var(--shadow)}.due-list{padding:6px 20px}.due-row{display:flex;align-items:center;gap:15px;padding:15px 2px;border-bottom:1px solid #eef0eb}.due-row:last-child{border:0}.item-emoji{width:43px;height:43px;border-radius:12px;background:#f3f6f1;display:grid;place-items:center;font-size:22px;flex:0 0 auto}.due-row h3{font-size:14px;margin:0 0 4px}.due-row p{font-size:11px;color:#9ba9a4;margin:0}.due-meta{margin-left:auto;text-align:right}.due-meta strong{display:block;font-size:12px;color:#b8754d;margin-bottom:4px}.due-meta small{color:#a5b1ac;font-size:10px}.mini-feature{border-radius:17px;background:#f0f5e9;padding:27px 25px;min-height:100%;position:relative;overflow:hidden}.mini-feature:after{content:'✳';position:absolute;font-size:170px;color:#dfead5;right:-25px;bottom:-88px;line-height:1}.mini-feature .eyebrow{color:#6b9777}.mini-feature h3{font-size:22px;line-height:1.5;margin:13px 0}.mini-feature p{color:#82978b;font-size:12px;line-height:1.8;max-width:230px}.mini-feature .btn{position:relative;z-index:1;margin-top:12px}.small-note{margin-top:24px;color:#9baaa4;font-size:11px}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.search-wrap{flex:1;min-width:230px;position:relative}.search-wrap span{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#9eaea7}.toolbar input,.toolbar select{height:45px;background:white;border:1px solid #e5eae4;border-radius:10px;color:var(--ink);outline:none}.toolbar input{width:100%;padding:0 15px 0 41px}.toolbar select{padding:0 38px 0 14px}.toolbar input:focus,.toolbar select:focus,input:focus,textarea:focus,select:focus{border-color:#6a9e88;box-shadow:0 0 0 3px rgba(105,158,136,.13);outline:none}.results-count{color:#9baaa4;font-size:12px;margin:8px 0 14px}.item-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.item-card{background:white;border:1px solid #e7ece6;border-radius:16px;padding:20px;box-shadow:var(--shadow);display:flex;flex-direction:column;min-height:238px}.card-top{display:flex;align-items:start;justify-content:space-between}.card-emoji{width:49px;height:49px;display:grid;place-items:center;background:#edf4ee;border-radius:13px;font-size:26px}.badge{display:inline-flex;align-items:center;border-radius:20px;padding:6px 10px;font-size:10px;font-weight:700}.badge.ok{background:#edf5ef;color:#518267}.badge.soon{background:#fff0df;color:#b57944}.badge.expired{background:#f7e8e4;color:#ae6b5b}.item-card h3{font-size:17px;margin:16px 0 5px}.item-card .category{font-size:11px;color:#9aa9a2;margin:0 0 17px}.meta-line{display:flex;justify-content:space-between;font-size:11px;color:#91a39b;margin:5px 0}.meta-line strong{font-weight:600;color:#537267}.card-actions{display:flex;gap:8px;margin-top:auto;padding-top:16px}.card-actions button{flex:1;min-height:34px;font-size:11px;border:1px solid #e2eae3;background:#fff;border-radius:8px;color:#517665;font-weight:700}.card-actions button:hover{background:#f0f6f1}.card-actions .danger{color:#b67d70}.empty{padding:58px 20px;text-align:center;background:#fff;border:1px dashed #d8e2d9;border-radius:16px;grid-column:1/-1}.empty .empty-icon{display:block;font-size:34px;margin-bottom:12px}.empty h3{font-size:18px;margin:0 0 8px}.empty p{font-size:12px;color:#91a29a;margin:0 0 18px}.receipt-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.receipt-card{background:white;border:1px solid #e6ebe5;border-radius:15px;overflow:hidden;box-shadow:var(--shadow)}.receipt-thumb{height:145px;background:#edf3ed;display:grid;place-items:center;overflow:hidden}.receipt-thumb img{width:100%;height:100%;object-fit:cover}.receipt-thumb.missing{font-size:42px;color:#b9c9bd}.receipt-info{padding:17px}.receipt-info h3{font-size:14px;margin:0 0 6px}.receipt-info p{font-size:11px;color:#9aaba3;margin:0 0 15px}.receipt-info .btn{width:100%;min-height:35px;font-size:11px}.info-banner{padding:16px 20px;background:#edf4ef;border:1px solid #dbe9dd;border-radius:12px;color:#547562;font-size:12px;margin-bottom:22px;line-height:1.7}.expiry-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}.expiry-columns h2{font-size:19px}.expiry-card{padding:17px 20px;border-bottom:1px solid #eff1ec;display:flex;gap:14px;align-items:center}.expiry-card:last-child{border:0}.expiry-card h3{font-size:13px;margin:0 0 4px}.expiry-card p{font-size:11px;color:#a2ada6;margin:0}.expiry-card .badge{margin-left:auto}.about-hero{background:#e5eee4;border-radius:18px;padding:45px;display:grid;grid-template-columns:1.1fr .7fr;gap:20px;align-items:center}.about-hero h2{font-size:31px;line-height:1.5;margin:13px 0}.about-hero p{font-size:13px;line-height:1.9;color:#708d7a;max-width:500px}.about-illustration{font-size:125px;text-align:center;filter:drop-shadow(0 14px 8px #cddfcf)}.about-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:22px}.about-card{background:white;border:1px solid var(--line);border-radius:15px;padding:24px}.about-card span{font-size:28px}.about-card h3{font-size:16px;margin:15px 0 9px}.about-card p{font-size:12px;line-height:1.8;color:#8c9d94;margin:0}.footer{display:flex;justify-content:space-between;gap:10px;padding:20px 46px 28px;color:#a3b0a9;font-size:10px;border-top:1px solid #eaeee8}.footer i{font-style:normal;color:#d69d6b;margin:0 4px}.item-dialog,.receipt-dialog{border:0;border-radius:20px;padding:0;box-shadow:0 30px 90px #0b35355c;max-width:min(640px,calc(100vw - 26px));width:100%;max-height:calc(100vh - 30px);overflow:auto;color:var(--ink)}dialog::backdrop{background:rgba(17,49,46,.45)}.item-dialog form,.receipt-dialog{padding:28px 31px}.dialog-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:20px}.dialog-head h2{font-size:24px;margin:7px 0 0}.close-btn{border:0;background:#edf3ee;color:#648074;width:32px;height:32px;border-radius:50%;font-size:23px;line-height:1}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-grid label{font-size:12px;font-weight:700;display:block}.form-grid .full{grid-column:1/-1}.form-grid input:not([type=file]),.form-grid select,.form-grid textarea{width:100%;border:1px solid #dce5dc;background:#fcfdfa;border-radius:9px;margin-top:7px;padding:10px 12px;outline:none;font-size:13px;color:var(--ink)}.form-grid input:not([type=file]),.form-grid select{height:42px}.form-grid textarea{resize:vertical}.form-grid em{font-style:normal;color:#d57e69}.field-error{display:block;color:#bd6558;font-size:11px;min-height:0;margin-top:3px}.field-error:not(:empty){min-height:14px}.upload-zone{margin-top:8px;border:1px dashed #bdd2c2;background:#f5f9f5;border-radius:11px;padding:14px;text-align:center;cursor:pointer!important}.upload-icon{display:block;font-size:24px;color:#67947a}.upload-zone strong{display:block;color:#507766;font-size:12px}.upload-zone small{display:block;font-weight:400;color:#a0afa4;margin-top:5px}.text-btn{border:0;background:none;color:#b5725d;font-size:11px;margin-top:7px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid #edf0eb;padding-top:17px;margin-top:20px}.receipt-dialog{max-width:min(580px,calc(100vw - 26px))}.receipt-dialog img{width:100%;max-height:70vh;object-fit:contain;background:#f5f6f1;border-radius:9px}.receipt-dialog p{font-size:11px;color:#93a299;text-align:center}.toast{position:fixed;bottom:26px;right:25px;background:var(--deep);color:white;padding:13px 20px;border-radius:10px;font-size:12px;box-shadow:0 12px 35px #18494045;z-index:70;opacity:0;transform:translateY(12px);pointer-events:none;transition:.25s}.toast.show{opacity:1;transform:translateY(0)}.overlay{display:none}
@media(max-width:1150px){.item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.receipt-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero{grid-template-columns:1fr 44%}.hero h2{font-size:28px}.page{padding-left:30px;padding-right:30px}.topbar,.footer{padding-left:30px;padding-right:30px}}
@media(max-width:800px){.sidebar{transform:translateX(-100%);transition:transform .25s;width:250px}.sidebar.open{transform:translateX(0)}.overlay:not([hidden]){display:block;position:fixed;inset:0;background:#0d323055;z-index:15}.main-wrap{margin-left:0;width:100%}.mobile-menu{display:grid;place-items:center;border:0;background:none;font-size:21px;color:var(--deep);margin-right:12px}.topbar{height:62px;justify-content:flex-start;padding:0 20px}.top-right{margin-left:auto}.page{padding:27px 20px 55px}.hero{min-height:300px;padding:28px}.hero h2{font-size:25px}.stat-card{padding:16px;gap:10px}.stat-icon{width:42px;height:42px;font-size:20px}.stat-card strong{font-size:23px}.section-grid{grid-template-columns:1fr}.receipt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer{padding:18px 20px}}
@media(max-width:560px){.top-date{display:none}.breadcrumb{font-size:11px}.page-head{align-items:start;flex-direction:column;gap:15px}.page-head h1{font-size:24px}.page-head .btn{padding:0 15px;min-height:40px;font-size:11px;align-self:flex-start;white-space:nowrap}.hero{grid-template-columns:1fr;padding:27px 25px 20px;min-height:0}.hero h2{font-size:25px;margin:12px 0}.hero p{margin-bottom:13px}.hero-art{max-width:250px;margin:-22px 0 -20px auto}.hero-sticker{display:none}.stat-grid{gap:9px}.stat-card{display:block;min-height:104px;padding:14px 11px}.stat-icon{width:34px;height:34px;font-size:18px;margin-bottom:9px;border-radius:9px}.stat-card small{font-size:9px;min-height:27px}.stat-card strong{font-size:22px}.stat-card em{font-size:9px;margin-left:3px}.item-grid{grid-template-columns:1fr}.receipt-grid{grid-template-columns:1fr 1fr;gap:10px}.receipt-thumb{height:105px}.receipt-info{padding:11px}.receipt-info h3{font-size:12px}.expiry-columns,.about-hero,.about-cards{grid-template-columns:1fr}.about-hero{padding:28px}.about-hero h2{font-size:25px}.about-illustration{font-size:90px}.toolbar{gap:8px}.search-wrap{min-width:100%}.toolbar select{flex:1;max-width:calc(50% - 4px);font-size:12px}.form-grid{grid-template-columns:1fr;gap:12px}.form-grid .full{grid-column:auto}.item-dialog form,.receipt-dialog{padding:22px}.footer{display:block}.footer span{display:block;margin:5px 0}}
.delete-dialog{border:0;border-radius:20px;padding:28px 31px;box-shadow:0 30px 90px #0b35355c;max-width:min(440px,calc(100vw - 26px));width:100%;color:var(--ink)}.delete-dialog p{font-size:13px;line-height:1.8;color:#72867b}.btn-danger{background:#ad665b;color:#fff}
.backup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.backup-card{min-height:288px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px;display:flex;flex-direction:column;align-items:flex-start;box-shadow:var(--shadow)}.backup-card:nth-child(2){background:#eef5ec}.backup-symbol{width:48px;height:48px;border-radius:14px;background:#e3f0e7;color:#2a6755;display:grid;place-items:center;font-size:27px;margin-bottom:20px}.backup-card:nth-child(2) .backup-symbol{background:#fff}.backup-card h2{font-size:23px;margin:9px 0 8px}.backup-card p{font-size:13px;line-height:1.8;color:#81958a;margin:0 0 22px;max-width:410px}.backup-card .btn{margin-top:auto}.backup-picker{cursor:pointer}.backup-help,.backup-preview{background:#fff;border:1px solid var(--line);border-radius:17px;padding:27px 30px;margin-top:22px;box-shadow:var(--shadow)}.backup-help h2,.backup-preview h2{font-size:20px;margin:0 0 12px}.backup-help ol{padding-left:21px;margin:0 0 13px;color:#4e7565;line-height:2}.backup-help p,.backup-preview p{color:#82968b;font-size:12px;line-height:1.8;margin:8px 0}.backup-preview .eyebrow{display:block;margin-bottom:9px}.backup-numbers{display:flex;gap:12px;margin:20px 0}.backup-numbers strong{min-width:125px;border-radius:12px;background:#f0f6f1;padding:16px;font-size:27px}.backup-numbers small{display:block;color:#8fa397;font-size:11px;font-weight:500;margin-top:3px}.backup-preview .backup-warning{background:#fff3e8;border:1px solid #f4dcc6;border-radius:10px;padding:13px 15px;color:#9b6b46}.backup-consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;font-weight:700;margin:17px 0;cursor:pointer}.backup-consent input{width:17px;height:17px;accent-color:#245a4d;flex:0 0 auto}.backup-actions{display:flex;gap:10px;justify-content:flex-end;border-top:1px solid var(--line);padding-top:18px}.backup-actions button:disabled{opacity:.45;cursor:not-allowed;transform:none}.backup-error,.backup-success{padding:14px 18px;border-radius:10px;margin:18px 0 0;font-size:13px}.backup-error{background:#fff0ea;color:#a55042}.backup-success{background:#e8f4ec;color:#386d50}
@media(max-width:700px){.backup-grid{grid-template-columns:1fr}.backup-card{min-height:250px}.backup-help,.backup-preview{padding:22px}.backup-actions{flex-direction:column}.backup-actions .btn{width:100%}}
