:root { color-scheme: light; font-family: ui-sans-serif, system-ui, sans-serif; color: #18332f; background: #f4f7f5; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.6; }
a { color: #136b56; text-underline-offset: 3px; }
.site-header { min-height: 76px; background: #fff; border-bottom: 1px solid #dfe8e2; padding: 16px max(24px, calc((100vw - 1080px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
.container { max-width: 1128px; margin: 0 auto; padding: 48px 24px; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; letter-spacing: -.035em; margin: 8px 0 16px; }
h2 { font-size: 1.25rem; margin: 20px 0 12px; }
p { margin: 0 0 16px; }
.eyebrow { color: #49695f; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 750; margin: 0; }
.muted { color: #5b6f67; }
.page-heading { margin-bottom: 32px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { border: 1px solid #dfe8e2; border-radius: 16px; background: #fff; padding: 32px; box-shadow: 0 4px 16px #18332f04; }
.auth-card { max-width: 460px; margin: 24px auto; }
.badge { display: inline-block; background: #e2f4eb; color: #1f6549; padding: 4px 12px; border-radius: 999px; font-weight: 650; font-size: .75rem; }
.badge-neutral { color: #52615c; background: #eef2ef; }
label { display: block; margin: 20px 0 6px; font-size: .9rem; font-weight: 650; }
input:not([type=submit]) { width: 100%; min-height: 46px; border: 1px solid #b9c9bf; border-radius: 8px; background: #fff; color: inherit; font: inherit; padding: 10px 12px; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #7ebcab; outline-offset: 3px; }
input[type=submit], button { min-height: 44px; border: 1px solid transparent; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 650; color: #fff; background: #146650; cursor: pointer; }
input[type=submit] { width: 100%; margin-top: 24px; }
input[type=submit]:hover, button:hover { background: #104f3f; }
.button-secondary { color: #244c3d; background: #fff; border-color: #c7d6cc; font-size: .875rem; }
.button-secondary:hover { background: #edf4ef; }
.form-link { display: inline-block; margin-top: 20px; font-size: .9rem; }
.flash { border-radius: 10px; padding: 14px 20px; margin-bottom: 24px; }
.notice { background: #e2f4eb; color: #1f6549; }
.alert { background: #fcecea; color: #903a30; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } .container { padding: 32px 20px; } .card { padding: 24px; } .site-header { padding: 16px 20px; } }
.schedule-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.sync-info { text-align: right; font-size: .8rem; padding-top: 8px; }
.sync-info p { margin: 10px 0; }
.schedule-filters { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 12px 16px; background: #fff; border: 1px solid #dfe8e2; border-radius: 12px; padding: 8px 20px 20px; }
.schedule-filters label { margin-top: 8px; }
.schedule-filters select { width: 100%; min-height: 46px; border: 1px solid #b9c9bf; border-radius: 8px; background: #fff; color: inherit; font: inherit; padding: 8px; }
.search-filter { grid-column: span 3; }
.filter-actions { grid-column: span 2; display: flex; align-items: flex-end; gap: 18px; }
.filter-actions input[type=submit] { width: auto; margin-top: 0; }
.filter-actions a { line-height: 44px; }
.schedule-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0; border: 1px solid #dfe8e2; border-radius: 12px; background: #fff; }
.schedule-summary > div { display: flex; flex-direction: column; padding: 16px 24px; }
.schedule-summary > div + div { border-left: 1px solid #dfe8e2; }
.summary-value { font-size: 1.8rem; font-weight: 750; line-height: 1.2; }
.schedule-summary .muted { font-size: .8rem; }
.table-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.table-heading p { font-size: .85rem; }
.schedule-table-wrapper { overflow-x: auto; border: 1px solid #dfe8e2; border-radius: 12px; background: #fff; }
.schedule-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
.schedule-table th { background: #eaf0ec; padding: 14px 20px; font-weight: 700; white-space: nowrap; }
.schedule-table td { padding: 18px 20px; border-top: 1px solid #e4ebe6; vertical-align: top; }
.schedule-table th:first-child { width: 28%; }
.schedule-table th:nth-child(2) { width: 27%; }
.schedule-table th:nth-child(3) { width: 25%; }
.schedule-table tr:hover td { background: #f9fbfa; }
.cell-detail { display: block; color: #62766c; font-size: .8rem; margin-top: 4px; overflow-wrap: anywhere; }
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.status-confirmed { background: #e2f4eb; color: #1f6549; }
.status-unconfirmed, .status-mixed { background: #fff1d7; color: #79530e; }
.status-declined { background: #fcecea; color: #903a30; }
.status-needed { background: #fbe6e6; color: #9a3434; }
.status-unknown { background: #eef2ef; color: #52615c; }
.status-row-declined .assigned-name { text-decoration: line-through; color: #67766e; }
.notification-unsent { color: #8a650e; }
.empty-state { text-align: center; padding: 56px 24px !important; }
.pagination { display: flex; justify-content: flex-end; gap: 24px; margin: 20px 0; }
.schedule-footnote { font-size: .8rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
@media (max-width: 800px) { .schedule-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .search-filter { grid-column: span 2; } .schedule-heading { flex-direction: column; gap: 0; } .sync-info { text-align: left; } .schedule-table { min-width: 740px; } }
@media (max-width: 480px) { .schedule-summary { grid-template-columns: repeat(2, 1fr); } .schedule-summary > div { padding: 16px; } .schedule-summary > div:nth-child(3) { border-left: 0; } }
.container-wide { max-width: none; padding: 36px 32px; }
.site-nav { display: flex; gap: 8px; margin-left: auto; font-size: .875rem; }
.site-nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.site-nav a[aria-current=page] { background: #e2f1e8; color: #174f3c; font-weight: 700; }
.year-navigation { display: flex; align-items: center; gap: 24px; padding-top: 12px; white-space: nowrap; }
.year-navigation a { text-decoration: none; font-size: .9rem; }
.matrix-filters { grid-template-columns: 100px minmax(200px, 1fr) minmax(180px, 1fr) minmax(200px, 1fr) auto; }
.matrix-filter-submit { align-self: end; }
.matrix-filter-submit input[type=submit] { margin: 0; }
.matrix-checkbox { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; font-weight: 400; font-size: .85rem; }
.matrix-checkbox input[type=checkbox] { width: 16px; min-height: 16px; height: 16px; accent-color: #146650; }
.matrix-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 12px; flex-wrap: wrap; }
.matrix-toolbar p { font-size: .85rem; margin: 0; }
.matrix-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .75rem; }
.matrix-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.legend-confirmed::before { background: #2e875f; }
.legend-unconfirmed::before { background: #c18a23; }
.legend-declined::before { background: #b96e54; }
.legend-needed::before { background: #c44a41; }
.staffing-matrix { background: #fff; border: 1px solid #cfdcd3; border-radius: 12px; overflow: hidden; }
.matrix-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 18px; border-bottom: 1px solid #dbe4de; background: #f9fbf9; }
.matrix-caption p { margin: 0; font-size: .8rem; color: #526b5e; }
.matrix-caption button { font-size: .8rem; white-space: nowrap; min-height: 36px; padding: 6px 12px; }
.matrix-viewport { max-height: 68vh; overflow: auto; position: relative; isolation: isolate; scrollbar-gutter: stable; }
.matrix-table { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: .8rem; line-height: 1.4; --group-height: 52px; }
.matrix-table th, .matrix-table td { border-right: 1px solid #dbe3dd; border-bottom: 1px solid #dbe3dd; text-align: left; }
.matrix-team-headings th { position: sticky; top: 0; z-index: 4; background: #e6ede7; height: var(--group-height); padding: 10px 14px; color: #354f40; font-size: .75rem; }
.matrix-team-headings .cell-detail { font-weight: 400; font-size: .7rem; margin-top: 2px; }
.matrix-role-headings th { position: sticky; top: var(--group-height); z-index: 4; background: #f0f4f0; padding: 12px 14px; height: 56px; min-width: 185px; max-width: 240px; vertical-align: top; }
.matrix-team-headings .matrix-week-heading { position: sticky; left: 0; top: 0; z-index: 6; min-width: 250px; width: 250px; background: #e2eae3; font-size: .85rem; }
.matrix-week-label { position: sticky; left: 0; z-index: 2; width: 250px; min-width: 250px; background: #fff; padding: 12px 16px; font-weight: 550; vertical-align: top; box-shadow: 3px 0 5px #193b2510; }
.matrix-week-label > a { color: #304f3d; text-decoration: none; }
.matrix-week-label .cell-detail { font-size: .7rem; font-weight: 400; }
.matrix-cell { min-width: 185px; max-width: 240px; padding: 10px 14px; vertical-align: top; background: #fff; }
.matrix-entry + .matrix-entry { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #d7dfd7; }
.matrix-entry-name::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #97a69c; margin-right: 6px; vertical-align: middle; }
.matrix-entry-confirmed .matrix-entry-name { color: #276345; }
.matrix-entry-confirmed .matrix-entry-name::before { background: #2e875f; }
.matrix-entry-declined .matrix-entry-name { color: #a15842; text-decoration: line-through; }
.matrix-entry-declined .matrix-entry-name::before { background: #b96e54; }
.matrix-entry-unconfirmed .matrix-entry-name, .matrix-entry-mixed .matrix-entry-name { color: #86621b; }
.matrix-entry-unconfirmed .matrix-entry-name::before, .matrix-entry-mixed .matrix-entry-name::before { background: #c18a23; }
.matrix-entry-needed .matrix-entry-name { color: #aa3e35; font-weight: 700; }
.matrix-entry-needed .matrix-entry-name::before { background: #c44a41; }
.matrix-entry-plan { display: block; color: #6e7d73; font-size: .65rem; line-height: 1.3; margin: 3px 0 0 12px; }
.matrix-cell-needed { background: #fff0ed; }
.matrix-cell-declined { background: #fff7f1; }
.matrix-cell-unconfirmed, .matrix-cell-mixed { background: #fffbef; }
.matrix-blank { color: #c0cbc3; }
.matrix-no-plans .matrix-week-label, .matrix-no-plans .matrix-cell { background: #f7f9f7; }
.matrix-no-plans .matrix-week-label > a { color: #7a8c7e; }
.matrix-current-week .matrix-week-label { box-shadow: inset 4px 0 #2c8059, 3px 0 5px #193b2510; background: #eaf5ed; }
.matrix-current-label { display: block; color: #276345; font-size: .68rem; font-weight: 700; margin-top: 3px; }
.matrix-empty { padding: 12px 20px; color: #74857a; min-width: 300px; }
.matrix-footer { margin-top: 16px; font-size: .75rem; }
.matrix-footer p { margin-bottom: 6px; }
@media (max-width: 1000px) { .matrix-filters { grid-template-columns: 100px repeat(2, minmax(160px, 1fr)); } .matrix-filter-submit { align-self: end; } }
@media (max-width: 640px) { .container-wide { padding: 24px 16px; } .site-header { flex-wrap: wrap; gap: 10px; } .site-nav { margin-left: 0; } .brand { width: 100%; } .matrix-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .matrix-caption { flex-direction: column; align-items: flex-start; gap: 8px; } .matrix-week-label, .matrix-team-headings .matrix-week-heading { min-width: 150px; width: 150px; } .matrix-cell, .matrix-role-headings th { min-width: 160px; } .matrix-week-label { padding: 10px; } }
.matrix-cell-content { max-height: 112px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.matrix-more { display: block; color: #73877b; font-size: .65rem; margin-top: 6px; }
.container-wide .page-heading { margin-bottom: 20px; }
.container-wide h1 { font-size: clamp(1.8rem, 3vw, 2.2rem); }
.matrix-filters { padding-bottom: 12px; }
.matrix-filters select, .matrix-filters input:not([type=checkbox]):not([type=hidden]):not([type=submit]) { min-height: 40px; padding-top: 7px; padding-bottom: 7px; }
.matrix-checkbox { margin-top: 2px; }
.weekly-filters { grid-template-columns: 160px minmax(170px, 1fr) minmax(170px, 1fr) 180px minmax(180px, 1fr) auto; }
.weekly-filter-actions { display: flex; align-items: end; gap: 14px; }
.weekly-filter-actions input[type=submit] { margin: 0; width: auto; }
.weekly-filter-actions a { line-height: 44px; }
.weekly-navigation { display: flex; gap: 24px; justify-content: space-between; margin: 20px 0; font-size: .9rem; }
.weekly-reminder-note { border: 1px solid #d9e4dc; border-radius: 10px; background: #eaf1ec; padding: 14px 20px; font-size: .85rem; }
.weekly-reminder-note p { margin: 4px 0 0; color: #526b5e; }
.weekly-plan { margin: 36px 0 48px; }
.weekly-plan > .table-heading { border-bottom: 1px solid #d9e4dc; margin-bottom: 18px; }
.weekly-plan h2 { margin: 4px 0 12px; font-size: 1.5rem; }
.weekly-plan h3 { font-size: 1rem; margin: 20px 0 10px; }
.weekly-plan .table-heading p { margin-bottom: 12px; }
.weekly-hint { font-size: .85rem; }
.weekly-table th:first-child, .weekly-table th:nth-child(2), .weekly-table th:nth-child(3) { width: auto; }
.weekly-table td, .weekly-table tbody th { padding: 14px 18px; }
.team-overview tbody th { background: #fff; border-top: 1px solid #e4ebe6; text-align: left; white-space: normal; }
.team-overview tbody td { vertical-align: middle; }
.team-overview .weekly-selected-team > * { background: #eaf5ed; }
.follow-up-table { min-width: 980px; }
.follow-up-table td:nth-child(5) { min-width: 85px; }
.follow-up-table td:last-child { min-width: 180px; }
.team-switcher-wrap { margin: 22px 0 8px; }
.team-switcher-label { display: block; margin-bottom: 8px; color: #526b5e; font-size: .78rem; font-weight: 700; }
.team-switcher { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.team-tab { display: flex; flex: 0 0 auto; flex-direction: column; justify-content: center; gap: 5px; min-height: 64px; min-width: 110px; max-width: 210px; padding: 9px 13px; border: 1px solid #d5e0d8; border-radius: 10px; background: #fff; color: #315644; text-decoration: none; font-size: .82rem; font-weight: 650; line-height: 1.25; }
.team-tab:hover { background: #f3f8f4; border-color: #9bb9a6; }
.team-tab.is-selected { background: #e5f1e9; border-color: #3c8161; box-shadow: inset 0 0 0 1px #3c8161; color: #194c38; }
.team-tab-counts { display: flex; flex-wrap: wrap; gap: 4px; }
.tab-count { border-radius: 999px; padding: 2px 6px; font-size: .66rem; font-weight: 650; white-space: nowrap; }
.tab-count-pending { background: #fff0d3; color: #785511; }
.tab-count-open { background: #fbe7e5; color: #91372e; }
.tab-count-clear { background: #edf3ee; color: #53685a; }
.team-selection-hint { margin: 5px 0 12px; font-size: .77rem; }
.weekly-sheet { table-layout: fixed; width: max-content; border-collapse: separate; border-spacing: 0; font-size: .8125rem; line-height: 20px; }
.weekly-sheet-wrapper { max-height: min(72vh, 820px); overflow: auto; overscroll-behavior: contain; }
.weekly-sheet th { position: sticky; top: 0; z-index: 2; height: 32px; padding: 0 !important; border-right: 1px solid #cedbd2; border-bottom: 1px solid #c4d4c9; background: #eaf0ec; white-space: nowrap; font-weight: 650; }
.weekly-sheet th > span { display: block; height: 31px; overflow: hidden; padding: 0 25px 0 10px; line-height: 31px; text-overflow: ellipsis; }
.weekly-sheet th:nth-child(5) > span { padding-right: 54px; }
.sheet-filter { position: absolute; top: calc(50% - 12px); right: 16px; z-index: 3; }
.sheet-filter summary { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 4px; color: #526b5e; cursor: pointer; list-style: none; }
.sheet-filter summary::-webkit-details-marker { display: none; }
.sheet-filter summary:hover, .sheet-filter[open] summary, .sheet-filter summary:focus-visible { background: #dce9e0; outline: none; }
.sheet-filter svg { width: 14px; height: 14px; fill: currentColor; }
.sheet-filter-menu { position: fixed; top: 0; left: 0; z-index: 20; display: grid; width: 190px; max-height: min(70vh, 360px); overflow-y: auto; padding: 5px; border: 1px solid #d4e0d8; border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgb(26 48 36 / 16%); }
.sheet-filter-menu a { padding: 8px 10px; border-radius: 5px; color: #293d32; font-size: .82rem; text-decoration: none; }
.sheet-filter-menu a:hover, .sheet-filter-menu a.is-selected { background: #eaf2ec; color: #194c38; }
.column-resize-handle { position: absolute; top: 0; right: 0; width: 12px; min-width: 12px; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: col-resize; touch-action: none; }
.column-resize-handle:hover, .column-resize-handle:focus-visible { background: #c8d9ce; outline: none; }
.column-resize-handle::after { position: absolute; top: 25%; bottom: 25%; left: 5px; width: 1px; background: #80998a; content: ""; }
.weekly-sheet tbody tr { height: 32px; }
.weekly-sheet td { height: 32px; padding: 0 10px; border-top: 0; border-right: 1px solid #e0e7e2; border-bottom: 1px solid #e0e7e2; overflow: hidden; vertical-align: middle; text-overflow: ellipsis; white-space: nowrap; }
.weekly-sheet .sheet-cell { display: block; height: 31px; line-height: 31px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weekly-sheet .cell-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weekly-sheet .status-badge { height: 22px; padding: 2px 7px; line-height: 18px; vertical-align: middle; white-space: nowrap; font-size: .7rem; }
.weekly-sheet td:last-child { color: #50675a; }
.weekly-filter-anchor { height: 1px; }
.weekly-sheet tr:hover td { background: #f5faf6; }
@media (max-width: 1250px) { .weekly-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .weekly-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .weekly-navigation { gap: 12px; flex-wrap: wrap; } .weekly-plan > .table-heading { align-items: flex-start; flex-direction: column; gap: 0; } }
.sheet-body { display: flex; height: 100dvh; flex-direction: column; overflow: hidden; background: #f8faf8; }
.sheet-body .site-header { min-height: 54px; flex: 0 0 54px; padding: 0 18px; gap: 18px; }
.sheet-body .brand { white-space: nowrap; }
.sheet-body .site-nav { gap: 2px; font-size: .82rem; }
.sheet-body .site-nav a { padding: 6px 9px; }
.sheet-main { display: flex; width: 100%; max-width: none; min-width: 0; min-height: 0; flex: 1 1 auto; overflow: hidden; padding: 0; }
.weekly-page { display: flex; width: 100%; min-width: 0; min-height: 0; flex: 1 1 auto; }
#weekly-results { display: flex; width: 100%; min-width: 0; min-height: 0; flex: 1 1 auto; flex-direction: column; }
.weekly-topbar { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); flex: 0 0 auto; gap: 7px; padding: 9px 16px 7px; border-bottom: 1px solid #d5dfd8; background: #f8faf8; }
.weekly-topline { display: flex; min-height: 38px; align-items: center; gap: 16px; }
.weekly-title { display: flex; min-width: 0; align-items: baseline; gap: 10px; }
.weekly-title .eyebrow { font-size: .65rem; white-space: nowrap; }
.weekly-title h1 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; white-space: nowrap; }
.weekly-title > .muted { overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.weekly-navigation { display: flex; flex: 0 0 auto; gap: 4px; justify-content: flex-start; margin: 0; font-size: .8rem; }
.weekly-navigation a { padding: 4px 8px; border: 1px solid #d6e0d8; border-radius: 6px; background: #fff; text-decoration: none; white-space: nowrap; }
.weekly-sync-state { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; font-size: .72rem; white-space: nowrap; }
.weekly-sync-state .badge { padding: 3px 8px; }
.schedule-filters.weekly-filters { display: flex; width: 100%; min-width: 0; align-items: end; gap: 8px; padding: 0; border: 0; background: transparent; }
.weekly-filters > div:not(.weekly-filter-actions) { flex: 0 0 auto; }
.weekly-filters > div:first-child { width: 142px; }
.weekly-filters > div:nth-child(2) { width: 200px; }
.weekly-filters > div:nth-child(3) { width: 165px; }
.weekly-filters > .weekly-team-filter-control { position: relative; width: 150px; }
.weekly-team-filter-control .filter-field-label { display: block; margin: 0 0 2px; color: #526b5e; font-size: .67rem; font-weight: 700; }
.weekly-team-picker { position: relative; }
.weekly-team-picker > summary { display: flex; min-height: 34px; align-items: center; gap: 7px; padding: 4px 8px; border: 1px solid #b9c9bf; border-radius: 6px; background: #fff; color: #263d32; cursor: pointer; font-size: .8rem; list-style: none; }
.weekly-team-picker > summary::-webkit-details-marker { display: none; }
.weekly-team-picker > summary > .team-picker-count { min-width: 0; flex: 1 1 auto; overflow: hidden; color: #526b5e; text-overflow: ellipsis; white-space: nowrap; }
.weekly-team-picker > summary > svg { margin-left: auto; }
.weekly-team-picker > summary > svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; }
.weekly-team-menu { position: absolute; top: calc(100% + 5px); left: 0; z-index: 15; width: 290px; max-height: min(60vh, 390px); overflow: hidden; border: 1px solid #d4e0d8; border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgb(26 48 36 / 16%); }
.weekly-team-menu-heading { display: flex; min-height: 40px; align-items: center; justify-content: space-between; padding: 6px 11px; border-bottom: 1px solid #e5ece7; font-size: .78rem; }
.weekly-team-menu-heading .team-picker-actions { display: flex; align-items: center; gap: 4px; }
.weekly-team-menu-heading .team-picker-actions button { min-height: 26px; padding: 2px 7px; border: 0; border-radius: 4px; background: transparent; color: #17634c; font-size: .72rem; }
.weekly-team-menu-heading .team-picker-actions button:hover { background: #edf4ef; color: #104f3f; }
.weekly-team-options { max-height: min(calc(60vh - 82px), 308px); overflow-y: auto; padding: 4px; }
.weekly-team-options > label { display: flex; min-height: 36px; align-items: center; gap: 8px; margin: 0; padding: 4px 7px; border-radius: 5px; color: #293d32; cursor: pointer; font-size: .77rem; font-weight: 500; }
.weekly-team-options > label:hover { background: #f1f6f2; }
.weekly-team-options .team-picker-empty { margin: 0; padding: 10px; color: #66786d; font-size: .75rem; }
.weekly-team-options input[type=checkbox] { width: 15px; min-height: 15px; height: 15px; flex: 0 0 auto; margin: 0; accent-color: #17634c; }
.weekly-team-options > label > span:nth-child(2) { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weekly-team-options .team-picker-counts { display: flex; flex: 0 0 auto; gap: 3px; }
.weekly-team-options .tab-count { padding: 1px 5px; font-size: .59rem; }
.weekly-team-menu-footer { display: flex; justify-content: flex-end; padding: 7px; border-top: 1px solid #e5ece7; }
.weekly-team-menu-footer button { min-height: 30px; padding: 4px 10px; border-radius: 5px; font-size: .74rem; }
.weekly-filters label { margin: 0 0 2px; color: #526b5e; font-size: .67rem; font-weight: 700; }
.weekly-filters input:not([type=submit]), .weekly-filters select { min-height: 34px; padding: 4px 8px; border-radius: 6px; font-size: .8rem; }
.weekly-filters .search-filter { min-width: 120px; flex: 1 1 auto; }
.weekly-filter-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.weekly-filter-actions input[type=submit] { min-height: 34px; margin: 0; padding: 4px 12px; font-size: .78rem; }
.weekly-filter-actions a { line-height: 34px; font-size: .78rem; }
.weekly-topbar .team-switcher-wrap { display: flex; min-height: 40px; align-items: center; gap: 10px; margin: 0; }
.weekly-topbar .team-switcher-label { flex: 0 0 auto; margin: 0; font-size: .7rem; }
.weekly-topbar .team-switcher { min-width: 0; flex: 1 1 auto; gap: 6px; padding: 2px 0; }
.weekly-topbar .team-tab { min-width: 74px; max-width: none; min-height: 32px; flex-direction: row; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 7px; font-size: .74rem; white-space: nowrap; }
.weekly-topbar .team-tab-counts { flex-wrap: nowrap; }
.weekly-topbar .tab-count { padding: 1px 5px; font-size: .6rem; }
.weekly-plan { display: flex; min-width: 0; min-height: 0; flex: 1 1 auto; flex-direction: column; margin: 0; }
.weekly-plan > .table-heading { min-height: 44px; align-items: center; flex: 0 0 auto; margin: 0; padding: 5px 16px; border-bottom: 1px solid #dfe8e2; }
.weekly-plan > .table-heading > div { display: flex; align-items: baseline; gap: 10px; }
.weekly-plan .table-heading p { margin: 0; font-size: .65rem; }
.weekly-plan h2 { margin: 0; font-size: .95rem; }
.weekly-plan > .table-heading > .muted { font-size: .72rem; }
.team-selection-hint { flex: 0 0 auto; margin: 0; padding: 3px 16px; font-size: .69rem; }
.weekly-sheet-wrapper { width: 100%; min-width: 0; max-height: none; min-height: 0; flex: 1 1 auto; overflow: auto; border: 0; border-radius: 0; overscroll-behavior: contain; }
.weekly-sheet th { top: 0; }
.weekly-sheet th:first-child, .weekly-sheet th:nth-child(2), .weekly-sheet th:nth-child(3), .weekly-sheet th:nth-child(4), .weekly-sheet th:nth-child(5), .weekly-sheet th:nth-child(6) { width: auto; }
.weekly-page > #weekly-results > .empty-state { flex: 1 1 auto; margin: 24px; }
.weekly-page .flash { flex: 0 0 auto; margin: 8px 16px 0; }
@media (max-width: 900px) {
  .sheet-body .site-header { gap: 8px; padding: 0 10px; }
  .sheet-body .site-nav { margin-left: auto; }
  .sheet-body .site-nav a { padding: 5px 6px; }
  .weekly-title .eyebrow, .weekly-title > .muted, .weekly-sync-state > .muted { display: none; }
  .weekly-topline { gap: 8px; }
  .weekly-navigation { margin-left: auto; }
  .weekly-topbar { padding: 6px 10px; }
  .weekly-filters > div:first-child { width: 128px; }
  .weekly-filters > div:nth-child(2) { width: 160px; }
  .weekly-filters > div:nth-child(3) { width: 140px; }
  .weekly-filters > .weekly-team-filter-control { width: 150px; }
}
@media (max-width: 640px) {
  .sheet-body .site-header { min-height: 46px; flex-basis: 46px; }
  .sheet-body .brand { font-size: .78rem; }
  .sheet-body .site-nav { gap: 0; font-size: .7rem; }
  .sheet-body .site-nav a { padding: 4px; }
  .sheet-body .site-header .button-secondary { min-height: 30px; padding: 3px 7px; font-size: .68rem; }
  .weekly-title h1 { font-size: 1.05rem; }
  .weekly-sync-state { margin-left: auto; }
  .weekly-topbar { gap: 5px; }
  .schedule-filters.weekly-filters { flex-wrap: wrap; gap: 5px 7px; }
  .weekly-filters > div:first-child, .weekly-filters > div:nth-child(2), .weekly-filters > div:nth-child(3), .weekly-filters > .weekly-team-filter-control { width: calc(50% - 4px); flex: 1 1 calc(50% - 4px); }
  .weekly-team-menu { right: 0; left: auto; width: min(290px, calc(100vw - 20px)); max-height: min(50vh, 300px); }
  .weekly-team-options { max-height: min(calc(50vh - 82px), 218px); }
  .weekly-filters .search-filter { width: calc(100% - 90px); flex: 1 1 calc(100% - 90px); }
  .weekly-filter-actions { align-self: end; }
  .weekly-filter-actions input[type=submit] { padding: 4px 8px; }
  .weekly-topbar .team-switcher-wrap { gap: 7px; min-height: 34px; }
  .weekly-topbar .team-switcher-label { font-size: .64rem; }
  .weekly-topbar .team-tab { min-height: 29px; padding: 3px 6px; font-size: .68rem; }
  .weekly-topbar .tab-count { font-size: .55rem; }
  .weekly-plan > .table-heading { min-height: 38px; padding: 4px 10px; }
  .weekly-plan h2 { font-size: .82rem; }
  .weekly-plan > .table-heading > .muted { font-size: .65rem; }
  .weekly-sheet-wrapper { min-height: 80px; }
}
.yearly-results { display: flex; width: 100%; min-width: 0; min-height: 0; flex: 1 1 auto; flex-direction: column; }
.yearly-tools { display: flex; margin-left: auto; gap: 6px; }
.yearly-tools button { min-height: 30px; padding: 4px 10px; font-size: .75rem; white-space: nowrap; }
.yearly-plan > .table-heading { flex-direction: row; }
.yearly-filters > div:first-child { width: 85px; }
.yearly-filters > div:nth-child(2) { width: 190px; }
.yearly-filters > div:nth-child(3) { width: 240px; }
.yearly-filters > div:nth-child(4) { width: 150px; }
.yearly-preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #536c61; font-size: .73rem; }
.yearly-preview-bar > span:last-child { white-space: nowrap; }
.yearly-sheet th:nth-child(5) > span { padding-right: 25px; }
.yearly-sheet tr.yearly-current-week > td { background: #e9f4ed; border-top-color: #c9dfd0; }
.yearly-sheet tr.yearly-current-week > td:first-child { box-shadow: inset 3px 0 #39865c; font-weight: 650; }
.yearly-sheet tr.yearly-preview-row > td { background: #edf4ff; }
.yearly-sheet td.yearly-assignment-cell { padding: 0; }
.yearly-sheet input.yearly-assignment-input { display: block; width: 100%; min-height: 31px; height: 31px; padding: 0 10px; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; line-height: 31px; text-overflow: ellipsis; }
.yearly-sheet input.yearly-assignment-input:focus { background: #fff; outline: none; box-shadow: inset 0 0 0 2px #397f5d; }
.yearly-assignment-input::placeholder { color: #7d8f84; font-size: .78rem; }
.person-autocomplete { position: fixed; z-index: 40; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #c7d8cd; border-radius: 6px; background: #fff; box-shadow: 0 8px 24px #18332f26; font-size: .82rem; }
.person-autocomplete[hidden] { display: none; }
.person-autocomplete-summary { flex: 0 0 auto; padding: 7px 10px; border-bottom: 1px solid #e4ece7; color: #5c7366; font-size: .72rem; }
.person-autocomplete [role=listbox] { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.person-autocomplete-group { padding: 5px 10px; color: #6c8074; font-size: .67rem; font-weight: 700; background: #f7faf8; }
.person-autocomplete [role=option] { padding: 7px 10px; color: #284335; cursor: pointer; }
.person-autocomplete [role=option]:hover, .person-autocomplete [role=option][aria-selected=true] { background: #e5f1e9; color: #174d35; }
.sheet-notes-content { display: flex; align-items: center; gap: 8px; height: 31px; min-width: 0; overflow: hidden; }
.sheet-notes-content .sheet-note { flex: 1 1 auto; min-width: 0; }
.assignment-preview-note { display: block; flex: 0 1 auto; min-width: 0; height: 31px; line-height: 31px; overflow: hidden; white-space: nowrap; color: #315a94; font-size: .68rem; text-overflow: ellipsis; }
.assignment-preview-note[hidden] { display: none; }
@media (max-width: 1050px) {
  .schedule-filters.yearly-filters { flex-wrap: wrap; }
  .yearly-filters > div:first-child { width: 85px; }
  .yearly-filters > div:nth-child(2) { width: 180px; }
  .yearly-filters > div:nth-child(3) { width: 220px; }
  .yearly-filters > div:nth-child(4) { width: 140px; }
}
@media (max-width: 640px) {
  .sheet-body .site-header { min-height: 64px; flex-basis: auto; flex-wrap: wrap; padding: 4px 10px; gap: 2px 6px; }
  .sheet-body .brand { width: 100%; line-height: 20px; }
  .sheet-body .site-nav { margin-left: 0; flex: 1 1 auto; }
  .yearly-filters > div:first-child, .yearly-filters > div:nth-child(2), .yearly-filters > div:nth-child(3), .yearly-filters > div:nth-child(4) { width: calc(50% - 4px); flex: 1 1 calc(50% - 4px); }
  .yearly-filters .search-filter { flex: 1 1 calc(100% - 75px); }
  .yearly-tools { gap: 4px; }
  .yearly-tools button { min-height: 28px; padding: 3px 6px; font-size: .66rem; }
  .yearly-preview-bar { font-size: .65rem; gap: 8px; }
  .yearly-plan > .table-heading { min-height: 34px; }
  .yearly-plan > .table-heading > .muted { max-width: none; white-space: nowrap; }
  .yearly-highlight-label { display: none; }
}
.yearly-filters > .yearly-team-filter { width: 170px; }
.yearly-filters > .yearly-role-filter { width: 220px; }
.yearly-filters > .yearly-status-filter { width: 150px; }
.yearly-sheet td.yearly-note-cell { padding: 0; }
.yearly-note-cell .sheet-notes-content { gap: 0; }
.yearly-sheet input.yearly-note-input { display: block; min-width: 0; width: 100%; flex: 1 1 auto; min-height: 31px; height: 31px; padding: 0 10px; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; line-height: 31px; text-overflow: ellipsis; }
.yearly-sheet input.yearly-note-input:focus { background: #fff; outline: none; box-shadow: inset 0 0 0 2px #397f5d; }
.yearly-sheet input.yearly-note-input.is-preview { color: #315a94; }
.yearly-note-input::placeholder { color: #7d8f84; font-size: .78rem; }
.yearly-note-cell .assignment-preview-note { max-width: 50%; padding-right: 8px; }
@media (max-width: 640px) {
  .schedule-filters.yearly-filters { display: grid; grid-template-columns: 75px minmax(0, 1fr) minmax(0, 1fr); }
  .yearly-filters > div:nth-child(n) { min-width: 0; width: 100%; flex: initial; }
  .yearly-filters > .yearly-role-filter { grid-column: 1 / span 2; }
  .yearly-filters .search-filter { grid-column: 1 / span 2; min-width: 0; width: 100%; }
  .yearly-filters .weekly-filter-actions { grid-column: 3; }
  .yearly-filters .weekly-filter-actions input[type=submit] { width: 100%; }
}
.access-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.access-heading h1 { margin-bottom: 0; }
.access-add { flex: 0 0 auto; padding: 9px 14px; border-radius: 6px; background: #146650; color: #fff; font-size: .85rem; font-weight: 650; text-decoration: none; }
.access-roles { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 14px 0; border-top: 1px solid #dce5df; font-size: .8rem; }
.access-help { margin: 8px 0 18px; color: #5b6f67; font-size: .8rem; }
.access-card { max-width: 620px; margin: 0 auto; }
.access-form select { width: 100%; min-height: 42px; padding: 6px 10px; border: 1px solid #b9c9bf; border-radius: 6px; background: #fff; color: inherit; font: inherit; }
.access-form .access-checkbox { display: flex; align-items: center; gap: 10px; }
.access-form .access-checkbox input[type=checkbox] { width: 18px; min-height: 18px; height: 18px; flex: 0 0 auto; accent-color: #146650; }
.access-form-actions { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.access-form-actions input[type=submit] { width: auto; margin: 0; }
.access-table th:first-child { width: 44%; }
.access-table th:nth-child(2) { width: 16%; }
.access-table th:nth-child(3) { width: 22%; }
.access-table td { padding: 12px 18px; overflow-wrap: anywhere; }
.yearly-sheet input[readonly] { cursor: default; }
.yearly-sheet input[readonly]:focus { box-shadow: none; background: transparent; }
@media (max-width: 640px) { .access-heading { align-items: flex-start; flex-direction: column; } .access-table { min-width: 600px; } }
.yearly-save-dialog { width: min(680px, calc(100vw - 32px)); max-height: 80vh; padding: 24px; border: 1px solid #b9cfc1; border-radius: 10px; color: #244436; background: white; box-shadow: 0 12px 60px #122f3450; }
.yearly-save-dialog::backdrop { background: #102e3466; }
.yearly-save-dialog h2 { margin: 0 0 12px; font-size: 1.2rem; }
.yearly-save-dialog p { font-size: .83rem; overflow-wrap: anywhere; }
.yearly-review-list { max-height: 40vh; overflow: auto; }
.yearly-review-list section { padding: 10px 0; border-bottom: 1px solid #dce5df; }
.yearly-review-list h3 { margin: 0; font-size: .9rem; }
.yearly-review-list p { margin: 6px 0; white-space: pre-wrap; }
.yearly-save-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.yearly-save-actions button { min-height: 34px; padding: 6px 12px; }
.sms-cadence { padding: 14px 18px; border: 1px solid #dbe7df; border-radius: 8px; background: #f1f7f3; }
.sms-cadence p { margin-bottom: 0; font-size: .85rem; }
.sms-policy-table td, .sms-policy-table th { padding: 10px 14px; }
.sms-admin h2 { margin-top: 28px; }
.notification-history-dialog { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(620px, 96vw); max-width: 96vw; border: 0; padding: 0; color: #243d32; background: white; }
.notification-history-dialog::backdrop { background: #173c3440; }
.notification-history-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; position: sticky; top: 0; background: #f5f9f6; border-bottom: 1px solid #d9e5dc; z-index: 1; }
.notification-history-toolbar button { min-height: 32px; padding: 4px 10px; }
.notification-history-content { padding: 20px; }
.notification-history-content h2 { font-size: 1.2rem; }
.notification-history-content h3 { font-size: .95rem; }
.notification-attempt { padding: 12px 0; border-bottom: 1px solid #dbe5df; font-size: .8rem; }
.notification-attempt p { margin: 6px 0; overflow-wrap: anywhere; }
.notification-timeline { list-style: none; padding: 0; font-size: .8rem; }
.notification-timeline li { padding: 12px 0 12px 14px; border-left: 2px solid #8eb9a0; border-bottom: 1px solid #edf2ef; }
.notification-timeline time { display: block; margin-top: 4px; color: #65766c; }
.notification-timeline p { margin: 4px 0; }
.yearly-assignment-cell { position: relative; }
.yearly-sheet .yearly-assignment-cell input.yearly-assignment-input { padding-right: 34px; }
.assignment-history-link { position: absolute; right: 0; top: 0; height: 31px; width: 30px; display: flex; align-items: center; justify-content: center; color: #486955; text-decoration: none; z-index: 1; background: inherit; }
.assignment-history-link:hover { background: #d9eadd; }
.communication-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.communication-flow > div { padding: 14px; background: #f0f7f2; border: 1px solid #dce8df; border-radius: 8px; }
.communication-flow p { margin: 8px 0 0; font-size: .82rem; color: #4b6256; }
.communication-grid { min-width: 1200px; font-size: .8rem; }
.communication-grid th, .communication-grid td { padding: 10px 12px; vertical-align: top; }
.communication-grid td { min-width: 160px; max-width: 320px; white-space: normal; overflow-wrap: anywhere; }
.communication-grid small { color: #66796c; }
.notification-workflow-summary { padding: 12px 14px; background: #edf6ef; border: 1px solid #d7e7dc; border-radius: 7px; font-size: .83rem; }
.notification-workflow-summary p { margin: 6px 0; }
.notification-service-context { padding: 10px 12px; background: #f5f8fa; border-left: 3px solid #397f5d; font-size: .85rem; }
.notification-pathway { list-style: none; padding: 0; margin: 12px 0; }
.notification-pathway li { padding: 10px 0 10px 14px; border-left: 2px solid #8eb9a0; }
.notification-pathway small { color: #52685a; }
.week-message-records { margin: 18px 0; font-size: .83rem; }
.week-message-records summary { cursor: pointer; font-weight: 650; }
@media (max-width: 900px) { .communication-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .communication-flow { grid-template-columns: 1fr; } }

.assignment-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 20px; font-size: .8rem; }
.assignment-share label { width: 100%; }
.assignment-share input { flex: 1 1 240px; min-width: 0; padding: 8px; border: 1px solid #b9c9bf; border-radius: 4px; font: inherit; }
.assignment-share button { min-height: 32px; padding: 6px 10px; }
.saved-filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 6px 0; font-size: .8rem; }
.saved-filter-save { display: flex; align-items: center; gap: 6px; }
.saved-filter-save input[type=text] { width: 170px; min-height: 30px; padding: 4px 8px; border: 1px solid #b9c9bf; border-radius: 4px; font: inherit; }
.saved-filter-save input[type=submit], .saved-filter-item button { min-height: 30px; padding: 4px 8px; font-size: .8rem; }
.saved-filter-list { position: relative; }
.saved-filter-list summary { cursor: pointer; padding: 6px; }
.saved-filter-list[open] { padding: 8px; background: white; border: 1px solid #b9c9bf; border-radius: 4px; }
.saved-filter-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 4px 0; }
.saved-filter-item form { margin: 0; }
.assignment-setup { margin: 18px 0; }
.assignment-setup li { margin: 7px 0; }
/* Keep the header sized to the selected labels, with a compact search field. */
@media (min-width: 641px) {
  .schedule-filters.yearly-filters { flex-wrap: wrap; }
  .yearly-filters > div:nth-child(2), .yearly-filters > .yearly-team-filter, .yearly-filters > .yearly-role-filter { flex: 0 1 auto; width: max-content; max-width: 380px; }
  .yearly-filters > div:nth-child(2) select, .yearly-filters > .yearly-team-filter select, .yearly-filters > .yearly-role-filter select { width: auto; field-sizing: content; min-width: 170px; max-width: min(380px, 32vw); padding-right: 28px; }
  .yearly-filters > .search-filter { flex: 0 0 140px; min-width: 0; width: 140px; }
}
.saved-filter-dialog { width: min(420px, calc(100vw - 32px)); border: 1px solid #b9c9bf; border-radius: 10px; padding: 22px; background: #fff; color: #243d32; box-shadow: 0 15px 60px #102e3440; }
.saved-filter-dialog::backdrop { background: #102e3466; }
.saved-filter-dialog h2 { margin: 0 0 8px; font-size: 1.15rem; }
.saved-filter-dialog p { margin: 0 0 16px; font-size: .85rem; }
.saved-filter-dialog .saved-filter-save { display: block; }
.saved-filter-dialog .saved-filter-save input[type=text] { width: 100%; min-height: 40px; margin: 6px 0 18px; }
.saved-filter-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.saved-filter-dialog-actions button, .saved-filter-dialog-actions input[type=submit] { width: auto; min-height: 40px; margin: 0; padding: 8px 14px; font-size: .875rem; line-height: 1.4; }
/* Saved views share the title/action row instead of taking another header row. */
.weekly-topline > .saved-filter-bar, .yearly-tools > .saved-filter-bar, .access-heading > .saved-filter-bar, .schedule-heading > .saved-filter-bar { margin: 0; flex: 0 0 auto; }
.saved-filter-list[open] { z-index: 20; }
.saved-filter-list[open] > .saved-filter-item { min-width: 240px; }
@media (min-width: 1000px) { .notification-history-dialog { width: 50vw; max-width: 50vw; } }
/* One filter unit: each field owns its column, without inherited widths. */
.schedule-filters.yearly-filters { display: grid; grid-template-columns: 80px minmax(150px, 1.1fr) minmax(150px, 1fr) minmax(180px, 1.3fr) minmax(140px, .85fr) 140px; align-items: end; gap: 8px; padding: 8px 10px; border: 1px solid #dce5df; border-radius: 7px; background: #f1f5f2; }
.schedule-filters.yearly-filters > div:nth-child(n) { width: auto; min-width: 0; max-width: none; grid-column: auto; margin: 0; }
.schedule-filters.yearly-filters > div:nth-child(n) select, .schedule-filters.yearly-filters > div:nth-child(n) input { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; field-sizing: fixed; }
.yearly-filters input:disabled, .yearly-filters select:disabled { opacity: .55; cursor: not-allowed; }
.yearly-tools { align-items: center; flex-wrap: wrap; }
.yearly-edit-actions { display: flex; align-items: center; gap: 10px; padding-left: 12px; border-left: 1px solid #cddbd2; }
.yearly-tools .button-discard { border: 0; background: transparent; box-shadow: none; color: #a13d35; text-decoration: underline; text-underline-offset: 3px; }
.yearly-tools .button-discard:disabled { color: #8a9890; text-decoration: none; cursor: default; }
.yearly-tools .button-save-edits { background: #166448; border: 1px solid #166448; color: #fff; font-weight: 750; box-shadow: 0 1px 2px #173c3426; }
.yearly-tools .button-save-edits:disabled { background: #dfe9e3; border-color: #d4dfd7; color: #72877b; box-shadow: none; }
@media (max-width: 1100px) {
  .schedule-filters.yearly-filters { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); }
  .yearly-page .weekly-topline { align-items: flex-start; flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 640px) {
  .schedule-filters.yearly-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yearly-tools { margin-left: 0; gap: 8px; }
  .yearly-preview-bar { flex-wrap: wrap; }
}
/* Native top-layer popover: opening saved filters never changes header geometry. */
.saved-filter-list { display: inline-flex; align-items: center; }
.saved-filter-trigger { border: 0; background: transparent; color: #355b48; box-shadow: none; font: inherit; cursor: pointer; white-space: nowrap; }
.saved-filter-popover { position: fixed; inset: auto; margin: 0; box-sizing: border-box; padding: 12px; border: 1px solid #c9d8ce; border-radius: 8px; background: #fff; color: #243d32; box-shadow: 0 10px 35px #173c3433; overflow-y: auto; font-size: .82rem; }
.saved-filter-popover .access-help { margin: 0 0 10px; font-size: .73rem; white-space: normal; }
.saved-filter-popover .saved-filter-item { padding: 8px 0; border-top: 1px solid #e7eee9; }
.saved-filter-popover .saved-filter-item a { overflow-wrap: anywhere; min-width: 0; }
.sms-message-preview { padding: 10px; border: 1px solid #d5e0d9; border-radius: 6px; background: #fff; white-space: pre-wrap; overflow-wrap: anywhere; }
.upcoming-notification-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 10px; }
.upcoming-notification-actions > h3 { margin: 0; }
.upcoming-notification-actions > button { min-height: 34px; padding: 6px 12px; font-size: .8rem; white-space: nowrap; }
.manual-sms-confirm { width: min(560px, calc(100vw - 32px)); max-height: 85dvh; overflow-y: auto; }
.sms-send-result { margin: 10px 0 16px; padding: 12px; border: 1px solid #bed6c5; border-radius: 6px; background: #eef7f0; font-size: .82rem; }
.sms-send-result > span { display: block; margin-top: 4px; color: #617568; }
.sms-send-result p { margin: 6px 0 0; }
.sms-send-problem { background: #fff3ee; border-color: #dfb7a6; color: #873c29; }

.google-sign-in { width: 100%; margin: 1rem 0 .25rem; background: #fff; color: #263c35; border: 1px solid #b9c9c2; }
.manager-scope { padding: 1rem; border: 1px solid #c7d4ce; border-radius: .5rem; }
.manager-service { padding: .5rem 0; border-bottom: 1px solid #e0e7e3; }
.manager-service .access-checkbox { margin-left: 1rem; }

.planning-center-sync-bar { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 10px 24px; background: #edf4ef; border-bottom: 1px solid #dfe8e2; font-size: .78rem; }
.planning-center-sync-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; }
.planning-center-sync-copy small { color: #5b6f67; }
.planning-center-sync-bar form { flex: 0 0 auto; margin: 0; }
.planning-center-sync-bar button { min-height: 34px; padding: 5px 12px; font-size: .78rem; white-space: nowrap; }
.planning-center-sync-bar button:disabled { opacity: .65; cursor: wait; }
.yearly-date-link { color: #136b56; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .planning-center-sync-bar { flex-wrap: wrap; padding: 10px 16px; } }

.yearly-decline-reason { display: block; margin-top: 4px; color: #873e37; font-size: .72rem; white-space: normal; overflow-wrap: anywhere; }

.sync-status-indicator { display: inline-block; flex: 0 0 14px; width: 14px; height: 14px; border: 2px solid #b9cfc1; border-top-color: #146650; border-radius: 50%; animation: sync-status-spin .85s linear infinite; }
.sync-progress-counts { font-weight: 650; font-variant-numeric: tabular-nums; }
.sync-complete { color: #146650; }
.sync-reload { flex: 0 0 auto; }
@keyframes sync-status-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sync-status-indicator { animation: none; } }

.yearly-status-select { width: 100%; min-height: 30px; border: 1px solid #c9d8ce; border-radius: 4px; padding: 4px 6px; color: inherit; background: #fff; font: inherit; font-size: .75rem; }
.yearly-status-select:disabled { opacity: 1; color: #617568; background: #f2f5f3; }
.yearly-status-select.is-preview { outline: 2px solid #d5a843; outline-offset: -2px; }

.sms-schedule { margin: 8px 0; padding-left: 20px; }
.sms-schedule li { margin: 4px 0; }
.notification-diagnostics { margin-top: 20px; border-top: 1px solid #dfe8e2; padding-top: 12px; }
.notification-diagnostics > summary { cursor: pointer; color: #355b48; font-weight: 650; }
