:root { color-scheme: light; --navy: #172c43; --ink: #23374c; --muted: #66768a; --line: #e2e7ed; --amber: #e9b86b; --paper: #f6f8fb; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.5; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a:focus-visible, button:focus-visible, main:focus-visible { outline: 3px solid #b47718; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -70px; padding: 10px 18px; background: white; color: var(--navy); z-index: 20; border-radius: 6px; }
.skip-link:focus { top: 16px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 24px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.divider { margin: 0 9px; color: #9ba9b6; }
.topbar strong { font-weight: 600; }
.private-label { color: var(--muted); font-size: 14px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 34px 0 10px; }
.eyebrow { margin: 0 0 7px; color: #7d633c; font-size: 12px; font-weight: 700; letter-spacing: 1.8px; }
h1 { margin: 0; font-size: clamp(32px, 3vw, 42px); letter-spacing: -1.5px; font-weight: 650; line-height: 1.2; }
h1 > span { color: #c48b38; }
.description { margin: 11px 0 0; color: var(--muted); max-width: 620px; }
.dashboard-status { margin: 10px 0 24px; color: var(--muted); font-size: 14px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 9px 16px; border: 1px solid #d4dce5; border-radius: 7px; background: white; color: #425568; font-size: 14px; font-weight: 600; text-decoration: none; text-align: center; }
.button:hover:not(:disabled) { background: #f0f4f8; border-color: #a8b6c4; }
.button-primary { color: white; background: var(--navy); border-color: var(--navy); }
.button-primary:hover { color: white; background: #29445f; }
.full-button { width: 100%; }
.shortcut-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 25px; }
.shortcut { display: flex; flex-direction: column; gap: 5px; min-height: 143px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; text-decoration: none; }
.shortcut:hover { border-color: #b1bdca; background: #fafcff; }
.shortcut strong { margin-top: 5px; font-size: 15px; font-weight: 650; }
.shortcut > span:not(.shortcut-icon) { color: var(--muted); font-size: 14px; }
.shortcut-icon { color: #9a7137; font-size: 23px; line-height: 1; }
.shortcut-featured { color: white; background: var(--navy); border-color: var(--navy); }
.shortcut-featured:hover { background: #29445f; border-color: #29445f; }
.shortcut-featured .shortcut-icon { color: #f0c17b; }
.shortcut-featured > span:not(.shortcut-icon) { color: #c9d4df; }
.panel { min-width: 0; margin-bottom: 25px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 13px; margin-bottom: 20px; }
h2 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 650; letter-spacing: -.5px; }
.text-link { color: #315779; font-size: 14px; text-underline-offset: 3px; }
.section-status { margin: 20px 0; color: var(--muted); font-size: 14px; }
.error-panel { padding: 14px 16px; border: 1px solid #e2c8b6; border-radius: 7px; color: #80503c; background: #fff8f2; font-size: 14px; }
.error-panel p { margin: 0 0 12px; }
.people-grid { display: grid; grid-template-columns: minmax(150px, .7fr) 2fr; gap: 24px; align-items: center; }
.people-total { display: flex; flex-direction: column; gap: 3px; padding-right: 22px; border-right: 1px solid var(--line); }
.people-total > span { color: var(--muted); font-size: 14px; }
.people-total > strong { font-size: 40px; font-weight: 650; letter-spacing: -1px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.people-total small { color: var(--muted); font-size: 14px; }
.classification-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin: 0; }
.classification-counts > div, .followup-counts > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.classification-counts dt { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.classification-counts dd, .followup-counts dd { margin: 0; font-size: 23px; font-weight: 600; font-variant-numeric: tabular-nums; }
.category-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; }
.member-dot { background: #60917d; }
.consistent-dot { background: #6d8ca8; }
.visitor-dot { background: #be985a; }
.unknown-dot { background: #9a94a8; }
.section-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 22px; }
.period-label { margin: 0 0 19px; color: var(--muted); font-size: 14px; }
.attendance-metrics { display: grid; grid-template-columns: 1.6fr 1fr; gap: 15px; }
.attendance-metrics > div { display: flex; flex-direction: column; gap: 7px; }
.attendance-metrics span { color: var(--muted); font-size: 14px; }
.attendance-metrics strong { font-size: 33px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; }
.coverage-line { margin: 18px 0; padding: 11px 13px; border-radius: 6px; color: #4d687f; background: #f0f4f8; font-size: 14px; }
.sunday-chart { display: grid; gap: 13px; margin: 22px 0; }
.sunday-row { display: grid; grid-template-columns: 60px minmax(25px, 1fr) 110px; align-items: center; gap: 10px; font-size: 14px; }
.sunday-row a { color: #47627b; text-underline-offset: 3px; }
.sunday-row progress { display: block; width: 100%; height: 12px; border: 0; border-radius: 3px; color: #456a89; background: #eef2f6; appearance: none; }
.sunday-row progress::-webkit-progress-bar { border-radius: 3px; background: #eef2f6; }
.sunday-row progress::-webkit-progress-value { border-radius: 3px; background: #456a89; }
.sunday-row progress::-moz-progress-bar { border-radius: 3px; background: #456a89; }
.sunday-value { text-align: right; color: #51697f; font-variant-numeric: tabular-nums; }
.chart-gap { display: block; height: 12px; border: 1px dashed #b9c5d0; border-radius: 3px; background: #f8fafc; }
.sunday-future .chart-gap { border-color: #d2bb96; background: #fff8ed; }
.sunday-future .sunday-value { color: #95703b; }
.latest-sunday { padding-top: 18px; border-top: 1px solid var(--line); }
.latest-sunday > strong { font-size: 14px; font-weight: 600; }
.latest-sunday p { margin: 5px 0; font-size: 14px; }
.followup-total { display: flex; align-items: center; gap: 18px; margin: 4px 0 23px; }
.followup-total > strong { color: #a07433; font-size: 50px; font-weight: 650; line-height: 1.1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.followup-total span { font-size: 15px; font-weight: 600; }
.followup-total p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.followup-counts { display: grid; gap: 12px; margin: 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.followup-counts dt { color: #5d7185; font-size: 14px; }
.followup-counts dd { font-size: 20px; }
.coverage-note { margin: 20px 0; padding: 14px 16px; color: #725328; background: #fff8ed; border: 1px solid #eadcc4; border-radius: 7px; font-size: 14px; }
.coverage-note > strong { font-weight: 650; }
.coverage-note p { margin: 5px 0 0; }
.data-date { margin: 15px 0 0; color: #7e8c9b; font-size: 12px; overflow-wrap: anywhere; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 5px; padding: 24px 0; border-top: 1px solid var(--line); color: #7e8c9b; font-size: 14px; }
.noscript-message { padding: 16px; color: #725328; background: #fff8ed; text-align: center; }
@media (max-width: 1180px) { .overview-grid { grid-template-columns: 1fr; gap: 0; } .shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; } .people-grid { grid-template-columns: 1fr; gap: 20px; } .people-total { padding-right: 0; border-right: 0; } }
@media (max-width: 560px) { .topbar { padding: 17px 0; } .page-heading { padding-top: 27px; } h1 { font-size: 32px; letter-spacing: -1.1px; } .description { font-size: 16px; } .shortcut-grid { gap: 9px; } .shortcut { padding: 16px 13px; } .shortcut strong { font-size: 14px; } .panel { padding: 19px 15px; } h2 { font-size: 21px; } .classification-counts { grid-template-columns: 1fr; gap: 12px; } .classification-counts dd { font-size: 21px; } .attendance-metrics { gap: 10px; } .sunday-row { grid-template-columns: 54px minmax(18px, 1fr) 110px; gap: 8px; font-size: 14px; } footer { flex-direction: column; } }
@media (max-width: 350px) { .shortcut-grid { grid-template-columns: 1fr; } }

.offering-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.offering-toolbar label { display: grid; gap: 4px; font-weight: 600; }
#offering-reference-form > label { min-width: 0; max-width: 100%; }
#offering-reference-file { min-height: 44px; max-width: 100%; font: inherit; }
#offering-reference-file::file-selector-button { min-height: 44px; }
#offering-date { min-height: 44px; font: inherit; padding: 6px 10px; border: 1px solid #c9d5e2; border-radius: 7px; }
#offering-intake .offering-primary { background: #172c43; border-color: #172c43; color: white; }
#offering-error { color: #9b342c; }
#offering-preview { margin: 12px 0; }
#offering-preview img { height: 180px; }
#offering-photo-follow-up {
  background: #fff5db;
  border: 1px solid #c38a2c;
  border-inline-start: 4px solid #a36412;
  border-radius: 8px;
  padding: 14px;
  margin: 14px 0;
}
#offering-photo-follow-up h3 { margin: 0; color: #613904; }
#offering-photo-requests, #offering-reconciliation { padding-inline-start: 1.25rem; }
#offering-photo-requests li + li { margin-top: 10px; }
#offering-photo-requests p { margin: 4px 0 0; }
#offering-photo-follow-up .section-note { margin-bottom: 0; color: #613904; }
#offering-reconciliation li { padding: 4px 8px; margin-block: 4px; border-radius: 4px; }
#offering-reconciliation .needs-review { background: #fff5db; color: #613904; font-weight: 650; }
#offering-reconciliation .mismatch { background: #fcebe9; color: #842c24; font-weight: 650; }
#offering-analysis-suggestions details { margin: 10px 0; }
.offering-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; padding: 0; list-style: none; }
.offering-photos li { display: grid; gap: 8px; min-width: 0; }
.offering-photos a { display: grid; gap: 6px; }
.offering-photos img { width: 100%; height: 140px; object-fit: contain; background: #eef3f8; border-radius: 7px; }

.weekly-entry { min-width: 0; }
.weekly-entry fieldset { border: 0; margin: 0; min-width: 0; padding: 0; }
.weekly-entry fieldset fieldset { border-top: 1px solid #dce5ee; margin: 18px 0; padding-top: 8px; }
.weekly-entry legend { font-weight: 700; padding: 0 6px 0 0; }
.entry-grid, .entry-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 10px; }
.entry-field { display: grid; gap: 4px; margin: 5px 0; min-width: 0; }
.entry-field :is(input, select, textarea) { width: 100%; min-height: 44px; padding: 7px 9px; color: inherit; background: white; border: 1px solid #c9d5e2; border-radius: 7px; font: inherit; }
.entry-contributions details { padding: 10px 0; border-bottom: 1px solid #dce5ee; }
.entry-contributions summary { font-weight: 600; cursor: pointer; min-height: 32px; }
.entry-totals dt { color: #52677a; }
.entry-totals dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
#weekly-entry-error { color: #9b342c; }
#weekly-entry-add-contribution { margin-top: 10px; }

.entry-field[hidden] { display: none; }

.offering-monthly { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
#offering-month-total { font-size:1.5rem; font-weight:700; margin:5px 0; }
.offering-trend-chart { list-style:none; padding:0; display:grid; gap:14px; }
.offering-trend-chart li { display:grid; grid-template-columns:1fr auto; gap:5px 12px; align-items:center; }

#offering-trend-line { width:100%; height:240px; }
