@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #183533;
  --ink-soft: #476360;
  --muted: #71827f;
  --paper: #f4f8f7;
  --white: #fff;
  --line: #e1eae7;
  --teal: #12766e;
  --teal-dark: #0b5e58;
  --teal-pale: #e8f4f1;
  --coral: #ce7658;
  --danger: #b5463c;
  --shadow: 0 18px 52px rgba(28, 71, 64, .08);
  --sans: 'DM Sans', Arial, sans-serif;
  --display: 'Manrope', 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.page-width { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 30; top: -60px; left: 16px; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }

.site-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px clamp(20px, 5vw, 76px); background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: var(--teal-pale); }
.brand-mark img { width: 26px; height: 26px; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font: 800 17px var(--display); letter-spacing: -.05em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: .04em; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 27px); }
.site-nav a { padding: 8px 0; color: var(--ink-soft); font-size: 11px; font-weight: 600; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal); border-color: var(--coral); }
.staff-link { white-space: nowrap; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 0; border-radius: 9px; padding: 0 17px; font-size: 11px; font-weight: 700; transition: transform .18s, background .18s, box-shadow .18s; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(18, 118, 110, .3); outline-offset: 2px; }
.button-primary { background: var(--teal); color: white; box-shadow: 0 8px 18px rgba(18, 118, 110, .16); }
.button-primary:hover { background: var(--teal-dark); box-shadow: 0 10px 24px rgba(18, 118, 110, .23); }
.button-quiet { background: transparent; color: var(--ink); padding-inline: 9px; }
.button-quiet:hover { background: var(--teal-pale); }
.button-outline { border: 1px solid var(--line); background: white; color: var(--ink); }
.button-outline:hover { border-color: #a8c5bd; background: #f9fcfb; }
.button-full { width: 100%; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 15px; color: var(--teal); font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.eyebrow-line { width: 22px; height: 1px; display: inline-block; background: var(--coral); }
.live-dot, .status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #43a68b; box-shadow: 0 0 0 3px #e2f2eb; }
.lead { max-width: 630px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-size: 11px; font-weight: 700; }
.text-link:hover { color: var(--teal-dark); }

.home-hero { min-height: 500px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: center; gap: clamp(35px, 7vw, 100px); padding-block: 70px 58px; }
.hero-copy { max-width: 690px; }
.hero-copy h1, .page-hero h1, .dashboard-heading h1, .staff-auth-card h1, .confirmation-card h1 { margin: 0; color: var(--ink); font: 600 clamp(42px, 6vw, 68px)/1.05 var(--display); letter-spacing: -.065em; }
.hero-copy h1 em, .page-hero h1 em, .section-heading h2 em, .dashboard-heading h1 em, .staff-auth-card h1 em, .confirmation-card h1 em, .about-story h2 em, .contact-card h2 em { color: var(--teal); font-style: normal; }
.hero-copy .lead { margin: 20px 0; }
.hero-actions { display: flex; align-items: center; gap: 23px; flex-wrap: wrap; margin-top: 23px; }
.prototype-note { display: flex; align-items: center; gap: 9px; margin-top: 27px; color: #788984; font-size: 10px; }
.hero-panel { position: relative; min-height: 310px; overflow: hidden; padding: 23px; border: 1px solid #dbe8e3; border-radius: 17px 17px 4px 17px; background: linear-gradient(145deg, #e8f4ef 0%, #dfeee7 100%); box-shadow: var(--shadow); }
.panel-top { display: flex; align-items: center; gap: 9px; color: var(--teal); font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.panel-index { margin-left: auto; color: #87a39a; }
.panel-route { display: flex; align-items: center; margin: 63px 10px 25px; }
.route-node { width: 38px; height: 38px; z-index: 1; display: grid; place-items: center; border: 1px solid #c1d9ce; border-radius: 50%; background: #f8fcf9; color: var(--teal); font: 700 10px var(--display); }
.route-node:last-child { background: var(--teal); color: white; border-color: var(--teal); }
.route-line { height: 1px; flex: 1; background: #a5c8b9; }
.panel-caption { max-width: 245px; }
.panel-caption strong { font: 700 17px/1.35 var(--display); letter-spacing: -.035em; }
.panel-caption p { margin: 8px 0; color: #5c7770; font-size: 10px; }
.panel-stamp { position: absolute; right: 22px; bottom: 19px; color: rgba(18, 118, 110, .14); font: 800 65px/.9 var(--display); letter-spacing: -.1em; }
.benefit-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: 65px; padding-block: 60px 85px; }
.section-heading h2, .about-story h2, .closing-cta h2 { margin: 0; font: 600 clamp(31px, 4vw, 46px)/1.12 var(--display); letter-spacing: -.06em; }
.section-intro { max-width: 420px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.benefit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.benefit-card { min-height: 126px; display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .82); }
.benefit-number { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border-radius: 8px; background: var(--teal-pale); color: var(--teal); font: 700 9px var(--display); }
.benefit-card h3, .department-card h3, .steps-list h3 { margin: 1px 0 5px; font: 700 13px var(--display); letter-spacing: -.025em; }
.benefit-card p, .department-card p, .steps-list p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.how-section { padding: 67px 0 74px; background: #eaf2ee; border-block: 1px solid #e1ebe6; }
.how-inner { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: start; }
.steps-list { list-style: none; margin: 0; padding: 0; }
.steps-list li { display: grid; grid-template-columns: 43px 1fr 24px; gap: 14px; align-items: start; padding: 15px 0; border-bottom: 1px solid #d2e1da; }
.step-index { color: var(--teal); font: 700 11px var(--display); }
.step-arrow { justify-self: end; color: var(--coral); font-size: 16px; }
.closing-cta { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 75px; }

.page-hero { padding: 74px 0 43px; }
.page-hero h1 { font-size: clamp(40px, 5.5vw, 61px); }
.page-hero .lead { margin: 18px 0 0; }
.compact-hero { padding-bottom: 31px; }
.about-story { display: grid; grid-template-columns: .85fr 1.15fr; gap: 52px; padding: 33px 34px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.about-story p { margin: 0 0 15px; color: var(--muted); font-size: 11px; line-height: 1.85; }
.about-story .text-link { margin-top: 4px; }
.departments-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; padding: 75px 0; }
.department-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.department-card { min-height: 115px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.department-card>span { color: var(--coral); font-size: 8px; letter-spacing: .12em; }
.department-card h3 { margin-top: 8px; }
.notice-banner { display: flex; align-items: center; gap: 13px; margin-bottom: 72px; padding: 16px 18px; border: 1px solid #d3e6dd; border-radius: 9px; background: #eaf5ef; }
.notice-mark { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--teal); font-weight: 700; }
.notice-banner p { margin: 0; color: #58756c; font-size: 10px; }

.form-page { padding-bottom: 45px; }
.form-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px; align-items: start; }
.form-sidebar { position: sticky; top: 20px; padding: 18px 8px; }
.form-sidebar h2 { margin: 0; font: 700 19px var(--display); letter-spacing: -.04em; }
.form-steps { display: grid; gap: 14px; margin: 25px 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 10px; }
.form-steps li { display: flex; align-items: center; gap: 10px; }
.form-steps li span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #d4e2dc; border-radius: 8px; background: white; color: var(--teal); font: 700 9px var(--display); }
.sidebar-note { padding: 13px; border-left: 2px solid var(--coral); background: #fff; color: var(--ink-soft); font-size: 10px; }
.sidebar-note p { margin: 5px 0 0; color: var(--muted); line-height: 1.55; }
.form-card { overflow: hidden; border: 1px solid #e7eeeb; border-radius: 13px; background: white; box-shadow: var(--shadow); }
.card-topline { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 24px; border-bottom: 1px solid #edf1ef; background: #fbfdfc; color: #78908a; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.card-topline>span:first-child { display: flex; align-items: center; gap: 8px; color: var(--teal); }
.card-topline b, .field b { color: var(--coral); }
.form-section { min-width: 0; margin: 0; padding: 27px 25px 29px; border: 0; border-bottom: 1px solid #edf1ef; }
.form-section legend { float: left; width: 100%; display: flex; align-items: center; gap: 11px; margin: 0 0 20px; padding: 0; }
.form-section legend+* { clear: both; }
.section-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--teal-pale); color: var(--teal); font: 700 9px var(--display); }
.form-section legend strong, .form-section legend small { display: block; }
.form-section legend strong { font: 700 14px var(--display); letter-spacing: -.025em; }
.form-section legend small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; clear: both; }
.field-grid-two { grid-template-columns: 1fr 1fr; }
.field-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { min-width: 0; display: flex; flex-direction: column; gap: 6px; color: #38524e; font-size: 9px; font-weight: 700; }
.field>span { display: flex; align-items: center; gap: 5px; }
.field input, .field select, .field textarea, .filter-field input, .filter-field select { width: 100%; min-height: 42px; border: 1px solid #dfe8e5; border-radius: 8px; background: #fcfdfd; color: var(--ink); outline: 0; padding: 0 11px; font-size: 10px; font-weight: 400; transition: border-color .16s, box-shadow .16s, background .16s; }
.field textarea { min-height: 77px; resize: vertical; padding: 10px 11px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #a4b2ae; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-field input:focus, .filter-field select:focus { border-color: #58a798; background: white; box-shadow: 0 0 0 3px rgba(18, 118, 110, .09); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #cb6257; box-shadow: 0 0 0 3px rgba(181, 70, 60, .08); }
.field-error { min-height: 0; margin-top: -3px; color: var(--danger); font-size: 9px; font-weight: 500; }
.field-error:empty { display: none; }
.field-wide { grid-column: 1 / -1; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 55px; }
.input-suffix>span { position: absolute; top: 50%; right: 11px; transform: translateY(-50%); color: #94a49f; font-size: 9px; font-weight: 500; }
.optional-label { border-radius: 4px; background: #f0f5f3; color: #90a09b; padding: 3px 6px; font-size: 7px; letter-spacing: .08em; }
.field-hint { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; color: #80918c; font-size: 9px; }
.field-hint span { color: var(--teal); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 25px 23px; }
.form-footer p { display: flex; align-items: center; gap: 7px; margin: 0; color: #80918c; font-size: 9px; }
.privacy-icon { color: var(--teal); font-size: 14px; }
.notice { margin: 0; padding: 11px 13px; border: 1px solid transparent; border-radius: 8px; font-size: 10px; }
.notice.success { border-color: #cde8d8; background: #e8f5ee; color: #286a4b; }
.notice.error { border-color: #f0d1cd; background: #fff0ee; color: #9b3832; }
#registration-message { margin: 0 25px 20px; }

.confirmation-page { min-height: 590px; display: grid; place-items: center; padding-block: 55px; }
.confirmation-card { width: min(650px, 100%); padding: 39px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); }
.confirmation-check { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 50%; background: #e6f4ec; color: #32835c; font-size: 19px; font-weight: 700; }
.confirmation-card h1 { font-size: clamp(36px, 5vw, 49px); }
.confirmation-card .lead { font-size: 11px; }
.reference-block { display: flex; flex-direction: column; gap: 5px; margin-top: 24px; padding: 15px 17px; border: 1px dashed #a8cabc; border-radius: 9px; background: #f3faf6; }
.reference-block span { color: #729087; font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.reference-block strong { overflow-wrap: anywhere; color: var(--teal); font: 700 16px var(--display); }
.summary-block { margin-top: 22px; }
.summary-block h2, .carry-card h2 { margin: 0 0 9px; font: 700 14px var(--display); }
.summary-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0; }
.summary-list div { padding: 9px 0; border-bottom: 1px solid #edf1ef; }
.summary-list dt { color: #82928d; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.summary-list dd { margin: 3px 0 0; color: var(--ink-soft); font-size: 10px; }
.carry-card { display: flex; gap: 13px; margin-top: 21px; padding: 15px; border-radius: 10px; background: #eef5f1; }
.carry-icon { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 8px; background: white; color: var(--teal); font: 700 8px var(--display); }
.carry-card ul { margin: 0; padding-left: 17px; color: var(--ink-soft); font-size: 9px; }
.prototype-callout { margin: 17px 0; color: #879792; font-size: 9px; }
.no-confirmation { text-align: center; }
.no-confirmation .eyebrow { justify-content: center; }
.no-confirmation h1 { margin-bottom: 15px; }
.no-confirmation .button { margin-top: 15px; }

.faq-layout { display: grid; grid-template-columns: .67fr 1.33fr; gap: 65px; padding: 12px 0 80px; }
.faq-aside { align-self: start; position: sticky; top: 20px; padding: 18px 5px; }
.faq-aside h2 { margin: 0; font: 700 19px var(--display); }
.faq-aside p { color: var(--muted); font-size: 10px; }
.faq-list details { border-bottom: 1px solid #dce7e3; }
.faq-list summary { position: relative; padding: 17px 29px 17px 0; cursor: pointer; list-style: none; font: 700 12px var(--display); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 2px; top: 14px; color: var(--teal); font: 500 18px var(--sans); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { max-width: 620px; margin: 0 0 16px; color: var(--muted); font-size: 10px; line-height: 1.8; }

.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 23px; padding-bottom: 78px; }
.contact-card, .map-card { border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.contact-card { padding: 26px; }
.contact-card h2 { margin: 0 0 23px; font: 700 27px/1.2 var(--display); letter-spacing: -.05em; }
.contact-details { display: grid; gap: 14px; margin: 0; }
.contact-details dt { color: #82928d; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-details dd { margin: 3px 0 0; color: var(--ink-soft); font-size: 10px; }
.contact-details a { color: var(--teal); text-decoration: underline; text-decoration-color: #a9c9bd; text-underline-offset: 3px; }
.contact-card .prototype-callout { margin-top: 21px; padding-top: 12px; border-top: 1px solid #edf1ef; }
.map-card { overflow: hidden; margin: 0; padding: 11px; }
.map-frame { position: relative; overflow: hidden; min-height: 340px; border-radius: 9px; background: #e7f0eb; }
.map-frame svg { width: 100%; height: 100%; min-height: 340px; display: block; }
.map-label { position: absolute; right: 12px; top: 12px; padding: 6px 8px; border-radius: 5px; background: rgba(255,255,255,.9); color: var(--teal); font-size: 7px; font-weight: 700; letter-spacing: .12em; }
.map-card figcaption { padding: 9px 4px 1px; color: #84938f; font-size: 8px; }

.staff-auth-page { min-height: 590px; display: grid; place-items: center; padding-block: 55px; }
.staff-auth-card { width: min(420px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); }
.auth-seal { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 21px; border-radius: 14px; background: var(--teal-pale); }
.auth-seal img { width: 28px; }
.staff-auth-card h1 { font-size: 42px; }
.staff-auth-card .lead { font-size: 10px; }
.stack-form { display: grid; gap: 14px; margin-top: 19px; }
.security-caption { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; color: #879792; font-size: 9px; }
.security-caption span { color: var(--teal); }

.dashboard-page { padding-block: 49px 76px; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; }
.dashboard-heading h1 { font-size: clamp(40px, 5vw, 56px); }
.dashboard-heading .lead { margin: 13px 0 0; font-size: 11px; }
.dashboard-actions { display: flex; align-items: center; gap: 16px; padding-bottom: 5px; }
.signed-in-label { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 9px; white-space: nowrap; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.stat-card { min-height: 120px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.stat-highlight { border-color: #cde2d7; background: #eaf5ef; }
.stat-label { color: #83948e; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.stat-card strong { color: var(--ink); font: 700 30px var(--display); letter-spacing: -.06em; }
.stat-foot { color: #8a9994; font-size: 8px; }
.records-panel, .record-preview { padding: 23px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.records-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.records-heading .eyebrow { margin-bottom: 5px; }
.records-heading h2 { margin: 0; font: 700 19px var(--display); letter-spacing: -.04em; }
.records-heading .button { min-height: 37px; font-size: 9px; }
.records-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 9px; margin: 19px 0 14px; }
.search-field { flex: 1 1 250px; min-width: 190px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fcfdfd; padding: 0 10px; color: #849690; }
.search-field input { flex: 1; min-width: 0; height: 39px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 9px; }
.search-field kbd { color: #9aa9a5; font-size: 8px; }
.filter-field { min-width: 145px; display: grid; gap: 4px; color: #82928d; font-size: 8px; font-weight: 700; }
.filter-field input, .filter-field select { min-height: 39px; padding-inline: 9px; font-size: 9px; }
.records-toolbar>.button { min-height: 39px; font-size: 9px; }
.records-panel>.notice { margin-bottom: 12px; }
.table-wrap { overflow: auto; border: 1px solid #e8efec; border-radius: 8px; }
.records-table { width: 100%; border-collapse: collapse; background: white; font-size: 9px; }
.records-table th, .records-table td { padding: 11px 10px; border-bottom: 1px solid #edf1ef; text-align: left; vertical-align: middle; }
.records-table th { background: #f8fbf9; color: #758882; font-size: 7px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.records-table td { color: var(--ink-soft); }
.records-table tbody tr:last-child td { border-bottom: 0; }
.patient-cell strong, .patient-cell small { display: block; }
.patient-cell strong { color: var(--ink); font-size: 9px; }
.patient-cell small { margin-top: 2px; color: #879792; font-size: 8px; }
.id-cell { max-width: 126px; overflow-wrap: anywhere; color: #6d827b !important; font-family: monospace; font-size: 8px !important; }
.row-actions { display: flex; gap: 5px; white-space: nowrap; }
.row-actions .button { min-height: 28px; padding: 0 8px; font-size: 8px; }
.row-actions .delete-button { color: var(--danger); }
.table-empty { padding: 25px !important; text-align: center !important; color: var(--muted) !important; }
.table-footnote { margin: 12px 0 0; color: #8b9995; font-size: 8px; }
.record-preview { margin-top: 17px; }
.record-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 0; }
.record-preview-grid div { min-width: 0; padding: 10px; border-radius: 8px; background: #f6f9f7; }
.record-preview-grid dt { color: #82928d; font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.record-preview-grid dd { margin: 4px 0 0; color: var(--ink-soft); font-size: 9px; overflow-wrap: anywhere; white-space: pre-wrap; }
.edit-dialog { width: min(700px, calc(100vw - 28px)); max-width: none; max-height: calc(100vh - 28px); overflow: hidden; padding: 0; border: 0; border-radius: 14px; color: var(--ink); box-shadow: 0 25px 100px rgba(14, 42, 38, .28); }
.edit-dialog::backdrop { background: rgba(19, 42, 39, .45); backdrop-filter: blur(3px); }
.dialog-shell { max-height: calc(100vh - 28px); overflow: auto; background: white; }
.dialog-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: 17px 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.dialog-header .eyebrow { margin-bottom: 5px; }
.dialog-header h2 { margin: 0; font: 700 17px var(--display); }
.icon-button { width: 31px; height: 31px; border: 0; border-radius: 8px; background: #f0f5f3; color: var(--ink-soft); font-size: 20px; line-height: 1; }
.dialog-content { padding: 21px 23px 25px; }
#edit-message { margin-top: 14px; }
.edit-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
.edit-actions .button { min-height: 39px; font-size: 9px; }

.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px 25px; padding: 19px clamp(20px, 5vw, 76px); border-top: 1px solid var(--line); background: white; color: #82928d; font-size: 8px; }
.footer-brand { color: var(--ink); font: 800 13px var(--display); }
.footer-brand span { color: #879792; font: 400 8px var(--sans); }
.site-footer nav { display: flex; gap: 16px; }
.site-footer nav a:hover { color: var(--teal); }
.site-footer p { margin: 0; color: #768780; }

@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; gap: 8px 18px; }
  .site-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; }
  .site-nav a { flex: 0 0 auto; }
  .home-hero { min-height: auto; grid-template-columns: 1fr .8fr; gap: 28px; padding-block: 55px; }
  .benefit-section, .how-inner, .departments-section { grid-template-columns: 1fr; gap: 32px; }
  .form-layout { grid-template-columns: 1fr; }
  .form-sidebar { position: static; padding: 0; }
  .form-steps { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
  .sidebar-note { display: none; }
  .contact-layout { grid-template-columns: 1fr 1fr; }
  .records-panel { padding: 17px; }
}
@media (max-width: 640px) {
  .page-width { width: calc(100% - 32px); }
  .site-header { padding: 10px 16px; }
  .brand-copy small { font-size: 8px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 10px; }
  .staff-link { min-height: 34px; font-size: 9px; }
  .home-hero { display: block; padding-block: 43px 39px; }
  .hero-copy h1 { font-size: 45px; }
  .hero-copy .lead { font-size: 12px; }
  .hero-panel { min-height: 255px; margin-top: 29px; }
  .panel-route { margin-block: 44px 20px; }
  .benefit-section { padding-block: 42px 54px; }
  .benefit-list, .department-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: 98px; }
  .how-section { padding-block: 47px; }
  .steps-list li { grid-template-columns: 33px 1fr 20px; gap: 10px; }
  .closing-cta { align-items: flex-start; flex-direction: column; padding-block: 50px; }
  .page-hero { padding: 48px 0 28px; }
  .page-hero h1 { font-size: 43px; }
  .about-story { grid-template-columns: 1fr; gap: 13px; padding: 22px; }
  .departments-section { padding-block: 48px; }
  .notice-banner { margin-bottom: 47px; }
  .form-layout { gap: 14px; }
  .form-steps { font-size: 9px; }
  .form-steps li span { width: 22px; height: 22px; }
  .card-topline { padding-inline: 13px; font-size: 7px; letter-spacing: .06em; }
  .form-section { padding: 21px 15px 23px; }
  .field-grid, .field-grid-two, .field-grid-three { grid-template-columns: 1fr; gap: 12px; }
  .field-wide { grid-column: auto; }
  .form-footer { align-items: stretch; flex-direction: column; padding: 17px 15px 20px; }
  .form-footer .button { width: 100%; }
  #registration-message { margin-inline: 15px; }
  .confirmation-page, .staff-auth-page { min-height: auto; padding-block: 36px; }
  .confirmation-card, .staff-auth-card { padding: 24px 19px; }
  .confirmation-card h1 { font-size: 36px; }
  .summary-list { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 9px; padding-bottom: 52px; }
  .faq-aside { position: static; }
  .contact-layout { grid-template-columns: 1fr; padding-bottom: 50px; }
  .map-frame, .map-frame svg { min-height: 260px; }
  .dashboard-page { padding-block: 35px 50px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .dashboard-actions { width: 100%; justify-content: space-between; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0; }
  .stat-card { min-height: 100px; padding: 12px; }
  .stat-card:last-child { grid-column: 1 / -1; min-height: 80px; }
  .records-panel, .record-preview { padding: 13px; }
  .records-heading { align-items: flex-start; }
  .records-heading h2 { font-size: 15px; }
  .records-toolbar { align-items: stretch; }
  .search-field { flex-basis: 100%; }
  .filter-field { flex: 1 1 42%; }
  .records-toolbar>.button { flex: 1 0 auto; }
  .records-table { min-width: 720px; }
  .record-preview-grid { grid-template-columns: 1fr 1fr; }
  .edit-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .dialog-shell { max-height: calc(100vh - 16px); }
  .dialog-content { padding: 16px; }
  .edit-actions .button { flex: 1; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 18px 16px; }
  .site-footer nav { flex-wrap: wrap; gap: 10px 15px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
