
:root{font-family:-apple-system,BlinkMacSystemFont,'Noto Sans TC',sans-serif;color:#234b53;background:#e8f5f5}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(155deg,#cfeef9,#f8f5e9 55%,#d9f4df)}button,input,select{font:inherit}button{cursor:pointer;border:0}.app{max-width:1180px;margin:auto;padding:20px 22px 90px}.header{display:flex;justify-content:space-between;align-items:center;gap:12px}.brand{font-size:clamp(22px,3vw,34px);font-weight:900}.sub{color:#6d9093;font-size:14px}.btn{background:#fff;border:1px solid #c9e3df;border-radius:18px;padding:12px 18px;color:#285c62;font-weight:700;box-shadow:0 3px 8px #8cb5b321}.primary{background:#42b897;color:white;border-color:#42b897}.danger{color:#c96969}.pill{border-radius:99px}.panel{background:#ffffffdd;border:1px solid #fff;border-radius:27px;padding:22px;box-shadow:0 8px 30px #80b6b52b}.hero{margin:20px 0;display:flex;align-items:center;gap:16px;background:linear-gradient(105deg,#e0f5ef,#fdf9eb);border-radius:26px;padding:16px}.avatar{width:72px;height:72px;border-radius:50%;background:#f5dba7;object-fit:cover;border:4px solid white;display:grid;place-items:center;font-size:38px;overflow:hidden}.avatars{display:flex;gap:12px;flex-wrap:wrap}.child{display:flex;align-items:center;gap:10px;padding:8px 15px 8px 8px;border-radius:25px;background:#ffffffb8;border:2px solid transparent}.child.active{border-color:#45bda1;background:#fff}.child .avatar{width:53px;height:53px;font-size:28px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.task{min-height:166px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;border:2px solid #e5eeea;background:#fffdf7;border-radius:24px;padding:12px;position:relative;text-align:center}.task .emoji{font-size:50px}.task .name{font-size:19px;font-weight:800}.task.done{opacity:.48;filter:grayscale(.25)}.tick{position:absolute;top:12px;right:12px;background:#e5f5ef;border-radius:50%;width:30px;height:30px;display:grid;place-items:center}.task.done .tick{background:#36b57c;color:#fff}.layout{display:grid;grid-template-columns:1fr 310px;gap:20px}.stat{font-size:36px;font-weight:900;color:#e8a320}.row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.line{padding:14px 0;border-bottom:1px solid #e8eeeb}.line:last-child{border-bottom:0}.nav{position:fixed;bottom:0;left:0;right:0;background:#ffffffed;backdrop-filter:blur(15px);display:flex;justify-content:center;gap:10px;padding:10px env(safe-area-inset-right) calc(10px + env(safe-area-inset-bottom)) env(safe-area-inset-left);box-shadow:0 -5px 25px #789e9d22}.nav button{background:transparent;border-radius:14px;padding:10px 18px;color:#54787a;font-weight:800}.nav button.active{background:#d9f4e9;color:#138969}h2{font-size:22px;margin:0 0 14px}h3{margin:10px 0}.muted{color:#78999a}.hidden{display:none!important}.field{padding:12px;border-radius:12px;border:1px solid #c8dfdb;width:100%;background:white}.modalbg{position:fixed;inset:0;background:#20414b85;display:grid;place-items:center;padding:20px;z-index:5}.modal{background:white;border-radius:25px;padding:25px;max-width:420px;width:100%;max-height:90vh;overflow:auto}.stack{display:grid;gap:12px}.notice{background:#fff4db;padding:12px;border-radius:14px;color:#846728;font-size:14px}.small{font-size:13px}.preview{width:55px;height:55px;object-fit:cover;border-radius:50%}@media(max-width:760px){.app{padding:16px 14px 95px}.layout{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.task{min-height:145px}.task .emoji{font-size:42px}.task .name{font-size:16px}.nav{gap:0}.nav button{padding:10px 12px;font-size:13px}.panel{padding:16px}.brand{font-size:23px}.hero{flex-wrap:wrap}}@media(min-width:900px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width: 761px) and (max-height: 850px){.app{padding-top:12px}.hero{margin:12px 0;padding:10px 16px}.task{min-height:135px}.task .emoji{font-size:42px}.panel{padding:18px}}
button:focus-visible,input:focus-visible{outline:3px solid #188c80;outline-offset:3px}button:disabled{opacity:.5;cursor:not-allowed}.nav{z-index:3}.nav button{min-height:44px} .task.done{opacity:1;background:#effaf4}.task.done .name{color:#476c64}
.code{overflow-wrap:anywhere;user-select:all}.field{margin-top:6px}button:disabled{opacity:.7}.task:disabled{cursor:default}.child .avatar{flex-shrink:0}@media(max-width:500px){.header{align-items:flex-start}.header .btn{padding:9px}.header>div:last-child{display:flex;flex-direction:column;gap:4px}.hero{margin:12px 0}.child{padding-right:8px}.child .avatar{width:44px;height:44px}}
.narrow{max-width:620px;margin:24px auto}.child-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:18px}.child-choice{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#fffdf7;border:2px solid #d9efea;border-radius:26px;color:#285c62;font-size:22px}.child-choice .avatar{width:100px;height:100px;font-size:54px}.child-choice:focus-visible{outline:3px solid #188c80}.header-actions{display:flex;gap:8px}.code{font-family:monospace;font-size:18px;overflow-wrap:anywhere;user-select:all;background:#fff4db;padding:16px;border-radius:14px}@media(max-width:500px){.child-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.child-choice{min-height:170px;font-size:18px}.child-choice .avatar{width:76px;height:76px;font-size:42px}.header-actions{flex-direction:column}.nav button{padding:10px 7px}}
.task{touch-action:manipulation}.task.done{background:#e6f8ed;opacity:.78;animation:task-complete .35s ease-out}.task.done .tick{background:#36b57c;color:#fff}.task.saving{cursor:wait}@keyframes task-complete{0%{transform:scale(1)}45%{transform:scale(1.045)}100%{transform:scale(1)}}@media(prefers-reduced-motion:reduce){.task.done{animation:none}}
/* Reference-inspired sky, garden and soft cream panels */
body{background:#dff2f5;color:#243f42}.app{max-width:1180px;padding-top:0}.header{padding:20px 16px 14px;min-height:105px;background:linear-gradient(90deg,#d7f1fae8,#eaf7ed75),url('garden-hero.png') center 48%/cover;border-radius:0 0 28px 28px}.brand{font-size:clamp(22px,2.8vw,31px);color:#183c48}.sub{color:#526c6d}.header-actions .btn{background:#ffffffdf}.hero{background:linear-gradient(90deg,#e0f6f3e8,#f9f8e8dc),url('garden-hero.png') center 72%/cover;border:1px solid #fff;box-shadow:0 5px 18px #87bdb32c;margin:12px 0}.panel{background:#fffef9f2;border:2px solid #fff;border-radius:25px;box-shadow:0 5px 16px #638f9030}.task{background:linear-gradient(145deg,#fffefa,#faf8ed);border:1px solid #e5e2d8;box-shadow:0 3px 7px #89a99b24;min-height:145px}.task .emoji{filter:drop-shadow(0 4px 2px #b6a8814a);font-size:48px}.task .name{color:#2f3733}.task.done{background:#e9f7e8}.task .tick{border:1px solid #bed1c8}.child-picker{max-width:700px;margin:auto}.child-choice{background:#ffffffd9}.parent-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:14px}.progress-content{display:flex;align-items:center;gap:28px}.progress-ring{height:112px;width:112px;border-radius:50%;background:conic-gradient(#5fc7a2 var(--percent),#d9ebea 0);display:grid;place-items:center;flex:none}.progress-ring b{display:grid;place-items:center;height:88px;width:88px;border-radius:50%;background:#fffefa;font-size:25px}.weekly{display:flex;align-items:center;gap:16px;background:linear-gradient(90deg,#f4f9dd,#e1f6ef);padding:12px 18px}.weekly h3,.weekly p{margin:3px}.weekly>span{font-size:36px}.quick-links{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.quick-links button{border-radius:20px;background:#fffef4;border:2px solid white;font-size:28px;color:#34574c;min-height:95px;box-shadow:0 4px 12px #79a99824}.quick-links span{display:block;font-size:14px;font-weight:800}.wallet-hero{background:linear-gradient(100deg,#fff8d8,#e9f8ec);border-radius:22px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:24px}.wallet-hero strong{font-size:48px;color:#d99917}.growth-summary{display:flex;gap:12px}.growth-summary>div{flex:1;background:#eaf7ee;border-radius:18px;padding:18px}.growth-summary b,.growth-summary span{display:block}.growth-summary b{font-size:28px;color:#258d6b}.bars{height:190px;display:flex;gap:10px;align-items:end;padding:12px 0}.bars>div{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:5px}.bars i{width:min(34px,70%);background:linear-gradient(#b1e995,#54be85);border-radius:8px 8px 2px 2px}.bars small{font-size:10px;white-space:nowrap}.nav{max-width:1180px;margin:auto;border-radius:22px 22px 0 0}.nav button{font-size:14px}.header-actions .btn{min-height:44px}@media(max-width:760px){.app{padding-left:10px;padding-right:10px}.header{padding:15px 10px;min-height:100px}.parent-grid{grid-template-columns:1fr}.hero{padding:10px}.quick-links button{min-height:82px}.task{min-height:125px}.task .emoji{font-size:38px}.task .name{font-size:15px}.progress-ring{height:95px;width:95px}.progress-ring b{width:75px;height:75px}.nav button{font-size:12px;padding:9px 6px}.header-actions .btn{font-size:12px;padding:8px}.header-actions{flex-direction:column}.wallet-hero strong{font-size:40px}}
.header{background:linear-gradient(90deg,#e2f5f9bd,#eaf7ed33),url('garden-hero.png') center 53%/cover}.hero{background:linear-gradient(90deg,#e8f9f1cc,#f9f9e9a8),url('garden-hero.png') center 71%/cover}@media(max-width:500px){.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.task{min-height:112px;padding:6px 3px;gap:4px}.task .emoji{font-size:32px}.task .name{font-size:13px}.task .small{font-size:10px}.tick{top:5px;right:5px;width:23px;height:23px}.hero{flex-wrap:nowrap;gap:8px}.hero .btn{font-size:11px;padding:8px}.hero .avatar{width:52px;height:52px;font-size:27px;flex:none}.hero h2{font-size:16px;margin:0 0 4px}.hero .muted{font-size:12px;margin:0}.child-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}
.task-art{display:block;width:82px;height:82px;flex:none;background-image:url('task-illustrations.png');background-repeat:no-repeat;background-size:300% 200%;filter:drop-shadow(0 3px 2px #bda77730)}.art-0{background-position:0% 0%}.art-1{background-position:50% 0%}.art-2{background-position:100% 0%}.art-3{background-position:0% 100%}.art-4{background-position:50% 100%}.art-5{background-position:100% 100%}.custom-art{display:grid;place-items:center;background-image:none;color:#edb33b;font-size:60px;text-shadow:0 3px #fff6cf}@media (min-width:800px) and (orientation:landscape){.app{max-width:1250px;padding:0 22px 88px}.header{min-height:104px}.hero{margin:10px 0;padding:10px 18px}.layout{grid-template-columns:minmax(0,1fr) minmax(245px,28%);gap:16px;align-items:stretch}.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.task{min-height:180px}.task-art{width:100px;height:100px}.parent-grid{grid-template-columns:minmax(260px,.9fr) minmax(0,1.4fr)}}@media(max-width:500px){.task-art{width:58px;height:58px}.custom-art{font-size:43px}}
