:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --page: #f7f4e9;
  --surface: #fffdf6;
  --surface-soft: #f1efe5;
  --ink: #17372e;
  --muted: #64736b;
  --line: #d8dfd2;
  --green: #1f5a3a;
  --green-strong: #0f3a2e;
  --green-soft: #e3eee4;
  --sage: #8dae7f;
  --blue: #3e8ca0;
  --terracotta: #c7613e;
  --cream: #f7f4e9;
  --slate: #2d3740;
  --danger: #a33f32;
  --shadow: 0 18px 48px rgb(18 49 39 / 7%);
  background: var(--page);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--page); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }

.topbar { width: min(1120px, 100% - 48px); min-height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand b, .brand small { display: block; }
.brand b { font: 700 18px/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: .025em; }
.mark { width: 48px; height: 48px; flex: none; display: block; overflow: hidden; border: 1px solid rgb(199 97 62 / 45%); border-radius: 15px; background: var(--cream); }
.mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.city, .eyebrow { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.city { margin: 0; text-align: right; }
.city::after { width: 6px; height: 6px; margin-left: 9px; display: inline-block; border-radius: 50%; background: var(--terracotta); content: ""; vertical-align: 1px; }

.layout { width: min(1120px, 100% - 48px); margin: 0 auto; padding: 36px 0 48px; }
.intro, .login-intro { min-width: 0; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: clamp(32px, 7vw, 96px); padding: 8px 0 38px; }
.intro-copy { max-width: 630px; }
.eyebrow { margin: 0 0 13px; color: var(--sage); }
.intro h1, .login-intro h1 { max-width: 620px; margin: 0; font: 600 clamp(42px, 5.2vw, 68px)/.99 Georgia, "Times New Roman", serif; letter-spacing: -.05em; text-wrap: balance; }
.intro h1 em { color: var(--sage); font-weight: 500; }
.intro-copy > p:not(.eyebrow), .login-intro > p:not(.eyebrow) { max-width: 520px; margin: 17px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.intro-actions { margin-top: 22px; }
.primary, .secondary-button { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--green-strong); border-radius: 9px; background: var(--green-strong); color: var(--cream); font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.primary:hover { transform: translateY(-1px); border-color: var(--terracotta); background: var(--terracotta); }
.primary:disabled, .secondary-button:disabled { opacity: .58; cursor: wait; transform: none; }
.secondary-button { border-color: var(--line); background: var(--surface); color: var(--ink); }
.secondary-button:hover { border-color: var(--sage); background: var(--surface-soft); }
.trust { max-width: 520px; margin-top: 17px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.trust-icon { width: 22px; height: 22px; flex: none; display: grid; place-items: center; color: var(--sage); }
.trust-icon svg { width: 19px; height: 19px; }
.landscape-card { position: relative; width: 100%; aspect-ratio: 1; margin: 0; overflow: hidden; border: 1px solid rgb(199 97 62 / 22%); border-radius: 50%; background: var(--cream); box-shadow: var(--shadow); }
.landscape-card::after { position: absolute; inset: 58% 0 0; content: ""; background: linear-gradient(transparent, rgb(8 35 28 / 78%)); pointer-events: none; }
.landscape-card img { width: 100%; height: 100%; display: block; object-fit: cover; }
.landscape-card figcaption { position: absolute; z-index: 1; right: 16px; bottom: 16px; left: 16px; color: #fffdf6; font: 600 14px/1.25 Georgia, "Times New Roman", serif; text-align: center; text-shadow: 0 1px 8px rgb(0 0 0 / 35%); }
.steps { padding: 18px 0 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps-title { grid-column: 1 / -1; margin: 0 0 14px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.step { min-width: 0; padding-right: 20px; display: flex; align-items: center; gap: 11px; }
.step + .step { padding-left: 20px; border-left: 1px solid var(--line); }
.step-number { width: 29px; height: 29px; flex: none; display: grid; place-items: center; border: 1px solid var(--terracotta); border-radius: 50%; color: var(--terracotta); font-size: 10px; font-weight: 750; }
.step span:last-child { color: var(--muted); font-size: 12px; line-height: 1.45; }

.service { padding-top: 24px; }
.service-heading { margin-bottom: 12px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.service-heading .eyebrow { margin-bottom: 5px; }
.service-heading h2, .pane h2, .dashboard-section h2 { margin: 0; font: 600 28px/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.03em; }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.tabs { padding: 7px; display: flex; gap: 4px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.tab { min-height: 42px; padding: 8px 14px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.3; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.tab:hover { color: var(--ink); }
.tab.active { border-color: var(--line); background: var(--surface); color: var(--ink); }
.pane { min-width: 0; padding: clamp(20px, 3vw, 30px); }
.pane .eyebrow { margin-bottom: 8px; }
.muted { margin: 8px 0 19px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.field { min-width: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.field label, .field-label { color: var(--ink); font-size: 13px; font-weight: 650; }
.field input, .field select, .field textarea, .admin-input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.4; transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { min-height: 86px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .admin-input::placeholder { color: var(--muted); opacity: .75; }
.field input:hover, .field select:hover, .field textarea:hover, .admin-input:hover { border-color: var(--sage); }
.field input:focus, .field select:focus, .field textarea:focus, .admin-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(62 140 160 / 16%); }
.field-help { margin: -1px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.full { grid-column: 1 / -1; }
.check { margin: 10px 0; display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.55; cursor: pointer; }
.check input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--green); }
.consent { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.submit { min-width: 180px; margin-top: 9px; }
.message { min-height: 20px; margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.message.error { color: var(--danger); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.row, .actions { display: flex; align-items: center; justify-content: space-between; gap: 11px; }
.request { padding: 17px 0; border-bottom: 1px solid var(--line); }
.request h3 { margin: 0 0 6px; font: 650 16px/1.3 Georgia, "Times New Roman", serif; }
.request p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.request .actions { justify-content: flex-start; flex-wrap: wrap; }
.request .tab { flex: 0 0 auto; border-color: var(--line); background: var(--surface); }
.request .primary { min-height: 40px; }
.resident-section { margin-top: 24px; padding-top: 21px; border-top: 1px solid var(--line); }
.resident-section .muted { margin-bottom: 12px; }
#resident-details { display: grid; grid-template-columns: minmax(100px, .7fr) 1.3fr; gap: 9px 14px; font-size: 13px; }
#resident-details dt { color: var(--muted); }
#resident-details dd { margin: 0; color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }

.login-layout { min-height: calc(100vh - 150px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .8fr); align-items: center; gap: clamp(40px, 8vw, 120px); }
.login-intro { max-width: 560px; }
.access-label { width: fit-content; margin-bottom: 20px; padding: 8px 11px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 700; }
.access-label svg { width: 15px; height: 15px; color: var(--sage); }
.login-intro h1 { font-size: clamp(40px, 4.7vw, 58px); }
.login-card { padding: clamp(26px, 4vw, 42px); }
.login-card h2 { margin-bottom: 8px; font: 600 28px/1.2 Georgia, "Times New Roman", serif; }
.login-card .muted { margin-top: 0; margin-bottom: 23px; }
#send-code-button { width: 100%; }
.primary svg { width: 17px; height: 17px; flex: none; }
.email-field { margin-bottom: 19px; }
.admin-input { min-height: 54px; padding-inline: 15px; font-size: 16px; }
.login-note { margin-top: 16px; padding-top: 14px; display: flex; align-items: flex-start; gap: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }
.login-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--sage); }
.verify-block { margin-top: 21px; padding-top: 19px; border-top: 1px solid var(--line); }
.verify-block .field { margin-bottom: 10px; }
.verify-block .admin-input { letter-spacing: .16em; }
.admin-authenticated .login-layout { display: block; min-height: 0; padding-top: 35px; }
.admin-authenticated .login-intro { display: none; }
.admin-authenticated .login-card { padding: clamp(22px, 3vw, 36px); }
.dashboard-heading, .section-heading, .dashboard-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dashboard-heading { margin-bottom: 28px; }
.dashboard-heading h1 { margin: 0; font: 600 clamp(32px, 4vw, 46px)/1 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.dashboard-heading .muted { margin: 8px 0 0; }
.dashboard-actions { flex: none; }
.metric-grid { margin-bottom: 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metric-card { min-height: 96px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.metric-card span { color: var(--muted); font-size: 12px; font-weight: 650; }
.metric-card strong { color: var(--sage); font: 600 30px/1 Georgia, "Times New Roman", serif; }
.dashboard-section { margin-top: 28px; }
.section-heading { margin-bottom: 13px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.data-table th, .data-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table thead th { background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--green-soft) 45%, transparent); }
.data-table tbody th { font-weight: 700; }
.person-cell { min-width: 140px; color: var(--ink); }
.table-actions { min-width: 185px; white-space: nowrap; }
.table-actions .primary, .table-actions .tab { min-height: 34px; margin-right: 5px; padding: 6px 9px; font-size: 11px; }
.table-actions .tab { border-color: var(--line); background: var(--surface); }
.empty-cell { padding: 24px !important; color: var(--muted); text-align: center; }
.main-nav, footer nav { display: flex; align-items: center; gap: 18px; }
.main-nav a, footer nav a { color: var(--muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.main-nav a:hover, footer nav a:hover { color: var(--terracotta); }
.main-nav .nav-admin { padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; }
.landing { padding-top: 30px; }
.landing-hero { position: relative; min-height: 350px; padding: 28px 34px 52px; display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: center; column-gap: clamp(24px, 5vw, 60px); overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }
.landing-copy { position: relative; z-index: 1; max-width: 660px; }
.landing-copy .eyebrow { margin-bottom: 13px; }
.landing-copy h1 { max-width: 610px; margin: 0; font: 600 clamp(42px, 5.2vw, 64px)/1 Georgia, "Times New Roman", serif; letter-spacing: -.05em; text-wrap: balance; }
.landing-copy h1 em { color: var(--sage); font-weight: 500; }
.landing-lead { max-width: 470px; margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.landing-cta { margin-top: 18px; }
.landing-note { margin: 11px 0 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.landing-note span { color: var(--terracotta); font-size: 18px; }
.landing-art { width: min(100%, 230px); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border: 1px solid rgb(199 97 62 / 28%); border-radius: 50%; background: var(--cream); }
.landing-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.landing-location { position: absolute; right: 28px; bottom: 20px; display: flex; align-items: center; gap: 8px; color: var(--ink); font: 600 12px/1.25 Georgia, "Times New Roman", serif; }
.landing-location small { color: var(--muted); font: 11px/1.5 Inter, ui-sans-serif, sans-serif; }
.location-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); }
.community { padding: 46px 0 38px; }
.section-intro { max-width: 560px; margin-bottom: 22px; }
.section-intro h2, .how-it-works h2 { margin: 0; font: 600 clamp(28px, 3.4vw, 36px)/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.section-intro > p:last-child { max-width: 470px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.service-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.service-card { min-height: 178px; padding: 17px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .16s ease, transform .16s ease; }
.service-card:hover { transform: translateY(-2px); border-color: var(--sage); }
.card-index { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.card-icon { margin-top: 8px; color: var(--terracotta); font-size: 22px; line-height: 1; }
.card-title { margin-top: 7px; font: 600 19px/1.15 Georgia, "Times New Roman", serif; }
.card-description { max-width: 290px; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.card-link { margin-top: auto; padding-top: 12px; color: var(--sage); font-size: 12px; font-weight: 700; }
.how-it-works { padding: 21px 0; display: grid; grid-template-columns: .8fr 1.5fr; align-items: start; gap: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-it-works h2 { font-size: 30px; }
.landing-steps { display: grid; gap: 11px; }
.landing-steps p { margin: 0; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.landing-steps span { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--terracotta); border-radius: 50%; color: var(--terracotta); font-size: 9px; font-weight: 750; }
.privacy-callout, .service-privacy { margin-top: 18px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.privacy-callout > span { color: var(--sage); font-size: 23px; }
.privacy-callout p, .service-privacy p { margin: 0; }
.privacy-callout a, .service-privacy a { color: var(--ink); font-weight: 700; }
.resident-services { max-width: 840px; padding-top: 27px; }
.service-page-heading { align-items: center; }
.service-page-heading h1 { margin: 0; font: 600 clamp(32px, 4vw, 44px)/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.service-page-heading .muted { margin: 8px 0 0; }
.optional { color: var(--muted); font-size: 11px; font-weight: 400; }
.legal-page { max-width: 900px; padding-top: 32px; }
.back-link { color: var(--muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.legal-content { max-width: 720px; margin: 30px auto 54px; padding: clamp(24px, 5vw, 54px); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.legal-content h1 { margin: 0; font: 600 clamp(38px, 5vw, 54px)/1 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.legal-updated { margin: 10px 0 27px !important; color: var(--muted); font-size: 11px !important; }
.legal-content h2 { margin: 27px 0 8px; font: 600 21px/1.2 Georgia, "Times New Roman", serif; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 13px; line-height: 1.75; }
.legal-content ul { padding-left: 20px; }
.legal-note { margin-top: 30px; padding: 14px; border-left: 3px solid var(--terracotta); background: var(--surface-soft); }
footer { width: min(1160px, 100% - 48px); margin: 0 auto; padding: 18px 0 23px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer a { color: var(--muted); font-weight: 650; text-decoration: none; }
footer a:hover { color: var(--terracotta); text-decoration: underline; }

@media (max-width: 820px) {
  .topbar, .layout, footer { width: min(100% - 36px, 680px); }
  .landing { width: min(100% - 36px, 760px); }
  .landing-hero { min-height: 320px; padding-inline: 26px; grid-template-columns: minmax(0, 1fr) 200px; gap: 20px; }
  .landing-art { width: 190px; }
  .landing-copy h1 { font-size: clamp(42px, 5.8vw, 58px); }
  .community { padding-block: 38px 32px; }
  .service-card { padding: 16px; }
  .legal-page { width: min(100% - 36px, 760px); }
  .intro { grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; }
  .landscape-card { width: 220px; }
  .intro h1 { font-size: clamp(40px, 7vw, 56px); }
  .login-layout { grid-template-columns: minmax(0, 1fr) minmax(330px, .85fr); gap: 28px; }
  .steps { gap: 12px; }
  .step { padding-right: 8px; }
  .step + .step { padding-left: 8px; }
  .admin-authenticated .login-layout { width: min(100% - 36px, 900px); }
}
@media (max-width: 620px) {
  .topbar, .layout, footer { width: min(100% - 30px, 520px); }
  .topbar { min-height: 70px; flex-wrap: wrap; padding: 11px 0; }
  .main-nav { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 10px 18px; }
  .main-nav a { font-size: 11px; }
  .main-nav .nav-admin { padding: 6px 8px; }
  .mark { width: 43px; height: 43px; border-radius: 13px; }
  .brand { gap: 9px; }
  .brand b { font-size: 16px; }
  .brand small { font-size: 10px; }
  .city { max-width: 100px; font-size: 8px; line-height: 1.5; }
  .layout { padding: 32px 0 44px; }
  .landing { padding: 20px 0 32px; }
  .landing-hero { min-height: 0; padding: 23px 18px 18px; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .landing-copy { order: 1; }
  .landing-copy h1 { font-size: clamp(38px, 9vw, 48px); }
  .landing-lead { margin-top: 11px; font-size: 14px; }
  .landing-cta { width: 100%; }
  .landing-art { width: min(55vw, 176px); order: 2; }
  .landing-location { position: static; grid-column: 1; justify-self: end; order: 3; margin-top: -6px; }
  .community { padding: 32px 0 27px; }
  .section-intro h2 { font-size: 29px; }
  .service-cards { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .service-card { min-height: 155px; padding: 15px; }
  .card-icon { margin-top: 6px; }
  .card-link { padding-top: 9px; }
  .how-it-works { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .privacy-callout { align-items: flex-start; }
  .resident-services { padding-top: 28px; }
  .service-page-heading h1 { font-size: 31px; }
  .legal-page { padding-top: 25px; }
  .legal-content { margin: 22px 0 35px; padding: 23px 18px; }
  footer nav { width: 100%; flex-wrap: wrap; gap: 9px 16px; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 0 0 27px; }
  .intro-copy { order: 1; }
  .landscape-card { width: min(100%, 250px); justify-self: center; order: 2; }
  .intro h1 { max-width: 480px; font-size: clamp(40px, 10vw, 54px); }
  .intro-copy > p:not(.eyebrow) { font-size: 15px; }
  .intro-actions .primary { width: 100%; }
  .trust { align-items: flex-start; font-size: 11px; }
  .steps { padding: 15px 0 18px; grid-template-columns: 1fr; gap: 12px; }
  .steps-title { margin-bottom: 0; }
  .step, .step + .step { padding: 0; border: 0; }
  .service { padding-top: 27px; }
  .service-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .panel { border-radius: 11px; }
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 5px; }
  .tab { min-height: 50px; padding: 7px 4px; font-size: 12px; }
  .pane { padding: 21px 15px; }
  .pane h2 { font-size: 23px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .full { grid-column: auto; }
  .field input, .field select, .field textarea { min-height: 48px; }
  .check { font-size: 12px; }
  .submit { width: 100%; }
  .login-layout { min-height: 0; padding-top: 36px; grid-template-columns: 1fr; gap: 24px; }
  .login-intro h1 { font-size: 42px; }
  .login-card { padding: 25px 19px; }
  .admin-authenticated .login-layout { width: min(100% - 30px, 520px); padding-top: 24px; }
  .admin-authenticated .login-card { padding: 21px 15px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-heading h1 { font-size: 36px; }
  .dashboard-actions { width: 100%; }
  .dashboard-actions > button { flex: 1; }
  .metric-grid { gap: 8px; }
  .metric-card { min-height: 84px; padding: 12px; }
  .metric-card span { font-size: 10px; }
  .metric-card strong { font-size: 27px; }
  .table-wrap { border: 0; border-radius: 0; }
  .data-table { min-width: 650px; }
  .actions { align-items: stretch; flex-direction: column; }
  .actions > button { width: 100%; }
  .row { align-items: flex-start; }
  #resident-details { grid-template-columns: minmax(86px, .65fr) minmax(0, 1.35fr); gap: 8px 10px; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #2d3740;
    --surface: #354149;
    --surface-soft: #3b474f;
    --ink: #f7f4e9;
    --muted: #b9c5bf;
    --line: #53616a;
    --green: #1f5a3a;
    --green-strong: #1f5a3a;
    --green-soft: #12352b;
    --sage: #8dae7f;
    --blue: #3e8ca0;
    --terracotta: #c7613e;
    --danger: #ffaaa2;
    --shadow: 0 18px 48px rgb(0 0 0 / 20%);
  }
  .field input, .field select, .field textarea, .admin-input { border-color: var(--line); }
  .landscape-card { border-color: #385548; }
  .landing-copy h1 em { color: var(--sage); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
