@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap");

:root {
  --navy: #0d1b2a;
  --navy-deep: #07184a;
  --blue: #2563eb;
  --teal: #00c2a8;
  --purple: #7c3aed;
  --amber: #ffc53d;
  --canvas: #eef3ff;
  --surface: #ffffff;
  --surface-soft: #f7f9ff;
  --text: #0c1b3a;
  --muted: #65738b;
  --line: #e1e6f3;
  --success: #087c68;
  --danger: #b4233d;
  --shadow-sm: 0 8px 24px rgba(32, 58, 122, 0.08);
  --shadow-lg: 0 24px 70px rgba(20, 38, 87, 0.22);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Poppins", ui-rounded, "Avenir Next", system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 194, 168, 0.2), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(124, 58, 237, 0.18), transparent 32%),
    linear-gradient(145deg, #e9f5ff, #f5efff 56%, #edf7ff);
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }

.ambient { position: fixed; z-index: -1; border-radius: 999px; filter: blur(2px); pointer-events: none; }
.ambient-one { width: 340px; height: 340px; top: -160px; left: -120px; background: rgba(0, 194, 168, 0.18); }
.ambient-two { width: 420px; height: 420px; right: -190px; bottom: -190px; background: rgba(124, 58, 237, 0.14); }

.app-shell {
  position: relative;
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 18px 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8ff 48%, #faf8ff 100%);
  box-shadow: var(--shadow-lg);
}
.app-shell.session-active { padding-bottom: 104px; }

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 70px;
  margin: 0 -18px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: white;
  background: rgba(7, 24, 74, 0.94);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; color: white; background: none; font-size: 20px; font-weight: 900; letter-spacing: 0.08em; text-decoration: none; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 12px; color: white; background: linear-gradient(135deg, var(--teal), var(--blue), var(--purple)); font-size: 25px; line-height: 1; box-shadow: 0 8px 18px rgba(37,99,235,0.35); }
.session { display: flex; align-items: center; gap: 8px; }
.session-label, .guest-label { max-width: 120px; overflow: hidden; color: #d9e4ff; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { min-height: 44px; padding: 8px 11px; border: 1px solid rgba(255,255,255,0.28); border-radius: 12px; color: white; background: rgba(255,255,255,0.09); font-size: 10px; font-weight: 800; }

.notice { margin: 14px 0 0; padding: 10px 12px; border: 1px solid #dce6ff; border-radius: 12px; color: #28436e; background: #f1f6ff; font-size: 11px; line-height: 1.5; }
.notice[data-tone="error"] { color: #8f1732; border-color: #ffd0da; background: #fff1f4; }
.notice[data-tone="success"] { color: #075f52; border-color: #b9eee2; background: #edfff9; }
.screen { padding: 18px 0 12px; }
.role-shell { min-height: 720px; }

.hero { position: relative; padding: 28px 4px 18px; text-align: center; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.hero::before { width: 140px; height: 140px; left: -76px; top: 5px; background: rgba(0,194,168,0.12); }
.hero::after { width: 170px; height: 170px; right: -105px; bottom: -24px; background: rgba(124,58,237,0.1); }
.hero > * { position: relative; z-index: 1; }
.eyebrow, .step-kicker { display: inline-block; margin: 0 0 8px; color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: 0.13em; }
.hero h1 { margin: 0 0 13px; font-size: clamp(31px, 8.5vw, 39px); font-weight: 900; line-height: 1.08; letter-spacing: -0.045em; }
.hero p, .screen-heading p { max-width: 340px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.6; }
.compact-hero { padding-top: 24px; }
.compact-hero h1 { font-size: 34px; }
.gradient-text { color: transparent; background: linear-gradient(90deg, var(--teal), var(--blue), var(--purple)); -webkit-background-clip: text; background-clip: text; }

.bridge-card { position: relative; min-height: 218px; padding: 25px 22px 21px; overflow: hidden; color: white; border-radius: var(--radius-lg); background: linear-gradient(138deg, var(--navy-deep), #173d9b 50%, #6b35e8); box-shadow: 0 19px 48px rgba(20,38,87,0.27); text-align: center; }
.bridge-card::before { content: ""; position: absolute; inset: auto -12% -40% -12%; height: 70%; border: 2px solid rgba(255,255,255,0.18); border-radius: 50% 50% 0 0; }
.bridge-sky { position: absolute; inset: 0; opacity: 0.35; }
.bridge-sky span { position: absolute; bottom: 0; width: 45px; border-radius: 8px 8px 0 0; background: rgba(255,255,255,0.12); }
.bridge-sky span:nth-child(1) { left: 10px; height: 72px; }
.bridge-sky span:nth-child(2) { right: 18px; height: 102px; }
.bridge-sky span:nth-child(3) { right: 70px; width: 30px; height: 54px; }
.bridge-symbol { position: relative; z-index: 2; margin: -6px 0 4px; font-size: 68px; font-weight: 200; line-height: 1; text-shadow: 0 12px 30px rgba(0,0,0,0.22); }
.bridge-people { position: relative; z-index: 2; min-height: 74px; display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: end; gap: 4px; margin: -7px 12px 2px; filter: drop-shadow(0 13px 17px rgba(1,10,34,0.28)); }
.bridge-people span { font-size: 38px; transform: translateY(-2px); }
.bridge-people b { font-size: 60px; line-height: 1; transform: scaleX(1.18); }
.bridge-people.mini { width: 150px; min-height: 55px; float: right; margin: 0 -6px 0 5px; opacity: 0.95; }
.bridge-people.mini span { font-size: 25px; }
.bridge-people.mini b { font-size: 43px; }
.connection-row { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin: 5px 0 16px; }
.connection-row span { padding: 7px 9px; border-radius: 11px; color: var(--text); background: white; font-size: 9px; font-weight: 800; box-shadow: 0 7px 18px rgba(7,20,47,0.18); }
.connection-row i { height: 2px; background: linear-gradient(90deg, var(--teal), #fff, #b99aff); }
.bridge-bubbles { position: relative; z-index: 2; display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; margin: -5px 0 11px; }
.bridge-bubbles span { padding: 5px 7px; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; color: #e9edff; background: rgba(255,255,255,0.1); font-size: 7px; font-weight: 700; }
.bridge-card strong { position: relative; z-index: 2; display: block; font-size: 14px; line-height: 1.5; }
.mini-bridge { min-height: 155px; padding-top: 15px; text-align: left; }
.mini-bridge .bridge-symbol { float: right; margin: 0; font-size: 66px; opacity: 0.85; }
.mini-bridge strong { padding-top: 35px; font-size: 17px; }
.mini-bridge p { position: relative; z-index: 2; max-width: 260px; margin: 5px 0 0; color: #dce4ff; font-size: 11px; line-height: 1.5; }

.entry-card, .profile-card, .proposal-card, .payment-card, .eta-card, .no-map-card, .evidence-card, .truth-card, .interpretation-card, .passport-summary, .assignment-card { margin: 14px 0; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); }
.entry-card { display: grid; grid-template-columns: 48px 1fr; gap: 11px; align-items: start; }
.entry-card h2, .profile-card h2, .profile-card h3, .evidence-card h3 { margin: 0 0 5px; font-size: 16px; }
.entry-card p, .profile-card p, .truth-card p, .no-map-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.entry-card .primary-button, .entry-card .fine-print { grid-column: 1 / -1; }
.fine-print { font-size: 9px !important; }
.feature-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 15px; color: white; background: linear-gradient(135deg, var(--teal), var(--blue)); font-size: 22px; font-style: normal; box-shadow: 0 9px 20px rgba(37,99,235,0.22); }
.feature-icon.violet { background: linear-gradient(135deg, var(--blue), var(--purple)); }
.value-strip { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; margin: 15px 0 4px; }
.value-strip span, .chip-row span { padding: 7px 9px; border-radius: 999px; color: #375078; background: white; border: 1px solid var(--line); font-size: 9px; font-weight: 700; }

.primary-button, .secondary-button, .text-button, .back-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 15px; border-radius: 15px; font-weight: 900; text-decoration: none; transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease; }
.primary-button { color: white; border: 0; background: linear-gradient(90deg, var(--blue), var(--purple)); box-shadow: 0 11px 23px rgba(76,58,237,0.25); }
.secondary-button { color: var(--blue); border: 1px solid #d7def5; background: white; }
.text-button, .back-button { min-height: 44px; padding: 8px 2px; color: #4c3bc4; border: 0; background: transparent; box-shadow: none; }
.back-button { justify-content: flex-start; font-size: 11px; }
.light-back { position: relative; z-index: 3; color: white; }
.wide { width: 100%; }
.primary-button:hover:not(:disabled), .secondary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(76,58,237,0.28); }
.primary-button:disabled, .secondary-button:disabled { opacity: 0.44; box-shadow: none; }

.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 16px 0; }
.action-card { position: relative; min-height: 166px; padding: 15px; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; text-align: left; color: var(--text); border: 1px solid var(--line); border-radius: 21px; background: white; box-shadow: var(--shadow-sm); }
.action-card::after { content: ""; position: absolute; width: 110px; height: 110px; top: -62px; right: -55px; border-radius: 50%; background: rgba(0,194,168,0.1); }
.action-card.violet-card::after { background: rgba(124,58,237,0.1); }
.action-card.blue-card::after { background: rgba(37,99,235,0.1); }
.action-card.amber-card::after { background: rgba(255,197,61,0.18); }
.action-card .feature-icon { width: 38px; height: 38px; margin-bottom: 10px; font-size: 19px; }
.violet-card .feature-icon { background: linear-gradient(135deg, #8064ef, var(--purple)); }
.blue-card .feature-icon { background: linear-gradient(135deg, var(--teal), var(--blue)); }
.amber-card .feature-icon { color: #6b4800; background: linear-gradient(135deg, #ffe499, var(--amber)); }
.action-card strong { max-width: 125px; font-size: 13px; line-height: 1.3; }
.action-card small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.action-card > i { position: absolute; right: 14px; bottom: 12px; color: var(--purple); font-size: 19px; font-style: normal; }
.trust-banner { display: flex; gap: 12px; align-items: center; margin: 16px 0; padding: 15px; border: 1px solid #d8e8ff; border-radius: 18px; background: linear-gradient(120deg, #effff9, #f3efff); }
.trust-banner > span { color: var(--teal); font-size: 25px; }
.trust-banner strong { font-size: 12px; }
.trust-banner p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.journey-preview { margin: 16px 0; padding: 17px; overflow: hidden; border: 1px solid #dfe4f1; border-radius: 22px; background: linear-gradient(145deg, #fff, #f6f3ff); box-shadow: var(--shadow-sm); }
.journey-heading { display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.journey-heading h2 { max-width: 245px; margin: 0; font-size: 15px; line-height: 1.3; }
.journey-heading button { flex: none; min-height: 44px; padding: 7px 9px; color: var(--purple); border: 0; border-radius: 10px; background: #eee9ff; font-size: 8px; font-weight: 900; }
.journey-preview ol { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 15px 0 0; padding: 0; list-style: none; }
.journey-preview ol::before { content: ""; position: absolute; top: 13px; left: 9%; right: 9%; height: 2px; background: linear-gradient(90deg, var(--teal), var(--blue), var(--purple), var(--amber)); }
.journey-preview li { position: relative; z-index: 1; text-align: center; }
.journey-preview li > span { width: 27px; height: 27px; margin: 0 auto 7px; display: grid; place-items: center; color: white; border: 3px solid white; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--purple)); box-shadow: 0 4px 12px rgba(37,99,235,0.22); font-size: 8px; font-weight: 900; }
.journey-preview b, .journey-preview small { display: block; }
.journey-preview b { font-size: 8px; }
.journey-preview small { margin-top: 2px; color: var(--muted); font-size: 6.5px; line-height: 1.35; }

.screen-heading { margin: 5px 0 12px; }
.screen-heading h2, .tracking-heading h2 { margin: 0 0 7px; font-size: 26px; line-height: 1.15; letter-spacing: -0.035em; }
.screen-heading p { margin: 0; }
.progress-track { height: 7px; margin: 13px 0 20px; overflow: hidden; border-radius: 99px; background: #e5eaf5; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--blue), var(--purple)); }
.field-label { display: block; margin: 12px 0 7px; color: #2c4264; font-size: 11px; font-weight: 800; }
textarea, input, select { width: 100%; margin: 0; padding: 13px 14px; color: var(--text); border: 1.5px solid #dbe2f2; border-radius: 15px; background: white; box-shadow: 0 7px 20px rgba(32,58,122,0.05); }
textarea { min-height: 145px; resize: vertical; line-height: 1.5; }
textarea::placeholder, input::placeholder { color: #94a0b4; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.tool-grid button { min-height: 77px; padding: 8px 5px; color: #56657c; border: 1px solid var(--line); border-radius: 15px; background: white; font-size: 9px; font-weight: 800; opacity: 0.7; }
.tool-grid button span, .tool-grid button small { display: block; }
.tool-grid button span { margin-bottom: 4px; color: var(--purple); font-size: 20px; }
.tool-grid button small { color: #98a2b3; font-size: 7px; font-weight: 600; }
.ai-note, .sandbox-banner { display: flex; gap: 11px; margin: 13px 0; padding: 13px; border: 1px solid #d8e7ff; border-radius: 17px; background: linear-gradient(125deg, #edfffb, #f2edff); }
.ai-note > span, .sandbox-banner > span { color: var(--teal); font-size: 22px; }
.ai-note strong, .sandbox-banner strong { font-size: 11px; }
.ai-note p, .sandbox-banner p { margin: 2px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

.interpretation-card { border-color: #cfe9e3; background: linear-gradient(130deg, #effffb, #f6f2ff); }
.interpretation-card b { display: block; margin-bottom: 5px; color: var(--success); font-size: 12px; }
.interpretation-card p { margin: 4px 0; font-size: 11px; line-height: 1.55; }
.interpretation-card small { color: var(--muted); font-size: 8px; }
.provider-list { display: grid; gap: 11px; }
.provider-card { padding: 16px; border: 1px solid var(--line); border-radius: 21px; background: white; box-shadow: var(--shadow-sm); }
.provider-top { display: grid; grid-template-columns: 55px 1fr auto; gap: 11px; align-items: center; }
.provider-avatar { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(135deg, #dff7ff, #eee1ff); font-size: 28px; }
.provider-top strong { display: block; font-size: 14px; }
.provider-top small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.match-why { margin: 12px 0; padding: 10px; color: #1c6257; border-radius: 13px; background: #effcf8; font-size: 9px; line-height: 1.55; }
.provider-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.provider-actions button { min-height: 44px; padding: 8px; border-radius: 12px; font-size: 9px; font-weight: 800; }
.truth-card { color: #4a5570; background: #fbfcff; }
.truth-card strong { font-size: 11px; }
.truth-card p { margin-top: 5px; font-size: 9px; }

#screen-profile { margin: -18px -18px 0; padding: 18px 18px 12px; }
.profile-hero { margin: -58px -18px 16px; padding: 82px 18px 25px; display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; color: white; border-radius: 0 0 28px 28px; background: linear-gradient(140deg, var(--navy-deep), #2b42a4 52%, #6b35e8); }
.profile-avatar { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 24px; background: white; font-size: 37px; box-shadow: 0 13px 25px rgba(7,20,47,0.22); }
.profile-hero h2, .passport-hero h1 { margin: 5px 0 2px; font-size: 21px; }
.profile-hero p, .passport-hero p { margin: 0; color: #dce4ff; font-size: 10px; }
.verified-badge, .claim-chip, .live-chip { display: inline-flex; padding: 5px 8px; border-radius: 99px; color: var(--success); background: #e7fff8; font-size: 8px; font-weight: 900; letter-spacing: 0.08em; }
.stat-grid, .provider-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 12px 0; }
.stat-grid div, .provider-stats div { padding: 11px 5px; text-align: center; border: 1px solid var(--line); border-radius: 14px; background: white; }
.stat-grid strong, .provider-stats strong { display: block; font-size: 16px; }
.stat-grid span, .provider-stats span { display: block; color: var(--muted); font-size: 7px; }
.trust-card { background: linear-gradient(130deg, #effff9, #f6f2ff); }
.reason-list { display: grid; gap: 7px; }
.reason-list span { padding: 9px; border-radius: 10px; background: rgba(255,255,255,0.8); font-size: 9px; line-height: 1.45; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.muted { color: var(--muted); }

.proposal-card { padding: 0; overflow: hidden; }
.proposal-provider { padding: 15px; display: flex; gap: 10px; align-items: center; color: white; background: linear-gradient(120deg, var(--navy-deep), #4630a8); }
.proposal-provider .provider-avatar { width: 47px; height: 47px; font-size: 24px; }
.proposal-provider strong, .proposal-provider small { display: block; }
.proposal-provider small { color: #dfe4ff; font-size: 8px; }
.proposal-body { padding: 17px; }
.proposal-body h3 { margin: 0 0 5px; font-size: 15px; }
.proposal-body > p { margin: 0 0 13px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.detail-list { display: grid; gap: 0; margin: 12px 0; }
.detail-row { display: grid; grid-template-columns: 86px 1fr; gap: 9px; padding: 9px 0; border-bottom: 1px solid #edf0f7; font-size: 9px; line-height: 1.5; }
.detail-row span { color: var(--muted); }
.proposal-total { display: flex; justify-content: space-between; align-items: end; margin: 13px 0; padding: 13px; border-radius: 13px; background: #f7f6ff; }
.proposal-total span { color: var(--muted); font-size: 9px; }
.proposal-total strong { font-size: 25px; }
.decision-stack { padding: 0 17px 17px; }
.decision-stack .text-button { margin-top: 5px; }
.payment-card { background: white; }
.payment-method { display: grid; grid-template-columns: 35px 1fr auto; gap: 9px; align-items: center; margin: 13px 0; padding: 11px; border-radius: 13px; background: #f7f7fb; }
.payment-method > span { color: var(--purple); font-size: 22px; }
.payment-method strong, .payment-method small { display: block; }
.payment-method strong { font-size: 10px; }
.payment-method small { color: var(--muted); font-size: 8px; }
.payment-method i { color: var(--success); font-size: 7px; font-style: normal; font-weight: 900; }
.check-row { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; margin: 14px 0; font-size: 9px; line-height: 1.5; }
.check-row input { width: 18px; height: 18px; padding: 0; accent-color: var(--purple); }

.tracking-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin-top: 5px; }
.live-chip { margin-top: 3px; }
.eta-card { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: linear-gradient(120deg, #effff9, #f5f2ff); }
.eta-card div + div { padding-left: 12px; border-left: 1px solid #d8e6e4; }
.eta-card span, .eta-card strong { display: block; }
.eta-card strong { margin-top: 3px; font-size: 13px; }
.no-map-card { text-align: center; background: #f1f3f7; }
.route-visual { display: grid; grid-template-columns: 35px 1fr 35px; align-items: center; gap: 7px; margin: 3px 14px 13px; color: var(--success); }
.route-visual span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--teal), var(--blue)); }
.route-visual i { height: 2px; border-top: 3px dashed #59bbaa; }
.no-map-card strong { font-size: 12px; }
.no-map-card p { margin-top: 5px; font-size: 9px; }
.timeline { display: grid; gap: 0; margin: 16px 0; }
.timeline-step { position: relative; display: grid; grid-template-columns: 29px 1fr; gap: 10px; min-height: 58px; }
.timeline-step:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 27px; bottom: 0; width: 2px; background: #dde2ee; }
.timeline-step .timeline-dot { position: relative; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #7a879c; background: #e9edf5; font-size: 9px; font-weight: 900; }
.timeline-step.done .timeline-dot, .timeline-step.current .timeline-dot { color: var(--success); background: #dffff6; }
.timeline-step.current .timeline-dot { box-shadow: 0 0 0 5px #edfff9; }
.timeline-copy strong { display: block; font-size: 10px; }
.timeline-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.evidence-grid div { min-height: 76px; padding: 9px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: #f7f7fb; text-align: center; }
.evidence-grid div > span { color: var(--purple); font-size: 19px; }
.evidence-grid strong { margin-top: 3px; font-size: 9px; }
.evidence-grid small { color: var(--muted); font-size: 7px; }
.celebration { width: 78px; height: 78px; margin: 24px auto -12px; display: grid; place-items: center; color: white; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--blue), var(--purple)); box-shadow: 0 16px 35px rgba(76,58,237,0.28); font-size: 38px; }
.stars { margin: 10px 0; color: var(--amber); font-size: 34px; text-align: center; letter-spacing: 4px; }

.passport-hero { margin: -18px -18px 16px; padding: 30px 18px 25px; display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; color: white; border-radius: 0 0 28px 28px; background: linear-gradient(140deg, var(--navy-deep), #2544a0 55%, #6b35e8); }
.passport-hero .provider-avatar { width: 74px; height: 74px; border-radius: 24px; background: white; }
.passport-summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; background: linear-gradient(120deg, #effff9, #f6f2ff); }
.passport-summary > div > strong, .passport-summary > div > span { display: block; }
.passport-summary > div > strong { font-size: 13px; }
.passport-summary > div > span { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-heading h2 { margin: 0; }
.claim-chip { color: #6143c5; background: #f0ebff; }
.assignment-card { border-color: #d8d0ff; background: linear-gradient(135deg, #fbfaff, #f2fffc); }
.assignment-summary h3 { margin: 6px 0; font-size: 14px; }
.assignment-summary p { margin-bottom: 12px; }
.compact-events { display: grid; gap: 8px; }
.compact-event { padding: 9px; border-radius: 11px; background: #f7f7fb; font-size: 9px; }
.compact-event strong { display: block; color: var(--success); }
.verification-card { border-color: #d3e8e3; background: linear-gradient(145deg, #fff, #f2fffb); }
.evidence-level { padding: 5px 8px; color: #215f56; border: 1px solid #b9e7dc; border-radius: 999px; background: #e8fff8; font-size: 7px; font-weight: 900; letter-spacing: 0.07em; }
.verification-list { margin-top: 8px; }
.verification-list > div { display: grid; grid-template-columns: 24px 1fr auto; gap: 7px; align-items: center; padding: 9px 0; border-bottom: 1px solid #e5eee9; }
.verification-list > div:last-child { border-bottom: 0; }
.verification-list > div > span { width: 22px; height: 22px; display: grid; place-items: center; color: white; border-radius: 50%; background: var(--teal); font-size: 9px; font-weight: 900; }
.verification-list p, .availability-card p { margin: 0; }
.verification-list b, .verification-list small { display: block; }
.verification-list b { font-size: 9px; }
.verification-list small { margin-top: 2px; color: var(--muted); font-size: 7px; line-height: 1.35; }
.verification-list strong { color: var(--success); font-size: 7px; }
.verification-list .pending > span { color: #795a00; background: #ffeab4; }
.verification-list .pending > strong { color: #8a6500; }
.availability-card { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.availability-card > div { display: grid; grid-template-columns: 38px 1fr; gap: 8px; align-items: center; }
.availability-card .feature-icon { width: 38px; height: 38px; font-size: 17px; }
.availability-card b, .availability-card small { display: block; }
.availability-card b { font-size: 8px; }
.availability-card small { margin-top: 2px; color: var(--muted); font-size: 6.5px; line-height: 1.35; }

.form-card, #capability-form, #quote-form { margin: 12px 0; padding: 15px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); }
.form-card .primary-button, #capability-form .primary-button, #quote-form .primary-button { margin-top: 13px; }
.field-hint { margin: 9px 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.empty-state { margin: 12px 0; padding: 14px; color: var(--muted); border: 1px dashed #cbd5e8; border-radius: 14px; background: #fafbff; font-size: 10px; line-height: 1.5; }
.request-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 12px 0; }
.request-choice { min-height: 52px; padding: 10px 12px; text-align: left; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: white; }
.request-choice.selected { border-color: var(--teal); background: #effcf9; box-shadow: inset 0 0 0 1px var(--teal); }
.request-choice strong, .request-choice small { display: block; }
.request-choice strong { font-size: 10px; }
.request-choice small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.opportunity-card { min-width: 0; }
.opportunity-status { padding: 5px 7px; color: #31536b; border-radius: 999px; background: #eaf6fb; font-size: 7px; font-weight: 800; text-align: center; }
.opportunity-description { margin: 10px 0; color: var(--muted); font-size: 9px; line-height: 1.55; white-space: pre-wrap; }
.match-why { margin: 11px 0; }
.match-why strong { display: block; margin-bottom: 5px; font-size: 9px; }
.match-why ul { display: grid; gap: 4px; margin: 0; padding-left: 16px; }
.match-why li, .match-why p { font-size: 9px; line-height: 1.5; }
.provider-actions { align-items: center; }
.provider-actions .primary-button, .provider-actions .secondary-button { min-height: 44px; padding: 8px; font-size: 9px; }
.quote-list-section { margin: 16px 0; }
.quote-list-section h3 { margin: 0 0 9px; font-size: 14px; }
.quote-list { display: grid; gap: 9px; }
.quote-summary { display: grid; gap: 5px; padding: 13px; border: 1px solid #ded8ff; border-radius: 16px; background: linear-gradient(135deg, #fff, #f7f4ff); }
.quote-summary strong { font-size: 11px; }
.quote-summary span { color: var(--text); font-size: 10px; }
.quote-summary small { color: var(--muted); font-size: 8px; }
.quote-summary .secondary-button { justify-self: start; min-height: 42px; padding: 8px 11px; font-size: 9px; }
.capability-rows { display: grid; gap: 11px; margin: 12px 0; }
.capability-row, .appointment-fields { min-width: 0; margin: 12px 0; padding: 12px; border: 1px solid #dfe5f1; border-radius: 15px; }
.capability-row legend, .appointment-fields legend { padding: 0 6px; color: #53647f; font-size: 9px; font-weight: 800; }
.capability-row label { display: block; margin: 10px 0 6px; color: #2c4264; font-size: 9px; font-weight: 800; }
.capability-row input, .capability-row select { font-size: 11px; }
.remove-capability { min-height: 40px; margin-top: 4px; font-size: 9px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field-pair > div { min-width: 0; }
.field-pair input { min-width: 0; padding-inline: 8px; }
.appointment-fields .field-label { margin-top: 3px; }
#provider-opportunities-panel .provider-list { margin-top: 12px; }
#quote-composer-card[hidden] { display: none; }

.join-shell { padding-bottom: 30px; }
.join-back { color: #dbe5ff; font-size: 10px; font-weight: 800; text-decoration: none; }
.join-hero { padding-top: 34px; }
.join-hero h1 { font-size: 35px; }
.join-lock { width: 72px; height: 72px; margin: 2px auto 14px; display: grid; place-items: center; color: white; border: 7px solid rgba(255,255,255,0.9); border-radius: 24px; background: linear-gradient(135deg, var(--teal), var(--blue), var(--purple)); box-shadow: 0 17px 33px rgba(37,99,235,0.25); font-size: 34px; transform: rotate(-3deg); }
.join-card { margin: 4px 0 16px; padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow-sm); }
.join-card form { margin: 14px 0 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.join-card form .primary-button { margin-top: 13px; }
.privacy-note { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 12px; color: #28436e; border: 1px solid #d9e6ff; border-radius: 15px; background: linear-gradient(135deg, #edf7ff, #f4efff); }
.privacy-note > span { width: 36px; height: 36px; display: grid; place-items: center; color: white; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--purple)); }
.privacy-note strong { font-size: 10px; }
.privacy-note p { margin: 3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }

.bottom-nav { position: fixed; z-index: 30; left: 50%; bottom: 0; width: min(430px, 100%); min-height: 74px; padding: 6px max(9px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(9px, env(safe-area-inset-left)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; transform: translateX(-50%); border-top: 1px solid #dce3f0; background: rgba(255,255,255,0.94); backdrop-filter: blur(16px); box-shadow: 0 -8px 30px rgba(20,38,87,0.08); }
.bottom-nav button { min-height: 52px; padding: 5px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #667085; border: 0; border-radius: 13px; background: transparent; font-size: 7px; font-weight: 800; }
.bottom-nav button > span { font-size: 19px; line-height: 1; }
.bottom-nav button[aria-current="page"] { color: var(--purple); background: #f5f1ff; }
.bottom-nav .nav-plus { width: 52px; min-height: 52px; margin: -21px auto 0; color: white; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--blue), var(--purple)); box-shadow: 0 10px 23px rgba(37,99,235,0.35); }
.bottom-nav .nav-plus > span { font-size: 29px; }

#legal-footer { margin: 25px 0 0; padding: 15px 0; color: #71809a; text-align: center; font-size: 8px; line-height: 1.5; }
#legal-footer p { margin: 3px 0; }

button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

@media (hover: hover) {
  .action-card:hover, .provider-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(32,58,122,0.14); }
}

@media (min-width: 700px) {
  .app-shell { min-height: calc(100vh - 48px); margin: 24px auto; border-radius: 30px; }
  .app-header { border-radius: 30px 30px 0 0; }
  .bottom-nav { bottom: 24px; border-radius: 0 0 30px 30px; }
}

@media (max-width: 370px) {
  .app-shell { padding-left: 14px; padding-right: 14px; }
  .app-header { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .hero h1 { font-size: 30px; }
  .action-grid { grid-template-columns: 1fr; }
  .action-card { min-height: 132px; }
  .provider-actions { grid-template-columns: 1fr; }
}

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