:root {
  --navy-950: #092541;
  --navy-900: #123b66;
  --navy-800: #185080;
  --blue-600: #1479df;
  --blue-100: #e9f3ff;
  --teal-600: #0c8b83;
  --green-600: #16825d;
  --gold-500: #d99b2b;
  --red-600: #c83f4d;
  --ink: #172337;
  --muted: #627084;
  --line: #dce5ef;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --shadow: 0 22px 55px rgba(20, 54, 91, .12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --shell: 1160px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.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;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  color: white;
  background: var(--navy-950);
  border-radius: 8px;
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }
.shell { width: min(calc(100% - 2.5rem), var(--shell)); margin-inline: auto; }

.prototype-bar { color: #dcecff; background: var(--navy-950); font-size: .78rem; }
.prototype-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.prototype-note { color: #9fc3ea; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(220, 229, 239, .9);
  backdrop-filter: blur(16px);
}

.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--navy-950); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: linear-gradient(145deg, var(--blue-600), var(--navy-900)); border-radius: 12px; font-weight: 900; box-shadow: 0 9px 22px rgba(20, 121, 223, .24); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.1rem; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: .73rem; font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a { padding: .7rem .9rem; color: #4e5c70; border-radius: 10px; font-size: .92rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav a.is-active { color: var(--navy-900); background: var(--blue-100); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--navy-900); }

.view { display: none; }
.view.is-active { display: block; }
.hero { overflow: hidden; background: radial-gradient(circle at 83% 10%, rgba(68, 164, 255, .24), transparent 31%), linear-gradient(145deg, #eff7ff 0%, #f8fbff 55%, #eef5ff 100%); border-bottom: 1px solid #dbe8f5; }
.hero-grid { min-height: 590px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); padding-block: 4.5rem; }
.eyebrow { margin: 0 0 .8rem; color: var(--blue-600); font-size: .78rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.hero h1, .page-intro h1, .auth-copy h1, .dashboard-head h1 { max-width: 790px; margin: 0; color: var(--navy-950); font-size: clamp(2.35rem, 5vw, 4.25rem); line-height: 1.03; letter-spacing: -.045em; }
.hero-text { max-width: 680px; margin: 1.5rem 0 0; color: #52647a; font-size: clamp(1rem, 1.7vw, 1.18rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.microcopy { margin: 1.1rem 0 0; color: #738197; font-size: .84rem; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .72rem 1.1rem; border: 1px solid transparent; border-radius: 11px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: linear-gradient(135deg, var(--blue-600), #0c67c3); box-shadow: 0 12px 24px rgba(20, 121, 223, .2); }
.button-primary:hover { box-shadow: 0 16px 28px rgba(20, 121, 223, .27); }
.button-secondary { color: var(--navy-900); background: white; border-color: #bfd0e4; }
.button-ghost { color: var(--navy-900); background: var(--blue-100); }
.button-block { width: 100%; }

.status-card { padding: 1.25rem; background: rgba(255, 255, 255, .92); border: 1px solid rgba(194, 213, 232, .9); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.status-card-head { display: flex; align-items: center; gap: .75rem; padding: .35rem .2rem 1.15rem; border-bottom: 1px solid var(--line); }
.status-card-head small, .status-card-head strong { display: block; }
.status-card-head small { color: var(--muted); font-size: .75rem; }
.status-card-head strong { color: var(--navy-950); }
.live-dot { width: 10px; height: 10px; background: #20a66a; border: 3px solid #d8f5e7; border-radius: 50%; box-sizing: content-box; }
.year-pill { margin-left: auto; padding: .32rem .55rem; color: var(--navy-900); background: var(--blue-100); border-radius: 8px; font-size: .78rem; font-weight: 900; }
.timeline { display: grid; gap: 0; padding: 1.2rem 0; margin: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: .8rem; min-height: 75px; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; top: 32px; bottom: 0; left: 16px; width: 2px; background: #d8e2ed; }
.timeline li > span { z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; color: #758499; background: #edf1f6; border-radius: 50%; font-size: .78rem; font-weight: 900; }
.timeline li.is-done > span { color: white; background: var(--green-600); }
.timeline li.is-current > span { color: white; background: var(--blue-600); box-shadow: 0 0 0 5px #dcecff; }
.timeline strong, .timeline small { display: block; }
.timeline strong { margin-top: .25rem; color: var(--navy-950); font-size: .92rem; }
.timeline small { color: var(--muted); font-size: .78rem; }
.status-foot { display: flex; justify-content: space-between; padding: .9rem 1rem; background: var(--surface-soft); border-radius: 12px; font-size: .75rem; }
.status-foot span { color: var(--muted); }

.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-tint { background: var(--surface-soft); border-block: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading h2 { max-width: 650px; margin: 0; color: var(--navy-950); font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1.12; letter-spacing: -.025em; }
.section-heading > p { max-width: 450px; margin: 0; color: var(--muted); }
.section-heading.compact { margin-bottom: 2.5rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature-card { --accent: #176fd1; position: relative; min-height: 255px; padding: 1.4rem; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 10px 30px rgba(30, 59, 92, .06); }
.feature-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.feature-card h3 { margin: 1.2rem 0 .65rem; color: var(--navy-950); font-size: 1.15rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, white); border-radius: 14px; font-weight: 900; }
.feature-blue { --accent: #176fd1; }
.feature-teal { --accent: #0b8d82; }
.feature-purple { --accent: #8652bd; }
.feature-gold { --accent: #cb7d17; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.process-grid article { padding-right: 1rem; }
.process-grid span { display: inline-block; margin-bottom: 1.2rem; color: var(--blue-600); font-size: .78rem; font-weight: 900; }
.process-grid h3 { margin: 0 0 .55rem; color: var(--navy-950); font-size: 1.05rem; }
.process-grid p { margin: 0; color: var(--muted); font-size: .88rem; }

.page-view { min-height: calc(100vh - 180px); padding-block: clamp(3.5rem, 8vw, 7rem); background: linear-gradient(145deg, #f2f7fd, #fbfdff); }
.page-grid, .auth-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(340px, .7fr); gap: clamp(2rem, 8vw, 7rem); align-items: start; }
.page-intro h1, .auth-copy h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.page-intro > p:not(.eyebrow), .auth-copy > p:not(.eyebrow) { max-width: 600px; color: var(--muted); font-size: 1.02rem; }
.notice { margin-top: 2rem; padding: 1rem 1.1rem; color: #78561a; background: #fff8e7; border: 1px solid #f2dda9; border-radius: 12px; }
.notice p { margin: .25rem 0 0; font-size: .85rem; }
.form-card { padding: clamp(1.4rem, 4vw, 2rem); background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.auth-provider { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; margin-bottom: 1.35rem; background: #f8fbff; border: 1px solid #cfe0f2; border-radius: 13px; }
.auth-provider-stack { display: grid; gap: 1rem; margin-bottom: 0; padding: 1rem; }
.auth-provider-copy { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.auth-provider-copy strong, .auth-provider-copy small { display: block; }
.auth-provider-copy strong { color: var(--navy-950); font-size: .86rem; }
.auth-provider-copy small { margin-top: .15rem; color: var(--muted); font-size: .74rem; }
.provider-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; color: #4285f4; background: white; border: 1px solid #d8e3f0; border-radius: 50%; font-size: 1.1rem; font-weight: 900; }
.auth-provider .button { flex: 0 0 auto; min-height: 40px; padding: .55rem .8rem; font-size: .78rem; }
.guardian-auth-actions { display: grid; justify-items: end; gap: .45rem; flex: 0 0 auto; }
#google-signin-container { min-height: 40px; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; margin-bottom: .45rem; color: var(--navy-950); font-size: .87rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .75rem .85rem; color: var(--ink); background: #fbfdff; border: 1px solid #becddd; border-radius: 10px; outline: none; }
.field textarea { resize: vertical; font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(20, 121, 223, .12); }
.field small { display: block; margin-top: .35rem; color: var(--muted); font-size: .75rem; }
.field input[disabled], .field select[disabled] { color: #718096; background: #eef2f7; cursor: not-allowed; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red-600); }
.check-row { display: flex; gap: .65rem; margin: 1rem 0 1.4rem; color: #536176; font-size: .82rem; }
.check-row input { width: 18px; height: 18px; margin-top: .1rem; accent-color: var(--blue-600); }
.result-wrap { margin-top: 2rem; }
.result-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.status-banner { display: flex; justify-content: space-between; padding: .9rem 1.25rem; color: white; background: linear-gradient(135deg, var(--blue-600), #0c67c3); font-weight: 900; }
.status-banner small { align-self: center; opacity: .8; }
.result-body { padding: clamp(1.3rem, 4vw, 2rem); }
.result-person { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.avatar { display: grid; flex: 0 0 54px; place-items: center; width: 54px; height: 54px; color: var(--navy-900); background: var(--blue-100); border-radius: 15px; font-weight: 900; }
.result-person small { color: var(--muted); }
.result-person h2 { margin: .05rem 0; color: var(--navy-950); font-size: 1.2rem; }
.result-person p { margin: 0; color: var(--muted); font-size: .82rem; }
.result-details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; padding: 1.4rem 0; }
.result-details div { padding: .9rem; background: var(--surface-soft); border-radius: 11px; }
.result-details dt { color: var(--muted); font-size: .72rem; }
.result-details dd { margin: .25rem 0 0; color: var(--navy-950); font-weight: 900; }
.result-actions { display: flex; gap: .75rem; }
.status-message { padding: 1rem 1.1rem; color: #185f9c; background: #edf6ff; border: 1px solid #cfe4f8; border-radius: 12px; }
.status-message p { margin: .2rem 0 0; color: #4f6f8e; font-size: .84rem; }

.application-view { min-height: calc(100vh - 180px); padding-block: clamp(3rem, 7vw, 5.5rem); background: var(--surface-soft); }
.application-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.application-head h1 { margin: 0; color: var(--navy-950); font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.035em; }
.application-head p:not(.eyebrow) { max-width: 680px; margin: .8rem 0 0; color: var(--muted); }
.demo-badge { flex: 0 0 auto; padding: .5rem .75rem; color: #78561a; background: #fff8e7; border: 1px solid #f2dda9; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.application-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.stepper { position: sticky; top: 98px; display: grid; gap: 0; padding: 1.1rem; margin: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius-md); list-style: none; }
.stepper li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: .75rem; min-height: 78px; color: #8491a3; }
.stepper li:not(:last-child)::after { content: ""; position: absolute; top: 38px; bottom: 4px; left: 17px; width: 2px; background: #dfe7f0; }
.stepper li > span { z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; background: #edf1f6; border-radius: 50%; font-size: .78rem; font-weight: 900; }
.stepper strong, .stepper small { display: block; }
.stepper strong { margin-top: .1rem; color: #5d6b7d; font-size: .88rem; }
.stepper small { font-size: .72rem; }
.stepper li.is-active > span { color: white; background: var(--blue-600); box-shadow: 0 0 0 5px #dcecff; }
.stepper li.is-active strong { color: var(--navy-950); }
.stepper li.is-complete > span { color: white; background: var(--green-600); }
.stepper li.is-complete:not(:last-child)::after { background: #b5ddce; }
.application-panel { scroll-margin-top: 100px; min-height: 580px; padding: clamp(1.35rem, 4vw, 2.2rem); background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 18px 45px rgba(20, 54, 91, .08); }
.form-step { display: none; }
.form-step.is-active { display: block; }
.form-step-head { padding-bottom: 1.3rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.form-step-head > span { color: var(--blue-600); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.form-step-head h2 { margin: .3rem 0 .35rem; color: var(--navy-950); font-size: clamp(1.45rem, 3vw, 2rem); }
.form-step-head p { margin: 0; color: var(--muted); font-size: .88rem; }
.form-grid { display: grid; gap: 0 1rem; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-wide { grid-column: 1 / -1; }
.demo-data-note { align-self: start; padding: .8rem .9rem; margin-bottom: 1.15rem; color: #68501e; background: #fff8e7; border: 1px solid #f2dda9; border-radius: 10px; font-size: .75rem; }
.demo-data-note strong, .demo-data-note span { display: block; }
.demo-data-note button { padding: 0; color: #0c67c3; background: none; border: 0; font-weight: 900; text-decoration: underline; cursor: pointer; }
#guardian-relation-other { text-transform: uppercase; }
.form-actions { display: flex; justify-content: space-between; gap: .75rem; padding-top: 1.4rem; margin-top: 1.4rem; border-top: 1px solid var(--line); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.matched-record { margin-top: 1.5rem; padding: 1.2rem; background: #f2fbf7; border: 1px solid #bde5d3; border-radius: 14px; }
.matched-record-head { display: flex; align-items: center; gap: .7rem; padding-bottom: 1rem; border-bottom: 1px solid #d1eadf; }
.matched-record-head > span { display: grid; place-items: center; width: 32px; height: 32px; color: white; background: var(--green-600); border-radius: 50%; font-weight: 900; }
.matched-record-head strong, .matched-record-head small { display: block; }
.matched-record-head strong { color: #0e6549; }
.matched-record-head small { color: #5f7d70; font-size: .74rem; }
.locked-grid, .review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding-top: 1rem; }
.locked-grid div, .review-grid div { padding: .85rem; background: white; border: 1px solid #dce7e2; border-radius: 10px; }
.locked-grid dt, .review-grid dt { color: var(--muted); font-size: .72rem; }
.locked-grid dd, .review-grid dd { margin: .2rem 0 0; color: var(--navy-950); font-size: .88rem; font-weight: 850; }
.district-note { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.3rem; padding: .85rem 1rem; color: var(--navy-900); background: var(--blue-100); border-radius: 11px; }
.district-note > span { font-size: 1.3rem; }
.district-note small, .district-note strong { display: block; }
.district-note small { color: var(--muted); font-size: .7rem; }
.review-grid { padding: 0; }
.review-grid div { background: var(--surface-soft); border-color: var(--line); }
.review-wide { grid-column: 1 / -1; }
.consent-box { padding: 1rem; background: #f8fafc; border: 1px solid var(--line); border-radius: 11px; }
.success-state { max-width: 660px; padding-block: 2.5rem; margin: auto; text-align: center; }
.success-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 1.2rem; color: white; background: var(--green-600); border: 8px solid #dff4ea; border-radius: 50%; font-size: 1.5rem; font-weight: 900; box-sizing: content-box; }
.success-state h2 { margin: 0; color: var(--navy-950); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.success-state > p:not(.eyebrow) { color: var(--muted); }
.reference-box { display: grid; gap: .25rem; max-width: 390px; padding: 1rem; margin: 1.5rem auto; color: var(--navy-900); background: var(--blue-100); border: 1px dashed #88b9e8; border-radius: 12px; }
.reference-box small { color: var(--muted); }
.reference-box strong { font-size: 1.15rem; letter-spacing: .03em; }
.success-actions { display: flex; justify-content: center; gap: .75rem; }

.role-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; margin-bottom: 1.5rem; padding: .3rem; background: var(--surface-soft); border-radius: 11px; }
.role-picker button { padding: .55rem .35rem; color: var(--muted); background: transparent; border: 0; border-radius: 8px; font-size: .78rem; font-weight: 800; cursor: pointer; }
.role-picker button.is-selected { color: var(--navy-900); background: white; box-shadow: 0 3px 10px rgba(20, 54, 91, .08); }
.secure-list { display: grid; gap: .75rem; padding: 0; margin: 2rem 0 0; list-style: none; color: #536176; }
.secure-list li { display: flex; gap: .65rem; }
.secure-list span { display: grid; place-items: center; width: 22px; height: 22px; color: white; background: var(--green-600); border-radius: 50%; font-size: .7rem; }
.form-footnote { margin: 1rem 0 0; color: var(--muted); font-size: .74rem; text-align: center; }

.dashboard-view { min-height: calc(100vh - 180px); padding-block: 3rem 5rem; background: var(--surface-soft); }
.dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.dashboard-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.dashboard-head p:last-child { margin: .45rem 0 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.metric-grid article { padding: 1.25rem; background: white; border: 1px solid var(--line); border-radius: 14px; }
.metric-grid span, .metric-grid small { display: block; color: var(--muted); font-size: .75rem; }
.metric-grid strong { display: block; margin: .4rem 0 .15rem; color: var(--navy-950); font-size: 1.75rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .6fr); gap: 1rem; margin-top: 1rem; }
.staff-dashboard-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.panel { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius-md); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--line); }
.panel-head small { color: var(--muted); font-size: .72rem; }
.panel-head h2 { margin: .1rem 0 0; color: var(--navy-950); font-size: 1.1rem; }
.panel-head > button { color: var(--blue-600); background: none; border: 0; font-size: .78rem; font-weight: 800; cursor: pointer; }
.dashboard-filters { display: flex; flex-wrap: wrap; gap: .8rem; padding: .85rem 1.25rem; background: #fbfcfe; border-bottom: 1px solid var(--line); }
.dashboard-filters label { min-width: 190px; color: var(--muted); font-size: .7rem; font-weight: 800; }
.dashboard-filters select { display: block; width: 100%; min-height: 38px; margin-top: .3rem; padding: .45rem .6rem; color: var(--ink); background: white; border: 1px solid #becddd; border-radius: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { padding: .95rem 1.1rem; text-align: left; border-bottom: 1px solid #ebf0f5; }
th { color: var(--muted); background: #fbfcfe; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
td:first-child { color: var(--navy-950); font-weight: 750; }
.table-subtext { display: block; margin-top: .25rem; color: var(--muted); font-size: .69rem; font-weight: 500; }
.table-action { padding: .45rem .7rem; color: white; background: var(--blue-600); border: 0; border-radius: 8px; font-weight: 800; cursor: pointer; }
.table-action:hover { background: #0c67c3; }
.verification-panel { scroll-margin-top: 90px; }
.verification-form { padding: 1.25rem; }
.verification-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1.25rem; }
.verification-details div { padding: .85rem; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; }
.verification-details dt { color: var(--muted); font-size: .7rem; }
.verification-details dd { margin: .25rem 0 0; color: var(--navy-950); font-size: .86rem; font-weight: 850; }
.verification-checks, .decision-picker { display: grid; gap: .7rem; padding: 1rem; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 11px; }
.verification-checks legend, .decision-picker legend { padding: 0 .35rem; color: var(--navy-950); font-size: .82rem; font-weight: 850; }
.verification-checks label, .decision-picker label { display: flex; align-items: start; gap: .6rem; color: #536176; font-size: .84rem; }
.verification-checks input, .decision-picker input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: .05rem; accent-color: var(--blue-600); }
.quick-panel { padding-bottom: .55rem; }
.quick-panel > button { display: flex; width: calc(100% - 1rem); gap: .8rem; align-items: center; margin: .55rem; padding: .75rem; color: var(--ink); background: white; border: 0; border-radius: 10px; text-align: left; cursor: pointer; }
.quick-panel > button:hover { background: var(--surface-soft); }
.quick-panel > button > span { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; color: var(--blue-600); background: var(--blue-100); border-radius: 9px; font-weight: 900; }
.quick-panel strong, .quick-panel small { display: block; }
.quick-panel strong { color: var(--navy-950); font-size: .83rem; }
.quick-panel small { color: var(--muted); font-size: .72rem; }
.tag-success, .tag-warning, .tag-danger, .tag-info { display: inline-block; padding: .25rem .5rem; border-radius: 999px; font-size: .68rem; font-weight: 900; }
.tag-success { color: #106343; background: #def6e9; }
.tag-warning { color: #805b12; background: #fff0c6; }
.tag-danger { color: #9e2f3c; background: #fde3e6; }
.tag-info { color: #185f9c; background: #dfefff; }

.site-footer { color: #bdcde0; background: var(--navy-950); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 112px; }
.footer-inner strong, .footer-inner span { display: block; }
.footer-inner strong { color: white; }
.footer-inner span, .footer-inner p { color: #8faac6; font-size: .78rem; }
.toast { position: fixed; z-index: 50; right: 1.25rem; bottom: 1.25rem; max-width: min(390px, calc(100% - 2.5rem)); padding: .9rem 1rem; color: white; background: var(--navy-950); border: 1px solid #31587f; border-radius: 12px; box-shadow: var(--shadow); font-size: .86rem; }

@media (max-width: 940px) {
  .hero-grid, .page-grid, .auth-layout { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .status-card { max-width: 610px; }
  .feature-grid, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .result-details { grid-template-columns: repeat(2, 1fr); }
  .verification-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .application-shell { grid-template-columns: 1fr; }
  .stepper { position: static; grid-template-columns: repeat(4, 1fr); }
  .stepper li { display: block; min-height: auto; text-align: center; }
  .stepper li:not(:last-child)::after { top: 17px; right: -50%; bottom: auto; left: 50%; width: 100%; height: 2px; }
  .stepper li > span { margin: 0 auto .45rem; }
  .stepper small { display: none; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 1.5rem), var(--shell)); }
  .prototype-note { display: none; }
  .header-inner { min-height: 68px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: calc(100% + 1px); right: .75rem; left: .75rem; display: none; padding: .55rem; background: white; border: 1px solid var(--line); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: .8rem; }
  .hero-grid { padding-block: 3rem; }
  .hero h1 { font-size: clamp(2.25rem, 11vw, 3.2rem); }
  .hero-actions, .result-actions { display: grid; }
  .button { width: 100%; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 1rem; }
  .feature-grid, .process-grid, .metric-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 225px; }
  .page-view { padding-block: 3rem; }
  .role-picker { grid-template-columns: repeat(2, 1fr); }
  .dashboard-head { align-items: start; flex-direction: column; }
  .dashboard-head > div { min-width: 0; max-width: 100%; }
  .dashboard-head h1 { font-size: 1.85rem; overflow-wrap: anywhere; }
  .dashboard-head .button { width: auto; }
  .result-details { grid-template-columns: 1fr; }
  .application-head { align-items: start; flex-direction: column; }
  .application-panel { padding: 1.1rem; }
  .auth-provider { align-items: start; flex-direction: column; }
  .auth-provider .button { width: 100%; }
  .guardian-auth-actions { justify-items: stretch; width: 100%; }
  .stepper { padding: .85rem .45rem; }
  .stepper strong { font-size: .72rem; }
  .two-columns, .locked-grid, .review-grid { grid-template-columns: 1fr; }
  .verification-details { grid-template-columns: 1fr; }
  .review-wide { grid-column: auto; }
  .form-actions, .success-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .form-actions .button, .success-actions .button { width: 100%; }
  .footer-inner { align-items: start; flex-direction: column; justify-content: center; }
  .footer-inner p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
