:root {
  --bg: var(--page); --bg-2: #191919; --surface: #242424; --glass: var(--panel);
  --ink: var(--text); --muted: var(--secondary); --line: var(--divider); --line-2: #777;
  --action: #f4f4f4; --action-hover: #d8d8d8; --highlight: #dedede; --shade: #909090;
  --on-accent: #151515; --theirs: #333; --warn-bg: #323232; --warn-ink: #f4f4f4;
  --ring: #eee; --shadow-1: none; --shadow-2: 0 12px 40px #0004;
  --r-lg: 10px; --r-md: 7px; --r-sm: 5px; --font: var(--sans);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; display: flex; flex-direction: column; color: var(--ink); font: 16px/1.5 var(--font);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--action); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.025em; font-weight: 750; }
h2 { font-size: 1.25rem; } h3 { font-size: 1rem; letter-spacing: -.01em; }
p { margin: 0 0 .75rem; }
svg.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.small { font-size: .84rem; color: var(--muted); }
.error { margin: 0; padding: .7rem .9rem; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--action); font-weight: 600; }
.loading, .empty { margin: auto; padding: 2rem; color: var(--muted); text-align: center; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 10px; }

/* ---- top bar ------------------------------------------------------------ */
.bar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem clamp(1rem, 3vw, 2rem); background: var(--glass); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border-bottom: 1px solid var(--line); }

.lang { display: flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); font-size: .8rem; font-weight: 700; }
.lang span { display: none; }
.lang a { padding: .25rem .7rem; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

.app { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---- buttons and fields -------------------------------------------------- */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.25rem; border: 0; border-radius: 6px; background: var(--action); color: var(--on-accent); font: inherit; font-weight: 700; letter-spacing: -.01em; cursor: pointer; box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .7); }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn.small { min-height: 36px; padding: .4rem .9rem; font-size: .88rem; box-shadow: none; }
.btn.ghost { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 11%, transparent); filter: none; }
.btn.icon { width: 40px; min-height: 40px; padding: 0; }
input, textarea { width: 100%; padding: .7rem .95rem; border: 1px solid var(--line); border-radius: var(--r-md); background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink); font: inherit; }
input:focus, textarea:focus { outline: 3px solid var(--ring); outline-offset: 0; border-color: transparent; }
textarea { resize: none; }

/* ---- sign-in -------------------------------------------------------------- */
.welcome { flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(22rem, .85fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: stretch; width: min(76rem, 100%); margin: 0 auto; padding: clamp(1rem, 3vw, 2.5rem); }
.facts { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.facts li { padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .82rem; font-weight: 650; }
.signin { align-self: center; display: flex; flex-direction: column; gap: .9rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg); background: var(--glass); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.signin h2 { font-size: 1.7rem; letter-spacing: -.035em; }
.signin > p { margin: 0; color: var(--muted); }
.providers { display: grid; gap: .55rem; margin-top: .35rem; }
.provider { display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 52px; padding: .5rem .9rem .5rem .55rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; text-align: left; cursor: pointer; box-shadow: var(--shadow-1); }
.provider:hover { border-color: var(--ring); transform: translateY(-1px); }
.provider .tile { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; font-weight: 800; font-size: 1rem; }
.provider .go { margin-left: auto; color: var(--muted); }
.or { display: flex; align-items: center; gap: .75rem; margin: .2rem 0; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dev { display: flex; gap: .5rem; align-items: end; padding-top: .9rem; border-top: 1px dashed var(--line); }
.dev label { flex: 1; display: grid; gap: .25rem; font-size: .8rem; color: var(--muted); }
.legal { margin: 0; font-size: .8rem; color: var(--muted); }
.card { width: min(30rem, calc(100% - 2rem)); margin: 3rem auto; padding: 2rem; border-radius: var(--r-lg); background: var(--glass); backdrop-filter: blur(22px); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.card h1 { font-size: 1.6rem; margin-bottom: .6rem; }

/* ---- matches and chat ------------------------------------------------------ */
.layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(17rem, 23rem) minmax(0, 1fr); width: min(84rem, 100%); margin: 0 auto; padding: clamp(0rem, 2vw, 1.5rem); gap: clamp(0rem, 1.5vw, 1.25rem); }
.list, .pane { min-height: 0; border-radius: var(--r-lg); background: var(--glass); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); border: 1px solid var(--line); box-shadow: var(--shadow-2); overflow: hidden; }
.list { display: flex; flex-direction: column; overflow-y: auto; }
.list-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: 1.25rem 1.1rem 1rem; border-bottom: 1px solid var(--line); background: var(--glass); }
.list-head h2 { font-size: 1.5rem; letter-spacing: -.035em; }
.match { display: flex; align-items: center; gap: .8rem; width: calc(100% - 1rem); margin: 0 .5rem; padding: .65rem .6rem; border: 0; border-radius: var(--r-md); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.match:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.match.on { background: color-mix(in srgb, var(--highlight) 16%, transparent); }
.who { flex: 1; min-width: 0; display: grid; gap: .05rem; }
.name { display: flex; align-items: center; gap: .3rem; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.name svg.ic { width: 16px; height: 16px; color: var(--highlight); stroke-width: 2.4; }
.preview { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match.fresh .preview { color: var(--action); font-weight: 650; }
.meta { display: grid; justify-items: end; gap: .25rem; }
.when { color: var(--muted); font-size: .74rem; }
.unread { min-width: 1.35rem; padding: 0 .4rem; border-radius: 999px; background: var(--action); color: var(--on-accent); font-size: .74rem; font-weight: 800; text-align: center; line-height: 1.35rem; }
.avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--shade), var(--action-hover)); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--highlight) 55%, transparent); }
.avatar.sm { width: 42px; height: 42px; }
img.empty { opacity: .001; }

.pane { display: flex; flex-direction: column; }
.hello { margin: auto; max-width: 22rem; padding: 2rem; text-align: center; color: var(--muted); }
.hello .orb { width: 5.5rem; height: 5.5rem; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--action); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .7); display: grid; place-items: center; color: var(--on-accent); }
.hello .orb svg.ic { width: 2.2rem; height: 2.2rem; }
.hello h2 { color: var(--ink); margin-bottom: .4rem; font-size: 1.35rem; }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.back { display: none; }
.safety { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 0; padding: .35rem 1rem; background: color-mix(in srgb, var(--shade) 22%, transparent); color: var(--warn-ink); font-size: .8rem; font-weight: 600; }
.messages { flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 1rem clamp(.75rem, 2vw, 1.5rem); list-style: none; display: flex; flex-direction: column; gap: .3rem; scroll-behavior: smooth; }
.messages li { max-width: min(34rem, 78%); display: grid; }
.messages li.day { align-self: center; max-width: none; margin: .7rem 0 .4rem; padding: .2rem .75rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--muted); font-size: .74rem; font-weight: 650; }
.messages .mine { align-self: flex-end; justify-items: end; }
.messages .theirs { align-self: flex-start; justify-items: start; }
.bubble { margin: 0; padding: .6rem .95rem; border-radius: 22px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.mine .bubble { background: var(--action); color: var(--on-accent); border-bottom-right-radius: 8px; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .8); }
.theirs .bubble { background: var(--theirs); border-bottom-left-radius: 8px; }
.messages time { margin: .1rem .4rem 0; font-size: .68rem; color: var(--muted); }
.flag { display: flex; gap: .4rem; align-items: flex-start; margin: .3rem 0 0; padding: .45rem .7rem; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--warn-ink); font-size: .8rem; }
.flag svg.ic { width: 16px; height: 16px; margin-top: .1rem; }
.composer { display: flex; gap: .5rem; align-items: flex-end; padding: .7rem .9rem .9rem; }
.composer textarea { max-height: 9rem; border-radius: 24px; padding: .7rem 1.1rem; background: color-mix(in srgb, var(--ink) 5%, transparent); border-color: transparent; }
.composer .btn { width: 46px; padding: 0; }

.notice { margin: .2rem .8rem .6rem; padding: .7rem .85rem; border-radius: var(--r-md); background: color-mix(in srgb, var(--ink) 5%, transparent); font-size: .86rem; }
.notice.warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice p { margin-bottom: .5rem; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 20; max-width: calc(100% - 2rem); padding: .7rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; box-shadow: var(--shadow-2); }

.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-items { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 6; min-width: 12.5rem; padding: .35rem; display: grid; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.menu-items button { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.menu-items button:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.menu-items .danger { color: var(--action); }

/* ---- sheets (profile, date ideas, report) ---------------------------------- */
.sheet { width: min(38rem, calc(100% - 1.5rem)); max-height: min(46rem, calc(100% - 1.5rem)); padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
.sheet::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet > header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.sheet > header h2 { font-size: 1.3rem; letter-spacing: -.03em; }
.sheet > :not(header) { margin-left: 1.1rem; margin-right: 1.1rem; }
.sheet > :last-child { margin-bottom: 1.1rem; }
.sheet section { margin-top: 1.1rem; }
.sheet section h3 { margin-bottom: .35rem; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.photos { display: flex; gap: .6rem; overflow-x: auto; padding: 1.1rem 0 .6rem; scroll-snap-type: x mandatory; }
.photo { width: 200px; height: 250px; flex: none; border-radius: 20px; object-fit: cover; background: linear-gradient(135deg, var(--shade), var(--action-hover)); scroll-snap-align: start; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0; padding: 0; list-style: none; }
.chips li, .chip { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: .86rem; font-weight: 600; }
.chip { min-height: 36px; cursor: pointer; }
.chip:hover { border-color: var(--ring); }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips li.shared { background: color-mix(in srgb, var(--highlight) 22%, transparent); border-color: transparent; color: var(--ink); }
.kinds { position: sticky; top: 4.1rem; z-index: 1; margin-top: 0; padding: .7rem 0; background: var(--surface); flex-wrap: nowrap; overflow-x: auto; }
.lines { margin: 0 0 .5rem; padding: 0; list-style: none; display: grid; gap: .35rem; }
.lines li { padding: .5rem .75rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--highlight) 13%, transparent); font-weight: 600; }
.percent { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.idea { margin-top: .7rem; padding: .95rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: color-mix(in srgb, var(--ink) 2.5%, transparent); }
.idea h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.idea p { margin-bottom: .3rem; }
.idea .why { display: flex; gap: .4rem; align-items: center; color: var(--action); font-weight: 650; }
.idea .why svg.ic { width: 16px; height: 16px; }
.idea.event { border-color: transparent; background: linear-gradient(135deg, color-mix(in srgb, var(--highlight) 16%, transparent), color-mix(in srgb, var(--shade) 14%, transparent)); }
.group { margin: 1rem 0 0; color: var(--highlight); text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: .6rem; }
.row a { font-weight: 650; font-size: .9rem; }
.report fieldset { display: grid; gap: .3rem; margin: 1.1rem 0; padding: 0; border: 0; }
.report legend { margin-bottom: .45rem; font-weight: 750; }
.report fieldset label { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.report fieldset label:has(input:checked) { border-color: var(--ring); background: color-mix(in srgb, var(--highlight) 12%, transparent); }
.report > label { display: grid; gap: .35rem; margin-bottom: .8rem; font-weight: 650; }
.report input[type="radio"] { width: 1.1rem; height: 1.1rem; accent-color: var(--action); }

/* ---- phones ---------------------------------------------------------------- */
@media (max-width: 820px) {
  .welcome { grid-template-columns: 1fr; padding: .75rem; gap: .75rem; }
  .stage { min-height: 17rem; padding: 1.4rem; }
  .stage .lead { display: none; }
  .layout { grid-template-columns: 1fr; padding: 0; }
  .list, .pane { border-radius: 0; border: 0; box-shadow: none; }
  .layout .pane { display: none; }
  .layout.chatting .list { display: none; }
  .layout.chatting .pane { display: flex; }
  .back { display: inline-flex; }
  .messages li { max-width: 86%; }
  .sheet { width: 100%; max-width: none; max-height: 92%; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .provider, .match, .chip { transition: transform .15s ease, filter .15s ease, background-color .15s ease, border-color .15s ease; }
  .messages li:not(.day) { animation: rise .22s ease both; }
  .sheet[open] { animation: lift .26s cubic-bezier(.2, .8, .2, 1) both; }
  .signin, .stage { animation: lift .5s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } }
  @keyframes lift { from { opacity: 0; transform: translateY(14px); } }
}

/* ---- sign-up steps --------------------------------------------------------- */
.wizard { flex: 1; display: grid; place-items: start center; padding: clamp(1rem, 4vw, 3rem) clamp(.75rem, 3vw, 2rem); overflow-y: auto; }
.step { width: min(36rem, 100%); display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.4rem, 4vw, 2.5rem); border-radius: var(--r-lg); background: var(--glass); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.step h2 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
.step .lead { margin: 0; color: var(--muted); font-size: 1.05rem; }
.step > .small { margin: 0; }
.progress { display: flex; gap: 5px; }
.progress span { flex: 1; height: 5px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.progress span.done { background: var(--action); }
.form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: grid; gap: .35rem; font-weight: 650; }
.field small, .choice small { display: block; color: var(--muted); font-weight: 400; font-size: .84rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .5rem; margin: 0; padding: 0; border: 0; }
.choices legend { margin-bottom: .45rem; padding: 0; font-weight: 750; }
.choice { display: flex; align-items: center; gap: .6rem; min-height: 50px; padding: .6rem .85rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-weight: 650; cursor: pointer; }
.choice.tall { align-items: flex-start; font-weight: 500; }
.choice:has(input:checked) { border-color: var(--ring); background: color-mix(in srgb, var(--highlight) 13%, var(--surface)); }
.choice input { width: 1.15rem; height: 1.15rem; flex: none; margin: .1rem 0 0; padding: 0; accent-color: var(--action); }
.towns { display: grid; gap: 1rem; max-height: 22rem; overflow-y: auto; padding-right: .25rem; }
.towns h3 { margin-bottom: .4rem; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.towns .chips { margin: 0; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .7rem; }
.tile-photo { position: relative; margin: 0; display: grid; gap: .35rem; }
.tile-photo .photo { width: 100%; height: 11rem; border-radius: var(--r-md); }
.tile-photo figcaption { display: flex; justify-content: space-between; gap: .5rem; font-size: .82rem; }
.tile-photo.add { place-items: center; align-content: center; height: 11rem; border: 2px dashed var(--line); border-radius: var(--r-md); color: var(--muted); font-weight: 650; cursor: pointer; }
.tile-photo.add:hover, .tile-photo.add:focus-within { border-color: var(--ring); color: var(--ink); }
.tile-photo.add svg.ic { width: 28px; height: 28px; }
.badge { padding: .1rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--highlight) 24%, transparent); font-weight: 700; }
.link { padding: 0; border: 0; background: none; color: var(--action); font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link.danger { color: var(--muted); }
.foot { margin: .5rem 0 0; font-size: .85rem; text-align: center; }
.row.tight { gap: .4rem; margin: 0; }
.row.between { justify-content: space-between; margin: 0; }
.three { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; counter-reset: three; }
.three li { counter-increment: three; display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: var(--r-md); background: color-mix(in srgb, var(--highlight) 11%, transparent); font-weight: 650; }
.three li::before { content: counter(three); display: grid; place-items: center; width: 1.9rem; height: 1.9rem; flex: none; border-radius: 50%; background: var(--action); color: var(--on-accent); font-weight: 800; }
.fine { padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r-md); font-size: .9rem; }
.fine summary { font-weight: 700; cursor: pointer; }
.fine p { margin: .7rem 0 0; color: var(--muted); }
.btn:disabled { opacity: .5; cursor: default; filter: none; transform: none; }

/* The camera: a card-shaped window for the ID, an oval for the face. */
.capture { width: min(44rem, 100%); }
.time { padding: .15rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); font-size: .8rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.cam-frame { position: relative; overflow: hidden; border-radius: var(--r-md); background: #111; aspect-ratio: 16 / 10; }
.cam { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam.mirror { transform: scaleX(-1); }
.outline { position: absolute; inset: 9% 7%; border: 3px solid rgba(255, 255, 255, .9); border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); pointer-events: none; }
.face-shape { aspect-ratio: 4 / 5; max-height: 60vh; margin: 0 auto; width: min(100%, 24rem); }
.face-shape .outline { inset: 8% 16%; border-radius: 50%; }
.spinner { width: 3rem; height: 3rem; margin: 1rem auto 0; border-radius: 50%; border: 4px solid color-mix(in srgb, var(--ink) 12%, transparent); border-top-color: var(--action); }

/* ---- discover -------------------------------------------------------------- */
.chat-head h2 { font-size: 1.35rem; letter-spacing: -.03em; }
.deck { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.profile-card { flex: 1; min-height: 0; overflow-y: auto; padding: 0 clamp(.9rem, 2.5vw, 1.75rem) 1rem; display: flex; flex-direction: column; gap: .7rem; }
.profile-card .photos { padding-top: 1rem; }
.profile-card .photo { width: min(21rem, 78vw); height: min(27rem, 58vh); border-radius: var(--r-md); }
.profile-card h2.name { font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; }
.profile-card h2.name svg.ic { width: 22px; height: 22px; }
.profile-card section h3 { margin-bottom: .2rem; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.profile-card p, .profile-card .chips { margin: 0; }
.swipe { display: flex; justify-content: center; gap: 1rem; padding: .9rem; border-top: 1px solid var(--line); }
.btn.big { min-width: 9.5rem; min-height: 54px; font-size: 1.05rem; }

@media (max-width: 820px) {
  .wizard { padding: .75rem; }
  .list-head { flex-wrap: wrap; gap: .5rem; }
  .btn.big { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .step { animation: lift .4s cubic-bezier(.2, .8, .2, 1) both; }
  .spinner { animation: spin .9s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
}

/* The sign-in photograph follows the visitor’s selected region. */
.bar { padding: 12px clamp(20px, 5vw, 84px); min-height: 65px; background: var(--bg); backdrop-filter: none; }

.lang { background: transparent; }
.lang a[aria-current="true"] { background: none; text-decoration: underline 2px var(--action); text-underline-offset: 4px; }
.btn { box-shadow: none; }
.btn.ghost { border: 1px solid var(--line); }
.error { border-inline-start: 3px solid var(--text); }
input::placeholder, textarea::placeholder { color: #ababab; }
.btn:not(.ghost):hover { background: var(--action-hover); }
.welcome { width: min(1360px, 100%); padding: clamp(18px, 3vw, 48px); gap: clamp(24px, 5vw, 80px); grid-template-columns: minmax(0, 1.15fr) minmax(20rem, .85fr); }
.stage {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 580px;
  padding: clamp(22px, 3vw, 48px); overflow: hidden; border-radius: var(--r-lg); color: white;
  background: linear-gradient(0deg, #080808f2, #111c 25%, #1114 56%, transparent 78%),
    var(--scene, url("/assets/scenes/regions/pikes-peak-1600.webp")) 50% 50% / cover no-repeat #292929;
}
.stage h2 { font: 550 clamp(44px, 5vw, 83px)/.97 var(--font); letter-spacing: -.065em; }
.stage h2 span { display: block; font: 650 12px/1.5 var(--font); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.stage h2 em { font: inherit; }
.stage .lead { max-width: 42ch; margin: 14px 0 0; font-size: 15px; line-height: 1.5; }
.stage .facts { margin-top: 16px; }
.stage .facts li { background: #171717db; font-size: 11px; }
.signin { border: 0; width: min(100%, 29rem); justify-self: center; padding: 16px 0; background: transparent; backdrop-filter: none; box-shadow: none; }
.signin h2, .step h2, .profile-card h2.name, .list-head h2, .hello h2, .sheet > header h2 { font: 550 clamp(34px, 3.6vw, 56px)/1.04 var(--font); letter-spacing: -.025em; }
.list-head h2, .hello h2, .sheet > header h2 { font-size: 32px; }
.provider { border-radius: 9px; }
.provider:hover { border-color: var(--action); background: #303030; transform: none; }
.provider .tile { display: none; }
.provider { padding-inline: 1.1rem; }
.provider:has(.asl) { background: var(--action); border-color: var(--action); color: var(--on-accent); }
.provider:has(.asl) .go { color: inherit; }
.provider:has(.asl):hover { background: var(--action-hover); }
.provider .go { color: var(--action); }
.step { box-shadow: none; }
.profile-card h2.name { font-size: 40px; }
@media (min-width: 980px) {
  .profile-card { display: grid; grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); column-gap: 1.75rem; align-content: start; padding-top: 1rem; }
  .profile-card > .photos { grid-column: 1; grid-row: 1 / span 12; flex-direction: column; overflow: visible; }
  .profile-card > .photos .photo { width: 100%; height: auto; aspect-ratio: 4 / 5; }
  .profile-card > :not(.photos) { grid-column: 2; }
}
@media (max-width: 820px) {
  .welcome { grid-template-columns: 1fr; gap: 18px; }
  .stage { min-height: 230px;  }
  .signin { grid-row: 1; }
}

@media (max-width: 440px) {
  .bar { padding-inline: 12px; gap: 7px; }

  .bar .lang { flex-shrink: 0; }
  .bar .lang a { padding-inline: 5px; }
}

/* Plans, likes and read receipts. */
.ticks { margin: .7rem 0 1rem; padding: 0; list-style: none; display: grid; gap: .45rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: .15rem; top: .42em; width: .7rem; height: .38rem; border-left: 2px solid var(--action); border-bottom: 2px solid var(--action); transform: rotate(-45deg); }
.plan .percent { margin: .2rem 0 0; }
.plan .row { margin-top: .2rem; }
.sheet .chips[role="tablist"] { margin: 1rem 1.1rem .2rem; }
.match.likes { margin-top: .2rem; }
.avatar.dot { display: grid; place-items: center; width: 52px; height: 52px; color: var(--action); background: #343434; }
.seen { justify-self: end; margin: .1rem .4rem 0; font-size: .68rem; color: var(--muted); }

/* Your profile and Know me: a scrolling page of sections in the pane, with one bar of actions under it. */
.editor { flex: 1; min-height: 0; overflow-y: auto; display: grid; gap: 1.5rem; align-content: start; padding: 1.25rem clamp(.9rem, 2.5vw, 1.75rem) 2rem; }
.editor > section { display: grid; gap: .85rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.editor > section:last-child { border-bottom: 0; }
.editor h3 { color: var(--muted); font-size: .76rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.editor p { margin: 0; }
.editor .chips { margin: 0; }
.editor .photo-grid { grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
select { width: 100%; min-height: 46px; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: var(--r-md); background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink); font: inherit; }
select:focus { outline: 3px solid var(--ring); outline-offset: 0; border-color: transparent; }
.plain { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.stack { display: grid; gap: .8rem; margin-top: .9rem; }
.set > summary { font-size: 1rem; }
.question { margin-top: 0; display: grid; gap: .8rem; }
.question h3 { color: var(--ink); font-size: 1.05rem; font-weight: 650; text-transform: none; letter-spacing: -.01em; line-height: 1.3; }
.swipe > [role="status"] { flex: 1 1 100%; }
.chat-head .picks { margin-left: auto; text-align: right; }
.swipe:has([role="status"]) { flex-wrap: wrap; }
@media (max-width: 560px) { .pair { grid-template-columns: minmax(0, 1fr); } }
