:root{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#222824;background:#f8f7f3;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.app-shell{max-width:1120px;margin:auto;padding:0 24px}.app-header{display:flex;justify-content:space-between;align-items:center;height:90px;border-bottom:1px solid #e8e9e2}.brand{display:flex;gap:12px;align-items:center;color:#244b3c;font-size:24px;letter-spacing:-1px}.brand>span:last-child{display:flex;align-items:baseline;gap:5px}.brand small{font-size:14px;font-weight:800;background:#d3e2d8;padding:3px 6px;border-radius:6px;letter-spacing:0}.brand-mark{font-size:36px;background:#e7eee7;border-radius:12px;width:45px;height:45px;display:grid;place-items:center}.header-right{display:flex;align-items:center;gap:9px;color:#69716d;font-size:13px}.status-dot{width:8px;height:8px;border-radius:50%;background:#a6aaa4}.status-dot.on{background:#3caa7b;box-shadow:0 0 0 4px #d6efe4}.icon-btn{border:0;background:#edeee9;border-radius:10px;min-width:38px;height:38px;font-size:21px;color:#4e5d54}.content{padding:30px 0 35px}.hero{display:flex;justify-content:space-between;align-items:center;min-height:204px;background:#e7eee7;border-radius:22px;padding:24px 38px;position:relative;overflow:hidden}.eyebrow,.small-cap{font-size:10px;font-weight:800;letter-spacing:1.5px;color:#6a8373}.hero h1{font-size:clamp(29px,4.2vw,49px);line-height:1.09;letter-spacing:-1.7px;margin:12px 0;color:#274e3c}.hero h1 em{font-family:Georgia,serif;font-weight:400}.hero p{color:#67796e;margin:0;font-size:14px}.hero-illustration{width:190px;height:150px;display:flex;align-items:center;justify-content:center;font-size:120px;color:#e8ad62;opacity:.9}.hero-check{position:absolute;right:57px;bottom:35px;font-size:28px!important;background:#68917c;color:white;width:55px;height:55px;display:grid;place-items:center;border-radius:50%;border:6px solid #e7eee7}.start-panel{background:#fff;border:1px solid #ebebe5;border-radius:19px;margin-top:22px;padding:24px;display:flex;gap:20px;flex-wrap:wrap;align-items:center;justify-content:space-between;box-shadow:0 4px 20px #273f3210}.start-heading{display:flex;flex-direction:column;gap:6px}.start-heading strong{font-size:20px}.start-buttons{display:flex;flex-wrap:wrap;gap:9px}.btn{border:0;border-radius:11px;padding:12px 17px;font-weight:750;font-size:13px;transition:transform .15s,background .15s}.btn:active{transform:scale(.98)}.btn.primary{background:#326849;color:white}.btn.primary:hover{background:#23563a}.btn.subtle{background:#f1f2ed;color:#354f41}.btn.secondary{background:#e5eee6;color:#2d5a40}.btn.wide{width:100%}.btn.text-btn{background:transparent;color:#326849;padding:9px}.running-banner{width:100%;color:#396b4f;background:#eaf3eb;padding:10px 14px;border-radius:9px;font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.running-banner button{color:#396b4f;text-decoration:underline;background:none;border:0;font-weight:700}.hidden{display:none!important}.plan-strip{background:#f2eee7;display:grid;grid-template-columns:1.3fr 1fr;gap:14px;align-items:center;padding:19px 23px;border-radius:17px;margin-top:22px}.plan-strip h3{margin:5px 0;font-size:17px}.plan-strip p{font-size:12px;color:#76746e;margin:0;line-height:1.4}.school-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.school-fields label{font-size:11px;font-weight:700;color:#77766e}.school-fields select{display:block;width:100%;margin-top:5px;background:#fff;border:1px solid #dfdfd8;padding:10px 7px;border-radius:9px;color:#25392e;font-size:13px}.task-section{margin-top:30px}.section-title{display:flex;align-items:end;justify-content:space-between;margin-bottom:17px}.section-title h2{font-size:27px;letter-spacing:-.8px;margin:3px 0}.routine-tabs{display:flex;background:#ebece6;border-radius:13px;padding:5px;gap:3px;width:max-content;max-width:100%;overflow:auto}.routine-tabs button{border:0;background:transparent;color:#67716a;border-radius:9px;padding:11px 18px;font-size:13px;white-space:nowrap;font-weight:700}.routine-tabs button.active{background:white;color:#2f5942;box-shadow:0 2px 5px #0000000d}.filters{display:flex;gap:7px;margin:17px 0;overflow:auto}.filters button{background:white;border:1px solid #e5e8e2;padding:8px 13px;border-radius:22px;color:#6d756d;white-space:nowrap;font-size:12px;font-weight:650}.filters button.selected{background:#e0ece4;color:#2d6947;border-color:#d0e4d6}.progress{margin:0 0 16px}.progress-text{display:flex;justify-content:space-between;color:#788179;font-size:12px;font-weight:650;margin-bottom:8px}.progress-track{height:6px;border-radius:6px;background:#e7e9e2;overflow:hidden}.progress-track span{display:block;height:100%;background:#7baa8c;border-radius:6px;width:0;transition:width .2s}.task-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.task{background:#fff;border:1px solid #e8eae4;border-radius:13px;min-height:96px;padding:15px;display:flex;align-items:start;gap:12px;position:relative}.task.complete{background:#f8faf7;border-color:#e1ebde}.task-check{flex:none;width:29px;height:29px;border:2px solid #bbcbbb;background:white;border-radius:9px;margin-top:2px;color:white;font-size:18px;font-weight:750;display:grid;place-items:center}.task.complete .task-check{background:#619b79;border-color:#619b79}.task-info{flex:1;min-width:0}.task-title{font-size:15px;line-height:1.35;font-weight:750;color:#2d3c33}.complete .task-title{text-decoration:line-through;color:#829188}.task-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:8px;font-size:11px;color:#849088}.owner-tag{border-radius:6px;padding:3px 6px;font-size:10px;font-weight:800}.owner-duncan{background:#e5edf8;color:#3d6390}.owner-rachel{background:#fbe7ea;color:#aa6175}.owner-mum{background:#f7eddb;color:#a47b46}.owner-adult{background:#e8e5f3;color:#75699b}.task-edit{background:none;border:0;color:#a4aaa2;font-size:17px;line-height:20px;padding:4px}.task-overdue{border-left:4px solid #ddac67}.task-badge{font-size:10px;font-weight:750;color:#ad732d}.task-bottom{display:flex;justify-content:flex-end;gap:7px;margin-top:14px}.lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-top:30px}.info-card{background:#fff;padding:24px;border:1px solid #ebece5;border-radius:16px;min-height:225px}.info-head{display:flex;gap:10px;align-items:center}.card-icon{background:#eaf0e8;border-radius:10px;padding:8px;font-size:22px;color:#548461}.info-card h3{font-size:17px;margin:0}.info-card p{font-size:13px;line-height:1.65;color:#69776e}.tag-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}.tag-list span{border-radius:6px;background:#e8f1e9;color:#54715f;padding:5px 7px;font-size:10px;font-weight:700}.tag-list .no{background:#f6e9e3;color:#95665b}.escalation-list{display:flex;flex-direction:column;gap:8px;margin-top:8px}.escalation{padding:9px 10px;background:#fff3e2;border-left:3px solid #c6924e;border-radius:6px;font-size:12px}.escalation small{display:block;color:#877c6d;margin-top:4px}.empty{color:#8a948c;font-size:12px}.note{margin-top:25px;padding:15px 18px;background:#f3f3ec;display:flex;gap:13px;align-items:center;border-radius:12px}.note span{font-size:22px;color:#719878}.note p{margin:0;font-size:12px;line-height:1.5;color:#657069}footer{border-top:1px solid #e9eae4;padding:22px 0 35px;color:#9a9e96;font-size:11px;display:flex;justify-content:space-between;gap:12px}.modal{width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 26px);overflow:auto;border:1px solid #eaeee7;border-radius:18px;padding:25px;background:#fff;box-shadow:0 20px 80px #0003}.modal::backdrop{background:#1728207d}.modal-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.modal-top h2{font-size:23px;margin:0}.field{display:flex;flex-direction:column;font-size:12px;font-weight:750;color:#59685d;gap:6px;margin-bottom:14px}.field input,.field select{padding:12px;border:1px solid #daddd6;border-radius:9px;background:#fff;color:#283f32;width:100%}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check-field{display:flex;gap:9px;align-items:center;font-size:13px;color:#4d5c51;margin:12px 0}.check-field input{accent-color:#326849;width:17px;height:17px}.modal-actions,.button-row{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap}.settings-block{padding:17px 0;border-top:1px solid #eaece6}.settings-block h3{font-size:16px;margin:0 0 12px}.settings-block p{font-size:13px;line-height:1.5;color:#65716a}.settings-block .fine-print{font-size:11px;color:#87918a}.pill{font-size:10px;display:inline-block;background:#f4eae1;color:#9a755a;padding:4px 7px;border-radius:6px}.room-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;color:#59655e;font-size:12px}.room-grid label{padding:8px;background:#f4f7f1;border-radius:6px}.room-grid .excluded{background:#f8eded;color:#9d6a64}.room-grid input{accent-color:#326849}.file-label{cursor:pointer}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);z-index:1000;background:#244b3a;color:white;padding:12px 22px;border-radius:14px;box-shadow:0 8px 20px #0003;opacity:0;pointer-events:none;transition:all .2s;font-weight:700;font-size:13px;max-width:90vw;text-align:center}#toast.visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:780px){.app-shell{padding:0 16px}.app-header{height:70px}.hero{padding:22px 22px;min-height:170px}.hero-illustration{font-size:68px;width:85px;height:100px}.hero-check{right:17px;bottom:27px;width:39px;height:39px;font-size:20px!important;border-width:4px}.hero h1{font-size:35px}.hero p{max-width:270px;font-size:12px}.start-panel{align-items:stretch}.start-buttons{width:100%}.start-buttons .btn{flex:1}.plan-strip{grid-template-columns:1fr}.task-list{grid-template-columns:1fr 1fr}.lower-grid{grid-template-columns:1fr 1fr}.info-card{padding:17px}}
@media(max-width:570px){.hero-illustration{display:none}.hero h1{font-size:35px}.header-right #today-label{display:none}.start-buttons .btn{min-width:100%;flex:none}.task-list,.lower-grid{grid-template-columns:1fr}.routine-tabs{width:100%}.routine-tabs button{flex:1;padding:10px 8px;font-size:12px}.field-grid{grid-template-columns:1fr}.school-fields{gap:8px}.task-bottom{justify-content:space-between}.task-bottom .btn{padding:10px}.info-card{min-height:0}footer{display:block}footer span{display:block;margin-top:5px}}

.identity-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px;padding:17px 22px;border:1px solid #d7e5dc;background:#ecf5ee;border-radius:16px}
.identity-panel p{margin:5px 0 0;color:#65796c;font-size:12px}
.adult-switch{display:flex;gap:5px;padding:4px;background:#dae9dc;border-radius:12px;flex:none}
.adult-switch button{border:0;border-radius:9px;background:transparent;padding:11px 15px;color:#4c6654;font-size:13px;font-weight:750}
.adult-switch button.selected{background:white;box-shadow:0 2px 8px #253e281c;color:#235a3a}
.shared-progress{font-size:12px;color:#527860;font-weight:750;margin:0 0 12px}
.owner-both{background:#dcf0e3;color:#29633e}
@media(max-width:600px){.identity-panel{align-items:stretch;flex-direction:column}.adult-switch{width:100%}.adult-switch button{flex:1}}

.sync-label{font-size:11px;color:#8e928b}.sync-label.live{color:#287d45;font-weight:750}
@media(max-width:550px){.header-right .sync-label{font-size:9px;max-width:86px;text-align:right;line-height:1.2}}

/* v0.3 passive household board */
.quiet-note{background:#f1f5ef;border:1px solid #d9e5d9;color:#3d654e;font-size:13px;line-height:1.5;border-radius:12px;padding:14px 16px;margin:15px 0}.quiet-note strong{font-weight:800}
.home-groups{display:flex;flex-direction:column;gap:21px}.home-group{background:#f1f2eb;border:1px solid #e1e5dc;border-radius:16px;padding:16px}.home-group-header{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:12px}.home-group-header h3{font-size:16px;margin:0;color:#345140}.home-group-actions{display:flex;align-items:center;gap:10px;font-size:11px;color:#7b847b}.group-reset{background:white;color:#52715b;border:1px solid #d8e2d9;padding:7px 9px;border-radius:8px;font-weight:750;font-size:11px;white-space:nowrap}.home-task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.home-task-grid .task{min-height:78px;padding:12px}.home-task-grid .task-title{font-size:14px}.quiet-task-note{background:#f0f5f0;border-radius:10px;padding:12px;font-size:12px;color:#456b51}
@media(max-width:650px){.home-task-grid{grid-template-columns:1fr}.home-group{padding:12px}.home-group-header h3{font-size:15px}.home-group-actions{gap:5px}}

/* v0.3.1 home recurrence */
.home-task-grid .task-meta{flex-wrap:wrap;line-height:1.4}
#home-frequency-field select{width:100%}
/* Household HQ cloud account overlay */
.cloud-gate{position:fixed;z-index:9999;inset:0;background:linear-gradient(145deg,#e9e4d9,#f6efe7);display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto}
.cloud-gate.hidden{display:none}
.cloud-card{background:#fffaf5;width:min(470px,100%);border-radius:24px;box-shadow:0 12px 60px #33291d22;padding:clamp(20px,5vw,36px);font-family:inherit}
.cloud-card h1{margin:20px 0 8px;font-size:clamp(26px,5vw,36px);line-height:1.1}
.cloud-card p{color:#5c5b56;font-size:14px}
.cloud-logo{font-size:21px;font-weight:600;letter-spacing:-.7px}
.cloud-form,.cloud-field{display:flex;flex-direction:column;gap:10px}
.cloud-form label,.cloud-field{font-size:13px;font-weight:700;margin:9px 0 3px}
.cloud-form input,.cloud-field input,.cloud-field select{width:100%;font-size:16px;border:1px solid #cfcec7;border-radius:11px;padding:13px;background:white;margin-top:4px}
.cloud-form button{margin-top:8px;min-height:45px}
.cloud-status{min-height:20px;font-size:13px;color:#a0462d}
.cloud-warning{padding:12px;background:#fff1d1;border-radius:10px;margin:14px 0;font-size:13px}
.cloud-admin{display:flex;position:sticky;z-index:100;top:0;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 20px;background:#e8f1e9;border-bottom:1px solid #bed2c0;font-size:12px}
.cloud-admin.hidden{display:none}
.cloud-admin .btn{padding:7px 12px;font-size:12px}
.cloud-admin #cloud-connection{margin-left:auto;color:#456c5a}
#cloud-household>h2{font-size:23px;margin-top:18px}
#cloud-household>button{margin-top:12px}

#household-settings .cloud-admin{position:static;padding:12px;border-radius:12px;margin-top:16px;}
#invite-link{width:100%;font:inherit;overflow-wrap:anywhere;padding:12px;border:1px solid #cfcec7;border-radius:10px;}
#invite-dialog .wide{margin-top:12px;}

/* v0.6: tablet-first checklist. Large jobs, minimal chrome. */
:root{font-size:18px;color:#20392b}
.app-shell{max-width:1440px;padding:0 28px}.app-header{height:84px;position:sticky;top:0;background:#f8f7f3;z-index:30}.brand{font-size:26px}.header-right{gap:14px}.header-right #today-label,.status-dot{display:none}.sync-label{font-size:13px}.content{padding-top:20px;display:flex;flex-direction:column}.task-section{order:0}.start-panel{order:1;margin:0 0 20px;padding:16px 20px;box-shadow:none}.task-section .section-title{margin:0 0 16px}.section-title h2{font-size:32px;margin:0}.btn,.routine-tabs button,.filters button{font-size:18px;min-height:52px;padding:13px 20px}.icon-btn{min-width:52px;height:52px;font-size:28px}.routine-tabs{display:flex;width:100%;gap:8px;margin-bottom:18px}.routine-tabs button{flex:1;border-radius:14px;font-size:23px;min-height:64px}.filters{gap:8px;margin-bottom:18px}.filters button{font-size:17px;min-height:48px}.progress-text{font-size:17px}.progress{margin:14px 0 22px}.task-list.routine-groups{display:flex;flex-direction:column;gap:24px}.routine-group h3,.routine-group summary{font-size:23px;margin:0 0 12px;color:#355f44;font-weight:800}.routine-group summary{cursor:pointer;padding:12px 0;min-height:52px}.routine-grid,.home-task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.task,.home-task-grid .task{min-height:128px;padding:22px;align-items:center;border-radius:18px;gap:18px;border-color:#d8e0d8}.task-check{width:56px;height:56px;border-radius:16px;font-size:30px;border-width:3px;margin:0}.task-title,.home-task-grid .task-title{font-size:25px;line-height:1.25;font-weight:750;cursor:pointer}.task-title:focus-visible{outline:3px solid #326849;outline-offset:6px}.task-meta{font-size:17px;margin-top:10px;gap:10px;color:#5b6a60}.owner-tag{font-size:15px;padding:5px 9px}.task-edit{min-width:48px;min-height:48px;font-size:26px;color:#5e7163}.task-badge{font-size:15px;display:inline-block;margin-top:8px}.task.complete{opacity:.75}.task-overdue{border-left:6px solid #c68e38}.task-bottom #pause-btn{display:none}.task-bottom{margin:24px 0}.running-banner{font-size:18px;margin-top:4px}.running-banner button{font-size:18px;min-height:48px;text-decoration:none;background:white;border-radius:10px;padding:10px 18px}.start-heading strong{font-size:24px}.board-empty{font-size:24px;color:#326849;padding:16px 0}.quiet-note{font-size:18px}.home-group-header h3{font-size:24px}.home-group-actions,.group-reset{font-size:16px}.group-reset{min-height:48px}.home-group{padding:20px}.modal{width:min(720px,calc(100vw - 32px));padding:28px}.modal-top h2{font-size:28px}.settings-block h3{font-size:23px}.settings-block p,.settings-block .fine-print,.check-field,.field{font-size:18px}.check-field{min-height:52px}.check-field input{width:26px;height:26px;flex:none}.field input,.field select{font-size:20px;min-height:56px}.identity-panel{margin:0 0 20px}.identity-panel .small-cap{font-size:15px}.adult-switch button{font-size:18px;min-height:52px}.plan-strip{margin:0;padding:10px;background:transparent;display:block}.plan-strip h3{font-size:24px;margin:8px 0 20px}.school-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.school-fields label{font-size:18px}.school-fields select{font-size:22px;min-height:64px}footer{font-size:12px;padding:16px 0}.start-panel{order:-1}.task-section{order:0}#cloud-gate .cloud-card{max-width:520px}#cloud-gate .cloud-card p{font-size:18px}.cloud-form input,.cloud-field input,.cloud-field select{font-size:20px;min-height:56px}.cloud-form label,.cloud-field{font-size:18px}
@media(max-width:700px){.app-shell{padding:0 16px}.app-header{height:76px}.brand{font-size:21px}.brand-mark{display:none}.header-right{gap:8px}#school-btn{font-size:15px;padding:10px;min-height:48px}.sync-label{display:none}.routine-tabs button{font-size:18px;padding:12px 8px;min-height:56px}.routine-grid,.home-task-grid{grid-template-columns:1fr}.task-title,.home-task-grid .task-title{font-size:23px}.task{padding:18px;min-height:116px}.task-check{width:52px;height:52px}.filters{flex-wrap:wrap}.filters button{font-size:16px;padding:10px 13px}.section-title h2{font-size:28px}.school-fields{grid-template-columns:1fr}.task-meta{font-size:16px}}

/* v0.7: brighter, distinct routine colours with dark readable labels. */
:root{background:#f4f7ff;color:#17233f}
.app-header{background:#f4f7ff;border-color:#cdd8f0}
.brand{color:#363080}.brand small{background:#ffcf43;color:#302600}.brand-mark{background:#dcd5ff;color:#4934a0}
.btn.primary{background:#6540c8;color:#fff}.btn.primary:hover{background:#5030ab}
.btn.subtle,.btn.secondary{background:#ded7ff;color:#35246f}.btn.text-btn{color:#4c2da0}
.icon-btn{background:#ded7ff;color:#35246f}
.routine-tabs{background:#e4e9f8;padding:8px}
.routine-tabs button[data-routine="morning"]{background:#fff0ac;color:#574100}
.routine-tabs button[data-routine="evening"]{background:#e3d8ff;color:#47247d}
.routine-tabs button[data-routine="reset"]{background:#b9f4e9;color:#07584f}
.routine-tabs button.active{box-shadow:inset 0 0 0 3px currentColor,0 4px 10px #17233f15}
.routine-tabs button[data-routine="morning"].active{background:#ffd447}
.routine-tabs button[data-routine="evening"].active{background:#cfb2ff;color:#381866}
.routine-tabs button[data-routine="reset"].active{background:#54dfc8;color:#064c44}
.filters button{border-color:#c9cdea;color:#3f4964}.filters button.selected{background:#ddd4ff;color:#38216f;border-color:#8063c9}
.start-panel{background:#fff2ba;border-color:#f0cf55}.start-heading strong{color:#463600}
.running-banner{background:#d8caff;color:#39226c}
.progress-track{background:#ded8f0}.progress-track span{background:#7650cc}
.task{border-color:#cbd5ee;box-shadow:0 3px 0 #dce3f4}.task-title,.home-task-grid .task-title{color:#1e2d4b}
.task-check{border-color:#8b79bd}.task.complete .task-check{background:#087e6c;border-color:#087e6c}
.task.complete{background:#ddf7ed;opacity:1}.complete .task-title{color:#496359}
.task-overdue{border-left-color:#e48912;background:#fff8e4}.task-badge{color:#805000}
.owner-mum{background:#ffe29a;color:#654500}.owner-duncan{background:#c8e3ff;color:#184c7f}.owner-rachel{background:#ffd4e7;color:#842954}.owner-both,.owner-adult{background:#ded0ff;color:#4b2a80}
.routine-group h3,.routine-group summary,.board-empty{color:#4a2d8c}
.home-group{background:#d9f8f1;border-color:#8bd9c9}.home-group-header h3{color:#07584f}
.quiet-note{background:#d9f8f1;border-color:#8bd9c9;color:#07584f}
.cloud-gate{background:linear-gradient(135deg,#fff0ab,#dfd2ff 60%,#bdf3e9)}.cloud-card{background:#fff}
.check-field input,.room-grid input{accent-color:#6540c8}
button:focus-visible,.task-title:focus-visible{outline:3px solid #493299;outline-offset:4px}
