:root {
  color-scheme: light dark;
  --bg: #f3f7fa;
  --surface: #ffffff;
  --surface-2: #eaf2f6;
  --surface-3: #dceaf0;
  --text: #102331;
  --muted: #526b79;
  --line: #cbdbe2;
  --primary: #087e86;
  --primary-strong: #05636a;
  --primary-soft: #d8f1f1;
  --accent: #b84b1b;
  --success: #177254;
  --success-soft: #dff4e9;
  --danger: #b73a45;
  --danger-soft: #fae8e9;
  --warning: #9a5a15;
  --warning-soft: #fff0d5;
  --shadow-sm: 0 8px 24px rgba(14, 43, 57, .08);
  --shadow-lg: 0 28px 80px rgba(5, 30, 44, .18);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --motion-fast: 160ms;
  --motion: 260ms;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 9% -10%, rgba(29, 177, 184, .14), transparent 35rem),
    radial-gradient(circle at 100% 10%, rgba(233, 111, 49, .08), transparent 30rem),
    var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea { font: inherit; }
button, label, select { touch-action: manipulation; }
button { color: inherit; }
[hidden] { display: none !important; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.skip-link { position: fixed; z-index: 1000; top: .5rem; left: .5rem; transform: translateY(-150%); padding: .75rem 1rem; border-radius: 10px; background: var(--text); color: var(--surface); }
.skip-link:focus { transform: translateY(0); }

.app-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(68px + var(--safe-top));
  padding: calc(12px + var(--safe-top)) 18px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid color-mix(in srgb, var(--primary) 32%, transparent); border-radius: 14px; color: var(--primary); background: var(--surface); box-shadow: var(--shadow-sm); }
.brand-mark svg { width: 24px; height: 24px; }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand b { font-size: .9rem; letter-spacing: .18em; }
.brand small { margin-top: .28rem; color: var(--muted); font-size: .7rem; letter-spacing: .06em; }
.secure-chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 32px; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: .72rem; font-weight: 700; }
.secure-chip span { width: 7px; height: 7px; border-radius: 50%; background: #26a275; box-shadow: 0 0 0 4px rgba(38, 162, 117, .12); }

main { width: 100%; }
.state-screen { display: none; width: min(100% - 32px, 520px); min-height: calc(100dvh - 140px); margin: 0 auto; padding: 70px 0 calc(48px + var(--safe-bottom)); text-align: center; align-content: center; }
.state-screen.is-active { display: grid; justify-items: center; }
.state-screen h1 { margin: 1rem 0 .5rem; font-size: clamp(1.7rem, 7vw, 2.45rem); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.state-screen > p:not(.eyebrow) { max-width: 34rem; margin: 0 0 1.5rem; color: var(--muted); }
.state-icon, .success-ring { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 30px; }
.state-icon svg, .success-ring svg { width: 40px; height: 40px; }
.state-icon-danger { color: var(--danger); background: var(--danger-soft); }

.loader { width: 38px; height: 38px; border: 3px solid var(--surface-3); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.eyebrow { margin: 0 0 .35rem; color: var(--primary); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lead { max-width: 40rem; margin: .7rem 0 1.5rem; color: var(--muted); font-size: 1rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 50px;
  padding: .78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 760;
  text-decoration: none;
  transition: background var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast), opacity var(--motion-fast);
}
.button:hover { box-shadow: 0 8px 24px rgba(7, 54, 61, .12); }
.button:active { opacity: .82; }
.button:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; }
.button-primary { color: #fff; background: var(--primary); }
.button-primary:hover { background: var(--primary-strong); }
.button-secondary { border-color: var(--line); background: var(--surface); }
.button-ghost { border-color: transparent; color: var(--muted); background: transparent; }
.button-success { color: #fff; background: var(--success); }
.button-danger-soft { color: var(--danger); background: var(--danger-soft); }
.button-full { width: 100%; }

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 3px; }

.wizard-shell, .admin-shell { width: min(100% - 32px, 760px); margin: 0 auto; padding: 28px 0 calc(124px + var(--safe-bottom)); }
.wizard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.wizard-head h1 { max-width: 22rem; margin: 0; font-size: clamp(1.65rem, 7vw, 2.25rem); line-height: 1.06; letter-spacing: -.045em; }
.identity-chip { flex: 0 0 auto; max-width: 42%; padding: .42rem .68rem; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: .72rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.progress-card { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.progress-copy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.progress-copy span { color: var(--muted); font-size: .74rem; font-weight: 700; }
.progress-copy strong { font-size: .78rem; }
.progress-track { height: 6px; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.progress-track span { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--primary); transition: width var(--motion) ease; }

#verificationForm { margin-top: 1rem; }
.wizard-step { min-height: 410px; padding: clamp(1.4rem, 6vw, 2.2rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: var(--shadow-sm); animation: step-in var(--motion) ease both; }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } }
.wizard-step h2 { margin: .15rem 0 0; font-size: clamp(1.65rem, 7vw, 2.4rem); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.step-kicker { margin: 0 0 .35rem; color: var(--accent); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }

.hero-orbit { position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 1.5rem; color: #fff; border-radius: 30px; background: var(--primary); }
.hero-orbit::before { content: ""; position: absolute; inset: -9px; border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent); border-radius: 36px; }
.hero-orbit span { position: absolute; right: -8px; top: -8px; width: 24px; height: 24px; border: 5px solid var(--surface); border-radius: 50%; background: var(--accent); }
.hero-orbit svg { width: 42px; height: 42px; }

.requirement-list { display: grid; gap: .75rem; margin: 1.6rem 0; }
.requirement-list > div { display: flex; align-items: center; gap: .85rem; padding: .85rem; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.requirement-list > div > span { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--primary); background: var(--primary-soft); font-size: .76rem; font-weight: 850; }
.requirement-list div div { display: grid; min-width: 0; }
.requirement-list small { color: var(--muted); font-size: .78rem; }
.privacy-note { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem; border-radius: 16px; color: var(--primary-strong); background: var(--primary-soft); }
.privacy-note svg { flex: 0 0 auto; margin-top: .1rem; }
.privacy-note p { margin: 0; font-size: .82rem; }

.upload-zone { position: relative; display: grid; min-height: 268px; place-items: center; align-content: center; gap: .35rem; padding: 1.4rem; overflow: hidden; border: 1.5px dashed color-mix(in srgb, var(--primary) 48%, var(--line)); border-radius: var(--radius); cursor: pointer; text-align: center; background: color-mix(in srgb, var(--primary-soft) 35%, var(--surface)); transition: border-color var(--motion-fast), background var(--motion-fast); }
.upload-zone:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary-soft) 65%, var(--surface)); }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-visual { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: .5rem; border-radius: 22px; color: var(--primary); background: var(--surface); box-shadow: var(--shadow-sm); }
.upload-visual svg { width: 30px; height: 30px; }
.upload-zone > strong { font-size: 1rem; }
.upload-zone > small { color: var(--muted); font-size: .77rem; }
.upload-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #09141b; }
.video-preview { object-fit: contain; }
.replace-label { position: absolute; z-index: 2; right: 10px; bottom: 10px; display: none; padding: .42rem .7rem; border-radius: 99px; color: #fff; background: rgba(0, 0, 0, .68); font-size: .7rem; font-weight: 800; }
.upload-zone.has-file .replace-label { display: block; }
.upload-zone-compact { min-height: 210px; }
.field-error { min-height: 1.3rem; margin: .4rem 0 0; color: var(--danger); font-size: .8rem; font-weight: 650; }
.photo-tips { display: flex; flex-wrap: wrap; gap: .65rem 1rem; margin: .45rem 0 0; padding: 0; color: var(--muted); list-style: none; font-size: .78rem; }
.photo-tips li { display: inline-flex; align-items: center; gap: .35rem; }
.photo-tips svg { width: 15px; height: 15px; color: var(--success); stroke-width: 2.5; }

.video-guide { position: relative; height: 150px; margin: 1.1rem 0; overflow: hidden; border-radius: var(--radius); background: #0b2632; }
.video-guide::before { content: ""; position: absolute; inset: 0; opacity: .35; background: radial-gradient(circle at 50% 30%, #2e8992, transparent 48%); }
.face-outline { position: absolute; left: 27%; top: 24px; width: 70px; height: 88px; border: 2px solid rgba(255,255,255,.7); border-radius: 48% 48% 44% 44%; }
.doc-outline { position: absolute; right: 19%; top: 45px; width: 76px; height: 52px; border: 2px solid #f59b6c; border-radius: 7px; transform: rotate(5deg); }
.video-guide i { position: absolute; left: 50%; bottom: 13px; width: 8px; height: 8px; border-radius: 50%; background: #ee634d; box-shadow: 0 0 0 5px rgba(238,99,77,.22); }

.review-list { display: grid; gap: .7rem; margin: 1.4rem 0; }
.review-list button { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 68px; padding: .7rem; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; text-align: left; background: var(--bg); }
.review-list button:hover { border-color: var(--primary); }
.review-list button > span { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--primary); background: var(--primary-soft); }
.review-list button > div { display: grid; flex: 1; min-width: 0; }
.review-list small { overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.review-list b { color: var(--primary); font-size: .75rem; }
.consent-box { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; background: var(--surface); }
.consent-box input { position: absolute; opacity: 0; pointer-events: none; }
.consent-box > span { display: grid; flex: 0 0 auto; width: 24px; height: 24px; place-items: center; border: 2px solid var(--line); border-radius: 8px; color: transparent; }
.consent-box input:checked + span { border-color: var(--primary); color: #fff; background: var(--primary); }
.consent-box svg { width: 15px; height: 15px; stroke-width: 2.8; }
.consent-box small { color: var(--muted); font-size: .78rem; }

.form-alert { margin-bottom: .8rem; padding: .85rem 1rem; border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); border-radius: 14px; color: var(--danger); background: var(--danger-soft); font-size: .84rem; font-weight: 650; }
.wizard-actions { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: flex; justify-content: flex-end; gap: .7rem; padding: .8rem max(16px, calc((100vw - 760px) / 2)) calc(.8rem + var(--safe-bottom)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(18px); }
.wizard-actions .button-primary { min-width: 132px; }
.upload-progress { position: fixed; z-index: 40; inset: 0; display: grid; place-content: center; padding: 2rem; text-align: center; background: rgba(3, 18, 27, .82); backdrop-filter: blur(16px); color: #fff; }
.upload-progress > span { width: 68px; height: 68px; margin: 0 auto 1rem; border: 4px solid rgba(255,255,255,.2); border-top-color: #6fe0d5; border-radius: 50%; animation: spin .9s linear infinite; }
.upload-progress p { margin: 0; font-weight: 800; }
.upload-progress small { color: rgba(255,255,255,.72); }

.success-ring { color: #fff; background: var(--success); box-shadow: 0 0 0 12px var(--success-soft); }
.status-receipt { display: grid; width: min(100%, 360px); margin: .8rem 0 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; text-align: left; background: var(--surface); box-shadow: var(--shadow-sm); }
.status-receipt span, .status-receipt small { color: var(--muted); font-size: .75rem; }
.status-receipt strong { margin: .1rem 0; color: var(--warning); font-size: 1.08rem; }
.status-receipt .status-text-approved { color: var(--success); }
.status-receipt .status-text-rejected { color: var(--danger); }

.admin-shell { width: min(100% - 32px, 1180px); padding-bottom: calc(54px + var(--safe-bottom)); }
.admin-hero { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0 1.8rem; }
.admin-hero h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1; letter-spacing: -.055em; }
.admin-hero p:last-child { margin: .6rem 0 0; color: var(--muted); }
.admin-user { display: flex; align-items: center; gap: .65rem; flex: 0 0 auto; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.admin-user > span, .person-card > span { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: #fff; background: var(--primary); font-weight: 850; }
.admin-user div { display: grid; }
.admin-user small { color: var(--muted); font-size: .7rem; }

.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1rem; }
.admin-stats article { display: grid; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.admin-stats span, .admin-stats small { color: var(--muted); font-size: .72rem; }
.admin-stats strong { margin: .12rem 0; font-size: 1.75rem; line-height: 1; font-variant-numeric: tabular-nums; }
.admin-grid { display: grid; grid-template-columns: minmax(270px, .72fr) minmax(0, 1.55fr); gap: 1rem; align-items: start; }
.create-card, .requests-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.create-card { position: sticky; top: 1rem; }
.section-heading, .requests-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.section-heading h2, .requests-head h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.03em; }
.section-heading .eyebrow, .requests-head .eyebrow { margin: 0; }
.section-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; color: var(--primary); background: var(--primary-soft); }
.field { display: grid; gap: .42rem; margin-bottom: .9rem; }
.field > span { font-size: .78rem; font-weight: 750; }
.field > span small { color: var(--muted); font-weight: 500; }
.field select, .field input, .field textarea, .generated-link input { width: 100%; min-height: 48px; padding: .72rem .8rem; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--bg); }
.field textarea { min-height: 90px; resize: vertical; }
.generated-link { margin-top: 1rem; padding: .8rem; border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); border-radius: 16px; background: var(--success-soft); }
.generated-link > p { display: flex; align-items: center; gap: .4rem; margin: 0 0 .7rem; color: var(--success); font-size: .78rem; font-weight: 800; }
.generated-link > p svg { width: 16px; height: 16px; }
.generated-link > div { display: flex; gap: .4rem; margin-bottom: .6rem; }
.generated-link input { min-width: 0; background: var(--surface); font-size: .74rem; }
.generated-link button:not(.button) { display: grid; flex: 0 0 48px; place-items: center; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); }

.requests-head { justify-content: space-between; }
.icon-button { display: grid; flex: 0 0 auto; width: 46px; height: 46px; place-items: center; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); }
.icon-button:hover { color: var(--primary); background: var(--primary-soft); }
.filters { display: flex; gap: .4rem; margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.filters button, .media-tabs button { min-height: 44px; padding: .55rem .8rem; border: 1px solid transparent; border-radius: 999px; cursor: pointer; color: var(--muted); background: transparent; font-size: .76rem; font-weight: 750; white-space: nowrap; }
.filters button.is-active, .media-tabs button.is-active { border-color: color-mix(in srgb, var(--primary) 25%, transparent); color: var(--primary-strong); background: var(--primary-soft); }
.filters span { display: inline-grid; min-width: 21px; height: 21px; place-items: center; margin-left: .25rem; border-radius: 99px; color: var(--surface); background: var(--primary); font-size: .65rem; }
.request-list { display: grid; gap: .65rem; }
.request-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: center; width: 100%; min-height: 78px; padding: .75rem; border: 1px solid var(--line); border-radius: 17px; cursor: pointer; text-align: left; background: var(--bg); }
.request-item:hover { border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); background: var(--surface); }
.request-avatar { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; color: #fff; background: #254b5b; font-weight: 850; }
.request-person { display: grid; min-width: 0; }
.request-person strong, .request-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-person small { color: var(--muted); font-size: .72rem; }
.request-meta { display: grid; justify-items: end; gap: .3rem; }
.request-meta time { color: var(--muted); font-size: .68rem; }
.status-badge { display: inline-flex; align-items: center; min-height: 26px; padding: .25rem .58rem; border-radius: 999px; font-size: .67rem; font-weight: 800; white-space: nowrap; }
.status-pending { color: var(--warning); background: var(--warning-soft); }
.status-approved { color: var(--success); background: var(--success-soft); }
.status-rejected { color: var(--danger); background: var(--danger-soft); }
.empty-state { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.empty-state > span { display: grid; width: 58px; height: 58px; margin: 0 auto .8rem; place-items: center; border-radius: 18px; color: var(--primary); background: var(--primary-soft); }
.empty-state h3, .empty-state p { margin: .2rem 0; }
.empty-state p { font-size: .82rem; }

.review-dialog { width: min(100% - 24px, 720px); max-height: calc(100dvh - 24px); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 26px; color: var(--text); background: var(--surface); box-shadow: var(--shadow-lg); }
.review-dialog::backdrop { background: rgba(3, 17, 25, .68); backdrop-filter: blur(8px); }
.dialog-head { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); }
.dialog-head h2 { margin: 0; font-size: 1.3rem; }
.dialog-head .eyebrow { margin: 0; }
.person-card { display: flex; align-items: center; gap: .75rem; margin: 1rem; padding: .8rem; border-radius: 16px; background: var(--bg); }
.person-card > div { display: grid; flex: 1; min-width: 0; }
.person-card small { overflow-wrap: anywhere; color: var(--muted); font-size: .71rem; }
.media-tabs { display: flex; gap: .35rem; margin: 0 1rem .7rem; }
.media-tabs button { flex: 1; border-radius: 12px; }
.media-stage { display: grid; min-height: 340px; margin: 0 1rem 1rem; overflow: hidden; place-items: center; border-radius: 18px; background: #07131a; }
.media-stage img, .media-stage video { display: block; width: 100%; max-height: 65dvh; object-fit: contain; }
.media-stage .media-error { padding: 2rem; color: #fff; text-align: center; }
.review-dialog > .field { margin: 0 1rem 1rem; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 0 1rem 1rem; }
.delete-link { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; margin: 0 auto calc(1rem + var(--safe-bottom)); border: 0; cursor: pointer; color: var(--danger); background: transparent; font-size: .76rem; font-weight: 700; }
.delete-link svg { width: 16px; height: 16px; }

.toast { position: fixed; z-index: 100; right: 16px; bottom: calc(18px + var(--safe-bottom)); left: 16px; max-width: 440px; margin: auto; padding: .85rem 1rem; border-radius: 14px; color: #fff; background: #102b38; box-shadow: var(--shadow-lg); text-align: center; font-size: .82rem; font-weight: 700; animation: toast-in var(--motion) ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 760px) {
  .admin-hero { align-items: flex-start; }
  .admin-user { padding: .45rem; }
  .admin-user div { display: none; }
  .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-stats article { padding: .8rem; }
  .admin-stats strong { font-size: 1.4rem; }
  .admin-stats small { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
  .create-card { position: static; }
}

@media (max-width: 480px) {
  .secure-chip { width: 32px; padding: 0; justify-content: center; font-size: 0; }
  .wizard-shell, .admin-shell { width: min(100% - 24px, 1180px); padding-top: 20px; }
  .wizard-step { min-height: 440px; padding: 1.2rem; border-radius: 24px; }
  .wizard-head { align-items: center; }
  .identity-chip { max-width: 37%; }
  .upload-zone { min-height: 250px; }
  .photo-tips { display: grid; }
  .wizard-actions { padding-right: 12px; padding-left: 12px; }
  .request-item { grid-template-columns: auto minmax(0, 1fr); }
  .request-meta { grid-column: 2; grid-row: 2; display: flex; align-items: center; justify-items: start; }
  .request-avatar { grid-row: 1 / 3; }
  .person-card { align-items: flex-start; flex-wrap: wrap; }
  .person-card .status-badge { margin-left: 52px; }
  .media-stage { min-height: 270px; }
}

@media (orientation: landscape) and (max-height: 560px) {
  .app-header { min-height: calc(58px + var(--safe-top)); }
  .wizard-step { min-height: 300px; }
  .hero-orbit { float: right; width: 72px; height: 72px; margin: 0 0 1rem 1rem; }
  .upload-zone { min-height: 190px; }
  .video-guide { height: 110px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07151f;
    --surface: #0e2330;
    --surface-2: #122d3b;
    --surface-3: #1a3b49;
    --text: #eef8fa;
    --muted: #a5bac4;
    --line: #284653;
    --primary: #54cbd0;
    --primary-strong: #8ee3e5;
    --primary-soft: #113c43;
    --accent: #ff9c6a;
    --success: #4fc596;
    --success-soft: #113d31;
    --danger: #ff8790;
    --danger-soft: #47222a;
    --warning: #f4ba62;
    --warning-soft: #46341d;
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, .2);
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, .5);
  }
  .button-primary, .button-success { color: #061419; }
  .success-ring { color: #061419; }
  .upload-preview, .media-stage { background: #02090d; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
