.shared-shell { width: min(1200px, 100%); min-height: 100dvh; margin: 0 auto; padding: 14px; background: var(--theme-canvas, var(--ds-color-canvas)); color: var(--theme-text, var(--ds-color-text)); }
.test-banner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 8px; padding: 5px 10px; border: 1px solid var(--red); background: var(--white); color: var(--red); text-align: center; font-size: .74rem; font-weight: 900; }
.test-banner span { color: var(--gray-600); font-size: .72rem; font-weight: 700; }
.enroll-view { width: min(520px, 100%); margin: 10dvh auto 0; padding: 22px; border: 1px solid var(--theme-border, var(--gray-300)); background: var(--theme-surface, var(--white)); color: var(--theme-text, var(--navy)); }
.enroll-view h1 { margin: 4px 0 12px; color: var(--theme-text, var(--navy)); }
.enroll-view p { color: var(--theme-muted, var(--gray-600)); line-height: 1.45; }
.install-steps { display: grid; gap: 10px; margin: 18px 0; padding-left: 24px; color: var(--theme-text, var(--gray-700)); line-height: 1.45; }
.install-steps li::marker { color: var(--church-green); font-weight: 900; }
.install-fallback { margin: 16px 0 0; padding: 12px; border-left: 4px solid var(--church-green); background: var(--theme-surface-strong, var(--gray-50)); color: var(--theme-muted, var(--gray-600)); font-size: .9rem; }
#install-app { margin: 16px 0 4px; }
.shared-primary { min-height: 50px; padding: 0 18px; border: 1px solid var(--blue); background: var(--blue); color: var(--white); font-weight: 900; }
.shared-primary:disabled { border-color: var(--gray-300); background: var(--gray-100); color: var(--gray-600); }
.enroll-view .shared-primary { width: 100%; }
.shared-error { color: var(--red) !important; font-weight: 800; }
.welcome-view { width: min(650px, 100%); margin: 4dvh auto 0; padding: 24px; border: 2px solid var(--church-green); background: var(--theme-surface); color: var(--theme-text); text-align: center; }
.welcome-check { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: var(--church-green); color: var(--white); font-size: 2rem; font-weight: 950; }
.welcome-view h1 { margin: 4px 0 6px; color: var(--theme-text); }
.welcome-view > p:not(.eyebrow):not(.welcome-check) { margin: 0 0 16px; color: var(--theme-muted); }
.welcome-assignment { display: grid; gap: 4px; padding: 13px; border: 2px solid var(--church-green); background: var(--theme-surface-strong); text-align: left; }
.welcome-assignment span { color: var(--theme-muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.welcome-assignment strong { color: var(--theme-text); font-size: 1.2rem; }
.welcome-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; text-align: left; }
.welcome-guide div { min-height: 112px; padding: 11px; border: 1px solid var(--theme-border); }
.welcome-guide strong, .welcome-guide span { display: block; }
.welcome-guide strong { color: var(--theme-text); }
.welcome-guide span { margin-top: 6px; color: var(--theme-muted); font-size: .78rem; line-height: 1.35; }
.welcome-warning { display: grid; gap: 3px; margin-bottom: 12px; padding: 10px; border-left: 5px solid var(--red); background: var(--theme-surface-strong); text-align: left; }
.welcome-warning strong { color: var(--red); }
.welcome-warning span { color: var(--theme-muted); font-size: .78rem; }
.welcome-view > .shared-primary { width: 100%; }
.sunday-screen { color: var(--ds-color-text); }
.home-refresh-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--theme-border); border-left: 4px solid var(--church-green); border-radius: 12px; background: var(--theme-surface); color: var(--theme-text); }
.home-refresh-status > div { min-width: 0; }
.home-refresh-status[data-state="current"] { padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: var(--theme-muted); }
.home-refresh-status[data-state="current"] strong, .home-refresh-status[data-state="current"] p { font-size: .72rem; font-weight: 400; }
.home-refresh-status[data-state="current"] > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 6px; }
.home-refresh-status[data-state="current"] #home-refresh-detail { display: none; }
.home-refresh-status[data-state="current"] #home-refresh-time { margin: 0; }
.home-refresh-status strong { font-size: .9rem; }
.home-refresh-status p { margin: 4px 0 0; font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; }
.home-refresh-status[data-state="offline"], .home-refresh-status[data-state="reconnecting"], .home-refresh-status[data-state="render-error"], .home-refresh-status[data-state="paused"] { border-left-color: var(--theme-text); }
.home-refresh-status button { flex: 0 0 auto; min-height: 44px; padding: 8px 12px; border: 1px solid currentColor; border-radius: 8px; background: var(--theme-surface); color: var(--theme-text); font: inherit; font-size: .85rem; font-weight: 800; }
.home-refresh-status button[hidden] { display: none; }
.home-refresh-status button:focus-visible { outline: 3px solid var(--theme-text); outline-offset: 3px; }
@media (max-width: 380px) { .home-refresh-status { flex-wrap: wrap; } .home-refresh-status > div { flex-basis: 100%; } }
.prayer-guest-home { display: grid; gap: 12px; margin: 24px 0; padding: 26px 22px; border: 2px solid var(--church-green); border-radius: 24px; background: var(--phone-surface, var(--ds-color-surface)); }
.prayer-guest-home[hidden] { display: none; }
.prayer-guest-home .eyebrow, .prayer-guest-home h1, .prayer-guest-home p { margin: 0; }
.prayer-guest-home h1 { color: var(--phone-text, var(--ds-color-heading)); font-size: clamp(2.25rem, 11vw, 4.25rem); line-height: .95; text-transform: uppercase; }
.prayer-guest-home p { max-width: 34rem; color: var(--phone-text, var(--ds-color-text)); font-size: 1rem; line-height: 1.5; }
.prayer-guest-open { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 18px; background: var(--church-green); color: white; font-weight: 950; text-decoration: none; text-transform: uppercase; }
.prayer-guest-open span { color: inherit; font-size: 2rem; }
.prayer-guest-home small { color: var(--phone-muted, var(--ds-color-text-muted)); line-height: 1.45; }
.shared-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--ds-space-4); padding: 14px 0; border-bottom: var(--ds-border-width) solid var(--ds-color-border); }
.shared-header h1 { margin: 2px 0; }
.shared-header > div:last-child { display: grid; justify-items: end; }
.shared-header span { color: var(--gray-600); font-size: .78rem; }
.notification-panel { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: var(--ds-space-3); padding: 5px 0; border-top: 0; border-bottom: var(--ds-border-width) solid var(--ds-color-border); }
.notification-panel > div { display: grid; gap: 2px; }
.notification-panel span { color: var(--gray-600); font-size: .7rem; }
.notification-panel button { min-height: var(--ds-control-height); padding: 0 var(--ds-space-3); border: var(--ds-border-width) solid var(--ds-color-action); background: var(--ds-color-surface); color: var(--ds-color-action); font-size: .78rem; font-weight: var(--ds-font-weight-action); white-space: nowrap; }
.notification-panel button.enabled { border-color: var(--church-green); color: var(--green); }
.attendance-link { margin-top: 2px; border: 0; background: none; color: var(--blue); font-size: .76rem; font-weight: 900; }
.sign-out-link { margin-top: 2px; border: 0; background: none; color: var(--gray-600); font-size: .72rem; font-weight: 800; text-decoration: underline; }
.desk-header-status { display: grid; justify-items: center; gap: 2px; padding: 8px 18px; border-left: 4px solid var(--church-green); border-right: 4px solid var(--church-green); color: var(--navy); text-align: center; text-decoration: none; }
.desk-header-status:hover, .desk-header-status:focus-visible { background: var(--gray-50); outline: 2px solid var(--blue); outline-offset: 2px; }
.desk-header-status strong { font-size: 1.05rem; }
.desk-header-status small { color: var(--gray-600); font-size: .7rem; }
.shared-personal { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px; border: 2px solid var(--navy); }
.shared-personal h2 { margin: 3px 0; }
.shared-personal p { margin: 0; color: var(--gray-600); }
.personal-actions { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 8px; }
.personal-actions button { min-height: 52px; padding: 0 12px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); font-weight: 900; }
.personal-actions button.active { border-color: var(--church-green); background: var(--church-green); color: var(--white); }
.shared-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; margin-top: 12px; }
.shared-panel { border: 1px solid var(--gray-300); background: var(--white); }
.shared-panel-head { padding: 13px; border-bottom: 1px solid var(--gray-300); }
.shared-panel-head h2 { margin: 2px 0; font-size: 1.2rem; }
.shared-panel-head h3 { margin: 2px 0 5px; }
.shared-panel-head p:last-child { margin: 0; color: var(--gray-600); line-height: 1.4; }
.shared-member { display: grid; grid-template-columns: 1fr 160px 150px; gap: 10px; align-items: center; min-height: 70px; padding: 10px 13px; border-bottom: 1px solid var(--gray-100); }
.shared-member:last-child { border-bottom: 0; }
.shared-member > div { display: grid; }
.shared-member span { color: var(--gray-600); font-size: .78rem; }
.shared-member select { min-height: 44px; }
.shared-member .member-mobile { margin-top: 3px; color: var(--navy); font-weight: 800; }
.send-invite { min-height: 44px; padding: 0 10px; border: 1px solid var(--blue); background: var(--blue); color: var(--white); font-weight: 900; }
.send-invite:disabled { border-color: var(--gray-300); background: var(--gray-100); color: var(--gray-600); }
.status-pill { display: inline-block; padding: 5px 8px; border: 1px solid var(--gray-300); font-size: .72rem; font-weight: 850; text-align: center; }
.status-pill.checked-in { border-color: var(--church-green); color: var(--green); }
.log-row { padding: 10px 13px; border-bottom: 1px solid var(--gray-100); }
.log-row strong, .log-row span { display: block; }
.log-row span { color: var(--gray-600); font-size: .75rem; }
.shared-empty { padding: 22px 13px; color: var(--gray-600); text-align: center; }
.add-member-form { display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 10px; align-items: end; padding: 12px 13px; border-bottom: 1px solid var(--gray-300); }
.add-member-form label { display: grid; gap: 5px; padding: 0 !important; color: var(--gray-600); font-size: .72rem; font-weight: 850; }
.add-member-form input { min-height: 48px; padding: 8px 10px; border: 1px solid var(--gray-300); font: inherit; }
.add-member-form button { min-width: 132px; }
.access-row { display: grid; grid-template-columns: 1fr 140px minmax(340px, auto); gap: 10px; align-items: center; padding: 10px 13px; border-bottom: 1px solid var(--gray-100); }
.access-row > div { display: grid; }
.access-row span { color: var(--gray-600); font-size: .75rem; }
.access-row .notification-status { margin-top: 4px; color: var(--gray-600); font-weight: 850; }
.access-row .notification-status.enabled { color: var(--green); }
.access-row.newly-added { border: 2px solid var(--blue); background: #eef6fd; box-shadow: inset 6px 0 0 var(--blue); }
.people-access-row { border-bottom: 1px solid var(--gray-200); background: var(--white); }
.people-access-row > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; padding: 12px 13px; cursor: pointer; list-style: none; }
.people-access-row > summary::-webkit-details-marker { display: none; }
.people-access-row > summary > span:first-child { display: grid; gap: 3px; }
.people-access-row > summary small { color: var(--gray-600); }
.people-access-row[open] > summary { border-bottom: 1px solid var(--gray-200); background: var(--gray-50); }
.people-access-row.newly-added { border: 2px solid var(--blue); box-shadow: inset 6px 0 0 var(--blue); }
.people-access-editor { display: grid; gap: 12px; padding: 13px; }
.people-access-editor > .mobile-field { display: grid; gap: 5px; color: var(--gray-600); font-size: .72rem; font-weight: 850; }
.people-access-editor > .mobile-field input { min-height: 46px; padding: 8px 10px; border: 1px solid var(--gray-300); background: var(--white); color: var(--navy); font: inherit; }
.people-add-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.people-add-disclosure { border-bottom: 1px solid var(--gray-300); }
.people-add-disclosure > summary { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; min-height: 64px; padding: 10px 13px; cursor: pointer; list-style: none; }
.people-add-disclosure > summary::-webkit-details-marker { display: none; }
.people-add-disclosure > summary strong { color: var(--navy); font-size: 1rem; }
.people-add-disclosure > summary span { color: var(--gray-600); font-size: .78rem; }
.people-add-disclosure > summary::after { grid-column: 2; grid-row: 1 / span 2; content: "+"; color: var(--blue); font-size: 1.45rem; font-weight: 900; }
.people-add-disclosure[open] > summary::after { content: "−"; }
.people-add-disclosure .people-add-form { border-top: 1px solid var(--gray-300); }
.people-add-heading, .people-access-choice { grid-column: 1 / -1; }
.people-add-heading { display: grid; gap: 3px; }
.people-add-heading strong { color: var(--navy); font-size: 1rem; }
.people-add-heading span { color: var(--gray-600); font-size: .78rem; }
.people-team-choice, .people-access-choice, .member-access-editor { margin: 0; padding: 10px; border: 1px solid var(--gray-300); }
.people-team-choice legend, .people-access-choice legend, .member-access-editor legend { padding: 0 5px; color: var(--gray-600); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.people-team-choice { display: flex; flex-wrap: wrap; gap: 12px; }
.people-access-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; }
.people-team-choice label, .people-access-choice label, .member-access-editor label { display: flex; align-items: center; gap: 7px; color: var(--navy); font-size: .8rem; font-weight: 800; }
.people-team-choice input, .people-access-choice input, .member-access-editor input { width: 20px; height: 20px; accent-color: var(--green); }
.people-directory-controls { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(150px, auto) minmax(180px, auto); gap: 10px; padding: 13px; border-block: 1px solid var(--gray-300); background: var(--gray-50); }
.people-directory-controls label { display: grid; gap: 5px; color: var(--gray-600); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.people-directory-controls input, .people-directory-controls select { min-height: 46px; padding: 8px 10px; border: 1px solid var(--gray-300); background: var(--white); color: var(--navy); font: inherit; text-transform: none; }
.people-results-count { margin: 0; padding: 9px 13px; color: var(--gray-600); font-size: .75rem; font-weight: 850; }
.member-access-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
.member-access-editor button, .member-access-editor small { grid-column: 1 / -1; }
.member-access-editor button { min-height: 44px; border: 0; background: var(--navy); color: var(--white); font: inherit; font-weight: 900; }
.member-access-editor small { color: var(--gray-600); line-height: 1.35; }
.unscheduled-person-note { margin: 0; padding: 10px; border-left: 4px solid var(--green); background: var(--gray-50); color: var(--gray-700); }
.person-row { border-bottom: 1px solid var(--gray-100); }
.person-row summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 13px; cursor: pointer; }
.person-row summary > span:first-child { display: grid; gap: 3px; }
.person-row summary small { color: var(--gray-600); }
.person-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.person-badges em { border: 1px solid var(--gray-300); padding: 4px 6px; color: var(--gray-600); font-size: .68rem; font-style: normal; font-weight: 800; text-transform: uppercase; }
.person-badges .needs-review { border-color: #b45309; color: #92400e; background: var(--white); }
.person-admin-meta { padding: 0 13px 13px 32px; color: var(--gray-600); font-size: .78rem; }
.person-admin-meta p { margin: 5px 0; }
.person-admin-meta .review-note { color: #92400e; }
.person-review-action { margin: 8px 0 12px; padding: 12px; border: 1px solid var(--orange); background: var(--white); }
.person-review-action label { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(220px, 2fr); gap: 10px; align-items: center; margin-top: 10px; color: var(--navy); font-weight: 850; }
.person-review-action input { min-height: 48px; }
.person-review-action button { min-height: 48px; margin-top: 10px; padding: 0 18px; border: 0; background: var(--blue); color: var(--white); font-weight: 900; }
.person-review-action .review-guidance { color: var(--gray-600); }
.access-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.access-actions button { min-height: 44px; padding: 0 10px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); font-weight: 850; }
.access-actions button.revoke { border-color: var(--red); color: var(--red); }
.mobile-field { display: grid; gap: 3px; margin-top: 7px; color: var(--gray-600); font-size: .7rem; font-weight: 800; }
.mobile-field input { min-height: 42px; padding: 7px 9px; border: 1px solid var(--gray-300); font-size: 1rem; }
.main-attendance { display: grid; }
.main-control { min-height: 86px; border: var(--ds-border-width-action) solid var(--ds-color-heading); background: var(--ds-color-surface); color: var(--ds-color-heading); font-size: 1.35rem; font-weight: var(--ds-font-weight-action); }
.main-control span, .main-control strong { display: block; }
.main-control span { margin-top: 4px; color: var(--gray-300); font-size: .76rem; }
.presence-control { border-color: var(--ds-color-action); background: var(--ds-color-action); color: var(--ds-color-on-action); }
.main-control.active { border-color: var(--church-green); background: var(--church-green); color: var(--white); }
.duty-control { background: var(--navy); color: var(--white); }
.issue-status-strip { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-3); width: 100%; min-height: var(--ds-control-height); margin-top: 14px; padding: 10px 2px 14px; border: 0; border-bottom: var(--ds-border-width) solid var(--ds-color-border); background: none; color: var(--ds-color-heading); text-align: left; }
.issue-status-strip .eyebrow { display: none; }
.issue-status-strip strong { padding: 0; border: 0; background: none; color: var(--green); font-size: .92rem; font-weight: 900; }
.issue-status-strip strong::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--church-green); vertical-align: middle; }
.issue-status-strip .review-issues { color: var(--blue); font-weight: 900; font-size: .82rem; }
.issue-status-strip.has-active { flex-direction: column; align-items: center; gap: var(--ds-space-2); margin-top: 10px; padding: var(--ds-space-4) 18px; border: 3px solid var(--ds-color-observation); background: var(--ds-color-surface); color: var(--ds-color-heading); text-align: center; }
.issue-status-strip.has-active .eyebrow { display: block; color: var(--navy); }
.issue-status-strip.has-active strong { padding: 7px 14px; border: var(--ds-border-width-action) solid var(--ds-color-observation); background: var(--ds-color-surface); color: var(--ds-color-observation); }
.issue-status-strip.has-active strong::before { display: none; }
.issue-status-strip.has-critical { border-color: var(--ds-color-urgent); background: var(--ds-color-surface); }
.issue-status-strip.has-critical strong { border-color: var(--red); background: var(--red); color: var(--white); }
.main-issues { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.main-issues button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 112px; padding: var(--ds-space-4); border: var(--ds-border-width-action) solid var(--ds-color-action); background: var(--ds-color-surface); color: var(--ds-color-heading); text-align: center; }
.main-issues span, .main-issues strong { display: block; }
.main-issues span { margin-bottom: 8px; color: var(--gray-600); font-size: .78rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.main-issues strong { font-size: 1.35rem; }
.main-issues small { display: block; margin-top: 6px; color: var(--gray-600); font-size: .78rem; font-weight: 750; }
.issue-type-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 15px 15px 0; }
.issue-type-picker button { min-height: 50px; border: 1px solid var(--gray-300); background: var(--white); color: var(--navy); font-weight: 850; }
.issue-type-picker button[data-issue-type-option="medical"] { grid-column: 1 / -1; }
.issue-type-picker button.selected { border-color: var(--blue); background: var(--blue); color: var(--white); }
.current-duty { margin-top: 14px; padding: 10px 2px 16px; border: 0; border-bottom: var(--ds-border-width) solid var(--ds-color-border); background: none; }
.current-duty .eyebrow { margin: 0 0 6px; }
.duty-schedule { display: grid; gap: 6px; }
.current-duty-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.current-duty-heading p { margin: 0; }
.current-duty-heading a { color: var(--blue); font-weight: 800; font-size: .9rem; }
.duty-line { margin: 0; font-size: 1.1rem; font-weight: 750; color: var(--navy); }
.duty-line strong { color: var(--ds-color-heading); }
.team-view-actions { margin-top: 10px; }
.team-view-button { min-height: 112px; padding: 16px; font-weight: 900; }
.team-view-button strong, .team-view-button span { display: block; }
.team-view-button strong { font-size: 1.35rem; }
.team-view-button span { margin-top: 7px; font-size: .8rem; }
.team-view-button.team-view-primary { width: 100%; border: var(--ds-border-width-action) solid var(--ds-color-action); background: var(--ds-color-surface); color: var(--ds-color-action); }
.team-view-button.team-view-primary span { color: var(--ds-color-text-muted); }
.lockdown-control { display: block; width: min(620px, 100%); min-height: 82px; margin: 24px auto 0; border: 6px solid var(--navy); outline: 4px solid var(--red); background: #be1e2d; color: var(--white); }
.lockdown-control span, .lockdown-control strong { display: block; text-transform: uppercase; }
.lockdown-control span { font-size: .73rem; font-weight: 900; letter-spacing: .12em; }
.lockdown-control strong { margin-top: 4px; font-size: 1.65rem; }
.admin-tools-button { min-height: 50px; margin: 18px auto 0; padding: 0 22px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); font-weight: 900; }
.sunday-screen :where(.presence-control, .issue-status-strip, .main-issues button, .team-view-button, .lockdown-control, .admin-tools-button, .notification-panel button):focus-visible {
  outline: var(--ds-focus-ring);
  outline-offset: 3px;
}

/* Final cascade lock for the focused home reskin. */
.sunday-screen[data-incident-level="green"] { --incident-home-color: #63b967; --incident-on-color: white; }
.sunday-screen[data-incident-level="yellow"] { --incident-home-color: #d9a514; --incident-on-color: #211900; }
.sunday-screen[data-incident-level="red"] { --incident-home-color: #a71930; --incident-home-text-color: #e64058; --incident-on-color: white; }
.sunday-screen[data-incident-level] { --church-green: var(--incident-home-color); --green: var(--incident-home-color); }
.sunday-screen[data-incident-level] .shared-header { border-top: 5px solid var(--incident-home-color); }
.sunday-screen[data-incident-level="red"]::after {
  position: fixed;
  z-index: 9999;
  inset: 0;
  border: 4px solid var(--incident-home-color);
  box-shadow: inset 0 0 0 1px var(--incident-home-text-color);
  pointer-events: none;
  content: "";
}
.incident-level-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 16px 15px 0; padding: 0; border: 0; }
.incident-level-picker legend,
.incident-level-picker > p { grid-column: 1 / -1; }
.incident-level-picker legend { padding: 0; font-size: .82rem; font-weight: 800; }
.incident-level-picker > p { margin: -3px 0 3px; color: var(--phone-muted); font-size: .68rem; }
.incident-level-option { position: relative; display: grid; min-width: 0; min-height: 61px; place-items: center; padding: 7px 4px; border: 2px solid transparent; border-radius: 11px; text-align: center; }
.incident-level-option input { position: absolute; width: 1px !important; min-height: 0 !important; height: 1px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; }
.incident-level-option span { display: grid; min-width: 0; place-items: center; }
.incident-level-option small { display: block; margin-top: 3px; font-size: .68rem; font-weight: 600; line-height: 1.25; }
.incident-level-option:has(input:checked) { border-color: white; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 40%, transparent); }
.incident-level-option:has(input:focus-visible) { outline: 3px solid var(--theme-text, var(--navy)); outline-offset: 2px; }
.operation-dialog .incident-level-green { color: white; background: #3e7a3a; }
.operation-dialog .incident-level-yellow { color: #211900; background: #d9a514; }
.operation-dialog .incident-level-red { color: white; background: #a71930; }
.operation-dialog .incident-level-green strong,
.operation-dialog .incident-level-green small,
.operation-dialog .incident-level-red strong,
.operation-dialog .incident-level-red small { color: white !important; }
.operation-dialog .incident-level-yellow strong,
.operation-dialog .incident-level-yellow small { color: #211900 !important; }
.yellow-incident-notice { margin: 12px 0; padding: 14px; border: 2px solid #d9a514; border-radius: 12px; color: var(--phone-text); background: color-mix(in srgb, #d9a514 12%, var(--phone-card)); }
.yellow-incident-notice p { margin: 5px 0 0; }
.red-incident-warning { margin: 12px 0; padding: 14px; border: 2px solid #d33c50; border-radius: 12px; background: color-mix(in srgb, #a71930 18%, var(--phone-card)); }
.red-incident-warning strong { color: #ff6b7c; }
.red-incident-warning p { margin: 5px 0 12px; }
.red-incident-warning label { display: flex; align-items: flex-start; gap: 8px; font-weight: 750; }
.red-incident-warning label input { flex: 0 0 22px; width: 22px !important; min-height: 22px !important; height: 22px !important; margin: 0; padding: 0; }

html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface { gap: 12px; padding-top: 12px; padding-bottom: 18px; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-hero { grid-row: 1; grid-column: 1 / -1; min-height: 226px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 24px 22px; border: 1px solid color-mix(in srgb, var(--church-green) 45%, var(--phone-border)); border-radius: 22px; background: linear-gradient(145deg, color-mix(in srgb, var(--church-green) 13%, var(--phone-card)), var(--phone-card)); }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-hero h2 { font-size: clamp(2.35rem, 12vw, 3.25rem); line-height: .94; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-hero .post-order-link { min-width: 150px; min-height: 48px; justify-content: center; margin-top: 18px; padding: 0 20px; border-radius: 12px; background: var(--church-green); color: white; font-size: .73rem; font-weight: 750; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-hero:has(#next-duty-card:not([hidden])) { min-height: 0; justify-content: flex-start; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #next-duty-card:not([hidden]) { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; width: 100%; align-items: end; gap: 4px 14px; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--home-hairline); border-radius: 0; background: transparent; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #next-duty-card > span { grid-column: 1 / -1; color: var(--church-green); font-size: .62rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #next-duty-card > div { display: flex; min-width: 0; align-items: baseline; gap: 8px; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #next-duty-card strong { overflow: hidden; color: var(--phone-text); font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #next-duty-card small { flex: 0 0 auto; color: var(--phone-muted); font-size: .68rem; white-space: nowrap; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #next-duty-card .post-order-link { width: auto; min-width: 0; min-height: 36px; justify-content: flex-end; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--home-blue); font-size: .62rem; white-space: nowrap; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-timeline { display: none; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .today-actions,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .today-summary { display: contents; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action { grid-row: 2; min-height: 124px; align-content: center; justify-items: start; padding: 18px 14px; border: 1px solid var(--home-hairline); border-radius: 17px; background: var(--phone-card); text-align: left; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #open-live { grid-column: 1 / span 2; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action { grid-column: 3 / span 2; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #open-issues { grid-column: 5 / span 2; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .coverage-readiness { grid-row: 4; grid-column: 1 / -1; display: grid; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .radio-plan-home { grid-row: 3; grid-column: 1 / -1; display: grid; margin: 0; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .recent-updates { grid-row: 5; grid-column: 1 / -1; display: grid; height: auto; margin: 0; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .recent-updates-list { display: grid; height: auto; overflow: visible; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .home-guide-link { grid-row: 6; }

/* Two-post home: preserve the established rhythm while keeping Check-In in view. */
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-hero:has(#next-duty-card:not([hidden])) {
  min-height: 226px;
  padding-block: 20px 16px;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-hero:has(#next-duty-card:not([hidden])) > .post-order-link {
  margin-top: 14px;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #next-duty-card:not([hidden]) {
  gap: 2px 12px;
  margin-top: 12px;
  padding-top: 9px;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #next-duty-card .post-order-link {
  min-height: 30px;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .home-guide-link {
  min-height: 40px;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .notification-banner { display: none !important; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action {
  min-height: 112px;
  place-items: center;
  align-content: center;
  padding: 12px 6px;
  border-color: var(--home-hairline);
  background: var(--phone-card);
  text-align: center;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card-copy,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .today-action-copy { display: block; width: 100%; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card-copy > span,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action strong,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #open-issues.has-active .summary-card-copy > span,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #open-issues.has-critical .summary-card-copy > span {
  color: var(--church-green);
  font-size: clamp(1.2rem, 5.8vw, 1.42rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card-copy > strong,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action small { display: none; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #open-issues.has-active,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #open-issues.has-critical { border-color: var(--home-hairline); background: var(--phone-card); }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card-copy,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .today-action-copy { display: grid; width: 100%; gap: 8px; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card-copy > span,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action strong { color: var(--church-green); font-size: .98rem; font-weight: 800; line-height: 1; letter-spacing: .045em; text-transform: uppercase; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card-copy > strong,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action small { max-width: 100%; color: var(--phone-text); font-size: .84rem; font-weight: 650; line-height: 1.2; }

@media (max-width: 370px) {
  html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card-copy > span,
  html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action strong { font-size: .8rem; }
  html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card-copy > strong,
  html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action small { font-size: .68rem; }
}

/* Exact three-button rhythm: one centered label per card. */
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .summary-card,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .report-action {
  min-height: 112px;
  place-items: center;
  align-content: center;
  padding: 12px 6px;
  border-color: var(--home-hairline);
  background: var(--phone-card);
  text-align: center;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .summary-card-copy,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .today-action-copy {
  position: absolute;
  inset: 0;
  display: grid !important;
  place-items: center;
  align-content: center;
  justify-content: center;
  text-align: center;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .summary-card,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .report-action { position: relative; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .summary-card-copy > span,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .report-action strong,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface #open-issues .summary-card-copy > span {
  color: var(--church-green);
  font-size: clamp(1.2rem, 5.8vw, 1.42rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: .04em;
  text-align: center;
  white-space: nowrap;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .summary-card-copy > strong,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .report-action small { display: none; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface #open-issues { border-color: var(--home-hairline); background: var(--phone-card); }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface #open-coverage-home { display: none; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .recent-updates { grid-row: 4; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .home-guide-link { grid-row: 5; }

/* Compact action rail: one deliberate control instead of three empty tiles. */
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .summary-card,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .report-action {
  min-height: 76px;
  border-radius: 0;
  background: color-mix(in srgb, var(--church-green) 6%, var(--phone-card));
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface #open-live {
  border-radius: 16px 0 0 16px;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .report-action {
  border-right: 0;
  border-left: 0;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface #open-issues {
  border-radius: 0 16px 16px 0;
  background: color-mix(in srgb, var(--church-green) 6%, var(--phone-card));
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .summary-card-copy > span,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .report-action strong,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface #open-issues .summary-card-copy > span {
  font-size: clamp(.92rem, 4.2vw, 1.05rem);
  letter-spacing: .035em;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface #active-issue-count:not([hidden]) {
  position: absolute;
  top: 9px;
  right: 10px;
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: .68rem;
  font-weight: 800;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface #open-recent-activity { display: none; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .home-guide-link { grid-row: 4; }

/* Purposeful full-screen composition: hero, action rail, then radio. */
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .assignment-hero {
  min-height: 308px;
  padding: 32px 24px;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .radio-plan-home {
  min-height: 126px;
  align-content: center;
  padding: 22px 54px 22px 22px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #173d2a, #245c3b);
  box-shadow: 0 12px 24px color-mix(in srgb, #173d2a 18%, transparent);
  color: white;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .radio-plan-home .home-detail-label {
  color: #8fe69c;
  font-size: .72rem;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .radio-plan-home > strong {
  color: white;
  font-size: 1.35rem;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .radio-plan-home > small { color: rgba(255, 255, 255, .72); font-size: .76rem; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .radio-plan-home .home-detail-cue { color: white; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .home-guide-link { display: none; }

/* Selected recovery direction: light radio row, Guides, and real presence control. */
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface { gap: 9px; }
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .assignment-hero {
  min-height: 198px;
  padding: 20px 22px;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .radio-plan-home {
  min-height: 86px;
  align-content: center;
  padding: 17px 48px 17px 18px;
  border: 0;
  border-bottom: 1px solid var(--home-hairline);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--phone-text);
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .radio-plan-home .home-detail-label { color: var(--church-green); font-size: .68rem; }
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .radio-plan-home > strong { color: var(--phone-text); font-size: .92rem; }
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .radio-plan-home > small { color: var(--phone-muted); font-size: .7rem; }
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .radio-plan-home .home-detail-cue { color: var(--phone-muted); }
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .home-guide-link { display: flex; grid-row: 4; }
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface #presence-toggle {
  position: relative;
  display: grid !important;
  grid-row: 5;
  grid-column: 1 / -1;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  min-height: 84px;
  width: 100%;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--church-green) 42%, var(--phone-border));
  border-radius: 17px;
  background: color-mix(in srgb, var(--church-green) 7%, var(--phone-card));
  color: var(--phone-text);
  text-align: left;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface #presence-toggle .today-action-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--church-green);
  color: white;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface #presence-toggle .today-action-icon svg { width: 25px; height: 25px; }
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface #presence-toggle .presence-action-copy {
  position: static;
  display: grid;
  width: auto;
  height: auto;
  place-items: initial;
  gap: 3px;
  text-align: left;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface #presence-toggle .presence-action-copy > strong {
  color: var(--church-green);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface #presence-toggle .presence-line { color: var(--phone-muted); font-size: .7rem; }
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface #presence-toggle .presence-action-cue {
  display: block;
  color: var(--home-blue);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface #presence-toggle.active {
  background: color-mix(in srgb, var(--church-green) 13%, var(--phone-card));
}

/* Focused mobile home: current assignment first, everything else one tap away. */
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .shared-header {
  min-height: 62px;
  padding: 6px 0;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .shared-header .brand-lockup { width: min(154px, 45vw); }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-summary {
  min-height: 62px;
  align-content: center;
  padding: 7px 0 9px;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-summary .eyebrow {
  display: grid;
  gap: 2px;
  font-size: .76rem;
  line-height: 1.1;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-summary .eyebrow > span:nth-child(2) { display: none; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-summary .event-distance {
  align-self: end;
  padding-bottom: 1px;
  font-size: .74rem;
  font-weight: 750;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 18px;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-hero {
  grid-row: 1;
  grid-column: 1 / -1;
  min-height: 226px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 22px;
  border: 1px solid color-mix(in srgb, var(--church-green) 45%, var(--phone-border));
  border-radius: 22px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--church-green) 13%, var(--phone-card)), var(--phone-card));
  box-shadow: 0 12px 30px color-mix(in srgb, #000 9%, transparent);
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-state {
  margin: 0 0 10px;
  font-size: .67rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-hero h2 {
  max-width: 100%;
  font-size: clamp(2.35rem, 12vw, 3.25rem);
  line-height: .94;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-time {
  margin: 10px 0 0;
  font-size: .84rem;
}
.assignment-service {
  margin: 5px 0 0;
  color: var(--phone-muted);
  font-size: .72rem;
}
.assignment-service strong { color: var(--phone-text); font-size: inherit; }
.assignment-service small { color: inherit; font-size: inherit; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-hero .post-order-link {
  min-width: 150px;
  min-height: 48px;
  justify-content: center;
  margin-top: 18px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--church-green);
  color: white;
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .08em;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-timeline { display: none; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .today-actions,
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .today-summary { display: contents; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card,
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action {
  grid-row: 2;
  min-height: 112px;
  align-content: end;
  justify-items: start;
  gap: 7px;
  padding: 16px 13px;
  border: 1px solid var(--home-hairline);
  border-radius: 17px;
  background: var(--phone-card);
  text-align: left;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #open-live { grid-column: 1 / span 2; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action { grid-column: 3 / span 2; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #open-issues { grid-column: 5 / span 2; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card-copy,
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .today-action-copy { display: grid; gap: 5px; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card-copy > span,
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action strong {
  color: var(--church-green);
  font-size: .75rem;
  font-weight: 750;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card-copy > strong,
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action small {
  max-width: none;
  color: var(--phone-text);
  font-size: .64rem;
  line-height: 1.25;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #open-issues.has-active {
  border-color: color-mix(in srgb, var(--orange) 65%, var(--phone-border));
  background: color-mix(in srgb, var(--orange) 9%, var(--phone-card));
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #open-issues.has-active .summary-card-copy > span { color: var(--orange); }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #open-issues.has-critical {
  border-color: color-mix(in srgb, var(--red) 70%, var(--phone-border));
  background: color-mix(in srgb, var(--red) 10%, var(--phone-card));
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #open-issues.has-critical .summary-card-copy > span { color: var(--red); }
.home-detail-card {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 96px;
  align-items: center;
  padding: 17px 48px 17px 18px;
  border: 1px solid var(--home-hairline);
  border-radius: 17px;
  background: var(--phone-card);
  color: var(--phone-text);
  font: inherit;
  text-align: left;
}
.home-detail-label {
  color: var(--church-green);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.home-detail-cue { position: absolute; top: 50%; right: 18px; color: var(--phone-muted); font-size: 1.8rem; transform: translateY(-53%); }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .coverage-readiness {
  grid-row: 4;
  grid-column: 1 / -1;
  display: grid;
  justify-content: stretch;
  gap: 8px;
}
.coverage-readiness #coverage-readiness-state { justify-content: flex-start; font-size: .76rem; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .radio-plan-home {
  grid-row: 3;
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  margin: 0;
}
.radio-plan-home > strong { margin-top: 4px; font-size: .92rem; }
.radio-plan-home > small { color: var(--phone-muted); font-size: .7rem; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .recent-updates {
  grid-row: 5;
  grid-column: 1 / -1;
  display: grid;
  height: auto;
  margin: 0;
  gap: 8px;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .recent-updates-list {
  display: grid;
  height: auto;
  gap: 4px;
  overflow: visible;
}
.recent-updates-list > span { color: var(--phone-muted); font-size: .7rem; }
.recent-updates-list > strong { color: var(--phone-text); font-size: .78rem; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .home-guide-link { grid-row: 6; border: 0; }

@media (max-width: 370px) {
  .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card,
  .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action { min-height: 104px; padding-inline: 10px; }
}
.shared-user-controls { display: flex; flex-direction: column; align-items: flex-end; }
.messages-link { display: inline-flex; align-items: center; gap: 7px; min-height: 48px; color: var(--ds-color-action); font-weight: 900; text-decoration: none; }
.messages-link:focus-visible { outline: var(--ds-focus-ring); outline-offset: 3px; }
.messages-badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--ds-color-action); color: var(--ds-color-on-action); font-size: .72rem; line-height: 1; }
.message-preview { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-4); margin-top: var(--ds-space-3); padding: var(--ds-space-4); border-left: 5px solid var(--ds-color-action); color: var(--ds-color-heading); text-decoration: none; }
.message-preview > div { min-width: 0; }
.message-preview strong, .message-preview p { display: block; }
.message-preview p { max-width: 62ch; margin: 4px 0 0; overflow: hidden; color: var(--ds-color-text-muted); text-overflow: ellipsis; white-space: nowrap; }
.message-preview-meta { display: grid; flex: 0 0 auto; gap: 3px; color: var(--ds-color-text-muted); font-size: .76rem; text-align: right; }
.message-preview-meta strong, .message-preview-meta span:last-child { color: var(--ds-color-action); }
.message-preview:focus-visible { outline: var(--ds-focus-ring); outline-offset: 3px; }
.operation-dialog { width: min(880px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 0; border: 2px solid var(--navy); background: var(--white); color: var(--navy); }
.operation-dialog::backdrop { background: rgba(5, 24, 41, .55); }
.operation-dialog.nav-destination {
  position: fixed;
  z-index: 40;
  inset: 0 0 calc(81px + env(safe-area-inset-bottom));
  width: min(430px, 100%);
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0 auto;
  overflow-y: auto;
  border: 0;
  background: var(--white);
}
.operation-dialog.nav-destination::backdrop { display: none; }
.dialog-heading { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; border-bottom: 1px solid var(--gray-300); background: var(--white); }
.dialog-heading h2, .dialog-heading p { margin: 2px 0; }
.dialog-heading > button { width: 50px; height: 50px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); font-size: 2rem; }
.nav-destination .dialog-heading > button {
  width: auto;
  min-height: 46px;
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 850;
}
.shared-counts { margin: 0; padding: 10px 15px; color: var(--gray-600); font-weight: 750; border-bottom: 1px solid var(--gray-300); }
.operation-dialog form > label { display: grid; gap: 6px; padding: 12px 15px 0; color: var(--navy); font-weight: 850; }
.operation-dialog form > label.responding-check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.responding-check input { width: 22px; height: 22px; margin-top: 2px; }
.command-access-form { display: grid; gap: 14px; padding: 4px 0; }
.command-access-form > p { margin: 0; color: var(--gray-600); line-height: 1.5; }
.command-access-form label { display: grid; gap: 7px; font-weight: 850; }
.command-access-form input { min-height: 58px; padding: 8px 14px; border: 2px solid var(--gray-300); background: var(--white); color: var(--ink); font-size: 1.45rem; font-weight: 900; letter-spacing: .22em; text-align: center; }
.command-access-form small { color: var(--gray-600); line-height: 1.4; }
.responding-check span, .responding-check strong, .responding-check small { display: block; }
.responding-check small { margin-top: 3px; color: var(--gray-600); font-weight: 600; line-height: 1.35; }
.operation-dialog select, .operation-dialog input, .operation-dialog textarea { width: 100%; min-height: 50px; padding: 10px; border: 1px solid var(--gray-300); background: var(--white); color: var(--navy); font: inherit; }
.operation-dialog :is(.people-team-choice, .people-access-choice, .member-access-editor) input[type="radio"],
.operation-dialog :is(.people-team-choice, .people-access-choice, .member-access-editor) input[type="checkbox"] {
  flex: 0 0 24px;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
}
.operation-dialog :is(.people-team-choice, .people-access-choice, .member-access-editor) label {
  min-width: 0;
  font-size: .9rem;
  line-height: 1.25;
}
.operation-dialog textarea { min-height: 105px; resize: vertical; }
.dialog-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 15px; }
.dialog-actions button { min-height: 52px; }
.coverage-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--gray-300); }
.on-campus-strip { padding: 14px 18px 16px; border-bottom: 1px solid var(--gray-300); background: var(--white); }
.on-campus-heading, .on-campus-heading > div { display: flex; align-items: center; gap: 8px; }
.on-campus-heading { justify-content: space-between; margin-bottom: 12px; }
.on-campus-heading-actions { display: flex; align-items: center; gap: 6px; }
.on-campus-heading h3 { margin: 0; color: var(--navy); font-size: 1rem; }
.on-campus-heading strong { display: grid; min-width: 26px; height: 26px; place-items: center; border-radius: 999px; background: var(--church-green); color: var(--navy); font-size: .76rem; }
.presence-live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--church-green); box-shadow: 0 0 0 4px rgb(93 191 105 / 18%); }
.on-campus-heading button { min-height: 40px; padding: 0 4px; border: 0; background: transparent; color: var(--blue); font: inherit; font-size: .8rem; font-weight: 900; }
.on-campus-heading .on-campus-collapse { display: grid; width: 40px; padding: 0; place-items: center; border: 1px solid var(--gray-300); border-radius: 50%; color: var(--navy); font-size: 1.15rem; line-height: 1; }
.on-campus-heading .on-campus-collapse span { transform: translateY(2px); }
#on-campus-content[hidden] { display: none; }
.on-campus-strip:has(#on-campus-content[hidden]) .on-campus-heading { margin-bottom: 0; }
.on-campus-people { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 4px; }
.on-campus-person { display: grid; flex: 0 0 62px; justify-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--navy); font: inherit; text-align: center; }
.on-campus-person > span:last-child, .on-campus-person strong, .on-campus-person small { display: block; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-campus-person strong { color: #102a43; font-size: .76rem; }
.on-campus-person small { margin-top: 2px; color: #52606d; font-size: .62rem; }
.on-campus-person em { display: block; max-width: 72px; margin-top: 1px; overflow: hidden; color: #52606d; font-size: .52rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.on-campus-avatar { width: 48px; height: 48px; font-size: .76rem; }
.campus-support-person { cursor: default; }
.campus-support-avatar { border-color: var(--blue); background: #eaf4ff; color: var(--navy); }
.campus-support-row { background: #f7fbff; }
.campus-support-identity { display: grid; gap: 2px; min-width: 0; }
.campus-support-identity strong, .campus-support-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campus-support-identity small { color: var(--gray-600); font-size: .7rem; }
.on-campus-more { display: grid; flex: 0 0 48px; height: 48px; place-content: center; border: 1px dashed var(--gray-400); border-radius: 50%; background: var(--gray-50); color: var(--navy); font: inherit; font-size: .78rem; font-weight: 900; }
.on-campus-more span { display: block; font-size: .58rem; }
.on-campus-empty { margin: 2px 0; color: var(--gray-600); font-size: .84rem; }
.on-campus-full-list { margin-top: 13px; border-top: 1px solid var(--gray-200); }
.on-campus-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
.on-campus-row > span { text-align: right; }
.on-campus-row > span strong, .on-campus-row > span small { display: block; }
.on-campus-row > span strong { color: var(--green); font-size: .7rem; text-transform: uppercase; }
.on-campus-row > span small { max-width: 165px; margin-top: 2px; overflow: hidden; color: var(--gray-600); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.on-campus-row > span em { display: block; margin-top: 2px; color: var(--gray-600); font-size: .66rem; font-style: normal; }
/* Personal check-in picker: stable actions around an independently scrolling grid. */
html body .check-in-area-dialog { --check-in-action: var(--blue); width: min(470px, calc(100% - 24px)); height: min(760px, calc(100dvh - 24px)); max-height: calc(100dvh - 24px); margin: auto; overflow: hidden; border: 1px solid var(--theme-border); border-radius: 16px; background: var(--theme-surface); color: var(--navy); }
.check-in-area-dialog [hidden] { display: none !important; }
.check-in-area-dialog form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; min-height: 0; padding: 0; }
.check-in-area-dialog .dialog-heading { position: static; gap: 8px; padding: 16px 16px 0; border: 0; background: var(--theme-surface); }
.check-in-area-dialog .dialog-heading > div { min-width: 0; }
.check-in-area-dialog .dialog-heading .eyebrow { margin: 0 0 4px; color: var(--theme-muted); font-size: .65rem; line-height: 1.25; }
.check-in-area-dialog .dialog-heading h2 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.check-in-area-dialog .dialog-heading > button { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid var(--theme-border); border-radius: 6px; background: var(--theme-surface); color: inherit; line-height: 1; }
.check-in-area-heading { background: var(--theme-surface); border-bottom: 1px solid var(--theme-border); }
.check-in-area-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 4px 16px; }
.check-in-area-intro { margin: 0; padding: 0; color: var(--theme-muted); font-size: .74rem; line-height: 1.3; }
.check-in-area-toolbar button { flex: 0 0 auto; min-height: 44px; padding: 0 0 0 8px; border: 0; background: transparent; color: var(--check-in-action); font: inherit; font-size: .78rem; font-weight: 800; }
.check-in-area-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--theme-border) var(--theme-surface); padding: 12px 14px 16px; }
.check-in-area-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.check-in-area-options legend, .check-in-area-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.check-in-area-options :is(label, .check-in-location-tile) { position: relative; display: grid; min-width: 0; min-height: 48px; place-items: center; padding: 7px 8px; border: 1px solid var(--theme-border); border-radius: 10px; background: var(--theme-surface-strong); color: var(--theme-text); font: inherit; font-size: .78rem; line-height: 1.3; font-weight: 850; text-align: center; cursor: pointer; }
.check-in-area-options input { position: absolute; width: 1px; min-height: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.check-in-area-options label:has(input:checked) { border: 2px solid var(--church-green); padding: 6px 7px; background: color-mix(in srgb, var(--church-green) 14%, var(--theme-surface-strong)); color: var(--green); }
html body .check-in-area-dialog .check-in-area-options :is(label, button) > span { color: inherit; }
.check-in-area-options .scheduled-post-area-option { grid-column: 1 / -1; }
.scheduled-post-area-option span small { display: block; margin-top: 3px; color: var(--theme-muted); font-size: .68rem; }
.check-in-area-options.arranging .check-in-location-tile { padding-right: 23px; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.check-in-location-grip { position: absolute; right: 5px; top: 50%; width: 12px; height: 20px; transform: translateY(-50%); fill: currentColor; opacity: .6; }
.check-in-area-options.arranging .check-in-location-tile[aria-pressed="true"] { border-color: var(--check-in-action); box-shadow: inset 0 0 0 1px var(--check-in-action); }
.check-in-location-tile.dragging { opacity: .5; }
.check-in-location-tile.drop-target { outline: 2px solid var(--check-in-action); outline-offset: -2px; }
.check-in-area-dialog :is(button:focus-visible, label:has(input:focus-visible)) { outline: 3px solid var(--check-in-action); outline-offset: 2px; }
.check-in-area-footer { border-top: 1px solid var(--theme-border); background: var(--theme-surface); padding: 9px 14px max(14px, env(safe-area-inset-bottom)); }
.check-in-area-context { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; margin-bottom: 7px; }
.check-in-area-context p { min-width: 0; margin: 0; color: var(--theme-muted); font-size: .74rem; line-height: 1.3; overflow-wrap: anywhere; }
.check-in-area-context strong { color: var(--theme-text); font-weight: 800; }
#check-in-area-move-controls { display: flex; flex: 0 0 auto; gap: 4px; }
#check-in-area-move-controls button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--theme-border); border-radius: 6px; background: var(--theme-surface); color: var(--theme-text); font: inherit; font-size: 1.15rem; font-weight: 800; }
.check-in-area-actions { display: grid; grid-template-columns: 1fr 1.65fr; gap: 8px; padding: 0; }
.check-in-area-actions button { min-width: 0; min-height: 48px; margin: 0; padding: 9px 8px; border: 1px solid var(--theme-border); border-radius: 7px; background: var(--theme-surface-strong); color: var(--theme-text); font: inherit; font-size: .9rem; line-height: 1.25; font-weight: 850; }
.check-in-area-actions .shared-primary { border-color: var(--blue); background: var(--blue); color: var(--white); }
.check-in-area-dialog button:disabled { cursor: default; opacity: .5; }
.check-in-area-actions .shared-primary:disabled { border-color: var(--theme-border); background: var(--theme-surface-strong); color: var(--theme-muted); opacity: 1; }
.check-in-area-footer .presence-feedback { margin: 0 0 8px; padding: 8px; font-size: .75rem; }
.check-in-area-footer #presence-refresh-app { min-height: 44px; margin-bottom: 8px; background: var(--theme-surface); color: var(--theme-text); border: 1px solid var(--theme-border); }
html[data-theme="dark"] body .check-in-area-dialog { --check-in-action: var(--theme-text); color: var(--theme-text); }
html[data-theme="dark"] body .check-in-area-dialog .check-in-area-options label:has(input:checked) { color: var(--theme-text); }
@media (max-width: 520px) {
  html body .check-in-area-dialog { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .check-in-area-dialog .dialog-heading { padding-top: max(12px, env(safe-area-inset-top)); }
}
@media (max-width: 350px) {
  .check-in-area-dialog .dialog-heading { padding-inline: 12px; }
  .check-in-area-toolbar { padding-inline: 12px; }
  .check-in-area-scroll { padding-inline: 10px; }
  .check-in-area-footer { padding-inline: 10px; }
}
.coverage-summary p { margin: 0; color: var(--gray-600); font-weight: 750; }
.coverage-summary strong { padding: 7px 11px; background: var(--church-green); color: var(--navy); white-space: nowrap; }
.coverage-team-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--gray-300); background: var(--gray-50); }
.coverage-team-toggle button { min-height: 50px; border: 2px solid var(--navy); background: var(--white); color: var(--navy); font: inherit; font-weight: 900; }
.coverage-team-toggle button[aria-pressed="true"] { background: var(--navy); color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.coverage-event-time { margin: 6px 0 0; color: var(--gray-600); font-size: .82rem; font-weight: 800; }
.coverage-list { padding: 0 18px 10px; }
.coverage-group { margin-top: 15px; }
.coverage-group-heading { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 10px; background: var(--gray-50); color: var(--navy); font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.coverage-group-heading span { color: var(--gray-600); letter-spacing: 0; }
.coverage-status { padding: 5px 8px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); font-size: .74rem; font-weight: 900; text-align: center; white-space: nowrap; }
.coverage-status.checked { border-color: var(--church-green); background: var(--church-green); }
.coverage-status.away { border-color: var(--orange); color: var(--orange); }
.coverage-status.issue { border-color: var(--red); background: var(--red); color: var(--white); }
.coverage-issue-link { cursor: pointer; font: inherit; }
.coverage-now-line { position: relative; height: 0; margin: 22px 0 26px; border-top: 3px solid var(--red); }
.coverage-now-line span { position: absolute; top: -11px; left: 12px; padding: 3px 9px; background: var(--red); color: var(--white); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.coverage-wave { margin-top: 18px; }
.coverage-wave-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; padding: 6px 10px; background: var(--gray-50); color: var(--navy); font-size: .8rem; font-weight: 900; }
.coverage-wave-countdown { color: var(--gray-600); font-size: .74rem; font-weight: 750; text-transform: none; letter-spacing: 0; }
.coverage-timeline-group { margin-top: 18px; }
.coverage-timeline-group > .coverage-group-heading { margin-bottom: 8px; }
.coverage-timeline-group .coverage-wave { margin-top: 10px; }
.coverage-position-time { margin-left: auto; color: var(--gray-600); font-size: .76rem; font-weight: 800; white-space: nowrap; }
.coverage-position.current.uncovered .coverage-position-time { color: var(--white); }
.coverage-roaming-person > span:first-child,
.coverage-off-person > span:first-child,
.coverage-present-person > span:first-child { display: grid; gap: 3px; }
.coverage-roaming-person small,
.coverage-off-person small,
.coverage-present-person small { color: var(--gray-600); font-size: .78rem; font-weight: 750; line-height: 1.35; }
.coverage-status.off { background: var(--gray-200); color: var(--gray-700); }
.coverage-position.off { background: var(--gray-50); }
.coverage-wave.past { opacity: 1; }
.coverage-wave.future { opacity: .78; }
.coverage-position { display: block; width: 100%; margin-bottom: 8px; padding: 10px 12px; border: 1px solid var(--gray-300); background: var(--white); color: var(--navy); text-align: left; font: inherit; }
.coverage-position-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.coverage-position-head strong { font-size: .96rem; }
.coverage-people { display: flex; flex-direction: column; gap: 6px; }
.coverage-people.plain { flex-direction: row; flex-wrap: wrap; gap: 4px 10px; color: var(--gray-600); font-size: .88rem; }
.coverage-person-message { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 850; text-align: left; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; touch-action: manipulation; }
.coverage-person-message:hover, .coverage-person-message:focus-visible { color: var(--blue); outline: 2px solid currentColor; outline-offset: 3px; }
.person-contact-dialog {
  width: min(430px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--theme-border);
  border-radius: 24px;
  background: var(--theme-surface);
  color: var(--theme-text);
  box-shadow: 0 24px 70px rgba(5, 24, 41, .3);
}
.person-contact-sheet { display: grid; gap: 15px; padding: 22px; }
.person-contact-heading { display: grid; gap: 5px; }
.person-contact-dialog .person-contact-heading .eyebrow { margin: 0; color: var(--church-green); }
.person-contact-heading h2 { margin: 0; color: var(--theme-text); font-size: clamp(1.65rem, 8vw, 2.15rem); line-height: 1; }
.person-contact-heading > p:last-child { margin: 4px 0 0; color: var(--theme-muted); font-size: .9rem; line-height: 1.4; }
.person-contact-actions { display: grid; gap: 9px; }
.person-contact-option {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  background: var(--theme-surface-strong);
  color: var(--theme-text);
  text-decoration: none;
}
.person-contact-option:hover, .person-contact-option:focus-visible { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: -2px; }
.person-contact-option > span:nth-child(2), .person-contact-option strong, .person-contact-option small { display: block; }
.person-contact-option strong { color: var(--theme-text); font-size: .95rem; }
.person-contact-option small { margin-top: 3px; color: var(--theme-muted); font-size: .74rem; line-height: 1.25; }
.person-contact-option > b { color: var(--theme-muted); font-size: 1.55rem; }
.person-contact-dialog .person-contact-option .person-contact-icon { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: var(--blue); }
.person-contact-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.person-contact-dialog .whatsapp-contact-option .person-contact-icon { color: #168b49; }
.person-contact-unavailable { margin: 0; padding: 7px 4px 0; color: var(--theme-muted); font-size: .76rem; text-align: center; }
.person-contact-cancel { min-height: 50px; border: 0; border-top: 1px solid var(--theme-border); background: transparent; color: var(--theme-muted); font: inherit; font-weight: 800; }
.person-contact-cancel:hover, .person-contact-cancel:focus-visible { color: var(--theme-text); outline: 2px solid var(--blue); outline-offset: -2px; }
.team-photo-avatar { position: relative; display: inline-grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; border: 1px solid var(--gray-300); border-radius: 50%; background: var(--gray-100); color: var(--navy); font-size: .62rem; font-weight: 900; text-decoration: none; }
.team-photo-avatar.on-campus { border-color: var(--church-green); background: var(--church-green); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--church-green); color: var(--navy); }
.team-photo-avatar.on-campus::after { position: absolute; right: -3px; bottom: -2px; width: 9px; height: 9px; border: 2px solid var(--white); border-radius: 50%; background: var(--church-green); content: ""; }
.team-photo-avatar.large { width: 112px; height: 112px; font-size: 1.7rem; }
.team-photo-avatar img, .team-photo-preview > img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.shared-member-identity { display: flex; align-items: flex-start; gap: 10px; }
.team-photo-form { display: grid; gap: 14px; padding: 18px; }
.team-photo-form p, .team-photo-form small { margin: 0; color: var(--gray-600); }
.team-photo-preview { display: grid; place-items: center; width: 132px; height: 132px; margin-inline: auto; overflow: hidden; border: 2px solid var(--gray-300); border-radius: 50%; background: var(--gray-100); }
.team-photo-preview > .team-photo-avatar.large { width: 100%; height: 100%; border: 0; }
.team-photo-picker { display: grid; gap: 7px; font-weight: 850; }
.team-photo-picker input { width: 100%; }
.coverage-person { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--gray-600); }
.coverage-team-roster .coverage-position { padding-block: 4px; }
.coverage-team-roster .coverage-people { gap: 0; }
.coverage-roster-person { min-height: 56px; padding: 5px 0; border-bottom: 1px solid var(--gray-200); }
.coverage-roster-person:last-child { border-bottom: 0; }
.coverage-roster-person > span:first-child { min-width: 0; }
.coverage-roster-link { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; color: var(--navy); font-size: .86rem; font-weight: 850; line-height: 1.15; text-decoration: none; }
button.coverage-roster-link { min-height: 44px; }
.coverage-roster-link strong { font: inherit; }
.coverage-roster-person small { display: block; margin: -4px 0 2px 38px; color: var(--gray-600); font-size: .64rem; line-height: 1.2; }
.coverage-roster-person > .coverage-status { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: var(--gray-600); font-size: .64rem; white-space: nowrap; }
.coverage-roster-person > .coverage-status::before { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-400); content: ""; }
.coverage-roster-person > .coverage-status.checked::before { background: var(--church-green); }
.coverage-flag { padding: 3px 7px; font-size: .68rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.coverage-flag.missed { border: 0; background: var(--gray-100); color: var(--gray-600); font-size: .62rem; font-weight: 750; letter-spacing: 0; text-transform: none; }
.coverage-flag.uncovered { background: var(--white); color: var(--orange); }
.coverage-position.current { border: 2px solid var(--navy); background: var(--gray-50); }
.coverage-position.current.uncovered { border: 3px solid var(--orange); background: var(--orange); }
.coverage-position.current.uncovered .coverage-position-head strong,
.coverage-position.current.uncovered .coverage-person > span:first-child,
.coverage-position.current.uncovered .coverage-person-message { color: var(--white); }
.coverage-wave.past .coverage-wave-heading { padding: 4px 9px; background: var(--white); color: var(--gray-600); font-size: .72rem; }
.coverage-position.past { margin-bottom: 5px; padding: 7px 10px; border-style: dotted; background: var(--gray-50); }
.coverage-position.past .coverage-position-head { margin-bottom: 3px; }
.coverage-position.past .coverage-position-head strong { color: var(--gray-600); font-size: .82rem; }
.coverage-wave.past .coverage-person { color: var(--gray-600); font-size: .76rem; }
.coverage-person.missed > span:first-child,
.coverage-person.missed > .coverage-person-message { color: var(--gray-600); font-weight: 500; }
.coverage-position.has-location-issue { animation: location-attention 1.8s ease-in-out 3; }
.coverage-issue-link:hover, .coverage-issue-link:focus-visible { outline: 3px solid rgb(180 35 46 / 25%); outline-offset: 2px; }
@keyframes location-attention { 0%, 100% { background: #fff7f8; } 50% { background: #ffdfe4; } }
@media (prefers-reduced-motion: reduce) { .coverage-position.has-location-issue { animation: none; } }
.coverage-note, .issues-log-context { margin: 4px 18px 18px; padding: 10px 12px; border: 1px dashed var(--gray-300); color: var(--gray-600); font-size: .8rem; text-align: center; }
.issues-log-context { margin-top: 14px; text-align: left; }
.issue-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 16px 16px 18px; border-bottom: 1px solid #c8ced4; border-left: 6px solid #7d8791; background: #fff; color: #152435; }
.issue-card strong, .issue-card span { display: block; }
.issue-card > div > strong { color: #152435 !important; font-size: 1.05rem; line-height: 1.25; }
.issue-card span { color: #465464 !important; font-size: .94rem; line-height: 1.42; }
.issue-card button { width: 100%; min-height: 50px; padding: 0 14px; border: 2px solid #245f36; background: #fff; color: #174b29; font: inherit; font-size: .95rem; font-weight: 900; }
.issue-card .issue-state { margin: 6px 0; color: #985600 !important; font-weight: 900; }
.issue-card.active { box-shadow: inset 0 0 0 2px #d5dae0; }
.issue-card.resolved { background: #fff; }
.issue-card.resolved .issue-state { color: #245f36 !important; }
.issue-card.issue-level-green, .issue-history-summary.issue-level-green { border-left-color: #3e7a3a; }
.issue-card.issue-level-yellow, .issue-history-summary.issue-level-yellow { border-left-color: #d9a514; }
.issue-card.issue-level-red, .issue-history-summary.issue-level-red { border-left-color: #a71930; }
.issue-list-section > h3 { margin: 0; padding: 14px 16px 10px; border-bottom: 1px solid #c8ced4; background: #f2f4f6; color: #152435 !important; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.issue-history-access { display: grid; gap: 12px; margin: 14px; padding: 14px; border: 1px solid #b9c1c9; background: #fff; }
.issue-history-access h3, .issue-history-access p { margin: 0; }
.issue-history-access h3 { color: #152435 !important; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.issue-history-access p { margin-top: 4px; color: #465464 !important; font-size: .9rem; }
.issue-history-access > button { min-height: 48px; border: 2px solid var(--navy); background: var(--white); color: var(--navy); font: inherit; font-weight: 900; }
.issue-history-summary { display: grid; gap: 4px; margin-top: 3px; padding: 13px 10px 13px 14px; border-top: 1px solid #b9c1c9; border-left: 5px solid #7d8791; }
.issue-history-summary strong, .issue-history-summary span { display: block; }
.issue-history-summary strong { color: #152435 !important; font-size: .98rem; }
.issue-history-summary span { color: #465464 !important; font-size: .9rem; line-height: 1.35; }
.open-poi-gallery {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: calc(100% - 28px);
  min-height: 64px;
  align-items: center;
  gap: 11px;
  margin: 0 14px 14px;
  padding: 0 12px;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  text-align: left;
}
.open-poi-gallery-icon { display: grid; width: 42px; height: 42px; place-items: center; background: var(--blue); color: var(--white); }
.open-poi-gallery-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.open-poi-gallery > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.open-poi-gallery strong { color: var(--navy); font-size: .92rem; }
.open-poi-gallery small { color: var(--gray-600); font-size: .72rem; font-weight: 650; }
.open-poi-gallery b { color: var(--blue); font-size: 1.4rem; }
.poi-gallery-intro { margin: 12px 14px 0; color: var(--gray-600); font-size: .76rem; line-height: 1.4; }
.poi-gallery-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 14px; border: 2px solid var(--navy); }
.poi-gallery-tabs button { min-height: 46px; border: 0; border-right: 2px solid var(--navy); background: var(--white); color: var(--navy); font: inherit; font-size: .82rem; font-weight: 900; }
.poi-gallery-tabs button:last-child { border-right: 0; }
.poi-gallery-tabs button[aria-selected="true"] { background: var(--blue); color: var(--white); }
.poi-gallery-tabs span { display: inline-grid; min-width: 21px; min-height: 21px; margin-left: 4px; place-items: center; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); font-size: .68rem; }
.poi-gallery-status { margin: 0 14px 12px; padding: 10px 12px; border: 1px solid var(--gray-300); color: var(--gray-600); font-size: .76rem; font-weight: 700; }
.poi-gallery-status[hidden] { display: none; }
.poi-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 14px; }
.poi-gallery-grid > .shared-empty { grid-column: 1 / -1; }
.poi-gallery-card { min-width: 0; overflow: hidden; padding: 0; border: 1px solid var(--gray-300); border-radius: 10px; background: var(--white); color: var(--navy); font: inherit; text-align: left; }
.poi-gallery-card.past { opacity: .8; }
.poi-gallery-photo { position: relative; display: grid; aspect-ratio: 4 / 5; overflow: hidden; place-items: center; border-bottom: 1px solid var(--gray-300); background: var(--gray-100); color: var(--gray-600); }
.poi-gallery-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.poi-gallery-photo img[hidden] { display: none; }
.poi-gallery-photo-loading { padding: 10px; font-size: .7rem; font-weight: 750; text-align: center; }
.poi-gallery-card-status { position: absolute; z-index: 1; top: 7px; left: 7px; padding: 4px 7px; border-radius: 999px; background: var(--blue); color: var(--white); font-size: .6rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.poi-gallery-card.past .poi-gallery-card-status { background: var(--gray-600); }
.poi-gallery-card-copy { display: grid; gap: 4px; padding: 9px; }
.poi-gallery-card-copy strong { display: -webkit-box; overflow: hidden; color: var(--navy); font-size: .8rem; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.poi-gallery-card-copy small { color: var(--gray-600); font-size: .66rem; line-height: 1.3; font-weight: 650; }
.poi-gallery-card.photo-unavailable .poi-gallery-photo { background: var(--gray-50); }
.poi-gallery-retention { margin: 12px 14px 16px; color: var(--gray-600); font-size: .7rem; line-height: 1.4; }
.poi-gallery-detail-updates > h3 { margin: 0; padding: 13px 14px 9px; border-bottom: 1px solid var(--gray-300); color: var(--navy); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.poi-gallery-detail-updates .thread-messages { padding-top: 10px; }
.poi-gallery-detail-dialog .thread-photo { padding-top: 14px; }
.poi-gallery-detail-dialog .dialog-heading > div { min-width: 0; }
.poi-gallery-detail-dialog .dialog-heading h2 { overflow-wrap: anywhere; font-size: 1.15rem; line-height: 1.15; }
.poi-gallery-detail-dialog .dialog-heading > button { flex: 0 0 50px; }
.thread-summary { padding: 14px; border-bottom: 1px solid var(--gray-300); }
.thread-summary strong, .thread-summary span { display: block; }
.thread-summary strong { font-size: 1.2rem; }
.thread-summary span { margin-top: 4px; color: var(--gray-600); font-size: .82rem; }
.thread-status-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 12px; }
.thread-status-actions button { min-height: 48px; padding: 6px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); font-weight: 850; }
.thread-status-actions button.active { border-color: var(--blue); background: var(--blue); color: var(--white); }
.thread-status-actions button.need-help { border-color: var(--orange); color: var(--orange); }
.thread-color-control { margin: 0; padding: 12px; border: 0; border-bottom: 1px solid var(--gray-200); }
.thread-color-control legend { float: left; width: 100%; margin: 0 0 8px; padding: 0; color: var(--navy); font-size: .78rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.thread-color-options { clear: both; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 2px solid var(--navy); border-radius: 999px; background: var(--white); }
.thread-color-options button { min-height: 46px; border: 0; border-right: 2px solid var(--navy); background: var(--white); color: var(--navy); font: inherit; font-size: .82rem; font-weight: 900; }
.thread-color-options button:last-child { border-right: 0; }
.thread-color-options .thread-color-green.active { background: #3E7A3A; color: var(--white); }
.thread-color-options .thread-color-yellow.active { background: #D9A514; color: #172033; }
.thread-color-options .thread-color-red.active { background: #A71930; color: var(--white); }
.thread-color-options button:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--blue); outline-offset: -3px; }
.radio-reminder { display: grid; gap: 3px; margin: 0 12px 12px; padding: 10px; border-left: 5px solid var(--orange); background: var(--gray-50); }
.radio-reminder span { color: var(--gray-600); font-size: .78rem; }
.thread-messages { max-height: 280px; overflow-y: auto; border-top: 1px solid var(--gray-300); border-bottom: 1px solid var(--gray-300); }
.thread-message { padding: 11px 14px; border-bottom: 1px solid var(--gray-100); }
.thread-message strong, .thread-message span { display: block; }
.thread-message span { color: var(--gray-600); font-size: .75rem; }
.thread-message p { margin: 5px 0 0; line-height: 1.4; }
.thread-message-form { display: grid; gap: 8px; padding: 12px; }
.thread-message-form label { padding: 0 !important; }
.thread-message-form textarea { min-height: 82px; }
.thread-admin-actions { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 0 12px 12px; }
.thread-admin-actions button { width: 100%; min-height: 48px; border: 1px solid var(--church-green); background: var(--white); color: var(--green); font-weight: 900; }
.thread-admin-actions button.close-report-action { background: var(--green); color: var(--white); }
.thread-admin-actions button.reopen-report-action { background: var(--white); color: var(--green); }
.report-resolution-dialog form { display: grid; gap: 16px; }
.report-resolution-intro { margin: 0 16px; color: var(--muted); line-height: 1.45; }
.report-resolution-dialog form > label { display: grid; gap: 7px; margin: 0 16px; color: var(--ink); font-weight: 900; }
.report-resolution-dialog select,
.report-resolution-dialog textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; }
.report-resolution-dialog select { min-height: 48px; padding: 0 12px; }
.report-resolution-dialog textarea { min-height: 132px; padding: 12px; resize: vertical; }
.report-resolution-draft-note { margin: -6px 16px 0; color: var(--green); font-weight: 800; }
.report-resolution-actions { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 10px; padding: 0 16px 16px; }
.report-resolution-actions button { min-height: 50px; border: 1px solid var(--line); font-weight: 900; }
.admin-dialog { width: min(1050px, calc(100% - 24px)); }
.admin-dashboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; align-items: start; }
.admin-card { border: 1px solid var(--gray-300); background: var(--white); }
.signin-help-card { grid-column: 1 / -1; }
.admin-card[open] { grid-column: 1 / -1; border-color: var(--blue); }
.admin-card > summary, .desktop-emergency-tools > summary { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; min-height: 104px; padding: 16px; cursor: pointer; list-style: none; }
.admin-card > summary::-webkit-details-marker, .desktop-emergency-tools > summary::-webkit-details-marker { display: none; }
.admin-card > summary:hover, .admin-card > summary:focus-visible { background: var(--gray-50); outline: 2px solid var(--blue); outline-offset: -2px; }
.admin-card-number { display: grid; place-items: center; width: 34px; height: 34px; background: var(--navy); color: var(--white); font-size: .8rem; font-weight: 900; }
.admin-card summary > span:nth-child(2), .desktop-emergency-tools summary > span:first-child { display: grid; gap: 5px; }
.admin-card summary strong, .desktop-emergency-tools summary strong { color: var(--navy); font-size: 1.05rem; }
.admin-card summary small, .desktop-emergency-tools summary small { color: var(--gray-600); font-size: .75rem; line-height: 1.3; }
.admin-card-action { color: var(--blue); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.admin-card-link { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; min-height: 104px; padding: 16px; color: inherit; text-decoration: none; }
.admin-card-link > span:nth-child(2) { display: grid; gap: 5px; }
.admin-card-link strong { color: var(--navy); font-size: 1.05rem; }
.admin-card-link small { color: var(--gray-600); font-size: .75rem; line-height: 1.3; }
.admin-card-link:hover, .admin-card-link:focus-visible { background: var(--gray-50); outline: 3px solid var(--blue); outline-offset: -3px; }
.admin-card[open] > summary .admin-card-action::before, .desktop-emergency-tools[open] > summary .admin-card-action::before { content: "Close "; }
.admin-card[open] > summary .admin-card-action, .desktop-emergency-tools[open] > summary .admin-card-action { font-size: 0; }
.admin-card[open] > summary .admin-card-action::before, .desktop-emergency-tools[open] > summary .admin-card-action::before { font-size: .72rem; }
.admin-card-content { border-top: 1px solid var(--gray-300); }
.signin-support-dialog { width: min(820px, calc(100% - 24px)); }
.signin-help-panel { padding: 16px; }
.signin-help-panel > label { display: grid; gap: 6px; color: var(--gray-600); font-size: .75rem; font-weight: 900; }
.signin-help-panel > label input { min-height: 48px; padding: 10px 12px; border: 1px solid var(--gray-300); background: var(--white); color: var(--navy); font: inherit; }
[data-signin-help-results] { margin-top: 12px; display: grid; gap: 8px; }
.signin-help-panel-status { margin: 10px 0 0; color: var(--navy); font-size: .78rem; font-weight: 850; }
.signin-help-person { padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--gray-300); background: var(--gray-50); }
.signin-help-person > span { display: grid; gap: 3px; }
.signin-help-person small { color: var(--gray-600); }
.signin-help-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.signin-help-actions button { min-height: 44px; padding: 0 11px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); font-weight: 850; }
.signin-help-actions button.primary { background: var(--navy); color: var(--white); }
.signin-help-note { margin: 12px 0 0; color: var(--gray-600); font-size: .72rem; line-height: 1.45; }
@media (min-width: 900px) {
  .signin-help-panel { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(420px, 1.3fr); gap: 14px 22px; align-items: end; }
  .signin-help-panel .shared-panel-head { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .signin-help-panel[data-signin-help-panel="delegated"] .shared-panel-head { grid-row: 1 / span 3; }
  .signin-help-panel > label, .signin-help-panel > [data-signin-help-results], .signin-help-panel > .signin-help-panel-status { grid-column: 2; }
  [data-signin-help-results] { margin-top: 0; }
  .signin-help-panel-status { margin: -6px 0 0; }
  .signin-help-note { grid-column: 1 / -1; }
}
.incident-log-panel { padding: 14px; }
.incident-export-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); gap: 12px 18px; align-items: end; margin-bottom: 18px; padding: 16px; border: 2px solid var(--navy); background: var(--gray-50); }
.incident-export-panel > div:first-child { align-self: center; }
.incident-export-panel h3, .incident-export-panel p { margin: 0; }
.incident-export-panel h3 { color: var(--navy); font-size: 1.15rem; }
.incident-export-panel > div:first-child > p:last-child { margin-top: 5px; color: var(--gray-600); font-size: .82rem; line-height: 1.4; }
#incident-export-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
#incident-export-form label { display: grid; gap: 5px; color: var(--gray-600); font-size: .75rem; font-weight: 850; }
#incident-export-form input, #incident-export-form button, #download-incident-pdf { min-height: 48px; }
.incident-export-result { grid-column: 1 / -1; min-height: 22px; color: var(--navy); font-size: .86rem; font-weight: 750; }
#download-incident-pdf { grid-column: 1 / -1; width: 100%; }
.incident-filters { display: grid; grid-template-columns: repeat(5, minmax(115px, 1fr)) auto; gap: 8px; align-items: end; margin-bottom: 14px; }
.incident-filters label { display: grid; gap: 4px; color: var(--gray-600); font-size: .72rem; font-weight: 800; }
.incident-filters input, .incident-filters select, .incident-filters button { min-height: 44px; }
.incident-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--gray-100); }
.incident-row strong, .incident-row span, .incident-row small { display: block; }
.incident-row span, .incident-row small { margin-top: 3px; color: var(--gray-600); }
.incident-row button { min-height: 44px; border: 1px solid var(--blue); background: var(--white); color: var(--blue); font-weight: 900; }
.incident-detail-dialog { width: min(820px, calc(100% - 24px)); }
.incident-original, .incident-additions { padding: 16px; border-bottom: 1px solid var(--gray-300); }
.incident-original dl { display: grid; gap: 8px; }
.incident-original dl div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.incident-original dt { color: var(--gray-600); font-weight: 900; }
.incident-original dd { margin: 0; }
.incident-original ul, .incident-additions ul { padding: 0; list-style: none; }
.incident-original li, .incident-additions li { padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.incident-original li span, .incident-additions li span { display: block; color: var(--gray-600); font-size: .75rem; }
.incident-original li p, .incident-additions li p { margin: 4px 0 0; }
.incident-event-form { display: grid; gap: 10px; padding: 16px; }
.incident-event-form label { display: grid; gap: 5px; font-weight: 850; }
@media (max-width: 700px) {
  .incident-export-panel { grid-template-columns: 1fr; }
  #incident-export-form { grid-template-columns: 1fr; }
  .incident-export-result, #download-incident-pdf { grid-column: 1; }
}
.incident-event-form textarea { min-height: 100px; }
.schedule-upload-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border-left: 6px solid var(--blue); }
.schedule-upload-panel h3 { margin: 2px 0 5px; font-size: 1.35rem; }
.schedule-upload-panel p { margin: 0; color: var(--gray-600); }
.schedule-upload-link { display: inline-flex; min-height: 54px; padding: 0 22px; align-items: center; justify-content: center; color: var(--white); text-decoration: none; white-space: nowrap; font-weight: 900; }
.schedule-admin-links { display: grid; gap: 8px; }
.schedule-upload-link.secondary { background: var(--white); border: 2px solid var(--navy); color: var(--navy); }
.desktop-emergency-tools { margin: 0 12px 12px; border: 2px solid var(--red); background: var(--white); }
.desktop-emergency-tools > summary { min-height: 82px; border-left: 8px solid var(--red); }
.desktop-emergency-tools summary strong, .desktop-emergency-tools .admin-card-action { color: var(--red); }
.desktop-emergency-content { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border-top: 1px solid var(--red); }
.desktop-emergency-tools p { margin: 0; color: var(--gray-600); }
.desktop-emergency-tools button { min-height: 54px; padding: 0 18px; border: 2px solid var(--red); background: var(--white); color: var(--red); font-weight: 900; }
@media (max-width: 650px) {
  .add-member-form { grid-template-columns: 1fr; }
  .people-add-form, .people-directory-controls, .member-access-editor, .people-access-choice { grid-template-columns: 1fr; }
  .people-add-heading, .people-access-choice, .member-access-editor button, .member-access-editor small { grid-column: auto; }
  .people-access-row > summary { align-items: flex-start; flex-direction: column; }
  .add-member-form button { width: 100%; }
  .admin-dashboard { grid-template-columns: 1fr; gap: 9px; padding: 9px; }
  .admin-card[open] { grid-column: auto; }
  .admin-card > summary { min-height: 92px; padding: 13px; }
  .admin-card-link { min-height: 92px; padding: 13px; }
  .signin-help-person { grid-template-columns: 1fr; }
  .signin-help-actions { justify-content: stretch; }
  .signin-help-actions button { width: 100%; flex: 1 1 100%; min-height: 50px; }
  .signin-help-panel { padding: 13px; }
  .signin-help-panel > label input { min-height: 52px; font-size: 1rem; }
  .schedule-upload-panel, .desktop-emergency-content { align-items: stretch; flex-direction: column; }
  .desktop-emergency-tools { margin: 0 9px 9px; }
  .incident-filters { grid-template-columns: 1fr 1fr; }
  .incident-row { grid-template-columns: 1fr; }
  .incident-original dl div { grid-template-columns: 1fr; gap: 2px; }
}
.admin-duty-row { display: grid; grid-template-columns: 1fr 170px 140px 140px auto; gap: 8px; align-items: end; padding: 12px; border-bottom: 1px solid var(--gray-100); }
.admin-duty-row label { display: grid; gap: 4px; color: var(--gray-600); font-size: .72rem; font-weight: 800; }
.admin-duty-row select, .admin-duty-row input { min-height: 44px; }
.admin-duty-row button { min-height: 44px; padding: 0 12px; border: 1px solid var(--blue); background: var(--blue); color: var(--white); font-weight: 850; }
.admin-duty-row button:disabled { border-color: var(--gray-300); background: var(--gray-50); color: var(--gray-600); cursor: default; }
body.lockdown-active { background: #be1e2d; }
body.lockdown-active .shared-shell { background: var(--white); }
@media (max-width: 760px) {
  .shared-shell { padding: 8px; }
  .shared-personal { align-items: stretch; flex-direction: column; }
  .shared-header { grid-template-columns: 1fr auto; align-items: start; gap: 10px; }
  .desk-header-status { justify-items: start; border-right: 0; text-align: left; }
  .shared-header > div:last-child { justify-items: end; text-align: right; }
  .notification-panel { min-height: 52px; }
  .message-preview { align-items: flex-start; }
  .message-preview p { white-space: normal; }
  .message-preview-meta { min-width: 94px; }
  .notification-panel span { display: none; }
  .personal-actions { grid-template-columns: repeat(2, 1fr); }
  .personal-actions button:first-child { grid-column: 1 / -1; }
  .shared-grid { grid-template-columns: 1fr; }
  .shared-member { grid-template-columns: 1fr auto; }
  .shared-member select { grid-column: 1 / -1; }
  .shared-member .send-invite { grid-column: 1 / -1; width: 100%; }
  .access-row { grid-template-columns: 1fr; }
  .person-row summary { align-items: flex-start; flex-direction: column; }
  .person-review-action label { grid-template-columns: 1fr; }
  .person-badges { justify-content: flex-start; }
  .welcome-view { margin-top: 12px; padding: 17px; }
  .welcome-guide { grid-template-columns: 1fr; }
  .welcome-guide div { min-height: 0; }
  .main-control { min-height: 76px; font-size: 1.15rem; }
  .main-issues { grid-template-columns: 1fr 1fr; }
  .main-issues button { min-height: 94px; }
  .issue-status-strip.has-active, .issue-status-strip.has-critical { padding: 14px; }
  .team-view-button { min-height: 96px; }
  .lockdown-control { margin-top: 18px; }
  .operation-dialog { width: 100%; max-width: none; max-height: 100dvh; margin: 0; border-width: 0; }
  .person-contact-dialog { width: calc(100% - 24px); margin: auto; border: 1px solid var(--theme-border); border-radius: 24px; }
  .coverage-summary { align-items: flex-start; flex-direction: column; }
  .coverage-person { flex-wrap: wrap; }
  .admin-duty-row { grid-template-columns: 1fr 1fr; }
  .admin-duty-row > strong, .admin-duty-row > button { grid-column: 1 / -1; }
  .thread-status-actions { grid-template-columns: 1fr 1fr; }
}

/* Sunday phone V2: BMW-inspired, assignment-first application shell */
body.shared-app-active {
  background: #111514;
  color: #f7f8f7;
}
body.shared-app-active .shared-shell {
  width: min(430px, 100%);
  padding: 0;
  background: #111514;
}
body.shared-app-active .test-banner {
  border: 0;
  border-bottom: 1px solid #3d4240;
  background: #202422;
  color: #ff8d96;
}
body.shared-app-active .test-banner span { color: #aeb4b1; }
.sunday-screen {
  --phone-canvas: #111514;
  --phone-surface: #222725;
  --phone-card: var(--phone-surface);
  --phone-surface-strong: #2a302d;
  --phone-text: #f7f8f7;
  --phone-muted: #aeb6b1;
  --phone-border: #46504b;
  min-height: 100dvh;
  padding: 0 18px;
  background: var(--phone-canvas);
  color: var(--phone-text);
}
.sunday-screen .shared-header {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  min-height: 96px;
  align-items: center;
  gap: 8px;
  padding: 13px 0;
  border: 0;
}
.sunday-screen .shared-header .brand-lockup {
  width: min(230px, 100%);
  margin: 0 auto;
}
.sunday-screen .brand-version-lockup { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 8px; }
.sunday-screen .brand-version-lockup .brand-lockup { flex: 0 1 auto; }
.sunday-screen .brand-version-lockup .app-version { flex: none; color: var(--phone-muted); font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.sunday-screen .shared-header-actions { justify-self: end; }
.sunday-screen .header-icon-button {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border: 1px solid var(--phone-border);
  border-radius: 50%;
  background: transparent;
  color: var(--phone-text);
}
.sunday-screen .account-menu {
  top: 68px;
  border: 1px solid var(--phone-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--phone-surface);
  box-shadow: 0 18px 36px rgb(0 0 0 / 35%);
}
.sunday-screen .account-identity {
  border-color: var(--phone-border);
  background: var(--phone-surface-strong);
}
.sunday-screen .account-identity strong,
.sunday-screen .account-menu-item { color: var(--phone-text); }
.sunday-screen .account-identity span { color: var(--phone-muted); }
.sunday-screen .account-menu-item {
  border-color: var(--phone-border);
  background: var(--phone-surface);
}
.sunday-screen .account-menu-item:hover,
.sunday-screen .account-menu-item:focus-visible { background: var(--phone-surface-strong); }
.sunday-screen .event-summary {
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 5px 0 23px;
  border-bottom: 1px solid var(--phone-border);
}
.sunday-screen .event-summary .eyebrow {
  grid-column: 1 / -1;
  color: var(--phone-muted);
}
.sunday-screen .event-summary h1 {
  color: var(--phone-text);
  font-size: 1.05rem;
  font-weight: 650;
}
.sunday-screen .event-summary .event-distance,
.sunday-screen .event-summary #sync-state {
  color: var(--phone-muted);
  font-size: .72rem;
  font-weight: 650;
}
.sunday-screen .event-summary #sync-state { justify-self: end; }
.sunday-screen .notification-banner {
  margin: 12px 0 0;
  border: 0;
  border-radius: 12px;
  background: var(--phone-surface);
  color: var(--phone-text);
}
.sunday-screen .notification-banner button {
  border-color: var(--phone-muted);
  border-radius: 9px;
  background: transparent;
  color: var(--phone-text);
}
.assignment-hero { padding: 32px 0 26px; }
.assignment-state {
  margin: 0 0 8px;
  color: var(--phone-muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.assignment-hero h2 {
  margin: 0;
  color: var(--phone-text);
  font-size: clamp(3.15rem, 15vw, 4.35rem);
  font-weight: 650;
  line-height: .9;
  letter-spacing: -.055em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.assignment-time {
  margin: 17px 0 0;
  color: var(--phone-muted);
  font-size: 1.03rem;
  font-weight: 650;
}
.presence-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  color: var(--phone-text);
  font-size: .95rem;
}
.presence-expiration {
  max-width: 620px;
  margin: 7px 0 0 19px;
  color: var(--phone-muted);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
}
#presence-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--phone-muted);
}
#presence-status-dot.active { background: var(--church-green); }
.schedule-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 12px;
  color: var(--phone-text);
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
}
.next-duty-card {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 17px;
  border-radius: 16px;
  background: var(--phone-surface);
}
.next-duty-card span,
.next-duty-card small { color: var(--phone-muted); }
.next-duty-card strong {
  color: var(--phone-text);
  font-size: 1.2rem;
}
.today-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 13px;
}
.summary-card {
  display: grid;
  min-height: 102px;
  align-content: space-between;
  gap: 9px;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: var(--phone-surface);
  color: var(--phone-text);
  text-align: left;
}
.summary-card span {
  color: var(--phone-muted);
  font-size: .76rem;
}
.summary-card strong {
  color: var(--phone-text);
  font-size: 1.08rem;
  line-height: 1.15;
}
.summary-card.has-active,
.summary-card.has-critical { box-shadow: inset 0 0 0 2px var(--orange); }
.summary-card.has-critical { box-shadow: inset 0 0 0 2px var(--red); }
.today-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.recent-updates {
  margin: 2px 0 12px;
  padding: 13px 2px 2px;
  border-top: 1px solid var(--phone-border);
}
.recent-updates-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 4px;
}
.recent-updates-heading .eyebrow {
  margin: 0 0 2px;
  color: var(--phone-muted);
  font-size: .64rem;
}
.recent-updates-heading h2 {
  margin: 0;
  color: var(--phone-text);
  font-size: .92rem;
  line-height: 1.15;
}
.recent-updates-list { display: grid; }
.recent-update-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid var(--phone-border);
}
.recent-update-row:last-child { border-bottom: 0; }
.recent-update-row time {
  color: var(--phone-muted);
  font-size: .67rem;
  font-weight: 800;
  line-height: 1.25;
}
.recent-update-row div { min-width: 0; }
.recent-update-row strong,
.recent-update-row span { display: block; }
.recent-update-row strong {
  color: var(--phone-text);
  font-size: .74rem;
  line-height: 1.2;
}
.recent-update-row span {
  margin-top: 2px;
  overflow: hidden;
  color: var(--phone-muted);
  font-size: .67rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-updates-empty {
  margin: 0;
  padding: 9px 0;
  color: var(--phone-muted);
  font-size: .72rem;
}
.sunday-screen[data-home-mode="assignment"] .attendance-home-only { display: none !important; }
.assignment-home-surface { display: contents; }
.sunday-screen[data-home-mode="assignment"] .assignment-home-surface {
  display: block;
  margin: 0 -18px;
  padding: 22px 18px 16px;
  border-radius: 26px 26px 0 0;
  background: var(--phone-canvas);
}
body.shared-app-active .test-banner-short { display: inline; color: inherit; font-size: inherit; font-weight: inherit; }
body.shared-app-active .test-banner-long { display: none; }
.sunday-screen[data-home-mode="assignment"] .assignment-hero {
  margin-bottom: 12px;
  padding: 22px 18px 18px;
  border: 1px solid var(--phone-border);
  border-radius: 18px;
  background: var(--phone-surface);
}
.sunday-screen[data-home-mode="assignment"] .assignment-hero h2 {
  font-size: clamp(2.7rem, 13vw, 3.7rem);
  line-height: .92;
}
.sunday-screen[data-home-mode="assignment"] .assignment-time { margin-top: 11px; }
.sunday-screen[data-home-mode="assignment"] .post-order-link {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  border: 1px solid var(--phone-border);
  border-radius: 12px;
  color: var(--phone-text);
}
.sunday-screen[data-home-mode="assignment"] .today-actions {
  display: block;
  margin-bottom: 12px;
}
.sunday-screen[data-home-mode="assignment"] .report-action {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  min-height: 82px;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border: 1px solid var(--phone-border);
  border-radius: 16px;
  text-align: left;
}
.sunday-screen[data-home-mode="assignment"] .report-action .today-action-icon { color: var(--church-green); }
.sunday-screen[data-home-mode="assignment"] .today-action-copy { display: grid; gap: 3px; }
.sunday-screen[data-home-mode="assignment"] .report-action strong { font-size: .95rem; }
.sunday-screen[data-home-mode="assignment"] .report-action small { max-width: none; font-size: .7rem; }
.sunday-screen[data-home-mode="assignment"] .report-action .action-chevron { color: var(--phone-muted); font-size: 1.8rem; }
.sunday-screen[data-home-mode="assignment"] .today-summary { gap: 10px; margin-bottom: 12px; }
.sunday-screen[data-home-mode="assignment"] .summary-card {
  grid-template-columns: 38px 1fr;
  min-height: 92px;
  align-items: center;
  align-content: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--phone-border);
  text-align: left;
}
.summary-card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgb(62 122 58 / 14%);
  color: var(--church-green);
}
.summary-card-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.summary-card-copy { display: grid; min-width: 0; gap: 4px; }
.sunday-screen[data-home-mode="assignment"] .summary-card-copy > span { font-size: .7rem; font-weight: 750; }
.sunday-screen[data-home-mode="assignment"] .summary-card-copy > strong { margin: 0; font-size: .82rem; }
.sunday-screen[data-home-mode="assignment"] .recent-updates {
  height: 118px;
  box-sizing: border-box;
  margin: 0;
  padding: 9px 11px 8px;
  border: 1px solid var(--phone-border);
  border-radius: 14px;
  overflow: hidden;
}
.sunday-screen[data-home-mode="assignment"] .recent-updates-heading { height: 24px; margin: 0; border-bottom: 1px solid var(--phone-border); }
.sunday-screen[data-home-mode="assignment"] .recent-updates-heading .eyebrow { display: none; }
.sunday-screen[data-home-mode="assignment"] .recent-updates-heading h2 {
  color: var(--phone-muted);
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.recent-updates-heading button {
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: .62rem;
  font-weight: 850;
}
.sunday-screen[data-home-mode="assignment"] .recent-updates-list {
  display: block;
  height: 76px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--phone-muted) transparent;
  scrollbar-width: thin;
}
.sunday-screen[data-home-mode="assignment"] .recent-update-row {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  height: 38px;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border-bottom: 1px solid var(--phone-border);
  line-height: 1.1;
}
.sunday-screen[data-home-mode="assignment"] .recent-update-row div { display: flex; min-width: 0; align-items: baseline; gap: 6px; }
.sunday-screen[data-home-mode="assignment"] .recent-update-row time,
.sunday-screen[data-home-mode="assignment"] .recent-update-row strong,
.sunday-screen[data-home-mode="assignment"] .recent-update-row span { font-size: .58rem; line-height: 1.1; white-space: nowrap; }
.sunday-screen[data-home-mode="assignment"] .recent-update-row time {
  font-weight: 650;
}
.sunday-screen[data-home-mode="assignment"] .recent-update-row span {
  display: block;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--phone-muted);
  font-size: .54rem;
  text-overflow: ellipsis;
}
.sunday-screen[data-home-mode="assignment"] .recent-updates-empty {
  grid-row: 1;
  grid-column: 1 / -1;
  padding: 0;
  font-size: .62rem;
}
.radio-plan-home {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--phone-border);
  border-radius: 14px;
  background: var(--phone-surface);
}
.radio-plan-home-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.radio-plan-home-heading .eyebrow { margin: 0 0 2px; color: var(--church-green); font-size: .58rem; }
.radio-plan-home-heading h2 { margin: 0; color: var(--phone-text); font-size: .9rem; }
.radio-plan-home-heading button {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: .65rem;
  font-weight: 850;
}
.radio-plan-quick-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.radio-plan-quick-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 64px;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--phone-border);
  border-radius: 10px;
  background: var(--phone-canvas);
}
.radio-plan-quick-row > strong { color: var(--church-green); font-size: 1.25rem; line-height: .9; }
.radio-plan-quick-row > strong small,
.radio-plan-quick-row > span,
.radio-plan-quick-row > span b,
.radio-plan-quick-row > span small { display: block; }
.radio-plan-quick-row > strong small { margin-bottom: 3px; color: var(--phone-muted); font-size: .46rem; letter-spacing: .08em; }
.radio-plan-quick-row > span { min-width: 0; }
.radio-plan-quick-row > span b { color: var(--phone-text); font-size: .65rem; line-height: 1.12; }
.radio-plan-quick-row > span small { margin-top: 3px; color: var(--phone-muted); font-size: .51rem; line-height: 1.18; }
.radio-plan-priority { margin: 0; color: var(--phone-muted); font-size: .61rem; text-align: center; }
.radio-plan-priority strong { color: var(--phone-text); }
.recent-activity-dialog { width: min(620px, calc(100% - 24px)); }
.recent-activity-all { max-height: min(68dvh, 620px); overflow-y: auto; padding: 0 16px 16px; }
.recent-activity-all .recent-update-row { grid-template-columns: 84px minmax(0, 1fr); padding: 12px 0; }
.today-action {
  display: grid;
  min-width: 0;
  min-height: 104px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 10px 6px;
  border: 0;
  border-radius: 16px;
  background: var(--phone-surface);
  color: var(--phone-text);
  text-align: center;
}
.today-action strong { font-size: .86rem; }
.today-action small {
  color: var(--phone-muted);
  font-size: .63rem;
  line-height: 1.15;
}
.report-action { grid-column: 1 / -1; min-height: 126px; }
.report-action strong { font-size: 1.05rem; }
.report-action small { max-width: 260px; font-size: .72rem; }
.today-action-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--phone-text);
  font-size: 2.15rem;
  font-weight: 500;
}
.today-action-icon svg {
  width: 33px;
  height: 33px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.medical-action .today-action-icon { color: #ff818b; }
.binoculars-icon svg { stroke-width: 2.2; }
.presence-action {
  background: var(--phone-text);
  color: var(--phone-canvas);
}
.presence-action .today-action-icon { color: inherit; }
.presence-action.active {
  background: var(--phone-surface);
  color: var(--phone-text);
}
.lockdown-control {
  width: 100%;
  min-height: 55px;
  margin: 0 0 18px;
  border: 1px solid #8b4047;
  border-radius: 12px;
  background: transparent;
  color: #ff929a;
}
.lockdown-control span,
.lockdown-control strong { display: inline; font-size: .72rem; }
.lockdown-control span::after { content: " · "; }
.bottom-navigation {
  position: sticky;
  z-index: 10;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 2px;
  margin: 0 -18px;
  padding: 15px 10px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--phone-border);
  background: var(--phone-surface);
}
.bottom-navigation-item {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 54px;
  place-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7f8783;
  text-decoration: none;
}
.bottom-navigation-item svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}
.bottom-navigation-item.active { color: var(--phone-text); }
.bottom-navigation-item > span {
  width: 31px;
  height: 4px;
  border-radius: 99px;
  background: transparent;
}
.bottom-navigation-item.active > span { background: currentColor; }
.bottom-navigation-item .detail-letter {
  fill: currentColor;
  stroke: none;
}
.bottom-navigation .messages-badge {
  top: 0;
  right: calc(50% - 27px);
  border-color: var(--phone-surface);
  border-radius: 99px;
  background: var(--red);
}
.guide-dialog { width: min(640px, calc(100% - 24px)); }
.guide-sections { display:grid;grid-template-columns:1fr;gap:0;padding:0 14px 10px; }
.guide-sections section,.guide-section-button { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;min-height:52px;padding:12px 0;border:0;border-bottom:1px solid var(--theme-border);border-radius:0;background:var(--theme-surface);color:var(--theme-text);text-align:left; }
.guide-section-button { cursor:pointer; }
.guide-section-button strong { grid-column:1;font-size:.95rem;line-height:1.35; }
.guide-section-button>span { grid-column:1; }
.guide-section-button:hover,.guide-section-button:focus-visible { background:var(--theme-surface-strong);outline:2px solid var(--blue);outline-offset:2px; }
.guide-section-button em { grid-column:2;grid-row:1 / span 2;align-self:center;color:var(--theme-muted);font-size:1rem;font-style:normal;font-weight:700; }
.guide-sections span,.guide-note { color:var(--theme-muted);font-size:.82rem;line-height:1.4; }
.guide-note { margin:0 14px 14px; }
.video-library-dialog,
.video-detail-dialog,
.video-suggestion-dialog { width: min(680px, calc(100% - 24px)); color: var(--theme-text); }
.video-library-intro {
  margin: 14px;
  padding: 18px;
  border: 1px solid var(--theme-border);
  border-left: 5px solid var(--church-green);
  background: var(--theme-surface-strong);
}
.video-library-intro p,
.video-library-intro h3 { margin: 0; }
.video-library-intro h3 { margin-top: 4px; font-size: 1.28rem; }
.video-library-intro > p:last-child { margin-top: 6px; color: var(--theme-muted); font-size: .82rem; line-height: 1.45; }
.video-suggestion-actions { display: grid; gap: 7px; margin: 0 14px 14px; }
.video-suggestion-actions[hidden] { display: none; }
.video-suggestion-actions > button {
  min-height: 54px;
  border: 0;
  border-radius: 13px;
  background: var(--church-green);
  color: #fff;
  font: inherit;
  font-weight: 900;
}
.video-suggestion-actions > p { min-height: 1em; margin: 0; color: var(--church-green); font-size: .74rem; font-weight: 800; line-height: 1.4; }
.video-review-panel { margin: 0 14px 14px; padding: 15px; border: 1px solid var(--theme-border); border-radius: 16px; background: var(--theme-surface-strong); }
.video-review-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid var(--theme-border); }
.video-review-heading p,
.video-review-heading h3 { margin: 0; }
.video-review-heading h3 { margin-top: 3px; font-size: 1rem; }
.video-review-heading > span { color: var(--theme-muted); font-size: .7rem; font-weight: 850; white-space: nowrap; }
.video-review-status { margin: 11px 0 0; color: var(--theme-muted); font-size: .75rem; line-height: 1.4; }
.video-review-status:empty { display: none; }
.video-review-list { display: grid; gap: 10px; margin-top: 11px; }
.video-review-card { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--theme-border); border-radius: 13px; background: var(--theme-surface); }
.video-review-card h4,
.video-review-card p { margin: 0; }
.video-review-card h4 { font-size: .94rem; line-height: 1.25; }
.video-review-meta { color: var(--theme-muted); font-size: .7rem; line-height: 1.4; }
.video-review-question { padding: 9px 10px; border-left: 4px solid var(--church-green); background: var(--theme-surface-strong); font-size: .76rem; line-height: 1.45; }
.video-review-link { color: var(--blue); font-size: .74rem; font-weight: 850; }
.video-review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.video-review-actions button { min-height: 46px; border: 1px solid var(--theme-border); border-radius: 10px; background: var(--theme-surface); color: var(--theme-text); font: inherit; font-size: .76rem; font-weight: 900; }
.video-review-actions [data-video-suggestion-approve] { border-color: var(--church-green); background: var(--church-green); color: #fff; }
.video-suggestion-form { display: grid; gap: 13px; padding: 16px 16px 24px; }
.video-suggestion-help { margin: 0; padding: 12px; border-left: 5px solid var(--church-green); background: var(--theme-surface-strong); color: var(--theme-muted); font-size: .78rem; line-height: 1.45; }
.video-suggestion-form label { display: grid; gap: 6px; color: var(--theme-text); font-size: .76rem; font-weight: 850; }
.video-suggestion-form label small { color: var(--theme-muted); font-weight: 700; }
.video-suggestion-form input,
.video-suggestion-form select,
.video-suggestion-form textarea { box-sizing: border-box; width: 100%; min-height: 48px; padding: 11px; border: 1px solid var(--theme-border); border-radius: 10px; background: var(--theme-surface); color: var(--theme-text); font: inherit; }
.video-suggestion-form textarea { min-height: 104px; resize: vertical; line-height: 1.4; }
.video-suggestion-row { display: grid; grid-template-columns: 1fr minmax(110px, .55fr); gap: 10px; }
.video-suggestion-submit { min-height: 52px; border: 0; border-radius: 11px; background: var(--blue); color: #fff; font: inherit; font-weight: 900; }
.video-suggestion-submit:disabled,
.video-review-actions button:disabled { cursor: wait; opacity: .65; }
.video-library-status {
  margin: 14px;
  padding: 18px;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface);
  color: var(--theme-muted);
  font-weight: 750;
  line-height: 1.4;
}
.video-library-status button { min-height: 44px; margin-left: 7px; border: 0; background: transparent; color: var(--blue); font-weight: 850; }
.video-library-list { display: grid; gap: 12px; padding: 0 14px 20px; }
.video-library-card { overflow: hidden; border: 1px solid var(--theme-border); border-radius: 18px; background: var(--theme-surface); }
.video-library-open { display: grid; width: 100%; padding: 0; border: 0; background: transparent; color: var(--theme-text); text-align: left; }
.video-library-thumbnail,
.video-thumbnail-link { position: relative; display: grid; overflow: hidden; aspect-ratio: 16 / 9; background: var(--theme-surface-strong); }
.video-library-thumbnail img,
.video-thumbnail-link img { width: 100%; height: 100%; object-fit: cover; }
.video-play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: rgba(5,24,41,.82);
  color: #fff;
  font-size: 1.18rem;
  text-indent: 3px;
}
.video-library-copy { display: grid; gap: 5px; padding: 16px; }
.video-library-copy > strong { font-size: 1.08rem; line-height: 1.2; }
.video-library-copy > span:not(.video-badges) { color: var(--theme-muted); font-size: .78rem; }
.video-library-copy em { margin-top: 5px; color: var(--blue); font-size: .78rem; font-style: normal; font-weight: 850; }
.video-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.video-badges small {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--theme-border);
  border-radius: 99px;
  color: var(--church-green);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.video-detail-content { display: grid; gap: 14px; padding: 14px 14px 24px; }
.video-watch-card,
.video-campus-question,
.video-discussion { overflow: hidden; border: 1px solid var(--theme-border); border-radius: 18px; background: var(--theme-surface); }
.video-thumbnail-link { color: #fff; text-decoration: none; }
.video-thumbnail-link > span:last-child {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 99px;
  background: rgba(5,24,41,.9);
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
}
.video-watch-copy { display: grid; gap: 5px; padding: 15px; }
.video-watch-copy h3,
.video-watch-copy p { margin: 0; }
.video-watch-copy h3 { font-size: 1.12rem; line-height: 1.25; }
.video-source { color: var(--theme-muted); font-size: .78rem; }
.video-campus-question { padding: 17px; border-left: 5px solid var(--church-green); background: var(--theme-surface-strong); }
.video-campus-question p,
.video-campus-question h3 { margin: 0; }
.video-campus-question h3 { margin-top: 4px; font-size: 1rem; }
.video-campus-question > p:last-child { margin-top: 9px; font-size: .9rem; font-weight: 750; line-height: 1.5; }
.video-discussion { padding: 0 15px 15px; }
.video-discussion-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 16px 0 12px; border-bottom: 1px solid var(--theme-border); }
.video-discussion-heading p,
.video-discussion-heading h3 { margin: 0; }
.video-discussion-heading h3 { margin-top: 3px; font-size: 1rem; }
.video-discussion-heading > span { color: var(--theme-muted); font-size: .7rem; font-weight: 800; white-space: nowrap; }
.video-discussion-privacy { margin: 12px 0; padding: 10px 11px; background: var(--theme-surface-strong); color: var(--theme-muted); font-size: .7rem; line-height: 1.4; }
.video-discussion-list { display: grid; gap: 10px; }
.video-comment { padding: 12px; border: 1px solid var(--theme-border); border-radius: 13px; background: var(--theme-surface); }
.video-comment.reply { margin-left: 24px; border-left: 4px solid var(--church-green); background: var(--theme-surface-strong); }
.video-comment-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; }
.video-comment-meta strong { font-size: .78rem; }
.video-comment-meta time { color: var(--theme-muted); font-size: .65rem; white-space: nowrap; }
.video-comment > p { margin: 7px 0 9px; font-size: .82rem; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.video-comment-actions { display: flex; gap: 8px; }
.video-comment-actions button {
  min-width: 48px;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid var(--theme-border);
  border-radius: 9px;
  background: var(--theme-surface);
  color: var(--theme-muted);
  font-size: .7rem;
  font-weight: 850;
}
.video-comment-actions .video-upvote[aria-pressed="true"] { border-color: var(--church-green); color: var(--church-green); }
.video-discussion-empty { display: grid; gap: 4px; margin: 0; padding: 18px 12px; color: var(--theme-muted); text-align: center; }
.video-discussion-empty strong { color: var(--theme-text); }
.video-discussion-empty span { font-size: .74rem; }
.video-discussion-form { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--theme-border); }
.video-discussion-form > label { font-size: .72rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.video-discussion-form textarea { box-sizing: border-box; width: 100%; min-height: 92px; padding: 11px; resize: vertical; border: 1px solid var(--theme-border); border-radius: 11px; background: var(--theme-surface); color: var(--theme-text); font: inherit; line-height: 1.4; }
.video-reply-context { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-left: 4px solid var(--church-green); background: var(--theme-surface-strong); color: var(--theme-muted); font-size: .7rem; font-weight: 800; }
.video-reply-context button { min-height: 36px; border: 0; background: transparent; color: var(--blue); font-weight: 850; }
.video-comment-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.video-comment-form-footer span { color: var(--theme-muted); font-size: .66rem; }
.video-comment-form-footer button { min-height: 48px; padding: 10px 16px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 900; }
.video-comment-error { min-height: 1em; margin: 0; color: var(--red); font-size: .72rem; font-weight: 750; }
@media (max-width: 430px) {
  .video-suggestion-row { grid-template-columns: 1fr; }
}
.radio-guide-dialog { width: min(640px, calc(100% - 24px)); }
.radio-guide-priority {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px;
  padding: 13px 14px;
  border-left: 5px solid var(--church-green);
  background: var(--theme-surface-strong);
}
.radio-guide-priority strong,
.radio-guide-priority span { display: block; }
.radio-guide-priority span { color: var(--theme-muted); font-size: .82rem; }
.radio-guide-section { margin: 14px; border: 1px solid var(--theme-border); }
.radio-guide-section-heading { padding: 13px 14px; border-bottom: 1px solid var(--theme-border); }
.radio-guide-section-heading p,
.radio-guide-section-heading h3 { margin: 0; }
.radio-guide-section-heading h3 { margin-top: 3px; }
.radio-channel-list { display: grid; }
.radio-channel-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 68px;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--theme-border);
}
.radio-channel-row:last-child { border-bottom: 0; }
.radio-channel-row > strong { color: var(--church-green); font-size: 1.05rem; }
.radio-channel-row > strong small,
.radio-channel-row > span,
.radio-channel-row > span b,
.radio-channel-row > span small { display: block; }
.radio-channel-row > strong small { color: var(--theme-muted); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.radio-channel-row > span b { font-size: .88rem; }
.radio-channel-row > span small { margin-top: 3px; color: var(--theme-muted); font-size: .72rem; line-height: 1.25; }
.radio-channel-row.secondary { background: var(--theme-surface-strong); }
.radio-use-guide { scroll-margin-top: 108px; margin: 22px 14px 14px; }
.radio-use-guide-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 0 2px 12px; }
.radio-use-guide-heading h3,
.radio-use-guide-heading p { margin: 0; }
.radio-use-guide-heading h3 { font-size: 1.18rem; letter-spacing: -.02em; }
.radio-use-guide-heading p { color: var(--theme-muted); font-size: .76rem; font-weight: 850; white-space: nowrap; }
.radio-use-guide ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: radio-step; }
.radio-use-guide li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 0;
  border-radius: 13px;
  background: var(--theme-surface);
  box-shadow: 0 2px 10px rgba(15, 42, 28, .08);
  counter-increment: radio-step;
}
.radio-use-guide li::before {
  content: counter(radio-step);
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--church-green);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
}
.radio-use-guide li strong,
.radio-use-guide li span { display: block; grid-column: 2; }
.radio-use-guide li strong { align-self: end; font-size: .94rem; line-height: 1.2; }
.radio-use-guide li span { margin-top: -5px; color: var(--theme-text); font-size: .84rem; font-weight: 600; line-height: 1.45; }
.radio-use-guide li.radio-use-warning {
  border-left: 6px solid #c83b31;
  background: color-mix(in srgb, #c83b31 9%, var(--theme-surface));
}
.radio-use-guide li.radio-use-warning::before { content: "!"; background: #c83b31; }
.radio-use-guide li.radio-use-warning strong { color: color-mix(in srgb, #c83b31 75%, var(--theme-text)); }
.radio-talk-sequence {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 5px;
  margin: 4px 0 8px !important;
}
.radio-talk-sequence b { padding: 7px 4px; border-radius: 8px; background: var(--theme-surface-strong); color: var(--theme-text); font-size: .7rem; font-weight: 950; letter-spacing: .05em; text-align: center; text-transform: uppercase; }
.radio-talk-sequence i { color: var(--church-green); font-size: 1rem; font-style: normal; font-weight: 950; }
@media (max-width: 380px) {
  .radio-talk-sequence { grid-template-columns: minmax(0, 1fr); }
  .radio-talk-sequence i { text-align: center; transform: rotate(90deg); }
}
.radio-phrase {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--church-green);
  border-radius: 5px;
  background: color-mix(in srgb, var(--church-green) 9%, var(--theme-surface));
  color: var(--theme-text);
  font-size: .9em;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .035em;
  white-space: nowrap;
}
.radio-guide-note { margin: 14px; color: var(--theme-muted); font-size: .75rem; line-height: 1.4; }
.radio-guide-source { display: block; margin: 14px 14px 20px; color: var(--blue); font-size: .82rem; font-weight: 850; }
.radio-message-language-copy { padding: 12px 14px; color: var(--theme-text); font-size: .84rem; line-height: 1.5; }
.radio-message-language-copy p { margin: 0; }
.radio-message-language-copy p + p { margin-top: 10px; }
.training-dialog { width: min(680px, calc(100% - 24px)); }
.training-topic-tabs,
.training-card-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 14px 0;
}
.training-topic-tabs button,
.training-card-picker button,
.training-viewer-controls button {
  min-height: 48px;
  padding: 8px;
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: .82rem;
  font-weight: 850;
}
.training-topic-tabs button.active { background: var(--navy); color: #fff; }
.training-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 14px;
  padding: 14px;
  border-left: 5px solid var(--church-green);
  background: var(--gray-50);
}
.training-summary h3,
.training-summary p { margin: 0; }
.training-summary h3 { margin-bottom: 5px; }
.training-summary p:last-child { color: var(--gray-600); font-size: .86rem; line-height: 1.4; }
.training-reference-count { flex: 0 0 auto; padding: 6px 8px; background: var(--church-green); color: var(--navy); font-size: .72rem; font-weight: 900; }
.training-card-picker { padding-top: 0; padding-bottom: 14px; }
.training-card-picker button.active { border: 2px solid var(--church-green); background: #edf7ef; color: #1b6228; }
.training-viewer { margin: 0 14px; border: 1px solid var(--gray-300); }
.training-viewer-heading { padding: 12px 14px; border-bottom: 1px solid var(--gray-300); }
.training-viewer-heading p,
.training-viewer-heading h3 { margin: 0; }
.training-image-stage { display: grid; min-height: 360px; max-height: 58dvh; place-items: center; overflow: hidden; background: var(--gray-50); }
.training-image-stage img { display: block; width: 100%; height: 100%; max-height: 58dvh; object-fit: contain; object-position: center top; }
.training-viewer-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px; }
.training-viewer-controls span { color: var(--gray-600); font-size: .8rem; font-weight: 850; text-align: center; }
.training-viewer-controls button:disabled { opacity: .35; }
.training-note { margin: 14px; padding: 12px 14px; border-left: 4px solid var(--blue); background: var(--gray-50); color: var(--gray-600); font-size: .8rem; line-height: 1.45; }
.training-note strong { color: var(--navy); }
.post-order-link {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px solid currentColor;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}
.post-orders-dialog { width: min(640px, calc(100% - 24px)); }
.post-orders-intro { margin:0;padding:10px 16px;color:var(--theme-muted);font-size:.85rem;line-height:1.45; }
.post-orders-list { display: grid; }
.post-order-item { display:flex;min-height:52px;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-top:1px solid var(--theme-border);color:var(--theme-text);text-decoration:none; }
.post-order-item span { display:grid;gap:3px;min-width:0; }
.post-order-item strong { font-size:.92rem;line-height:1.4; }
.post-order-item small { color:var(--theme-muted);font-size:.78rem; }
.post-order-item em { flex:0 0 auto;color:var(--theme-muted);font-size:1rem;font-style:normal;font-weight:700; }
.post-order-item:hover,.post-order-item:focus-visible { background:var(--theme-surface-strong);outline:2px solid var(--blue);outline-offset:-2px; }
.post-orders-folder-link { display:flex;align-items:center;min-height:44px;margin:8px 16px 12px;color:var(--blue);font-weight:700; }
.safety-plan-group { border-top:1px solid var(--theme-border); }
.safety-plan-group h3 { margin:0;padding:12px 16px 8px;color:var(--theme-muted);font-size:.78rem;letter-spacing:.04em; }
.safety-plan-group .post-order-item:first-of-type { border-top:0; }
.campus-map-dialog {
  width: min(1100px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
}
.campus-map-dialog.map-fullscreen {
  position: fixed;
  z-index: 10000;
  inset: 0;
  width: 100vw;
  width: 100dvw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  overflow: hidden;
  border: 0;
  background: #101518;
}
.campus-map-dialog.map-fullscreen > :not(.campus-map-viewport) { display: none; }
body.campus-map-focus-open { overflow: hidden; }
.map-dialog-heading { position: relative; }
.campus-map-access {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-300);
  background: #fff;
}
.campus-map-quick-access > span,
.campus-map-picker > span {
  display: block;
  margin-bottom: 6px;
  color: var(--gray-600);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.campus-map-quick-access > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.campus-map-quick-access button,
.all-maps-picker summary {
  min-height: 48px;
  border: 1px solid var(--gray-300);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
}
.campus-map-quick-access button { padding: 10px 12px; }
.campus-map-quick-access button.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.all-maps-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}
.all-maps-picker summary::-webkit-details-marker { display: none; }
.all-maps-picker summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.all-maps-picker[open] summary::after { content: "−"; }
.all-maps-picker summary small { color: var(--gray-600); font-size: .72rem; font-weight: 700; }
.campus-map-picker {
  display: block;
  padding: 10px 0 0;
  background: #fff;
}
.campus-map-picker select { width: 100%; min-height: 48px; border: 1px solid var(--gray-300); background: #fff; color: var(--navy); padding: 10px 38px 10px 12px; font: inherit; font-weight: 750; }
.map-context {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-300);
}
.map-context span,
.map-help { color: var(--gray-600); font-size: .82rem; line-height: 1.35; }
.map-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--gray-300);
  background: #fff;
}
.map-controls button {
  min-width: 48px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
}
.map-controls button:hover,
.map-controls button:focus-visible { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: -2px; }
.map-controls strong { min-width: 84px; text-align: center; white-space: nowrap; }
.map-control-phone,
.map-fullscreen-exit { display: none; }
.campus-map-dialog.map-fullscreen .map-fullscreen-open { display: none; }
.campus-map-dialog.map-fullscreen .map-fullscreen-exit { display: inline; }
.campus-map-viewport {
  position: relative;
  height: min(60dvh, 680px);
  overflow: hidden;
  overscroll-behavior: contain;
  background: #e8edf2;
  cursor: grab;
  touch-action: manipulation;
}
.campus-map-viewport.dragging { cursor: grabbing; user-select: none; }
.campus-map-viewport:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.campus-map-canvas {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.campus-map-canvas img {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.campus-map-focus-actions {
  position: absolute;
  z-index: 3;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  display: flex;
  gap: 8px;
}
.campus-map-focus-actions[hidden] { display: none; }
.campus-map-focus-actions button {
  display: grid;
  min-width: 48px;
  height: 48px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(10,15,18,.78);
  color: #fff;
  font: inherit;
  font-weight: 850;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.campus-map-focus-actions .campus-map-focus-close { width: 48px; padding: 0; font-size: 1.75rem; line-height: 1; }
.campus-map-focus-actions button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.campus-map-dialog.map-fullscreen .campus-map-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #101518;
  touch-action: none;
}
.map-help { margin: 0; padding: 10px 16px 14px; background: #fff; }
@media (max-width: 600px) {
  .campus-map-dialog {
    width: min(430px, 100%);
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0;
  }
  .map-context { align-items: flex-start; flex-direction: column; gap: 3px; }
  .campus-map-access { grid-template-columns: 1fr; gap: 10px; padding: 10px 14px; }
  .campus-map-quick-access > div { gap: 6px; }
  .campus-map-quick-access button { min-height: 52px; padding: 8px; font-size: .82rem; }
  .all-maps-picker summary { min-height: 46px; }
  .map-controls { display: grid; grid-template-columns: 48px minmax(56px, 1fr) 48px; align-items: stretch; overflow: visible; }
  .map-controls strong { display: grid; min-width: 0; min-height: 48px; place-items: center; }
  .map-controls button { width: 100%; min-width: 0; padding-inline: 8px; }
  .map-control-desktop { display: none; }
  .map-control-phone { display: inline; }
  .map-fullscreen-exit { display: none; }
  .campus-map-viewport,
  .campus-map-dialog.map-fullscreen .campus-map-viewport {
    height: calc(100dvh - 230px);
    min-height: 360px;
  }
  .campus-map-dialog.map-fullscreen .campus-map-viewport { height: 100%; min-height: 0; }
  .campus-map-focus-actions { gap: 6px; }
  .campus-map-focus-actions button { min-width: 44px; height: 44px; padding-inline: 10px; }
  .campus-map-focus-actions .campus-map-focus-close { width: 44px; }
  .map-help { font-size: .76rem; }
}
@media (max-width: 420px) {
  .sunday-screen { padding-inline: 14px; }
  .sunday-screen[data-home-mode="assignment"] .assignment-home-surface { margin-inline: -14px; padding-inline: 14px; }
  .bottom-navigation { margin-inline: -14px; }
  .assignment-hero h2 { font-size: clamp(2.8rem, 16vw, 4rem); }
}
@media (max-width: 350px) {
  .today-actions { gap: 7px; }
  .today-action { min-height: 96px; }
  .guide-sections { grid-template-columns: 1fr; }
  .training-topic-tabs { gap: 5px; padding-inline: 10px; }
  .training-topic-tabs button { min-height: 46px; padding-inline: 4px; font-size: .74rem; }
  .training-summary { margin: 10px; padding: 12px; }
  .training-reference-count { display: none; }
  .training-card-picker { gap: 5px; padding: 0 10px 10px; }
  .training-card-picker button { min-height: 44px; padding-inline: 3px; font-size: .72rem; }
  .training-viewer { margin-inline: 10px; }
  .training-image-stage { min-height: 330px; max-height: 55dvh; }
  .training-image-stage img { max-height: 55dvh; }
  .training-viewer-controls { gap: 6px; padding: 8px; }
  .training-viewer-controls button { min-height: 46px; padding-inline: 6px; font-size: .76rem; }
  .training-note { margin: 10px; }
}

/* TDDS Sunday home hierarchy */
.shared-header {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: var(--ds-space-3) 0;
}
.shared-header .brand-lockup { width: min(190px, 42vw); }
.shared-header-actions { display: flex; align-items: center; gap: var(--ds-space-2); }
.header-icon-button {
  position: relative;
  display: inline-grid;
  width: 52px;
  min-width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  border: var(--ds-border-width) solid var(--ds-color-border);
  background: var(--ds-color-surface);
  color: var(--ds-color-action);
}
.header-icon-button svg, .action-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.messages-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 2px solid var(--white);
  background: var(--ds-color-action);
  color: var(--white);
  font-size: .68rem;
}
.account-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% - 4px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  border: 2px solid var(--ds-color-heading);
  background: var(--ds-color-surface);
  box-shadow: 0 12px 30px rgb(5 24 41 / 18%);
}
.account-identity { display: grid; gap: 2px; padding: var(--ds-space-4); border-bottom: 1px solid var(--ds-color-border); }
.account-identity strong { color: var(--ds-color-heading); font-size: 1.08rem; }
.account-identity span { color: var(--ds-color-text-muted); font-size: .8rem; }
.account-menu-item {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  padding: 0 var(--ds-space-4);
  border: 0;
  border-bottom: 1px solid var(--ds-color-border);
  background: var(--ds-color-surface);
  color: var(--ds-color-heading);
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-weight: 850;
}
.account-menu-item:hover, .account-menu-item:focus-visible { background: var(--gray-50); outline: var(--ds-focus-ring); outline-offset: -3px; }
.account-menu-badge {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  margin-left: auto;
  padding: 0 7px;
  place-items: center;
  border-radius: 999px;
  background: var(--church-green);
  color: var(--white);
  font-size: .72rem;
  font-weight: 950;
  line-height: 1;
}
.account-menu-badge[hidden] { display: none; }
.event-summary { display: grid; gap: 2px; padding: var(--ds-space-4) 0; }
.event-summary p, .event-summary h1 { margin: 0; }
.event-summary h1 { color: var(--ds-color-heading); font-size: clamp(1.55rem, 4vw, 2.15rem); }
.event-summary .event-distance { color: var(--ds-color-text); font-size: 1rem; font-weight: 800; }
.event-summary #sync-state { color: var(--ds-color-text-muted); font-size: .76rem; }
.notification-banner {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
  margin-bottom: var(--ds-space-3);
  padding: var(--ds-space-2) var(--ds-space-3);
  border-left: 5px solid var(--ds-color-observation);
  background: var(--gray-50);
  color: var(--ds-color-heading);
  font-weight: 800;
}
.notification-banner[hidden] { display: none; }
.notification-banner button { min-height: 40px; padding: 0 var(--ds-space-3); border: 1px solid var(--ds-color-action); background: var(--white); color: var(--ds-color-action); font-weight: 900; }
.notification-settings-dialog { width: min(470px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; border: 1px solid var(--ds-color-border); border-radius: 18px; background: var(--ds-color-surface); color: var(--ds-color-heading); }
.notification-settings-dialog [hidden] { display: none !important; }
.notification-settings-dialog .dialog-heading { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 12px; padding: 22px; }
.notification-settings-dialog .dialog-heading h2 { font-size: 1.3rem; line-height: 1.15; }
.notification-settings-dialog .dialog-heading > button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ds-color-heading); }
.notification-settings-body { padding: 0 22px; }
.notification-settings-dialog .notification-panel { display: grid; grid-template-columns: minmax(0, 1fr) 70px; align-items: center; column-gap: 12px; min-height: 78px; padding: 16px 0; border: 0; }
.notification-settings-dialog .notification-panel > div { min-width: 0; }
.notification-settings-dialog .notification-panel > div > label { display: block; color: var(--ds-color-heading); font-size: .84rem; font-weight: 650; line-height: 1.35; cursor: pointer; }
.notification-settings-dialog .notification-panel span { display: block; margin-top: 4px; color: var(--ds-color-text-muted); font-size: .68rem; font-weight: 400; line-height: 1.5; }
.notification-settings-dialog .notification-panel span:empty { display: none; }
.notification-settings-dialog .notification-master { padding: 23px 0 21px; }
.notification-settings-dialog .notification-master > div > label { font-size: .94rem; font-weight: 800; }
.notification-subsettings { margin: 0 -10px 22px 8px; padding: 14px 10px 2px 16px; border-left: 3px solid var(--ds-color-border); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--ds-color-border) 14%, var(--ds-color-surface)); }
.notification-subsettings h3 { margin: 0; color: var(--ds-color-text-muted); font-size: .65rem; line-height: 1.4; font-weight: 700; }
.notification-settings-dialog .presence-alert-panel { border-bottom: 1px solid var(--ds-color-border); }
.notification-settings-dialog .quiet-hours-panel { border-top: 1px solid var(--ds-color-border); }
.notification-settings-dialog .notification-preference { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 70px; min-height: 44px; color: var(--ds-color-heading); cursor: pointer; }
.notification-settings-dialog .notification-preference input { display: block; flex: 0 0 25px; width: 25px; height: 25px; min-height: 25px; margin: 0; padding: 0; accent-color: var(--church-green); cursor: pointer; }
.notification-settings-dialog .notification-preference span { display: inline-block; width: 28px; margin: 0; color: var(--ds-color-heading); font-size: .8rem; font-weight: 750; line-height: 1.3; text-align: left; }
.notification-settings-dialog .notification-preference:has(input:focus-visible) { outline: var(--ds-focus-ring); outline-offset: 3px; border-radius: 3px; }
.notification-settings-dialog .notification-panel[data-disabled="true"] > div > label,
.notification-settings-dialog .notification-panel[data-disabled="true"] .notification-preference span { color: var(--ds-color-text-muted); cursor: default; }
.notification-settings-dialog .notification-preference input:disabled { cursor: default; }
.notification-settings-dialog .quiet-hours-details { grid-column: 1 / -1; display: block; padding-top: 12px; }
.notification-settings-dialog .quiet-hours-details p { margin: 10px 0 0; color: var(--ds-color-text-muted); font-size: .68rem; line-height: 1.5; }
.notification-settings-dialog .quiet-hours-details p strong { color: var(--ds-color-heading); font-weight: 650; }
.notification-settings-dialog .quiet-hours-details .quiet-hours-active { padding: 10px 12px; border-left: 3px solid var(--church-green); background: var(--ds-color-surface); color: var(--ds-color-heading); font-weight: 650; }
.notification-paused-help { margin: 0; padding: 0 0 14px; color: var(--ds-color-text-muted); font-size: .65rem; line-height: 1.5; }
.notification-settings-footer { margin: 0; padding: 14px 22px 18px; border-top: 1px solid var(--ds-color-border); color: var(--ds-color-text-muted); font-size: .65rem; line-height: 1.5; }
html[data-theme="dark"] .notification-settings-dialog { --ds-color-surface: var(--theme-surface); --ds-color-border: var(--theme-border); --ds-color-heading: var(--theme-text); --ds-color-text-muted: var(--theme-muted); }
html[data-theme="dark"] .operation-dialog.notification-settings-dialog .notification-subsettings .notification-panel { background: transparent; }
html[data-theme="dark"] .notification-settings-dialog .notification-preference span,
html[data-theme="dark"] .notification-settings-dialog .quiet-hours-details .quiet-hours-active { color: var(--theme-text); }
html[data-theme="dark"] .notification-settings-dialog .notification-panel[data-disabled="true"] .notification-preference span { color: var(--theme-muted); }
@media (max-width: 360px) {
  .notification-settings-dialog .dialog-heading { padding: 20px 16px; gap: 8px; }
  .notification-settings-dialog .dialog-heading h2 { font-size: 1.15rem; }
  .notification-settings-body { padding: 0 16px; }
  .notification-settings-dialog .notification-panel { column-gap: 8px; }
  .notification-settings-footer { padding: 14px 16px 18px; }
}
.system-activity-dialog { width: min(720px, calc(100% - 24px)); }
.system-activity-content { display: grid; gap: var(--ds-space-4); padding: var(--ds-space-4); }
.system-activity-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-3); }
.system-activity-ranges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.system-activity-ranges button,
.system-activity-refresh {
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--ds-color-border);
  background: var(--ds-color-surface);
  color: var(--ds-color-heading);
  font: inherit;
  font-size: .8rem;
  font-weight: 900;
}
.system-activity-ranges button[aria-pressed="true"] { border-color: var(--ds-color-action); background: var(--ds-color-action); color: var(--ds-color-on-action); }
.system-activity-ranges button:focus-visible,
.system-activity-refresh:focus-visible { outline: var(--ds-focus-ring); outline-offset: 2px; }
.system-activity-ranges button:disabled,
.system-activity-refresh:disabled { cursor: wait; opacity: .65; }
.system-activity-refresh { border-color: var(--ds-color-action); color: var(--ds-color-action); }
.system-activity-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid var(--ds-color-border);
  border-left: 5px solid var(--gray-600);
  background: var(--ds-color-surface-supporting);
}
.system-activity-state-dot { width: 11px; height: 11px; margin-top: 5px; border-radius: 50%; background: var(--gray-600); }
.system-activity-state strong { display: block; color: var(--ds-color-heading); }
.system-activity-state p { margin: 3px 0 0; color: var(--ds-color-text-muted); line-height: 1.45; }
.system-activity-state[data-state="live"] { border-left-color: var(--church-green); }
.system-activity-state[data-state="live"] .system-activity-state-dot { background: var(--church-green); }
.system-activity-state[data-state="loading"] { border-left-color: var(--ds-color-action); }
.system-activity-state[data-state="loading"] .system-activity-state-dot { background: var(--ds-color-action); }
.system-activity-state[data-state="not-configured"],
.system-activity-state[data-state="temporarily-unavailable"] { border-left-color: var(--orange); }
.system-activity-state[data-state="not-configured"] .system-activity-state-dot,
.system-activity-state[data-state="temporarily-unavailable"] .system-activity-state-dot { background: var(--orange); }
.system-activity-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; margin: 0; }
.system-activity-metrics > div { min-width: 0; min-height: 116px; padding: 13px; border: 1px solid var(--ds-color-border); background: var(--ds-color-surface-supporting); }
.system-activity-metrics dt { color: var(--ds-color-text-muted); font-size: .7rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.system-activity-metrics dd { margin: 8px 0 4px; overflow-wrap: anywhere; color: var(--ds-color-heading); font-size: clamp(1.28rem, 5vw, 1.75rem); font-weight: 950; line-height: 1; }
.system-activity-metrics small { display: block; color: var(--ds-color-text-muted); font-size: .7rem; line-height: 1.35; }
.system-activity-freshness { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--ds-color-border); }
.system-activity-freshness > div { min-width: 0; padding: 11px 13px; }
.system-activity-freshness > div + div { border-left: 1px solid var(--ds-color-border); }
.system-activity-freshness dt { color: var(--ds-color-text-muted); font-size: .7rem; font-weight: 850; }
.system-activity-freshness dd { margin: 4px 0 0; overflow-wrap: anywhere; color: var(--ds-color-heading); font-weight: 900; }
.system-activity-explainer { display: grid; gap: 7px; padding: 12px 14px; border-left: 4px solid var(--ds-color-action); background: var(--ds-color-surface-supporting); }
.system-activity-explainer p { margin: 0; color: var(--ds-color-text-muted); font-size: .78rem; line-height: 1.5; }
.system-activity-explainer strong { color: var(--ds-color-heading); }
@media (max-width: 720px) {
  .system-activity-dialog { width: 100%; }
}
@media (max-width: 520px) {
  .system-activity-toolbar { align-items: stretch; flex-direction: column; }
  .system-activity-ranges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .system-activity-ranges button { padding-inline: 7px; }
  .system-activity-refresh { width: 100%; }
  .system-activity-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-activity-freshness { grid-template-columns: 1fr; }
  .system-activity-freshness > div + div { border-top: 1px solid var(--ds-color-border); border-left: 0; }
}
.prayer-admin-panel form { display: grid; gap: var(--ds-space-3); padding: var(--ds-space-4); }
.prayer-admin-panel form > p { margin: 0; color: var(--ds-color-text); }
.prayer-admin-panel label { display: flex; align-items: center; gap: 10px; color: var(--ds-color-heading); font-weight: 850; }
.prayer-admin-panel input { width: 22px; height: 22px; accent-color: var(--church-green); }
.prayer-admin-panel small { color: var(--ds-color-text-muted); font-weight: 750; }
.primary-action-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--ds-space-4);
  width: 100%;
  min-height: 112px;
  align-items: center;
  padding: var(--ds-space-4);
  border: 3px solid var(--ds-color-action);
  background: var(--ds-color-action);
  color: var(--white);
  text-align: left;
}
.action-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  color: inherit;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}
.action-copy { display: grid; gap: 4px; min-width: 0; }
.action-copy strong { font-size: clamp(1.3rem, 4vw, 1.7rem); }
.action-copy small, .action-copy span { color: inherit; font-size: .82rem; font-weight: 700; line-height: 1.35; }
.primary-action-card.active { border-color: var(--ds-color-confirmed); background: var(--ds-color-confirmed); color: var(--white); }
.primary-action-card[data-state="loading"] { opacity: .72; cursor: wait; }
.primary-action-card[data-state="error"] { border-color: var(--ds-color-urgent); }
.issue-status-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--ds-space-3);
  min-height: 62px;
  margin-top: var(--ds-space-3);
  padding: var(--ds-space-3);
  border: 1px solid var(--ds-color-border);
  background: var(--ds-color-surface);
}
.status-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--ds-color-confirmed);
  color: var(--ds-color-confirmed);
  font-weight: 950;
}
.issue-status-strip strong { color: var(--ds-color-heading); }
.issue-status-strip strong::before { display: none; }
.issue-status-strip.has-active, .issue-status-strip.has-critical {
  grid-template-columns: auto 1fr auto;
  flex-direction: initial;
  align-items: center;
  gap: var(--ds-space-3);
  margin-top: var(--ds-space-3);
  padding: var(--ds-space-3);
  border: 2px solid var(--ds-color-observation);
  text-align: left;
}
.issue-status-strip.has-active .status-icon { border-color: var(--ds-color-observation); color: var(--ds-color-observation); }
.issue-status-strip.has-active strong { padding: 0; border: 0; color: var(--ds-color-heading); }
.issue-status-strip.has-critical { border-color: var(--ds-color-urgent); }
.issue-status-strip.has-critical .status-icon { border-color: var(--ds-color-urgent); background: var(--ds-color-urgent); color: var(--white); }
.issue-status-strip.has-critical strong { border: 0; background: none; color: var(--ds-color-heading); }
.main-issues { gap: var(--ds-space-3); margin-top: var(--ds-space-3); }
.main-issues .operational-action {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--ds-space-3);
  min-height: 96px;
  align-items: center;
  padding: var(--ds-space-4);
  border: 1px solid var(--ds-color-border);
  background: var(--ds-color-surface);
  color: var(--ds-color-heading);
  text-align: left;
}
.main-issues .operational-action .action-icon { width: 42px; height: 42px; color: var(--ds-color-action); }
.main-issues .medical-action { border-left: 5px solid var(--ds-color-urgent); }
.main-issues .medical-action .action-icon { border-color: var(--ds-color-urgent); color: var(--ds-color-urgent); }
.main-issues .action-copy small { margin: 0; color: var(--ds-color-text-muted); text-transform: uppercase; }
.main-issues .action-copy strong { font-size: 1.28rem; }
.main-issues .action-copy span { margin: 0; color: var(--ds-color-text-muted); text-transform: none; letter-spacing: 0; }
.current-duty { padding: var(--ds-space-4) 0; }
.duty-line { color: var(--ds-color-text-muted); font-size: 1rem; font-weight: 650; }
.duty-line strong { color: var(--ds-color-heading); font-size: 1.06rem; }
.team-view-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--ds-space-3);
  width: 100%;
  min-height: 88px;
  align-items: center;
  padding: var(--ds-space-4);
  border: 1px solid var(--ds-color-border);
  background: var(--ds-color-surface);
  color: var(--ds-color-heading);
  text-align: left;
}
.team-view-button .action-icon { width: 42px; height: 42px; color: var(--ds-color-action); }
.team-view-button .action-copy strong { font-size: 1.25rem; }
.team-view-button .action-copy small { color: var(--ds-color-text-muted); }
.action-chevron { color: var(--ds-color-action); font-size: 2rem; }
.lockdown-control { margin-top: 32px; }
.sunday-screen :where(.primary-action-card, .header-icon-button, .account-menu-item, .notification-banner button, .issue-status-strip, .operational-action, .team-view-button, .lockdown-control):focus-visible {
  outline: var(--ds-focus-ring);
  outline-offset: 3px;
}
@media (max-width: 520px) {
  .shared-shell { padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
  .shared-header { min-height: 68px; }
  .shared-header .brand-lockup { width: min(160px, 45vw); }
  .header-icon-button { width: 48px; min-width: 48px; height: 48px; }
  .event-summary { padding: var(--ds-space-3) 0; }
  .primary-action-card { min-height: 104px; }
  .issue-status-strip, .issue-status-strip.has-active, .issue-status-strip.has-critical { grid-template-columns: auto 1fr; }
  .issue-status-strip .review-issues { grid-column: 2; }
  .main-issues { grid-template-columns: 1fr 1fr; }
  .main-issues .operational-action { grid-template-columns: 1fr; min-height: 116px; align-content: center; text-align: center; }
  .main-issues .operational-action .action-icon { margin: 0 auto; }
  .current-duty-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 370px) {
  .main-issues { grid-template-columns: 1fr; }
  .main-issues .operational-action { grid-template-columns: auto 1fr; min-height: 90px; text-align: left; }
  .main-issues .operational-action .action-icon { margin: 0; }
}

/* 2027 operational Home: instrument-led, low-chrome, and still fully scrollable. */
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) {
  --home-hairline: color-mix(in srgb, var(--phone-border) 76%, transparent);
  --home-blue: #0872de;
  background:
    radial-gradient(circle at 10% 25%, color-mix(in srgb, var(--church-green) 5%, transparent) 0 1px, transparent 2px 100%),
    var(--phone-canvas);
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .shared-header {
  min-height: 78px;
  padding: 9px 0;
  border-bottom: 1px solid var(--home-hairline);
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .shared-header .brand-lockup { width: min(186px, 52vw); margin: 0; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .header-icon-button { width: 44px; min-width: 44px; height: 44px; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-summary {
  grid-template-columns: 1fr auto;
  min-height: 54px;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid var(--home-hairline);
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-summary .eyebrow {
  grid-row: 1;
  grid-column: 1;
  color: var(--phone-text);
  font-size: .71rem;
  font-weight: 650;
  letter-spacing: .08em;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-day-label { color: var(--church-green); }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-summary h1 { display: none; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-summary .event-distance {
  grid-row: 1;
  grid-column: 2;
  color: var(--church-green);
  font-size: .71rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-summary #sync-state { display: none; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: calc(100% + 36px);
  margin: 0 -18px;
  padding: 14px 18px 0;
  border-radius: 0;
  background: transparent;
}
.service-clock {
  --service-clock-size: min(128px, 29vw);
  position: relative;
  display: none;
  min-height: 205px;
  align-content: center;
  justify-items: center;
  padding: 12px 18px 12px 0;
  border-right: 1px solid var(--home-hairline);
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .service-clock { display: grid; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .service-clock { grid-row: 1; grid-column: 1 / span 2; }
.service-clock-ring {
  position: absolute;
  top: 22px;
  left: 1px;
  width: var(--service-clock-size);
  aspect-ratio: 1;
  border: 2px solid var(--home-hairline);
  border-radius: 50%;
}
.service-clock-ring > span {
  position: absolute;
  inset: -3px;
  border: 4px solid transparent;
  border-top-color: var(--church-green);
  border-left-color: var(--church-green);
  border-radius: 50%;
  clip-path: inset(0 calc(100% - var(--service-progress, 0%)) 0 0);
  transform: rotate(-45deg);
}
.service-clock[data-state="future"] .service-clock-ring > span,
.service-clock[data-state="upcoming"] .service-clock-ring > span { clip-path: none; border-color: transparent; }
.service-clock-ring > i {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid var(--phone-canvas);
  border-radius: 50%;
  background: var(--church-green);
  box-shadow: 0 0 0 2px var(--church-green);
  transform: translateX(-50%);
}
.service-clock-copy {
  position: absolute;
  z-index: 1;
  top: 22px;
  left: 1px;
  display: grid;
  width: var(--service-clock-size);
  aspect-ratio: 1;
  align-content: center;
  justify-items: center;
}
.service-clock-copy span,
.service-clock-copy small { color: var(--church-green); font-size: .61rem; letter-spacing: .09em; text-transform: uppercase; }
.service-clock-copy strong { color: var(--phone-text); font-size: 2.65rem; font-weight: 650; line-height: .95; letter-spacing: -.05em; }
.service-clock-copy small { margin-top: 5px; }
.service-clock-range {
  position: absolute;
  top: calc(22px + var(--service-clock-size) + 10px);
  left: 1px;
  display: flex;
  width: var(--service-clock-size);
  justify-content: space-between;
  color: var(--phone-muted);
  font-size: .58rem;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-hero {
  grid-row: 1;
  grid-column: 3 / -1;
  min-width: 0;
  margin: 0;
  padding: 27px 0 16px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-state { margin-bottom: 8px; color: var(--church-green); font-size: .62rem; font-weight: 650; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-hero h2 {
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: clamp(2rem, 9.2vw, 2.55rem);
  font-stretch: condensed;
  font-weight: 800;
  line-height: .91;
  letter-spacing: -.025em;
  overflow-wrap: normal;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-time { margin-top: 10px; color: var(--phone-text); font-size: .75rem; font-weight: 500; }
.assignment-current-state { display: flex; align-items: center; gap: 6px; margin: 9px 0 0; color: var(--church-green); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.assignment-current-state[hidden] { display: none; }
.assignment-current-state span { width: 7px; height: 7px; border-radius: 50%; background: var(--church-green); }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .post-order-link {
  display: inline-flex;
  width: auto;
  min-height: 42px;
  justify-content: flex-start;
  margin-top: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--home-blue);
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.assignment-timeline { display: grid; gap: 4px; margin-top: 3px; }
.assignment-timeline[hidden] { display: none; }
.assignment-timeline > p { margin: 0; color: var(--church-green); font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; }
.assignment-timeline-track { position: relative; height: 12px; }
.assignment-timeline-track::before { position: absolute; top: 5px; left: 5px; right: 5px; height: 1px; background: var(--home-hairline); content: ""; }
.assignment-timeline-track > span { position: absolute; z-index: 1; top: 3px; left: 0; width: var(--position-progress, 0%); height: 5px; border-radius: 4px; background: var(--church-green); }
.assignment-timeline-track > i,
.assignment-timeline-track > b { position: absolute; z-index: 2; top: 1px; width: 9px; height: 9px; border-radius: 50%; }
.assignment-timeline-track > i { left: 0; background: var(--church-green); }
.assignment-timeline-track > b { right: 0; border: 1px solid var(--phone-muted); background: var(--phone-canvas); }
.assignment-timeline-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; color: var(--phone-muted); font-size: .49rem; line-height: 1.25; }
.assignment-timeline-labels span:first-child { color: var(--church-green); }
.assignment-timeline-labels span:last-child { text-align: right; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #next-duty-card { display: none !important; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .today-actions,
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .today-summary {
  grid-column: 1 / -1;
  margin: 0;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .today-actions {
  display: contents;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .today-summary {
  display: contents;
  border-top: 1px solid var(--home-hairline);
  border-bottom: 1px solid var(--home-hairline);
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card,
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action {
  display: grid;
  min-height: 124px;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 12px 5px;
  border: 0;
  border-right: 1px solid var(--home-hairline);
  border-radius: 0;
  background: transparent;
  color: var(--church-green);
  text-align: center;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action {
  grid-row: 2;
  grid-column: 3 / span 2;
  width: 100%;
  min-width: 0;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #open-live { grid-row: 2; grid-column: 1 / span 2; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #open-issues { grid-row: 2; grid-column: 5 / span 2; border-right: 0; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card-icon,
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .today-action-icon { width: 52px; height: 52px; background: transparent; color: var(--church-green); }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card-icon svg,
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .today-action-icon svg { width: 44px; height: 44px; stroke-width: 1.8; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action .today-action-icon { border: 1.5px solid var(--church-green); border-radius: 50%; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .today-action-copy { display: grid; gap: 3px; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card-copy > span,
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action strong { color: var(--church-green); font-size: .65rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card-copy > strong { margin: 0; color: var(--phone-text); font-size: .57rem; font-weight: 500; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action small { max-width: 90px; color: var(--phone-muted); font-size: .54rem; font-weight: 500; line-height: 1.2; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action .action-chevron { display: none; }
.coverage-readiness {
  display: none;
  grid-column: 1 / -1;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border-bottom: 1px solid var(--home-hairline);
  color: var(--phone-text);
  font-size: .61rem;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .coverage-readiness { display: flex; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .coverage-readiness { grid-row: 3; }
.coverage-readiness > span { display: flex; align-items: center; gap: 8px; }
.coverage-readiness i { width: 8px; height: 8px; border-radius: 50%; background: var(--church-green); }
.coverage-readiness .pending i { background: var(--phone-muted); }
.coverage-readiness strong { color: var(--church-green); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.coverage-readiness .pending strong { color: var(--phone-muted); }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .recent-updates,
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .radio-plan-home,
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .home-guide-link { grid-column: 1 / -1; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .recent-updates { grid-row: 4; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .radio-plan-home { grid-row: 5; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .home-guide-link { grid-row: 6; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .recent-updates {
  height: 118px;
  margin: 0;
  padding: 10px 13px 8px;
  border: 0;
  border-bottom: 1px solid var(--home-hairline);
  border-radius: 0;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .recent-updates-heading { height: 24px; border: 0; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .recent-updates-heading h2 { color: var(--church-green); font-size: .66rem; font-weight: 600; letter-spacing: .08em; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .recent-updates-heading button { color: var(--home-blue); font-size: .58rem; font-weight: 650; text-transform: uppercase; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .recent-updates-list { height: 76px; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .recent-update-row { grid-template-columns: 42px minmax(0, 1fr); height: 38px; border-bottom-color: var(--home-hairline); }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .recent-update-row time { color: var(--church-green); }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .radio-plan-home {
  gap: 0;
  margin: 0;
  padding: 14px 13px 12px;
  border: 0;
  border-bottom: 1px solid var(--home-hairline);
  border-radius: 0;
  background: transparent;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .radio-plan-home-heading { min-height: 40px; align-items: center; border-bottom: 1px solid var(--home-hairline); }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .radio-plan-home-heading .eyebrow { display: none; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .radio-plan-home-heading h2 { color: var(--church-green); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .radio-plan-home-heading button { min-height: 48px; padding: 0; border: 0; background: transparent; color: var(--home-blue); font-size: .58rem; font-weight: 650; text-transform: uppercase; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .radio-plan-quick-list { display: grid; grid-template-columns: 1fr; gap: 0; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .radio-plan-quick-row {
  grid-template-columns: 55px minmax(0, 1fr);
  min-height: 55px;
  gap: 12px;
  padding: 8px 6px;
  border: 0;
  border-bottom: 1px solid var(--home-hairline);
  border-radius: 0;
  background: transparent;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .radio-plan-quick-row:nth-child(-n+2) { border-left: 3px solid var(--church-green); background: color-mix(in srgb, var(--church-green) 5%, transparent); }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .radio-plan-quick-row > strong { text-align: center; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .radio-plan-quick-row > span b { font-size: .67rem; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .radio-plan-quick-row > span small { font-size: .53rem; }
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .radio-plan-priority { padding-top: 10px; text-align: left; }
.home-guide-link {
  display: none;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border: 0;
  border-bottom: 1px solid var(--home-hairline);
  background: transparent;
  color: var(--home-blue);
  font: inherit;
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .home-guide-link { display: flex; }

html[data-theme="dark"] .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) { --home-blue: #5da9ff; }
html[data-theme="dark"] .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .service-clock-ring > i { border-color: var(--phone-canvas); }

/* Attendance Home uses the same instrument panel, with presence promoted to a full-width control. */
.sunday-screen[data-home-mode="attendance"] .today-actions,
.sunday-screen[data-home-mode="attendance"] .today-summary { display: contents; }
.sunday-screen[data-home-mode="attendance"] #presence-toggle {
  display: grid;
  grid-row: 2;
  grid-column: 1 / -1;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  min-height: 78px;
  width: 100%;
  align-items: center;
  place-items: initial;
  gap: 12px;
  padding: 11px 13px;
  border: 0;
  border-top: 1px solid var(--home-hairline);
  border-bottom: 1px solid var(--home-hairline);
  border-radius: 0;
  background: color-mix(in srgb, var(--church-green) 6%, transparent);
  color: var(--phone-text);
  text-align: left;
}
.sunday-screen[data-home-mode="attendance"] #presence-toggle.active {
  background: color-mix(in srgb, var(--church-green) 11%, transparent);
}
.sunday-screen[data-home-mode="attendance"] #presence-toggle[data-state="loading"] { opacity: .7; }
.sunday-screen[data-home-mode="attendance"] #presence-toggle[data-state="error"] { box-shadow: inset 3px 0 var(--red); }
.sunday-screen[data-home-mode="attendance"] #presence-toggle .today-action-icon {
  width: 44px;
  height: 44px;
  color: var(--church-green);
}
.sunday-screen[data-home-mode="attendance"] #presence-toggle .today-action-icon svg { width: 36px; height: 36px; }
.presence-action-copy { display: grid; min-width: 0; gap: 2px; }
.sunday-screen[data-home-mode="attendance"] .presence-action-copy > strong {
  color: var(--church-green);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sunday-screen[data-home-mode="attendance"] .presence-line {
  min-width: 0;
  margin: 0;
  gap: 7px;
  color: var(--phone-text);
  font-size: .66rem;
  font-weight: 600;
}
.sunday-screen[data-home-mode="attendance"] .presence-expiration {
  max-width: none;
  margin: 2px 0 0;
  color: var(--phone-muted);
  font-size: .54rem;
  font-weight: 500;
  line-height: 1.3;
}
.presence-action-cue { display: none; }
.sunday-screen[data-home-mode="attendance"] .presence-action-cue {
  display: block;
  color: var(--home-blue);
  font-size: .6rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sunday-screen[data-home-mode="attendance"] .report-action,
.sunday-screen[data-home-mode="attendance"] #open-live,
.sunday-screen[data-home-mode="attendance"] #open-issues { grid-row: 3; }
.sunday-screen[data-home-mode="attendance"] .report-action { grid-column: 3 / span 2; }
.sunday-screen[data-home-mode="attendance"] #open-live { grid-column: 1 / span 2; }
.sunday-screen[data-home-mode="attendance"] #open-issues { grid-column: 5 / span 2; }
.sunday-screen[data-home-mode="attendance"] .coverage-readiness { grid-row: 4; }
.sunday-screen[data-home-mode="attendance"] .recent-updates { grid-row: 5; }
.sunday-screen[data-home-mode="attendance"] .radio-plan-home { grid-row: 6; }
.sunday-screen[data-home-mode="attendance"] .home-guide-link { grid-row: 7; }

@media (max-width: 370px) {
  .service-clock { padding-right: 10px; }
  .service-clock { --service-clock-size: 105px; }
  .service-clock-copy strong { font-size: 2.15rem; }
  .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-hero { padding-left: 13px; }
  .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-hero h2 { font-size: clamp(1.75rem, 9vw, 2.1rem); }
}

@media (prefers-reduced-motion: reduce) {
  .service-clock-ring > span { transition: none; }
}

.sunday-screen .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sunday-screen .lockdown-control { margin-top: 0; }
body.shared-app-active .toast {
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 30;
}

.campus-gps-test-dialog { max-width: 560px; }
.gps-test-intro, .gps-test-note { color: var(--phone-muted); line-height: 1.45; }
.gps-test-result {
  display: grid;
  gap: 7px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--phone-border);
  border-left: 5px solid var(--phone-muted);
  background: var(--phone-surface);
}
.gps-test-result[data-state="inside"] { border-left-color: var(--ds-color-confirmed); }
.gps-test-result[data-state="outside"], .gps-test-result[data-state="error"] { border-left-color: var(--ds-color-urgent); }
.gps-test-result[data-state="uncertain"] { border-left-color: var(--ds-color-observation); }
.gps-test-result > strong { color: var(--phone-text); font-size: 1.15rem; }
.gps-test-result > span { color: var(--phone-muted); line-height: 1.4; }
.gps-test-result dl { display: grid; gap: 8px; margin: 10px 0 0; }
.gps-test-result dl div { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--phone-border); padding-top: 8px; }
.gps-test-result dt { color: var(--phone-muted); }
.gps-test-result dd { margin: 0; color: var(--phone-text); font-weight: 750; text-align: right; }
.gps-test-button { width: 100%; min-height: 52px; }
.gps-test-note { display: block; margin-top: 12px; }

/* Keep the phone Today screen operationally dense without reducing tap targets. */
@media (max-width: 520px) {
  .sunday-screen {
    min-height: 0;
  }

  body.shared-app-active .test-banner {
    min-height: 28px;
    padding: 4px 12px;
    line-height: 1.2;
  }

  .sunday-screen .shared-header {
    min-height: 76px;
    padding: 8px 0;
  }

  .sunday-screen .shared-header .brand-lockup {
    width: min(190px, 58vw);
  }

  .sunday-screen .event-summary {
    padding: 4px 0 15px;
  }

  .assignment-hero {
    padding: 22px 0 20px;
  }

  .assignment-hero h2 {
    font-size: clamp(2.75rem, 14vw, 3.65rem);
    line-height: .92;
  }

  .assignment-time {
    margin-top: 11px;
  }

  .today-summary {
    gap: 10px;
    margin-bottom: 11px;
  }

  .summary-card {
    min-height: 88px;
    padding: 14px;
  }

  .today-actions {
    gap: 9px;
    margin-bottom: 10px;
  }

  .today-action {
    min-height: 96px;
    padding-block: 8px;
  }

  .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .shared-header {
    min-height: 78px;
    padding: 9px 0;
  }

  .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .shared-header .brand-lockup {
    width: min(186px, 52vw);
  }

  .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-summary {
    min-height: 54px;
    padding: 0;
  }

  .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-hero {
    padding: 27px 0 16px 20px;
  }

  .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-hero h2 {
    font-size: clamp(2rem, 9.2vw, 2.55rem);
    line-height: .91;
  }

  .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-time { margin-top: 10px; }

  .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .today-summary {
    gap: 0;
    margin: 0;
  }

  .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface {
    width: calc(100% + 28px);
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card,
  .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action {
    min-height: 124px;
    padding: 12px 5px;
  }
}

/* Focused-home cascade lock. */
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface { gap: 12px; padding-top: 12px; padding-bottom: 18px; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-hero { grid-row: 1; grid-column: 1 / -1; min-height: 226px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 24px 22px; border: 1px solid color-mix(in srgb, var(--church-green) 45%, var(--phone-border)); border-radius: 22px; background: linear-gradient(145deg, color-mix(in srgb, var(--church-green) 13%, var(--phone-card)), var(--phone-card)); }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-hero h2 { font-size: clamp(2.35rem, 12vw, 3.25rem); line-height: .94; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-hero .post-order-link { min-width: 150px; min-height: 48px; justify-content: center; margin-top: 18px; padding: 0 20px; border-radius: 12px; background: var(--church-green); color: white; font-size: .73rem; font-weight: 750; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-timeline { display: none; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .today-actions,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .today-summary { display: contents; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .summary-card,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action { grid-row: 2; min-height: 112px; align-content: end; justify-items: start; padding: 16px 13px; border: 1px solid var(--home-hairline); border-radius: 17px; background: var(--phone-card); text-align: left; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #open-live { grid-column: 1 / span 2; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .report-action { grid-column: 3 / span 2; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) #open-issues { grid-column: 5 / span 2; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .coverage-readiness { grid-row: 4; grid-column: 1 / -1; display: grid; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .radio-plan-home { grid-row: 3; grid-column: 1 / -1; display: grid; margin: 0; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .recent-updates { grid-row: 5; grid-column: 1 / -1; display: grid; height: auto; margin: 0; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .recent-updates-list { display: grid; height: auto; overflow: visible; }
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .home-guide-link { grid-row: 6; }

/* Final incident-status cascade: every normal green Home accent follows the active report level. */
html body .sunday-screen[data-incident-level="red"] .event-summary .event-day-label,
html body .sunday-screen[data-incident-level="red"] .event-summary .event-distance,
html body .sunday-screen[data-incident-level="red"] .assignment-home-surface .assignment-state,
html body .sunday-screen[data-incident-level="red"] .assignment-home-surface #assignment-name,
html body .sunday-screen[data-incident-level="red"] .assignment-home-surface .assignment-current-state,
html body .sunday-screen[data-incident-level="red"] .assignment-home-surface #next-duty-card > span,
html body .sunday-screen[data-incident-level="red"] .assignment-home-surface .summary-card-copy > span,
html body .sunday-screen[data-incident-level="red"] .assignment-home-surface #open-issues .summary-card-copy > span,
html body .sunday-screen[data-incident-level="red"] .assignment-home-surface .report-action strong,
html body .sunday-screen[data-incident-level="red"] .assignment-home-surface .radio-plan-home .home-detail-label,
html body .sunday-screen[data-incident-level="red"] .assignment-home-surface #presence-toggle #presence-title {
  color: var(--incident-home-text-color);
}
html body .sunday-screen[data-incident-level] .assignment-home-surface #open-issues {
  border-color: color-mix(in srgb, var(--incident-home-color) 72%, var(--phone-border));
  background: color-mix(in srgb, var(--incident-home-color) 10%, var(--phone-card));
}
html body .sunday-screen[data-incident-level] .assignment-home-surface #active-issue-count:not([hidden]) {
  background: var(--incident-home-color);
  color: var(--incident-on-color);
}
html body .sunday-screen[data-incident-level] .assignment-home-surface .assignment-hero .post-order-link,
html body .sunday-screen[data-incident-level] .assignment-home-surface #presence-toggle .today-action-icon {
  color: var(--incident-on-color);
}

/* Weekly service order: compact Home entry, focused full-screen viewer. */
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .service-order-home-link {
  min-height: 88px;
  align-items: center;
  padding: 16px 14px 16px 18px;
  border: 1px solid color-mix(in srgb, var(--church-green) 44%, var(--phone-border));
  border-radius: 17px;
  background: color-mix(in srgb, var(--church-green) 5%, var(--phone-card));
  text-align: left;
}
.service-order-home-link > span:first-child { display: grid; gap: 5px; }
.service-order-home-link strong { color: var(--blue); font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.service-order-home-link small { color: var(--phone-muted); font-size: .76rem; font-weight: 650; letter-spacing: 0; text-transform: none; }
.service-order-home-link > span:last-child { color: var(--phone-muted); font-size: 1.6rem; }
.service-order-dialog {
  --phone-canvas: var(--theme-canvas);
  --phone-card: var(--theme-surface);
  --phone-text: var(--theme-text);
  --phone-muted: var(--theme-muted);
  --phone-border: var(--theme-border);
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--theme-canvas);
  color: var(--phone-text);
}
.service-order-dialog::backdrop { background: rgba(3, 10, 7, .82); }
.service-order-shell { box-sizing:border-box;width:min(760px,100%);min-height:100%;margin:0 auto;padding:max(16px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom)); }
.service-order-heading { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start; }
.service-order-heading p,.service-order-heading h2 { margin:0; }
.service-order-heading .eyebrow { color:var(--theme-muted);font-size:.78rem;letter-spacing:.03em; }
.service-order-heading h2 { margin-top:4px;color:var(--theme-text);font-size:1.4rem;line-height:1.25; }
.service-order-heading div>p:last-child { margin-top:6px;color:var(--theme-muted);font-size:.9rem;line-height:1.4; }
.service-order-close { width:44px;min-width:44px;height:44px;padding:0;border:1px solid var(--theme-border);border-radius:50%;background:var(--theme-surface);color:var(--theme-text);font-size:1.6rem;line-height:1; }
.service-order-services { display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:14px;padding:4px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface); }
.service-order-services button { min-height:44px;border:0;border-radius:7px;background:transparent;color:var(--theme-muted);font-weight:750; }
.service-order-services button.active { background:var(--theme-text);color:var(--theme-surface); }
.service-order-timeline { margin-top:14px; }
.service-order-timeline h3.visually-hidden { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
.service-order-timeline ol { position:relative;display:grid;margin:0;padding:0;list-style:none; }
.service-order-timeline li { position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;min-height:48px;align-items:center;margin-left:8px;padding:8px 0 8px 20px;border-bottom:1px solid var(--theme-border); }
.service-order-timeline li::before { position:absolute;left:-4px;width:9px;height:9px;border-radius:50%;background:var(--theme-muted);content:""; }
.service-order-timeline li::after { position:absolute;top:0;bottom:0;left:0;width:1px;background:var(--theme-border);content:""; }
.service-order-timeline li.current::before { left:-8px;width:17px;height:17px;border:4px solid var(--theme-canvas);box-shadow:0 0 0 2px var(--church-green);z-index:1; }
.service-order-timeline time { color:var(--theme-text);font-size:.85rem;font-weight:750; }
.service-order-timeline span { color:var(--theme-text);font-size:.92rem;line-height:1.4; }
.service-order-timeline li.current time,.service-order-timeline li.current span { font-weight:800; }
.service-order-feedback { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:10px 12px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface);color:var(--theme-muted); }
.service-order-feedback[hidden] { display:none; }
.service-order-feedback p { margin:0;font-size:.85rem;line-height:1.4; }
.service-order-feedback.is-error { color:var(--theme-text); }
.service-order-feedback button { flex:0 0 auto;min-height:44px;padding:8px 12px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-canvas);color:var(--theme-text); }
.service-order-dialog :is(button,a):focus-visible { outline:3px solid var(--blue);outline-offset:2px; }
@media(min-width:720px) { .service-order-shell { padding-inline:24px; } }

/* Final Home action-rail lock: equal thirds, one continuous control, no mobile clipping. */
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface {
  column-gap: 0;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .summary-card,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .report-action {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  min-height: 76px;
  margin: 0;
  place-items: center;
  align-content: center;
  padding: 12px 4px;
  overflow: hidden;
  border: 1px solid var(--home-hairline);
  border-radius: 0;
  background: color-mix(in srgb, var(--church-green) 6%, var(--phone-card));
  text-align: center;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface #open-live {
  grid-column: 1 / span 2;
  border-right: 0;
  border-radius: 16px 0 0 16px;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .report-action {
  grid-column: 3 / span 2;
  border-right: 0;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface #open-issues {
  grid-column: 5 / span 2;
  border-radius: 0 16px 16px 0;
}
html body .sunday-screen[data-incident-level]:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface #open-issues {
  border-color: var(--home-hairline);
  background: color-mix(in srgb, var(--church-green) 6%, var(--phone-card));
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .assignment-hero {
  box-shadow: 0 14px 34px rgb(0 0 0 / 22%), inset 0 1px 0 color-mix(in srgb, var(--church-green) 14%, transparent);
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface :is(.service-order-home-link, #presence-toggle) {
  box-shadow: 0 10px 26px rgb(0 0 0 / 16%);
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .summary-card-copy > span,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .report-action strong,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface #open-issues .summary-card-copy > span {
  max-width: 100%;
  font-size: clamp(.84rem, 4vw, 1.02rem);
  letter-spacing: .025em;
  overflow-wrap: anywhere;
}

/* Keep the rail balanced when tenant permissions remove one or two actions. */
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface:has(#open-live[hidden]) .report-action {
  grid-column: 1 / span 3;
  border-radius: 16px 0 0 16px;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface:has(#open-live[hidden]) #open-issues {
  grid-column: 4 / span 3;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface:has(.report-action[hidden]):has(#open-issues[hidden]) #open-live {
  grid-column: 1 / -1;
  border-right: 1px solid var(--home-hairline);
  border-radius: 16px;
}

/* Slim assignment Home: keep the complete Check In control above fixed navigation. */
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface {
  gap: 7px;
  padding-top: 7px;
  padding-bottom: 10px;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .assignment-hero,
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .assignment-hero:has(#next-duty-card:not([hidden])) {
  min-height: 0;
  justify-content: flex-start;
  padding: 13px 16px 10px;
  border-radius: 17px;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .assignment-hero h2 {
  font-size: clamp(2rem, 10.25vw, 2.7rem);
  line-height: .9;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .assignment-hero .assignment-state {
  margin-bottom: 5px;
  font-size: .62rem;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .assignment-hero .assignment-time {
  margin-top: 6px;
  font-size: .75rem;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .assignment-hero .assignment-current-state {
  margin-top: 3px;
  font-size: .7rem;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .assignment-hero > .post-order-link {
  width: auto;
  min-width: 0;
  min-height: 34px;
  justify-content: flex-start;
  margin-top: 3px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--home-blue);
  font-size: .62rem;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface #next-duty-card:not([hidden]) {
  gap: 2px 10px;
  margin-top: 4px;
  padding-top: 6px;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface #next-duty-card .post-order-link {
  min-height: 30px;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .summary-card,
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .report-action {
  min-height: 54px;
  padding: 7px 3px;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .summary-card-copy > span,
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .report-action strong,
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface #open-issues .summary-card-copy > span {
  font-size: clamp(.72rem, 3.6vw, .88rem);
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .radio-plan-home {
  min-height: 54px;
  padding: 8px 38px 8px 13px;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .radio-plan-home .home-detail-label {
  font-size: .58rem;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .radio-plan-home > strong {
  margin-top: 1px;
  font-size: .82rem;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .radio-plan-home > small {
  font-size: .62rem;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .service-order-home-link {
  min-height: 58px;
  padding: 8px 11px 8px 13px;
  border-radius: 15px;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .service-order-home-link > span:first-child {
  gap: 2px;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .service-order-home-link strong {
  font-size: .64rem;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .service-order-home-link small {
  font-size: .66rem;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface .service-order-home-link > span:last-child {
  font-size: 1.25rem;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface #presence-toggle {
  min-height: 68px;
  padding: 8px 12px;
  border-radius: 15px;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface #presence-toggle .today-action-icon {
  width: 42px;
  height: 42px;
}
html body .sunday-screen[data-home-mode="assignment"] .assignment-home-surface #presence-toggle .today-action-icon svg {
  width: 21px;
  height: 21px;
}

/* Compact Home service rail: next service, time remaining, then radio guide. */
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 58px;
  align-items: stretch;
  padding: 0;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-rail-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 4px 8px;
  text-align: center;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-rail-label {
  color: var(--church-green);
  font-size: .52rem;
  font-weight: 850;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-summary .event-service-date .eyebrow,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-summary .event-service-distance .event-distance {
  display: block;
  width: 100%;
  align-self: center;
  margin: 0;
  padding: 0;
  color: var(--phone-text);
  font-size: clamp(.68rem, 3.25vw, .78rem);
  font-weight: 800;
  letter-spacing: .015em;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-summary .event-service-date .eyebrow > span {
  display: inline;
  color: inherit;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-summary .event-service-date .eyebrow > span:nth-child(2) {
  display: inline;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-radio-link {
  min-width: 0;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  align-self: center;
  justify-self: stretch;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--home-blue);
  font: inherit;
  font-size: clamp(.72rem, 3.4vw, .84rem);
  font-weight: 850;
  letter-spacing: .04em;
  text-align: center;
  cursor: pointer;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-radio-value {
  display: block;
  width: 100%;
  color: var(--home-blue);
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-radio-link:focus-visible {
  outline: 2px solid var(--home-blue);
  outline-offset: -4px;
  border-radius: 10px;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-summary > h1,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .event-summary > #sync-state {
  display: none;
}

/* Home Favorite keeps one optional, user-chosen item in the quiet space below Check In. */
.home-favorite-menu-item { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.home-favorite-menu-item span { color: var(--phone-muted); font-size: .72rem; font-weight: 750; }
.home-favorite-slot {
  display: block;
  width: calc(100% - 28px);
  max-width: 690px;
  min-height: 0;
  margin: 18px auto 8px;
}
.home-favorite-slot[hidden], .home-favorite-module[hidden], .home-favorite-prompt[hidden] { display: none; }
.home-favorite-module { position: relative; }
.home-favorite-prompt {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 16px 18px;
  border: 1px dashed color-mix(in srgb, var(--church-green) 62%, var(--phone-border));
  border-radius: 18px;
  background: color-mix(in srgb, var(--church-green) 4%, transparent);
}
.home-favorite-prompt .eyebrow { margin: 0 0 3px; color: var(--church-green); font-size: .58rem; }
.home-favorite-prompt h2 { margin: 0; color: var(--phone-text); font-size: 1rem; }
.home-favorite-prompt p:not(.eyebrow) { margin: 3px 0 0; color: var(--phone-muted); font-size: .7rem; line-height: 1.35; }
.home-favorite-prompt > button {
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  background: var(--church-green);
  color: #fff;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .03em;
  white-space: nowrap;
}
.home-favorite-card {
  display: flex;
  width: 100%;
  min-height: 86px;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 15px 52px 15px 18px;
  border: 1px solid color-mix(in srgb, var(--church-green) 54%, var(--phone-border));
  border-radius: 18px;
  background: color-mix(in srgb, var(--church-green) 7%, var(--phone-card));
  color: var(--phone-text);
  text-align: left;
}
.home-favorite-card > span:first-child { display: grid; gap: 4px; min-width: 0; }
.home-favorite-card small { color: var(--church-green); font-size: .61rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.home-favorite-card strong { overflow: hidden; font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.home-favorite-card > span:last-child { color: var(--phone-muted); font-size: 1.5rem; }
.home-favorite-change {
  position: absolute;
  z-index: 2;
  top: 3px;
  right: 3px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--phone-muted);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.home-favorite-change:hover, .home-favorite-change:focus-visible { background: color-mix(in srgb, var(--phone-muted) 12%, transparent); }

/* Operations Timeline is an instrument strip, not another Home card. */
.operations-timeline-home {
  display: grid;
  width: 100%;
  gap: 8px;
  margin: 0;
  padding: 10px 48px 12px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--phone-text);
  text-align: left;
}
.operations-timeline-home[hidden] { display: none; }
.operations-timeline-heading, .operations-timeline-status { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.operations-timeline-heading strong { color: var(--church-green); font-size: .67rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.operations-timeline-heading time { color: var(--phone-text); font-size: .72rem; font-weight: 850; }
.operations-progress { position: relative; display: block; height: 3px; margin: 3px 0; border-radius: 99px; background: color-mix(in srgb, var(--phone-muted) 36%, transparent); }
.operations-progress > i { position: absolute; inset: 0 auto 0 0; width: 0; overflow: hidden; border-radius: inherit; background: var(--church-green); transition: width .5s ease; }
.operations-progress > i::after { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0 65%, rgba(255,255,255,.62) 82%, transparent 100%); content: ""; animation: operations-sweep 3.2s ease-in-out infinite; }
.operations-progress > b { position: absolute; top: 50%; left: 0; width: 11px; height: 11px; border: 2px solid var(--phone-canvas); border-radius: 50%; background: var(--church-green); box-shadow: 0 0 0 2px color-mix(in srgb, var(--church-green) 45%, transparent); transform: translate(-50%, -50%); transition: left .5s ease; }
.operations-progress > span { position: absolute; inset: 0; }
.operations-progress > span i { position: absolute; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--phone-muted); transform: translate(-50%, -50%); }
.operations-timeline-status > span { color: var(--phone-muted); font-size: .7rem; font-weight: 700; }
.operations-timeline-status > strong { color: var(--home-blue); font-size: .61rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
@keyframes operations-sweep { 0%, 45% { transform: translateX(-115%); } 85%, 100% { transform: translateX(115%); } }
@media (prefers-reduced-motion: reduce) { .operations-progress > i::after { animation: none; } }

.operations-timeline-dialog { max-width: 620px; }
.operations-dialog-date { margin: 5px 0 0; color: var(--phone-muted); }
.operations-dialog-current { display: grid; gap: 3px; margin: 18px 0; padding: 16px; border-left: 4px solid var(--church-green); background: color-mix(in srgb, var(--church-green) 7%, var(--phone-card)); }
.operations-dialog-current strong { color: var(--church-green); font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; }
.operations-dialog-current span { color: var(--phone-text); font-size: 1.1rem; font-weight: 850; }
.operations-dialog-list { display: grid; margin: 0; padding: 0; list-style: none; }
.operations-dialog-list li { display: grid; grid-template-columns: 84px 14px minmax(0,1fr); gap: 9px; align-items: center; min-height: 52px; border-bottom: 1px solid var(--phone-border); color: var(--phone-muted); }
.operations-dialog-list li i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.operations-dialog-list li.current { color: var(--church-green); font-weight: 850; }
.operations-dialog-list li.user-assignment span::after { content: " · Your assignment"; color: var(--home-blue); font-size: .7rem; font-weight: 850; }

.home-favorite-dialog { max-width: 600px; }
.home-favorite-dialog .dialog-heading p:not(.eyebrow) { margin: 5px 0 0; color: var(--phone-muted); }
.home-favorite-choices { display: grid; gap: 9px; margin: 18px 0 12px; }
.home-favorite-choices > button {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 11px 13px;
  border: 1px solid var(--phone-border);
  border-radius: 14px;
  background: var(--phone-card);
  color: var(--phone-text);
  text-align: left;
}
.home-favorite-choices > button span { display: grid; gap: 3px; }
.home-favorite-choices > button strong { font-size: .85rem; }
.home-favorite-choices > button small { color: var(--phone-muted); font-size: .7rem; }
.home-favorite-choices > button b { color: var(--church-green); font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; }
.home-favorite-choices > button[aria-checked="true"] { border-color: var(--church-green); background: color-mix(in srgb, var(--church-green) 9%, var(--phone-card)); box-shadow: inset 4px 0 0 var(--church-green); }
.home-favorite-note { margin: 0; color: var(--phone-muted); font-size: .68rem; line-height: 1.45; }
@media (max-width: 520px) {
  .home-favorite-prompt { grid-template-columns: 1fr; }
  .home-favorite-prompt > button { width: 100%; }
}

.operations-events-card { grid-column: 1 / -1; }
.operations-events-panel { --operations-action: #075fae; --operations-danger: #a71930; display: grid; gap: 16px; padding: 16px; }
html[data-theme="dark"] .operations-events-panel { --operations-action: #5da9ff; --operations-danger: #ff8d96; }
.operations-event-list { display: grid; gap: 8px; }
.operations-event-list button { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; width: 100%; min-height: 58px; padding: 11px 13px; border: 1px solid var(--theme-border, var(--gray-300)); background: var(--theme-surface-strong, var(--white)); color: var(--theme-text, var(--navy)); text-align: left; }
.operations-event-list button strong { font-size: .92rem; }
.operations-event-list button span { grid-column: 1; color: var(--theme-muted, var(--gray-600)); font-size: .72rem; }
.operations-event-list button b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--operations-action); }
.operations-event-form { display: grid; gap: 14px; padding-top: 14px; border-top: 1px solid var(--theme-border, var(--gray-300)); }
.operations-event-fields { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 10px; }
.operations-event-form label { display: grid; gap: 5px; color: var(--theme-text, var(--navy)); font-size: .74rem; font-weight: 850; }
.operations-event-form :is(input, select) { min-height: 44px; }
.operations-show-home { grid-template-columns: auto 1fr !important; align-items: center; justify-content: start; }
.operations-show-home input { min-height: 0; }
.operations-transitions { display: grid; gap: 10px; margin: 0; padding: 13px; border: 1px solid var(--theme-border, var(--gray-300)); background: var(--theme-surface-strong, var(--white)); }
.operations-transitions legend { color: var(--theme-text, var(--navy)); font-weight: 900; }
.operations-transitions-help { margin: 0; color: var(--theme-muted, var(--gray-600)); font-size: .72rem; line-height: 1.45; }
#operations-transition-list { display: grid; gap: 8px; }
.operations-transition-row { display: grid; grid-template-columns: 130px minmax(0,1fr) 42px; gap: 8px; align-items: end; }
.operations-transition-row label { min-width: 0; }
.operations-transition-row label span { color: var(--theme-muted, var(--gray-600)); font-size: .66rem; font-weight: 800; }
.operations-transition-row button { min-height: 44px; padding: 0; border: 1px solid var(--theme-border, var(--gray-300)); background: var(--theme-surface, var(--white)); color: var(--operations-danger); font-size: 1.15rem; font-weight: 900; }
#add-operations-transition { min-height: 44px; border: 1px dashed var(--operations-action); background: transparent; color: var(--operations-action); font-weight: 900; }
.operations-event-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .operations-event-fields { grid-template-columns: 1fr 1fr; } .operations-event-fields label:first-child { grid-column: 1 / -1; } }

/* Report photos stay compact in the form and private inside the report. */
.issue-details-field {
  display: grid;
  gap: 6px;
  padding: 12px 15px 0;
  color: var(--navy);
  font-weight: 850;
}
.issue-details-field > label { padding: 0; }
.issue-details-shell {
  overflow: hidden;
  border: 1px solid var(--gray-300);
  background: var(--white);
}
.operation-dialog .issue-details-shell > textarea {
  display: block;
  width: 100%;
  min-height: 112px;
  padding: 11px;
  border: 0;
  background: transparent;
  resize: vertical;
}
.issue-photo-control { border-top: 1px solid var(--theme-border, var(--gray-300)); }
.issue-photo-control > button,
#issue-photo-selected {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 7px 11px;
  border: 0;
  background: var(--theme-surface-strong, var(--white));
  color: var(--theme-text, var(--navy));
  font: inherit;
}
#choose-issue-photo {
  display: grid;
  grid-template-columns: 27px auto 1fr;
  gap: 8px;
  align-items: center;
  text-align: left;
}
#choose-issue-photo svg,
#issue-photo-selected svg,
.issue-camera-marker svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
#choose-issue-photo strong { color: var(--theme-text, var(--navy)); font-size: .82rem; }
#choose-issue-photo span { justify-self: end; color: var(--theme-muted, var(--gray-600)); font-size: .68rem; font-weight: 650; }
#issue-photo-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#issue-photo-selected[hidden] { display: none; }
#issue-photo-selected > span { display: grid; grid-template-columns: 27px auto; gap: 0 8px; align-items: center; min-width: 0; }
#issue-photo-selected svg { grid-row: 1 / span 2; color: var(--theme-text, var(--church-green)); }
#issue-photo-selected strong { color: var(--theme-text, var(--navy)); font-size: .78rem; }
#issue-photo-selected small { overflow: hidden; color: var(--theme-muted, var(--gray-600)); font-size: .64rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
#remove-issue-photo {
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--theme-muted, var(--gray-600));
  font-size: 1.5rem;
}
#choose-issue-photo:focus-visible,
#remove-issue-photo:focus-visible { outline: 2px solid var(--theme-text, var(--navy)); outline-offset: -3px; }
.issue-photo-status { min-height: 16px; margin: 0; color: var(--gray-600); font-size: .66rem; font-weight: 650; }
.issue-photo-status:empty { min-height: 0; }
.issue-photo-status.error { color: var(--red); }

/* Active issues remain one normal severity-sorted list; photo is only a marker. */
.home-active-issues {
  grid-column: 1 / -1;
  display: grid;
  gap: 0;
  overflow: hidden;
  margin-top: 2px;
  border: 1px solid var(--home-hairline);
  border-radius: 15px;
  background: var(--phone-card);
}
.home-active-issues[hidden] { display: none; }
.home-active-issues-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px 7px; border-bottom: 1px solid var(--home-hairline); }
.home-active-issues-heading h2 { margin: 0; color: var(--phone-text); font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; }
.home-active-issues-heading span { color: var(--phone-muted); font-size: .64rem; font-weight: 750; }
.home-active-issues-list { display: grid; }
.home-active-issue {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) auto 15px;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 53px;
  padding: 7px 10px 7px 0;
  border: 0;
  border-bottom: 1px solid var(--home-hairline);
  background: transparent;
  color: var(--phone-text);
  font: inherit;
  text-align: left;
}
.home-active-issue:last-child { border-bottom: 0; }
.home-active-issue-level { align-self: stretch; background: #d9a514; }
.home-active-issue.issue-level-green .home-active-issue-level { background: #3e7a3a; }
.home-active-issue.issue-level-red .home-active-issue-level { background: #a71930; }
.home-active-issue-copy { display: grid; gap: 2px; min-width: 0; }
.home-active-issue-copy strong,
.home-active-issue-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-active-issue-copy strong { font-size: .72rem; }
.home-active-issue-copy small { color: var(--phone-muted); font-size: .64rem; font-weight: 600; }
.issue-camera-marker { display: inline-grid !important; place-items: center; color: var(--home-blue) !important; vertical-align: middle; }
.issue-card > div > strong .issue-camera-marker { display: inline-grid !important; margin-left: 6px; }
.issue-camera-marker svg { width: 18px; height: 18px; }
.home-active-issue-cue { color: var(--phone-muted); font-size: 1.15rem; }
#home-view-all-reports { min-height: 42px; padding: 0 12px; border: 0; border-top: 1px solid var(--home-hairline); background: transparent; color: var(--home-blue); font: inherit; font-size: .67rem; font-weight: 850; text-align: left; }

/* Report photo loads only after the report is opened. */
.thread-photo { padding: 0 14px 14px; border-bottom: 1px solid var(--gray-300); }
.thread-photo > button { display: grid; width: 100%; min-height: 116px; max-height: 260px; place-items: center; overflow: hidden; padding: 0; border: 1px solid var(--gray-300); border-radius: 10px; background: var(--gray-50); color: var(--gray-600); }
.thread-photo img { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.thread-photo span { padding: 16px; font-size: .72rem; font-weight: 750; }
.issue-photo-dialog {
  width: min(920px, calc(100% - 20px));
  max-height: calc(100dvh - 20px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gray-300);
  border-radius: 14px;
  background: #111;
  color: white;
}
.issue-photo-dialog::backdrop { background: rgb(0 0 0 / 86%); }
.issue-photo-dialog > button { position: absolute; z-index: 2; top: 8px; right: 8px; width: 46px; height: 46px; border: 1px solid rgb(255 255 255 / 62%); border-radius: 50%; background: rgb(0 0 0 / 68%); color: white; font-size: 1.7rem; }
.issue-photo-dialog > span { display: grid; min-height: 280px; place-items: center; padding: 30px; }
.issue-photo-dialog > img { display: block; width: 100%; max-height: calc(100dvh - 22px); object-fit: contain; }

@media (max-width: 360px) {
  .poi-gallery-grid { gap: 8px; padding-inline: 10px; }
  .poi-gallery-card-copy { padding: 8px; }
  .poi-gallery-card-copy strong { font-size: .75rem; }
  .poi-gallery-card-copy small { font-size: .62rem; }
}

/* Campus Setup uses one ordered, campus-scoped location list for Reports and Check-In. */
#configured-check-in-areas { display: contents; }
.campus-location-panel { display: grid; gap: 16px; }
.campus-location-form { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--theme-border, var(--gray-300)); background: var(--theme-surface-strong, var(--white)); }
.campus-location-form > label { display: grid; gap: 6px; color: var(--theme-text, var(--navy)); font-size: .75rem; font-weight: 850; }
.campus-location-form input[type="text"], .campus-location-form input:not([type]) { min-height: 44px; }
.campus-location-uses { display: flex; gap: 14px; flex-wrap: wrap; }
.campus-location-uses label { display: flex; gap: 7px; align-items: center; color: var(--theme-text, var(--navy)); font-size: .72rem; font-weight: 800; }
.campus-location-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.campus-location-list { display: grid; gap: 7px; }
.campus-location-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid var(--theme-border, var(--gray-300)); background: var(--theme-surface-strong, var(--white)); }
.campus-location-row > div:first-child { display: grid; gap: 3px; }
.campus-location-row strong { color: var(--theme-text, var(--navy)); }
.campus-location-row small { color: var(--theme-muted, var(--gray-600)); }
.campus-location-row.is-retired { opacity: .66; }
.campus-location-actions { display: flex; gap: 5px; }
.campus-location-actions button { min-width: 38px; min-height: 38px; padding: 0 9px; border: 1px solid var(--theme-border, var(--gray-300)); background: var(--theme-surface, var(--white)); color: var(--theme-text, var(--navy)); font-weight: 850; }
@media (min-width: 760px) {
  .sunday-screen > .shared-header {
    min-height: 58px;
    grid-template-columns: 1fr;
    justify-items: end;
    padding: 6px 0;
  }
  .sunday-screen > .shared-header > .header-spacer,
  .sunday-screen > .shared-header > .brand-version-lockup { display: none; }
  .sunday-screen > .shared-header .account-menu { top: 54px; }
}

.presence-feedback { padding: 12px 14px; border: 1px solid #efb263; border-radius: 8px; background: #33291d; color: #ffe0b2; font-size: 1rem; line-height: 1.45; }
.presence-feedback[hidden] { display: none; }
.command-home-request{margin:12px 0;padding:20px;border:3px solid #1965a5;border-radius:12px;background:#edf5fc;color:#183c5d}.command-home-request h2{font-size:25px;line-height:1.15;margin:12px 0}.command-home-request small{display:block;font-size:12px}.command-home-request select{display:block;width:100%;font:inherit;padding:14px 8px;background:white;color:#183c5d;border:1px solid #1965a5;border-radius:6px;margin:12px 0}.command-home-request svg{width:100%;margin-top:12px}.command-home-request summary{cursor:pointer;font-weight:650}.command-home-responses{display:flex;gap:8px;flex-wrap:wrap}.command-home-responses button{font:inherit;padding:12px;background:#1965a5;color:white;border:0;border-radius:6px}.command-response-error{color:#923d12;font-size:13px}

.sunday-presence-prompt { grid-column: 1 / -1; width: 100%; min-width: 0; box-sizing: border-box; padding: 12px; border: 1px solid var(--gold, #b89b57); border-radius: 12px; margin: 10px 0; background: #fff9e8; color: #222; }
.sunday-presence-prompt[hidden] { display: none; }
.sunday-presence-prompt p { margin: 0 0 10px; }
.sunday-presence-prompt div { display: flex; flex-wrap: wrap; gap: 8px; }
.sunday-presence-prompt button { min-height: 44px; padding: 8px 12px; border-radius: 8px; }

.sunday-presence-prompt button { background: #173b2a; color: #fff; border: 1px solid #173b2a; font-weight: 600; }
.sunday-presence-prompt button + button { background: #fff; color: #173b2a; }

/* Home header: brand, version, Prayer, account. Keep both actions easy to tap. */
#app-view > .shared-header{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;justify-content:space-between;justify-items:stretch;align-items:center;gap:8px;min-height:78px;padding:12px 0}
#app-view > .shared-header > .brand-version-lockup{display:flex;justify-content:flex-start;min-width:0;grid-column:1;gap:0}
#app-view > .shared-header .brand-lockup{width:clamp(112px,40vw,160px);max-width:calc(100% - 30px);margin:0}
#app-view > .shared-header .app-version{white-space:nowrap;font-size:.62rem;font-weight:650;color:var(--phone-muted)}
#app-view > .shared-header > #header-prayer-link{grid-column:2;text-decoration:none;display:inline-grid;place-items:center}
#app-view > .shared-header > #header-prayer-link[hidden]{display:none}
#app-view > .shared-header > .shared-header-actions{grid-column:3}
#app-view > .shared-header .header-icon-button{width:44px;min-width:44px;height:44px}
#app-view > .shared-header > #header-prayer-link{background:transparent;border:0;color:#3e7a3a}#app-view > .shared-header > #header-prayer-link svg{width:30px;height:30px;fill:currentColor;stroke:none}html[data-theme="dark"] #app-view > .shared-header > #header-prayer-link{color:#83bd7c}
#header-prayer-link:focus-visible{outline:3px solid var(--phone-accent,#236aab);outline-offset:3px}

/* Prayer opens from the header or Home; omit the duplicate account-menu entry. */
#account-menu #prayer-praise-link{display:none!important}

/* Approved Home rail: equal buttons, aligned headings, and one line of issue counts. */
@font-face {
  font-family: "DLR Issue Counts";
  src: url("assets/fonts/roboto-condensed-issue-counts.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface {
  column-gap: 4px;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface :is(#open-live, #open-issues, .report-action) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 0;
  min-height: 96px;
  padding: 12px 3px;
  border: 1px solid var(--home-hairline);
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface #open-live {
  border-radius: 23px 0 0 23px;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface #open-issues {
  border-radius: 0 23px 23px 0;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface :is(#open-live .summary-card-copy, #open-issues .summary-card-copy, .report-action .today-action-copy) {
  position: static;
  inset: auto;
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 18px 44px;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  gap: 8px;
  padding: 0;
  align-content: center;
  align-items: center;
  justify-items: center;
  justify-content: stretch;
  justify-self: stretch;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface :is(#open-live, #open-issues) .summary-card-copy > span,
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .report-action .today-action-copy > strong:first-child {
  max-width: 100%;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: .045em;
  overflow-wrap: normal;
  white-space: nowrap;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface #coverage-home-summary {
  display: inline-grid;
  place-items: center;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 4px 8px 5px;
  border-radius: 999px;
  background: var(--church-green);
  color: var(--phone-card);
  font-size: clamp(1.1475rem, 5.661vw, 1.3865625rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .report-action strong.report-action-detail {
  font-size: clamp(1.125rem, 5.65vw, 1.375rem);
  line-height: 1;
  letter-spacing: .025em;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface #issue-count-summary {
  display: block;
  max-width: 100%;
  margin: 0;
  color: var(--phone-muted);
  font-family: "DLR Issue Counts", "Arial Narrow", "Avenir Next Condensed", "Roboto Condensed", var(--ds-font-family);
  font-size: clamp(.6875rem, 2.75vw, .8125rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  /* The bundled font keeps one line; preserve all text if a device cannot load it. */
  white-space: normal;
  text-wrap: balance;
}
@media (max-width: 360px) {
  html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface #open-issues {
    padding-inline: 1px;
  }
  html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface #issue-count-summary {
    letter-spacing: -.03em;
  }
}
/* Longer Spanish labels keep the same family and matching heading sizes. */
html[lang="es"] body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface :is(#open-live, #open-issues) .summary-card-copy > span,
html[lang="es"] body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .report-action .today-action-copy > strong:first-child {
  font-size: clamp(.875rem, 4.1vw, 1rem);
  letter-spacing: 0;
}
html[lang="es"] body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface .report-action strong.report-action-detail {
  font-size: clamp(.875rem, 4.375vw, 1.125rem);
  letter-spacing: 0;
}
/* Read-only access keeps Team and Issues beside each other without an empty middle. */
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface:has(.report-action[hidden]):has(#open-issues:not([hidden])) #open-live {
  grid-column: 1 / span 3;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface:has(.report-action[hidden]):has(#open-live:not([hidden])) #open-issues {
  grid-column: 4 / span 3;
}
html body .sunday-screen:is([data-home-mode="assignment"], [data-home-mode="attendance"]) .assignment-home-surface:has(.report-action[hidden]):has(#open-live[hidden]) #open-issues {
  grid-column: 1 / -1;
  border-radius: 16px;
}

/* Team views: retain the schedule timeline and offer location and surname order. */
html body #live-dialog { --phone-card: var(--theme-surface, #fff); --phone-text: var(--theme-text, #112f44); --phone-muted: var(--theme-muted, #637483); --phone-border: var(--theme-border, #e1e7ea); color: var(--phone-text); background: var(--phone-card); }
html body #live-dialog .dialog-heading { padding: 24px 20px 18px; border-bottom: 0; }
html body #live-dialog .dialog-heading h2 { font-size: 1.65rem; letter-spacing: -.025em; }
html body #live-dialog .coverage-event-time { font-size: .76rem; color: var(--phone-muted); }
html body #live-dialog .on-campus-strip { margin: 0 20px 16px; padding: 12px 14px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--phone-text) 4%, var(--phone-card)); }
html body #live-dialog .on-campus-heading { gap: 8px; }
html body #live-dialog .on-campus-heading h3 { font-size: .88rem; color: var(--phone-text); }
html body #live-dialog #on-campus-count { min-width: 24px; height: 24px; font-size: .8rem; }
html body #live-dialog .on-campus-heading-actions { gap: 5px; }
html body #live-dialog #toggle-on-campus-list { color: var(--phone-text); min-height: 40px; font-size: .74rem; padding: 4px 6px; border: 0; }
html body #live-dialog .on-campus-collapse { min-width: 40px; width: 40px; height: 40px; }
html body #live-dialog .on-campus-empty { font-size: .8rem; }
html body #live-dialog .coverage-team-toggle { margin: 0 20px 14px; padding: 3px; gap: 3px; border: 0; border-radius: 11px; background: color-mix(in srgb, var(--phone-text) 4%, var(--phone-card)); }
html body #live-dialog .coverage-team-toggle button { min-height: 42px; border: 0; border-radius: 8px; font-size: .85rem; background: transparent; color: var(--phone-muted); }
html body #live-dialog .coverage-team-toggle button[aria-pressed="true"] { background: var(--phone-text); color: var(--phone-card); box-shadow: none; }
html body #live-dialog .coverage-summary { display: flex; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 0 20px 16px; border-bottom: 1px solid var(--phone-border); }
html body #live-dialog .coverage-summary p { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html body #live-dialog #coverage-count { padding: 0; background: transparent; color: var(--phone-muted); font-size: .78rem; }
html body #live-dialog .coverage-sort-toggle { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--phone-border); border-radius: 11px; }
html body #live-dialog .coverage-sort-toggle button { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--phone-muted); }
html body #live-dialog .coverage-sort-toggle button[aria-pressed="true"] { background: var(--phone-text); color: var(--phone-card); }
html body #live-dialog .coverage-sort-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body #live-dialog .coverage-list { padding: 18px 20px; }
html body #live-dialog .coverage-group-heading { font-size: .67rem; letter-spacing: .12em; color: var(--phone-muted); padding: 0; margin: 0 0 12px; }
html body #live-dialog .coverage-wave-heading { font-size: .76rem; padding: 0; margin-bottom: 9px; }
html body #live-dialog .coverage-position { padding: 14px; margin-bottom: 9px; border: 1px solid var(--phone-border); border-radius: 12px; background: var(--phone-card); }
html body #live-dialog .coverage-position-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
html body #live-dialog .coverage-position-head > strong { font-size: .95rem; }
html body #live-dialog .coverage-position-time { font-size: .73rem; color: var(--phone-muted); }
html body #live-dialog .coverage-people { gap: 8px 12px; margin-top: 10px; }
html body #live-dialog .coverage-person-message { font-size: .83rem; text-decoration: none; }
html body #live-dialog .team-photo-avatar { width: 29px; height: 29px; min-width: 29px; font-size: .65rem; }
html body #live-dialog .coverage-roaming-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; padding: 0 0 10px; border-bottom: 1px solid var(--theme-border, var(--phone-border)); color: var(--theme-text, var(--phone-text)); }
html body #live-dialog .coverage-roaming-heading strong { font-size: 1rem; font-weight: 800; }
html body #live-dialog .coverage-roaming-heading .coverage-position-time { margin-left: 0; font-size: .83rem; }
html body #live-dialog .coverage-roaming-block .coverage-people { gap: 2px; }
html body #live-dialog .coverage-roaming-person { min-height: 44px; gap: 6px 10px; color: var(--theme-text, var(--phone-text)); }
html body #live-dialog .coverage-roaming-identity { display: flex; flex: 1; align-items: center; gap: 7px; min-width: 0; font-size: .83rem; font-weight: 850; line-height: 1.35; }
html body #live-dialog .coverage-roaming-identity > .coverage-person-message { min-width: 0; width: 100%; }
html body #live-dialog .coverage-roaming-identity > span:not(.team-photo-avatar),
html body #live-dialog .coverage-roaming-identity > .coverage-person-message > span:not(.team-photo-avatar) { min-width: 0; overflow-wrap: anywhere; }
html body #live-dialog .coverage-roaming-person .coverage-roaming-note { max-width: 100%; color: var(--theme-muted, var(--phone-muted)); font-size: .73rem; font-weight: 650; overflow-wrap: anywhere; }
html body #live-dialog .coverage-name-heading { margin-bottom: 10px; }
html body #live-dialog .coverage-name-duty { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 1px solid var(--phone-border); padding: 9px 0; font-size: .82rem; }
html body #live-dialog .coverage-name-duty:last-child { padding-bottom: 0; }
html body #live-dialog .coverage-name-duty span { font-size: .72rem; color: var(--phone-muted); text-align: right; }
html body #live-dialog .coverage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 8px 18px 16px;
  border-top: 1px solid var(--theme-border, var(--phone-border));
}
html body #live-dialog .coverage-actions[hidden],
html body #live-dialog .coverage-actions a[hidden] { display: none; }
html body #live-dialog .coverage-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--theme-text, var(--phone-text));
  font-size: .82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html body #live-dialog .coverage-actions a:focus-visible { outline: 2px solid var(--theme-text, var(--phone-text)); outline-offset: 2px; }

/* Compact assignment-specific note; no empty placeholder when there is no note. */
html body .assignment-hero { position: relative; }
html body #assignment-note-button {
  position: absolute; top: 12px; right: 14px; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 0; min-height: 0; height: 27px; padding: 0 9px;
  border: 1px solid var(--church-green); border-radius: 999px;
  background: var(--phone-panel, #f5faf5); color: var(--phone-ink, #173e30);
  font: inherit; font-size: 11px; font-weight: 700; line-height: 1;
}
html body #assignment-note-button[hidden] { display: none; }
html body #assignment-note-button::before { content: ""; position: absolute; inset: -9px 0; }
html body #assignment-note-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
html body .assignment-hero:has(#assignment-note-button:not([hidden])) .assignment-state { padding-right: 76px; min-height: 27px; }
html body #assignment-note-button:focus-visible { outline: 2px solid var(--church-green); outline-offset: 3px; }
html body #assignment-note-dialog {
  position: fixed; inset: 0; margin: auto; box-sizing: border-box;
  width: min(340px, calc(100vw - 40px)); height: fit-content;
  max-height: calc(100dvh - 64px); padding: 18px 20px 22px;
  border: 1px solid var(--theme-border, #cadaca); border-radius: 20px;
  background: var(--theme-surface, #f7faf6); color: var(--theme-text, #173e30);
  box-shadow: 0 20px 65px #102d3040; overflow-y: auto;
}
html body #assignment-note-dialog::backdrop { background: #102d3059; backdrop-filter: blur(3px); }
html body #assignment-note-dialog .dialog-heading {
  position: static; padding: 0 0 12px; gap: 10px;
  border: 0; background: transparent; align-items: center;
}
html body #assignment-note-dialog .dialog-heading h2 {
  margin: 0; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere;
  color: inherit; font-weight: 750;
}
html body #assignment-note-dialog .dialog-heading > button {
  flex: 0 0 36px; width: 36px; height: 36px; min-height: 36px;
  padding: 0; border: 0; border-radius: 50%; font-size: 1.5rem;
  line-height: 1; background: var(--theme-bg, #e8efe6); color: inherit;
}
html body #assignment-note-dialog .dialog-heading > button:focus-visible { outline: 2px solid var(--church-green); outline-offset: 3px; }
html body #assignment-note-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-size: .95rem; }

#open-team-contact-sheet { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 14px; text-decoration: none; }

/* Team: current presence and dated assignments are separate views. */
html body #live-dialog .dialog-heading { padding-bottom: 16px; }
html body #live-dialog .dialog-heading > div { width: 100%; }
html body #live-dialog .team-view-toggle { display: flex; gap: 4px; margin: 14px 0 10px; padding: 3px; border-radius: 11px; background: color-mix(in srgb, var(--phone-text) 5%, var(--phone-card)); }
html body #live-dialog .team-view-toggle button { flex: 1; min-width: 0; min-height: 44px; padding: 8px; border: 0; border-radius: 8px; font: inherit; font-size: .85rem; font-weight: 750; background: transparent; color: var(--phone-muted); }
html body #live-dialog .team-view-toggle button[aria-pressed="true"] { background: var(--phone-text); color: var(--phone-card); }
html body #live-dialog .team-view-toggle button:focus-visible { outline: 2px solid var(--phone-text); outline-offset: 2px; }
html body #live-dialog .team-now-list { padding: 0 20px 20px; }
html body #live-dialog .team-now-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) fit-content(50%); align-items: center; gap: 8px; min-height: 52px; padding: 6px 0; box-sizing: border-box; border-bottom: 1px solid var(--phone-line, #d7e1da); }
html body #live-dialog .team-now-row > .team-photo-avatar { width: 32px; height: 32px; min-width: 32px; font-size: .7rem; }
html body #live-dialog .team-now-details { min-width: 0; text-align: left; color: var(--phone-text); }
html body #live-dialog .team-now-details > span,
html body #live-dialog .team-now-details > .coverage-person-message { display: block; width: 100%; min-width: 0; padding: 0; margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.35; color: var(--phone-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #live-dialog .team-now-details > .coverage-person-message { min-height: 44px; }
html body #live-dialog .team-now-location { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; text-align: right; }
html body #live-dialog .team-now-location-age { flex: 0 0 auto; color: var(--phone-muted); font-size: .7rem; font-weight: 450; line-height: 1.35; font-variant-numeric: tabular-nums; white-space: nowrap; }
html body #live-dialog .team-now-location small { display: block; min-width: 0; color: var(--phone-text); font-size: 1rem; font-weight: 850; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #live-dialog .team-now-location em { display: none; }
html body #live-dialog [hidden] { display: none !important; }


/* Primary destinations are pages within the desktop frame, not overlays. */
@media(min-width:760px){
 body.shared-app-active .shared-shell{width:min(1200px,calc(100% - 40px));padding:0;background:var(--theme-canvas)}
 #app-view>:not(.app-navigation-header):not(.app-bottom-navigation){width:min(430px,100%);margin-inline:auto;box-sizing:border-box}
 .shared-shell:has(.nav-destination[open]) #app-view>:not(.app-navigation-header):not(.app-bottom-navigation){display:none}
 .shared-shell>.operation-dialog.nav-destination[open]{position:relative;inset:auto;z-index:auto;width:100%;height:auto;min-height:360px;max-height:none;margin:20px auto 0;overflow:visible;box-shadow:none;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface);color:var(--theme-text)}
 .shared-shell>.nav-destination .dialog-heading{position:static;background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
 .shared-shell:has(.nav-destination[open]) #app-view>.app-navigation-header{position:relative;z-index:2}
 #app-view>.shared-header .brand-version-lockup{visibility:hidden}
}

@media(min-width:760px){#app-view.sunday-screen{padding-inline:0}}
@media(min-width:760px){
 .shared-shell:has(.nav-destination[open]) #app-view{min-height:0;padding-bottom:0}
 .shared-shell:has(.nav-destination[open]) #app-view>:not(.app-navigation-header):not(.app-bottom-navigation){display:none!important}
}

@media(min-width:760px){html body #live-dialog .team-view-toggle{max-width:480px}html body #live-dialog .coverage-team-toggle{max-width:480px}}

/* Command requests occupy a complete Home row, including the six-column phone grid. */
#command-member-requests { grid-column: 1 / -1; min-width: 0; width: 100%; }
#command-member-requests .command-home-request { margin: 0 0 12px; padding: 16px; border-width: 1px; border-left-width: 4px; overflow-wrap: anywhere; }
#command-member-requests .command-home-request h2 { font-size: 22px; line-height: 1.2; margin: 10px 0; }
#command-member-requests .command-home-request p { margin: 10px 0; font-size: 15px; line-height: 1.45; }
#command-member-requests .command-home-request summary { padding: 12px 0; font-size: 14px; }
#command-member-requests .command-home-request select { max-width: 100%; }
#command-member-requests .command-home-responses button { flex: 1 1 120px; min-height: 44px; font-size: 14px; }

/* Phone administrators use activity directly; the full desk remains on desktop. */
@media (max-width: 759px) { #desk-header-status { display: none !important; } }
@media (min-width: 760px) { #account-recent-activity { display: none !important; } }

html body .app-release > summary { cursor: pointer; list-style: none; }
html body .app-release > summary::-webkit-details-marker { display: none; }
html body .app-release-panel {
  position: fixed; inset: max(96px, env(safe-area-inset-top)) auto auto 50%;
  transform: translateX(-50%); z-index: 1000; box-sizing: border-box;
  width: min(340px, calc(100vw - 32px)); max-height: calc(100dvh - 128px); overflow: auto;
  padding: 18px; border: 1px solid var(--ds-color-border, #b8cbbd); border-radius: 18px;
  background: var(--ds-color-surface, #fff); color: var(--ds-color-text, #183c2e);
  box-shadow: 0 12px 40px #0003; text-align: left; white-space: normal;
  font-size: 14px; font-weight: 400; line-height: 1.5; letter-spacing: normal;
}
html body .app-release-panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; border: 0; background: none; }
html body .app-release-panel strong { font-size: 18px; font-weight: 700; white-space: normal; }
html body .app-release-panel small { display: block; margin: 2px 0 12px; font-size: 12px; font-weight: 400; color: var(--ds-color-text-muted, #65746b); white-space: normal; }
html body .app-release-panel p { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
html body .app-release-panel button { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 25px; line-height: 1; }


/* Issues lifecycle: quieter rows and the existing navy/blue theme. */
html body #issues-log-dialog .issues-tabs { display: flex; gap: 4px; margin: 14px 16px; border-bottom: 1px solid var(--theme-border); }
html body #issues-log-dialog .issues-tabs button { flex: 1; min-width: 0; min-height: 48px; padding: 8px 3px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--theme-muted); font: inherit; font-size: .88rem; font-weight: 700; }
html body #issues-log-dialog .issues-tabs button[aria-selected="true"] { border-bottom-color: var(--issue-action, var(--blue)); color: var(--issue-action, var(--blue)); }
html body #issues-log-dialog .issues-tabs span { margin-left: 3px; font-size: .8rem; }
html body #issues-log-dialog .issues-tabs button:focus-visible { outline: 2px solid var(--issue-action, var(--blue)); outline-offset: 2px; }
html body #issues-log-dialog .issue-card { display: block; margin: 0 16px; padding: 0; border: 0; border-bottom: 1px solid var(--theme-border); background: var(--theme-surface); box-shadow: none; }
html body #issues-log-dialog .issue-card .issue-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 80px; padding: 15px 0; border: 0; background: transparent; text-align: left; color: var(--theme-text); }
html body #issues-log-dialog .issue-row-copy { display: grid; flex: 1; min-width: 0; gap: 5px; }
html body #issues-log-dialog .issue-row strong { color: var(--theme-text) !important; font-size: 1rem; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
html body #issues-log-dialog .issue-row-description { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--theme-text) !important; font-size: .95rem; font-weight: 400; overflow-wrap: anywhere; }
html body #issues-log-dialog .issue-row-meta { color: var(--theme-muted) !important; font-size: .78rem; font-weight: 400; }
html body #issues-log-dialog .issue-row-cue { color: var(--issue-action, var(--blue)) !important; font-size: 1.65rem; }
html body #issues-log-dialog .issue-history-access { border: 0; border-top: 1px solid var(--theme-border); background: var(--theme-surface); padding: 14px 0; margin: 14px 16px; }
html body #issues-log-dialog .issue-history-access h3,
html body #issues-log-dialog .issue-history-summary strong { color: var(--theme-text) !important; }
html body #issues-log-dialog .issue-history-summary span { color: var(--theme-muted) !important; }
html body #issues-log-dialog .issue-history-summary { border-left: 0; border-color: var(--theme-border); padding: 14px 0; }
html body #issues-log-dialog .issue-history-access button,
html body #issue-thread-dialog .thread-admin-actions button,
html body #poi-gallery-detail-dialog .thread-admin-actions button,
html body #incident-detail-dialog .thread-admin-actions button { min-height: 48px; padding: 10px 12px; border: 1px solid var(--issue-action, var(--blue)); background: var(--theme-surface); color: var(--issue-action, var(--blue)); font: inherit; font-weight: 700; }
html body #issue-thread-dialog .thread-admin-actions .close-report-action { border-color: var(--theme-border); color: var(--theme-text); }
html body #report-resolution-dialog .report-resolution-confirm { display: flex; align-items: center; gap: 12px; min-height: 48px; }
html body #report-resolution-dialog .report-resolution-confirm input { flex: 0 0 22px; width: 22px; height: 22px; }
html body #report-resolution-dialog #report-resolution-error:empty { display: none; }
html body #issues-log-dialog [hidden], html body #report-resolution-dialog [hidden] { display: none !important; }
html body .sunday-screen .assignment-home-surface #active-issue-count { display: none !important; }

html body #issues-log-dialog .issue-level-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--gray-600); }
html body #issues-log-dialog .issue-level-green .issue-level-dot { background: #3e7a3a; }
html body #issues-log-dialog .issue-level-yellow .issue-level-dot { background: #d9a514; }
html body #issues-log-dialog .issue-level-red .issue-level-dot { background: #a71930; }

html body :is(#issues-log-dialog, #issue-thread-dialog, #report-resolution-dialog, #incident-detail-dialog, #poi-gallery-detail-dialog) { --issue-action: var(--blue); }
html[data-theme="dark"] body :is(#issues-log-dialog, #issue-thread-dialog, #report-resolution-dialog, #incident-detail-dialog, #poi-gallery-detail-dialog) { --issue-action: color-mix(in srgb, var(--blue) 45%, var(--white)); }
html body #issues-log-dialog .issues-tabs span { color: inherit !important; }
html body #issues-log-dialog .open-poi-gallery { background: var(--theme-surface); border-color: var(--theme-border); }
html body #issues-log-dialog .open-poi-gallery strong { color: var(--theme-text) !important; }
html body #issues-log-dialog .open-poi-gallery small { color: var(--theme-muted) !important; }
html body #issues-log-dialog .open-poi-gallery b { color: var(--issue-action); }
html body #issues-log-dialog .open-poi-gallery-icon { color: var(--white) !important; }

.service-order-language-label { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:12px 0; }
#service-order-language { min-height:44px; padding:8px 12px; font:inherit; border:1px solid var(--border); border-radius:10px; color:var(--text); background:var(--surface); }
.service-order-services { flex-wrap:wrap; }
.service-order-services [hidden] { display:none !important; }
.service-order-dialog .service-order-language-label { color:var(--theme-text, #193d30); }
.service-order-dialog #service-order-language { color:var(--theme-text, #193d30); background:var(--theme-surface, #fff); border-color:var(--theme-border, #cbd8d0); }

/* Reports: the report text leads; receipts and acknowledgments stay secondary. */
html body :is(#issue-dialog, #issues-log-dialog, #issue-thread-dialog, #report-resolution-dialog, #incident-detail-dialog, #poi-gallery-detail-dialog) { --issue-action: #3e7a3a; --report-button: #3e7a3a; --report-warning: #a94f00; }
html[data-theme="dark"] body :is(#issue-dialog, #issues-log-dialog, #issue-thread-dialog, #report-resolution-dialog, #incident-detail-dialog, #poi-gallery-detail-dialog) { --issue-action: #75c77a; --report-warning: #edb277; }
html body :is(#issue-dialog, #issue-thread-dialog) { width: min(540px, calc(100% - 24px)); border: 1px solid var(--theme-border); border-radius: 4px; background: var(--theme-surface); color: var(--theme-text); }
html body :is(#issue-dialog, #issue-thread-dialog) [hidden] { display: none !important; }
html body :is(#issue-dialog, #issue-thread-dialog) :is(button, select, textarea) { font: inherit; }
html body :is(#issue-dialog, #issue-thread-dialog) button { min-height: 48px; border-radius: 0; }
html body :is(#issue-dialog, #issue-thread-dialog) .shared-primary { padding: 10px 14px; border: 1px solid var(--report-button); background: var(--report-button); color: #fff; font-weight: 800; }
html body :is(#issue-dialog, #issue-thread-dialog) :is(button, select, textarea):focus-visible { outline: 2px solid var(--issue-action); outline-offset: 3px; }
html body :is(#issue-dialog, #issue-thread-dialog) .dialog-heading { padding: 10px 16px; border-color: var(--theme-border); background: var(--theme-surface); }
html body #issue-dialog .dialog-heading h2 { font-size: 1.35rem; font-weight: 650; }
html body #issue-dialog .dialog-heading > button { width: 44px; height: 44px; min-height: 44px; border: 0; background: transparent; color: var(--theme-text); }
html body #issue-dialog form > label { padding: 12px 16px 0; color: var(--theme-text); font-weight: 500; }
html body #issue-dialog :is(select, textarea) { border: 1px solid var(--theme-border); border-radius: 0; background: var(--theme-surface-strong); color: var(--theme-text); font-size: 1rem; }
html body #issue-dialog .issue-details-field { padding: 12px 16px 0; color: var(--theme-text); font-weight: 500; }
html body #issue-dialog .issue-details-shell { border-color: var(--theme-border); background: var(--theme-surface-strong); }
html body #issue-dialog .issue-details-shell textarea { min-height: 84px; border: 0; }
html body #issue-dialog .issue-photo-control > button { min-height: 44px; background: transparent; }
html body #issue-dialog .issue-photo-control strong { font-weight: 500; }
html body #issue-dialog .issue-photo-status:empty { display: none; }
html body #issue-dialog .responding-check { grid-template-columns: 20px minmax(0, 1fr); align-items: center; min-height: 44px; padding-top: 8px; font-size: .9rem; }
html body #issue-dialog :is(.responding-check, .red-incident-warning) input[type="checkbox"] { flex: 0 0 20px; width: 20px; min-height: 20px; height: 20px; margin: 0; padding: 0; accent-color: #3e7a3a; }
html body #issue-dialog .incident-level-picker { margin: 14px 16px 0; gap: 7px; }
html body #issue-dialog .incident-level-picker legend { margin-bottom: 8px; color: var(--theme-text); font-size: .9rem; font-weight: 500; }
html body #issue-dialog .incident-level-option { display: flex; justify-content: center; gap: 6px; min-height: 48px; padding: 8px 4px; border: 1px solid var(--theme-border); border-left-width: 4px; border-radius: 0; background: var(--theme-surface-strong); font-size: .78rem; }
html body #issue-dialog .incident-level-option input { position: static; width: 16px !important; height: 16px !important; opacity: 1; accent-color: #3e7a3a; }
html body #issue-dialog .incident-level-option strong { color: var(--theme-text) !important; font-weight: 600; }
html body #issue-dialog .incident-level-green { border-left-color: #3e7a3a; }
html body #issue-dialog .incident-level-yellow { border-left-color: #d9a514; }
html body #issue-dialog .incident-level-red { border-left-color: #a71930; }
html body #issue-dialog .incident-level-option:has(input:checked) { border-color: var(--issue-action); box-shadow: inset 0 0 0 1px var(--issue-action); }
html body #issue-dialog :is(.red-incident-warning, .yellow-incident-notice) { margin: 10px 16px 0; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: .8rem; }
html body #issue-dialog .red-incident-warning { color: var(--phone-danger, #a71930); }
html body #issue-dialog .red-incident-warning label { display: flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; }
html body #issue-dialog .yellow-incident-notice { color: var(--theme-muted); }
html body #issue-dialog .dialog-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin: 16px 0 0; padding: 0 16px 16px; border: 0; }
html body #issue-dialog .dialog-actions > button:first-child { border: 0; background: transparent; color: var(--issue-action); font-size: .9rem; }
html body #issue-thread-dialog .report-thread-heading { gap: 8px; }
html body #issue-thread-dialog .report-thread-heading > button { width: auto; height: auto; padding: 8px 4px; border: 0; background: transparent; color: var(--issue-action); font-size: .8rem; font-weight: 600; }
html body #issue-thread-dialog .report-thread-heading > h2 { margin: 0; flex: 1; color: var(--theme-muted); font-size: .9rem; font-weight: 500; }
html body #issue-thread-dialog .report-thread-content { padding: 12px 16px 16px; }
html body #issue-thread-dialog .report-heading-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
html body #issue-thread-dialog .thread-level-trigger { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 0; border: 0; background: transparent; color: var(--theme-muted); text-align: left; }
html body #issue-thread-dialog .thread-level-trigger:disabled { opacity: 1; }
html body #issue-thread-dialog .thread-level-badge { display: inline-block; padding: 5px 9px; border-left: 4px solid #3e7a3a; background: color-mix(in srgb, #3e7a3a 12%, var(--theme-surface)); color: var(--issue-action); font-size: .8rem; font-weight: 750; }
html body #issue-thread-dialog .thread-level-badge.issue-level-yellow { border-left-color: #d9a514; background: color-mix(in srgb, #d9a514 15%, var(--theme-surface)); color: #775900; }
html body #issue-thread-dialog .thread-level-badge.issue-level-red { border-left-color: #a71930; background: color-mix(in srgb, #a71930 10%, var(--theme-surface)); color: #a71930; }
html[data-theme="dark"] body #issue-thread-dialog .thread-level-badge.issue-level-yellow { color: #edc966; }
html[data-theme="dark"] body #issue-thread-dialog .thread-level-badge.issue-level-red { color: #ffbac3; }
html body #issue-thread-dialog .thread-color-control { margin: 8px 0; padding: 12px; border: 1px solid var(--theme-border); background: var(--theme-surface-strong); }
html body #issue-thread-dialog .thread-color-control legend { float: none; width: auto; margin: 0 0 8px; color: var(--theme-text); font-size: .85rem; text-transform: none; letter-spacing: normal; }
html body #issue-thread-dialog .thread-color-options { border: 1px solid var(--theme-border); border-radius: 0; }
html body #issue-thread-dialog .thread-color-options button { border-right: 1px solid var(--theme-border); background: var(--theme-surface); color: var(--theme-text); }
html body #issue-thread-dialog .thread-color-options .thread-color-green.active { background: #3e7a3a; color: #fff; }
html body #issue-thread-dialog .thread-color-options .thread-color-yellow.active { background: #d9a514; color: #211900; }
html body #issue-thread-dialog .thread-color-options .thread-color-red.active { background: #a71930; color: #fff; }
html body #issue-thread-dialog .red-incident-warning { margin: 8px 0 0; padding: 0; border: 0; background: transparent; color: var(--theme-text); font-size: .8rem; }
html body #issue-thread-dialog #thread-confirm-red { padding: 8px 12px; border: 1px solid #a71930; background: #a71930; color: #fff; }
html body #issue-thread-dialog .thread-summary { padding: 0; border: 0; }
html body #issue-thread-dialog .thread-report-description { margin: 14px 0 10px; color: var(--theme-text); font-size: 1.5rem; font-weight: 650; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; white-space: pre-wrap; }
html body #issue-thread-dialog .thread-report-location { margin: 0; color: var(--theme-text); font-weight: 600; overflow-wrap: anywhere; }
html body #issue-thread-dialog .thread-report-category { display: inline; margin-top: 0; color: var(--theme-muted); font-size: .85rem; font-weight: 400; }
html body #issue-thread-dialog .report-meta { margin: 7px 0; color: var(--theme-muted); font-size: .8rem; font-weight: 400; line-height: 1.45; }
html body #issue-thread-dialog .thread-photo { padding: 8px 0 12px; border: 0; }
html body #issue-thread-dialog .report-receipt-row { position: relative; min-height: 48px; margin-top: 4px; }
html body #issue-thread-dialog .thread-viewers { border: 0; margin: 0; padding: 0; }
html body #issue-thread-dialog .thread-viewers summary { display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 80px); min-height: 48px; padding: 4px 0; color: var(--theme-muted); font-size: .8rem; list-style: none; cursor: pointer; }
html body #issue-thread-dialog .thread-viewers summary::-webkit-details-marker { display: none; }
html body #issue-thread-dialog .thread-viewers summary::after { content: '›'; font-size: 1.25rem; }
html body #issue-thread-dialog .thread-viewers[open] summary::after { transform: rotate(90deg); }
html body #issue-thread-dialog #thread-viewer-list { padding: 0; margin: 0 0 8px; list-style: none; font-size: .8rem; }
html body #issue-thread-dialog #thread-viewer-list li { display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; padding: 7px 0; border-top: 1px solid var(--theme-border); overflow-wrap: anywhere; }
html body #issue-thread-dialog #thread-viewer-list time { color: var(--theme-muted); font-variant-numeric: tabular-nums; }
html body #issue-thread-dialog .thread-thumbs-up { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; padding: 8px 12px; border: 0; background: transparent; color: var(--theme-muted); }
html body #issue-thread-dialog .thread-thumbs-up svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html body #issue-thread-dialog .thread-thumbs-up[aria-pressed="true"] { color: var(--issue-action); }
html body #issue-thread-dialog .report-response { padding: 12px 0 4px; margin: 8px 0 16px; border-top: 1px solid var(--theme-border); border-bottom: 1px solid var(--theme-border); }
html body #issue-thread-dialog #thread-responder { margin: 0 0 12px; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
html body #issue-thread-dialog .thread-status-actions { display: grid; grid-template-columns: 1fr; gap: 5px; padding: 0; }
html body #issue-thread-dialog .thread-status-actions > .shared-primary { min-height: 54px; }
html body #issue-thread-dialog .thread-minor-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html body #issue-thread-dialog .report-quiet { padding: 8px 4px; border: 0; background: transparent; color: var(--issue-action); font-weight: 600; }
html body #issue-thread-dialog .thread-minor-actions button { font-size: .8rem; }
html body #issue-thread-dialog .thread-minor-actions .need-help { grid-column: 2; color: var(--report-warning); }
html body #issue-thread-dialog .thread-message-form { display: grid; gap: 8px; padding: 0; margin-bottom: 16px; }
html body #issue-thread-dialog .thread-message-form label { color: var(--theme-text); font-weight: 500; }
html body #issue-thread-dialog .thread-message-form textarea { min-height: 84px; border-color: var(--theme-border); background: var(--theme-surface-strong); color: var(--theme-text); }
html body #issue-thread-dialog .report-composer-actions { display: flex; justify-content: space-between; gap: 12px; }
html body #issue-thread-dialog .thread-latest-update h3 { margin: 0; color: var(--theme-text); font-size: .9rem; font-weight: 600; }
html body #issue-thread-dialog .thread-message { padding: 0 0 0 12px; margin: 10px 0; border: 0; border-left: 2px solid var(--theme-border); }
html body #issue-thread-dialog .thread-message p { margin: 0 0 4px; color: var(--theme-text); font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
html body #issue-thread-dialog .thread-message span { color: var(--theme-muted); font-size: .78rem; font-weight: 400; }
html body #issue-thread-dialog .thread-history { margin-top: 12px; border-top: 1px solid var(--theme-border); }
html body #issue-thread-dialog .thread-history summary { min-height: 44px; padding: 12px 0; color: var(--theme-muted); font-size: .8rem; cursor: pointer; }
html body #issue-thread-dialog .thread-messages { max-height: none; overflow: visible; border: 0; }
html body #issue-thread-dialog .thread-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin-top: 12px; }
html body #issue-thread-dialog .thread-admin-actions:empty { display: none; }
html body #issue-thread-dialog .thread-admin-actions button { flex: 1; width: auto; font-size: .8rem; font-weight: 600; }
html body :is(#issue-dialog, #issue-thread-dialog) .report-radio-footer { margin: 0; padding: 11px 16px; border-top: 1px solid var(--theme-border); background: var(--theme-surface-strong); color: var(--theme-muted); font-size: .75rem; }
html body #issues-log-dialog .issue-row strong.issue-row-description { font-size: 1.12rem; font-weight: 650; }
html body #issues-log-dialog .issue-row-response { color: var(--theme-text) !important; font-size: .85rem; font-weight: 400; }
@media (max-width: 560px) {
  html body :is(#issue-dialog, #issue-thread-dialog) { width: 100%; max-width: none; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
}

/* Personal event reminder: one small card above the Sunday assignment. */
#home-personal-event { display:block; margin:0 0 6px; padding:6px 10px; min-height:44px; border:1px solid #d8dbce; border-left:4px solid #aa9465; border-radius:10px; background:#faf7ef; color:#19351f; text-decoration:none; }
#home-personal-event[hidden] { display:none !important; }
.home-personal-event-title { display:block; font-size:15px; line-height:1.25; font-weight:800; overflow-wrap:anywhere; }
.home-personal-event-bottom { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:2px 8px; margin-top:2px; }
.home-personal-event-times { font-size:12px; line-height:1.35; font-weight:650; }
.home-personal-event-count { font-size:11px; white-space:nowrap; color:#2d5b29; font-weight:700; margin-left:auto; }
html[data-theme="dark"] #home-personal-event { background:#292b22; border-color:#435147; border-left-color:#a7956b; color:#dcebd7; }
html[data-theme="dark"] .home-personal-event-count { color:#bad7ad; }

#scheduled-check-in-areas { display: contents; }
#scheduled-check-in-areas[hidden] { display: none; }
#scheduled-check-in-areas > label { grid-column: auto; }

.location-check-prompt { grid-column: 1 / -1; margin: 6px 0; padding: 8px 10px; border: 1px solid var(--theme-border, #ccd8ce); border-radius: 10px; background: var(--theme-surface, #f2f6f0); color: var(--theme-text, #173b2a); }
.location-check-prompt[hidden] { display: none; }
.location-check-prompt p { margin: 0 0 5px; font-size: 13px; font-weight: 700; }
.location-check-prompt > div { display: flex; flex-wrap: wrap; gap: 6px; }
.location-check-prompt button { min-height: 44px; padding: 6px 10px; font-size: 13px; }

/* Reported Team areas: compact groups in the existing phone palette. */
html body #live-dialog .team-now-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 20px 12px; }
html body #live-dialog .team-now-toolbar[hidden] { display:none; }
html body #live-dialog .team-now-toolbar select { width:auto; max-width:55%; min-height:44px; padding:6px 24px 6px 10px; font-size:.85rem; color:var(--phone-text); background:var(--theme-surface, #fff); border:1px solid var(--theme-border); border-radius:10px; }
html body #live-dialog #team-now-hint { color:var(--phone-muted); font-size:.7rem; text-align:right; line-height:1.3; }
html body #live-dialog .team-area-group { border:1px solid var(--theme-border); background:var(--theme-surface, #fff); border-radius:12px; margin-bottom:10px; overflow:hidden; }
html body #live-dialog .team-area-own { border-left:4px solid var(--church-green); }
html body #live-dialog .team-area-group > summary { display:flex; align-items:center; gap:8px; min-height:44px; padding:8px 12px; box-sizing:border-box; cursor:pointer; color:var(--phone-text); list-style:none; }
html body #live-dialog .team-area-group > summary::-webkit-details-marker { display:none; }
html body #live-dialog .team-area-group > summary strong { min-width:0; overflow-wrap:anywhere; font-size:.95rem; }
html body #live-dialog .team-area-badge { font-size:.6rem; font-weight:800; text-transform:uppercase; color:var(--phone-text); }
html body #live-dialog .team-area-count { margin-left:auto; font-size:.8rem; color:var(--phone-muted); }
html body #live-dialog .team-area-chevron { transition:transform .15s; }
html body #live-dialog .team-area-group[open] .team-area-chevron { transform:rotate(180deg); }
html body #live-dialog .team-area-people { padding:0 12px 4px; }
html body #live-dialog .team-area-row { min-height:48px; padding:2px 0; }
html body #live-dialog .team-area-row:last-child { border-bottom:0; }
html body #live-dialog .team-now-details { display:flex; align-items:center; gap:5px; }
html body #live-dialog .team-now-details > .coverage-person-message { width:auto; flex:0 1 auto; text-align:left; }
html body #live-dialog .team-area-you { font-size:.65rem; flex:0 0 auto; color:var(--phone-muted); }
html body #live-dialog .team-area-row .team-now-location-age { font-size:.8rem; }

html body #live-dialog .team-area-group .team-now-row { border-bottom-color:var(--theme-border); }
html body #live-dialog .team-now-details > .coverage-person-message span { color:inherit; }

.guest-briefing-shortcut { padding: 16px; }
.guest-briefing-shortcut > a { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; margin-bottom: 18px; }
#quick-briefing-form { display: grid; gap: 10px; }
#quick-briefing-form label { font-weight: 750; }
#quick-briefing-form textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 12px; border: 1px solid var(--line, #c9d4cd); border-radius: 12px; resize: vertical; }
#quick-briefing-status { margin: 0; }

.guest-share-editor { margin: 12px 0; padding: 12px; border: 1px solid var(--theme-border); border-radius: 12px; }.guest-share-editor form { display:grid;gap:12px; }.guest-share-editor textarea { width:100%;box-sizing:border-box;font:inherit; }.guest-share-editor label { display:block; }.guest-share-editor p { font-size: .9rem; }

#prayer-alert-help { display: block; font-size: .8rem; line-height: 1.4; margin-top: 4px; }

#person-location-request-status { margin: 8px 0 14px; font-size: .85rem; line-height: 1.4; }
#requested-location-prompt > small { display: block; margin-bottom: 10px; }
#requested-location-prompt > div { flex-wrap: wrap; }
#requested-location-prompt button { min-height: 44px; }

/* Map-first viewer: two favorite maps, a second-row picker, direct gestures. */
html[data-theme] body .shared-shell > #campus-map-dialog[open]:not(.map-fullscreen){display:flex;flex-direction:column;position:fixed;inset:0 0 var(--map-navigation-height,calc(70px + env(safe-area-inset-bottom)));width:100%;height:auto;min-height:0;max-height:none;margin:0;border:0;border-radius:0;padding:0;overflow:hidden}
html[data-theme] #campus-map-dialog .dialog-heading,html[data-theme] #campus-map-dialog .map-controls,html[data-theme] #campus-map-dialog .map-context,html[data-theme] #campus-map-dialog .map-help,html[data-theme] #campus-map-dialog .campus-map-quick-access>span{display:none}
html[data-theme] #campus-map-dialog .campus-map-access{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:6px 10px;flex-shrink:0;background:var(--theme-surface,#fff)}
html[data-theme] #campus-map-dialog .campus-map-quick-access>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
html[data-theme] #campus-map-dialog .campus-map-quick-access button{min-height:44px;padding:6px 8px;font-size:13px;border-radius:8px;background:var(--theme-surface,#fff);color:var(--theme-text,#172b1c);border:1px solid var(--theme-border,#ccd6cc)}
html[data-theme] #campus-map-dialog .campus-map-quick-access button.active{background:var(--visual-brand,#245d3e);color:#fff;border-color:var(--visual-brand,#245d3e)}
html[data-theme] #campus-map-dialog .all-maps-picker{width:100%;margin:0}
html[data-theme] #campus-map-dialog .all-maps-picker summary{min-height:44px;padding:8px 12px;font-size:13px;border-radius:8px}
html[data-theme] #campus-map-dialog .all-maps-picker summary small{display:none}
html[data-theme] #campus-map-dialog .all-maps-picker summary::after{content:'⌄'}
html[data-theme] #campus-map-dialog .all-maps-picker[open] summary::after{content:'⌃'}
html[data-theme] #campus-map-dialog .all-maps-picker[open] .campus-map-picker{margin:6px 0 0}
html[data-theme] #campus-map-dialog:not(.map-fullscreen) .campus-map-viewport{flex:1;min-height:0;height:auto;touch-action:none;background:var(--theme-surface,#fff)}
html[data-theme] body:has(#campus-map-dialog[open]) .app-bottom-navigation{display:grid}
.map-rotate-hint{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:4;max-width:calc(100% - 24px);padding:9px 14px;border-radius:20px;background:#183c2eee;color:#fff;font:500 12px/1.4 system-ui;text-align:center;pointer-events:none;animation:map-hint-fade 5s forwards}
@keyframes map-hint-fade{0%,75%{opacity:1}100%{opacity:0;visibility:hidden}}
@media(orientation:landscape),(min-width:760px){.map-rotate-hint{display:none}}
@media(prefers-reduced-motion:reduce){.map-rotate-hint{animation:none}}

/* Maps keeps one navigation bar when a phone rotates past the desktop breakpoint. */
html[data-theme] body:has(#campus-map-dialog[open]) .app-navigation-header{display:none!important}
html[data-theme] body .shared-shell > #campus-map-dialog[open]:not(.map-fullscreen){z-index:40}
html[data-theme] body:has(#campus-map-dialog[open]) .app-bottom-navigation{width:100%;max-width:none;border-radius:0}
@media(orientation:landscape) and (max-height:600px){
html[data-theme] body:has(#campus-map-dialog[open]) .app-bottom-navigation{padding:4px max(10px,env(safe-area-inset-left)) calc(4px + env(safe-area-inset-bottom))}
html[data-theme] body:has(#campus-map-dialog[open]) .app-bottom-navigation-item{min-height:44px;grid-template-rows:22px 2px 12px;gap:2px}
html[data-theme] body:has(#campus-map-dialog[open]) .app-bottom-navigation-item svg{width:20px;height:20px}
html[data-theme] body:has(#campus-map-dialog[open]) .app-nav-label{font-size:10px;line-height:12px}
html[data-theme] body:has(#campus-map-dialog[open]) .app-bottom-navigation-item.active::before{width:32px;height:28px;top:0}
}
/* Landscape phone Maps uses the full screen; rotate upright to restore tabs. */
@media(orientation:landscape) and (max-height:600px){
html[data-theme] body:has(#campus-map-dialog[open]) .app-bottom-navigation{display:none!important}
html[data-theme] body .shared-shell > #campus-map-dialog[open]:not(.map-fullscreen){bottom:0}
}
body:has(#campus-map-dialog[open]) #dlr-demo-bar{display:none}

/* Shared report combination review and preserved-original links. */
.issue-combine-dialog { width: min(100% - 24px, 580px); max-height: calc(100dvh - 24px); overflow-y: auto; }
.issue-combine-dialog fieldset { margin: 12px 0; padding: 10px; border: 1px solid var(--theme-border, #ccc); border-radius: 8px; min-width: 0; }
.issue-combine-option { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: start; padding: 10px 0; min-height: 48px; border-bottom: 1px solid var(--theme-border, #ccc); }
.issue-combine-option:last-child { border-bottom: 0; }
.issue-combine-option input { width: 20px; height: 20px; margin: 4px 0 0; }
.issue-combine-option span, .issue-combine-review article { display: grid; gap: 4px; overflow-wrap: anywhere; }
.issue-combine-option small, .issue-combine-review small { font-size: .8rem; color: var(--theme-muted, #666); }
.issue-combine-review { margin: 12px 0; padding: 12px; border: 1px solid var(--theme-border, #ccc); border-radius: 8px; }
.issue-combine-review article { margin: 10px 0; }
.thread-combined-reports { margin: 14px 0; border-top: 1px solid var(--theme-border, #ccc); padding-top: 12px; }
.thread-combined-reports h3 { margin: 0 0 8px; font-size: .95rem; }
.thread-combined-reports button { display: grid; gap: 4px; width: 100%; min-height: 48px; margin: 6px 0; padding: 10px; text-align: left; border: 1px solid var(--theme-border, #ccc); border-radius: 8px; background: var(--theme-surface-strong, #fff); color: var(--theme-text, #152c48); overflow-wrap: anywhere; }
.thread-combined-reports small { font-size: .8rem; }

.issue-combine-dialog #issue-combine-edit { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--theme-text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }

/* Compact Home follow-up group; active reports remain immediately visible. */
.home-ongoing-group > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; cursor: pointer; list-style: none; color: var(--phone-text); font-size: .73rem; font-weight: 750; border-top: 1px solid var(--home-hairline); }
.home-ongoing-group > summary::-webkit-details-marker { display: none; }
.home-ongoing-group > summary:focus-visible { outline: 2px solid var(--home-blue); outline-offset: -2px; }
.home-ongoing-cue { color: var(--phone-muted); font-size: 1.15rem; }
.home-ongoing-group[open] .home-ongoing-cue { transform: rotate(90deg); }

/* Direct map chooser below the two quick map buttons. */
html[data-theme] #campus-map-dialog .campus-map-picker{display:block;width:100%;min-width:0;margin:0;padding:0}
html[data-theme] #campus-map-dialog .campus-map-picker>span{display:none}
html[data-theme] #campus-map-dialog .campus-map-picker select{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:44px;border-radius:8px;padding:8px 36px 8px 12px;font-size:13px}

/* Home photos use independent controls: no nested issue/photo buttons. */
.home-issue-open { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.home-issue-open:focus-visible, .home-issue-photo:focus-visible { outline: 2px solid var(--theme-text, #245e42); outline-offset: 3px; }
.home-issue-photos { display: flex; gap: 4px; max-width: 104px; overflow-x: auto; flex: 0 0 auto; }
.home-issue-photo { position: relative; display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 60px; padding: 0; overflow: hidden; border: 1px solid var(--home-hairline); border-radius: 5px; background: var(--gray-50); color: var(--phone-muted); cursor: pointer; }
.home-issue-photo img { width: 100%; height: 100%; object-fit: contain; }
.home-issue-photo img[hidden] { display: none; }
.home-issue-photo span { position: absolute; bottom: 0; inset-inline: 0; padding: 1px 2px; background: rgb(0 0 0 / 70%); color: white; font-size: .6rem; text-align: center; }
.home-issue-with-photos > .home-active-issue-copy { align-self: stretch; align-content: center; }
.home-issue-with-photos > .home-active-issue-cue { min-width: 24px; min-height: 44px; text-align: center; }
.issue-photo-dialog.home-photo-fullscreen { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
.issue-photo-dialog.home-photo-fullscreen > img { width: 100%; height: 100%; max-height: 100dvh; object-fit: contain; }
.issue-photo-dialog.home-photo-fullscreen > span { height: 100%; }
.issue-photo-dialog.home-photo-fullscreen > button { top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); }

.home-issue-photo span[hidden] { display: none; }
.home-photo-navigation { position: absolute; bottom: max(8px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 4px 8px; border-radius: 24px; background: rgb(0 0 0 / 80%); color: white; }
.home-photo-navigation[hidden] { display: none; }
.home-photo-navigation button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: white; font-size: 1.7rem; }
.home-photo-navigation button:disabled { opacity: .35; }
.home-photo-navigation span { min-width: 32px; text-align: center; font-size: .85rem; }

/* Attention is separate from incident severity; text remains clear without color. */
.issue-attention-badge { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 6px; font-size: .65rem; font-weight: 750; line-height: 1.5; vertical-align: middle; color: var(--phone-text, #173c2a); white-space: nowrap; }
.issue-attention-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3c8537; flex: none; }
.issue-attention-preview { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: .72rem; color: var(--phone-muted, #526258); overflow-wrap: anywhere; }
.issue-row-copy, .home-active-issue-copy { min-width: 0; }
.issues-tabs { flex-wrap: wrap; }

.issue-attention-arrived::before { animation: issue-attention-arrival .8s ease-in-out 3; }
@keyframes issue-attention-arrival { 50% { opacity: .35; box-shadow: 0 0 0 3px rgb(60 133 55 / 18%); } }
@media (prefers-reduced-motion: reduce) { .issue-attention-arrived::before { animation: none; } }

.issue-attention-preview .issue-attention-badge { margin-inline-start: 0; }

/* Approved beta issue activity. Stable configurations retain their existing appearance. */
html[data-issue-activity="true"] .issue-update-options{margin:8px 0 12px}
html[data-issue-activity="true"] .issue-update-options label{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:700}
html[data-issue-activity="true"] .issue-update-options input{width:21px;height:21px;accent-color:#147842}
html[data-issue-activity="true"] .issue-update-options small{display:block;font-size:12px}
html[data-issue-activity="true"] .issue-attention-preview{display:block;margin-top:8px;font-size:.875rem;line-height:1.4;font-weight:600;white-space:normal;overflow-wrap:anywhere}
html[data-issue-activity="true"] body :is(.issue-card,.issue-history-summary).issue-level-yellow{border-left-color:#2977a8}
html[data-issue-activity="true"] body #issues-log-dialog .issue-level-yellow .issue-level-dot{background:#2977a8!important}
html[data-issue-activity="true"] .home-active-issue.issue-level-yellow .home-active-issue-level{background:#2977a8!important}
html[data-issue-activity="true"] body #issue-thread-dialog .thread-level-badge.issue-level-yellow{border-left-color:#2977a8;background:var(--theme-surface);color:#2977a8}
html[data-issue-activity="true"][data-theme="dark"] body #issue-thread-dialog .thread-level-badge.issue-level-yellow{color:#86c6ef}
html[data-issue-activity="true"] body #issue-thread-dialog .thread-color-options .thread-color-yellow{color:#205b83;border-color:#2977a8;background:var(--theme-surface)}
html[data-issue-activity="true"] body #issue-thread-dialog .thread-color-options .thread-color-yellow.active{background:#205b83;color:#fff}
html[data-issue-activity="true"]:not([data-theme="dark"]) body :is(#issue-dialog,#issue-thread-dialog,#issues-log-dialog,#incident-detail-dialog,#home-issue-panel){--theme-surface:#fff;--theme-surface-strong:#fff;--gray-50:#fff;--home-panel:#fff;background-color:#fff}
html[data-issue-activity="true"]:not([data-theme="dark"]) body :is(#issue-dialog,#issue-thread-dialog,#issues-log-dialog,#incident-detail-dialog) :is(textarea,input,select,.thread-latest-update,.thread-message,.thread-summary,.thread-history,.issue-card){background-color:#fff}
html[data-issue-activity="true"]:not([data-theme="dark"]) body #issue-thread-dialog .thread-level-badge{background:#fff!important}
html[data-issue-activity="true"]:not([data-theme="dark"]) body #issue-thread-dialog input::file-selector-button{background:#fff;color:var(--theme-text);border:1px solid var(--theme-border);border-radius:4px;padding:4px 8px}

html[data-issue-activity="true"] .issue-update-timestamp{font-size:12px;font-weight:500;color:inherit;opacity:1;white-space:nowrap}
