/* Hearth: shared material, adaptive navigation and task-focused projections.
   Member ownership colors and segments remain defined in styles.css. */
/* Character art complements, never replaces, the ownership colors/text. */
.filter-row .profile-avatar{width:30px;height:30px;flex:none}
.filter-row .member-chip{display:inline-flex;align-items:center;gap:6px;min-height:48px}
.calendar-member-avatars{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;margin:0 0 6px;grid-column:1/-1;pointer-events:none}
.calendar-member-identity{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;min-width:0}
.calendar-member-name{font-size:12px;line-height:1.4;color:var(--ink)}
.calendar-member-avatars .profile-avatar{width:24px;height:24px;flex:none}
.calendar-chip .calendar-member-avatars .profile-avatar{width:20px;height:20px}
:root{--bg:#eee9df;--paper:#fffcf4;--rail:#e1e8e7;--ink:#223746;--muted:#4e6270;--line:#aab9bc;--teal:#234e59;--soft:#dce7e7;--radius:16px;font-family:Verdana,"Segoe UI",sans-serif}
[hidden]{display:none!important}
h1,h2,.brand{font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-.5px}
h2{font-size:26px}button,input,select{min-height:44px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-color:#276797}
.shell{grid-template-columns:80px minmax(0,1fr)}.shell.expanded{grid-template-columns:222px minmax(0,1fr)}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.rail{padding-inline:12px}.rail .brand{padding-inline:6px}
.rail span:not(.avatar),.rail .lock{display:none}
.expanded .rail span,.expanded .rail .lock{display:inline}
.rail .rail-toggle{display:flex;padding:8px 10px;min-width:44px}
.rail .nav-button{min-width:44px;justify-content:center}
.expanded .rail .nav-button{justify-content:flex-start}
.rail .rail-bottom{padding:0;width:100%}
.rail-lock{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-width:44px;min-height:44px;padding:8px}
.rail-lock:hover{background:#365f69}
.rail{background:#234e59;color:var(--paper);padding:24px 14px;gap:22px;border:0}
.rail .brand{color:var(--paper);font-size:34px;padding:0 6px;gap:12px}
.rail .brand span{font-size:21px;letter-spacing:-.5px}
.rail .nav-button{height:auto;min-height:50px;padding:12px 10px;gap:10px;font-size:13px;text-align:left;border-radius:10px}
.rail .nav-button.active{background:var(--paper);color:var(--teal)}.rail .nav-button:hover:not(.active){background:#365f69}
.rail .nav-button .lock{font-size:10px;color:inherit}.rail .nav-button svg{width:21px;height:21px}.rail .rail-caption{color:var(--paper)}
.rail :focus-visible{outline-color:var(--paper)}.rail .avatar{background:var(--paper);color:var(--teal)}
@media(min-width:701px){
 /* Keep collapsed chrome on the same centerline as the navigation icons. */
 .shell:not(.expanded) .rail .brand,
 .shell:not(.expanded) .rail .rail-toggle{justify-content:center;padding-inline:0}
 .rail .nav-items{min-height:0;flex-shrink:1;overflow-y:auto;scrollbar-width:thin}
 .rail .nav-button,.rail .rail-toggle{flex-shrink:0}
}
.topbar{background:transparent;border-bottom:1px solid var(--line);min-height:66px;padding:8px 28px}.topbar h1{font-size:23px}
main{padding:24px 28px 32px}.period-label{font-size:25px}.toolbar{gap:16px;margin-bottom:16px}.filter-row{margin-bottom:20px;gap:8px}
.segmented{background:#e1e5dd;border-color:var(--line);border-radius:10px}.segmented .selected,.segmented button[aria-pressed=true]{background:var(--teal);color:var(--paper)}
.quiet{background:var(--paper);border:1px solid var(--line)}.primary{background:var(--teal);color:var(--paper)}
.calendar-board,.settings-section,.betting-metric{border-radius:var(--radius)}.settings-section{background:var(--paper);padding:24px;margin-bottom:18px;border-color:var(--line)}
.live-calendar-board .week-grid{grid-template-columns:repeat(7,minmax(112px,1fr));min-width:784px;min-height:330px}.live-calendar-board .day-column{min-height:330px}
.live-calendar-board .day-heading{background:var(--paper);gap:6px}.live-calendar-board .day-heading span{font-size:12px}.calendar-chip{border-radius:9px;padding:10px 8px}
.calendar-event{border-radius:12px}.calendar-write-warning{padding:16px;background:#f3e2c7;border:1px solid #a8834e;border-radius:12px;margin-bottom:16px}.calendar-write-warning p{margin-bottom:10px}
.mobile-navigation,.calendar-day-hub,.period-short{display:none}
#help{min-width:44px}
.agenda-item.calendar-event.calendar-shared,.calendar-chip.calendar-shared{background:#eee7d8}
.movie-filters{grid-template-columns:minmax(160px,2fr) repeat(4,minmax(0,1fr))}
.movie-advanced{grid-column:1/-1}.movie-advanced summary{min-height:44px;padding:12px 0;cursor:pointer;font-size:13px;color:var(--muted)}.movie-advanced-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:10px 0}
.movie-modes{display:inline-flex;align-self:flex-start;margin-bottom:18px}.movie-shelf{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.movie-shelf-card{min-width:0;overflow-wrap:anywhere;padding:24px;background:var(--paper);border:1px solid var(--line);border-radius:16px;border-top:5px solid var(--teal)}
.movie-shelf-card .eyebrow{font-size:11px;letter-spacing:1px}.movie-shelf-card h3{margin-bottom:12px}.movie-shelf-toggle{font-family:Georgia,"Times New Roman",serif;font-size:28px;font-weight:400;text-align:left;line-height:1.2;padding:6px 0;width:100%;white-space:normal}
.movie-shelf-toggle::after{content:' +';font-family:Verdana,sans-serif;font-size:20px}.movie-shelf-toggle[aria-expanded=true]::after{content:' −'}
.movie-release-date{font-size:18px;margin:0 0 6px;font-variant-numeric:tabular-nums}.movie-shelf-card .muted,.movie-platform{font-size:13px}.movie-platform{font-weight:600}.movie-shelf-card .movie-detail{padding-top:16px;border-top:1px solid var(--line)}
@media(max-width:700px){
 .shell,.shell.expanded{display:block}.rail{display:none}.workspace{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
 .period-full{display:none}.period-short{display:inline}.date-navigation button{min-width:44px}.date-navigation .period-label{margin-right:auto;font-size:22px}
 .mobile-navigation{display:grid;grid-template-columns:repeat(var(--navigation-count,7),minmax(44px,1fr));overflow-x:auto;gap:2px;position:fixed;bottom:0;left:0;right:0;z-index:20;background:var(--paper);border-top:1px solid var(--line);padding:6px 8px calc(6px + env(safe-area-inset-bottom))}
 .mobile-navigation button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:44px;min-height:60px;padding:6px 0 15px;font-size:9px;white-space:nowrap}.mobile-navigation svg{width:20px;height:20px;flex:none}.mobile-nav-lock{position:absolute;bottom:3px;font-size:8px;font-weight:400;line-height:10px}.mobile-navigation [aria-current=page]{background:var(--teal);color:var(--paper)}
 .topbar{padding:8px 16px;min-height:64px}.topbar h1{font-size:20px}.top-actions{gap:4px}.top-actions .quiet{font-size:12px}
 main{padding:20px 16px}.period-label{font-size:22px}.toolbar{gap:12px}.filter-row{margin-bottom:18px;gap:6px}.member-chip{padding:8px;font-size:12px}
 .calendar-day-hub{display:block}.hearth-week>.live-calendar-board,.hearth-week>#calendar-details{display:none}
 .day-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:18px}.day-strip button{display:grid;justify-items:center;padding:8px 2px;min-width:0;border-radius:10px;gap:5px}.day-strip span{font-size:10px}.day-strip strong{font-size:20px;font-weight:400}.day-strip [aria-pressed=true]{background:var(--teal);color:var(--paper)}
 .hub-day{padding:20px 16px;background:var(--paper);border:1px solid var(--line);border-radius:16px}.hub-day h2{font-size:25px;margin-bottom:18px}.hub-day>.calendar-event{margin-bottom:14px}.hub-day .calendar-event-actions{flex-wrap:wrap}
 .coming-up{margin-top:20px;padding:22px 18px;background:#e6decf;border:1px solid #b9ac94;border-radius:16px}.coming-up h2{font-size:24px}.coming-day{display:grid;gap:7px;width:100%;text-align:left;white-space:normal;border-top:1px solid #b9ac94;border-radius:0;padding:14px 0}.coming-day span,.coming-day small{font-size:12px}.coming-day strong{font-size:14px}
 .movie-filters,.movie-advanced-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.movie-filters>label:first-child{grid-column:1/-1}
 .movie-shelf{grid-template-columns:minmax(0,1fr);gap:16px}.movie-shelf-card{padding:22px}.movie-shelf-toggle{font-size:28px}.movie-modes{width:auto}.movie-modes button{min-width:80px}
}
@media(max-width:600px){
 .calendar-personalize-dialog{padding:16px;overflow-wrap:anywhere;scroll-padding-block:16px}
 .calendar-personalize-dialog .family-review-card{padding:12px}
 .calendar-personalize-dialog .review-choice{padding:10px;gap:8px;font-size:16px}
}
@media(max-width:360px){.day-strip{grid-template-columns:repeat(4,minmax(0,1fr))}.day-strip button{min-width:44px}.topbar{gap:8px;padding-inline:12px}.topbar h1{font-size:18px}main{padding-inline:12px}}

/* Bets history: one memory-only ledger, with normal page scrolling. */
.betting-pane-switch{display:flex;gap:8px;margin:-8px 0 28px}
.betting-pane-switch button{min-width:88px;border:1px solid transparent;background:transparent}
.betting-pane-switch button[aria-pressed=true]{background:var(--soft);border-color:var(--line);font-weight:600}
.betting-history{border:0;margin:0;padding:0;min-width:0}
.betting-history>h2{margin:0 0 8px}.betting-history>p.muted{font-size:12px;margin:0 0 16px}
.betting-history-scopes{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.betting-history-scopes button{white-space:normal;font-size:12px;padding:10px 12px}
.betting-history-scopes [aria-pressed=true]{background:var(--teal);color:var(--paper);border-color:var(--teal)}
.betting-history-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);align-items:end}
.betting-history label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:11px;color:var(--muted);margin:0;font-weight:400}
.betting-history-filters>label:first-child{grid-column:span 2}
.betting-history input,.betting-history select{min-width:0;width:100%;max-width:100%;font:inherit;font-size:12px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fffef9;color:var(--ink)}
.betting-history button{min-width:44px;min-height:44px;white-space:normal;font-size:12px}
.betting-history-advanced{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;grid-column:1/-1}
.betting-history-chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.betting-history-chips:empty{display:none}.betting-history-chips button{max-width:100%;overflow-wrap:anywhere;padding:8px 12px}
.betting-history-warning{background:#f3e2c7;border:1px solid #a8834e;padding:14px;border-radius:10px}
.betting-history-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 16px}
.betting-history-metric{display:flex;flex-direction:column;gap:8px;min-width:0;background:#e1e5dd;border-radius:12px;padding:14px;overflow-wrap:anywhere}
.betting-history-metric>span,.betting-history-metric>small{font-size:11px;line-height:1.5;color:var(--muted)}
.betting-history-metric>strong{font-size:24px;font-weight:400;line-height:1.2;font-variant-numeric:tabular-nums}
.betting-history-count{font-size:12px;font-weight:600;margin:12px 0}
.betting-history>label{max-width:220px;margin:0 0 12px auto}
.betting-history-rows{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:clip;overflow-wrap:anywhere;min-width:0}
.betting-history-rows>p{padding:14px;font-size:12px;line-height:1.5}
.betting-history-columns,.betting-history-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.6fr) minmax(0,.7fr) minmax(0,.8fr) minmax(0,.8fr);gap:10px 16px;padding:16px;align-items:start}
.betting-history-columns{font-size:11px;color:var(--muted);border-bottom:1px solid var(--line);background:#f0efe6}
.betting-history-row+.betting-history-row{border-top:1px solid var(--line)}
.betting-history-row>*{min-width:0}.betting-history-player strong{display:block;font-size:14px;margin-bottom:6px}
.betting-history-player small,.betting-history-first-sent{display:block;font-size:11px;line-height:1.5;color:var(--muted)}
.betting-history-terms,.betting-history-actual{font-size:12px;line-height:1.6}
.betting-history-result{justify-self:start;font-size:11px;line-height:1.4;font-weight:600;padding:4px 8px;border-radius:5px;background:#ede9e0}
.betting-history-net{font-size:15px;font-variant-numeric:tabular-nums;justify-self:end}
.betting-history .result-win{color:#236047}.betting-history-result.result-win{background:#e1eadf}
.betting-history .result-loss{color:#8c3f38}.betting-history-result.result-loss{background:#f3e1dc}
.betting-history .result-unresolved,.betting-history .result-void,.betting-history .result-push{color:#5e6262}
.betting-history-expand{grid-column:1/-1;justify-self:start;background:transparent;border:0;padding:8px 0;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.betting-history-detail{grid-column:1/-1;border-top:1px dashed var(--line);padding-top:8px;font-size:12px;line-height:1.6}
.betting-history-detail p{margin:8px 0}.betting-history-signal .betting-history-first-sent{grid-column:1/-1}
.betting-history-pager{display:flex;justify-content:space-between;gap:12px;margin:16px 0}
@media(max-width:700px){
 .betting-history-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:12px 10px}
 .betting-history-filters>label:first-child{grid-column:1/-1}.betting-history-advanced{grid-template-columns:repeat(2,minmax(0,1fr))}
 .betting-history-scopes{flex-wrap:nowrap;gap:6px}.betting-history-scopes button{padding:10px 8px;font-size:11px}
 .betting-history-metric{padding:12px;gap:6px}.betting-history-metric>span,.betting-history-metric>small{font-size:10px}
 .betting-history-metric>strong{font-size:23px}.betting-history-columns{display:none}
 .betting-history-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'player net' 'terms terms' 'actual result' 'expand expand' 'detail detail';gap:10px 12px;padding:14px 12px}
 .betting-history-player{grid-area:player}.betting-history-terms{grid-area:terms}.betting-history-actual{grid-area:actual}
 .betting-history-result{grid-area:result;justify-self:end}.betting-history-net{grid-area:net}
 .betting-history-expand{grid-area:expand}.betting-history-detail{grid-area:detail}
 .betting-history-signal{grid-template-areas:'player player' 'terms terms' 'result result' 'sent sent'}
 .betting-history-signal .betting-history-result{justify-self:start}.betting-history-signal .betting-history-first-sent{grid-area:sent}
}

/* Full agenda cards, natural column heights; only the page scrolls vertically. */
.three-day-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:16px;min-width:0}
.three-day-panel{min-width:0;padding:14px;background:var(--paper);border:1px solid var(--line);border-radius:16px;overflow-wrap:anywhere}
.three-day-panel h2{font-size:23px;margin:4px 0 14px}.three-day-panel>.calendar-event{margin:0 0 10px;padding:12px;display:block}
.three-day-panel .calendar-event-heading{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;margin-bottom:6px}
.three-day-panel .calendar-event-title{flex:0 1 auto;min-width:0;width:auto;overflow-wrap:anywhere}
.three-day-panel .calendar-member-avatars{margin:0 0 0 auto;max-width:100%;justify-content:flex-end;flex:0 1 auto}
.three-day-panel .calendar-event-actions{flex-wrap:wrap;gap:6px}.three-day-panel .calendar-event-description{white-space:pre-wrap}

.three-day-tabs{display:none}
/* C: desktop display chrome and time gutter. Mobile retains swipe/peek. */
.three-day-toolbar .rewards-shortcut-group,.three-day-create-desktop{display:none}
@font-face{font-family:CalendarRewardNunito;src:url('./rewards-nunito-900.ttf') format('truetype');font-weight:900;font-display:swap}
@media(min-width:701px){
 main:has(.three-day-toolbar){padding:12px 16px 24px}
 .three-day-toolbar{gap:12px;margin-bottom:12px;align-items:center}
 .three-day-toolbar>.date-navigation,.three-day-create-mobile{display:none}
 .three-day-create-desktop{display:inline}
 .three-day-toolbar .filter-row{margin:0;gap:8px;flex-wrap:nowrap}
 .three-day-toolbar .member-chip{white-space:nowrap;flex:none}
 .three-day-toolbar .text-button{white-space:nowrap;font-size:12px;padding-inline:8px}
 .three-day-toolbar .calendar-actions{flex:none;gap:8px;flex-wrap:nowrap}
 .three-day-toolbar .segmented{display:flex;flex:none}
 .three-day-toolbar .segmented button{min-width:54px;white-space:nowrap}
 .three-day-toolbar .primary{white-space:nowrap}
 .three-day-toolbar .rewards-shortcut-group{display:flex;align-items:center;justify-content:center;align-self:stretch;flex:1;min-width:224px;border-inline:1px solid var(--line);padding-inline:12px}
 .three-day-toolbar .rewards-shortcut{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:#ebe1fa;color:#5b3f8d;border:2px solid #b396d2;border-radius:22px;min-height:62px;padding:3px 10px;box-shadow:0 4px 0 #cdb9df;font:900 20px/1.2 CalendarRewardNunito,'Trebuchet MS',sans-serif;white-space:nowrap}
 .three-day-toolbar .rewards-shortcut:hover{background:#e2d2f5;border-color:#a587c7}
 .three-day-toolbar .rewards-shortcut:active{box-shadow:0 1px 0 #cdb9df;transform:translateY(2px)}
 .three-day-toolbar .rewards-shortcut .profile-avatar{width:48px;height:52px;flex:none;background:transparent}
 .three-day-board{gap:10px}
 .three-day-panel{padding:10px}
 .three-day-panel> .eyebrow{display:inline;margin-right:10px}
 .three-day-panel>h2{display:inline;font-size:22px;line-height:1.5}
 .three-day-panel>.calendar-event{display:grid;grid-template-columns:98px minmax(0,1fr);gap:2px 10px;padding:10px 10px 16px;margin:8px 0 0}
 .three-day-panel .calendar-event-heading{grid-column:2;grid-row:1;align-self:start;gap:4px;margin:0}
 .three-day-panel .calendar-event-time{grid-column:1;grid-row:1 / span 3;border-right:1px solid #22374630;padding-right:8px;margin:0;font-size:13px;line-height:1.5;display:block}
 .three-day-panel .calendar-event-date{display:none}
 .three-day-panel .calendar-event-location,.three-day-panel .calendar-event-description{grid-column:2}
 .three-day-panel .calendar-member-avatars{margin-left:0;gap:5px}
 .three-day-panel .calendar-member-name{font-size:11px}
 .three-day-panel .calendar-member-avatars .profile-avatar{width:22px;height:22px}
}
@media(min-width:701px) and (max-width:1200px){
 .three-day-toolbar{gap:8px}
 .three-day-toolbar .filter-row{gap:3px}
 .three-day-toolbar .member-chip{padding:8px 5px;gap:3px;font-size:12px}
 .three-day-toolbar .filter-row .profile-avatar{width:24px;height:24px}
 .three-day-toolbar .text-button{padding-inline:5px;font-size:11px}
 .three-day-toolbar .calendar-actions{gap:6px}
 .three-day-toolbar .segmented button{padding-inline:6px;font-size:12px}
 .three-day-toolbar .primary{padding-inline:7px;font-size:11px}
 .three-day-toolbar .rewards-shortcut-group{min-width:190px;padding-inline:5px}
 .three-day-toolbar .rewards-shortcut{font-size:18px;padding:3px 7px;gap:2px}
 .three-day-toolbar .rewards-shortcut .profile-avatar{width:40px;height:50px}
 .three-day-panel>.calendar-event{grid-template-columns:70px minmax(0,1fr);gap:2px 8px}
}
@media(min-width:701px) and (max-width:950px){
 .three-day-toolbar .filter-row{flex-wrap:wrap;flex:1 1 100%}
 .three-day-toolbar .rewards-shortcut-group{flex:1 1 auto}
 .three-day-toolbar .calendar-actions{flex-wrap:wrap}
 .three-day-panel>.calendar-event{grid-template-columns:50px minmax(0,1fr);padding:8px;gap:2px 6px}
}
/* Expanded rail leaves too little room for full identities beside a time gutter. */
@media(min-width:701px) and (max-width:800px){
 .expanded .three-day-panel>.calendar-event{grid-template-columns:minmax(0,1fr)}
 .expanded .three-day-panel .calendar-event-time{grid-column:1;grid-row:auto;border-right:0;padding-right:0}
 .expanded .three-day-panel .calendar-event-heading{grid-column:1;grid-row:auto}
 .expanded .three-day-panel .calendar-event-location,.expanded .three-day-panel .calendar-event-description{grid-column:1}
}
@media(max-width:700px){
 .three-day-toolbar>.date-navigation{order:1}
 .three-day-toolbar>.calendar-actions{order:2}
 .three-day-toolbar>.filter-row{order:3;width:100%;margin:4px 0 2px}
 .three-day-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 12px}
 .three-day-tabs button{white-space:normal;font-size:11px;padding:8px 4px}
 .three-day-tabs [aria-selected=true]{background:var(--teal);color:var(--paper)}
 .three-day-board{display:flex;align-items:flex-start;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding-bottom:8px;scrollbar-width:thin}
 .three-day-panel{flex:0 0 calc(100% - 28px);scroll-snap-align:start;padding:12px;box-shadow:3px 2px 8px #22374618}
 .three-day-panel:last-child{scroll-snap-align:end}
}
/* Matching compact full-detail event cards, including 3 Days (no time gutter). */
.calendar-event .calendar-event-heading{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:8px;margin:0;min-width:0}
.calendar-event-heading .calendar-event-title{flex:1 1 0;min-width:0;width:auto;overflow-wrap:anywhere;font-size:14px;line-height:1.45}
.calendar-event-heading .calendar-member-avatars{flex:0 1 40%;min-width:min-content;max-width:40%;justify-content:flex-end;align-items:flex-start;margin:0;gap:4px 7px;grid-column:auto}
.calendar-event-heading .calendar-member-name{font-size:11px;line-height:22px}
.calendar-event-heading .profile-avatar{width:22px;height:22px;flex:none}
.three-day-board .three-day-panel>.calendar-event{display:block;padding:10px 12px;margin:8px 0 0}
.three-day-board .three-day-panel .calendar-event-heading{grid-column:auto;grid-row:auto}
.three-day-board .three-day-panel .calendar-event-time{grid-column:auto;grid-row:auto;border:0;padding:0;margin:5px 0 0;display:block;font-size:11px;line-height:1.5}
.three-day-panel .calendar-event-date{display:none}
.calendar-event .calendar-event-location,.calendar-event .calendar-event-description{font-size:12px;line-height:1.5;margin:5px 0 0;overflow-wrap:anywhere}
/* Approved compact Settings A: same-page disclosures, one bounded column. */
.settings.settings-compact{display:block;max-width:770px;min-width:0;width:100%;margin:0 auto;overflow-wrap:anywhere}
.settings-compact .settings-title{font-size:30px;margin:0 0 18px}
.settings-compact .settings-account{display:flex;align-items:center;gap:12px;margin:0 0 20px;min-width:0}
.settings-account>div{min-width:0}.settings-account strong,.settings-account small{display:block}.settings-account strong{font-size:16px;margin-bottom:5px}.settings-account small{font-size:12px;line-height:1.5}
.settings-account>.profile-avatar{width:46px;height:46px}
.settings-compact .settings-panel,.settings-compact .profiles-settings{max-width:none;border:1px solid var(--line);border-radius:14px;background:var(--paper);margin:0 0 12px;padding:0;min-width:0}
.settings-compact .settings-panel>summary,.settings-compact .profiles-settings>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;min-height:72px;padding:14px 18px;cursor:pointer;line-height:1.4;border:0}
.settings-compact .settings-panel>summary::-webkit-details-marker,.settings-compact .profiles-settings>summary::-webkit-details-marker{display:none}
.settings-compact .settings-panel>summary:after,.settings-compact .profiles-settings>summary:after{content:'›';font:24px Georgia,serif;flex:none}
.settings-compact .settings-panel[open]>summary:after,.settings-compact .profiles-settings[open]>summary:after{transform:rotate(90deg)}
.settings-summary-text{min-width:0}.settings-summary-text strong,.settings-summary-text small{display:block}.settings-summary-text strong{font-size:15px;font-weight:600}.settings-summary-text small{font-size:12px;font-weight:400;margin-top:4px}
.settings-compact .settings-panel[open]>summary,.settings-compact .profiles-settings[open]>summary{border-bottom:1px solid var(--line)}
.settings-compact .settings-panel-content,.settings-compact .profiles-content{padding:16px 18px}
.settings-compact .settings-panel-content p,.settings-compact .photo-settings p{font-size:13px;line-height:1.65;margin:0 0 12px}
.settings-compact .settings-panel-content>button{margin:0 8px 8px 0}
.settings-compact .tasks-settings{border:0;border-radius:0;padding:0;margin:0;background:transparent;min-width:0}
.settings-compact .tasks-settings .quiet{margin-top:0}
.settings-compact .tasks-settings .tasks-setting-actions{align-items:center}
.settings-compact .tasks-settings h2{font:600 15px/1.4 Verdana,"Segoe UI",sans-serif;margin:0 0 10px;letter-spacing:0}
.settings-compact .tasks-settings label{display:grid;gap:6px;font-size:13px;min-width:0}
.settings-compact .tasks-settings select{width:100%;max-width:100%;min-width:0;font-size:14px}
.settings-compact .tasks-meta{font-size:12px;gap:8px;margin:0 0 12px;min-width:0}
.settings-compact .tasks-message:empty{display:none}
.settings-compact .settings-sources{border-top:1px solid var(--line);margin-top:16px;padding-top:4px}
.settings-compact .settings-sources>summary,.settings-compact .tasks-permissions>summary,.settings-compact .photo-details>summary{min-height:44px;padding:12px 0;font-size:12px;cursor:pointer}
.settings-compact summary:focus-visible{outline:3px solid #276797;outline-offset:3px;border-radius:8px}
.settings-compact .identity-options{display:flex;flex-wrap:wrap;gap:8px}
.settings-compact .settings-session{margin-bottom:16px}
@media(max-width:360px){.settings-compact .settings-panel>summary,.settings-compact .profiles-settings>summary{padding-inline:14px}.settings-compact .settings-panel-content,.settings-compact .profiles-content{padding-inline:14px}}

/* Personal Google-login area: approved quiet underline tab treatment. */
.tadas-area{min-width:0}
.tadas-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}
.tadas-heading h1{font:400 34px/1.2 Georgia,"Times New Roman",serif;margin:0}
.tadas-heading p{font-size:12px;margin:6px 0 0}
.tadas-login{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--teal);white-space:nowrap}
.tadas-login::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--teal)}
.tadas-tabs{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);margin-bottom:24px}
.tadas-tabs button{display:flex;align-items:center;gap:8px;min-height:46px;padding:8px 18px;border-radius:0;border-bottom:3px solid transparent;color:var(--muted);font-size:13px}
.tadas-tabs button[aria-selected="true"]{border-bottom-color:var(--teal);color:var(--teal)}
.tadas-tabs svg{width:18px;height:18px}
.tadas-panel{min-width:0}
.tadas-panel>h2{font:400 26px/1.2 Georgia,"Times New Roman",serif;margin:0 0 8px}
.tadas-panel .monitors-sub{font-size:12px;color:var(--muted);line-height:1.6;margin:0 0 22px}
.tadas-panel .monitors-card{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:20px;max-width:860px}
.tadas-panel .monitors-card h3{font:400 22px/1.2 Georgia,"Times New Roman",serif;margin:0 0 6px}
.tadas-panel .monitors-room{font-size:12px;color:var(--muted);margin:0 0 14px}
.tadas-panel .monitors-metrics{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin:12px 0 18px}
.tadas-panel .monitors-metric+ .monitors-metric{border-left:1px solid var(--line);padding-left:24px}
.tadas-panel .monitors-metric dt{font-size:12px;color:var(--muted);margin-bottom:12px}
.tadas-panel .monitors-value{font:400 32px/1.2 Georgia,"Times New Roman",serif;color:var(--teal);margin:0}
.tadas-panel .monitors-value small{font:400 22px Georgia,"Times New Roman",serif}
.tadas-panel .monitors-freshness{border-top:1px solid var(--line);padding-top:16px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted);line-height:1.8}
.tadas-panel .monitors-status{font-size:12px;color:var(--muted);line-height:1.6}
.tadas-panel .monitors-trend{border-top:1px solid var(--line);padding-top:18px;margin-bottom:20px;min-width:0}
.tadas-panel .monitors-trend-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.tadas-panel .monitors-trend h4{font:600 13px Verdana,"Segoe UI",sans-serif;margin:0}
.tadas-panel .monitors-range{font-size:11px;color:var(--muted);margin:6px 0 0}
.tadas-panel .monitors-switch{display:flex;border:1px solid var(--line);border-radius:9px;overflow:hidden;max-width:100%}
.tadas-panel .monitors-switch button{min-width:44px;min-height:44px;border:0;border-radius:0;padding:10px 14px;background:transparent;color:var(--muted);font-size:11px;box-shadow:none}
.tadas-panel .monitors-switch button[aria-pressed="true"]{color:var(--paper);background:var(--teal)}
.tadas-panel .monitors-axis-unit{font-size:10px;color:var(--muted);margin:0 0 5px}
.tadas-panel .monitors-chart{display:block;width:100%;height:224px;touch-action:pan-y;overflow:visible}
.tadas-panel .monitors-chart[hidden]{display:none}
.tadas-panel .monitors-chart text{font:10px Verdana,"Segoe UI",sans-serif;fill:var(--muted)}
.tadas-panel .monitors-grid{stroke:var(--line);stroke-opacity:.35;stroke-width:1}
.tadas-panel .monitors-line{stroke:var(--teal);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;fill:none}
.tadas-panel .monitors-point{fill:var(--teal)}
.tadas-panel .monitors-cursor{stroke:var(--line);stroke-dasharray:3 4}
.tadas-panel .monitors-selected-point{fill:var(--teal);stroke:var(--paper);stroke-width:2}
.tadas-panel .monitors-selected{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:11px 12px;border-radius:8px;background:var(--soft);font-size:11px;color:var(--teal)}
.tadas-panel .monitors-selected[hidden]{display:none}
.tadas-panel .monitors-hint,.tadas-panel .monitors-history-empty,.tadas-panel .monitors-history-coverage{font-size:11px;color:var(--muted);line-height:1.7;margin:10px 0 0}
.tadas-panel .monitors-chart:focus-visible,.tadas-panel .monitors-switch button:focus-visible{outline:3px solid #276797;outline-offset:3px}
@media(max-width:700px){.tadas-panel .monitors-trend-head{align-items:flex-start;flex-direction:column}.tadas-panel .monitors-card{padding:18px 16px}.tadas-panel .monitors-chart{height:192px}.tadas-panel .monitors-selected{font-size:10px}.tadas-panel .monitors-metric+ .monitors-metric{padding-left:18px}.tadas-panel .monitors-freshness{display:block}.tadas-panel .monitors-freshness>span{display:block}}
@media(max-width:700px){
 .tadas-heading{align-items:flex-start;flex-direction:column;gap:8px;margin-bottom:16px}
 .tadas-heading h1{font-size:30px}.tadas-heading p{font-size:11px}.tadas-login{font-size:10px}
 .tadas-tabs{margin-bottom:20px}
}
/* Read-only event disclosure is scoped to the 3 Days day cards. */
.three-day-board .three-day-panel>.calendar-event.calendar-event-disclosure{padding:0}
.calendar-event-disclosure>.calendar-event-summary{display:block;list-style:none;cursor:pointer;padding:10px 12px;min-height:44px;border-radius:11px}
.calendar-event-summary-content{position:relative}
.calendar-event-summary::-webkit-details-marker{display:none}
.calendar-event-summary:focus-visible{outline:3px solid #276797;outline-offset:-3px}
.calendar-event-summary:hover{background:#ffffff20}
.three-day-panel .calendar-event-summary .calendar-event-time{padding-right:25px}
.calendar-event-chevron{position:absolute;right:1px;bottom:1px;width:16px;height:16px;color:var(--muted);pointer-events:none}
.calendar-event-disclosure[open]>.calendar-event-summary .calendar-event-chevron{transform:rotate(180deg)}
.calendar-event-disclosure:not([open])>.calendar-event-extra{display:none}
.calendar-event-extra{border-top:1px solid #22374626;margin:0 12px;padding:6px 0 12px;min-width:0}

/* Approved Calendar action dock. Device corners are deliberately left clear. */
.calendar-action-dock{position:fixed;z-index:19;left:96px;right:72px;bottom:18px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 4px 16px #22374618}
.expanded .calendar-action-dock{left:238px}
.calendar-action-dock button{min-width:44px;min-height:44px;white-space:nowrap}
.calendar-weekend-action{position:relative;display:flex;align-items:center;gap:7px}
.calendar-weekend-action .outings-unread{position:static;display:inline-block;flex:none}
.calendar-action-dock .personalize-trigger{margin-left:auto;order:3}
.calendar-action-dock .rewards-shortcut-group{margin-left:auto;order:4}
.calendar-action-dock .rewards-shortcut{display:flex;align-items:center;justify-content:center;gap:5px;background:#ebe1fa;color:#5b3f8d;border:2px solid #b396d2;border-radius:18px;min-height:50px;padding:2px 10px;box-shadow:0 3px 0 #cdb9df;font:900 18px/1.2 CalendarRewardNunito,'Trebuchet MS',sans-serif}
.calendar-action-dock .rewards-shortcut:hover{background:#e2d2f5}
.calendar-action-dock .rewards-shortcut .profile-avatar{width:36px;height:40px;background:transparent;flex:none}
main:has(.calendar-action-dock){padding-bottom:180px}
.outings-host:empty,.tasks-mount:empty{display:none}
@media(min-width:701px){
 main:has(.three-day-toolbar){padding-right:80px;padding-bottom:180px}
 /* Keep view buttons next to the date or people controls, out of the kiosk corner. */
 .toolbar:has(> .calendar-actions){justify-content:flex-start}
 .three-day-toolbar{flex-wrap:wrap}
 .three-day-toolbar .filter-row{flex:0 1 auto;flex-wrap:wrap}
}
@media(max-width:700px){
 .calendar-action-dock,.expanded .calendar-action-dock{left:0;right:0;bottom:calc(73px + env(safe-area-inset-bottom));border-radius:12px 12px 0 0;padding:8px 10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .calendar-action-dock button{width:100%;padding:7px 3px;font-size:11px;white-space:normal;line-height:1.4}
 .calendar-action-dock .calendar-weekend-action{justify-content:center}
 .calendar-action-dock .rewards-shortcut-group{display:none}
 .calendar-action-dock .personalize-trigger{grid-column:1/-1;margin:0;order:3}
 .three-day-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
 .three-day-toolbar>.date-navigation{display:none}
 .three-day-toolbar>.filter-row{order:0;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%}
 .three-day-toolbar .member-chip{justify-content:center;min-width:0;min-height:44px;padding:5px 2px;gap:3px;font-size:11px}
 .three-day-toolbar .member-chip .profile-avatar{width:22px;height:22px}
 .three-day-toolbar .filter-row .text-button{display:none}
 .three-day-toolbar>.calendar-actions{order:1;width:100%}
 .three-day-toolbar .segmented{display:flex;width:100%}
 .three-day-toolbar .segmented button{flex:1;min-width:44px;padding:8px 4px}
 main:has(.calendar-action-dock){padding-top:12px;padding-bottom:175px}
 main:has(.calendar-action-dock .personalize-trigger){padding-bottom:225px}
}

/* One shared Review entry; school controls are confined to its modal. */
.personalize-trigger:not([data-count="0"])::after{content:attr(data-count);display:inline-flex;align-items:center;justify-content:center;min-width:23px;min-height:23px;margin-left:7px;padding:1px 6px;border-radius:20px;background:var(--teal);color:var(--paper);font-size:12px}
.calendar-personalize-dialog{width:690px;max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);border:1px solid var(--line);border-radius:16px;padding:24px;background:var(--paper);color:var(--ink);overflow:auto}
.calendar-personalize-dialog::backdrop,.calendar-review-exclude-dialog::backdrop{background:#22374652}
.calendar-personalize-dialog .review-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.calendar-personalize-dialog .review-heading h2{margin:0}
.review-tabs{display:flex;gap:4px;border:1px solid var(--line);border-radius:10px;padding:4px;margin:0 0 18px;background:#e1e5dd}
.review-tabs button{flex:1;min-width:44px;margin:0;background:transparent;border-color:transparent;font-size:13px}
.review-tabs button[aria-pressed=true]{background:var(--teal);color:var(--paper)}
.calendar-personalize-dialog .family-review-card{padding:0;border:0;margin:0;max-width:100%}
.calendar-personalize-dialog .review-progress{font-size:12px;color:var(--muted);margin-bottom:14px}
.calendar-personalize-dialog .review-item-schedule{font-size:14px;margin-bottom:7px}
.calendar-personalize-dialog .review-item-context{font-size:12px;color:var(--muted);margin-bottom:8px}
.calendar-personalize-dialog details{font-size:12px;margin-bottom:14px}
.calendar-personalize-dialog summary{min-height:44px;padding:12px 0;cursor:pointer}
.calendar-personalize-dialog details p{white-space:pre-wrap}
.review-school-decisions{border:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0;margin:0 0 18px;min-width:0}
.review-school-decisions legend{font-size:13px;font-weight:600;padding:0;margin-bottom:9px}
.review-school-choice{display:flex;flex-direction:row;align-items:flex-start;gap:8px;margin:0;text-align:left;font-weight:400;min-height:82px;border:1px solid var(--line);border-radius:8px;padding:12px 10px;cursor:pointer;min-width:0}
.review-school-choice input{width:20px;height:20px;min-height:20px;margin:0;flex:none;accent-color:var(--teal)}
.review-school-choice strong{display:block;font-size:13px;margin-bottom:5px}
.review-school-choice small{display:block;font-size:11px;line-height:1.5}
.review-school-choice:has(input:checked){background:var(--soft);box-shadow:inset 0 0 0 1px var(--teal);border-color:var(--teal)}
.calendar-personalize-dialog .review-choices{display:flex;flex-wrap:wrap;gap:7px;padding:0;margin:0 0 18px}
.calendar-personalize-dialog .review-choices legend{font-size:13px;font-weight:600;padding:0;margin-bottom:9px}
.calendar-personalize-dialog .review-choice{font-size:13px;min-height:44px;gap:8px;padding:10px 12px;white-space:nowrap}
.calendar-personalize-dialog .review-choice input{width:20px;height:20px;min-height:20px;flex-basis:20px}
.review-school-scope{display:block;font-size:13px;font-weight:600;margin-bottom:8px}
#review-school-scope{width:100%;font-size:14px;min-height:46px}
.review-optional-note,.review-confirmed,.review-sync-notice{font-size:12px;line-height:1.5;color:var(--muted);margin:10px 0 14px}
.review-saved-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:15px 0}
.review-saved-row>div{min-width:0;overflow-wrap:anywhere}.review-saved-row strong{font-size:14px}
.review-saved-row p{font-size:12px;margin:4px 0 0}.review-saved-row button{flex:none;font-size:12px}
.review-task-label{display:inline-flex;padding:5px 8px;border:1px solid var(--line);border-radius:5px;font-size:11px;font-weight:700;letter-spacing:1px;margin-bottom:10px}
.calendar-review-exclude-dialog{width:560px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);padding:24px}
@media(max-width:600px){
 .calendar-personalize-dialog{padding:18px 16px}.calendar-personalize-dialog .family-review-card{padding:0}
 .calendar-personalize-dialog .review-choice{padding:10px 9px;font-size:12px}
 .review-school-decisions{grid-template-columns:1fr;gap:7px}.review-school-choice{min-height:58px;align-items:center;padding:10px 12px}
 .review-school-choice strong{margin-bottom:2px}.review-school-choice small{font-size:12px}
 #review-school-scope{font-size:16px}.review-saved-row{align-items:flex-start}
}

