
:root{font-family:Arial,sans-serif;color:#422b20;background:#fff8ef;font-size:18px}*{box-sizing:border-box}body{margin:0}button{font:inherit;cursor:pointer;touch-action:manipulation;min-height:56px;border:1px solid #d9b79c;border-radius:14px;background:white;color:#422b20;padding:12px 20px}button:focus-visible{outline:4px solid #39704c;outline-offset:3px}button:disabled{cursor:default;opacity:.75}.notice{background:#ffe4c2;color:#75401d;padding:12px 24px;text-align:center;font-size:15px}.wrap{max-width:1080px;margin:auto;padding:32px}header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:32px}.brand{font-size:14px;letter-spacing:2px;text-transform:uppercase;color:#39704c}h1{font-size:36px;margin:10px 0}p{line-height:1.5}#week-range{color:#39704c}.sub{color:#765642;margin:0}.people{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}.people button[aria-pressed=true],nav button[aria-pressed=true]{background:#ed8b34;color:#38200f;border-color:#d57827}.hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#e9f0e2;padding:26px;border-radius:22px;margin-bottom:26px}.hero h2{font-size:28px;margin:0 0 8px}.earn{text-align:right;min-width:145px}.earn strong{font-size:32px;display:block}.earn span{font-size:14px}nav{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.section-head{display:flex;justify-content:space-between;align-items:baseline}.section-head h2{font-size:24px}.section-head span{font-size:15px;color:#765642}.card{display:flex;align-items:center;gap:18px;background:white;border:1px solid #ead3bf;border-radius:18px;padding:22px;margin-bottom:14px}.symbol{width:48px;height:48px;background:#e9f0e2;color:#39704c;border-radius:50%;display:grid;place-items:center;font-size:23px;flex-shrink:0}.details{flex:1;min-width:0}.claim-label{color:#39704c;font-weight:700}.details h3{font-size:20px;margin:0 0 7px}.details p{font-size:15px;margin:0;color:#765642}.action{background:#ed8b34;color:#38200f;border-color:#d57827;min-width:145px}.done{background:#f9e6d2;color:#784321;border-color:#e2bea0}.paid{background:#e9f0e2;color:#39704c;border-color:#bacdb0}.hold-undo{opacity:.75;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none}.hold-undo.holding{opacity:1;outline:3px solid #39704c}.chore-form{background:white;border:1px solid #ead3bf;border-radius:18px;padding:24px;max-width:700px}.chore-form label{display:block;font-weight:bold;margin:0 0 8px}.chore-form input,.chore-form textarea{display:block;width:100%;font:inherit;padding:14px;border:1px solid #b6bfae;border-radius:10px;margin-bottom:22px;min-height:56px;color:#422b20;background:#fffdf9}.chore-form textarea{min-height:110px;resize:vertical}.chore-form input:focus,.chore-form textarea:focus{outline:3px solid #39704c;outline-offset:2px}.form-help{color:#765642;font-size:16px}.form-actions{display:flex;gap:12px;flex-wrap:wrap}.amount{font-weight:bold;margin-right:10px}.empty{padding:28px;background:white;border-radius:18px}.footer{font-size:14px;color:#765642;margin-top:28px}.status{min-height:28px;margin:12px 0;color:#39704c;font-weight:bold}@media(max-width:650px){.wrap{padding:20px}header{align-items:flex-start}h1{font-size:29px}.hero{align-items:flex-start;padding:20px}.hero h2{font-size:23px}.earn{min-width:100px}.card{flex-wrap:wrap;padding:18px}.card .action{width:100%}.symbol{display:none}.people button{flex:1}nav button{flex:1}.section-head{display:block}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

[hidden]{display:none!important}.toolbar{display:flex;gap:12px;flex-wrap:wrap}.totals{display:flex;gap:16px;flex-wrap:wrap}.totals article{background:#e9f0e2;border-radius:16px;padding:20px;flex:1}.totals strong{font-size:28px;display:block}.error{color:#973600}.muted{opacity:.7}.chore-form select{font:inherit;padding:14px;min-height:56px;max-width:100%;margin-bottom:20px}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions button{min-width:100px}dialog{max-width:620px;width:90%;border:1px solid #d9b79c;border-radius:18px;padding:24px}dialog::backdrop{background:#38200f66}#pending{background:#ffe4c2;border-radius:14px;padding:18px;margin:20px 0}input,select,textarea{max-width:100%}
.chore-form .day-check{display:inline-block;width:28px;height:28px;min-height:28px;margin:0 12px 0 0;vertical-align:middle}.chore-form fieldset{border:1px solid #bacdb0;border-radius:12px;margin-bottom:20px}.chore-form fieldset label{padding:6px}

nav .parents-tab{margin-left:auto;background:#e9f0e2;color:#39704c;border-color:#bacdb0;flex:0 0 auto}.parent-controls{display:flex;flex-wrap:wrap;gap:14px}

.parent-tools{margin-top:64px;padding:28px;border-top:2px solid #bacdb0;background:#f0f4eb;border-radius:18px}.parent-tools h3{margin:0 0 24px;color:#39704c;font-size:20px}.parent-tools .toolbar{gap:24px;align-items:center}.parent-tools .toolbar a{display:inline-flex;align-items:center;min-height:56px;padding:12px 20px;border:1px solid #bacdb0;border-radius:14px;background:white;color:#39704c;text-decoration:none}.parent-tools #logout{margin-left:auto}.parent-controls{gap:24px;margin-bottom:24px}@media(max-width:650px){.parent-tools{margin-top:48px;padding:24px}.parent-tools .toolbar{display:grid;grid-template-columns:1fr;gap:24px}.parent-tools #logout{margin-left:0}.parent-tools .toolbar a{justify-content:center}}

/* Quiet depth and consistent surfaces; all touch targets retain their size. */
:root{background:#fff8ef;color:#3e3027;font-family:Arial,sans-serif}
body{min-height:100vh;background:linear-gradient(145deg,#fffaf4 0%,#fff5e8 60%,#f6f6ed 100%)}
h1,h2,h3{letter-spacing:-.025em}h1{line-height:1.2}.brand{font-weight:700}
button,.parent-tools .toolbar a{background:linear-gradient(180deg,#fffefd,#fffaf4);border-color:#d9c9b9;box-shadow:0 1px 2px #50331a08,inset 0 1px 0 #ffffff;transition:background-color .16s ease,box-shadow .16s ease,transform .12s ease}
button:active:not(:disabled):not(.hold-undo){transform:translateY(1px);box-shadow:inset 0 2px 3px #50331a12}
.people button[aria-pressed=true],nav button[aria-pressed=true],.action{background:linear-gradient(180deg,#f49a43 0%,#eb832b 100%);border-color:#ce7124;color:#38200f;box-shadow:0 3px 7px #ac59131a,inset 0 1px 0 #ffbd76}
nav{gap:12px;padding-bottom:6px}nav button[aria-pressed=true]{font-weight:700}
nav .parents-tab{background:linear-gradient(180deg,#f0f5e9,#e5eedc);border-color:#bccdb2;color:#355e40}
.hero{background:linear-gradient(120deg,#edf4e4,#e0ebd5);border:1px solid #d8e3cd;box-shadow:inset 0 1px 0 #ffffffb3,0 5px 16px #49613a08;padding:28px}
.hero h2{color:#2e422e}.earn strong{font-size:36px;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:#304c35}.earn span{color:#4c6148}
.card,.chore-form,.empty{background:linear-gradient(120deg,#fffefd,#fffcf7);border:1px solid #e8ddce;box-shadow:0 2px 3px #59381604,0 5px 16px #59381606}
.card{padding:24px;margin-bottom:16px}.details h3{line-height:1.35}.details p{line-height:1.55;color:#766353}
.symbol{background:linear-gradient(145deg,#eff5e8,#e3eddb)}
.done,.paid,.hold-undo{box-shadow:none}.done{background:#f2e9df;border-color:#e3d7ca;color:#786a5d}.paid{background:#e9eee4;border-color:#d0dcc8;color:#4d6650}
.totals article{background:linear-gradient(135deg,#edf4e5,#e3edda);border:1px solid #d8e3cd;box-shadow:inset 0 1px 0 #ffffffa6}.totals strong,.amount{font-variant-numeric:tabular-nums}
.parent-tools{background:linear-gradient(130deg,#f0f5ea,#e9efdf);border:1px solid #d3dfc9;box-shadow:inset 0 1px 0 #ffffffa6}.parent-tools .toolbar a{border-color:#c4d0bb}
.chore-form input,.chore-form textarea,.chore-form select{border:1px solid #c5ccbe;border-radius:10px;background:#fffefb;box-shadow:inset 0 1px 2px #39452e08}
dialog{background:#fffaf4;box-shadow:0 20px 70px #38200f33}.notice{background:#fbe3c4;border-bottom:1px solid #eed7b9}
@media(hover:hover){button:hover:not(:disabled):not(.hold-undo),.parent-tools .toolbar a:hover{box-shadow:0 3px 9px #50331a14,inset 0 1px 0 #ffffff80}}
@media(max-width:650px){.hero{padding:20px}.card{padding:18px}.earn strong{font-size:30px}}
@media(prefers-reduced-motion:reduce){button,.parent-tools .toolbar a{transition:none}button:active:not(:disabled):not(.hold-undo){transform:none}}

/* Delicate botanical linework stays behind opaque reading surfaces. */
body{background-image:url('/nature-texture.svg'),linear-gradient(145deg,#fffaf4 0%,#fff5e8 60%,#f6f6ed 100%);background-repeat:repeat,no-repeat;background-size:560px 480px,100% 100%}

.routine-icon{width:52px;height:52px;flex:0 0 52px;display:grid;place-items:center;border-radius:50%;background:#edf2e5;color:#55734d;border:1px solid #dce6d2;box-shadow:inset 0 1px 0 #ffffffb3}
.routine-icon svg{width:31px;height:31px;display:block}
.icon-chores{background:#fff0de;color:#aa6a2c;border-color:#f0dfc7}
.icon-self-care{background:#f8eae2;color:#ab7058;border-color:#eddbcf}
.icon-pets{background:#f0eee1;color:#807648;border-color:#e3dfc9}
@media(max-width:650px){.routine-icon{width:42px;height:42px;flex-basis:42px;border-radius:50%}.routine-icon svg{width:27px;height:27px}}

/* Slightly richer category colors, kept soft against the cream surfaces. */
.icon-learning{background:#dcebcf;color:#436b36;border-color:#bdd3ab}
.icon-self-care{background:#f4d9d4;color:#a34e49;border-color:#e4b9b2}
.icon-chores{background:#dce9f2;color:#426c8d;border-color:#b7cfdf}
.icon-pets{background:#f7e9b7;color:#957321;border-color:#e5d18c}
.icon-wet{background:#d6edea;color:#367d79;border-color:#acd2cd}
.icon-tidy{background:#e8def1;color:#80609d;border-color:#cebbdf}
.icon-food{background:#f8dfc2;color:#a66a30;border-color:#e5c39b}

/* Softer pumpkin accent and an easy-to-scan reward beside the action. */
.people button[aria-pressed=true],nav button[aria-pressed=true],.action{background:linear-gradient(180deg,#f2b273 0%,#eaa062 100%);border-color:#cf935c;color:#422b20;box-shadow:0 2px 6px #ac591312,inset 0 1px 0 #ffd0a2}
.chore-payment{display:flex;align-items:center;gap:24px;flex-shrink:0}
.chore-price{font-size:20px;font-weight:700;line-height:1.35;letter-spacing:-.025em;color:#3e3027;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:650px){.chore-payment{width:100%;justify-content:space-between;gap:16px}.chore-payment .actions{justify-content:flex-end}.chore-payment .action{width:auto}}

.totals{align-items:stretch}
.totals article{display:flex;align-items:center;padding:18px 20px;min-width:180px}
.totals .total-owed{flex:1.7;justify-content:space-between;gap:20px}
.total-summary{flex-shrink:0}.total-summary strong{margin-top:4px}
.total-owed .action{white-space:nowrap;min-width:0}
@media(max-width:650px){.totals{gap:12px}.totals article{min-width:140px}.totals .total-owed{flex-basis:100%}}

/* Preserve the breathing room formerly provided by the earnings explanation. */
.totals{margin-bottom:60px}

#content > button + .chore-form{margin-top:20px}

.parent-tools.task-management{margin-top:24px}.task-management .parent-controls{margin-bottom:0}
.management-list{margin-top:24px}.management-list > button{margin-bottom:20px}

#login-form .form-actions{gap:16px}.icon-picker{margin:8px 0 22px;border:1px solid #c5ccbe;border-radius:12px;background:#fffefb}.icon-picker summary{display:flex;align-items:center;gap:14px;padding:12px 16px;min-height:72px;cursor:pointer;list-style:none}.icon-picker summary::after{content:'▾';margin-left:auto}.icon-picker summary:focus-visible{outline:3px solid #39704c;outline-offset:3px}.icon-options{display:grid;gap:8px;padding:12px;border-top:1px solid #e8ddce}.icon-options button{display:flex;align-items:center;gap:14px;text-align:left;min-height:72px}.icon-options button[aria-pressed=true]{border:2px solid #39704c;background:#edf4e5}.chore-form > span[id^="icon-label-"]{display:block;font-weight:bold;margin-bottom:8px}

/* Family selection stays right aligned with a raised active child. */
.people{justify-content:flex-end;align-items:center;padding:5px 0;gap:16px}
.people button{min-height:56px;font-size:.95rem;padding:12px 17px;flex:0 0 auto}
.people button[aria-pressed=true]{font-size:1.05rem;font-weight:700;padding:15px 23px;transform:translateY(-3px);box-shadow:0 6px 10px #ac591326,inset 0 1px 0 #ffd0a2}
.reorder-card{position:relative;padding-top:38px;padding-bottom:24px}
.drag-grip{position:absolute;min-height:56px;width:56px;padding:0;border:0;background:transparent;box-shadow:none;color:#8c7963;font-size:28px;touch-action:none;cursor:grab;user-select:none;z-index:1}
.drag-grip.top-left{top:0;left:0}
.reorder-card.dragging{outline:3px solid #bacdb0;box-shadow:0 8px 20px #59381624}.dragging .drag-grip{cursor:grabbing}
@media(max-width:650px){.people{gap:12px}.people button{flex:0 0 auto;padding:12px 14px}.people button[aria-pressed=true]{padding:15px 18px}.reorder-card{padding-top:50px;padding-bottom:18px}}

/* Approved Chore Bank and Parent Hub layout. */
header{align-items:center;gap:28px}header>div:first-child{min-width:0}header h1{font-size:30px}header .people{margin:0;flex-wrap:nowrap;gap:10px;flex-shrink:0;align-items:center}header .people button{min-height:56px;font-size:15px;padding:8px 12px;transform:translateY(5px);box-shadow:inset 0 2px 4px #50331a0a;opacity:.8}header .people button[aria-pressed=true]{min-height:76px;font-size:21px;font-weight:700;padding:18px 25px;transform:translateY(-3px);opacity:1;box-shadow:0 8px 13px #ac59132b,inset 0 1px 0 #ffd0a2}
.hero{min-height:0;padding:18px 24px;gap:20px;align-items:center;margin-bottom:14px}.hero h2{margin:0;font-size:25px;white-space:nowrap}.hero p{margin:0;text-align:right;font-size:17px}
#tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0 28px;padding:0}#tabs button{width:100%;min-width:0;min-height:64px;padding:12px 8px}
.bank-totals{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:18px;align-items:center;margin-bottom:28px}.bank-totals article{min-height:130px;min-width:0;padding:22px;justify-content:center}.piggy-bank{width:225px;height:165px;position:relative;overflow:hidden;justify-self:center}.supplied-pig{position:absolute;width:530px;height:530px;max-width:none;left:-158px;top:-225px;mix-blend-mode:multiply}.bank-amount{position:absolute;left:36px;right:36px;top:72px;text-align:center;font-size:34px;font-weight:500;letter-spacing:-.015em;color:#513832;font-variant-numeric:tabular-nums}
.parents-bottom{display:block;margin-left:auto;margin-top:8px;background:#e9f0e2;color:#39704c}.parents-bottom[aria-pressed=true]{border:2px solid #39704c}.chore-form #payout-child{width:100%}.chore-form #payout-balance{margin-bottom:20px}#content>button+.chore-form{margin-top:20px}
@media(max-width:950px) and (min-width:651px){header{gap:16px}header h1{font-size:25px}header .people{gap:8px}header .people button{padding:8px 10px;font-size:14px}header .people button[aria-pressed=true]{padding:16px 20px;font-size:20px}header #week-range{font-size:16px}}
@media(max-width:650px){header{flex-wrap:wrap;gap:10px}header>div:first-child{width:100%}header .people{margin-left:auto}header .people button[aria-pressed=true]{padding:16px 23px;min-height:72px}.hero{padding:14px 18px;gap:12px}.hero h2{font-size:21px}.hero p{font-size:15px;max-width:190px}#tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#tabs button{min-height:60px}.bank-totals{grid-template-columns:1fr 1fr;gap:12px}.bank-totals article{min-width:0;min-height:110px;padding:16px}.bank-totals .total-summary span{font-size:15px}.piggy-bank{grid-column:1/-1;width:215px;height:158px}.supplied-pig{width:505px;height:505px;left:-150px;top:-214px}.bank-amount{left:34px;right:34px;top:69px;font-size:32px}}

/* Shared family Message Board; message content remains plain text. */
#tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.message-form{max-width:100%;margin-bottom:20px}.message-wall{margin:20px 0}.message-card{padding:24px;margin-bottom:16px;border:1px solid #e8ddce;border-radius:18px;background:#fffcf7}.message-meta{font-size:15px;color:#766353;margin-top:0}.message-body{white-space:pre-wrap;overflow-wrap:anywhere}.message-card button{margin-top:8px}@media(max-width:650px){#tabs{grid-template-columns:repeat(2,minmax(0,1fr))}#tabs button:last-child{grid-column:1/-1}.message-card{padding:18px}}
/* Keep message editing compact and aligned with the message body. */
.message-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:end}.message-meta{grid-column:1/-1;margin-bottom:0}.message-body{margin:0}.message-card button{justify-self:end;align-self:end;margin:0;min-height:44px;padding:8px 14px;font-size:15px}@media(pointer:coarse){.message-card button{min-height:56px}}

/* A quiet lasting badge with one brief, silent fireworks celebration. */
.day-complete{position:relative;display:grid;place-items:center;overflow:hidden;min-height:260px;margin:20px 0;border:1px solid #e8ddce;border-radius:24px;background:linear-gradient(135deg,#f0f5e7,#e4edd9);box-shadow:0 4px 14px #5938160d}
.day-complete-badge{z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:180px;height:180px;border:4px double #c79758;border-radius:50%;background:linear-gradient(145deg,#fffaf4,#fff0d5);box-shadow:0 5px 12px #59381616;color:#3e3027}.day-complete-star{font-size:58px;color:#b77d35;line-height:1.2}.day-complete-badge h3{font:bold 22px Arial,sans-serif;margin:12px 0 0}
.finished-day-tasks{margin:16px 0}.finished-day-tasks summary{min-height:56px;display:flex;align-items:center;cursor:pointer;font-weight:bold;text-decoration:underline}.finished-day-tasks[open] summary{margin-bottom:16px}
.day-fireworks{position:absolute;inset:0;pointer-events:none}.firework-bloom{position:absolute;left:calc(16% + var(--burst)*34%);top:calc(32% + var(--burst)*10%);color:#c78544}.firework-bloom:nth-child(2){color:#77956a}.firework-bloom:nth-child(3){color:#a498bd}.firework-bloom i{position:absolute;width:5px;height:13px;border-radius:4px;opacity:0;animation:day-firework 1.2s ease-out calc(var(--burst)*.35s) 1;transform:rotate(var(--angle)) translateY(0)}
@keyframes day-firework{0%{opacity:0;transform:rotate(var(--angle)) translateY(0) scale(.4)}20%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateY(-95px) scale(.5)}}
@media(prefers-reduced-motion:reduce){.day-fireworks{display:none}.firework-bloom i{animation:none}}
