:root {
  --rosso: #d60407;
  --rosso-dark: #a70306;
  --burgundy: #b01731;
  --burgundy-soft: #f8ebef;
  --gold: #d9be7a;
  --gold-soft: #f7f0df;
  --navy: #17324f;
  --teal: #177f78;
  --teal-soft: #e8f5f3;
  --ink: #161719;
  --muted: #65676d;
  --line: #e8e4e1;
  --paper: #ffffff;
  --wash: #f4f5f7;
  --danger: #b42318;
  --warning: #9b5c00;
  --success: #147d5a;
  --shadow: 0 18px 48px rgba(30, 23, 22, 0.11);
  --card-shadow: 0 24px 70px rgba(20, 18, 18, 0.17);
  --radius: 20px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--wash);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.55;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #6aa9ff;
  outline-offset: 3px;
}
a { color: inherit; }
img { max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(25, 25, 25, .07);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--rosso), var(--burgundy));
  color: white;
  font-weight: 800;
  letter-spacing: -0.08em;
}
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: 0.03em; }
.context-title { max-width: 240px; overflow: hidden; color: var(--muted); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.prototype-label {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #6e5014;
  font-size: 12px;
  font-weight: 700;
}
.sample-label { padding: 3px 7px; border-radius: 999px; background: #edf2f6; color: var(--navy); font-size: 10px; font-weight: 800; white-space: nowrap; }
.topbar-spacer { flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--navy);
}
.ui-icon { display: block; width: 22px; height: 22px; }
.icon-button .ui-icon { margin: auto; }
.notification-button { position: relative; }
.notification-button > span { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid white; border-radius: 999px; background: var(--burgundy); color: white; font-size: 9px; font-weight: 850; }
.avatar-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #ead6c7, #bf8c73);
  color: #5e2c1f;
  font-weight: 800;
}

.layout { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: calc(100vh - 70px); }
.sidebar {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  padding: 22px 12px 16px;
  overflow-y: auto;
  background: #fcfbfa;
  border-right: 1px solid var(--line);
}
.side-section { display: grid; gap: 5px; margin-bottom: 20px; }
.side-label { padding: 0 12px 7px; color: #625d59; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 48px;
  margin: 2px 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #3a3b3e;
  text-align: left;
  text-decoration: none;
}
.nav-link:hover { background: #f2efec; }
.nav-link.active { background: var(--burgundy-soft); color: var(--burgundy); font-weight: 800; }
.nav-icon { display: grid; place-items: center; width: 24px; text-align: center; }
.nav-icon .ui-icon { width: 21px; height: 21px; }
.nav-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--burgundy); color: white; font-size: 11px; text-align: center; }
.screen-picker-button { border: 1px dashed #c7bcb5; background: #fff; }
.sidebar-foot { display: grid; gap: 10px; margin-top: auto; }
.sidebar-foot .sample-label { justify-self: start; margin-left: 10px; }
.create-button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; margin-top: 4px; padding: 10px 14px; border: 0; border-radius: 15px; background: var(--burgundy); color: white; font-weight: 800; box-shadow: 0 10px 24px rgba(176, 23, 49, .2); }
.create-button > span:first-child { font-size: 21px; line-height: 1; }

.main { min-width: 0; padding: 30px clamp(20px, 3.6vw, 54px) 96px; }
.page { width: min(100%, 1120px); margin: 0 auto; }
.page.narrow { width: min(100%, 720px); }
.safety-list { list-style: none; margin: 16px 0 0; padding: 0; }
.safety-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line, #d9ddd9); }
.safety-list small { color: var(--muted, #607070); }
.page.medium { width: min(100%, 900px); }
.page.discover-width { width: min(100%, 1050px); }
.page.candidate-width { width: min(100%, 940px); }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 5px; color: var(--burgundy); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1[tabindex="-1"]:focus { outline: none; }
h1 { margin-bottom: 8px; font-size: clamp(26px, 4vw, 38px); line-height: 1.22; letter-spacing: -.035em; }
h2 { margin-bottom: 12px; font-size: clamp(20px, 3vw, 27px); line-height: 1.3; letter-spacing: -.02em; }
h3 { margin-bottom: 8px; font-size: 17px; line-height: 1.4; }
code { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .92em; }
.subhead { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11px; }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 2px 0 rgba(48, 35, 29, .02);
}
.card.soft { background: #fcfaf8; }
.card.accent { border-color: #e5c4cd; background: linear-gradient(145deg, #fff 20%, var(--burgundy-soft)); }
.card.teal { border-color: #c6e4e1; background: var(--teal-soft); }
.card.gold { border-color: #ead7aa; background: var(--gold-soft); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 14px; }
.section { margin-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-heading h2, .section-heading h3, .section-heading p { margin-bottom: 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid #d9d3cf;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(46, 31, 24, .08); }
.button.primary { border-color: var(--burgundy); background: var(--burgundy); color: white; }
.button.rosso { border-color: var(--rosso); background: var(--rosso); color: white; }
.button.teal { border-color: var(--teal); background: var(--teal); color: white; }
.button.ghost { border-color: transparent; background: transparent; color: var(--burgundy); }
.button.danger { border-color: #f0b8b3; color: var(--danger); }
.button:disabled { cursor: not-allowed; opacity: .58; transform: none; box-shadow: none; }
.button.block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.button-row.end { justify-content: flex-end; }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 27px; padding: 4px 9px; border-radius: 999px; background: #f2efed; color: #55504d; font-size: 12px; font-weight: 650; }
.chip.burgundy { background: var(--burgundy-soft); color: var(--burgundy); }
.chip.teal { background: var(--teal-soft); color: #11645f; }
.chip.gold { background: var(--gold-soft); color: #765817; }
.chip.navy { background: #e9eff5; color: var(--navy); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.field { display: grid; gap: 7px; }
.field + .field { margin-top: 16px; }
.field label, .field legend { color: #393737; font-size: 13px; font-weight: 750; }
fieldset.field { min-width: 0; margin: 16px 0 0; padding: 0; border: 0; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d8d2ce;
  border-radius: 11px;
  background: white;
  color: var(--ink);
}
.field textarea { min-height: 100px; resize: vertical; }
.field-help { color: var(--muted); font-size: 12px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.choice input { margin-top: 4px; accent-color: var(--burgundy); }

.profile-row { display: flex; align-items: center; gap: 13px; }
.profile-row .grow { min-width: 0; flex: 1; }
.person-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(145deg, #f0ded2, #cb8e73);
  color: #68331f;
  font-weight: 850;
}
.person-avatar.alt { background: linear-gradient(145deg, #dce7ee, #89abbc); color: #23475b; }
.person-avatar.gold { background: linear-gradient(145deg, #f4e5bd, #c6a257); color: #694e13; }
.person-avatar.teal { background: linear-gradient(145deg, #d2ece9, #6bb8b1); color: #175c57; }
.portrait-a { background-image: url("./assets/profile-a.png") !important; }
.portrait-b { background-image: url("./assets/profile-b.png") !important; }
.portrait-c { background-image: url("./assets/profile-c.png") !important; }
.portrait-d { background-image: url("./assets/profile-d.png") !important; }
.person-avatar.portrait-a, .person-avatar.portrait-b, .person-avatar.portrait-c, .person-avatar.portrait-d { background-position: center 24%; background-size: cover; color: transparent; }
.trust-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.metric { padding: 18px; }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-value { margin-top: 4px; font-size: 28px; font-weight: 850; letter-spacing: -.04em; }

.progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: #ebe7e4; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--burgundy), var(--gold)); }
.stepper { display: flex; align-items: center; gap: 6px; margin-bottom: 24px; }
.stepper span { height: 6px; flex: 1; border-radius: 99px; background: #e8e4e1; }
.stepper span.done { background: var(--burgundy); }

.candidate-card { position: relative; overflow: hidden; }
.candidate-score { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--teal-soft); color: var(--teal); font-size: 13px; font-weight: 850; }
.reason-list { display: grid; gap: 9px; padding: 0; margin: 17px 0; list-style: none; }
.reason-list li { display: flex; gap: 9px; color: #454346; font-size: 14px; }
.reason-list li::before { content: "✓"; color: var(--teal); font-weight: 900; }

/* Simplified member experience: one person, one decision, four roots. */
.discovery-views { display: flex; gap: 8px; margin: 0 0 18px; }
.discovery-views button { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 24px; background: white; color: var(--muted); font-weight: 750; cursor: pointer; }
.discovery-views button.active { background: var(--burgundy-soft); border-color: var(--burgundy); color: var(--burgundy); }
.discovery-views .ui-icon { width: 16px; height: 16px; }
.saved-candidates { display: grid; gap: 12px; max-width: 680px; }
.saved-candidate { padding: 14px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.saved-candidate-open { display: flex; align-items: center; gap: 15px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.saved-candidate-open > span:nth-child(2) { display: grid; flex: 1; gap: 4px; }
.saved-candidate-open small { color: var(--muted); }
.saved-candidate-open > span:last-child { font-size: 24px; }
.saved-portrait { flex: 0 0 64px; height: 74px; border-radius: 12px; background-size: cover; background-position: center; }
.saved-candidate > .text-link { min-height: 44px; margin: 4px 0 -8px 79px; }
.consent-disclosure { padding: 16px 18px; margin-bottom: 16px; border: 1px solid #d5e2df; border-radius: 16px; background: #f0f7f5; }
.consent-disclosure p { margin: 8px 0 0; font-size: 14px; line-height: 1.65; }
.discover-page { min-height: calc(100vh - 196px); }
.discover-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.discover-heading h1 { margin-bottom: 4px; font-size: clamp(26px, 3.2vw, 36px); }
.discover-layout { display: grid; grid-template-columns: minmax(390px, 520px) minmax(280px, 330px); align-items: center; justify-content: center; gap: clamp(30px, 5vw, 70px); }
.discover-stage { width: min(100%, 500px); margin: 0 auto; }
.discover-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 14px; margin: 0 4px 10px; color: var(--muted); font-size: 13px; }
.discover-progress strong { color: var(--ink); font-size: 14px; }
.progress-dots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.progress-dots i { height: 3px; border-radius: 99px; background: #dfe1e5; }
.progress-dots i.done { background: var(--burgundy); }
.card-stack { position: relative; height: clamp(350px, calc(100dvh - 435px), 490px); perspective: 1000px; }
.discovery-card { --decision-opacity: 0; position: absolute; inset: 0; overflow: hidden; border: 0; border-radius: 28px; background: #d8d8d8; box-shadow: var(--card-shadow); color: white; transform-origin: 50% 92%; transition: transform 260ms cubic-bezier(.2,.75,.25,1), opacity 220ms ease; user-select: none; touch-action: pan-y; }
.discovery-card:focus-visible { outline: 3px solid #6aa9ff; outline-offset: 4px; }
.discovery-card.dragging { cursor: grabbing; transition: none; }
.discovery-card.next-card { inset: 8px 14px -8px; z-index: -1; background: linear-gradient(145deg, #e4e6e9, #cfd2d6); box-shadow: 0 15px 45px rgba(22,22,22,.1); transform: scale(.975); }
.discovery-card.fly-left { opacity: 0; transform: translate3d(-125%, 24px, 0) rotate(-11deg) !important; }
.discovery-card.fly-right { opacity: 0; transform: translate3d(125%, 24px, 0) rotate(11deg) !important; }
.profile-photo { position: absolute; inset: 0; background-color: #d7d9dc; background-position: center 25%; background-size: cover; }
.profile-placeholder { display: grid; place-items: center; background: linear-gradient(145deg, #ddd3ca, #9a725f); }
.profile-placeholder span { font-size: 72px; font-weight: 900; }
.photo-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.08) 22%, rgba(10,10,10,.1) 42%, rgba(10,10,10,.88) 100%); }
.discovery-badges { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.glass-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(16,16,16,.36); color: white; backdrop-filter: blur(12px); font-size: 11px; font-weight: 800; }
.discovery-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 24px 23px; text-shadow: 0 1px 14px rgba(0,0,0,.38); }
.discovery-hook { margin-bottom: 4px; color: #f2dfaf; font-size: 13px; font-weight: 850; letter-spacing: .03em; }
.discovery-copy h2 { margin-bottom: 2px; color: white; font-size: clamp(29px, 4vw, 38px); letter-spacing: -.04em; }
.discovery-copy h2 span, .candidate-identity h1 span { margin-left: 3px; font-size: .52em; font-weight: 650; }
.discovery-meta { margin-bottom: 12px; color: rgba(255,255,255,.86); font-size: 14px; }
.discovery-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.discovery-reasons span { padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.16); color: white; font-size: 11px; font-weight: 750; backdrop-filter: blur(10px); }
.route-preview { display: flex; gap: 8px; margin: 0 0 8px; color: white; font-size: 13px; font-weight: 700; }
.text-link { min-height: 40px; padding: 4px 0; border: 0; background: transparent; color: var(--burgundy); font-weight: 800; text-decoration: none; }
.text-link.light { color: white; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.decision-stamp { position: absolute; z-index: 4; top: 74px; padding: 8px 12px; border: 3px solid currentColor; border-radius: 8px; background: rgba(17,17,17,.2); font-size: 19px; font-weight: 900; letter-spacing: .04em; opacity: 0; backdrop-filter: blur(5px); }
.skip-stamp { left: 20px; color: #fff; transform: rotate(-8deg); }
.connect-stamp { right: 20px; color: #dff9ed; transform: rotate(8deg); }
.discovery-card.intent-skip .skip-stamp, .discovery-card.intent-connect .connect-stamp { opacity: var(--decision-opacity); }
.swipe-actions { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 78px; padding-top: 14px; }
.round-action { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 1px solid #e0e1e4; border-radius: 50%; background: white; box-shadow: 0 8px 22px rgba(22,22,22,.09); color: var(--ink); font-size: 22px; font-weight: 850; transition: transform 160ms ease, box-shadow 160ms ease; }
.round-action .ui-icon { width: 24px; height: 24px; }
.round-action:hover { transform: translateY(-2px); box-shadow: 0 11px 28px rgba(22,22,22,.13); }
.round-action:disabled { cursor: not-allowed; opacity: .35; transform: none; }
.round-action.rewind { width: 45px; height: 45px; color: #9b7121; font-size: 19px; }
.round-action.rewind .ui-icon { width: 20px; height: 20px; }
.round-action.skip { color: #59606b; font-size: 32px; font-weight: 450; }
.round-action.info { width: 48px; height: 48px; color: #306d85; font-family: ui-serif, Georgia, serif; font-size: 20px; font-style: italic; }
.round-action.connect { color: var(--burgundy); font-size: 27px; }
.gesture-help { display: flex; justify-content: space-between; gap: 10px; margin: 1px 3px 0; color: #898b92; font-size: 10px; }
.next-actions { align-self: center; display: grid; gap: 10px; }
.next-actions-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 3px; }
.next-actions-head h2 { margin-bottom: 0; font-size: 24px; }
.action-tile { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; width: 100%; min-height: 72px; padding: 12px; border: 1px solid var(--line); border-radius: 17px; background: white; color: var(--ink); text-align: left; box-shadow: 0 3px 12px rgba(30,25,24,.035); }
.action-tile.urgent { border-color: #e9c3ca; background: #fffafb; }
.action-tile > span:nth-child(2) { display: grid; gap: 2px; }
.action-tile small { color: var(--muted); font-size: 11px; }
.action-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--burgundy-soft); color: var(--burgundy); font-weight: 900; }
.ai-shortcut { display: grid; grid-template-columns: 38px 1fr; gap: 10px; margin-top: 7px; padding: 16px; border-radius: 19px; background: #edf6f5; }
.ai-shortcut p { margin: 2px 0 10px; color: #536563; font-size: 12px; }
.ai-shortcut .button { grid-column: 1 / -1; min-height: 42px; }
.ai-orb { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: white; }
.privacy-note { margin: 4px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.task-filter { display: inline-flex; gap: 4px; margin-bottom: 18px; padding: 4px; border-radius: 14px; background: #e9eaed; }
.task-filter button { min-height: 40px; padding: 7px 13px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; }
.task-filter button.active { background: white; color: var(--ink); box-shadow: 0 2px 9px rgba(20,20,20,.07); }
.task-filter button span { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 4px; border-radius: 999px; background: #eeeff1; font-size: 10px; }
.task-filter button.active span { background: var(--burgundy-soft); color: var(--burgundy); }
.task-feed { display: grid; gap: 12px; }
.task-card { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 3px 15px rgba(26,22,22,.035); }
.task-card.priority { padding: 24px; border-color: #e8bcc5; background: linear-gradient(145deg, #fff 60%, #fff4f6); box-shadow: 0 12px 34px rgba(85,34,43,.08); }
.task-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.task-card-top time { color: var(--burgundy); font-size: 12px; font-weight: 850; }
.role-pill { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 9px; border-radius: 999px; background: var(--burgundy-soft); color: var(--burgundy); font-size: 11px; font-weight: 850; }
.role-pill.requester { background: var(--gold-soft); color: #725617; }
.role-pill.connector { background: var(--teal-soft); color: #185d58; }
.task-person { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 13px; margin-bottom: 14px; }
.task-person p, .task-person h2 { margin-bottom: 0; }
.task-person h2 { font-size: clamp(21px, 3vw, 28px); }
.task-safety { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.task-safety span { padding: 6px 9px; border-radius: 999px; background: #eef5f4; color: #235e59; font-size: 11px; font-weight: 750; }
.task-card > .button { margin-top: 10px; }
.task-later { min-height: 40px; margin-top: 5px; padding: 6px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; }
.task-info { display: grid; gap: 10px; margin-top: 34px; }
.task-info h2 { margin-bottom: 0; }

.candidate-detail { padding-bottom: 24px; }
.candidate-hero { position: relative; height: min(58vh, 540px); min-height: 430px; overflow: hidden; border-radius: 28px; background: #d9dade; box-shadow: var(--card-shadow); color: white; }
.candidate-hero .photo-scrim { background: linear-gradient(180deg, rgba(0,0,0,.14), transparent 35%, rgba(0,0,0,.82) 100%); }
.floating-back { position: absolute; z-index: 3; top: 18px; left: 18px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; background: rgba(18,18,18,.34); color: white; font-size: 20px; backdrop-filter: blur(12px); }
.sample-badge { position: absolute; z-index: 3; top: 24px; right: 18px; }
.candidate-identity { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 25px; }
.candidate-identity h1 { margin: 10px 0 3px; color: white; font-size: clamp(34px, 5vw, 48px); }
.candidate-identity p { margin-bottom: 0; color: rgba(255,255,255,.86); }
.candidate-body { width: min(100%, 720px); margin: 0 auto; padding: 30px 10px 10px; }
.reason-panel { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.reason-panel h2 { max-width: 580px; font-size: clamp(23px, 3.3vw, 31px); }
.reason-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.reason-steps > div { display: grid; grid-template-columns: 31px 1fr; gap: 8px; padding: 13px; border-radius: 15px; background: white; border: 1px solid var(--line); }
.reason-steps > div > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 10px; font-weight: 900; }
.reason-steps p { display: grid; gap: 2px; margin: 0; }
.reason-steps small { color: var(--muted); font-size: 11px; font-weight: 500; }
.profile-summary { padding: 28px 0; }
.detail-disclosure { border-top: 1px solid var(--line); }
.detail-disclosure:last-of-type { border-bottom: 1px solid var(--line); }
.detail-disclosure summary { min-height: 58px; padding: 17px 3px; color: var(--ink); font-weight: 850; cursor: pointer; }
.detail-disclosure > div { padding: 0 3px 22px; }
.trust-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.trust-facts span { padding: 11px 13px; border-radius: 12px; background: var(--teal-soft); color: #1d5f5a; font-size: 12px; font-weight: 750; }
.safety-strip { display: grid; grid-template-columns: 38px 1fr; gap: 12px; margin: 24px 0; padding: 15px; border-radius: 16px; background: #eef2f6; color: var(--navy); }
.safety-strip > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--navy); color: white; }
.safety-strip p { display: grid; gap: 2px; margin: 0; }
.safety-strip small { color: #5d6874; }
.candidate-secondary { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.danger-link { color: var(--danger); }
.candidate-action-bar { position: sticky; z-index: 12; bottom: 12px; display: grid; grid-template-columns: minmax(140px, .7fr) minmax(240px, 1.3fr); gap: 10px; width: min(calc(100% - 20px), 720px); margin: 18px auto 0; padding: 10px; border: 1px solid rgba(30,30,30,.08); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 12px 38px rgba(28,24,23,.14); backdrop-filter: blur(18px); }

.create-menu { width: min(100%, 520px); }
.create-options { display: grid; gap: 10px; }
.create-options > button { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 78px; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: white; color: var(--ink); text-align: left; }
.create-options > button > span:nth-child(2) { display: grid; gap: 2px; }
.create-options small { color: var(--muted); }
.create-option-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--burgundy-soft); color: var(--burgundy); font-size: 20px; font-weight: 900; }

/* Compact identity snapshot inside the first candidate viewport. */
.discovery-snapshot { display: grid; gap: 3px; margin: 0 0 10px; }
.discovery-snapshot > div { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: baseline; gap: 7px; }
.discovery-snapshot dt { color: #f2dfaf; font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.discovery-snapshot dd { min-width: 0; margin: 0; overflow: hidden; color: rgba(255,255,255,.95); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

/* Value-first authentication and optional onboarding. */
.auth-flow { display: grid; gap: 18px; max-width: 620px; margin: 0 auto; }
.auth-value-card { position: relative; overflow: hidden; padding: clamp(26px, 6vw, 46px); border-radius: 28px; background: linear-gradient(145deg, #25181b, #711728 72%, #a5263d); color: white; box-shadow: var(--card-shadow); }
.auth-value-card::after { content: ""; position: absolute; width: 230px; height: 230px; right: -95px; top: -100px; border-radius: 50%; background: rgba(255,255,255,.09); }
.auth-value-card .eyebrow { color: #f2d595; }
.auth-value-card h1 { max-width: 500px; color: white; font-size: clamp(30px, 6vw, 44px); }
.auth-value-card > p:not(.eyebrow) { max-width: 500px; color: rgba(255,255,255,.82); }
.auth-value-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border: 1px solid rgba(255,255,255,.25); border-radius: 16px; background: rgba(255,255,255,.1); font-size: 23px; }
.auth-assurance { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 24px 0 0; list-style: none; color: rgba(255,255,255,.92); font-size: 12px; font-weight: 700; }
.auth-assurance li::before { content: "✓"; margin-right: 6px; color: #bfe7d8; }
.auth-card { display: grid; gap: 16px; padding: clamp(22px, 5vw, 34px); }
.google-button { border-color: #d8dadd; background: white; color: #24262a; }
.provider-mark { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: conic-gradient(from -35deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0); color: white; font-size: 12px; font-weight: 900; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #8b8784; font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-links { margin: 0; text-align: center; }
.resume-card { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 15px; border: 1px solid #bfdfda; border-radius: 16px; background: var(--teal-soft); color: #184f4b; }
.resume-card > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: white; font-weight: 900; }
.resume-card p { margin: 2px 0 0; font-size: 12px; }
.record-details { margin-top: 8px; font-size: 12px; }
.record-details summary { cursor: pointer; font-weight: 800; }
.consent-list { display: grid; gap: 14px; padding: 0; margin: 0 0 4px; list-style: none; }
.consent-list li { display: grid; grid-template-columns: 34px 1fr; gap: 11px; }
.consent-list li > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; background: var(--burgundy-soft); color: var(--burgundy); font-size: 12px; font-weight: 900; }
.consent-list p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.optional-consents { padding: 2px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.optional-consents summary { min-height: 46px; padding: 12px 2px; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 800; }
.optional-consents .choice { margin-bottom: 9px; }
.onboarding-optional { max-width: 680px; margin: 0 auto; }

/* Capability instead of a completion percentage. */
.capability-card { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 20px; padding: clamp(24px, 5vw, 38px); }
.capability-level { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 21px; background: var(--teal); color: white; font-size: 27px; font-weight: 900; }
.capability-card h2 { margin-bottom: 5px; }
.capability-card p:last-child { margin-bottom: 0; color: var(--muted); }
.next-profile-step { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.next-profile-step p:last-child { margin-bottom: 0; }
.readiness-facts { display: grid; gap: 8px; padding: 0; margin: 16px 0; list-style: none; }
.readiness-facts li { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; }
.readiness-facts li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--teal-soft); color: var(--teal); font-size: 11px; font-weight: 900; }

/* One-question request wizard. */
.request-wizard { max-width: 680px; margin: 0 auto; }
.request-wizard .page-header { margin-bottom: 14px; }
.wizard-progress { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; font-weight: 800; }
.wizard-progress strong { color: var(--burgundy); }
.request-wizard > .wizard-progress { margin: 0 3px 12px; }
.wizard-dots { display: grid; grid-template-columns: repeat(4, 42px); gap: 5px; }
.wizard-dots i { height: 4px; border-radius: 99px; background: #dbdde0; }
.wizard-dots i.done { background: var(--burgundy); }
.wizard-card { display: flex; min-height: 390px; flex-direction: column; gap: 18px; padding: clamp(24px, 5vw, 36px); }
.wizard-kicker { margin-bottom: 0; color: var(--burgundy); font-size: 11px; font-weight: 900; letter-spacing: .07em; }
.wizard-question > label, .wizard-question > legend { max-width: 570px; color: var(--ink); font-size: clamp(21px, 4vw, 28px); font-weight: 850; line-height: 1.35; letter-spacing: -.02em; }
.wizard-question textarea { min-height: 145px; padding: 15px; font-size: 16px; line-height: 1.6; }
.wizard-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.wizard-footer .button { min-width: 120px; }
.request-preview { padding: 15px; border-radius: 15px; background: #f6f3f1; }
.request-preview strong { display: block; margin-bottom: 6px; }
.request-preview p { margin-bottom: 7px; color: #4f4b49; font-size: 13px; }
.request-preview > span { color: var(--muted); font-size: 11px; }
.compact-details { border-top: 1px solid var(--line); }
.compact-details summary { min-height: 46px; padding: 12px 1px; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 800; }
.compact-details[open] { padding-bottom: 4px; }

/* One decision, with the audit detail folded beneath it. */
.decision-page { max-width: 690px; margin: 0 auto; }
.decision-page .page-header { margin-bottom: 16px; }
.decision-summary { display: grid; gap: 22px; padding: clamp(22px, 5vw, 34px); }
.decision-person { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.decision-purpose h2 { font-size: clamp(23px, 4vw, 31px); }
.decision-purpose > p:not(.eyebrow) { color: #4d4b4d; }
.decision-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.decision-details summary { min-height: 50px; padding: 14px 2px; cursor: pointer; color: var(--navy); font-size: 13px; font-weight: 850; }
.decision-details[open] { padding-bottom: 15px; }
.disclosure-list { display: grid; gap: 0; padding: 0; margin: 0 0 14px; list-style: none; }
.disclosure-list li { display: grid; grid-template-columns: minmax(100px, .42fr) 1fr; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 12px; }
.disclosure-list li span { color: var(--muted); }
.record-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.decision-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; }
.decision-actions .button { min-height: 52px; }
.decision-question { justify-self: center; }

/* One-tap feedback, optional details second. */
.feedback-question { display: grid; gap: 20px; }
.feedback-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feedback-options label { position: relative; cursor: pointer; }
.feedback-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.feedback-options label > span { display: grid; place-items: center; min-height: 92px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 15px; color: #4c4a4a; font-size: 12px; font-weight: 800; text-align: center; }
.feedback-options b { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 5px; border-radius: 50%; background: #f0efef; color: var(--muted); font-size: 15px; }
.feedback-options label:has(input:checked) > span { border-color: var(--burgundy); background: var(--burgundy-soft); color: var(--burgundy); box-shadow: 0 0 0 1px var(--burgundy); }
.feedback-options label:has(input:checked) b { background: var(--burgundy); color: white; }
.feedback-options label:has(input:focus-visible) > span { outline: 3px solid #6aa9ff; outline-offset: 3px; }

/* A single contact permission mode. */
.contact-modes { display: grid; gap: 9px; }
.contact-mode { display: flex; align-items: flex-start; gap: 11px; min-height: 64px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: white; cursor: pointer; }
.contact-mode input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--burgundy); }
.contact-mode span { display: grid; gap: 2px; }
.contact-mode small { color: var(--muted); font-size: 11px; font-weight: 500; }
.contact-mode:has(input:checked) { border-color: #d496a2; background: #fff8f9; box-shadow: 0 0 0 1px rgba(176,23,49,.22); }

/* AI search resolves back to the shared person-card deck. */
.ai-query-page { max-width: 660px; margin: 0 auto; }
.ai-query-card { display: grid; gap: 18px; padding: clamp(24px, 5vw, 36px); }
.ai-query-card > .ai-orb { width: 46px; height: 46px; font-size: 20px; }
.ai-query-card textarea { min-height: 130px; padding: 15px; font-size: 17px; line-height: 1.6; }
.prompt-suggestions { display: flex; flex-wrap: wrap; gap: 7px; }
.prompt-suggestions button { min-height: 38px; padding: 7px 11px; border: 1px solid #d4dfdd; border-radius: 999px; background: #f2f8f7; color: #285d58; font-size: 11px; font-weight: 750; }

.timeline { position: relative; display: grid; gap: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding-bottom: 24px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 27px; bottom: -1px; width: 1px; background: #ddd6d2; }
.timeline-dot { z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 12px; font-weight: 900; }
.timeline-dot.pending { background: #f0edeb; color: #625d59; }

.notice { padding: 13px 15px; border-left: 4px solid var(--gold); border-radius: 10px; background: var(--gold-soft); color: #5d481b; }
.notice.teal { border-color: var(--teal); background: var(--teal-soft); color: #174e4a; }
.notice.danger { border-color: var(--danger); background: #fff0ef; color: #7d241d; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; }
th { color: var(--muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }

.public-page { min-height: 100vh; background: white; }
.public-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; min-height: 70px; padding: 12px clamp(18px, 4vw, 64px); background: rgba(255,255,255,.96); border-bottom: 1px solid #eee9e6; }
.public-nav { display: flex; gap: 18px; margin-left: auto; color: #5f5b59; font-size: 13px; }
.public-nav a, .public-nav button { border: 0; background: transparent; color: inherit; text-decoration: none; }
.hero { position: relative; overflow: hidden; padding: clamp(70px, 10vw, 128px) clamp(20px, 6vw, 86px); background: linear-gradient(135deg, #fff 34%, #fff1f1); }
.hero::after { content: ""; position: absolute; width: 440px; height: 440px; right: -110px; top: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(214,4,7,.18), rgba(214,4,7,0)); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; max-width: 1180px; margin: 0 auto; }
.hero h1 { max-width: 670px; font-size: clamp(38px, 4.7vw, 58px); line-height: 1.09; }
.hero h1 em { color: var(--rosso); font-style: normal; }
.hero-copy { max-width: 610px; color: #535054; font-size: 17px; }
.phone-cloud { position: relative; min-height: 470px; }
.mini-phone { position: absolute; width: 184px; padding: 9px; border: 8px solid #171719; border-radius: 32px; background: white; box-shadow: 0 25px 55px rgba(56,24,21,.2); }
.mini-phone.one { left: 8%; top: 44px; transform: rotate(-8deg); }
.mini-phone.two { right: 6%; top: 2px; transform: rotate(8deg); }
.mini-phone.three { left: 31%; bottom: 0; transform: rotate(1deg); }
.mini-card { padding: 12px; border-radius: 19px; background: #f8f5f3; }
.mini-face { width: 36px; height: 36px; border-radius: 12px; background: #d5a08a; }
.mini-line { height: 7px; margin-top: 8px; border-radius: 99px; background: #ded7d3; }
.mini-line.red { width: 55%; background: var(--rosso); }
.public-section { padding: 76px clamp(20px, 6vw, 86px); }
.public-section.alt { background: #faf7f5; }
.public-inner { max-width: 1120px; margin: 0 auto; }
.center { text-align: center; }
.public-section .section-lead { max-width: 680px; margin: 0 auto 34px; color: var(--muted); }
.step-number { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 14px; background: var(--rosso); color: white; font-weight: 850; }

.graph-panel { position: relative; min-height: 410px; overflow: hidden; background: radial-gradient(circle at center, #fff, #f7f4f2); }
.graph-line { position: absolute; height: 2px; transform-origin: left center; background: #dccfc9; }
.graph-node { position: absolute; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 24px; background: white; border: 2px solid #e5dad5; box-shadow: 0 8px 24px rgba(52,34,28,.09); font-size: 12px; font-weight: 750; text-align: center; }
.graph-node.me { width: 84px; height: 84px; border-color: var(--burgundy); background: var(--burgundy); color: white; }
.graph-node.community { border-color: #c6a357; background: var(--gold-soft); color: #6b5219; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(21,18,17,.48); }
.modal { width: min(100%, 820px); max-height: min(88vh, 860px); overflow-y: auto; padding: 24px; border-radius: 24px; background: white; box-shadow: 0 24px 90px rgba(20,14,12,.28); }
.modal-header { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 18px; }
.modal-header .grow { flex: 1; }
.screen-groups { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.screen-group h3 { margin: 0 0 7px; color: var(--muted); font-size: 12px; }
.screen-link { display: block; width: 100%; min-height: 44px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; text-align: left; font-size: 13px; }
.screen-link:hover, .screen-link.active { background: var(--burgundy-soft); color: var(--burgundy); }
.screen-code { display: inline-block; min-width: 86px; color: #625d59; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }

.bottom-nav { display: none; }
.mobile-screen-button { display: none; }
.toast-region { position: fixed; z-index: 120; right: 22px; bottom: 22px; display: grid; gap: 9px; }
.toast { max-width: 340px; padding: 13px 16px; border-radius: 13px; background: var(--navy); color: white; box-shadow: var(--shadow); font-size: 13px; animation: toast-in .2s ease-out; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 960px) {
  .layout { grid-template-columns: 184px minmax(0, 1fr); }
  .sidebar { padding: 18px 11px 15px; }
  .nav-link { padding: 9px 10px; }
  .hero-inner { grid-template-columns: 1fr; }
  .phone-cloud { min-height: 410px; width: min(100%, 540px); margin: 0 auto; }
  .screen-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discover-layout { grid-template-columns: minmax(370px, 500px) minmax(250px, 300px); gap: 28px; }
  .reason-steps { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { background: white; }
  .topbar { height: 60px; padding: 0 14px; gap: 9px; }
  .brand-mark { width: 34px; height: 34px; }
  .topbar .brand-name { display: none; }
  .context-title { max-width: 120px; font-size: 12px; }
  .public-header .brand-name { font-size: 17px; }
  .prototype-label { display: none; }
  .desktop-only { display: none !important; }
  .mobile-screen-button { display: inline-flex; }
  .layout { display: block; min-height: calc(100vh - 60px); }
  .sidebar { display: none; }
  .main { padding: 20px 14px 96px; }
  .page-header { display: block; }
  .page-header .button-row { margin-top: 14px; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .card { padding: 18px; border-radius: 17px; }
  .section { margin-top: 27px; }
  .section-heading { align-items: flex-start; }
  .button-row .button { flex: 1 1 auto; }
  .candidate-score { position: static; width: auto; height: auto; padding: 5px 10px; border-radius: 999px; margin-bottom: 12px; display: inline-flex; }
  .bottom-nav { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); min-height: 70px; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
  .bottom-link { display: grid; place-items: center; gap: 1px; min-width: 0; border: 0; border-radius: 10px; background: transparent; color: #706b68; font-size: 10px; }
  .bottom-link span:first-child { font-size: 19px; }
  .bottom-link.active { color: var(--burgundy); font-weight: 800; }
  .bottom-create { position: relative; display: grid; place-items: center; gap: 1px; min-width: 0; border: 0; background: transparent; color: var(--burgundy); font-size: 10px; font-weight: 800; }
.bottom-create span:first-child { display: grid; place-items: center; width: 44px; height: 44px; margin-top: -20px; border: 4px solid white; border-radius: 50%; background: var(--burgundy); color: white; box-shadow: 0 7px 20px rgba(176,23,49,.28); font-size: 25px; line-height: 1; }
  .bottom-create .ui-icon { width: 23px; height: 23px; }
  .grid.stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .grid.four.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid .card.metric { padding: 12px; }
  .stats-grid .metric-value { font-size: 24px; }
  .public-header { min-height: 62px; padding: 10px 16px; }
  .public-nav { display: none; }
  .public-header .button { padding: 9px 12px; }
  .hero { padding: 55px 18px 44px; }
  .hero-inner { gap: 30px; }
  .hero h1 { font-size: 39px; }
  .phone-cloud { min-height: 330px; transform: scale(.86); transform-origin: top center; margin-bottom: -45px; }
  .mini-phone { width: 154px; }
  .public-section { padding: 55px 18px; }
  .screen-groups { grid-template-columns: 1fr; }
  .modal { padding: 18px; }
  .graph-panel { min-height: 360px; }
  .toast-region { left: 16px; right: 16px; bottom: 84px; }
  .toast { max-width: none; }
  .page.discover-width { width: 100%; }
  .discover-page { min-height: auto; }
  .discover-heading { align-items: center; margin: -2px 2px 8px; }
  .discover-heading h1 { margin: 0; font-size: 23px; }
  .discover-heading .subhead { display: none; }
  .discover-heading .eyebrow { margin-bottom: 1px; font-size: 9px; }
  .discover-heading .icon-button { min-width: 40px; min-height: 40px; }
  .discover-layout { display: block; }
  .next-actions { display: none; }
  .discover-progress { margin-bottom: 7px; font-size: 11px; }
  .discovery-views { margin-bottom: 12px; }
  .discovery-views button { min-height: 44px; padding: 7px 12px; font-size: 12px; }
  .card-stack { height: clamp(360px, calc(100dvh - 407px), 450px); min-height: 0; }
  .discovery-card { border-radius: 24px; }
  .discovery-card.next-card { inset: 6px 10px -6px; }
  .discovery-badges { top: 13px; left: 13px; right: 13px; }
  .glass-chip { min-height: 25px; padding: 4px 8px; font-size: 9px; }
  .discovery-copy { padding: 70px 17px 15px; }
  .discovery-copy h2 { font-size: 30px; }
  .discovery-meta { margin-bottom: 8px; font-size: 12px; }
  .discovery-reasons { margin-bottom: 8px; }
  .discovery-reasons span { padding: 4px 7px; font-size: 9px; }
  .route-preview { margin-bottom: 3px; font-size: 11px; }
  .text-link { min-height: 36px; font-size: 12px; }
  .swipe-actions { gap: 12px; min-height: 66px; padding-top: 10px; }
  .round-action { width: 50px; height: 50px; }
  .round-action.rewind { width: 40px; height: 40px; }
  .round-action.info { width: 44px; height: 44px; }
  .gesture-help { margin-top: -2px; font-size: 9px; }
  .gesture-help span:nth-child(2) { display: none; }
  .candidate-hero { height: min(50vh, 460px); min-height: 355px; border-radius: 22px; }
  .candidate-identity { left: 19px; right: 19px; bottom: 19px; }
  .candidate-identity h1 { font-size: 34px; }
  .candidate-body { padding: 24px 4px 8px; }
  .reason-steps { grid-template-columns: 1fr; }
  .trust-facts { grid-template-columns: 1fr; }
  .candidate-secondary { align-items: flex-start; flex-direction: column; gap: 3px; }
  .candidate-action-bar { bottom: calc(72px + env(safe-area-inset-bottom)); grid-template-columns: .8fr 1.2fr; width: 100%; margin-top: 12px; padding: 8px; }
  .candidate-action-bar .button { padding: 9px 10px; font-size: 12px; }
  .create-menu { align-self: end; width: 100%; max-height: 84vh; border-radius: 26px 26px 0 0; }
  .discovery-snapshot { gap: 1px; margin-bottom: 7px; }
  .discovery-snapshot > div { grid-template-columns: 43px minmax(0, 1fr); gap: 5px; }
  .discovery-snapshot dt { font-size: 8px; }
  .discovery-snapshot dd { font-size: 10px; }
  .auth-flow { gap: 14px; }
  .auth-value-card { padding: 25px 21px; border-radius: 22px; }
  .auth-value-icon { width: 40px; height: 40px; margin-bottom: 16px; }
  .auth-value-card h1 { font-size: 31px; }
  .auth-assurance { display: grid; gap: 5px; margin-top: 18px; }
  .auth-card { padding: 20px; }
  .capability-card { grid-template-columns: 50px 1fr; gap: 14px; }
  .capability-level { width: 48px; height: 48px; border-radius: 16px; font-size: 21px; }
  .next-profile-step { align-items: stretch; flex-direction: column; padding: 18px; }
  .wizard-dots { grid-template-columns: repeat(4, 28px); }
  .wizard-card { min-height: calc(100dvh - 280px); padding: 21px 18px; }
  .wizard-question > label, .wizard-question > legend { font-size: 22px; }
  .wizard-question textarea { min-height: 132px; }
  .wizard-footer { position: sticky; bottom: 74px; margin-right: -4px; margin-left: -4px; padding: 10px 4px 0; background: white; }
  .wizard-footer .button { min-width: 0; }
  .decision-summary { gap: 18px; padding: 20px 18px; }
  .decision-purpose h2 { font-size: 23px; }
  .decision-actions { grid-template-columns: 1fr; }
  .decision-actions .button.primary { order: -1; }
  .disclosure-list li { grid-template-columns: 1fr; gap: 2px; }
  .feedback-options label > span { min-height: 84px; padding: 8px 4px; font-size: 11px; }
  .ai-query-card { padding: 21px 18px; }
  .prompt-suggestions { display: grid; grid-template-columns: 1fr; }
  .prompt-suggestions button { min-height: 42px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
/* Temporary integration entry: keep the source UI intact while giving visitors a way back. */
.site-return { position: fixed; z-index: 10000; top: 10px; right: 14px; padding: 8px 12px; border-radius: 999px; background: #fffaf5; color: #233b32; box-shadow: 0 2px 12px #0002; font: 600 12px/1.4 system-ui, sans-serif; text-decoration: none; }
.integration-notice { position: fixed; z-index: 9999; left: 12px; bottom: 8px; max-width: min(560px, calc(100vw - 24px)); margin: 0; padding: 6px 10px; border-radius: 6px; background: #142b24e8; color: white; font: 11px/1.45 system-ui, sans-serif; }

.avatar-button{overflow:hidden}.avatar-button img{display:block;width:100%;height:100%;object-fit:cover}
