:root {
  --ink: #17352d;
  --muted: #61736d;
  --green-950: #0f382d;
  --green-900: #164b3b;
  --green-700: #28755d;
  --green-500: #56a283;
  --green-200: #bcdccd;
  --green-100: #dff0e8;
  --green-50: #f0f8f4;
  --cream: #f8f5ec;
  --white: #fff;
  --line: #d7e1dd;
  --red: #a43939;
  --red-bg: #fff1f0;
  --amber: #835d13;
  --amber-bg: #fff7df;
  --blue: #315f87;
  --blue-bg: #eef6fb;
  --shadow: 0 18px 52px rgba(22, 75, 59, .09);
  --radius-lg: 24px;
  --radius-md: 15px;
  --content: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 10% 0, rgba(213, 236, 224, .78), transparent 25rem), linear-gradient(180deg, #fbfcfa 0, var(--cream) 100%);
  color: var(--ink);
  font: 16px/1.55 Inter, Aptos, "Segoe UI", system-ui, sans-serif;
}
button, input, select, textarea { font: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }
a { color: var(--green-700); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.17; }
code { background: #edf2ef; border-radius: 5px; font-size: .9em; padding: 2px 6px; }
.sr-only { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.skip-link { background: var(--ink); color: #fff; left: 15px; padding: 10px 14px; position: fixed; top: -60px; z-index: 100; }
.skip-link:focus { top: 12px; }

.site-header { background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(22,75,59,.1); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px); }
.header-inner, .page-shell, .site-footer { margin: 0 auto; max-width: var(--content); width: calc(100% - 40px); }
.header-inner { align-items: center; display: flex; justify-content: space-between; min-height: 78px; }
.brand { align-items: center; color: var(--green-900); display: flex; gap: 12px; text-decoration: none; }
.brand-mark { align-items: center; background: var(--green-900); border-radius: 50% 50% 45% 55% / 47% 44% 56% 53%; color: #fff; display: flex; font-size: 12px; font-weight: 900; height: 46px; justify-content: center; letter-spacing: .06em; transform: rotate(-4deg); width: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font: 600 21px Georgia, serif; }
.brand-text small { color: var(--muted); font-size: 11px; letter-spacing: .14em; margin-top: 6px; text-transform: uppercase; }
.primary-nav { align-items: center; display: flex; gap: 20px; }
.primary-nav a, .nav-button { background: none; border: 0; color: var(--ink); font-size: 14px; font-weight: 700; padding: 8px 2px; text-decoration: none; }
.primary-nav a:hover, .nav-button:hover { color: var(--green-700); }
.primary-nav .nav-cta { background: var(--green-900); border-radius: 999px; color: #fff; padding: 10px 16px; }
.nav-user { border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; padding-left: 20px; }
.primary-nav form { margin: 0; }

.page-shell { min-height: calc(100vh - 180px); padding: 52px 0 76px; }
.eyebrow { color: var(--green-700); font-size: 12px; font-weight: 850; letter-spacing: .14em; margin-bottom: 8px; text-transform: uppercase; }
.hero-grid { align-items: center; display: grid; gap: clamp(45px, 8vw, 100px); grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); min-height: 540px; padding: 30px 0 55px; }
.hero-grid h1, .page-heading-row h1, .auth-copy h1, .centred-panel h1 { font: 500 clamp(40px, 6vw, 68px)/1.04 Georgia, serif; letter-spacing: -.04em; margin-bottom: 20px; }
.hero-copy { color: var(--muted); font-size: 19px; max-width: 700px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-card { background: var(--green-900); border-radius: 38px 38px 16px 38px; box-shadow: var(--shadow); color: #fff; padding: 36px; transform: rotate(1deg); }
.hero-card .eyebrow { color: #bfe2d2; }
.hero-card h2 { font: 500 29px Georgia, serif; margin-bottom: 24px; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { align-items: center; border-top: 1px solid rgba(255,255,255,.18); display: flex; gap: 13px; padding: 15px 0; }
.feature-list span { align-items: center; background: rgba(255,255,255,.14); border-radius: 50%; display: flex; flex: 0 0 auto; height: 30px; justify-content: center; width: 30px; }
.small-note { color: var(--muted); font-size: 13px; }
.hero-card .small-note { color: #bed4cb; margin: 20px 0 0; }
.trust-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin: 18px 0 65px; }
.trust-grid article { background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 27px; }
.trust-grid h2 { font: 500 21px Georgia, serif; margin: 15px 0 8px; }
.trust-grid p { color: var(--muted); margin: 0; }
.trust-icon { align-items: center; background: var(--green-100); border-radius: 50%; color: var(--green-900); display: flex; font-size: 20px; height: 39px; justify-content: center; width: 39px; }
.support-band { align-items: center; background: #ece7db; border-radius: var(--radius-lg); display: flex; justify-content: space-between; padding: 28px 32px; }
.support-band h2 { font: 500 24px Georgia, serif; margin-bottom: 6px; }
.support-band p { color: var(--muted); margin: 0; }
.text-link { font-weight: 800; white-space: nowrap; }

.button { align-items: center; border: 1px solid transparent; border-radius: 999px; display: inline-flex; font-weight: 800; justify-content: center; min-height: 47px; padding: 10px 20px; text-decoration: none; transition: transform .12s ease, background .12s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus, select:focus, textarea:focus, button:focus-visible { box-shadow: 0 0 0 4px rgba(86,162,131,.2); outline: 2px solid var(--green-700); outline-offset: 1px; }
.button-primary { background: var(--green-900); color: #fff; }
.button-primary:hover { background: var(--green-950); }
.button-secondary { background: #fff; border-color: var(--green-900); color: var(--green-900); }
.button-ghost { background: #fff; border-color: #a6b8b1; color: var(--green-900); }
.button-link { background: transparent; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.button-block { width: 100%; }

.flash-stack { display: grid; gap: 9px; margin-bottom: 22px; }
.flash { border: 1px solid; border-radius: 12px; font-weight: 650; padding: 13px 16px; }
.flash-success { background: var(--green-50); border-color: var(--green-200); color: var(--green-900); }
.flash-error { background: var(--red-bg); border-color: #efc4c1; color: #852c2c; }
.flash-warning { background: var(--amber-bg); border-color: #ead59e; color: var(--amber); }

.auth-shell { align-items: center; display: grid; gap: clamp(40px, 8vw, 110px); grid-template-columns: minmax(0, 1fr) minmax(340px, 480px); min-height: 610px; padding: 35px 0; }
.compact-auth { min-height: 520px; }
.auth-copy h1 { font-size: clamp(39px, 6vw, 62px); }
.auth-copy > p:last-child { color: var(--muted); font-size: 18px; max-width: 570px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 8px 30px rgba(22,75,59,.045); margin: 0 0 20px; padding: clamp(23px, 3vw, 32px); }
.auth-card { box-shadow: var(--shadow); }
.auth-card .field { margin-bottom: 18px; }
.auth-card .check-row { margin-bottom: 22px; }
.auth-links { display: flex; font-size: 13px; justify-content: space-between; margin-top: 18px; }
.form-footnote { color: var(--muted); font-size: 14px; margin: 19px 0 0; text-align: center; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field label { color: #29473f; font-size: 14px; font-weight: 780; margin-bottom: 7px; }
.field small { color: var(--muted); font-size: 12px; margin-top: 5px; }
input, select, textarea { background: #fcfdfc; border: 1px solid #bdcbc6; border-radius: 9px; color: var(--ink); min-height: 48px; outline: none; padding: 10px 13px; width: 100%; }
textarea { min-height: 88px; resize: vertical; }
input:disabled, select:disabled, textarea:disabled { background: #f0f2f1; color: #4f5e59; cursor: default; opacity: 1; }
.field-grid { display: grid; gap: 20px; }
.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-span { grid-column: 1 / -1; }
.check-row { align-items: flex-start; display: flex; gap: 12px; line-height: 1.4; }
.check-row + .check-row { margin-top: 16px; }
.check-row input { appearance: none; background: #fff; border: 1.5px solid #8da099; border-radius: 5px; flex: 0 0 auto; height: 21px; margin: 1px 0 0; min-height: 21px; padding: 0; position: relative; width: 21px; }
.check-row input:checked { background: var(--green-900); border-color: var(--green-900); }
.check-row input:checked::after { border: solid #fff; border-width: 0 2px 2px 0; content: ""; height: 10px; left: 7px; position: absolute; top: 3px; transform: rotate(45deg); width: 5px; }
.check-row input:disabled { opacity: .65; }

.page-heading-row { align-items: flex-end; display: flex; gap: 30px; justify-content: space-between; margin: 10px 0 36px; }
.page-heading-row h1 { font-size: clamp(38px, 5vw, 57px); margin-bottom: 10px; }
.page-heading-row > div > p:last-child { color: var(--muted); margin: 0; max-width: 680px; }
.application-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.application-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 285px; padding: 25px; }
.application-card-top { align-items: center; display: flex; justify-content: space-between; }
.application-id { color: var(--muted); font-size: 12px; font-weight: 700; }
.application-card h2 { font: 500 26px Georgia, serif; margin: 25px 0 20px; }
.compact-details { display: grid; gap: 10px; margin: 0 0 22px; }
.compact-details div { display: flex; font-size: 13px; justify-content: space-between; }
.compact-details dt { color: var(--muted); }
.compact-details dd { font-weight: 700; margin: 0; text-align: right; }
.application-card .button { margin-top: auto; }
.attention-note { background: var(--amber-bg); border-radius: 9px; color: var(--amber); font-size: 13px; padding: 10px; }
.empty-panel, .centred-panel { background: rgba(255,255,255,.78); border: 1px dashed #b8c8c2; border-radius: var(--radius-lg); padding: 70px 30px; text-align: center; }
.empty-panel h2, .centred-panel h1 { font: 500 34px Georgia, serif; margin-bottom: 10px; }
.empty-panel p, .centred-panel p { color: var(--muted); margin: 0 auto 25px; max-width: 570px; }
.large-symbol { align-items: center; background: var(--green-100); border-radius: 50%; color: var(--green-900); display: flex; font-size: 27px; height: 58px; justify-content: center; margin: 0 auto 19px; width: 58px; }
.privacy-page { background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); margin: 10px auto; max-width: 850px; padding: clamp(27px, 5vw, 56px); }
.privacy-page > h1 { font: 500 clamp(36px, 5vw, 54px) Georgia, serif; letter-spacing: -.035em; }
.privacy-page section { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.privacy-page section h2 { font: 500 23px Georgia, serif; margin-bottom: 8px; }
.privacy-page section p { color: var(--muted); margin-bottom: 0; }

.status { border-radius: 999px; display: inline-flex; font-size: 11px; font-weight: 850; letter-spacing: .035em; padding: 6px 10px; text-transform: uppercase; white-space: nowrap; }
.status-draft { background: #ecefed; color: #54635e; }
.status-submitted { background: var(--blue-bg); color: var(--blue); }
.status-action_required { background: var(--amber-bg); color: var(--amber); }
.status-approved { background: var(--green-100); color: var(--green-900); }
.status-archived { background: #f1eded; color: #695c5c; }

.application-heading { align-items: center; }
.request-note { background: var(--amber-bg); border: 1px solid #e9d293; border-radius: var(--radius-md); color: #684b12; margin: -13px 0 24px; padding: 17px 20px; }
.request-note p { margin: 5px 0 0; }
.form-progress { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 22px; overflow: hidden; padding: 13px; }
.form-progress button { align-items: center; background: transparent; border: 0; border-radius: 12px; color: #70807a; display: flex; font-size: 12px; font-weight: 750; gap: 8px; min-width: 0; padding: 10px; text-align: left; }
.form-progress button span { align-items: center; background: #edf1ef; border-radius: 50%; display: flex; flex: 0 0 auto; height: 29px; justify-content: center; width: 29px; }
.form-progress button.is-active { background: var(--green-50); color: var(--green-900); }
.form-progress button.is-active span { background: var(--green-900); color: #fff; }
.form-progress button.is-complete span { background: var(--green-100); color: var(--green-900); }
.application-form { background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 45px); }
.application-step[hidden] { display: none; }
.step-heading { align-items: flex-end; display: flex; gap: 25px; justify-content: space-between; margin-bottom: 28px; }
.step-heading h2 { font: 500 clamp(28px, 4vw, 39px) Georgia, serif; margin: 0; }
.step-heading > p { color: var(--muted); font-size: 13px; margin: 0; max-width: 340px; text-align: right; }
fieldset.form-card { min-width: 0; }
.form-card legend { background: #fff; font: 500 23px Georgia, serif; padding: 0 8px; }
.form-card h3 { font: 500 23px Georgia, serif; margin-bottom: 8px; }
.legend-help { color: var(--muted); font-size: 14px; margin: -2px 0 21px; }
.marks-guide { align-items: center; background: var(--green-50); border-color: var(--green-200); display: flex; justify-content: space-between; }
.marks-guide p, .declaration-card > p { color: var(--muted); margin: 0; }
.no-marks { background: #fff; border: 1px solid var(--green-200); border-radius: 11px; max-width: 330px; padding: 13px 15px; }
.body-map-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 28px; }
.body-map-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); min-width: 0; padding: 21px; }
.body-map-title { align-items: center; display: flex; justify-content: space-between; }
.body-map-title h3 { font: 500 22px Georgia, serif; margin: 0; }
.body-map-title span { background: var(--green-100); border-radius: 999px; color: var(--green-900); font-size: 11px; font-weight: 850; padding: 5px 9px; }
.body-canvas { background: radial-gradient(circle, rgba(223,240,232,.7), transparent 58%), #fbfdfc; border: 1px dashed #b7cbc2; border-radius: 18px; display: block; height: auto; margin: 17px auto 0; max-height: 555px; max-width: 360px; touch-action: manipulation; width: 100%; }
.body-canvas:not([data-readonly="true"]):hover { border-color: var(--green-700); }
.body-canvas.is-disabled { filter: grayscale(.8); opacity: .45; }
.marker-heading { align-items: flex-end; display: flex; justify-content: space-between; margin: 8px 0 14px; }
.marker-heading h3 { font: 500 27px Georgia, serif; margin: 0; }
.count-pill { background: #e8efeb; border-radius: 999px; color: var(--green-900); font-size: 12px; font-weight: 850; padding: 6px 11px; }
.empty-marker { border: 1px dashed #b7c6c1; border-radius: var(--radius-md); color: var(--muted); padding: 30px; text-align: center; }
.marker-list { display: grid; gap: 15px; }
.marker-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green-500); border-radius: var(--radius-md); padding: 22px; }
.marker-card-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 19px; }
.marker-label { align-items: center; display: flex; gap: 12px; }
.marker-label h4 { margin: 0; }
.marker-label p { color: var(--muted); font-size: 12px; margin: 2px 0 0; text-transform: capitalize; }
.marker-badge { align-items: center; background: var(--green-900); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--green-900); color: #fff; display: flex; font-size: 12px; font-weight: 850; height: 31px; justify-content: center; width: 31px; }
.remove-marker { background: transparent; border: 0; color: var(--red); font-size: 13px; font-weight: 750; text-decoration: underline; }
.marker-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.declaration-card { background: var(--green-50); border-color: var(--green-200); }
.declaration-card > p { margin-bottom: 22px; }
.signature-preview { align-items: flex-end; border-bottom: 1px solid #80958d; color: var(--green-900); display: flex; font: 26px "Segoe Script", "Bradley Hand", cursive; margin-top: 27px; min-height: 62px; padding: 0 11px 7px; }
.review-stack { display: grid; gap: 14px; }
.review-summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.review-summary-card h3 { font: 500 21px Georgia, serif; margin-bottom: 14px; }
.review-summary-card dl { display: grid; gap: 12px 22px; grid-template-columns: repeat(2, minmax(0,1fr)); margin: 0; }
.review-summary-card dt { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.review-summary-card dd { margin: 1px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.submit-note { align-items: center; background: var(--green-50); display: flex; justify-content: space-between; margin-top: 17px; }
.submit-note p { color: var(--muted); margin: 0; }
.application-actions { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 12px; margin-top: 29px; padding-top: 24px; }
.application-actions > span { flex: 1; }

.metric-grid { display: grid; gap: 17px; grid-template-columns: repeat(4, 1fr); margin-bottom: 25px; }
.metric-grid a { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); display: flex; flex-direction: column; padding: 24px; text-decoration: none; }
.metric-grid a:hover { border-color: var(--green-500); }
.metric-grid span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.metric-grid strong { font: 500 45px Georgia, serif; margin: 7px 0 2px; }
.metric-grid small { color: var(--muted); }
.table-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.table-heading { align-items: flex-end; display: flex; justify-content: space-between; padding: 24px 27px; }
.table-heading h2 { font: 500 26px Georgia, serif; margin: 0; }
.table-heading a { font-size: 13px; font-weight: 800; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; min-width: 760px; width: 100%; }
th, td { border-top: 1px solid var(--line); padding: 16px 20px; text-align: left; vertical-align: middle; }
th { background: #f8faf9; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
td { font-size: 14px; }
td small { color: var(--muted); display: block; font-size: 11px; margin-top: 2px; }
.row-link { font-weight: 800; }
.empty-table { border-top: 1px solid var(--line); color: var(--muted); padding: 40px; text-align: center; }
.filter-bar { align-items: flex-end; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; gap: 14px; grid-template-columns: minmax(240px, 1fr) 220px auto auto; margin-bottom: 20px; padding: 20px; }
.filter-bar .button { margin-bottom: 0; }

.back-link { display: inline-block; font-size: 13px; font-weight: 800; margin-bottom: 18px; }
.admin-review-heading { align-items: center; }
.heading-actions { align-items: center; display: flex; gap: 12px; }
.admin-review-grid { align-items: start; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) 340px; }
.review-main { display: grid; gap: 18px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 27px; }
.review-card-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 20px; }
.review-card-head h2, .sticky-card h2, .timeline-card h2 { font: 500 24px Georgia, serif; margin: 0; }
.details-grid { display: grid; gap: 17px 25px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.details-grid .wide { grid-column: 1 / -1; }
.details-grid dt { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.details-grid dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.admin-maps { margin-bottom: 20px; }
.admin-maps .body-canvas { max-height: 410px; }
.admin-marker-list { display: grid; gap: 9px; list-style: none; margin: 0; padding: 0; }
.admin-marker-list li { background: var(--green-50); border-radius: 10px; display: flex; gap: 12px; padding: 13px; }
.admin-marker-list li > span { align-items: center; background: var(--green-900); border-radius: 50%; color: #fff; display: flex; flex: 0 0 auto; font-size: 12px; font-weight: 850; height: 27px; justify-content: center; width: 27px; }
.admin-marker-list p { margin: 3px 0; }
.admin-marker-list small { color: var(--muted); }
.review-sidebar { display: grid; gap: 18px; }
.sticky-card { position: sticky; top: 100px; }
.sticky-card h2 { margin-bottom: 21px; }
.sticky-card .field { margin-bottom: 17px; }
.timeline-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.timeline-card h2 { margin-bottom: 20px; }
.timeline-card ol { list-style: none; margin: 0; padding: 0; }
.timeline-card li { display: flex; gap: 11px; padding-bottom: 17px; position: relative; }
.timeline-card li > span { background: var(--green-500); border: 4px solid var(--green-100); border-radius: 50%; flex: 0 0 auto; height: 13px; margin-top: 4px; width: 13px; }
.timeline-card li:not(:last-child)::before { background: var(--green-200); bottom: 0; content: ""; left: 6px; position: absolute; top: 16px; width: 1px; }
.timeline-card small { color: var(--muted); display: block; font-size: 11px; margin-top: 2px; }

.settings-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.settings-card-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 22px; }
.settings-card-head h2 { font: 500 25px Georgia, serif; margin: 0; }
.health { border-radius: 999px; font-size: 11px; font-weight: 850; padding: 6px 10px; text-transform: uppercase; }
.health-ok { background: var(--green-100); color: var(--green-900); }
.health-error { background: var(--red-bg); color: var(--red); }
.health-warning { background: var(--amber-bg); color: var(--amber); }
.settings-list { border-bottom: 1px solid var(--line); margin: 0 0 19px; }
.settings-list div { border-top: 1px solid var(--line); display: flex; gap: 15px; justify-content: space-between; padding: 11px 0; }
.settings-list dt { color: var(--muted); }
.settings-list dd { font-weight: 700; margin: 0; overflow-wrap: anywhere; text-align: right; }
.smtp-test { align-items: flex-end; display: flex; gap: 10px; }
.smtp-test .field { flex: 1; }
.security-callout { align-items: center; background: var(--green-900); border-radius: var(--radius-lg); color: #fff; display: flex; gap: 18px; margin-top: 20px; padding: 25px; }
.security-callout > div:first-child { align-items: center; background: rgba(255,255,255,.14); border-radius: 50%; display: flex; flex: 0 0 auto; height: 43px; justify-content: center; width: 43px; }
.security-callout h2 { font: 500 22px Georgia, serif; margin-bottom: 5px; }
.security-callout p { color: #c7ddd3; margin: 0; }

.site-footer { align-items: flex-start; border-top: 1px solid rgba(22,75,59,.15); color: var(--muted); display: flex; font-size: 13px; justify-content: space-between; padding: 28px 0 38px; }
.site-footer div { display: flex; flex-direction: column; }
.site-footer strong { color: var(--green-900); }
.site-footer p { margin: 0; text-align: right; }

@media (max-width: 940px) {
  .hero-grid, .auth-shell { gap: 40px; grid-template-columns: 1fr; min-height: auto; }
  .hero-card { max-width: 580px; }
  .trust-grid, .application-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-review-grid { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .settings-grid { grid-template-columns: 1fr; }
  .form-progress button { flex-direction: column; text-align: center; }
  .nav-user { display: none; }
}

@media (max-width: 720px) {
  .header-inner, .page-shell, .site-footer { width: calc(100% - 26px); }
  .header-inner { min-height: 69px; }
  .brand-text small, .primary-nav > a:not(.nav-cta) { display: none; }
  .primary-nav { gap: 8px; }
  .page-shell { padding-top: 34px; }
  .hero-grid { padding-top: 10px; }
  .hero-grid h1, .page-heading-row h1 { font-size: 39px; }
  .trust-grid, .application-grid, .two-column, .body-map-grid, .marker-fields, .review-summary-card dl, .details-grid { grid-template-columns: 1fr; }
  .field-span, .details-grid .wide { grid-column: auto; }
  .support-band, .page-heading-row, .step-heading, .marks-guide, .submit-note, .site-footer { align-items: flex-start; flex-direction: column; }
  .page-heading-row { gap: 17px; }
  .step-heading { align-items: flex-start; }
  .step-heading > p { text-align: left; }
  .no-marks { max-width: none; }
  .form-progress { gap: 2px; padding: 8px; }
  .form-progress button { font-size: 0; padding: 7px 2px; }
  .form-progress button span { font-size: 12px; }
  .application-form { border-radius: 20px; padding: 20px 14px; }
  .form-card, .review-card { padding: 21px 17px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid a { padding: 18px; }
  .filter-bar { grid-template-columns: 1fr; }
  .heading-actions { align-items: flex-start; flex-direction: column; }
  .smtp-test { align-items: stretch; flex-direction: column; }
  .application-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .application-actions > span { display: none; }
  .application-actions .button-link { grid-column: 1 / -1; grid-row: 2; }
  .site-footer { gap: 15px; }
  .site-footer p { text-align: left; }
}

@media (max-width: 460px) {
  .brand-text { display: none; }
  .primary-nav .nav-cta { padding: 9px 12px; }
  .trust-grid, .metric-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 22px 17px; }
}

@media print {
  body { background: #fff; font-size: 10pt; }
  .site-header, .site-footer, .flash-stack, .back-link, .heading-actions, .review-sidebar { display: none !important; }
  .page-shell { max-width: none; padding: 0; width: 100%; }
  .admin-review-grid { display: block; }
  .page-heading-row h1 { font-size: 28pt; }
  .review-card { break-inside: avoid; box-shadow: none; margin-bottom: 10px; padding: 14px; }
  .admin-maps { grid-template-columns: repeat(2, 1fr); }
  .body-canvas { max-height: 300px; }
}
