:root{--ink:#282a25;--muted:#85877e;--line:#ecebe5;--paper:#f8f7f4;--white:#fff;--sage:#74836c;--sage-dark:#596751;--warm:#d6a477;--serif:Georgia,'Noto Serif SC',serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans','Noto Sans SC',sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}h1,h2,p{margin:0}.hidden{display:none!important}.shell{max-width:1120px;margin:auto;min-height:100vh;padding:0 48px 100px}.topbar{height:84px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.wordmark{font-size:16px;letter-spacing:-.5px;font-weight:700}.wordmark span{color:var(--warm);margin-left:5px}.date-label{font-size:11px;color:var(--muted);margin-top:4px;letter-spacing:.3px}.icon-button{border:1px solid var(--line);background:var(--white);border-radius:50%;width:36px;height:36px;color:var(--muted);font-size:17px}.page{display:none;animation:appear .25s ease}.page.active{display:block}@keyframes appear{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}.greeting{padding:38px 0 22px}.eyebrow{font-size:9px;letter-spacing:1.6px;color:#9b9d93;font-weight:600}.greeting h1,.page-intro h1{font-size:26px;line-height:1.48;letter-spacing:-.6px;margin-top:8px;font-weight:500}.balance-card{position:relative;overflow:hidden;height:222px;border-radius:8px;background:linear-gradient(116deg,#e8e7de 0%,#f2eee4 44%,#e6dbc8 100%);box-shadow:0 10px 30px #37392c0d}.sunlight{position:absolute;inset:0;background:linear-gradient(115deg,transparent 18%,#fff9 38%,#fff2 48%,transparent 66%);opacity:.95}.sunlight:before{content:'';position:absolute;right:9%;top:-44%;width:47%;height:155%;background:linear-gradient(110deg,#fff8,#fff0);transform:rotate(13deg);filter:blur(3px)}.sunlight:after{content:'';position:absolute;right:-4%;bottom:-78px;width:260px;height:190px;background:radial-gradient(ellipse at 50% 100%,#6679525c 0 13%,transparent 14%),radial-gradient(ellipse at 24% 83%,#77836344 0 14%,transparent 15%),radial-gradient(ellipse at 74% 77%,#6d79504a 0 13%,transparent 14%);filter:blur(6px);transform:rotate(-12deg)}.balance-content{position:relative;height:100%;padding:25px 29px;display:flex;flex-direction:column}.balance-label{font-size:12px;color:#666a60}.balance-label span{color:#c9935e}.balance-number{font-size:62px;letter-spacing:-3px;font-weight:500;margin-top:9px;line-height:1.05}.balance-number small{font-size:24px;color:#b48453;vertical-align:top;margin-left:7px;letter-spacing:0}.balance-foot{display:flex;justify-content:space-between;align-items:center;margin-top:auto;font-size:10px;color:#76796e}.balance-spark{font-size:19px;color:#aa986b}.section-block{margin-top:39px}.section-heading,.wish-toolbar{display:flex;align-items:end;justify-content:space-between;margin-bottom:16px}.section-heading h2,.wish-toolbar h2{font-size:17px;letter-spacing:-.3px;font-weight:600;margin-top:4px}.text-button{border:0;background:none;color:#777a71;font-size:11px;padding:5px 0}.text-button span{font-size:15px;margin-left:5px}.featured-card{position:relative;display:grid;grid-template-columns:138px 1fr;min-height:132px;border-radius:7px;overflow:hidden;background:white;border:1px solid #eeede7;cursor:pointer}.featured-card img{width:100%;height:100%;min-height:132px;object-fit:cover;background:#e7e4dc}.featured-info{padding:18px 18px;display:flex;flex-direction:column;align-items:flex-start}.tag{font-size:9px;color:#88907d;background:#f1f2ed;border-radius:20px;padding:5px 8px}.featured-info h3{font-size:15px;font-weight:500;margin-top:10px}.wish-progress{font-size:10px;color:#96988e;margin-top:5px}.progress-track{height:3px;background:#eeeee8;border-radius:5px;width:100%;margin-top:11px}.progress-fill{height:100%;background:#89927c;border-radius:5px}.habit-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.habit-item{display:flex;justify-content:space-between;align-items:center;background:white;border:1px solid var(--line);border-radius:6px;padding:13px 14px}.habit-item strong{display:block;font-size:12px;font-weight:500}.habit-item small{display:block;color:#a0a197;font-size:10px;margin-top:5px}.check-button{width:28px;height:28px;border-radius:50%;border:1px solid #e3e4dc;background:#fff;color:var(--sage);font-size:13px}.check-button.done{background:#7f8b73;color:white;border-color:#7f8b73}.recent-list{border-top:1px solid var(--line)}.recent-row{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:12px 2px;font-size:11px}.recent-row span:last-child{color:var(--sage-dark);font-weight:600}.page-intro{padding:44px 0 27px}.page-intro h1{font-size:27px}.page-intro>p:last-child{font-size:12px;color:var(--muted);margin-top:8px}.grow-heading{margin-top:5px}.task-list{display:flex;flex-direction:column;gap:9px}.task-card{display:flex;align-items:center;gap:13px;background:white;border:1px solid var(--line);border-radius:7px;padding:15px}.task-symbol{display:grid;place-items:center;width:35px;height:35px;flex:none;border-radius:50%;background:#f1f2ee;color:#77836f;font-size:15px}.task-body{flex:1;min-width:0}.task-body h3{font-size:12px;font-weight:500}.task-body p{font-size:10px;color:#9b9d93;margin-top:5px}.task-reward{color:#7a866f;font-size:11px;white-space:nowrap}.task-action{margin-left:3px}.task-action .button{font-size:10px;padding:8px 11px}.sub-heading{margin-top:33px}.round-add{width:31px;height:31px;border:1px solid #dfe1d9;border-radius:50%;background:#fff;font-size:20px;line-height:1;color:#78836f}.gentle-note,.wish-footnote{font-size:10px;color:#999b91;line-height:1.8;margin-top:19px}.wish-toolbar{margin-top:13px}.wish-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.wish-card{background:white;border:1px solid var(--line);border-radius:7px;overflow:hidden}.wish-image{width:100%;height:210px;object-fit:cover;background:#e8e5de;display:block}.wish-card-body{padding:14px}.wish-card-top{display:flex;justify-content:space-between;gap:8px;align-items:start}.wish-card h3{font-size:12px;font-weight:500}.wish-card .price{font-size:10px;color:#a1a197;white-space:nowrap}.wish-meta{font-size:10px;color:#96988f;margin-top:7px}.wish-card .progress-track{margin-top:10px}.wish-card-actions{display:flex;gap:7px;margin-top:13px}.wish-card-actions button{flex:1}.button{border:0;border-radius:4px;padding:11px 15px;font-size:11px;font-weight:600}.button.primary{background:var(--sage-dark);color:white}.button.primary:hover{background:#4c5a45}.button.secondary{background:#f1f1ec;color:#686c62}.button:disabled{opacity:.48;cursor:default}.bottom-nav{position:fixed;z-index:5;bottom:0;left:0;right:0;height:67px;background:#faf9f6f2;backdrop-filter:blur(12px);border-top:1px solid #eae9e3;display:flex;justify-content:center;gap:min(17vw,170px);padding-bottom:env(safe-area-inset-bottom)}.nav-item{width:62px;background:none;border:0;color:#9b9d94;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:9px}.nav-item.selected{color:#586650}.nav-icon{font-size:19px;line-height:1}.login-screen{min-height:100vh;display:grid;place-items:center;padding:22px}.login-card{background:white;border:1px solid var(--line);border-radius:9px;padding:39px;width:min(100%,380px);box-shadow:0 20px 60px #282a250b}.brand-mark{color:#c99764;font-size:24px}.login-card h1{font-size:23px;margin-top:6px}.login-card>.muted{font-size:12px;margin-top:8px}.login-card .eyebrow{margin-top:18px}.field-label{display:block;font-size:10px;color:#777a71;margin:27px 0 7px}input,select{width:100%;border:1px solid #e8e8e1;border-radius:4px;background:#fff;padding:11px 12px;font-size:12px;color:var(--ink);outline:none}input:focus,select:focus{border-color:#aeb6a5}.full{width:100%;margin-top:13px}.muted{color:var(--muted)}.error{min-height:15px;color:#ae604d;font-size:11px;margin-top:10px}.dialog-card{position:relative;border:0;border-radius:8px;padding:30px;width:min(calc(100vw - 40px),440px);box-shadow:0 20px 70px #2224}.dialog-card::backdrop{background:#20221fcc;backdrop-filter:blur(3px)}.dialog-card h2{font-size:20px;margin:7px 0 22px}.dialog-close{position:absolute;right:17px;top:13px;background:none;border:0;font-size:25px;color:#999}.dialog-card label{display:block;font-size:10px;color:#71746b;margin-top:14px}.dialog-card label input,.dialog-card label select{display:block;margin-top:7px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.optional{color:#a7a89f}.confirm-card>p.muted{font-size:12px;line-height:1.7}.confirm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.toast{position:fixed;z-index:10;bottom:83px;left:50%;transform:translate(-50%,10px);background:#30332d;color:white;padding:10px 16px;border-radius:5px;font-size:11px;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}@media(min-width:760px){.greeting{padding-top:55px}.greeting h1{font-size:32px}.balance-card{height:250px}.balance-content{padding:34px 40px}.balance-number{font-size:70px}.today-habits .habit-list{max-width:720px}.section-block{max-width:790px}.page-intro{padding-top:60px}.task-list,.wish-grid{max-width:790px}.wish-grid{grid-template-columns:repeat(3,1fr)}.wish-image{height:255px}#page-today{padding-bottom:30px}}@media(max-width:540px){.shell{padding:0 21px 92px}.topbar{height:72px}.greeting{padding:29px 0 18px}.greeting h1{font-size:22px}.balance-card{height:191px}.balance-content{padding:22px}.balance-number{font-size:54px;margin-top:10px}.section-block{margin-top:30px}.featured-card{grid-template-columns:112px 1fr;min-height:124px}.featured-card img{min-height:124px}.featured-info{padding:14px}.habit-list{grid-template-columns:1fr}.page-intro{padding:33px 0 22px}.page-intro h1{font-size:24px}.wish-grid{gap:9px}.wish-image{height:160px}.wish-card-body{padding:11px}.wish-card-actions{flex-direction:column}.bottom-nav{justify-content:space-evenly;gap:0}}@media(max-width:375px){.shell{padding-left:16px;padding-right:16px}.wish-image{height:135px}.wish-card h3{font-size:11px}}
.image-preview{display:flex;align-items:center;gap:12px;margin-top:10px}.image-preview img{width:76px;height:76px;object-fit:cover;border-radius:5px;background:#eee}.image-preview .text-button{color:#966b54}.wish-card-actions{flex-wrap:wrap}.wish-card-actions button{min-width:calc(50% - 4px)}.task-action{display:flex;align-items:center;gap:8px}.task-action .edit-task{margin:0;font-size:10px}.dialog-card input[type=file]{padding:8px;font-size:10px}.dialog-card label.hidden{display:none}
.wish-balance{margin:0 0 28px}.realized-toolbar{margin-top:35px;padding-top:22px;border-top:1px solid var(--line)}.realized-count{font-size:10px;color:#9b9d93}.wish-card-actions .edit-wish{flex:0 0 auto;min-width:auto;padding:7px 9px;background:transparent;color:#93968d;font-size:9px;font-weight:500;border:1px solid #efeee9}.wish-card-actions .delete-wish{flex:0 0 auto;min-width:auto;padding:7px 9px;background:transparent;color:#a27e72;border:1px solid #f0e8e5;font-size:9px;font-weight:500}.wish-card-actions [data-restore-wish]{flex:1}
.task-more,.wish-more{position:relative;flex:none}.task-more summary,.wish-more summary{list-style:none;cursor:pointer;color:#96988f;border:1px solid #efeee9;border-radius:4px;min-width:28px;height:30px;display:grid;place-items:center;font-size:15px;letter-spacing:1px}.task-more summary::-webkit-details-marker,.wish-more summary::-webkit-details-marker{display:none}.task-more>div,.wish-more>div{position:absolute;right:0;bottom:35px;z-index:4;min-width:88px;padding:4px;background:#fff;border:1px solid var(--line);border-radius:5px;box-shadow:0 6px 18px #2222}.task-more>div button,.wish-more>div button{display:block;width:100%;min-width:0!important;padding:8px 10px;border:0;background:transparent;text-align:left;color:#73766d;font-size:10px}.task-more>div button:hover,.wish-more>div button:hover{background:#f6f5f1}.wish-card-actions{flex-direction:row;align-items:center}.wish-card-actions>button{min-width:0}.wish-card-actions>[data-select]{flex:1 1 auto}.wish-card-actions .grow-wish{padding:8px 9px;background:#f1f1ec;color:#686c62;font-size:10px;white-space:nowrap}.wish-card-actions .redeem-disabled{padding:8px 12px;background:#f1f1ec;color:#a0a197;font-size:10px;white-space:nowrap;cursor:not-allowed}.wish-card-actions>[data-redeem]:not(:disabled){padding:8px 14px;font-size:10px}.wish-card-actions>[data-restore-wish]{flex:1}.task-action{gap:7px}.task-more summary{min-width:26px;width:26px;height:28px}
/* Compact controls and predictable native dialogs */
dialog{border:0;padding:0;background:transparent;outline:none;max-width:calc(100% - 30px);max-height:calc(100% - 30px);overflow:visible}dialog::backdrop{background:#20221fcc;backdrop-filter:blur(3px)}.dialog-card{border:0;outline:none;margin:0}.dialog-card:focus,.dialog-close:focus{outline:none;box-shadow:none}.dialog-close:focus-visible{outline:2px solid #aeb6a5;outline-offset:2px}
.wish-card-actions{display:grid;grid-template-columns:minmax(0,1fr) 34px;gap:8px;align-items:center}.wish-card-actions>[data-select],.wish-card-actions>[data-restore-wish]{grid-column:1;grid-row:1;min-height:38px}.wish-card-actions>.wish-more{grid-column:2;grid-row:1}.wish-card-actions>[data-grow]{grid-column:1;grid-row:2;justify-self:start}.wish-card-actions>[data-redeem]{grid-column:2;grid-row:2;min-width:34px;min-height:34px;padding:7px}.wish-more summary{width:34px;height:38px}.wish-more>div{bottom:43px}.step-controls{display:flex;align-items:center;gap:6px}.step-controls span{min-width:36px;text-align:center;color:#85877e;font-size:10px;font-variant-numeric:tabular-nums}.step-button{width:27px;height:27px;padding:0;display:grid;place-items:center;border:1px solid #e6e7df;border-radius:50%;background:#fff;color:#68745f;font-size:16px;line-height:1}.step-button:disabled{opacity:.35;cursor:default}.task-action{gap:6px}.task-more summary{height:27px}
/* Dialog surfaces stay white above the dimmed page. */
.dialog-card{background:#fff;color:var(--ink)}
/* Wish actions: a full-width selection button, then a tidy three-control row. */
.wish-card-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 34px;grid-template-rows:auto auto;gap:8px}.wish-card-actions>[data-select],.wish-card-actions>[data-restore-wish]{grid-column:1/-1;grid-row:1;width:100%;justify-content:center;font-size:11px;min-height:40px}.wish-card-actions>.wish-more{grid-column:3;grid-row:2}.wish-card-actions>[data-grow]{grid-column:1;grid-row:2;justify-self:stretch;text-align:center;min-width:0;padding:8px 5px}.wish-card-actions>[data-redeem]{grid-column:2;grid-row:2;justify-self:stretch;width:100%;text-align:center;padding:8px 5px}.wish-more summary{width:34px;height:34px}.wish-more>div{bottom:39px}
@media(max-width:540px){.wish-grid{grid-template-columns:1fr}}

/* Soft daylight, warm surfaces, and a little depth without adding visual clutter. */
:root{--paper:#f8f7f3;--line:#eae8df;--sage:#78846f;--sage-dark:#5f6d56;--warm:#d1a071}
body{background:radial-gradient(ellipse at 7% 4%,#fffdf7 0,transparent 36%),radial-gradient(ellipse at 93% 24%,#f1eee4 0,transparent 34%),var(--paper)}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 12% 22%,#fff9 0,transparent 23%),radial-gradient(ellipse at 88% 70%,#e8e3d766 0,transparent 29%)}
.topbar{border-bottom-color:#e6e4dc;background:linear-gradient(90deg,#ffffff55,transparent 75%)}
.icon-button{background:#ffffffb8;box-shadow:0 3px 12px #3537290a;backdrop-filter:blur(8px)}
.balance-card{border:1px solid #ffffff9c;border-radius:11px;background:linear-gradient(116deg,#eeede5 0%,#f6f2e9 47%,#e9decd 100%);box-shadow:0 16px 38px #5d58440f,inset 0 1px #ffffffc9}
.sunlight{background:linear-gradient(112deg,transparent 10%,#fff8 31%,#fff4 44%,transparent 64%),radial-gradient(ellipse at 14% 0%,#fff9 0,transparent 46%);opacity:1}
.sunlight:before{right:8%;top:-52%;width:42%;height:162%;background:linear-gradient(110deg,#fff9,#fff1 62%,transparent);transform:rotate(14deg);filter:blur(5px)}
.sunlight:after{right:-2%;bottom:-84px;width:290px;height:210px;background:radial-gradient(ellipse at 50% 100%,#65744b50 0 12%,transparent 13%),radial-gradient(ellipse at 24% 82%,#87916c3c 0 14%,transparent 15%),radial-gradient(ellipse at 76% 76%,#68794b40 0 13%,transparent 14%),linear-gradient(78deg,transparent 47%,#707b5655 48% 50%,transparent 51%);filter:blur(7px);transform:rotate(-12deg)}
.featured-card,.habit-item,.task-card,.wish-card{border-color:#e9e7df;background:linear-gradient(145deg,#fff 0%,#fffefa 100%);box-shadow:0 7px 22px #4d4a3b08,inset 0 1px #ffffffd9}
.featured-card,.habit-item,.task-card,.wish-card{border-radius:10px}
.featured-card{box-shadow:0 10px 28px #4d4a3b0a,inset 0 1px #ffffffd9;transition:transform .2s ease,box-shadow .2s ease}
.featured-card:hover{transform:translateY(-2px);box-shadow:0 14px 32px #4d4a3b12}
.featured-card img{background:#f0eee8}
.habit-item,.task-card{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.habit-item:hover,.task-card:hover{transform:translateY(-1px);border-color:#deded3;box-shadow:0 10px 24px #4d4a3b0d}
.task-symbol{background:linear-gradient(145deg,#f5f5ef,#eceee7);box-shadow:inset 0 1px #fff}
.wish-card{box-shadow:0 10px 28px #4d4a3b0a,inset 0 1px #ffffffd9;transition:transform .2s ease,box-shadow .2s ease}
.wish-card:hover{transform:translateY(-2px);box-shadow:0 15px 34px #4d4a3b12}
.wish-image{background:#f1efe9}
.tag{background:#f3f4ef;border:1px solid #eaede4}
.button.primary{background:linear-gradient(135deg,#68765f,#56644f);box-shadow:0 4px 12px #5967511c}
.button.primary:hover{background:linear-gradient(135deg,#5f6e56,#4f5e49);box-shadow:0 6px 15px #59675130}
.button.secondary{background:linear-gradient(145deg,#f5f5f0,#eeefe9);border:1px solid #ecece5}
.round-add{box-shadow:0 3px 12px #4d4a3b0a;background:#ffffffc9;backdrop-filter:blur(8px)}
.bottom-nav{background:#fbfaf7d9;backdrop-filter:blur(18px) saturate(125%);border-top-color:#e8e6de;box-shadow:0 -5px 24px #403e3108}
.login-card,.dialog-card{box-shadow:0 24px 72px #27291d12,0 3px 12px #27291d08}
@media(prefers-reduced-motion:reduce){.featured-card,.habit-item,.task-card,.wish-card{transition:none}.featured-card:hover,.habit-item:hover,.task-card:hover,.wish-card:hover{transform:none}}
.greeting-banner{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;min-height:248px;margin:29px 0 34px;border:1px solid #e8e5da;border-radius:12px;background:#f2eee4;box-shadow:0 13px 34px #514c3c12,inset 0 1px #ffffffd9}
.greeting-banner>img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:58% 52%}
.greeting-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#fffdf5f2 0%,#fffdf5e8 32%,#fffdf5aa 52%,#fffdf53d 72%,transparent 100%),linear-gradient(0deg,#6d63420c,transparent 54%)}
.greeting-copy{padding:34px 40px;max-width:650px}
.greeting-copy .eyebrow{color:#858b7c}
.greeting-copy h1{font-size:clamp(25px,3.2vw,36px);line-height:1.48;letter-spacing:-.8px;margin-top:11px;font-weight:500;text-shadow:0 1px 12px #fff9}
@media(max-width:540px){.greeting-banner{min-height:204px;margin:22px 0 28px;border-radius:10px}.greeting-banner>img{object-position:55% center}.greeting-shade{background:linear-gradient(90deg,#fffdf5f2 0%,#fffdf5e8 39%,#fffdf5a8 70%,#fffdf542 100%)}.greeting-copy{padding:25px 22px}.greeting-copy h1{font-size:24px;line-height:1.48;margin-top:9px;letter-spacing:-.6px}}
.greeting-banner{display:block;min-height:282px;margin-top:30px;padding:0}
.greeting-banner>img{object-position:61% center}
.greeting-shade{background:linear-gradient(90deg,#fffdf7f6 0%,#fffdf7ef 34%,#fffdf7c4 52%,#fffdf75c 70%,#fffdf51a 100%)}
.banner-topline{position:absolute;top:22px;left:32px;right:30px;z-index:1;display:flex;justify-content:space-between;align-items:center}
.banner-topline .wordmark{font-size:18px;letter-spacing:-.55px}
.banner-topline .wordmark span{font-size:19px;color:#c89765}
.banner-topline .date-label{font-size:11px;margin-top:5px;color:#777b70}
.greeting-copy{max-width:680px;padding:96px 38px 25px}
.greeting-copy h1{font-size:clamp(25px,3.1vw,35px);margin-top:8px}
.banner-description{font-size:12px;color:#73786c;margin-top:8px;line-height:1.6;text-shadow:0 1px 10px #fff9}
.greeting-banner .icon-button{width:35px;height:35px;background:#ffffffb8;border-color:#ffffffc9;box-shadow:0 3px 14px #46513a12}
@media(max-width:540px){.greeting-banner{min-height:252px;margin-top:19px;margin-bottom:28px}.greeting-banner>img{object-position:61% center}.greeting-shade{background:linear-gradient(90deg,#fffdf7f5 0%,#fffdf7ec 40%,#fffdf7b8 67%,#fffdf548 100%)}.banner-topline{top:18px;left:20px;right:18px}.banner-topline .wordmark{font-size:17px}.greeting-copy{padding:92px 22px 22px}.greeting-copy h1{font-size:23px;line-height:1.45;margin-top:7px}.banner-description{font-size:11px;margin-top:7px;max-width:300px}}
@media(max-width:375px){.greeting-banner{min-height:250px;margin-top:16px}.banner-topline{left:17px;right:16px}.greeting-copy{padding:90px 18px 20px}.greeting-copy h1{font-size:22px}.banner-description{max-width:280px}}
.greeting-banner{min-height:240px}
.greeting-copy{padding-top:88px;padding-bottom:18px}
.banner-description{display:none}
.wish-balance{border:1px solid #e9dfc9;background:linear-gradient(118deg,#fbf8ef 0%,#fffdf8 37%,#f5eddb 72%,#ead9b9 100%);box-shadow:0 17px 40px #92734318,inset 0 1px #ffffff}
.wish-balance .sunlight{background:radial-gradient(ellipse at 79% 25%,#fff9 0,transparent 30%),linear-gradient(116deg,#fffdf8 0%,#fbf7ec 48%,#efe2c8 100%)}
.wish-balance .sunlight:before{right:5%;top:-54%;width:50%;height:174%;background:linear-gradient(110deg,transparent 20%,#fff5 42%,#e8d39b45 53%,#fff8 64%,transparent 78%);transform:rotate(13deg);filter:blur(7px)}
.wish-balance .sunlight:after{content:'✦';right:12%;top:16%;bottom:auto;width:auto;height:auto;background:none;filter:none;transform:rotate(8deg);font-family:Georgia,serif;font-size:30px;color:#c8a45f8a;text-shadow:42px 72px 0 #d2b47766,-52px 125px 0 #c8a45f55,18px 165px 0 #d2b47755}
.wish-balance .balance-label span,.wish-balance .balance-number small{color:#b88b4b}
.wish-balance .balance-spark{color:#b99859;text-shadow:0 0 12px #d8bd7c7a}
@media(max-width:540px){.greeting-banner{min-height:216px}.greeting-copy{padding:84px 22px 16px}}
@media(max-width:375px){.greeting-banner{min-height:212px;margin-top:16px}.greeting-copy{padding:82px 18px 16px}}
.wish-balance{background:#f2f0e8;border-color:#e8e6de;box-shadow:0 14px 34px #4d4a3b12,inset 0 1px #ffffff}
.balance-photo{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;object-position:85% 52%}
.wish-balance .sunlight{z-index:1;background:linear-gradient(90deg,#fffdf5dc 0%,#fffdf5c8 34%,#fffdf591 58%,#fffdf548 82%,#fffdf52b 100%)}
.wish-balance .sunlight:before,.wish-balance .sunlight:after{content:none}
.wish-balance .balance-content{z-index:2}
.wish-balance .balance-label span,.wish-balance .balance-number small{color:#b18a54}
.wish-balance .balance-spark{color:#8b927d;text-shadow:0 0 10px #fff9}
.greeting-banner>img{object-position:90% center}
.greeting-copy{padding-left:32px;padding-right:32px}
@media(max-width:540px){.greeting-copy{padding-left:20px;padding-right:20px}}
@media(max-width:375px){.greeting-copy{padding-left:17px;padding-right:17px}}
.nav-item{gap:3px;font-size:9px;letter-spacing:.15px}
.nav-icon{width:35px;height:31px;display:grid;place-items:center;border-radius:11px;transition:background .2s ease,box-shadow .2s ease,transform .2s ease}
.nav-icon svg{display:block;width:25px;height:25px;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.nav-item.selected .nav-icon{background:linear-gradient(145deg,#f5f5ee,#ecefe7);box-shadow:inset 0 1px #fff,0 3px 9px #5059430c;transform:translateY(-1px)}
.nav-icon .nav-accent{fill:#c99a63;stroke:#fffdf7;stroke-width:.55}
.nav-icon .nav-accent-stroke{fill:none;stroke:#c99a63;stroke-width:1.5}
.banner-actions{display:flex;align-items:center;gap:12px}.banner-actions .text-button{font-size:11px;color:#697264;padding:7px 0;white-space:nowrap}
/* Keep every page section inside narrow phone viewports. */
html,body{width:100%;max-width:100%;overflow-x:hidden}
#app,.shell,.page,.section-block,.section-heading,.wish-toolbar,.featured-card,.habit-list,.habit-item{min-width:0;max-width:100%}
.featured-card{grid-template-columns:112px minmax(0,1fr)}
.featured-info{min-width:0}
.featured-info h3,.wish-progress,.habit-item strong{max-width:100%;overflow-wrap:anywhere}
.section-heading>div,.wish-toolbar>div{min-width:0}
.section-heading .text-button{flex:none;white-space:nowrap}
img{max-width:100%}
@media(max-width:540px){.featured-card{grid-template-columns:minmax(92px,30%) minmax(0,1fr)}.featured-info{padding:12px}.featured-info h3{font-size:14px}.wish-progress{font-size:9px}.section-heading h2,.wish-toolbar h2{font-size:16px}.greeting-banner{max-width:100%}}
/* Anchor the sign-in surface to the visible phone viewport and safe areas. */
#login.login-screen{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;width:100%;height:100vh;height:100dvh;min-height:0;padding:calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
#login .login-card{flex:0 1 380px;width:100%;max-width:380px;min-width:0;max-height:100%;overflow-y:auto;margin:auto;padding:clamp(24px,7vw,39px)}
#login .login-card input,#login .login-card button{max-width:100%;min-width:0}
#login .login-card .full{min-height:44px}
/* Refined task marks, calmer wish artwork, and a shorter phone navigation bar. */
.task-symbol{color:#9a8b70;background:#f6f3ec;box-shadow:inset 0 1px #fff}
.task-symbol svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
#page-wishes .balance-label span,#page-wishes .balance-number small,#page-wishes .balance-spark{display:none}
.wish-balance .sunlight:after{content:none}
.wish-image{height:188px;object-fit:contain;background:#fff;padding:8px}
.bottom-nav{height:calc(58px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}
@media(max-width:540px){.wish-image{height:124px;padding:6px}.bottom-nav{height:calc(56px + env(safe-area-inset-bottom))}.shell{padding-bottom:78px}}
@media(max-width:375px){.wish-image{height:112px}}
/* Prevent iOS input-focus zoom and keep wish forms inside the visual viewport. */
@media(max-width:540px){
  input,select{font-size:16px}
  dialog#wish-dialog{position:fixed;top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);margin:0;width:calc(100vw - 24px);max-width:440px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;border-radius:10px}
  #wish-dialog .dialog-card{width:100%;max-width:none;max-height:none;overflow:visible;padding:24px 20px}
  #wish-dialog .field-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
  #wish-dialog input,#wish-dialog select{min-width:0;min-height:48px;font-size:16px}
  #wish-dialog input[type=file]{font-size:16px;padding:10px}
  #wish-dialog .field-row label{min-width:0}
}
.growth-heading-actions{display:flex;align-items:center;gap:12px}
.growth-heading-actions .text-button{padding:8px 4px;color:#68745f}
.backfill-note{font-size:11px;line-height:1.7;margin-top:14px}
/* Rebalance product imagery and make wish saves visibly single-shot. */
.wish-image{height:210px;object-fit:cover;background:#f3f2ee;padding:0}
#wish-form [type=submit]:disabled{opacity:.72;cursor:wait}
#wish-error{min-height:16px}
@media(max-width:540px){.wish-image{height:150px;object-fit:cover;padding:0}}
@media(max-width:375px){.wish-image{height:140px}}
/* Keep wish photos compact on phones and optically center the add glyph. */
.wish-image{height:184px;object-fit:cover;padding:0}
.round-add{display:inline-grid;place-items:center;padding:0;line-height:1;font-family:Arial,sans-serif;font-size:21px;vertical-align:middle}
.round-add::first-line{line-height:1}
@media(max-width:540px){.wish-image{height:128px}}
@media(max-width:375px){.wish-image{height:120px}}
/* Wish product photos use a square frame and preserve the uploaded image ratio. */
.wish-image{width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;background:#fff;padding:8px}
/* Keep wish cards two across on both phone and desktop layouts. */
.wish-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
/* Tighten wish card rhythm and improve the small home habit text. */
.wish-card-body{padding:10px}
.wish-meta{margin-top:5px}
.wish-card .progress-track{margin-top:7px}
.wish-card-actions{margin-top:9px;gap:6px}
.wish-card-actions .button{padding:8px 4px;font-size:10px;white-space:nowrap}
.habit-item strong{font-size:13px}
.habit-item small{font-size:11px}
/* Restore compact task actions on phones so titles retain their own space. */
@media(max-width:540px){
  .task-card{display:grid;grid-template-columns:35px minmax(0,1fr) auto auto;gap:10px;padding:13px 12px}
  .task-body{min-width:0}
  .task-body h3{font-size:12px;line-height:1.45}
  .task-reward{font-size:10px}
  .task-action{display:flex;align-items:center;gap:9px;margin-left:0}
  .task-action .button{flex:0 0 auto;min-width:0;min-height:0;padding:8px 9px;font-size:10px;line-height:1.2}
  .task-more{flex:none}
  .task-more summary{width:28px;min-width:28px;height:30px}
  .task-card .check-button{width:28px;height:28px;padding:0;font-size:13px;line-height:normal}
}
/* Center the check indicator geometrically and give adjacent actions safer spacing. */
