:root {
    color-scheme: light;
    --navy: #12344d;
    --navy-dark: #0b2639;
    --teal: #008f83;
    --teal-soft: #e5f5f2;
    --ink: #172b3a;
    --muted: #647483;
    --line: #d7e0e5;
    --surface: #ffffff;
    --page: #f3f6f7;
    --danger: #b42318;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--teal); }
button, input { font: inherit; }
.topbar { background: var(--navy); color: white; }
.topbar-inner { max-width: 1180px; min-height: 68px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; font-weight: 750; letter-spacing: .01em; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--teal); font-weight: 850; }
.nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav a, .nav button { color: #e9f2f5; background: transparent; border: 0; padding: 10px 12px; text-decoration: none; cursor: pointer; border-radius: 8px; }
.nav a:hover, .nav button:hover { background: rgba(255,255,255,.1); }
.role-pill { color: #d6e6eb; font-size: 13px; }
.container { max-width: 1180px; margin: 0 auto; padding: 34px 24px 56px; }
.page-heading { margin: 0 0 8px; font-size: 28px; }
.page-intro { margin: 0 0 28px; color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(18,52,77,.05); }
.metric { padding: 22px; }
.metric-label { color: var(--muted); font-size: 14px; font-weight: 650; }
.metric-value { margin-top: 8px; font-size: 32px; font-weight: 800; color: var(--navy); }
.panel { margin-top: 22px; padding: 24px; }
.panel h2 { margin: 0 0 16px; font-size: 19px; }
.empty { color: var(--muted); padding: 18px 0; }
.activity { list-style: none; padding: 0; margin: 0; }
.activity li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; }
.activity time { color: var(--muted); font-size: 13px; }
.guest-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 44%) 1fr; }
.guest-brand { background: linear-gradient(145deg, var(--navy-dark), var(--navy)); color: white; padding: 60px clamp(32px,7vw,100px); display: flex; flex-direction: column; justify-content: center; }
.guest-brand .brand-mark { width: 54px; height: 54px; font-size: 22px; }
.guest-brand h1 { max-width: 500px; margin: 28px 0 12px; font-size: clamp(32px,4vw,50px); line-height: 1.08; }
.guest-brand p { max-width: 500px; color: #c7d9e1; line-height: 1.7; }
.guest-main { display: grid; place-items: center; padding: 36px; }
.auth-card { width: min(440px,100%); }
.auth-card h2 { margin: 0 0 8px; font-size: 28px; }
.auth-card > p { color: var(--muted); margin: 0 0 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; margin-bottom: 7px; }
.field input { width: 100%; border: 1px solid #b9c7cf; border-radius: 9px; padding: 12px 13px; background: white; }
.field input:focus { outline: 3px solid rgba(0,143,131,.18); border-color: var(--teal); }
.check { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 14px; }
.button { width: 100%; border: 0; border-radius: 9px; padding: 12px 16px; background: var(--teal); color: white; font-weight: 750; cursor: pointer; }
.button:hover { background: #007c72; }
.errors { margin: 0 0 18px; padding: 12px 14px; background: #fff1f0; border: 1px solid #f4c7c3; border-radius: 9px; color: var(--danger); }
.security-note { margin-top: 22px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.narrow { max-width: 760px; }
.mfa-card h1 { margin: 8px 0 10px; }
.mfa-card > p { color: var(--muted); line-height: 1.6; }
.step-label { color: var(--teal); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; }
.setup-steps { padding-left: 22px; line-height: 1.6; }
.setup-steps li { margin: 14px 0; }
.qr-code { width: 260px; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 10px; }
.manual-key { display: block; max-width: 100%; margin-top: 8px; padding: 11px; border-radius: 8px; background: #edf2f4; color: var(--navy); font-size: 14px; overflow-wrap: anywhere; user-select: all; }
.recovery-option { margin: 4px 0 18px; color: var(--muted); }
.recovery-option summary { cursor: pointer; margin-bottom: 14px; }
.recovery-codes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; list-style: none; padding: 18px; background: #edf2f4; border-radius: 10px; }
.recovery-codes code { color: var(--navy); font-weight: 750; letter-spacing: .05em; }
.button-link { display: inline-block; width: auto; margin-top: 8px; text-decoration: none; }
.page-actions, .case-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #edf2f4; color: var(--navy); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
td { font-size: 14px; }
.stage-pill { display: inline-block; padding: 5px 9px; border-radius: 999px; background: var(--teal-soft); color: #006d64; font-size: 12px; font-weight: 750; }
.stage-pill.large { padding: 8px 13px; font-size: 14px; }
.empty-pad, .pagination { padding: 22px; }
.narrow-wide { max-width: 980px; }
.back-link { display: inline-block; margin-bottom: 18px; text-decoration: none; }
.form-section { padding: 24px; margin: 0 0 18px; }
.form-section h2 { margin: 0 0 20px; font-size: 19px; }
.form-section h2 span { color: var(--muted); font-size: 13px; font-weight: 500; margin-left: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
.field select, .field textarea { width: 100%; border: 1px solid #b9c7cf; border-radius: 9px; padding: 12px 13px; background: white; }
.field small { display: block; margin-top: 6px; color: var(--muted); }
.full-field { grid-column: 1 / -1; }
.submit-button { width: auto; min-width: 190px; }
.success { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #acd9d2; background: var(--teal-soft); color: #006d64; border-radius: 9px; }
.eyebrow { color: var(--teal); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.two-column { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 22px; align-items: start; }
.two-column .panel { margin-top: 0; margin-bottom: 22px; }
.applicant-summary { padding: 16px 0; border-top: 1px solid var(--line); }
.applicant-summary h3 { margin: 0 0 12px; }
dl { margin: 0; } dl div { margin-bottom: 11px; } dt { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; } dd { margin: 3px 0 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; justify-content: space-between; gap: 24px; padding: 15px 0; border-top: 1px solid var(--line); }
.timeline span, .timeline time { color: var(--muted); font-size: 13px; }
.timeline p { margin: 6px 0 0; }
@media (max-width: 850px) { .metrics { grid-template-columns: repeat(2,1fr); } .guest-shell { grid-template-columns: 1fr; } .guest-brand { padding: 38px 28px; } .guest-brand h1 { font-size: 30px; } }
@media (max-width: 850px) { .two-column { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .metrics { grid-template-columns: 1fr; } .topbar-inner { padding: 0 16px; } .role-pill { display: none; } .container { padding: 26px 16px; } .guest-main { padding: 28px 20px; } }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } .full-field { grid-column: auto; } .page-actions, .case-heading { display: block; } .stage-pill.large { margin-bottom: 18px; } }
