:root {
    color-scheme: light;
    --paper: #f1f5f7;
    --surface: #ffffff;
    --surface-alt: #e7eef2;
    --ink: #203340;
    --muted: #60727e;
    --line: #cddbe2;
    --olive: #08799d;
    --olive-dark: #173f58;
    --clay: #a47b3f;
    --clay-pale: #f3ead9;
    --gold: #b38b4d;
    --blue: #39748e;
    --danger: #9d4c3f;
    --shadow: 0 18px 48px rgba(34, 40, 35, .07);
    font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid rgba(8, 121, 157, .58); outline-offset: 3px; }

.portal-body { min-height: 100vh; }
.portal { max-width: 1160px; margin: 0 auto; padding: 34px 56px 28px; }
.portal-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.04em; }
.wordmark-mark { display: grid; width: 32px; height: 32px; place-items: center; color: var(--paper); background: var(--olive-dark); border-radius: 50% 50% 50% 12%; font: 600 16px Georgia, serif; }
.eyebrow, .card-kicker, .sidebar-label { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.portal-intro { max-width: 720px; padding: 82px 0 42px; }
.portal-intro h1 { margin: 16px 0 18px; font: 400 clamp(42px, 6.4vw, 76px)/1.03 Georgia, "Times New Roman", serif; letter-spacing: -.052em; }
.portal-intro h1 em { color: var(--olive); font-weight: 400; }
.portal-copy { max-width: 570px; margin: 0; color: #626a62; font-size: 17px; line-height: 1.7; }
.portal-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.portal-card { display: flex; min-height: 248px; flex-direction: column; align-items: flex-start; padding: 28px 30px 24px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.portal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #aaa99b; }
.portal-card-new { color: #f8f6ef; border-color: var(--olive-dark); background: var(--olive-dark); }
.portal-card-new:hover { border-color: #25362b; }
.portal-card .card-kicker { color: var(--muted); }
.portal-card-new .card-kicker, .portal-card-new .portal-card-copy { color: #c8d0c6; }
.portal-card-title { margin-top: 17px; font: 400 29px/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.portal-card-copy { max-width: 420px; margin-top: 11px; color: var(--muted); line-height: 1.6; }
.card-link { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 24px; color: var(--olive); font-size: 13px; font-weight: 700; }
.portal-card-new .card-link { color: #edc8a6; }
.portal-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 26px; color: var(--muted); font-size: 12px; }
.portal-footer a { color: var(--olive-dark); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; width: 252px; flex-direction: column; padding: 28px 20px 18px; border-right: 1px solid var(--line); background: #eaf0f3; }
.sidebar .wordmark { padding: 0 9px 36px; }
.sidebar-label { padding: 0 12px 12px; font-size: 10px; }
.main-nav { display: grid; gap: 4px; }
.main-nav a { display: flex; min-height: 42px; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 4px; color: #5c655d; font-size: 13px; text-decoration: none; transition: background .15s ease, color .15s ease; }
.main-nav a:hover { background: rgba(82, 105, 79, .08); color: var(--ink); }
.main-nav a.active { color: var(--olive-dark); background: #dce9ef; font-weight: 700; }
.nav-index { width: 21px; color: #9a9e94; font: 11px Georgia, serif; }
.main-nav a.nav-subitem { min-height: 36px; margin: 0 0 4px 31px; padding: 6px 10px; border-left: 1px solid #b8c9d1; border-radius: 0 4px 4px 0; color: #5c655d; font-size: 12px; }
.main-nav a.nav-subitem.active { color: var(--olive-dark); background: #dce9ef; font-weight: 700; }
.feedback-count { min-width: 20px; margin-left: auto; padding: 2px 6px; border-radius: 12px; color: #fff; background: var(--danger); font-size: 10px; font-weight: 700; text-align: center; }
.feedback-count[hidden] { display: none; }
.sidebar-bottom { margin-top: auto; }
.legacy-link { display: block; margin: 0 10px 16px; color: var(--muted); font-size: 12px; text-decoration: none; }
.legacy-link:hover { color: var(--olive-dark); }
.account-row { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 16px 5px 4px; }
.avatar { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; color: var(--olive-dark); background: #dfe5db; font: 600 12px Georgia, serif; }
.account-name { overflow: hidden; flex: 1; color: #555f56; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { display: inline-grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 17px; }
.icon-button:hover { background: rgba(36, 43, 39, .07); }
.main-column { min-height: 100vh; margin-left: 252px; }
.page-content { width: 100%; max-width: none; margin: 0; padding: 38px clamp(28px, 4vw, 68px) 72px; }
.mobile-header { display: none; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading h1 { margin: 8px 0 0; font: 400 clamp(32px, 4vw, 46px)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.page-heading p { max-width: 640px; margin: 12px 0 0; color: var(--muted); }
.heading-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.eyebrow { font-size: 10px; }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--olive-dark); border-radius: 3px; color: #fff; background: var(--olive-dark); font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.button:hover { background: #26382c; transform: translateY(-1px); }
.button.secondary { color: var(--olive-dark); background: transparent; }
.button.secondary:hover { background: #e9ece5; }
.button.tertiary { min-height: 34px; padding: 6px 10px; border-color: transparent; color: var(--muted); background: transparent; }
.button.tertiary:hover { color: var(--ink); background: rgba(36, 43, 39, .06); }
.button.danger { border-color: var(--danger); color: #fff; background: var(--danger); }
.button.small { min-height: 33px; padding: 5px 10px; font-size: 12px; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.welcome-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(210px, .6fr); gap: 22px; padding: 30px 32px; border-radius: 5px; color: #f8f6ef; background: var(--olive-dark); }
.welcome-panel::after { position: absolute; right: 26%; bottom: -120px; width: 260px; height: 260px; border: 1px solid rgba(238, 234, 223, .16); border-radius: 50%; content: ""; }
.welcome-copy { position: relative; z-index: 1; }
.welcome-copy .eyebrow { color: #c3cdbf; }
.welcome-copy h2 { max-width: 600px; margin: 9px 0 11px; font: 400 clamp(27px, 3vw, 38px)/1.12 Georgia, serif; letter-spacing: -.035em; }
.welcome-copy p { max-width: 600px; margin: 0; color: #d0d8ce; }
.welcome-aside { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: flex-end; color: #e6c5a2; font: italic 16px/1.4 Georgia, serif; text-align: right; }
.welcome-aside span { max-width: 240px; }
.welcome-mission-panel { grid-template-columns: minmax(0, 1.75fr) minmax(250px, .75fr); align-items: stretch; gap: clamp(24px, 4vw, 52px); min-height: 230px; padding: 32px 36px; }
.welcome-mission-panel .welcome-copy { display: flex; flex-direction: column; align-items: flex-start; }
.welcome-mission-panel .welcome-copy .eyebrow { margin-bottom: 12px; }
.welcome-mission-panel .welcome-plan { width: 100%; max-width: none; color: #f4f7f6; font-size: 16px; line-height: 1.7; }
.welcome-mission-panel .welcome-plan p { max-width: none; margin: 0 0 10px; color: #edf3f1; white-space: pre-line; }
.welcome-mission-panel .welcome-plan h1,
.welcome-mission-panel .welcome-plan h2,
.welcome-mission-panel .welcome-plan h3 { margin: 8px 0 12px; color: #fff; font: 400 25px/1.2 Georgia, serif; }
.welcome-mission-panel .welcome-plan h1 { font-size: 29px; }
.welcome-mission-panel .welcome-plan h3 { font-size: 20px; }
.welcome-mission-panel .welcome-plan ul,
.welcome-mission-panel .welcome-plan ol { display: grid; gap: 6px; margin: 0 0 14px; padding-left: 23px; color: #edf3f1; }
.welcome-mission-panel .welcome-plan strong { color: #fff; }
.welcome-mission-panel .welcome-plan-link { margin-top: 16px; border-color: rgba(238, 234, 223, .4); color: #f0d2b2; background: rgba(255, 255, 255, .07); }
.welcome-mission-panel .welcome-plan-link:hover { background: rgba(255, 255, 255, .14); }
.welcome-mission-panel .welcome-aside { align-items: center; border-left: 1px solid rgba(238, 234, 223, .24); padding-left: clamp(22px, 3vw, 38px); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 17px 0 34px; }
.metric { min-height: 115px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.metric-label { color: var(--muted); font-size: 11px; font-weight: 600; }
.metric-value { margin-top: 8px; font: 400 35px/1 Georgia, serif; letter-spacing: -.035em; }
.metric-note { margin-top: 6px; color: #8a9086; font-size: 11px; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 13px; }
.section-row h2 { margin: 0; font: 400 23px/1.2 Georgia, serif; letter-spacing: -.02em; }
.section-row a { color: var(--olive); font-size: 12px; font-weight: 700; text-decoration: none; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 30px; }
.stack { display: grid; align-content: start; gap: 30px; }
.panel { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.panel-body { padding: 18px 19px; }
.feedback-review { margin: 0 0 30px; }
.feedback-list { display: grid; gap: 12px; }
.feedback-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; padding: 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.feedback-card-new { border-left: 4px solid var(--clay); }
.feedback-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feedback-card-head h3 { margin: 0; font-size: 15px; }
.feedback-card-meta { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.feedback-message { grid-column: 1 / -1; margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-card-action { grid-column: 2; grid-row: 1; align-self: start; }
.feedback-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.feedback-archive { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.feedback-archive summary { color: var(--olive-dark); font-size: 13px; font-weight: 700; cursor: pointer; }
.feedback-archive > .feedback-list { margin-top: 14px; }
.schedule-tools { margin-bottom: 22px; }
.schedule-tools-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.schedule-tools-main .form-field { min-width: 150px; margin: 0; }
.schedule-attendance { display: flex; flex-wrap: wrap; gap: 8px; }
.schedule-jump-link { align-self: center; white-space: nowrap; }
.schedule-tools > .form-hint { margin: 15px 0 0; }
.schedule-tools > .form-hint a { margin-left: 5px; color: var(--olive-dark); font-weight: 700; }
.schedule-table-section { margin-bottom: 34px; }
#schedule-past-boundary { scroll-margin-top: 76px; }
.sunday-schedule-table { width: 100%; min-width: 1180px; table-layout: fixed; }
.schedule-edit-table th:nth-child(1) { width: 12%; }
.schedule-edit-table th:nth-child(2) { width: 34%; }
.schedule-edit-table th:nth-child(3), .schedule-edit-table th:nth-child(4) { width: 15%; }
.schedule-edit-table th:nth-child(5) { width: 16%; }
.schedule-edit-table th:nth-child(6) { width: 8%; }
.schedule-readonly-table th:nth-child(1) { width: 15%; }
.schedule-readonly-table th:nth-child(2) { width: 39%; }
.schedule-readonly-table th:nth-child(3), .schedule-readonly-table th:nth-child(4) { width: 16%; }
.schedule-readonly-table th:nth-child(5) { width: 14%; }
.sunday-schedule-table td { vertical-align: middle; }
.sunday-schedule-table .schedule-topic { min-width: 0; max-width: none; flex: 1 1 0; }
.schedule-topic-cell { display: flex; min-width: 0; align-items: center; gap: 7px; }
.schedule-topic-link-actions { display: flex; flex: none; align-items: center; gap: 4px; }
.schedule-topic-link { width: fit-content; }
.schedule-icon-button { width: 28px; min-width: 28px; min-height: 28px; padding: 3px; display: inline-grid; place-items: center; }
.schedule-icon-button svg { width: 15px; height: 15px; }
.sunday-schedule-table .select-input { width: 100%; min-width: 0; max-width: 100%; padding-right: 6px; padding-left: 8px; }
.sunday-schedule-table .schedule-row-actions { min-width: 68px; white-space: nowrap; }
.schedule-row-actions > div { display: flex; align-items: center; gap: 4px; }
.schedule-conference-row { background: #f1f5f7; }
.schedule-conference-row td { color: var(--muted); }
.schedule-management { margin-top: 30px; }
.schedule-person-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(190px, .8fr) auto; align-items: end; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.schedule-person-form .form-field { margin: 0; }
.schedule-people-list { display: grid; }
.schedule-person-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px; border-bottom: 1px solid #e8edf0; }
.schedule-person-row:last-child { border-bottom: 0; }
.schedule-person-row strong, .schedule-person-row small { display: block; }
.schedule-person-row small { margin-top: 2px; color: var(--muted); font-size: 12px; text-transform: capitalize; }
.schedule-person-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.schedule-reminder-panel { margin: 0 0 22px; }
.schedule-reminder-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.schedule-email-consent { align-self: center; }
.schedule-person-form { grid-template-columns: minmax(140px, 1fr) minmax(190px, 1.2fr) minmax(160px, .9fr) minmax(210px, 1.3fr) auto; }
.schedule-inactive, .schedule-deleted { margin-top: 16px; }
.schedule-inactive summary, .schedule-deleted summary { color: var(--olive-dark); font-size: 13px; font-weight: 700; cursor: pointer; }
.schedule-deleted { margin-bottom: 28px; }
.schedule-deleted .schedule-people-list { margin-top: 10px; }
.list { display: grid; }
.list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px solid #ebe8de; }
.list-row:first-child { padding-top: 0; }
.list-row:last-child { padding-bottom: 0; border-bottom: 0; }
.list-title { margin: 0; font-size: 14px; font-weight: 700; }
.list-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.list-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; color: var(--muted); font-size: 11px; text-align: right; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 20px; color: #4f6250; background: #e6ece2; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.badge.warning { color: #925938; background: #f4e6d8; }
.badge.overdue { color: #914b3c; background: #f3ded8; }
.badge.neutral { color: #68736b; background: #e9e9e1; }
.badge.blue { color: #4d686a; background: #e1e9e9; }
.empty-state { padding: 28px 12px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); font: 400 19px Georgia, serif; }
.empty-state p { margin: 0; font-size: 13px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 16px; }
.action-filter-row { margin-top: 8px; }
.action-filter-row .select-input { width: min(260px, 100%); }
.meeting-filter-row { margin: 4px 0 18px; }
.meeting-filter-row .select-input { width: min(260px, 100%); }
.activity-calendar-panel { margin: 0 0 22px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.activity-calendar-panel .section-row { margin-bottom: 14px; }
.activity-calendar-panel h2 { margin: 3px 0 0; font: 400 24px/1.2 Georgia, serif; }
.activity-calendar-heading { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; max-width: 490px; margin: 0 auto 12px; }
.activity-calendar-heading h3 { margin: 0; font: 400 20px Georgia, serif; text-align: center; }
.activity-calendar-heading .button { width: 38px; min-height: 36px; padding: 4px; font-size: 17px; }
.activity-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; max-width: 560px; margin: 0 auto; }
.calendar-weekday { padding: 4px 0; color: var(--muted); font-size: 10px; font-weight: 700; text-align: center; text-transform: uppercase; }
.calendar-empty { min-height: 62px; }
.calendar-day { display: flex; min-width: 0; min-height: 62px; align-items: flex-start; justify-content: space-between; padding: 8px; border: 1px solid #e0e7ea; border-radius: 3px; color: var(--ink); background: #fbfcfc; text-align: left; cursor: pointer; }
.calendar-day:hover { border-color: var(--blue); background: #edf5f8; }
.calendar-day.has-events { border-color: #b8d0da; background: #eaf3f6; font-weight: 700; }
.calendar-day.today { box-shadow: inset 0 0 0 1px var(--gold); }
.calendar-day.selected { border-color: var(--olive-dark); color: #fff; background: var(--olive-dark); }
.calendar-day-count { display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 4px; border-radius: 12px; color: var(--olive-dark); background: #d2e5ec; font-size: 10px; }
.calendar-day.selected .calendar-day-count { color: var(--olive-dark); background: #fff; }
.activity-results-heading { margin-top: 18px; }
.activity-results-heading h2 { margin: 0; font: 400 23px/1.2 Georgia, serif; }
.search-input, .select-input, .text-input, .text-area { width: 100%; border: 1px solid #cfcec3; border-radius: 3px; color: var(--ink); background: var(--surface); }
.search-input, .select-input, .text-input { min-height: 42px; padding: 9px 12px; }
.text-area { min-height: 112px; resize: vertical; padding: 11px 12px; }
.search-input { max-width: 330px; }
.select-input { max-width: 220px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #59625a; font-size: 12px; font-weight: 700; }
.form-hint { color: var(--muted); font-size: 11px; }
.checkbox-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checkbox-option { display: flex; align-items: center; gap: 8px; color: #59625a; font-size: 12px; }
.checkbox-option input { accent-color: var(--olive); }
.group-checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; padding: 12px; border: 1px solid var(--line); background: #fbfcfc; }
.focus-option { padding: 12px; border: 1px solid var(--line); background: var(--surface-alt); }
.group-chart { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 18px; }
.pie-chart { position: relative; display: grid; width: 170px; aspect-ratio: 1; place-items: center; border-radius: 50%; }
.pie-chart::before { position: absolute; inset: 27px; border-radius: 50%; background: var(--surface); content: ""; }
.pie-chart-center { position: relative; display: grid; justify-items: center; }
.pie-chart-center strong { font: 400 30px/1 Georgia, serif; }
.pie-chart-center span { color: var(--muted); font-size: 10px; }
.chart-legend { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chart-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12px; }
.chart-legend li strong { color: var(--muted); }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--legend-color); }
.chart-note { grid-column: 1 / -1; margin: 0; }
.overview-people { margin-top: 34px; }
.active-people-table { min-width: 700px; }
.active-people-table td { vertical-align: top; }
.active-people-table .table-subline { margin-top: 5px; }
.timeline-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.timeline-entry > p { white-space: pre-wrap; }
.record-grid-toolbar { display: flex; justify-content: flex-end; margin: 12px 0 10px; }
.record-view-tools { display: flex; align-items: center; gap: 8px; }
.record-view-label { color: var(--muted); font-size: 11px; font-weight: 700; }
.record-view-control { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.record-view-button { min-height: 30px; padding: 5px 10px; border: 0; border-radius: 3px; color: var(--muted); background: transparent; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.record-view-button[aria-pressed="true"] { color: #fff; background: var(--olive-dark); }
.record-view-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.record-grid[data-view="compact"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.record-grid[data-view="compact"] .record-card { min-height: 0; padding: 13px; }
.record-grid[data-view="compact"] .record-card h3 { margin-top: 7px; font-size: 18px; }
.record-grid[data-view="compact"] .record-card .card-bottom { align-items: flex-start; flex-direction: column; gap: 5px; padding-top: 10px; }
.record-grid[data-view="list"] { grid-template-columns: 1fr; gap: 8px; }
.record-grid[data-view="list"] .record-card { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(170px, 1.4fr) minmax(90px, .8fr) minmax(180px, auto); align-items: center; gap: 10px 16px; min-height: 0; padding: 12px 16px; }
.record-grid[data-view="list"] .record-card h3 { margin: 0; font-size: 18px; }
.record-grid[data-view="list"] .record-card-main p { margin: 4px 0 0; }
.record-grid[data-view="list"] .record-card-groups { margin: 0; }
.record-grid[data-view="list"] .record-card .card-bottom { justify-content: flex-end; gap: 12px; margin: 0; padding: 0; }
.record-card-status { display: flex; flex-wrap: wrap; gap: 4px; }
.record-card-main { min-width: 0; }
.record-card-groups { color: var(--muted); font-size: 11px !important; }
.record-card { display: flex; min-height: 180px; flex-direction: column; padding: 19px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.record-card h3 { margin: 9px 0 4px; font: 400 23px/1.15 Georgia, serif; }
.record-card p { margin: 4px 0; color: var(--muted); font-size: 12px; }
.record-card .meeting-purpose { display: -webkit-box; overflow: hidden; margin: 7px 0; color: var(--ink); font-size: 13px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.eq-visit-card h3 a { color: inherit; text-decoration: none; }
.eq-visit-card h3 a:hover { text-decoration: underline; }
.eq-visit-card .card-bottom { flex-wrap: wrap; justify-content: flex-start; }
.eq-visit-layout { display: grid; gap: 16px; margin-top: 18px; }
.eq-profile-notes { min-height: 54px; white-space: pre-wrap; line-height: 1.6; }
.eq-no-contact { margin: 0 0 16px; padding: 13px 16px; border-left: 4px solid var(--danger); color: var(--ink); background: #f8ebe7; font-size: 13px; }
.meeting-purpose span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.meeting-purpose-editor { min-height: 82px; }
.record-card .card-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }
.record-detail { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 24px; }
.detail-panel { padding: 22px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.detail-panel h2 { margin: 0 0 14px; font: 400 22px Georgia, serif; }
.detail-value { margin: 0 0 13px; white-space: pre-wrap; }
.detail-label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.person-photo { width: 116px; height: 116px; object-fit: cover; border-radius: 3px; background: var(--surface-alt); }
.detail-top { display: flex; align-items: flex-start; gap: 17px; }
.timeline { display: grid; gap: 0; }
.timeline-entry { position: relative; padding: 0 0 19px 18px; border-left: 1px solid #c8cec3; }
.timeline-entry:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-entry::before { position: absolute; top: 3px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--olive); content: ""; }
.timeline-date { color: var(--muted); font-size: 11px; }
.timeline-entry p { margin: 5px 0 0; white-space: pre-wrap; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 12px; }
.toolbar h2 { margin: 0; font: 400 23px Georgia, serif; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 15px; border-bottom: 1px solid #ebe8de; font-size: 12px; vertical-align: top; }
th { color: var(--muted); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.meeting-agenda-editor { min-height: 220px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #ebe8de; }
.check-row:last-child { border: 0; }
.check-row input { margin-top: 4px; accent-color: var(--olive); }
.check-row.done span { color: #90968d; text-decoration: line-through; }
.report-card { margin-bottom: 15px; padding: 22px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.report-card h2 { margin: 0 0 12px; font: 400 22px Georgia, serif; }
.report-preview { max-height: 320px; overflow: auto; padding: 14px; border-radius: 3px; color: #505a51; background: #f0ede4; font: 12px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.report-builder { margin-bottom: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.report-builder h2 { margin: 3px 0 0; font: 400 24px/1.2 Georgia, serif; }
.report-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.report-control { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.report-control .select-input, .report-control .text-input { max-width: none; min-height: 40px; font-size: 12px; }
.report-section-picker { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.report-section-picker h3 { margin: 0 0 10px; font: 400 18px Georgia, serif; }
.report-section-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.report-section-option { display: flex; align-items: flex-start; gap: 9px; min-height: 58px; padding: 10px; border: 1px solid var(--line); background: #fbfcfc; cursor: pointer; }
.report-section-option input { margin-top: 3px; accent-color: var(--olive); }
.report-section-option span { display: grid; gap: 3px; }
.report-section-option strong { color: var(--ink); font-size: 12px; }
.report-section-option small { color: var(--muted); font-size: 10px; }
.report-output { display: grid; gap: 0; }
.report-output .report-card { min-width: 0; }
.report-output .section-row h2 { margin: 0; }
.report-filter-summary { margin: -4px 0 16px; color: var(--muted); font-size: 11px; }
.report-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.report-metric { display: grid; gap: 8px; padding: 15px; border: 1px solid var(--line); background: #fbfcfc; }
.report-metric span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.report-metric strong { color: var(--ink); font: 400 30px/1 Georgia, serif; }
.report-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.share-report { color: var(--ink); }
.share-report h1 { margin: 4px 0 8px; color: var(--blue-dark); font: 34px Georgia, serif; }
.share-report .report-date { color: var(--muted); }
.share-report section { margin-top: 22px; }
.share-report .agenda { padding: 10px 0; border-bottom: 1px solid var(--line); }
.share-report .agenda p, .share-report .preserve { white-space: pre-wrap; }
.share-report footer { margin-top: 22px; color: var(--muted); font-size: 11px; }
.report-chart { min-width: 0; padding: 16px; border: 1px solid var(--line); background: #fbfcfc; }
.report-chart h3 { margin: 0 0 14px; font: 400 18px Georgia, serif; }
.report-bars { display: grid; gap: 10px; }
.report-bar-row { display: grid; grid-template-columns: minmax(90px, 140px) minmax(40px, 1fr) 28px; align-items: center; gap: 9px; }
.report-bar-label { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.report-bar-track { height: 10px; overflow: hidden; border-radius: 6px; background: #e8edef; }
.report-bar-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #173f58, #6d9aac); }
.report-bar-row strong { color: var(--ink); font-size: 11px; text-align: right; }
.report-chart .form-hint { margin: 12px 0 0; }
.subtle-note { color: var(--muted); font-size: 12px; }
.photo-input { max-width: 100%; color: var(--muted); font-size: 12px; }
.dialog { width: min(620px, calc(100vw - 28px)); max-height: min(88vh, 840px); overflow-y: auto; padding: 0; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(31, 39, 34, .5); backdrop-filter: blur(2px); }
.dialog form { padding: 24px; }
.dialog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dialog-top h2 { margin: 6px 0 0; font: 400 27px/1.1 Georgia, serif; }
.dialog-close { margin: -5px -7px 0 0; font-size: 23px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.toast-region { position: fixed; z-index: 20; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 12px 16px; border: 1px solid #ccd3c8; border-radius: 4px; color: #f8f6ef; background: var(--olive-dark); box-shadow: var(--shadow); font-size: 13px; }
.toast.error { border-color: #9d4c3f; background: #8b4236; }
.inline-link { border: 0; padding: 0; color: var(--olive); background: none; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.loading { padding: 36px; color: var(--muted); text-align: center; }
.error-box { padding: 14px 16px; border: 1px solid #e6c3b7; border-radius: 4px; color: #834638; background: #f6e9e3; }
.print-only { display: none; }
.welcome-aside figure { max-width: 340px; margin: 0; }
.welcome-aside blockquote { margin: 0 0 12px; color: #f5f8f9; font: italic 17px/1.45 Georgia, serif; }
.welcome-aside figcaption { color: #dce7eb; font: 700 11px/1.4 "Avenir Next", Avenir, "Segoe UI", sans-serif; }
.welcome-aside a { display: inline-block; margin-top: 6px; color: #bfd9e3; font-size: 10px; text-underline-offset: 3px; }
.mission-plan-glance { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 16px 0 20px; padding: 18px 22px; border: 1px solid var(--line); border-left: 4px solid var(--olive); border-radius: 4px; background: var(--surface); }
.mission-plan-glance .eyebrow { margin-bottom: 4px; color: var(--olive); }
.mission-plan-glance p:not(.eyebrow) { max-width: 980px; margin: 0 0 8px; color: var(--ink); white-space: pre-line; }
.mission-plan-panel { margin-bottom: 24px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.mission-plan-panel h2 { margin: 3px 0 0; font: 400 25px/1.2 Georgia, serif; }
.mission-plan-panel .section-row { align-items: center; }
.mission-plan-summary { margin: 16px 0; color: var(--ink); font-size: 16px; line-height: 1.65; white-space: pre-line; }
.mission-plan-details { border-top: 1px solid var(--line); padding-top: 12px; }
.mission-plan-details summary { color: var(--olive-dark); font-weight: 700; cursor: pointer; }
.mission-plan-details .mission-plan-content { margin-top: 12px; color: var(--ink); line-height: 1.75; }
.mission-plan-content p { margin: 0 0 13px; white-space: pre-line; }
.mission-plan-content h1, .mission-plan-content h2, .mission-plan-content h3 { margin: 20px 0 9px; color: var(--olive-dark); font: 400 21px/1.25 Georgia, serif; }
.mission-plan-content h1 { font-size: 25px; }
.mission-plan-content h3 { font-size: 17px; }
.mission-plan-content ul, .mission-plan-content ol { display: grid; gap: 6px; margin: 0 0 15px; padding-left: 24px; }
.plan-format-toolbar { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px; border: 1px solid var(--line); border-bottom: 0; background: var(--surface-alt); }
.plan-editor { min-height: 260px; border-top-left-radius: 0; border-top-right-radius: 0; font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; line-height: 1.6; }
.plan-summary-editor { min-height: 120px; }
.plan-preview { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); background: #fbfcfc; }
.plan-preview > .eyebrow { margin-bottom: 8px; }
.plan-preview .mission-plan-content { max-height: 260px; overflow: auto; }
.mission-plan-glance .mission-plan-content { max-width: 980px; }
.mission-plan-glance .mission-plan-content h1,
.mission-plan-glance .mission-plan-content h2,
.mission-plan-glance .mission-plan-content h3 { margin: 5px 0 8px; font-size: 18px; }
.mission-plan-glance .mission-plan-content ul,
.mission-plan-glance .mission-plan-content ol { margin-bottom: 8px; }
.mission-plan-summary .mission-plan-content p:last-child,
.mission-plan-glance .mission-plan-content p:last-child { margin-bottom: 0; }
.admin-page { font-size: 16px; }
.admin-page .page-heading p { font-size: 16px; }
.admin-page .section-row h2 { font-size: 23px; }
.admin-page table { font-size: 15px; }
.admin-page th { font-size: 12px; }
.admin-page td, .admin-page th { padding: 13px 15px; }
.admin-page .select-input { min-height: 40px; font-size: 15px; }
.admin-page .button { font-size: 14px; }
.admin-page .button.small { font-size: 13px; }
.ward-member-heading { margin-top: 34px; }
.member-calling-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; padding: 12px; border: 1px solid var(--line); background: #fbfcfc; }
.row-inactive { color: #87939a; background: #f5f7f8; }
.table-subline { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.meeting-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, .75fr); gap: 22px; align-items: start; }
.meeting-aside { position: sticky; top: 24px; display: grid; gap: 16px; max-height: calc(100vh - 48px); overflow-y: auto; padding-right: 4px; }
.meeting-attendees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.meeting-attendee { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; color: var(--ink); }
.meeting-attendee input { margin-top: 4px; accent-color: var(--olive); }
.meeting-attendee span, .meeting-person-choice span { display: grid; gap: 1px; }
.meeting-attendee strong, .meeting-person-choice strong { font-size: 12px; }
.meeting-attendee small, .meeting-person-choice small { color: var(--muted); font-size: 10px; }
.meeting-people-list { display: grid; max-height: 280px; overflow-y: auto; margin: 8px -4px 14px; }
.meeting-panel-filters { display: grid; gap: 8px; margin: 10px 0; }
.meeting-action-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.meeting-action-list { max-height: 360px; overflow-y: auto; padding-right: 4px; }
.meeting-person-choice { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.meeting-person-choice:hover, .meeting-person-choice.selected { background: #e6f0f4; }
.meeting-person-detail { padding-top: 14px; border-top: 1px solid var(--line); }
.meeting-person-detail h3 { margin: 0; font: 400 19px Georgia, serif; }
.meeting-person-detail .text-area { min-height: 92px; }
.meeting-history { max-height: 180px; overflow-y: auto; margin: 12px 0; padding-left: 4px; }
.meeting-person-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.meeting-list-tabs { display: flex; gap: 8px; margin: -8px 0 22px; }
.archive-warning { max-width: 900px; margin: -8px 0 18px; color: var(--danger); }
.danger-text { color: var(--danger) !important; }
.archived-family-note { margin-top: 12px; padding: 12px; background: var(--surface-alt); white-space: pre-wrap; }
.archived-family-note p { margin: 6px 0 0; color: var(--ink); }
.card-bottom { flex-wrap: wrap; }
.family-member-list { display: grid; gap: 8px; margin-top: 6px; }
.family-member-list > div { padding: 9px 11px; border-left: 2px solid var(--gold); background: var(--surface-alt); }
.family-member-list p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.attachment-tools { display: grid; gap: 9px; margin-top: 12px; }
.attachment-list { display: grid; gap: 6px; }
.attachment-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid var(--line); background: #fbfcfc; }
.attachment-item > div { display: grid; min-width: 0; gap: 3px; }
.attachment-preview { display: block; width: 64px; height: 52px; flex: 0 0 64px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-alt); }
.attachment-preview img { width: 100%; height: 100%; object-fit: cover; }
.attachment-item a { overflow-wrap: anywhere; color: var(--olive-dark); font-size: 12px; font-weight: 700; }
.attachment-item small { color: var(--muted); font-size: 10px; }
.attachment-empty { margin: 0; }
.attachment-upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.attachment-upload { position: relative; overflow: hidden; }
.attachment-file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.attachment-upload:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.timeline-entry .attachment-tools { margin-top: 8px; }
.dialog { border-color: #c4d4dc; }
.button { border-color: var(--olive-dark); }
.button.secondary { border-color: #9fb7c3; color: var(--olive-dark); background: #fff; }
.portal-card-new { background: var(--olive-dark); border-color: var(--olive-dark); }
.badge.blue { color: #20536b; background: #dcebf1; }
@media (max-width: 760px) {
    .mission-plan-glance { align-items: flex-start; flex-direction: column; }
    .welcome-aside figure { max-width: none; }
    .welcome-mission-panel .welcome-aside { align-items: flex-start; border-top: 1px solid rgba(238, 234, 223, .24); border-left: 0; padding: 20px 0 0; }
}
@media (max-width: 1100px) {
    .meeting-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); gap: 16px; }
    .meeting-attendees { grid-template-columns: 1fr; }
    .member-calling-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .record-grid[data-view="compact"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .record-grid[data-view="list"] .record-card { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; }
    .record-grid[data-view="list"] .record-card-status,
    .record-grid[data-view="list"] .record-card-main,
    .record-grid[data-view="list"] .record-card-groups { grid-column: 1; }
    .record-grid[data-view="list"] .record-card .card-bottom { grid-column: 2; grid-row: 1 / span 3; flex-direction: column; align-items: flex-end; gap: 8px; }
}
@media (max-width: 760px) {
    .meeting-layout { grid-template-columns: 1fr; }
    .meeting-aside { position: static; max-height: none; overflow: visible; }
    .record-grid[data-view="compact"] { grid-template-columns: 1fr; }
    .record-grid[data-view="list"] .record-card { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; }
    .record-grid[data-view="list"] .record-card-status,
    .record-grid[data-view="list"] .record-card-main,
    .record-grid[data-view="list"] .record-card-groups { grid-column: 1; }
    .record-grid[data-view="list"] .record-card .card-bottom { grid-column: 2; grid-row: 1 / span 3; flex-direction: column; align-items: flex-end; gap: 8px; }
    .record-grid-toolbar { justify-content: flex-start; }
}

@media (max-width: 1040px) {
    .page-content { padding: 40px 34px 68px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { gap: 20px; }
    .report-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-section-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .sidebar { position: fixed; top: 58px; right: 0; bottom: auto; width: auto; max-height: calc(100vh - 58px); overflow-y: auto; padding: 12px 14px 14px; border: 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-125%); transition: transform .2s ease; }
    .sidebar.open { transform: translateY(0); }
    .sidebar .wordmark, .sidebar-label, .sidebar-bottom { display: none; }
    .main-nav a { min-height: 44px; }
    .feedback-card { grid-template-columns: minmax(0, 1fr); }
    .feedback-card-action { grid-column: 1; grid-row: auto; }
    .feedback-actions { justify-content: flex-start; }
    .schedule-tools-main { align-items: stretch; flex-direction: column; }
    .schedule-attendance .button { flex: 1; }
    .schedule-person-form { grid-template-columns: 1fr; }
    .main-column { margin-left: 0; }
    .mobile-header { position: sticky; top: 0; z-index: 11; display: flex; height: 58px; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(241, 245, 247, .96); backdrop-filter: blur(10px); }
    .menu-button { min-height: 38px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--olive-dark); background: var(--surface); font-size: 12px; font-weight: 700; }
    .page-content { padding: 29px 18px 60px; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 23px; }
    .page-heading h1 { font-size: 35px; }
    .welcome-panel { grid-template-columns: 1fr; padding: 25px 22px; }
    .welcome-aside { justify-content: flex-start; text-align: left; }
    .dashboard-grid, .record-detail { grid-template-columns: 1fr; }
    .record-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .report-builder { padding: 17px; }
    .report-chart-grid { grid-template-columns: 1fr; }
    .group-chart { grid-template-columns: 1fr; justify-items: center; }
    .chart-legend { width: 100%; }
    .chart-note { grid-column: auto; }
    .form-field.full { grid-column: auto; }
    .portal { padding: 22px 18px; }
    .portal-header { align-items: flex-start; flex-direction: column; gap: 13px; }
    .portal-intro { padding: 56px 0 31px; }
    .portal-intro h1 { font-size: clamp(41px, 12vw, 60px); }
    .portal-copy { font-size: 15px; }
    .portal-choices { grid-template-columns: 1fr; }
    .portal-card { min-height: 220px; padding: 23px; }
    .portal-footer { flex-direction: column; }
}
@media (max-width: 440px) {
    .metric-grid { gap: 8px; }
    .metric { min-height: 104px; padding: 14px; }
    .metric-value { font-size: 30px; }
    .list-row { grid-template-columns: 1fr; }
    .list-meta { text-align: left; }
    .heading-actions { width: 100%; }
    .heading-actions .button { flex: 1; }
    .checkbox-list { grid-template-columns: 1fr; }
    .group-checkbox-grid { grid-template-columns: 1fr; }
    .report-filter-grid, .report-section-options, .report-metric-grid { grid-template-columns: 1fr; }
    .member-calling-grid { grid-template-columns: 1fr; }
    .meeting-action-filters { grid-template-columns: 1fr; }
    .activity-calendar-panel { padding: 14px 10px; }
    .activity-calendar-grid { gap: 3px; }
    .calendar-empty { min-height: 46px; }
    .calendar-day { min-height: 46px; padding: 5px 4px; font-size: 12px; }
    .calendar-day-count { min-width: 17px; height: 17px; font-size: 9px; }
    .dialog form { padding: 19px; }
}
@media print {
    :root { color-scheme: light; }
    body { background: #fff; }
    .sidebar, .mobile-header, .heading-actions, .toolbar button, .dialog, .toast-region, .no-print, .report-builder { display: none !important; }
    .main-column { margin: 0; }
    .page-content { width: 100%; padding: 0; }
    .panel, .report-card, .table-wrap { break-inside: avoid; border-color: #bbb; box-shadow: none; }
    .report-output .report-card { margin-bottom: 8px; padding: 12px; }
    .report-chart, .report-metric { break-inside: avoid; background: #fff; }
    .report-bar-track { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .welcome-panel { color: #111; background: #fff; border: 1px solid #aaa; }
    .welcome-copy .eyebrow, .welcome-copy p { color: #333; }
    .welcome-copy h2 { color: #111; }
    .print-only { display: block; }
    a { color: #111; text-decoration: none; }
}
