:root{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:#3b352f;background:#fff8ef;font-size:16px}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.52}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #73b8ab;outline-offset:2px}h1,h2,h3,p{margin:0}h1{font-size:1.2rem;letter-spacing:.02em}h2{font-size:1.2rem}h3{font-size:1rem}.shell{max-width:1140px;margin:auto;padding:18px 18px 110px}.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.brand{display:flex;align-items:center;gap:10px;min-width:0}.brand-icon{height:42px;width:42px;border-radius:14px;background:#ffddc8;display:grid;place-items:center;font-size:1.4rem}.brand h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.subtle{color:#847c71;font-size:.87rem}.top-actions{display:flex;align-items:center;gap:6px}.iconbtn{border:0;background:white;color:#3b352f;border-radius:13px;min-width:44px;height:44px;padding:0 10px}.sync{font-size:.75rem;color:#5d776e;white-space:nowrap}.sync.warn{color:#ab5a44}.passport{background:#fff;border:1px solid #f0e7da;border-radius:24px;padding:20px 22px;box-shadow:0 9px 28px #6044230d;position:relative;overflow:hidden;margin-bottom:22px}.passport:before{content:"";position:absolute;right:-60px;top:-94px;width:225px;height:225px;border:32px solid #fff2e4;border-radius:50%;pointer-events:none}.passport-head,.balance-line,.mini-stats{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px}.passport-head{margin-bottom:8px}.pass-title{font-weight:750;color:#955537;font-size:.88rem;letter-spacing:.14em}.child-select{border:1px solid #eadfd3;background:#fff9f3;border-radius:12px;padding:9px 11px;max-width:50%}.balance-line{align-items:end}.balance-label{color:#6b655e;font-size:.87rem}.balance{font-size:clamp(2.8rem,8vw,4.2rem);line-height:1.06;font-weight:800;color:#b95c35;font-variant-numeric:tabular-nums;letter-spacing:-.06em}.balance small{font-size:1rem;letter-spacing:0;margin-left:4px}.pass-stamp{font-size:2.3rem;transform:rotate(-12deg);opacity:.8}.mini-stats{border-top:1px dashed #eadfd3;margin-top:15px;padding-top:12px;justify-content:flex-start;gap:25px;flex-wrap:wrap;font-size:.85rem}.mini-stats strong{color:#484139}.section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:22px 0 12px}.section-head small{color:#867f75}.filters{display:flex;gap:7px;overflow:auto;padding-bottom:8px}.chip{border:1px solid #e8ddd1;background:#fff;border-radius:999px;color:#665f56;padding:8px 13px;white-space:nowrap;min-height:39px}.chip.active{background:#3f7567;border-color:#3f7567;color:#fff}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.card{background:#fff;border:1px solid #eee3d7;border-radius:20px;padding:16px;min-width:0;box-shadow:0 5px 18px #60442308}.task-card{display:flex;flex-direction:column;min-height:188px}.tile-icon{font-size:2rem;line-height:1.2}.task-card h3,.reward-card h3{margin-top:10px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}.task-card .points{margin-top:7px;color:#3f7567;font-weight:800;font-size:1.15rem}.task-card .meta{color:#857c72;font-size:.77rem;margin:4px 0 10px;line-height:1.35}.task-card button,.reward-card button{margin-top:auto}.btn{border:0;border-radius:13px;min-height:44px;padding:10px 15px;font-weight:700;background:#eb865c;color:#2b211b}.btn.secondary{background:#f5e9dc;color:#634c3b}.btn.mint{background:#dcefe8;color:#2c6254}.btn.ghost{background:transparent;border:1px solid #dfd0c0;color:#594d42}.btn.full{width:100%}.btn.danger{background:#f7e3df;color:#9f3d35}.reward-card{display:flex;flex-direction:column;min-height:205px}.reward-card .price{color:#b95c35;font-weight:800;margin:8px 0}.reward-card .meta{font-size:.82rem;color:#81776c;margin-bottom:10px}.reward-progress{height:7px;border-radius:99px;background:#eee7db;overflow:hidden;margin:4px 0 9px}.reward-progress span{display:block;background:#8fc5a9;height:100%}.list{display:grid;gap:9px}.row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid #eee3d7;border-radius:16px;padding:13px 15px;min-width:0}.row-main{min-width:0}.row strong{display:block;overflow-wrap:anywhere}.row small{display:block;color:#897f75;margin-top:4px;line-height:1.4}.delta{font-weight:800;white-space:nowrap}.delta.pos{color:#3f7567}.delta.neg{color:#bd6240}.panel{background:#fff;border:1px solid #eee3d7;border-radius:20px;padding:18px;margin-bottom:14px}.panel p{line-height:1.7;color:#6c645b}.panel h3{margin-bottom:10px}.bar{height:10px;border-radius:999px;background:#f2eadf;overflow:hidden}.bar span{height:100%;display:block;background:#80bea8}.nav{position:fixed;z-index:5;bottom:0;left:0;right:0;background:#fffdf9;border-top:1px solid #eddfcf;display:flex;justify-content:center;padding:8px 5px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -8px 26px #6044230a}.nav-inner{width:min(100%,700px);display:grid;grid-template-columns:repeat(5,1fr);gap:2px}.nav button{border:0;background:transparent;border-radius:13px;min-height:55px;color:#80796e;font-size:.76rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.nav button span{font-size:1.35rem}.nav button.active{background:#fff0e5;color:#9d4d2d;font-weight:800}.empty{text-align:center;padding:36px 12px;color:#80766b}.modal{position:fixed;inset:0;z-index:20;background:#2c211d80;display:flex;align-items:end;justify-content:center;padding:0}.modal[hidden]{display:none}.sheet{background:#fffdf9;border-radius:24px 24px 0 0;width:min(100%,650px);max-height:90dvh;overflow:auto;padding:22px 20px calc(25px + env(safe-area-inset-bottom));box-shadow:0 -12px 40px #20191522}.sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.close{background:#f5ede4;border:0;border-radius:50%;width:40px;height:40px}.form{display:grid;gap:12px}.field{display:grid;gap:6px;font-size:.88rem;font-weight:650}.field input,.field select,.field textarea{border:1px solid #dfd3c4;background:#fff;border-radius:12px;padding:11px 12px;min-height:45px;width:100%;color:#3b352f}.field textarea{min-height:85px}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-check{display:flex;align-items:center;gap:9px}.form-check input{width:18px;height:18px}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions .btn{flex:1}.toast{position:fixed;z-index:30;left:50%;bottom:90px;transform:translateX(-50%) translateY(15px);opacity:0;background:#403a34;color:#fff;border-radius:12px;padding:10px 15px;box-shadow:0 9px 25px #0002;pointer-events:none;transition:.2s;max-width:92%;text-align:center}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.welcome{min-height:100dvh;display:grid;place-items:center;padding:22px}.welcome-card{width:min(100%,460px);background:white;border:1px solid #efe3d5;border-radius:26px;padding:27px;box-shadow:0 18px 50px #60442314}.welcome-logo{font-size:3rem}.welcome-card h1{font-size:1.6rem;margin:8px 0}.welcome-card p{line-height:1.6;color:#766e65;margin-bottom:20px}.tabs{display:flex;gap:7px;margin-bottom:20px}.tabs button{flex:1}.credential{background:#fff5e9;border:1px dashed #dcae80;border-radius:14px;padding:12px;overflow-wrap:anywhere;font-weight:700;letter-spacing:.08em}.note{font-size:.83rem;color:#7c746a;line-height:1.5}.inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.stat{background:#fff;border:1px solid #eee3d7;border-radius:17px;padding:15px}.stat strong{display:block;font-size:1.5rem;color:#a45c3d}.stat small{color:#7d7469}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.date-cell{padding:8px 0;text-align:center;background:#f7f2eb;border-radius:8px;font-size:.76rem}.date-cell.done{background:#dcefe8;color:#316b5a;font-weight:800}.settings-grid{display:grid;gap:11px}.tiny{font-size:.78rem;color:#8a8177}.float-point{position:fixed;left:50%;top:40%;color:#3f7567;font-weight:900;font-size:1.5rem;pointer-events:none;animation:float .8s ease-out forwards}@keyframes float{to{transform:translateY(-70px);opacity:0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}@media(min-width:700px){.shell{padding:25px 30px 100px}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.passport{padding:26px 30px}.sheet{border-radius:24px;margin:auto}}@media(min-width:1000px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:360px){.shell{padding-left:12px;padding-right:12px}.card{padding:12px}.task-card{min-height:196px}.nav button{font-size:.69rem}}
.filters{scrollbar-width:none}.filters::-webkit-scrollbar{display:none}
.pass-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:.07em;max-width:48%}
@media(max-width:520px){.brand .subtle{display:none}.top .sync{max-width:78px;font-size:.68rem;line-height:1.15;white-space:normal;text-align:center}.top .iconbtn{padding:0 6px}.passport:before{right:-105px;top:-110px;opacity:.65}.pass-title{max-width:43%}}
.goal-mini{position:relative;border-top:1px dashed #eadfd3;margin-top:12px;padding-top:12px;display:grid;grid-template-columns:1fr auto;gap:7px;font-size:.82rem}.goal-mini .bar{grid-column:1/-1}.goal-mini strong{color:#3f7567}.ledger-filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.ledger-filters>*{min-height:44px;border:1px solid #e8ddd1;background:white;border-radius:12px;padding:7px;color:#51483f;max-width:100%}
/* Compact, colorful task board */
.task-section .section-head{margin-top:4px;margin-bottom:10px}.task-section .section-head h2{font-size:1.1rem}.task-section .section-head small{display:block;margin-top:3px;font-size:.76rem}.task-grid{gap:8px}.task-tile{position:relative;min-width:0;border-radius:15px;border:1px solid #e5ddd2;overflow:hidden;box-shadow:0 3px 9px #60442308}.task-tile.mint{background:#e8f4ec}.task-tile.blue{background:#e8f3f8}.task-tile.pink{background:#faedf1}.task-tile.peach{background:#fff0df}.task-tile.picked{outline:3px solid #3f7567;outline-offset:-3px}.task-select{display:flex;flex-direction:column;align-items:flex-start;width:100%;min-height:116px;padding:11px 13px 9px;border:0;background:transparent;color:#3b352f;text-align:left;position:relative}.task-icon{font-size:1.47rem;line-height:1.1}.task-copy{width:100%;margin-top:5px;padding-right:30px}.task-copy strong{font-size:.87rem;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:1.25em}.task-copy small{display:block;font-size:.67rem;color:#6e6a63;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-score{position:absolute;right:10px;bottom:10px;color:#305f53;font-size:.86rem;font-weight:900}.task-edit{position:absolute;right:4px;top:3px;border:0;background:transparent;color:#6b5a4c;min-width:44px;min-height:44px;font-size:1.07rem}.task-select:disabled{opacity:.58}.bulk-bar{position:fixed;z-index:7;left:50%;bottom:calc(72px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(calc(100% - 24px),620px);background:#fff;border:1px solid #e7d9ca;box-shadow:0 8px 28px #4932252e;border-radius:18px;padding:9px 10px 9px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.bulk-bar small{display:block;color:#796e62;font-size:.75rem}.bulk-bar .btn{min-width:120px}.task-section{padding-bottom:35px}.passport{padding:15px 18px;margin-bottom:10px}.passport-head{margin-bottom:3px}.balance{font-size:clamp(2.35rem,7vw,3.3rem)}.pass-stamp{font-size:1.9rem}.mini-stats{margin-top:9px;padding-top:8px}.top{margin-bottom:10px}.filters{padding-bottom:6px}.chip{min-height:34px;padding:5px 11px;font-size:.79rem}.task-section .section-head .btn{min-height:36px;padding:7px 10px;font-size:.79rem}
@media(max-width:360px){.task-select{min-height:122px;padding:9px}.task-copy strong{font-size:.82rem}}
/* Dense task board: five tasks per phone row */
.task-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.task-tile{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;position:relative;min-width:0;min-height:91px;padding:8px 4px 6px;border-radius:12px;border:1px solid #9f9a9080;text-align:center;color:#3b352f;box-shadow:0 2px 5px #60442310}
.task-tile.mint{background:#bce8ce;border-color:#8fcaab}.task-tile.blue{background:#b9e3f7;border-color:#8fc8e4}.task-tile.pink{background:#f8bfd7;border-color:#e59bb8}.task-tile.peach{background:#ffda9b;border-color:#e9b977}
.task-tile.picked{outline:3px solid #275e51;outline-offset:-3px;box-shadow:0 4px 12px #275e5130}.task-tile:disabled{opacity:.72;color:#55504a}.task-tile:disabled .task-score{color:#416e57}
.task-icon{font-size:1.35rem;line-height:1.2;flex:none}.task-name{font-size:.69rem;font-weight:800;line-height:1.18;margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;max-width:100%;min-height:2.36em}.task-score{position:static;display:block;margin-top:auto;padding-top:3px;color:#244d42;font-size:.74rem;font-weight:900}.pick-mark{position:absolute;top:3px;right:3px;background:#275e51;color:#fff;border-radius:50%;width:17px;height:17px;display:grid;place-items:center;font-size:.65rem;font-weight:900}
.task-section .section-head .btn{min-height:44px}.task-section .section-head small{font-size:.73rem}
.legacy-connect{border-top:1px solid #eee3d7;padding-top:10px;font-size:.82rem;color:#746b60}.legacy-connect summary{cursor:pointer}.legacy-connect .field{margin-top:10px}
@media(min-width:700px){.task-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.task-tile{min-height:100px}.task-name{font-size:.79rem}.task-icon{font-size:1.5rem}}
@media(max-width:360px){.task-grid{gap:4px}.task-tile{min-height:94px;padding:6px 2px}.task-name{font-size:.64rem}.task-icon{font-size:1.2rem}}
/* Compact reward shelf */
.redeem-section .section-head{margin-top:4px;margin-bottom:12px}.redeem-section .section-head h2{font-size:1.1rem}.redeem-section .section-head small{display:block;margin-top:3px;font-size:.73rem}.redeem-section .section-head .btn{font-size:.79rem;min-height:44px;padding:7px 10px}
.reward-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.reward-tile{min-width:0;min-height:112px;border:1px solid #d9cdbf;border-radius:13px;background:#fff;padding:8px 4px 7px;color:#3b352f;text-align:center;display:flex;flex-direction:column;align-items:center;box-shadow:0 3px 8px #60442310}
.reward-tile.activity{background:#d4ecf8;border-color:#a8d3e9}.reward-tile.gift{background:#f9d8e5;border-color:#e9b4ca}.reward-tile.cash{background:#ffe2ad;border-color:#e9bc77}
.reward-icon{font-size:1.4rem;line-height:1.2}.reward-name{font-size:.7rem;font-weight:800;line-height:1.18;margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;min-height:2.36em;max-width:100%}.reward-tile strong{font-size:.75rem;color:#9c4b2a;margin-top:auto;white-space:nowrap}.reward-tile small{font-size:.61rem;color:#5d554d;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.reward-meter{height:3px;width:92%;background:#ffffffb0;border-radius:99px;margin-top:5px;overflow:hidden}.reward-meter i{display:block;height:100%;background:#4c8b72}.reward-tile.not-enough .reward-meter i{background:#bb7456}
@media(min-width:700px){.reward-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.reward-tile{min-height:125px}.reward-name{font-size:.8rem}.reward-icon{font-size:1.65rem}}
@media(max-width:360px){.reward-grid{gap:5px}.reward-tile{min-height:116px;padding:7px 2px}.reward-name{font-size:.65rem}.reward-tile small{font-size:.58rem}}
.balance-pill{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:5px 9px;border-radius:12px;background:#fff0dd;color:#9c4b2a;font-weight:800;font-size:.86rem;white-space:nowrap}
@media(max-width:520px){.top{gap:6px}.top-actions{gap:4px}.brand h1{font-size:1rem}.brand-icon{height:38px;width:38px}.balance-pill{font-size:.76rem;padding:5px 7px}}
.brand{flex:1;min-width:0}.brand-icon{flex:none}.brand>div:last-child{min-width:0}.top-actions{flex:none}
.account-strip{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:-2px 0 10px;padding:5px 8px;background:#fff;border:1px solid #f0e7da;border-radius:13px;min-height:44px}.account-select{min-height:34px;max-width:65%;border:0;background:transparent;color:#4e443b;font-weight:750;padding:4px 6px}.account-strip .balance-pill{min-height:32px;background:#fff0dd}
