/* Warm, dark-first family rhythm. Custom theme choices remain supported. */
body.smart-ember{background:var(--bg)}
.smart-heading{padding:30px 0 24px}.smart-heading h1{font-size:clamp(30px,4vw,48px);letter-spacing:-1.4px;margin:8px 0 12px;line-height:1.15}.smart-heading p{max-width:65ch}.smart-dashboard{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.smart-dashboard>div>.card+.card{margin-top:22px}.smart-dashboard .card,.today-responsibilities{border:1px solid var(--line);box-shadow:0 12px 30px #0002;border-radius:20px}.smart-dashboard h2{font-size:22px}.payday-card .money{font-size:34px}.family-progress{padding:20px 0;border-bottom:1px solid var(--line)}.family-progress:last-child{border-bottom:0}.family-progress progress{margin:14px 0 0}.today-responsibilities{margin-bottom:24px}.responsibility-row,.assignment-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}.responsibility-row:last-child,.assignment-row:last-child{border-bottom:0}.responsibility-row h3{margin:8px 0}.assignment-row small{display:block;margin-top:5px}.status-approved{background:#284538!important}.status-pending_approval{background:#354153!important}.status-not_applicable,.status-skipped{background:#303a42!important}.status-missed{background:#49372c!important}.smart-bell{min-height:44px}.alert-count{border-radius:999px;background:var(--mint);color:var(--button-ink);padding:2px 7px}.template-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:310px;overflow:auto;margin:15px 0}.template-option{display:flex;flex-direction:column;text-align:left;min-height:70px;padding:14px}.template-option[hidden]{display:none}.template-option small{font-weight:normal;margin-top:5px}.checklist-step{display:flex;gap:12px;align-items:flex-start;padding:12px;border-bottom:1px solid var(--line)}input[type=checkbox]{min-width:20px;min-height:20px;accent-color:var(--mint)}.calendar-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.calendar-toolbar h2{font-size:21px}.calendar-toolbar label{display:flex;gap:10px;align-items:center}.calendar-toolbar select{margin:0;width:auto}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--panel)}.calendar-weekday{text-align:center;padding:14px;font-size:13px}.calendar-day{min-height:140px;padding:10px;border-top:1px solid var(--line);border-right:1px solid var(--line);overflow:hidden}.calendar-day.today{outline:2px solid var(--gold);outline-offset:-2px}.calendar-day>strong{display:block;margin-bottom:8px}.calendar-chip{font-size:11px;text-align:left;border-radius:6px;background:#2b3940!important;color:var(--ink)!important;padding:6px;margin-bottom:5px;width:100%;min-height:30px;border:0;line-height:1.35}.calendar-event{padding:16px;border-left:3px solid #85b8aa;margin-bottom:12px;background:var(--panel);border-radius:0 12px 12px 0}.calendar-event small{display:block;margin:6px 0}.source-google{border-left:3px solid #8aade0!important}.source-payday{border-left:3px solid #efb56d!important}.source-home{border-left:3px solid #9d9fae!important}.source-responsibility{border-left:3px solid #8ac4ae!important}.source-gig,.source-brain{border-left:3px solid #b7a6d3!important}.home-preview{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:18px 0}.home-day{display:flex;flex-direction:column;align-items:center;padding:10px 3px;border-radius:9px;border:1px solid var(--line)}.home-day.home{background:#284238}.home-day.away{background:#303540}.home-day small{font-size:11px}.home-day strong{font-size:18px;margin:4px}.tabs{gap:8px}.tabs button{min-height:48px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--gold);outline-offset:3px}dialog{max-width:680px}dialog textarea{resize:vertical}button{min-height:44px}.card h2{margin-top:0}
@media(max-width:760px){.smart-dashboard{grid-template-columns:1fr}.calendar-day{min-height:100px;padding:6px}.calendar-chip{font-size:10px;padding:5px}.calendar-toolbar{gap:8px}.template-options{grid-template-columns:1fr}.smart-heading{padding:20px 0}.calendar-weekday{padding:10px 2px}}
@media(max-width:540px){.calendar-grid{overflow-x:auto;grid-template-columns:repeat(7,minmax(60px,1fr))}.calendar-day{min-height:110px}.responsibility-row{align-items:flex-start;flex-direction:column}.shell{padding-bottom:110px}.tabs button{font-size:12px!important;padding:10px 5px!important;flex:1}.tabs{flex-wrap:nowrap!important}.smart-bell{font-size:12px}.brand small{display:none}.home-preview{gap:3px}.home-day{padding:8px 2px}.smart-heading h1{font-size:32px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Consistent surfaces across activity, review, money and account screens. */
body.smart-ember .grid{gap:18px}body.smart-ember .card{border-radius:18px;box-shadow:0 8px 22px #0002}body.smart-ember .card h3{line-height:1.3}body.smart-ember .card p{line-height:1.6}body.smart-ember .filters{margin:22px 0}body.smart-ember .section{margin-top:28px}body.smart-ember .grid>.card{padding:22px}body.smart-ember h1{letter-spacing:-.8px}body.smart-ember .pill{font-weight:600}.activity-preview h2{font-size:20px}.source-reminder{border-left:3px solid #d9b891!important}fieldset[hidden],section[hidden]{display:none!important}.smart-ember .tabs button[aria-current=page]{box-shadow:inset 0 -3px 0 var(--gold)}body.smart-ember .notice{border-radius:0 12px 12px 0}body.smart-ember .muted{color:var(--muted)}
@media(max-width:760px){body.smart-ember .grid{gap:14px}body.smart-ember .grid>.card{padding:18px}.calendar-toolbar .actions{flex-wrap:wrap}.calendar-toolbar label{width:100%}.template-options{max-height:40vh}}

.home-day,.home-day strong,.home-day small{color:var(--ink)}.home-day[aria-pressed=true]{border-color:var(--sage,#8ac4ae)}
.more-calendar-fallback{display:none}
@media(max-width:540px){.tabs.child-navigation{gap:2px}.tabs.child-navigation button{min-width:0;padding:9px 3px!important;font-size:11px!important}}
@media(max-width:380px){.tabs.child-navigation button{font-size:10px!important;padding:8px 1px!important}}

.family-member-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0 24px}.family-member-actions button{width:100%;white-space:normal}.family-member-subheading{margin:0 0 4px}.family-member-card .assignment-row button{flex:none}.family-member-add{margin-top:16px}.calendar-person{font-weight:500;color:var(--muted)}.calendar-mobile-day,.calendar-mobile-hint{display:none}.rotation-options{display:grid;gap:10px}.rotation-option{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid var(--line);border-radius:12px}.rotation-option input{flex:none;margin-top:3px}.rotation-option span{display:grid;gap:4px}.rotation-option small{color:var(--muted);line-height:1.4}#rotation-details[hidden]{display:none!important}
@media(max-width:540px){.family-member-card .assignment-row{gap:10px}.family-member-card .assignment-row>div{min-width:0}.family-member-card .assignment-row button{padding:8px 12px;min-width:58px}.family-member-actions{grid-template-columns:1fr 1fr;gap:8px}.family-member-actions button{font-size:14px;padding:9px 6px}.family-member-add button{width:100%}.calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));overflow:hidden}.calendar-weekday{font-size:11px;padding:8px 0}.calendar-day{min-height:74px;padding:5px 2px;text-align:center}.calendar-day>strong{font-size:13px;margin-bottom:6px}.calendar-day .calendar-chip,.calendar-day .quiet{display:none}.calendar-mobile-day{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:34px;padding:3px 0;font-size:14px;line-height:1.1;background:#2b3940;color:var(--ink);border:0;border-radius:8px}.calendar-mobile-day small{font-size:8px}.calendar-mobile-hint{display:block;margin:0 0 8px}}
.payday-card-action{margin-top:18px}
.calendar-presence-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin:0 0 14px;font-size:13px}.calendar-presence-legend>span{display:inline-flex;align-items:center;gap:6px}.calendar-presence-legend i,.calendar-presence-detail i{display:inline-block;width:13px;height:13px;border-radius:4px;flex:none}.calendar-presence-legend small{width:100%;color:var(--muted)}.calendar-presence{display:flex;width:100%;height:11px;gap:2px;margin:5px 0 9px;background:#26323a;border-radius:5px;overflow:hidden}.calendar-presence-slice{flex:1;min-width:0;background:var(--presence-color)}.calendar-presence-slice.is-away{opacity:.25}.calendar-date{display:block;min-height:32px;padding:2px 5px;margin:0 0 2px;background:transparent;border:0;color:var(--ink);font-weight:700;text-align:left}.calendar-home-row{display:flex;align-items:center;gap:12px;padding:8px 12px;border-bottom:1px solid var(--line)}.calendar-home-row button{min-width:130px}.calendar-home-row .calendar-presence{max-width:280px;margin:0}.calendar-day-details{margin:16px 0}.calendar-presence-detail{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.calendar-presence-detail button{margin-left:auto}.family-member-card .assignment-row .actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:540px){.calendar-date{width:100%;text-align:center;min-height:32px}.calendar-presence{height:8px;margin:2px 0 6px}.calendar-home-row button{min-width:100px}.family-member-card .assignment-row{align-items:flex-start;flex-direction:column}.family-member-card .assignment-row .actions{width:100%}.family-member-card .assignment-row .actions button{flex:1}.calendar-presence-detail{flex-wrap:wrap}.calendar-presence-detail button{width:100%;margin-left:0}}
.calendar-presence{height:16px}.calendar-presence-slice{display:grid;place-items:center}.calendar-presence-slice b{font-size:10px;line-height:1;color:#fff;text-shadow:0 1px 2px #000,0 0 2px #000}
@media(max-width:540px){.calendar-presence{height:14px}.calendar-presence-slice b{font-size:9px}}

.calendar-day-weekday{display:none}
.gig-template-filters{display:grid;grid-template-columns:minmax(140px,1fr) minmax(200px,2fr);gap:12px;margin:18px 0}.gig-template-filters label{min-width:0}.gig-template-filters select,.gig-template-filters input{margin-top:6px}.gig-template-row[hidden]{display:none}.gig-template-row small{display:block;margin-top:4px}.gig-template-row button{flex:none}
@media(max-width:540px){.gig-template-filters{grid-template-columns:1fr}.gig-template-row{gap:10px}.gig-template-row button{padding:8px 10px;font-size:13px}}
.brain-template-row[hidden],.wheel-template-row[hidden]{display:none}
.brain-template-row>div,.wheel-template-row>div{min-width:0}
.brain-template-row p{margin:6px 0}
.wheel-template-row .prize-swatch{vertical-align:middle;margin-right:7px}
@media(max-width:540px){.brain-template-row,.wheel-template-row{align-items:flex-start}.brain-template-row button,.wheel-template-row button{flex:none;padding:8px 10px;font-size:13px}}
.calendar-week-view{display:grid;gap:12px}.calendar-week-day{display:grid;grid-template-columns:minmax(145px,1fr) minmax(0,3fr);gap:18px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.calendar-week-day.today{outline:2px solid var(--gold)}.calendar-week-day-heading button{font-weight:700;width:100%;text-align:left}.calendar-week-day-heading .calendar-presence{max-width:210px}.calendar-week-events .calendar-event:last-child{margin-bottom:0}.calendar-week-events .muted{margin:8px 0}
@media(max-width:540px){.calendar-week-day{grid-template-columns:1fr;gap:8px;padding:12px}.calendar-week-day-heading .calendar-presence{max-width:100%}.calendar-week-day-heading button{width:auto}.calendar-week-events .calendar-event{padding:10px 12px;margin-bottom:8px}}

/* Keep the assignment wizard inside the mobile viewport. */
dialog{box-sizing:border-box;overflow:auto}#modal-body{min-width:0}
.rotation-options{min-width:0;width:100%;box-sizing:border-box}
.rotation-option{width:100%;min-width:0;margin:0;box-sizing:border-box}
.rotation-option input[type=radio]{display:block;width:22px;height:22px;min-width:22px;min-height:22px;flex:0 0 22px;margin:1px 0 0;padding:0;accent-color:var(--mint)}
.rotation-option span{min-width:0;flex:1;overflow-wrap:anywhere}
/* Show direct destinations on wider screens while keeping the phone bar concise. */
@media(max-width:899px){.tabs .desktop-nav-item{display:none}}
/* A centered month heading keeps the calendar controls predictable on phones. */
.calendar-toolbar{display:grid;gap:12px;justify-content:stretch}
.calendar-month-nav{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:10px;width:min(100%,480px);margin:0 auto}
.calendar-month-nav h2{margin:0;text-align:center;font-size:clamp(20px,4vw,25px);white-space:nowrap}
.calendar-month-nav button{width:44px;min-height:44px;padding:0;font-size:30px;line-height:1}
.calendar-view-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px}
.calendar-view-actions label{display:flex;align-items:center;gap:8px;margin:0;width:auto}
.calendar-view-actions select{width:auto;min-width:150px;margin:0}
@media(max-width:540px){.calendar-toolbar{gap:10px}.calendar-view-actions{justify-content:flex-start}.calendar-view-actions label{width:100%;margin-top:2px}.calendar-view-actions select{flex:1;min-width:0}.calendar-month-nav h2{font-size:21px}}
