:root{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#263d35;background:#faf9f5;font-synthesis:none;--green:#285f50;--muted:#748079;--line:#e6e9e1}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #c39348;outline-offset:4px}button{min-height:48px}h1,h2,h3,p{margin-top:0}h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(32px,5vw,46px);line-height:1.12;letter-spacing:-1px;margin-bottom:16px}h2{font-size:20px;font-weight:600;letter-spacing:-.4px}h3{font-size:16px;margin-bottom:7px}p{line-height:1.6}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.6px;color:var(--green);margin-bottom:14px}.app-shell{max-width:920px;margin:auto}.topbar{height:88px;display:flex;align-items:center;gap:16px;padding:0 32px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:9px;font-family:Georgia,serif;font-size:32px;background:none;border:0;padding:0}.brand-mark{display:grid;place-items:center;width:37px;height:37px;border-radius:50%;background:var(--green);color:white;font-family:Georgia;font-size:32px}.prototype-pill{font-family:ui-sans-serif,sans-serif;font-size:9px;letter-spacing:1px;background:#eeeee6;padding:7px 10px;border-radius:6px;color:#72786a}.parent-avatar{margin-left:auto;display:grid;place-items:center;background:#efe6d5;width:40px;height:40px;border-radius:50%;font-size:24px}main{padding:36px 32px 130px;max-width:760px;margin:auto}.page-heading{margin-bottom:28px}.page-heading>p.muted{font-size:14px;max-width:480px}.switcher{display:flex;gap:8px;overflow:auto;margin:0 -2px 24px;padding:4px 2px}.switcher button{flex-shrink:0;display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:white;border-radius:30px;padding:0 18px;font-size:13px}.switcher button.selected{background:var(--green);color:white;border-color:var(--green)}.dot{height:10px;width:10px;border-radius:50%}.peach{background:#f4d5bd;color:#81563d}.blue{background:#d3e3f2;color:#45647c}.sage{background:#d8e7d2;color:#4f6947}.lavender{background:#e3d9ef;color:#755f88}.prep-card{display:flex;text-align:left;align-items:center;justify-content:space-between;width:100%;background:#e9eee4;border:0;padding:25px;border-radius:20px;margin-bottom:32px;gap:14px}.prep-card .eyebrow{font-size:9px}.prep-card h2{font-family:Georgia,serif;font-weight:400;font-size:25px;margin:12px 0}.prep-card p{font-size:12px;margin:0 0 14px}.prep-card p span{margin-left:25px}.bag-art{font-size:65px;color:#7b9876;transform:rotate(-12deg)}.progress-track{height:5px;max-width:240px;width:100%;background:#d4decc;border-radius:8px;overflow:hidden}.progress-track span{height:100%;display:block;background:var(--green);border-radius:8px;transition:width .3s}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.section-title h2{margin:0}.section-title>span{color:var(--muted);font-size:11px}.text-button{border:0;background:transparent;color:var(--green);font-size:11px;padding:4px 0}section{margin-bottom:28px}.event{display:flex;gap:20px;background:white;border:1px solid var(--line);padding:20px;margin-bottom:10px;border-radius:15px}.event.highlight{background:#fffaf0;border-color:#eee1c9}.event-time{font-size:12px;font-weight:600;min-width:48px;padding-top:3px;color:#59685d}.event p{font-size:12px;color:var(--muted);margin-bottom:10px}.child-tag{display:inline-block;font-size:10px;padding:4px 9px;border-radius:6px}.deadline{display:flex;gap:16px;padding:22px;border:1px solid #e9dfc9;background:#f4efe3;border-radius:15px}.deadline .eyebrow{font-size:9px;margin-bottom:9px}.deadline p:not(.eyebrow){font-size:12px;margin-bottom:6px}.deadline-icon{font-size:22px}.gentle-note{font-size:13px;color:#68776c;padding:19px;background:#eeefe9;border-radius:12px;line-height:1.6}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,920px);display:flex;align-items:center;justify-content:space-around;background:#faf9f5f5;backdrop-filter:blur(15px);border-top:1px solid var(--line);padding:10px 8px max(12px,env(safe-area-inset-bottom));z-index:5}.bottom-nav button{background:none;border:0;color:#819086;font-size:10px;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:55px}.bottom-nav .active{color:var(--green);font-weight:700}.nav-icon{font-size:25px;line-height:30px}.nav-add .nav-icon{background:var(--green);color:white;border-radius:50%;width:43px;height:43px;display:grid;place-items:center;font-size:30px;margin-top:-16px;box-shadow:0 3px 10px #285f5020}.primary,.secondary{border:0;border-radius:12px;padding:14px 20px;font-size:14px;font-weight:600;min-height:52px}.primary{background:var(--green);color:white}.primary:hover{background:#1c493d}.secondary{background:transparent;border:1px solid #d9dfd4}.check-summary{padding:20px;background:#e9eee4;border-radius:14px;margin-bottom:24px;color:#63775d;font-size:14px}.check-summary strong{color:var(--green);font-size:22px;margin-right:10px}.check-section>p{font-size:12px}.check-item{display:flex;align-items:center;gap:16px;padding:18px;border:1px solid var(--line);background:white;border-radius:14px;margin:10px 0;cursor:pointer;min-height:90px}.check-item input{width:24px;height:24px;accent-color:var(--green);flex-shrink:0}.check-item strong{font-size:15px;display:block;margin-bottom:4px}.check-item small{font-size:12px;color:var(--muted);display:block;margin-bottom:8px}.check-item.done{background:#f0f3ec}.check-item.done strong{text-decoration:line-through;color:#7c897e}.profiles{display:grid;gap:16px;margin-bottom:24px}.profile-card{width:100%;display:flex;align-items:center;gap:18px;text-align:left;background:white;border:1px solid var(--line);border-radius:18px;padding:24px}.profile-card h2{margin-bottom:6px}.profile-card p,.profile-card small{font-size:12px;color:var(--muted);margin-bottom:5px}.profile-card>span:last-child{margin-left:auto}.avatar{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;font-family:Georgia;font-size:27px;flex-shrink:0}.form-card{background:white;padding:26px;border:1px solid var(--line);border-radius:18px;display:flex;flex-direction:column;gap:15px;margin-bottom:20px}.form-card>p{margin:0;font-size:13px}label,legend{font-size:13px;font-weight:600}input:not([type=checkbox]):not([type=radio]),textarea,select{padding:14px;border:1px solid #d9dfd4;border-radius:10px;background:#fafbf8;width:100%;color:inherit;min-height:48px}textarea{min-height:130px;resize:vertical}fieldset{border:0;padding:10px 0;margin:0}.color-options{display:flex;gap:20px;margin-top:15px}.color-options label{display:flex;align-items:center;gap:5px}.color-swatch{display:block;width:32px;height:32px;border-radius:50%}input[type=radio]{accent-color:var(--green)}.demo-notice{padding:12px 16px;border-radius:10px;background:#f0ece2;color:#7f7359;font-size:11px;margin-bottom:22px;line-height:1.6}.add-options{display:grid;gap:12px;margin-bottom:25px}.add-option{display:flex;align-items:center;gap:15px;text-align:left;background:white;padding:20px;border:1px solid var(--line);border-radius:14px}.add-option.chosen{border-color:var(--green)}.add-option strong{display:block;font-size:14px;margin-bottom:5px}.add-option small{font-size:12px;color:var(--muted)}.add-option>span:last-child{margin-left:auto}.option-icon{width:43px;height:43px;background:#eaf0e5;border-radius:12px;display:grid;place-items:center;color:var(--green);font-size:24px;flex-shrink:0}.result-card{background:#edf2e9;border:1px solid #d8e3cf;padding:24px;border-radius:18px}.result-card h2{font-family:Georgia;font-size:27px;font-weight:400}.result-actions{display:flex;gap:8px;flex-wrap:wrap}.result-actions button{flex:1}.result-card label{display:block;margin:12px 0}.week-strip{display:flex;justify-content:space-between;gap:8px;margin:28px 0}.week-strip>div{display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px 12px;background:white;border-radius:14px;border:1px solid var(--line);flex:1}.week-strip span{font-size:11px;color:var(--muted)}.week-strip strong{font-size:18px}.week-strip .current{background:var(--green);color:white}.week-strip .current span{color:#d2e0d7}.setting-row{display:flex;justify-content:space-between;font-size:13px;padding:15px 0;border-bottom:1px solid var(--line)}.welcome{max-width:480px;margin:0 auto;min-height:100svh;padding:30px 28px;display:flex;flex-direction:column;align-items:stretch;text-align:center}.welcome>.brand{justify-content:center;gap:9px}.welcome .prototype-pill{margin-left:8px;font-size:8px}.welcome h1{font-size:44px;line-height:1.15}.welcome .eyebrow{font-size:9px}.welcome-copy{font-size:14px;color:var(--muted);margin:0 0 30px}.welcome .secondary{margin:12px 0 18px;font-size:12px}.welcome-art{height:230px;position:relative;display:grid;place-items:center;margin:18px 0}.orbit{position:absolute;width:205px;height:205px;background:#e9eee4;border-radius:50%}.nest-bowl{position:relative;width:120px;height:64px;border-radius:10px 10px 65px 65px;background:#b4a083;transform:rotate(-7deg);margin-top:55px;box-shadow:inset 0 -8px #9b856a}.nest-bowl:after{content:'';position:absolute;left:5px;right:5px;top:0;height:19px;background:#83785e;border-radius:50%}.nest-bowl span{position:absolute;width:33px;height:44px;background:#f4e7cb;border-radius:50% 50% 45% 45%;top:-25px;z-index:1;left:19px;transform:rotate(-20deg)}.nest-bowl span:nth-child(2){left:49px;top:-31px;background:#fcf6e9;transform:rotate(8deg)}.nest-bowl span:nth-child(3){left:77px;top:-24px;background:#e0dbc4;transform:rotate(22deg)}.art-leaf{position:absolute;width:28px;height:60px;background:#789275;border-radius:0 80% 0 80%;transform:rotate(-20deg);z-index:2}.leaf-one{top:44px;left:calc(50% - 68px)}.leaf-two{top:61px;right:calc(50% - 63px);transform:rotate(65deg);background:#99ac8f}.spark{position:absolute;top:22px;right:calc(50% - 85px);font-size:32px;color:#b9a47b}.toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);width:max-content;max-width:90%;padding:16px 22px;background:#263d35;color:white;border-radius:14px;z-index:10;font-size:13px;box-shadow:0 5px 20px #0002}.empty{font-size:13px;color:var(--muted)}@media(max-width:480px){.topbar{padding:0 22px;height:76px}main{padding:28px 20px 120px}.prep-card{padding:22px}.prep-card h2{font-size:23px}.bag-art{font-size:48px}.event{padding:18px;gap:15px}.section-title>span{font-size:10px}.profile-card{padding:20px;gap:12px}.week-strip{gap:5px}.week-strip>div{padding:12px 8px}.welcome h1{font-size:39px}.result-actions{flex-direction:column}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Structured review and flexible profiles use the existing cream / green palette. */
.full-button{width:100%;text-align:left;border:1px solid var(--line);margin-bottom:20px}.detected-card{background:#fffdf8;border:1px solid var(--line);border-radius:14px;padding:20px;margin:16px 0}.detected-card label{display:block;margin:14px 0 7px}.detected-card .section-title h3{margin:0}.decision-buttons{display:flex;gap:10px;flex-wrap:wrap}.decision-buttons button{flex:1}.conflict-notice{padding:18px;background:#f4ead6;border-radius:12px;margin-bottom:20px}.conflict-notice p{margin:8px 0 0;font-size:13px}.comparison{border:1px solid var(--line);border-radius:15px;overflow:hidden;margin:24px 0;background:#fffdf8}.comparison-row{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:12px;padding:18px;border-bottom:1px solid var(--line);font-size:13px;line-height:1.5;overflow-wrap:anywhere}.comparison-row:last-child{border:0}.comparison-row>span:last-child{color:var(--green);font-weight:600}.comparison-head{background:#e9eee4;font-size:11px}.stack-actions{display:grid;gap:12px;margin-top:24px}.settings-detail{border-bottom:1px solid var(--line);padding:8px 0}.settings-detail summary{cursor:pointer;min-height:48px;padding:12px 0;font-size:14px}.settings-detail summary span{float:right;margin-left:8px}.settings-detail p{color:var(--muted);font-size:13px;margin:12px 0}#institution-fields label{display:block;margin:12px 0 8px}[hidden]{display:none!important}button:disabled{opacity:.45;cursor:default}.welcome h1{font-size:37px}.form-card h2{margin-bottom:0}.form-card+.secondary{margin-bottom:20px}.check-item small:last-child{margin-top:6px}.profile-card>div{min-width:0}.profile-card small{display:block}.result-card input{font-size:14px}@media(max-width:480px){.comparison-row{padding:14px 10px;gap:8px;font-size:11px}.comparison-head{font-size:10px}.detected-card{padding:16px}.welcome h1{font-size:34px}.settings-detail summary span{float:none;display:block;margin:5px 0 0}.result-actions button{width:100%}}
/* Product logic screens retain the existing visual tokens. */
.card-detail{display:block;font-size:12px;color:var(--muted);line-height:1.6;margin:7px 0}.profile-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}.profile-tabs button,.day-selector button{border:1px solid var(--line);background:white;border-radius:12px;padding:10px 14px;font-size:12px}.profile-tabs .selected,.day-selector .selected{background:var(--green);color:white}.day-selector{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:20px 0}.day-selector button{padding:10px 0}.prep-line{position:relative;margin-bottom:16px}.prep-line>.text-button{margin-left:18px;min-height:44px}.prep-line .check-item{margin-bottom:0}.edit-prep-row{padding:18px;border:1px solid var(--line);border-radius:12px;display:grid;gap:12px}.form-card label{display:grid;gap:8px}.custom-timing{display:grid;gap:16px}.danger-button{border:1px solid #d7b8ab;color:#934c3d;background:#fff9f4;padding:14px;border-radius:12px}.form-card button{min-height:48px}.profile-tabs{margin-top:12px}.full-button strong{font-size:15px}main>input{margin:12px 0 20px}@media(min-width:850px){.profile-tabs{flex-wrap:nowrap}.day-selector button{font-size:14px}.edit-prep-row{grid-template-columns:1fr 1fr}}@media(max-width:480px){.profile-tabs button{flex:1 1 30%;padding:10px 8px}.form-card{padding:20px}.day-selector{gap:3px}.day-selector button{font-size:11px}}
.backbar{margin:-8px 0 20px;border-bottom:1px solid var(--line)}.backbar button{font-size:14px;min-height:48px}.calendar-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:18px}.calendar-filters button{border:1px solid var(--line);background:white;border-radius:12px;font-size:12px;padding:12px 4px}.calendar-filters .selected{background:var(--green);color:white}.date-heading{background:#e9eee4;border-radius:12px;padding:16px;text-transform:capitalize;margin:26px 0 14px;font-size:18px}.warning-soft{background:#f4ead7!important;border:1px solid #e6d2ac!important}.warning-strong{background:#fae9e2!important;border:1px solid #d7a28e!important;color:#834732}.notice,.attention-summary{padding:20px;border-radius:15px;margin-bottom:24px}.attention-summary{background:#f1eddf;border:1px solid var(--line)}.attention-summary p{font-size:13px}.compact-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.compact-actions button{font-size:12px;padding:12px 8px}.draft-planning{padding:16px;border:1px solid var(--line);border-radius:12px;margin:18px 0;background:#f5f6ef;display:grid;gap:12px}.draft-planning legend{padding:0 8px}.reminder-custom{display:grid;gap:12px}.mock-screenshot{padding:24px;border:8px solid #ecece4;background:white;border-radius:16px;line-height:1.7}.mock-screenshot blockquote{margin:18px 0}.source-text{white-space:pre-wrap;overflow-wrap:anywhere}.history-entry{border-left:3px solid #98ae91;padding:10px 20px;background:#f0f2ea;border-radius:0 12px 12px 0}.history-entry p{font-size:14px;margin:10px 0}.undo-button{background:white;color:var(--green);border:0;border-radius:9px;margin:10px 0 0;padding:10px 16px;display:block}.voice-status{font-variant-numeric:tabular-nums;padding:12px;background:#eef2e7;border-radius:10px}.task-card strong{overflow-wrap:anywhere}.form-card input,.form-card select{min-width:0}.edit-prep-row{min-width:0}@media(max-width:480px){.edit-prep-row{grid-template-columns:1fr}.calendar-filters button{font-size:11px}.compact-actions{grid-template-columns:1fr 1fr}.attention-summary{padding:18px}.draft-planning{padding:12px}.toast{width:90%}}
.date-heading{text-transform:none}.date-heading::first-letter{text-transform:uppercase}

/* Intrinsic sizing: controls and grid/flex descendants may shrink on iOS too. */
.app-shell,main,form,fieldset,label,section,article,details,button,input,select,textarea{min-width:0;min-inline-size:0;max-width:100%;}
.app-shell *,main *{min-width:0;overflow-wrap:anywhere;}
input:not([type=checkbox]):not([type=radio]),select,textarea{display:block;width:100%;inline-size:100%;max-inline-size:100%;min-inline-size:0;}
input[type=date],input[type=time]{appearance:none;-webkit-appearance:none;min-height:44px;}
input::-webkit-date-and-time-value{text-align:left;min-height:1.2em;}
fieldset{width:100%;margin-inline:0;}
.form-card label,.detected-card label{width:100%;}
.comparison-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.25fr);}
.outline-icon{width:22px;height:22px;flex-shrink:0;vertical-align:middle;}
.text-button .outline-icon{width:17px;height:17px;margin-right:4px;}
.topbar{height:44px;border:0;padding:0 20px;}
.topbar .brand{font-size:24px;min-height:0;}
.topbar .text-button{font-size:13px;min-height:44px;}
main{padding:8px 20px 100px;}
h1{font-size:30px;margin-bottom:8px;letter-spacing:-.6px;}
h2{font-size:17px;margin-bottom:10px;}
p{line-height:1.45;}
.page-heading{margin-bottom:14px;}
.page-heading .eyebrow:empty{display:none;}
.page-heading .eyebrow{margin-bottom:6px;font-size:9px;letter-spacing:1px;}
.page-heading .muted{margin-bottom:0;font-size:13px;}
section{margin-bottom:18px;}
button{min-height:44px;}
.primary,.secondary,.danger-button{min-height:44px;padding:10px 14px;font-size:13px;border-radius:10px;}
.form-card button{min-height:44px;}
.form-card{padding:14px;gap:9px;margin-bottom:14px;border-radius:13px;}
.form-card label{gap:5px;}
input:not([type=checkbox]):not([type=radio]),textarea,select{padding:10px;font-size:16px;min-height:44px;border-radius:8px;}
textarea{min-height:90px;}
legend,label{font-size:12px;}
#institution-fields label{margin:8px 0 5px;}
fieldset{padding:6px 0;}
.color-options{gap:10px;margin-top:8px;flex-wrap:wrap;}
.color-options label{width:auto;}
.switcher{gap:6px;flex-wrap:wrap;overflow:visible;margin:0 0 14px;padding:0;}
.switcher button{padding:6px 12px;font-size:12px;min-height:40px;flex-shrink:1;}
.child-tag{padding:2px 6px;font-size:10px;border-radius:4px;line-height:1.4;margin-top:3px;}
.event,.full-button{padding:12px;gap:10px;margin-bottom:8px;border-radius:11px;}
.card-detail{margin:3px 0;line-height:1.4;}
.profile-card{padding:14px;gap:12px;border-radius:13px;}
.profile-card h2{margin-bottom:4px;}
.profiles{gap:9px;margin-bottom:14px;}
.avatar{width:42px;height:42px;border-radius:14px;font-size:23px;}
.profile-tabs{gap:5px;margin:10px 0 14px;}
.profile-tabs button{padding:7px 10px;min-height:40px;font-size:11px;}
.day-selector{margin:12px 0;}
.day-selector button{min-height:40px;padding:8px 0;}
.add-options{gap:7px;margin-bottom:14px;}
.add-option{padding:10px 12px;gap:10px;border-radius:11px;min-height:48px;}
.add-option strong{font-size:13px;margin:0;}
.option-icon{width:30px;height:30px;border-radius:8px;}
.option-icon .outline-icon{width:20px;height:20px;}
.demo-notice{padding:8px 10px;font-size:10px;margin-bottom:12px;}
.result-card{padding:12px;border-radius:13px;}
.result-card h2{font-family:inherit;font-size:19px;}
.detected-card{padding:12px;margin:10px 0;border-radius:10px;}
.detected-card label,.result-card label{margin:8px 0 5px;}
.draft-planning{padding:10px;gap:7px;margin:10px 0;}
.edit-prep-row{padding:10px;gap:8px;grid-template-columns:minmax(0,1fr);}
.custom-timing,.reminder-custom{gap:8px;}
.conflict-notice,.gentle-note,.notice,.attention-summary{padding:12px;margin-bottom:14px;font-size:12px;}
.stack-actions{gap:8px;margin-top:14px;}
.comparison{margin:14px 0;}
.comparison-row{padding:10px;gap:6px;}
.bottom-nav{padding:6px 4px max(8px,env(safe-area-inset-bottom));}
.bottom-nav button{flex:1;min-width:0;font-size:9px;gap:3px;padding:3px 0;min-height:48px;}
.nav-icon{display:grid;place-items:center;line-height:24px;font-size:24px;}
.nav-icon .outline-icon{width:23px;height:23px;}
.nav-add .nav-icon{background:transparent;color:inherit;width:24px;height:24px;margin:0;box-shadow:none;border-radius:0;}
.action-row{display:flex;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid var(--line);width:100%;}
.action-check{display:grid;place-items:center;width:36px;min-width:36px;min-height:44px;cursor:pointer;flex-shrink:0;}
.action-check input{width:20px;height:20px;margin:0;accent-color:var(--green);}
.row-content{flex:1;display:block;text-align:left;padding:0;min-height:0;border:0;background:none;line-height:1.4;}
.row-content strong{display:block;font-size:14px;font-weight:500;}
.row-content small{display:block;font-size:11px;color:var(--muted);margin:3px 0 0;}
.action-row.done .row-content strong{text-decoration:line-through;color:var(--muted);}
.action-row.done{opacity:.8;}
.small-edit{border:0;background:none;padding:6px;min-width:36px;min-height:44px;color:var(--muted);}
.small-edit .outline-icon{width:16px;height:16px;}
.context-row{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:left;padding:11px 0;background:none;border:0;border-bottom:1px solid var(--line);}
.context-row strong{display:block;font-size:14px;margin:3px 0;}
.context-row small{display:block;font-size:11px;color:var(--muted);line-height:1.4;}
.context-row .progress-text{color:var(--green);margin-top:5px;}
.event-context{background:#eef1e9;border:1px solid #e1e8db;border-radius:12px;padding:0 12px 8px;}
.event-context .context-row{border:0;}
.event-context .action-row:last-child{border:0;}
.row-caption{font-size:11px;color:var(--muted);margin:7px 0 3px;}
.warning-label{color:#875637;}
.attention-compact{border-left:3px solid #bd9c70;padding-left:10px;}
.attention-compact h2{font-size:15px;margin-bottom:3px;}
.attention-compact p{margin:7px 0;}
.calm-state{font-size:15px;color:var(--green);background:#eef1e9;padding:14px;border-radius:11px;margin:14px 0;}
.completed-group{margin:14px 0;}
.completed-group summary,.source-disclosure summary{min-height:44px;padding:12px 0;cursor:pointer;font-size:13px;color:var(--muted);}
.event-facts{margin:12px 0 16px;}
.event-facts p{font-size:13px;margin:7px 0;}
.event-facts .text-button{font-size:12px;}
.calendar-filters{gap:5px;margin-bottom:12px;}
.calendar-filters button{min-height:40px;padding:7px 3px;font-size:12px;border-radius:9px;}
.date-navigation{display:flex;align-items:center;gap:5px;margin:6px 0 12px;}
.date-navigation button{border:0;background:none;padding:8px;font-size:15px;color:var(--green);}
.date-navigation button:nth-child(2){flex:1;}
.date-heading{font-size:14px;padding:8px 10px;border-radius:8px;margin:14px 0 4px;}
.settings-list{border-top:1px solid var(--line);}
.settings-list summary,.settings-list>button{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:10px 0;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;font-size:14px;cursor:pointer;}
.settings-list p{margin:8px 0 12px;}
.demo-tools{margin-top:22px;}
.demo-tools>summary{font-size:11px;color:var(--muted);padding:12px 0;cursor:pointer;}
.demo-tools .form-card{margin:10px 0;}
.compact-edit{align-self:flex-start;width:auto;}
.check-item{padding:10px;min-height:60px;gap:10px;margin:6px 0;}
.check-item small{margin:3px 0;font-size:11px;}
.check-summary{padding:12px;margin-bottom:14px;}
.welcome{padding:20px;min-height:100svh;justify-content:center;}
.welcome>.brand{font-size:29px;}
.welcome-art{height:170px;margin:10px 0;transform:scale(.75);}
.welcome h1{font-size:31px;line-height:1.15;margin-bottom:12px;}
.welcome .eyebrow{margin-bottom:7px;}
.welcome-copy{font-size:13px;line-height:1.45;margin-bottom:18px;}
.welcome .secondary{margin:8px 0 12px;}
.welcome>.small{font-size:10px;margin:0;}
@media(min-width:700px){main{padding-top:16px;}.topbar{padding-inline:32px;}.welcome{padding:24px 32px;}.welcome h1{font-size:35px;}}
.action-check{width:44px;min-width:44px;}.small-edit{min-width:44px;}

/* Consolidated UX: session-controlled completion and compact profile/schedule. */
.app-shell[data-screen=home]>.topbar{height:0;}
.app-shell[data-screen=home]>main{padding-top:16px;}
.bottom-nav{position:fixed;bottom:0;transition:none;animation:none;}
.nav-icon{width:44px;height:44px;}
.nav-add .nav-icon{width:44px;height:44px;border-radius:50%;background:var(--green);color:white;}
.bottom-nav button{min-height:64px;}
main{padding-bottom:112px;}
.completed-group{border-top:1px solid var(--line);margin:12px 0 18px;}
.completed-group>summary{min-height:44px;padding:12px 0;font-size:13px;color:var(--green);cursor:pointer;}
.completed-group .action-row{animation:arrive .25s ease-out;}
.completion-arrival>summary{animation:completion-notice .65s ease-out;}
.action-row.is-pending{animation:completion-leave 1.5s ease-in forwards;}
@keyframes completion-leave{0%,80%{opacity:.8;transform:translateY(0)}100%{opacity:.15;transform:translateY(5px)}}
@keyframes arrive{from{opacity:.3;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@keyframes completion-notice{from{background:#dce8d5}to{background:transparent}}
.event-checklist-toggle{display:flex;align-items:center;justify-content:space-between;font-size:12px;min-height:44px;color:var(--green);cursor:pointer;}
.event-checklist-toggle::marker{content:'';}
.event-checklist-toggle::-webkit-details-marker{display:none;}
.event-context details[open] .event-checklist-toggle>span{transform:rotate(180deg);}
.event-context details[open]+.collapsed-checklist{display:none;}
.task-status-control{display:flex;align-items:center;gap:10px;min-height:48px;font-size:14px;font-weight:500;margin:10px 0;cursor:pointer;}
.task-status-control input{width:21px;height:21px;accent-color:var(--green);}
.task-facts{margin:8px 0 16px;font-size:13px;}
.task-facts>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.8fr);gap:10px;padding:8px 0;border-bottom:1px solid var(--line);}
.task-facts dt{color:var(--muted);}.task-facts dd{margin:0;}
.reschedule-chips{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0;}
.reschedule-chips button,.schedule-mode button{border:1px solid var(--line);background:white;padding:8px 12px;border-radius:22px;min-height:44px;font-size:12px;}
.reschedule-chips .selected,.schedule-mode .selected{color:var(--green);background:#e5eddf;border-color:#a9bfa0;opacity:1;}
.quiet-danger{border:0;background:none;color:#934c3d;font-size:12px;min-height:44px;padding:8px 0;display:block;text-align:left;}
.profile-summary{padding:14px 0;border-bottom:1px solid var(--line);max-width:600px;}
.profile-summary h2{margin-bottom:8px;}.profile-summary p{margin:8px 0;font-size:13px;}
.profile-management{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0;}
.profile-management .text-button{font-size:12px;}
.profile-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:8px 0 14px;max-width:780px;}
.profile-tabs button{min-height:44px;font-size:11px;padding:6px 5px;border-radius:9px;}
.school-today{font-size:12px;border-left:2px solid #a3b699;padding:3px 10px;margin:0 0 14px;}
.school-today strong{font-size:12px;font-weight:600;}
.school-child-link{display:block;min-height:28px;background:none;border:0;padding:3px 0;text-align:left;font-size:11px;color:var(--muted);}
.school-child-link span{padding-left:5px;}
.school-today .text-button{min-height:28px;font-size:11px;}
.schedule-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.schedule-toolbar h2{margin:0;}.schedule-mode{display:flex;gap:5px;}
.schedule-date-label{display:flex;align-items:center;gap:10px;margin:10px 0;max-width:340px;}
.schedule-date-label input{flex:1;}
.week-schedule{display:grid;gap:6px;margin:14px 0;}
.week-day{border-bottom:1px solid var(--line);}
.week-day-heading{background:none;border:0;text-align:left;padding:10px 0;width:100%;}
.week-day-heading strong{display:block;font-size:13px;font-weight:500;}
.week-day-heading small{display:block;font-size:11px;color:var(--muted);margin-top:4px;}
.desktop-lessons{display:none;}
.not-attended{opacity:.65;}.not-attended strong{text-decoration:line-through;}
.lesson-settings>summary{font-size:13px;min-height:44px;padding:12px 0;cursor:pointer;}
.time-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.archive-context{font-size:12px;color:var(--muted);padding:10px;background:#eef1e9;border-radius:9px;}
@media(min-width:768px){
  .app-shell{max-width:1180px;}main{max-width:900px;padding-inline:28px;}
  .form-card{max-width:600px;}.result-card{max-width:760px;}.profiles{grid-template-columns:minmax(0,1fr);}
  .bottom-nav{width:min(100%,760px);}.profile-tabs{grid-template-columns:repeat(6,minmax(0,1fr));}
  main[data-screen=calendar],main[data-screen=task]{max-width:800px;}
}
@media(min-width:1100px){
  main[data-screen=profile]{max-width:1160px;}
  .week-schedule{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;align-items:start;}
  .week-day{border:1px solid var(--line);border-radius:10px;padding:7px;}
  .week-day-heading strong{font-size:12px;}.week-day-heading small{font-size:10px;}
  .desktop-lessons{display:block;}.desktop-lessons .event{padding:8px;display:block;margin-bottom:6px;}
  .desktop-lessons .event-time{display:block;font-size:10px;margin-bottom:5px;}
  .desktop-lessons strong{font-size:12px;}.desktop-lessons .card-detail{font-size:10px;}

}
@media(prefers-reduced-motion:reduce){.action-row.is-pending,.completed-group .action-row,.completion-arrival>summary{animation:none;}}
.school-today{display:flex;flex-direction:column;}
.school-today>div{grid-column:1/-1;}
.school-child-link{display:flex;align-items:center;min-height:44px;padding:4px 0;}
.school-today>.text-button{min-height:44px;text-align:left;}
.toast{display:flex;align-items:center;gap:12px;padding:10px 14px;bottom:calc(90px + env(safe-area-inset-bottom));}
.toast .undo-button{display:inline-block;flex-shrink:0;margin:0;padding:8px 10px;min-height:44px;font-size:12px;}
main{padding-bottom:calc(112px + env(safe-area-inset-bottom));}
.language-options{padding:0;list-style:none;margin:8px 0 12px;}
.language-options li{display:flex;justify-content:space-between;font-size:13px;min-height:36px;align-items:center;border-top:1px solid var(--line);}
@media(min-width:768px){.settings-list{max-width:660px;}.demo-tools{max-width:600px;}}

/* Focused responsive cleanup: one content hierarchy, compact navigation and feedback. */
main[data-screen=home]{display:block;max-width:800px;}
.profiles{grid-template-columns:minmax(0,1fr);max-width:760px;}
.school-today{display:flex;flex-direction:column;}
.school-child-link{width:100%;justify-content:space-between;min-height:44px;}
.school-today>.text-button{align-self:flex-start;}
.profile-tabs{margin-bottom:12px;}
.week-navigation{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0;max-width:520px;}
.week-navigation button{border:1px solid var(--line);background:white;border-radius:10px;min-width:44px;font-size:20px;}
.week-navigation strong{font-size:13px;font-weight:500;text-align:center;}
.schedule-period{display:grid;gap:8px;padding:0;}
.schedule-period legend{margin-bottom:8px;}
.schedule-period p{margin:0;}
.schedule-management,.lesson-management{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:10px 0;}
.schedule-history{display:flex;flex-direction:column;align-items:flex-start;margin-bottom:12px;}
.schedule-history .selected{font-weight:700;}
.toast{width:max-content;max-width:calc(100vw - 32px);min-height:44px;padding:4px 12px;gap:8px;background:#edf2e8;color:var(--green);border:1px solid #d9e2d2;border-radius:12px;box-shadow:0 3px 12px #263d3512;font-size:12px;line-height:1.35;}
.snackbar-message{min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.toast .undo-button{min-height:44px;padding:4px 6px;background:transparent;font-size:12px;}
@media(min-width:1100px){
  .app-shell{display:grid;grid-template-columns:156px minmax(0,1fr);column-gap:20px;max-width:1280px;padding:0 20px;}
  .app-shell>.topbar,.app-shell>main{grid-column:2;width:100%;}
  .app-shell>.topbar{padding-inline:28px;}
  .app-shell>main{padding-bottom:60px;}
  .bottom-nav{position:fixed;top:24px;bottom:auto;left:max(20px,calc((100vw - 1240px)/2));transform:none;width:156px;max-width:none;display:flex;flex-direction:column;align-items:stretch;padding:4px 0;border:0;border-radius:0;background:transparent;box-shadow:none;}
  .bottom-nav button{flex:initial;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px;padding:6px 8px;min-height:56px;border-radius:12px;font-size:13px;}
  .bottom-nav button.active{background:#e8eee2;}
  .bottom-nav .nav-icon{width:32px;height:32px;flex-shrink:0;}
  .bottom-nav .nav-add .nav-icon{width:36px;height:36px;}
  .bottom-nav .outline-icon{width:22px;height:22px;}
  .toast{bottom:24px;left:calc(50% + 88px);max-width:min(550px,calc(100vw - 240px));}
  .week-schedule{gap:5px;}.week-day{padding:5px;}
}
.schedule-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-top:12px;}

/* Consolidated polish: shared control sizing and predictable action spacing. */
:root{--space-tight:8px;--space-controls:12px;--space-section:24px;--control-height:44px;--control-radius:8px;}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select{height:var(--control-height);min-height:var(--control-height);max-width:100%;padding:10px 12px;border-radius:var(--control-radius);line-height:1.25;}
textarea,input[type=file]{padding:10px 12px;border-radius:var(--control-radius);}
.form-card{gap:var(--space-controls);}.form-card label{gap:6px;}
.form-card .time-pair,.form-card .custom-timing,.form-card .reminder-custom{gap:var(--space-controls);}
.vertical-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px;}
.vertical-actions button{margin:0;}.vertical-actions .quiet-danger{margin-top:8px;}
.children-actions{margin:16px 0 24px;}
.profile-management{gap:16px;margin-top:20px;}.profile-summary{padding:12px 0;}
.archive-card{padding:16px 0;margin-bottom:24px;}.archive-actions{margin-top:16px;}
.confirmation-actions{margin-top:24px;gap:16px;}
.school-today{margin-bottom:16px;}.school-today .school-child-link{min-height:36px;}
.school-today>.text-button{min-height:36px;}.app-shell main>.switcher{margin-bottom:12px;}
.calendar-event-group{margin:10px 0 16px;}.completed-event{margin:12px 0;padding-left:10px;border-left:2px solid #becdb6;}
.completed-event>.text-button{min-height:44px;text-align:left;font-size:12px;}
.completed-event .action-row{background:transparent;}
.event-context .row-content strong .child-tag{display:none;}
.manage-disclosure{margin-top:8px;max-width:600px;}.manage-disclosure>summary{min-height:44px;padding:12px 0;font-size:13px;color:var(--green);cursor:pointer;}
.manage-disclosure .form-card{margin:8px 0 16px;}.schedule-current{max-width:660px;}
.schedule-current>.small{margin-bottom:16px;}.schedule-management{margin:16px 0 0;}
.day-change-management{margin-top:24px;max-width:660px;}
.exception-list{margin-top:16px;}.exception-record{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);}
.exception-record strong,.exception-record small{display:block;}.exception-record strong{font-size:13px;margin:6px 0;}.exception-record small{font-size:12px;color:var(--muted);}
.exception-record>.text-button{min-width:80px;min-height:44px;}
.day-closure{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;background:#f1eddf;border-radius:10px;font-size:12px;margin:10px 0;}
.scheduled-lesson{min-width:0;}.scheduled-lesson>.lesson-restore{margin:0 0 8px;min-height:44px;}
.welcome{justify-content:center;max-width:480px;padding-top:24px;}.welcome-art{margin:0 0 8px;}
@media(min-width:1100px){
  .app-shell{grid-template-columns:224px minmax(0,1fr);column-gap:24px;max-width:1360px;}
  .bottom-nav{width:224px;left:max(20px,calc((100vw - 1320px)/2));}
  .bottom-nav button>span:last-child{white-space:nowrap;overflow-wrap:normal;word-break:normal;}
  .toast{left:calc(50% + 124px);}
  main[data-screen=settings],main[data-screen=archived-children],main[data-screen=child-delete],main[data-screen=event],main[data-screen=schedule-manage]{max-width:800px;}
}
.missed-group{margin-top:12px;border-top:1px solid var(--line);padding-top:8px}
.missed-group>summary{min-height:44px;display:flex;align-items:center;font-size:.85rem;color:#8b6249;cursor:pointer}
/* Schedule actions follow the same compact hierarchy on every screen. */
.schedule-hub-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:16px 0}
.schedule-hub-actions>button,.weekly-edit-day>.secondary,.schedule-import-options>.secondary{min-height:44px;border-radius:10px;padding:10px 14px;font-size:13px;max-width:100%}
.schedule-destructive{border-top:1px solid var(--line);margin-top:24px;padding-top:16px;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.weekly-edit-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:6px 0}
.weekly-edit-row>.row-content{flex:1;min-width:0;text-align:left;border:0;background:none;min-height:44px}
.weekly-edit-row>.row-content strong,.weekly-edit-row>.row-content small{display:block}
.weekly-edit-row small{font-size:12px;color:var(--muted)}
.weekly-edit-day>.secondary{margin-top:8px}.weekly-edit-day{margin-bottom:20px}
.advanced-fields{display:flex;flex-direction:column;gap:12px;padding-top:12px}
.schedule-import-options{grid-template-columns:1fr;gap:8px}.schedule-import-options .secondary{display:flex;align-items:center;gap:10px;text-align:left}
.draft-lesson{border-bottom:1px solid var(--line)}.draft-lesson>summary,.manage-disclosure>summary,.lesson-settings>summary,.lesson-one-time>summary{min-height:44px;padding:10px 0;cursor:pointer;font-size:13px}
.draft-lesson .form-card{margin-top:8px}.import-coverage{background:#edf2e9;padding:12px;border-radius:10px;font-size:13px}
.lesson-management{margin-top:12px;margin-bottom:24px}.lesson-management .quiet-danger{border-top:1px solid var(--line);margin-top:4px;padding-top:14px}
.lesson-preparation{margin-top:20px}.lesson-one-time>label{display:block;margin:8px 0 6px}
.school-today{gap:0;padding-top:2px;padding-bottom:2px}.school-today>div{margin-bottom:4px}
.school-today .school-child-link,.school-today>.text-button{min-height:30px;padding:3px 0;margin:0;line-height:1.4}
main[data-screen^="schedule-"],main[data-screen^="lesson-"]{max-width:720px}
/* Compact summary: intrinsic row height, without inherited button sizing. */
.school-today{display:block;padding:2px 10px;margin-bottom:14px}
.school-today>div{margin:0 0 8px}
.school-today .school-child-link{display:block;min-height:0;height:auto;padding:0;margin:0 0 8px;line-height:1.4;width:100%;text-align:left}
.school-today>.text-button{display:block;min-height:0;height:auto;padding:0;margin:0;line-height:1.4}
.event>span:last-child{flex:1;min-width:0}.event strong,.event small,.event .card-detail{display:block}
.event strong,.weekly-edit-row strong,.week-day-heading strong,.regular-rule-row strong{overflow-wrap:normal;word-break:normal;hyphens:none}
.event small{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.4}
.regular-rule-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.regular-rule-row>div:first-child{flex:1;min-width:0}.regular-rule-row strong,.regular-rule-row small{display:block}
.regular-rule-row strong{font-size:13px;font-weight:500}.regular-rule-row small{font-size:11px;color:var(--muted);margin-top:4px}
.rule-actions{display:flex;flex-wrap:wrap;gap:8px}.rule-actions button{font-size:12px;min-height:36px;padding:4px}
/* All seven desktop days stay in one row; reserve space for whole-word titles. */
@media(min-width:1100px){
 .week-schedule{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
 .week-day{min-width:0;padding:4px 2px}
 .desktop-lessons .event{min-width:0;padding:6px 2px}
 .desktop-lessons .event>span{display:block;min-width:0}
 .desktop-lessons .event strong{font-size:clamp(10px,.9vw,12px);line-height:1.4;letter-spacing:-.1px;overflow-wrap:normal;word-break:normal}
}
/* Linked actions form one compact task container on every screen. */
.task-group .group-progress{font-size:12px;color:var(--muted);margin:2px 0 8px}
.group-steps{margin-left:12px;padding-left:10px;border-left:2px solid var(--line)}
.group-steps .action-row{padding:6px 0}.group-steps strong{font-size:13px}
.task-resolution{display:flex;align-items:center;flex-wrap:wrap;gap:6px;flex-basis:100%;margin-left:30px}
.task-resolution .text-button{min-height:36px;padding:5px 8px;font-size:12px}
.task-resolution details{position:relative}.task-resolution summary{cursor:pointer;padding:8px;min-height:36px;font-size:14px;list-style:none}
.task-resolution details[open] button{position:absolute;right:0;z-index:2;min-width:160px;background:var(--cream,#faf9f5);border:1px solid var(--line);border-radius:10px}
.confirmation-row{display:flex;align-items:center;gap:8px}.confirmation-row input{width:20px;flex:0 0 20px}
.group-step-editor{padding:10px;margin:8px 0}.group-step-editor legend{font-size:12px}
.completed-group>summary,.missed-group>summary{display:flex;align-items:center;gap:8px;list-style:none}
.completed-group>summary::marker,.missed-group>summary::marker{content:''}
.completed-group>summary::-webkit-details-marker,.missed-group>summary::-webkit-details-marker{display:none}
.completed-group>summary::before,.missed-group>summary::before{content:'▸';display:inline-block;font-size:12px}
.completed-group[open]>summary::before,.missed-group[open]>summary::before{content:'▾'}
/* Resolution controls must never compete with the mobile text column. */
.action-row.has-task-actions{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:start;column-gap:9px;row-gap:2px}
.has-task-actions>.row-content{min-width:0;align-self:center}
.has-task-actions>.task-resolution{grid-column:2;margin-left:0;min-width:0}
.has-task-actions>.row-content,.has-task-actions>.row-content strong,.has-task-actions>.row-content small,
.task-group .row-content,.task-group .row-content strong,.task-group .row-content small{overflow-wrap:normal;word-break:normal}
@media(min-width:1000px){
 .action-row.has-task-actions{grid-template-columns:36px minmax(0,1fr) auto;align-items:center}
 .has-task-actions>.task-resolution{grid-column:3;flex-basis:auto;max-width:260px}
}
/* Overflow panel is positioned from its trigger, outside the action row. */
.task-resolution details[open] button{position:fixed;right:auto;z-index:40;min-width:180px;max-width:calc(100vw - 16px);padding:10px 14px;box-shadow:0 6px 24px #263c2426;white-space:normal;}
.task-resolution summary::-webkit-details-marker{display:none;}
.detail-home{display:block;margin-top:16px;}
input::placeholder{color:var(--muted);opacity:.75;}
.task-resolution details{margin-left:auto;}
/* Ten distinct muted child colors; the original four retain their tones. */
.rose{background:#f0c8d4;color:#825867}.sand{background:#f1e4b3;color:#786944}.aqua{background:#bce2de;color:#426e67}.slate{background:#d5dcd7;color:#59665d}
.apricot{background:#dfbba8;color:#80583d}.olive{background:#e0e4b1;color:#6a7040}
.color-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:10px}
.color-options .color-choice{position:relative;display:flex;align-items:center;justify-content:center;min-height:48px;padding:4px;border:0;cursor:pointer}
.color-choice input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.color-choice .color-swatch{position:relative;width:32px;height:32px;flex:none;border-radius:50%;border:1px solid #263d3514}
.color-choice input:checked+.color-swatch{outline:2px solid var(--green);outline-offset:3px}
.color-choice input:checked+.color-swatch::after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;font-size:18px;font-weight:700;color:var(--green)}
.color-choice input:focus-visible+.color-swatch{box-shadow:0 0 0 7px #285f5026}
.color-choice.is-used{opacity:.35;cursor:not-allowed}
.color-choice.is-used .color-swatch::after{content:'';position:absolute;top:50%;left:3px;right:3px;height:1px;background:var(--green);transform:rotate(-45deg)}
/* Shared end-of-flow navigation, separate from history/edit/delete controls. */
.secondary.detail-home{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:48px;margin:24px 0 18px;padding:12px 18px;background:#eef2e9;border-color:#b8c9b4;color:var(--green);font-size:14px;font-weight:600}
.detail-home .outline-icon{width:20px;height:20px;flex:none}
.inbox-section{margin:20px 0;padding-top:14px;border-top:1px solid var(--line)}
.inbox-section>summary{min-height:44px;font-size:14px;cursor:pointer;color:var(--green)}
.inbox-row{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:8px}
.inbox-row>.text-button{grid-column:2;justify-self:start;min-height:36px;padding:4px 8px;border:1px solid var(--line);border-radius:8px}
@media(min-width:1000px){.secondary.detail-home{width:auto;min-width:190px;justify-self:start}}

/* Keep overdue actions readable at narrow widths. */
.task-resolution{min-width:0;gap:8px;align-items:center;}
.task-resolution .text-button,.task-resolution summary{flex:0 0 auto;white-space:nowrap;overflow-wrap:normal;word-break:normal;}
.task-resolution details{flex:0 0 auto;}
.rule-checklist-row{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0;align-items:center;}
.rule-checklist-row>input{flex:1 1 180px;}
.rule-checklist-row>label{width:auto;display:flex;align-items:center;gap:6px;}
.rule-checklist-row input[type=checkbox]{width:20px;}
.preparation-group .group-steps{padding-left:12px;}

/* Compact checklist controls and event-like preparation hierarchy. */
#rule-form .rule-checklist-section{padding:4px 0;margin:0;}
#rule-form .rule-checklist-section legend{padding:0;margin-bottom:4px;}
#rule-form .checklist-add{display:inline-flex;align-items:center;width:auto;min-height:40px;padding:8px 12px;font-size:12px;margin:4px 0 0;}
#rule-form .rule-checklist-row{margin:6px 0;}
.preparation-group>.action-row .row-content>strong{font-size:13px;font-weight:500;line-height:1.4;}
.preparation-group>.group-progress{font-size:11px;font-weight:400;line-height:1.4;color:var(--muted);margin:2px 0 6px;}
.preparation-group .group-steps .action-row{padding:6px 0;}
.completed-preparation-checklist{margin:0;}
.completed-preparation-checklist>summary{font-size:12px;color:var(--muted);padding:6px 0;cursor:pointer;}

/* One disclosure chevron and compact nested hierarchy across domains. */
details>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;}
details>summary::marker{content:'';}
details>summary::-webkit-details-marker{display:none;}
details>summary::before{content:'';display:inline-block;width:6px;height:6px;min-width:6px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:rotate(-45deg);flex:0 0 auto;margin:0 3px 0 1px;}
details[open]>summary::before{transform:rotate(45deg);}
.event-checklist-toggle{justify-content:flex-start;}
.settings-list details>summary>span,.task-resolution summary::before{display:none;}
.group-steps .action-row,.expanded-checklist>.action-row,.collapsed-checklist>.action-row{padding:3px 0;gap:8px;min-height:44px;}
.group-steps .row-content strong,.expanded-checklist .row-content strong{font-size:13px;line-height:1.35;}
.group-steps .row-content small,.expanded-checklist .row-content small{font-size:10px;line-height:1.35;margin:2px 0 0;}
.group-steps{padding-left:12px;border-left:1px solid var(--line);margin-left:12px;}
.inbox-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;column-gap:10px;align-items:center;padding:4px 0;}
.inbox-row .inbox-assign{width:auto;min-height:40px;max-width:110px;padding:6px 8px;font-size:11px;line-height:1.35;white-space:normal;word-break:normal;overflow-wrap:normal;}
.inbox-row .row-content strong{font-size:13px;overflow-wrap:normal;word-break:normal;}
.inbox-reminder-setting{font-size:12px;margin:4px 0;}
.inbox-review-link{display:block;font-size:12px;color:var(--green);margin-top:5px;}
.demo-banner{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;padding:8px 10px;margin:0 0 12px;background:#eef1e9;border:1px solid var(--line);border-radius:10px;font-size:11px;}
.demo-banner>span{color:var(--muted);}
.demo-banner button{font-size:11px;padding:6px 8px;min-height:40px;}

.demo-banner{position:sticky;top:0;z-index:10;}
/* Match the specificity of older completed/history marker rules. */
.completed-group>summary::before,.missed-group>summary::before,.inbox-section>summary::before,.event-checklist-toggle::before{content:'';width:6px;height:6px;min-width:6px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:rotate(-45deg);margin:0 3px 0 1px;}
.completed-group[open]>summary::before,.missed-group[open]>summary::before,.inbox-section[open]>summary::before{content:'';transform:rotate(45deg);}

@media(max-width:999px){html{scroll-padding-bottom:96px;scroll-padding-top:100px;}}

/* Nested disclosures share one compact hierarchy, including future work. */
.future-preparation>summary{min-height:44px;padding:5px 0;color:var(--muted);font-size:12px;line-height:1.4;font-weight:400;justify-content:flex-start;}
.future-preparation .group-steps{margin-top:0;}
.task-group>.action-row>.navigation-chevron{border:0;background:none;color:var(--muted);font-size:20px;min-width:36px;min-height:44px;padding:4px;}
.group-steps .action-row>.small-edit{flex:0 0 44px;}
.settings-list details>summary{justify-content:flex-start;gap:10px;}
.settings-list>button{justify-content:flex-start;gap:10px;}
.settings-list>button>span{margin-left:auto;}
.settings-list summary{line-height:1.5;overflow-wrap:break-word;}
.task-group>.action-row{column-gap:6px;}
.settings-list>button{padding-left:20px;}
/* Keep nested overdue pencils beside their text rather than in the action row. */
.group-steps .action-row.has-task-actions{grid-template-columns:36px minmax(0,1fr) 44px;}
.group-steps .has-task-actions>.small-edit{grid-column:3;grid-row:1;}
.group-steps .has-task-actions>.task-resolution{grid-column:2 / -1;grid-row:2;}
@media(min-width:1000px){
 .group-steps .action-row.has-task-actions{grid-template-columns:36px minmax(0,1fr) 44px auto;}
 .group-steps .has-task-actions>.task-resolution{grid-column:4;grid-row:1;}
}

/* The entire nested row, including overflow actions, belongs to its disclosure. */
.task-group details:not([open])>.task-preparation-body{display:none!important;}
.task-preparation-summary>summary{min-height:44px;font-size:12px;color:var(--muted);padding:5px 0;}
.inbox-review-banner{padding:8px 0;border-bottom:1px solid var(--line);font-size:13px;}
.inbox-review-banner p{margin:0;}
.inbox-review-banner>div{display:flex;gap:12px;}
.inbox-review-banner button{min-height:44px;padding:5px 0;font-size:12px;}
#task-inbox-settings{margin:8px 0;}
#task-inbox-settings button{min-height:44px;font-size:12px;text-align:left;}
#task-inbox-settings small{display:block;font-size:11px;}

/* Action checklists reuse the compact Home rows; titles are navigation, never tasks. */
.checklist-heading{display:flex;align-items:center;gap:8px;min-width:0}
.checklist-heading>.row-content{padding:0;min-height:44px;flex:1;min-width:0;text-align:left}
.checklist-heading strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}
.checklist-corner{color:var(--muted);font-size:16px}
.action-checklist{padding-top:4px;padding-bottom:4px}
.action-checklist .checklist-item,.checklist-detail .checklist-item{grid-template-columns:44px minmax(0,1fr) 44px}
.checklist-item .row-content{min-width:0}
.checklist-item strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}
.checklist-item small{font-size:11px;font-weight:400}
.checklist-item .small-edit{min-width:44px;min-height:44px}
.action-checklist details>summary{min-height:44px;font-size:12px;color:var(--muted)}
.action-checklist details:not([open])>.checklist-body{display:none!important}
.checklist-edit-actions{display:flex;flex-wrap:wrap;gap:8px}
.checklist-edit-actions button{min-height:44px;font-size:12px}
.checklist-item-editor{min-width:0}
.checklist-edit-items{display:grid;gap:12px}

.checklist-heading>.navigation-chevron{border:0;background:none;color:var(--muted);font-size:20px;min-width:44px;min-height:44px;padding:4px}
