:root {
    color-scheme: light;
    --ink: #142622;
    --ink-soft: #53615b;
    --muted: #7d8982;
    --paper: #f5f5f0;
    --white: #fff;
    --line: #dfe4dd;
    --green: #d5f04a;
    --green-dark: #536713;
    --teal: #176b60;
    --teal-pale: #e4f2ed;
    --coral: #d7664e;
    --coral-pale: #fff0eb;
    --amber: #f2bd51;
    --navy: #0f2d5a;
    --navy-soft: #173f73;
    --sky: #ebf4ff;
    --sky-soft: #dfefff;
    --shadow: 0 18px 55px rgba(24, 43, 35, .08);
    --shadow-soft: 0 24px 60px rgba(15, 45, 90, .14);
    --sans: 'DM Sans', 'Segoe UI', sans-serif;
    --serif: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
    margin: 0;
    background-color: var(--paper);
    background-image: radial-gradient(rgba(35, 70, 57, .10) .65px, transparent .65px);
    background-size: 18px 18px;
    color: var(--ink);
    font: 15px/1.55 var(--sans);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(23, 107, 96, .38);
    outline-offset: 2px;
}

.site-header {
    max-width: 1280px;
    min-height: 96px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(20, 38, 34, .13);
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: 88px; height: 88px; flex: 0 0 88px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 31px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.site-nav a { transition: color .18s ease; }
.site-nav a:hover, .site-nav a.is-active { color: var(--teal); }
.site-nav .nav-signin { padding: 10px 15px; color: var(--ink); border: 1px solid #bec9c1; border-radius: 6px; }
.site-nav .nav-signin:hover { border-color: var(--teal); background: var(--white); }
.nav-logout { margin: 0; }
.nav-logout .nav-signin { background: transparent; cursor: pointer; font-weight: 600; }
.menu-toggle { display: none; }
.page-shell { max-width: 1280px; min-height: calc(100vh - 150px); margin: auto; padding: 46px 40px 74px; }
.site-footer { max-width: 1280px; margin: 0 auto; padding: 22px 40px 28px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1 { margin-bottom: 16px; font: 500 clamp(38px, 5vw, 64px)/1.02 var(--serif); letter-spacing: 0; }
h2 { margin-bottom: 12px; font: 500 34px/1.12 var(--serif); letter-spacing: 0; }
h3 { margin-bottom: 8px; font-size: 16px; line-height: 1.3; }
.lede { max-width: 530px; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.flash { margin: 0 0 24px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font-size: 13px; }
.flash-success { border-color: #c4decf; background: #edf8ef; color: #28623c; }
.flash-error { border-color: #eccbc3; background: var(--coral-pale); color: #994b3c; }

.btn { min-height: 46px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 5px; cursor: pointer; font-size: 13px; font-weight: 700; transition: transform .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--teal); }
.btn-accent { background: var(--green); color: var(--ink); }
.btn-accent:hover { background: #c5e536; }
.btn-outline { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-block { width: 100%; }
.text-link { color: var(--teal); font-size: 13px; font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.home-hero { min-height: 470px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 44px; }
.home-copy { padding: 28px 0 35px; animation: rise .55s ease both; }
.home-copy h1 { max-width: 630px; }
.home-copy h1 span { color: var(--teal); }
.home-copy .lede { margin-bottom: 25px; }
.home-actions { display: flex; align-items: center; gap: 22px; }
.home-art { position: relative; min-height: 385px; overflow: hidden; border-radius: 4px 86px 4px 4px; background: #1c5148; box-shadow: var(--shadow); }
.home-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11, 36, 31, .05), rgba(8, 32, 28, .54)), repeating-linear-gradient(135deg, transparent 0 19px, rgba(255,255,255,.035) 20px 21px); }
.art-sun { position: absolute; width: 205px; height: 205px; top: 45px; right: 65px; border-radius: 50%; background: var(--amber); }
.art-arc { position: absolute; width: 380px; height: 380px; right: -72px; bottom: -192px; border: 1px solid rgba(255,255,255,.44); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.05), 0 0 0 50px rgba(255,255,255,.04); }
.art-shape { position: absolute; width: 148px; height: 230px; left: 23%; bottom: -28px; border-radius: 80px 80px 5px 5px; background: var(--green); transform: rotate(11deg); }
.art-shape::before { content: ''; position: absolute; width: 97px; height: 108px; top: -55px; left: 27px; border-radius: 50% 50% 45% 45%; background: #d77b57; }
.art-shape::after { content: ''; position: absolute; width: 104px; height: 100px; top: -33px; left: 16px; border-radius: 52% 48% 0 0; background: #1b302b; transform: rotate(-10deg); }
.art-label { position: absolute; left: 27px; bottom: 25px; max-width: 245px; color: white; font: 500 23px/1.17 var(--serif); }
.art-index { position: absolute; right: 25px; top: 24px; color: rgba(255,255,255,.76); font-size: 11px; letter-spacing: .15em; writing-mode: vertical-rl; }
.home-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4px; border-top: 1px solid var(--line); }
.strip-item { padding: 23px 25px 0 0; display: flex; gap: 13px; align-items: flex-start; }
.strip-number { color: var(--coral); font: 500 24px var(--serif); }
.strip-item strong { display: block; margin-bottom: 3px; font-size: 13px; }
.strip-item span:last-child { color: var(--muted); font-size: 12px; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 62px; align-items: start; }
.form-heading { max-width: 700px; margin-bottom: 33px; }
.form-heading h1 { font-size: 48px; }
.form-heading .lede { font-size: 14px; }
.application-form { max-width: 760px; }
.form-section { padding: 25px 0 28px; border-top: 1px solid var(--line); }
.form-section-heading { margin-bottom: 17px; display: flex; justify-content: space-between; align-items: baseline; }
.form-section-heading h2 { margin: 0; font: 600 14px var(--sans); }
.form-section-heading span { color: var(--muted); font-size: 11px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea, .search-control input, .filter-select {
    width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #cdd6cf; border-radius: 4px; background-color: var(--white); color: var(--ink); font-size: 13px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa49d; }
.field-help { color: var(--muted); font-size: 11px; }
.captcha-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #cfe0ff;
    border-radius: 8px;
    background: linear-gradient(180deg, #eef6ff 0%, #f7fbff 100%);
}
.captcha-question {
    color: var(--navy);
    font-weight: 700;
    letter-spacing: .04em;
}
.captcha-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.captcha-refresh {
    min-height: 42px;
    padding-inline: 14px;
    border-color: rgba(15, 45, 90, .2);
    background: #edf5ff;
    color: var(--navy);
    text-decoration: none;
    white-space: nowrap;
}
.form-aside { position: sticky; top: 25px; padding: 23px; border: 1px solid var(--line); background: rgba(255,255,255,.75); }
.form-aside h3 { margin-bottom: 17px; font: 500 22px var(--serif); }
.aside-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.aside-step-number { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-pale); color: var(--teal); font-size: 11px; font-weight: 700; }
.aside-step strong { display: block; font-size: 12px; }
.aside-step span { color: var(--muted); font-size: 11px; }
.privacy-note { margin: 19px 0 0; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.track-layout { max-width: 950px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 55px; align-items: start; }
.track-intro { padding-top: 21px; }
.track-intro h1 { font-size: 49px; }
.track-panel { padding: 27px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.track-panel .field { margin-bottom: 16px; }
.track-result { max-width: 840px; margin: 35px auto 0; padding: 28px; border: 1px solid var(--line); background: rgba(255,255,255,.8); animation: rise .35s ease both; }
.result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.result-name { margin: 0 0 3px; font: 500 29px var(--serif); }
.result-meta { margin: 0; color: var(--muted); font-size: 12px; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 3px; background: var(--teal-pale); color: var(--teal); font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-rejected { background: var(--coral-pale); color: #a94d3a; }
.status-interview { background: #fff5dd; color: #8e6517; }
.status-accepted, .status-approved, .status-enrolled { background: #e7f4db; color: #426720; }
.status-requires-additional-documents { background: #fff0e4; color: #9c571b; }
.status-enrollment-pending { background: #edf0ff; color: #4c59a0; }
.timeline { display: grid; grid-template-columns: repeat(5, minmax(80px, 1fr)); gap: 7px; padding-top: 26px; }
.timeline-step { position: relative; color: #9aa49d; font-size: 10px; }
.timeline-step::before { content: ''; display: block; height: 4px; margin-bottom: 10px; border-radius: 5px; background: #e6e9e4; }
.timeline-step.is-done { color: var(--teal); font-weight: 700; }
.timeline-step.is-done::before { background: var(--teal); }
.timeline-step.is-current::before { background: var(--green); }
.staff-message { margin: 20px 0 0; padding: 13px 15px; border-left: 3px solid var(--amber); background: #fff9e9; color: #65552b; font-size: 12px; }

.auth-wrap { width: min(100%, 450px); margin: 30px auto; }
.auth-wrap h1 { font-size: 45px; }
.auth-panel { margin-top: 27px; padding: 27px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.auth-panel .field { margin-bottom: 17px; }
.auth-foot { margin: 18px 0 0; color: var(--muted); font-size: 11px; }
.auth-demo {
    margin-top: 26px;
    padding: 24px 22px 19px;
    background: linear-gradient(180deg, rgba(235, 244, 255, 0.9), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(26, 67, 123, 0.14);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}
.auth-demo h2 {
    margin-bottom: 10px;
    font-size: clamp(26px, 3vw, 34px);
    color: var(--navy);
}
.auth-demo > p {
    margin: 0 auto 18px;
    max-width: 420px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
}
.demo-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(18, 69, 126, 0.08);
    color: var(--navy-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.auth-demo-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.auth-demo-actions .btn {
    min-width: 160px;
}
.help-page {
    max-width: 1040px;
    margin: 12px auto 0;
    padding-bottom: 40px;
}
.help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 22px;
}
.help-card {
    display: block;
    padding: 24px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(235,244,255,.88));
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.help-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}
.help-card-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--navy-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.help-card h2 {
    margin-bottom: 10px;
    font-size: clamp(24px, 2.8vw, 32px);
    color: var(--navy);
}
.help-card p {
    margin: 0 0 16px;
    color: var(--ink-soft);
    line-height: 1.7;
}
.help-card strong {
    color: var(--teal);
    font-weight: 700;
}
.prd-page {
    max-width: 1040px;
    margin: 12px auto 0;
    padding-bottom: 40px;
}
.prd-header {
    margin-bottom: 28px;
}
.prd-header h1 {
    margin-bottom: 10px;
    font-size: clamp(38px, 5vw, 64px);
}
.prd-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.prd-sidebar {
    position: sticky;
    top: 25px;
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.82);
    box-shadow: var(--shadow);
}
.prd-sidebar h2 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 700;
}
.prd-sidebar ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ink-soft);
    line-height: 1.85;
    font-size: 13px;
}
.prd-sidebar a {
    color: var(--teal);
    font-weight: 600;
}
.prd-main {
    display: grid;
    gap: 22px;
}
.prd-section {
    padding: 26px 26px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.86);
    box-shadow: var(--shadow);
}
.prd-section h2 {
    margin-bottom: 16px;
    font-size: 26px;
    color: var(--navy);
}
.prd-section h3 {
    margin: 0 0 12px;
    font-size: 17px;
    color: var(--ink);
}
.prd-section p,
.prd-section li {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.7;
}
.prd-section ul {
    margin: 0 0 8px;
    padding-left: 19px;
}
.prd-summary-grid,
.prd-metrics-grid,
.prd-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.prd-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(235, 244, 255, 0.9), rgba(255,255,255,0.95));
}
.prd-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .09em;
}
.prd-card p {
    margin: 0;
}
.prd-bullets {
    column-gap: 32px;
    columns: 2 220px;
    list-style: disc;
}
.prd-status-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.prd-status-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(18, 49, 79, 0.1);
    border-radius: 10px;
    background: #f7fafd;
}
.prd-status-list i {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
}
.prd-column {
    display: grid;
    gap: 16px;
}
.demo-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    z-index: 50;
    transition: opacity .22s ease, visibility .22s ease;
}
.demo-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.demo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 23, 39, 0.55);
    backdrop-filter: blur(2px);
}
.demo-modal-dialog {
    position: relative;
    width: min(100%, 900px);
    max-height: min(88vh, 720px);
    overflow: auto;
    padding: 28px 26px 20px;
    background: var(--white);
    border: 1px solid rgba(13, 40, 74, 0.08);
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(12, 28, 53, 0.2);
    transform: translateY(10px);
    transition: transform .22s ease;
}
.demo-modal.is-open .demo-modal-dialog {
    transform: translateY(0);
}
.demo-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(17, 46, 77, 0.15);
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.demo-modal-header {
    margin-bottom: 18px;
}
.demo-modal-header .eyebrow {
    margin-bottom: 8px;
    letter-spacing: .16em;
}
.demo-modal-header h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    color: var(--navy);
}
.demo-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 6px;
    margin-bottom: 22px;
    border: 1px solid rgba(19, 49, 88, 0.12);
    border-radius: 999px;
    background: #f6faff;
}
.demo-tab {
    min-height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.demo-tab.is-active {
    background: var(--navy);
    color: var(--white);
}
.demo-panel {
    display: none;
}
.demo-panel.is-active {
    display: block;
}
.demo-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
    gap: 24px;
    align-items: center;
}
.demo-steps {
    padding: 8px 0 0;
}
.demo-step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.demo-step {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 13px;
    border: 1px solid rgba(17, 50, 82, 0.12);
    border-radius: 12px;
    background: #f7fafd;
    color: var(--ink-soft);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.demo-step span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(19, 74, 128, 0.08);
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
}
.demo-step strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 13px;
}
.demo-step small {
    display: block;
    color: var(--muted);
    line-height: 1.5;
}
.demo-step.is-active {
    border-color: rgba(19, 76, 129, 0.26);
    background: rgba(23, 97, 170, 0.06);
    box-shadow: inset 0 0 0 1px rgba(19, 76, 129, 0.08);
}
.demo-step.is-complete {
    border-color: rgba(31, 118, 84, 0.3);
    background: rgba(31, 118, 84, 0.04);
}
.demo-step.is-complete span {
    background: rgba(31, 118, 84, 0.12);
    color: #1d6d46;
}
.demo-next-step {
    margin-top: 18px;
}
.demo-preview {
    display: flex;
    justify-content: center;
}
.demo-form-card {
    width: min(100%, 320px);
    padding: 18px 18px 16px;
    border: 1px solid rgba(18, 49, 79, 0.12);
    border-radius: 14px;
    background: linear-gradient(180deg, #f9fbff 0%, #edf6ff 100%);
    box-shadow: 0 16px 28px rgba(14, 34, 61, 0.08);
}
.demo-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--navy);
    font-weight: 700;
}
.demo-form-mark {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--navy);
    color: var(--white);
    font-size: 11px;
}
.demo-input {
    display: block;
    margin-bottom: 12px;
}
.demo-input span {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 600;
}
.demo-input input {
    width: 100%;
    min-height: 40px;
    padding: 10px 11px;
    border: 1px solid rgba(20, 56, 96, 0.16);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font-size: 12px;
}
.demo-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 11px;
}
.demo-check input {
    accent-color: var(--navy);
}

.dashboard-top { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 28px; }
.dashboard-top h1 { margin-bottom: 6px; font-size: 47px; }
.dashboard-top .lede { font-size: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.stat-card { min-height: 125px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255,255,255,.8); border: 1px solid var(--line); }
.stat-card:first-child { background: var(--ink); color: white; border-color: var(--ink); }
.stat-label { color: var(--muted); font-size: 11px; font-weight: 600; }
.stat-card:first-child .stat-label, .stat-card:first-child .stat-note { color: #b4c4bb; }
.stat-number { font: 500 36px/1 var(--serif); }
.stat-note { color: var(--muted); font-size: 10px; }
.queue-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.queue-heading h2 { margin: 0; font: 600 15px var(--sans); }
.queue-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.queue-tools { margin-bottom: 12px; display: flex; justify-content: space-between; gap: 12px; }
.search-control { position: relative; width: min(100%, 360px); }
.search-control input { padding-left: 35px; background: rgba(255,255,255,.86); }
.search-icon { position: absolute; left: 12px; top: 9px; color: var(--muted); font-size: 18px; }
.filter-select { width: 190px; min-height: 42px; padding: 8px 12px; background: rgba(255,255,255,.86); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
.applicant-table { width: 100%; border-collapse: collapse; text-align: left; }
.applicant-table th { padding: 12px 14px; color: var(--muted); background: #f8f9f6; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.applicant-table td { padding: 14px; border-top: 1px solid #e9ece7; font-size: 12px; white-space: nowrap; }
.applicant-table tbody tr:hover { background: #fbfcf8; }
.table-name { display: block; font-weight: 700; }
.table-email { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.table-ref { color: var(--teal); font-size: 11px; font-weight: 700; }
.empty-state { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); }
.applicant-table .status-badge { padding: 6px 8px; font-size: 10px; }
.empty-row td { white-space: normal; }

.detail-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.detail-top h1 { margin-bottom: 5px; font-size: 43px; }
.detail-top .lede { font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 18px; align-items: start; }
.detail-panel { padding: 23px; border: 1px solid var(--line); background: rgba(255,255,255,.86); }
.detail-panel h2 { margin-bottom: 19px; font: 600 14px var(--sans); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 15px; }
.info-item span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.info-item strong { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.statement { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.statement p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.75; white-space: pre-wrap; }
.update-form .field { margin-bottom: 14px; }
.history-list { margin: 0; padding: 0; list-style: none; }
.history-list li { position: relative; padding: 0 0 17px 19px; border-left: 1px solid #cfd9d1; }
.history-list li:last-child { padding-bottom: 0; border-left-color: transparent; }
.history-list li::before { content: ''; position: absolute; top: 4px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.history-list strong { display: block; font-size: 12px; }
.history-list span { color: var(--muted); font-size: 10px; }
.history-list p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--teal); font-size: 12px; font-weight: 700; }
.back-link:hover { text-decoration: underline; }
.staff-checklist-form { margin: 14px 0; }
.staff-enrollment-form { padding: 9px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; }
.staff-enrollment-form label { display: flex; align-items: flex-start; gap: 7px; }
.staff-enrollment-form input { margin-top: 2px; accent-color: var(--teal); }
.staff-enrollment-form .btn { min-height: 32px; padding: 0 9px; font-size: 10px; }

@keyframes rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 900px) {
    .site-header, .site-footer { padding-left: 25px; padding-right: 25px; }
    .page-shell { padding: 35px 25px 58px; }
    .home-hero { gap: 25px; }
    .home-art { min-height: 340px; }
    .form-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: minmax(0, 1fr) 300px; }
    .prd-grid { grid-template-columns: 1fr; }
    .prd-sidebar { position: static; }
    .help-grid { grid-template-columns: 1fr; }
    .prd-summary-grid,
    .prd-metrics-grid,
    .prd-card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .site-header { min-height: 82px; padding: 0 18px; position: relative; z-index: 5; }
    .brand-logo { width: 72px; height: 72px; flex-basis: 72px; }
    .menu-toggle { width: 40px; height: 40px; padding: 10px; display: grid; align-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 4px; background: transparent; }
    .menu-toggle span { width: 18px; height: 2px; display: block; background: var(--ink); }
    .site-nav { position: absolute; top: 81px; left: 0; right: 0; padding: 10px 18px 17px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 12px 3px; }
    .site-nav .nav-signin { margin-top: 5px; padding: 10px 12px; text-align: center; }
    .nav-logout { display: block; }
    .nav-logout .nav-signin { width: 100%; }
    .page-shell { min-height: calc(100vh - 125px); padding: 29px 18px 45px; }
    .site-footer { padding: 18px; gap: 10px; font-size: 10px; }
    .home-hero { grid-template-columns: 1fr; gap: 22px; }
    .home-copy { padding: 10px 0 0; }
    .home-copy h1 { max-width: 480px; font-size: 47px; }
    .home-copy .lede { font-size: 14px; }
    .home-art { min-height: 285px; border-top-right-radius: 60px; }
    .art-sun { width: 150px; height: 150px; right: 50px; top: 30px; }
    .art-shape { left: 27%; transform: scale(.8) rotate(11deg); transform-origin: bottom; }
    .home-strip { grid-template-columns: 1fr; margin-top: 27px; }
    .strip-item { padding: 15px 0; border-bottom: 1px solid var(--line); }
    .form-layout, .track-layout { grid-template-columns: 1fr; gap: 27px; }
    .form-heading { margin-bottom: 24px; }
    .form-heading h1, .track-intro h1 { font-size: 43px; }
    .form-aside { position: static; order: -1; padding: 17px; }
    .form-aside h3 { margin-bottom: 8px; }
    .aside-step { padding: 9px 0; }
    .track-intro { padding-top: 0; }
    .track-panel { padding: 20px; }
    .track-result { padding: 19px; }
    .result-top { align-items: flex-start; flex-direction: column; gap: 12px; }
    .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 13px; }
    .auth-wrap { margin: 6px auto; }
    .auth-wrap h1 { font-size: 40px; }
    .auth-panel { padding: 21px; }
    .auth-demo { padding: 20px 18px 16px; }
    .auth-demo-actions { flex-direction: column; }
    .auth-demo-actions .btn { width: 100%; }
    .demo-content { grid-template-columns: 1fr; }
    .demo-modal-dialog { padding: 22px 18px 18px; }
    .demo-tabs { width: 100%; justify-content: center; }
    .demo-tab { flex: 1 1 auto; }
    .dashboard-top { align-items: flex-start; flex-direction: column; }
    .dashboard-top h1 { font-size: 41px; }
    .stats-grid { gap: 8px; }
    .stat-card { min-height: 108px; padding: 13px; }
    .stat-number { font-size: 31px; }
    .queue-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .queue-tools { align-items: stretch; flex-direction: column; }
    .search-control, .filter-select { width: 100%; }
    .table-wrap { margin-right: -18px; }
    .applicant-table { min-width: 750px; }
    .detail-top { flex-direction: column; }
    .detail-top h1 { font-size: 37px; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-panel { padding: 18px; }
}
@media (max-width: 380px) {
    .field-grid, .info-grid { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .home-actions { align-items: flex-start; flex-direction: column; gap: 13px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-label { font-size: 10px; }
}