:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #ebe9e3;
  --ink: #111114;
  --muted: #5e5d66;
  --line: rgba(17, 17, 20, 0.1);
  --accent: #ff5a36;
  /* Coral is for fills and strokes. On it, ink reads (6.1:1) where white did not (3.1:1); text in coral uses the
     darker shade so it reaches 4.5:1 on the light surfaces. */
  --accent-ink: #111114;
  --accent-text: #b83516;
  --accent-soft: rgba(255, 90, 54, 0.12);
  --invert: #111114;
  --invert-ink: #f4f3ef;
  --danger: #d6331f;
  --ok: #1f8a5b;
  --focus: #b83516;
  --field-edge: rgba(17, 17, 20, 0.42);
  --island: rgba(255, 255, 255, 0.72);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 24px 48px -28px rgba(17, 17, 20, 0.28);
  --radius: 28px;
  /* Six steps, used for UI text. Display sizes (hero, page title) stay fluid on top of these. */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 28px;
  --text-2xl: 40px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --surface: #151518;
    --surface-2: #1d1d21;
    --ink: #f4f3ef;
    --muted: #9b9aa3;
    --line: rgba(244, 243, 239, 0.1);
    --accent: #ff6a48;
    --accent-ink: #160805;
    --accent-text: #ff6a48;
    --focus: #ff6a48;
    --field-edge: rgba(244, 243, 239, 0.4);
    --accent-soft: rgba(255, 106, 72, 0.14);
    --invert: #f4f3ef;
    --invert-ink: #111114;
    --danger: #ff7a66;
    --ok: #4fd39a;
    --island: rgba(21, 21, 24, 0.72);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 48px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--text-md)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
/* main only takes focus programmatically after a route change, for screen readers. */
main:focus-visible { outline: none; }

/* Island nav */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 16px 0;
}

.island {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: var(--island);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  font: 800 21px/1 var(--sans);
  letter-spacing: -0.04em;
  text-decoration: none;
}
.logo { width: 32px; height: 20px; overflow: visible; }
.logo path { fill: none; stroke-width: 3; stroke-linecap: round; }
.logo .wave-a { stroke: var(--ink); }
.logo .wave-b { stroke: var(--accent); }
.brand:hover .logo path { animation: sway 1.2s ease-in-out; }
@keyframes sway {
  50% { transform: translateY(1px) scaleY(0.82); }
}
.logo path { transform-origin: center; transform-box: fill-box; }

#nav { display: flex; gap: 2px; }
#nav a {
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
#nav a:hover { color: var(--ink); }
#nav a { white-space: nowrap; }
#nav a[aria-current="page"] { background: var(--invert); color: var(--invert-ink); }

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 16px 80px;
  outline: none;
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 560px) {
  .island { padding-left: 14px; }
  .topbar { padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
}
@media (max-width: 360px) {
  .island { gap: 6px; }
}

/* Type */

h1, h2, h3 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(44px, 7.4vw, 92px); margin: 18px 0 22px; }
h2, .page-title { font-size: clamp(30px, 4.2vw, 46px); margin: 0 0 10px; }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }

.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.accent { color: var(--accent-text); }

.mono-label, .eyebrow {
  font: 650 var(--text-xs)/1.3 var(--sans);
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 12px;
}

/* Score ring */

.ring {
  --size: 108px;
  --track: var(--surface-2);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--track) 0);
  display: grid;
  place-content: center;
  text-align: center;
  position: relative;
  flex-shrink: 0;
}
.ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--surface);
}
.ring > * { position: relative; }
.ring strong { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring span { font: 650 var(--text-xs)/1.2 var(--sans); color: var(--muted); margin-top: 4px; }
.ring.xl { --size: min(62vw, 240px); }
.ring.xl::before { inset: 18px; }
.ring.xl strong { font-size: clamp(44px, 9vw, 64px); }
.ring.xl span { font-size: 11px; }
.ring.sm { --size: 68px; }
.ring.sm::before { inset: 6px; }
.ring.sm strong { font-size: 16px; }
@media (max-width: 560px) {
  .ring { --size: 88px; }
  .ring strong { font-size: 21px; }
}

/* Feature tile (compare result) */

.tile {
  border-radius: var(--radius);
  padding: 26px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
}
.tile p:last-child { margin-bottom: 0; }
.t-tired {
  grid-column: span 6;
  min-height: 0;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
}
.t-tired h3 { font-size: clamp(24px, 3vw, 34px); max-width: 18em; margin-bottom: 10px; }
.t-tired p:not(.mono-label) { color: var(--muted); max-width: 40em; margin: 0; }
.t-tired .btn { flex-shrink: 0; }
@media (max-width: 560px) {
  .t-tired { flex-direction: column; align-items: flex-start; }
}

/* Buttons */

.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  min-height: 48px;
  font: 700 var(--text-md)/1.2 var(--sans);
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform 160ms cubic-bezier(.3, .7, .4, 1.4), background 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.link { background: none; color: var(--muted); padding: 14px 4px; text-decoration: underline; text-underline-offset: 3px; }
.btn.accent { background: var(--accent); color: var(--accent-ink); }

/* Survey */

.survey { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }

.rail {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin: 0 0 18px; }
.progress > div { height: 100%; background: var(--accent); border-radius: 3px; transition: width 400ms cubic-bezier(.3, .7, .4, 1); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 12px; font-size: 14px; color: var(--muted); }
.steps .idx { font: 600 11px/1 var(--mono); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); flex-shrink: 0; }
.steps li.done { color: var(--ink); }
.steps li.done .idx { background: var(--accent-soft); color: var(--accent-text); }
.steps li.current { background: var(--invert); color: var(--invert-ink); font-weight: 700; }
.steps li.current .idx { background: var(--accent); color: var(--accent-ink); }

.survey-main { max-width: 720px; }
.survey-main > .lead { margin-bottom: 36px; }

.question {
  border: 0;
  margin: 0 0 14px;
  padding: 22px;
  min-width: 0;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 160ms ease;
}
.question:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.question > legend, .question > label.q-label { display: block; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin: 0 0 4px; padding: 0; float: left; width: 100%; }
.question > legend + *, .question > label.q-label + * { clear: both; }
.hint { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.question.invalid { box-shadow: inset 0 0 0 1.5px var(--danger); }
.question.invalid > legend, .question.invalid > label.q-label { color: var(--danger); }
.edits-note { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.edits-note.low { color: var(--accent-text); font-weight: 600; }
.edits-note.empty { padding: 10px 14px; border-radius: 12px; color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); font-weight: 600; }
.q-error { margin: 10px 0 0; color: var(--danger); font-size: 14px; font-weight: 650; clear: both; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; clear: both; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}
.chip:hover span { box-shadow: inset 0 0 0 1.5px var(--line); }
.chip input:checked + span { background: var(--invert); color: var(--invert-ink); font-weight: 650; }
.chip input:active + span { transform: scale(0.97); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 900px) {
  .survey { grid-template-columns: 1fr; gap: 24px; }
  .rail { position: static; padding: 16px 18px; }
  .rail .progress { margin-bottom: 0; }
  .steps { display: none; }
}
@media (max-width: 560px) {
  .hint { font-size: 13px; }
}

/* Likert: one segmented track instead of five loose buttons */
.likert .chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface-2); }
.likert .chip span { display: flex; justify-content: center; text-align: center; height: 100%; padding: 10px 6px; border-radius: 12px; font-size: 13px; background: transparent; }
.likert .chip input:checked + span { background: var(--accent); color: var(--accent-ink); }
.scale-ends { display: none; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12px; color: var(--muted); }

input[type="text"], input[type="number"], input[type="password"], select, textarea {
  width: 100%;
  max-width: 440px;
  margin-top: 12px;
  padding: 13px 16px;
  min-height: 48px;
  border-radius: 14px;
  border: 0;
  background: var(--surface-2);
  /* The edge has to show where an empty field is (3:1 against its surroundings). */
  box-shadow: inset 0 0 0 1px var(--field-edge);
  color: var(--ink);
  font: 500 16px/1.4 var(--sans);
  clear: both;
  display: block;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; }
textarea { max-width: none; resize: vertical; min-height: 104px; font: 14px/1.5 var(--mono); }
.range-row { display: flex; gap: 12px; align-items: center; max-width: 440px; clear: both; }
.range-row input { max-width: 130px; display: inline-block; }

.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

.error-banner { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); padding: 14px 18px; border-radius: 16px; margin: 16px 0; font-weight: 600; }
@media (max-width: 560px) {
  .likert .chips { grid-template-columns: repeat(5, 1fr); margin-top: 12px; }
  .chips { gap: 6px; margin-top: 12px; }
  .scale-ends { display: flex; }
  /* Long survey steps keep Back/Next under the thumb. */
  .step-nav {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 20px -16px 0;
    padding: 20px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--bg) 72%, transparent);
  }
}

/* Persona, tips, matches */



.first-question { grid-column: 1 / -1; margin: 0; padding: 18px 20px; background: var(--surface-2); border-radius: 18px; }
.first-question p { margin: 6px 0 0; font-size: 19px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.35; }

.match {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 24px;
  padding: 26px;
  margin-top: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.match h3 { font-size: 26px; letter-spacing: -0.03em; }
.text-button { border: 0; background: none; padding: 0; font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; text-align: left; }
.match .meta { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.score { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.bars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 18px; }
.bar label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.bar label span:last-child { font: 600 12px var(--mono); color: var(--ink); }
.bar .track { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.bar .fill { height: 100%; border-radius: 3px; background: var(--ink); }

.match .actions { grid-column: 1 / -1; }
.more-matches { display: flex; margin: 16px auto 0; }

.empty { padding: 48px 28px; color: var(--muted); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-top: 14px; }

.code-box {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--accent);
  border-radius: 20px;
  padding: 18px;
  word-break: break-all;
  font: 13px/1.6 var(--mono);
  margin: 18px 0;
}

.fingerprint { font: 700 15px var(--mono); letter-spacing: 0.08em; color: var(--accent-text); }
.secret { background: var(--surface-2); padding: 14px 18px; border-radius: 16px; white-space: pre-wrap; word-break: break-word; font-weight: 600; }

.status { font: 650 var(--text-xs)/1.2 var(--sans); padding: 7px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.status.accepted { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.status.declined { opacity: 0.6; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--invert);
  color: var(--invert-ink);
  padding: 14px 22px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow);
  max-width: calc(100% - 32px);
  animation: toast-in 260ms cubic-bezier(.3, .7, .4, 1.3);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* Reduced motion */

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

/* Accounts */

.auth { max-width: 520px; margin: 0 auto; }
.auth .question input { max-width: none; }

.alt-login { margin-top: 28px; padding: 18px 22px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.alt-login summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.alt-login[open] summary { margin-bottom: 14px; }

.bot-check:not(:empty) { margin: 0 0 14px; }
.consent { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 22px; background: var(--accent-soft); margin: 4px 0 14px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.consent a { color: var(--accent-text); font-weight: 700; }

.panel { padding: 24px 26px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-top: 14px; }
.panel h3 { margin-bottom: 8px; }
.panel > p { margin: 0 0 16px; }
.panel .question { padding: 0; box-shadow: none; background: none; }
.panel .question:focus-within { box-shadow: none; }

.footer a { display: inline-block; padding: 12px 0; color: var(--ink); }
@media (max-width: 560px) {
  .question { padding: 16px; margin-bottom: 10px; border-radius: 18px; }
  .question > legend, .question > label.q-label { font-size: 16px; line-height: 1.35; }
}

/* Growth, safety, notifications */

#nav .badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 11px/1 var(--mono);
}

.reasons { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.compare-result { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 12px 0 8px; }
.compare-result .reasons { max-width: 34em; margin-top: 18px; }


.safety { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.safety summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.safety select, .safety textarea { max-width: none; }

.feedback { margin-top: 16px; padding: 18px; background: var(--surface-2); box-shadow: none; }
.feedback:focus-within { box-shadow: none; }

.feedback .chip span { background: var(--surface); }

.must-have { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); cursor: pointer; clear: both; }
.must-have input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.must-have:has(input:checked) { color: var(--accent-text); font-weight: 650; }
@media (max-width: 560px) {
  .must-have { margin-top: 12px; padding-top: 10px; font-size: 12.5px; }
}

/* Home */

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

.home-hero { padding-top: clamp(8px, 4vw, 40px); }
.hero-title { font-family: var(--sans); font-weight: 800; font-size: clamp(48px, 10.5vw, 136px); line-height: 0.95; letter-spacing: -0.03em; margin: 14px 0 clamp(24px, 4vw, 40px); }

.rhythm { margin: clamp(36px, 6vw, 64px) 0 0; }
.rhythm svg { display: block; width: 100%; height: clamp(120px, 18vw, 220px); overflow: visible; animation: reveal 1.8s cubic-bezier(.45, 0, .2, 1) both; }
.rhythm path { fill: none; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rhythm .wave-a { stroke: var(--ink); }
.rhythm .wave-b { stroke: var(--accent); }
/* A clip reveal, not a dash offset: dashes break with non-scaling strokes on stretched SVGs. */
@keyframes reveal { from { clip-path: inset(-10% 100% -10% 0); } to { clip-path: inset(-10% 0 -10% 0); } }
.rhythm figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font: 600 12px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.rhythm-score { color: var(--ink); }
.rhythm-score b { color: var(--accent-text); font-size: 15px; }

.home-section { margin-top: clamp(72px, 11vw, 136px); }
.home-head { display: grid; gap: 4px; margin-bottom: clamp(24px, 4vw, 40px); }
.home-head h2 { font-size: clamp(34px, 5.4vw, 64px); letter-spacing: -0.025em; margin: 0; }

.contrast { border-top: 1.5px solid var(--ink); }
.contrast-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.35;
}
.contrast-cols { padding: 12px 0; font: 600 12px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.contrast .before { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent); text-decoration-thickness: 1.5px; }
.contrast .after { font-weight: 650; letter-spacing: -0.01em; }
.contrast .after::before { content: "→ "; color: var(--accent-text); }


.step-no { display: block; font: 800 clamp(56px, 7vw, 88px)/0.9 var(--sans); letter-spacing: -0.06em; color: var(--accent-text); margin-bottom: 18px; font-variant-numeric: tabular-nums; }

.safety-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.safety-grid li { padding: clamp(20px, 2.4vw, 28px); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.safety-grid li:first-child { background: var(--accent-soft); box-shadow: none; }
.safety-grid h3 { margin: 0 0 8px; font-size: clamp(19px, 1.9vw, 23px); letter-spacing: -0.02em; }
.safety-grid p { margin: 0; color: var(--muted); }
.home-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; margin-top: clamp(72px, 11vw, 136px); }
.home-split article { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); }
.home-split h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.035em; margin-bottom: 10px; }
.home-split p:not(.mono-label) { margin: 0 0 24px; max-width: 34em; }
.home-split article > .btn, .home-cities { margin-top: auto; }
.home-compare { background: var(--accent); color: var(--accent-ink); }
.home-compare .mono-label { color: inherit; opacity: 0.75; }
.home-compare .btn { background: var(--invert); color: var(--invert-ink); }
.home-pool { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.home-pool p:not(.mono-label) { color: var(--muted); }
.home-cities { width: 100%; }
.home-cities select { margin-top: 0; max-width: none; }
.home-split p.city-counts { margin: 14px 0 0; font-size: 18px; color: var(--muted); }
.city-counts b { color: var(--ink); font-size: 30px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.home-final {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 14px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius);
  background: var(--invert);
  color: var(--invert-ink);
}
.home-final h2 { font-size: clamp(36px, 6vw, 76px); letter-spacing: -0.03em; line-height: 1; margin: 0; }

@media (max-width: 900px) {
  .home-split { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .contrast-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .contrast-cols { display: none; }
  .contrast .before { font-size: 15px; }
  .step-no { grid-row: span 2; font-size: 48px; margin: 0; }
  /* A swipeable row keeps four questions from becoming a long scroll. */
  .home-final { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .rhythm figcaption { justify-content: center; }
}

.seeking-check { margin-bottom: 20px; padding: 22px 24px; border-radius: var(--radius); background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.seeking-check h3 { margin-bottom: 6px; }
.seeking-check p { margin: 0 0 16px; }


.match .score { display: grid; justify-items: center; gap: 8px; }
.match .band { margin: 0; font: 650 var(--text-xs)/1.2 var(--sans); color: var(--muted); text-align: center; }
.shared-interests { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--muted); }
.soft-misses { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); opacity: .85; }
.shared-interests b { color: var(--ink); font-weight: 650; }
.topic-map { grid-column: 1 / -1; display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.topic-summary { margin: 0; font-size: 14px; color: var(--muted); }
.topic-summary b { color: var(--ink); font-weight: 650; }
.topic-split { display: flex; gap: 3px; height: 6px; }
.topic-split i { border-radius: 3px; }
.topic-split .same { background: var(--ok); }
.topic-split .diff { background: var(--accent); }
.topic-row { display: grid; gap: 6px; }
.topic-row > span { font: 650 var(--text-xs)/1.3 var(--sans); color: var(--muted); }
.topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.topic { padding: 3px 10px; border-radius: 8px; font-size: 14px; line-height: 1.4; border: 1px solid transparent; }
.topic.mine { background: var(--ok); color: var(--bg, #fff); font-weight: 600; }
.topic.mine::before { content: "✓ "; }
.topic.common { border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ink); }
.topic.talk { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent-text); }
.topic.more { font: inherit; font-size: 14px; background: none; cursor: pointer; border: 1px dashed var(--muted); color: var(--muted); }
.bands { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 6px; }
.bands li { color: var(--muted); }
.bands b { display: inline-block; min-width: 7.5em; color: var(--ink); font-variant-numeric: tabular-nums; }

.attachment { margin-top: 14px; padding: 24px 26px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.attachment h3 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 8px; }
.attachment > p { margin: 0 0 12px; }
.group-title { margin: 28px 0 4px; }
.know-before { margin: 18px 0; padding: 18px 20px; border-radius: 20px; background: var(--accent-soft); }
.know-before h4, .guide summary { margin: 0 0 4px; font-size: 17px; font-weight: 750; }
.know-before ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.kb-q { margin: 0 0 4px; font-weight: 600; }
.kb-a { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--muted); }
.kb-a b { color: var(--ink); font-weight: 600; }
.guide { margin: 0 0 18px; padding: 16px 20px; border-radius: 20px; background: var(--surface-2); }
.guide summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.guide ul { margin: 6px 0 10px; padding-left: 20px; }
.close-notes { display: grid; gap: 8px; }
.close-notes .chip span { display: block; text-align: left; line-height: 1.4; }
.closed-note blockquote { margin: 6px 0 14px; padding: 14px 18px; border-radius: 16px; background: var(--surface-2); font-style: italic; }
.spark { margin-top: 14px; }

.review-list { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; }

.static-intro { max-width: 46em; }
.static-intro h2 { margin-top: 40px; }
.static-intro ol, .static-intro ul { padding-left: 22px; display: grid; gap: 10px; color: var(--muted); }
.static-intro b { color: var(--ink); }

.fit-details { margin: 0 0 16px; padding: 14px 18px; border-radius: 20px; background: var(--surface-2); }
.fit-details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.fit-details .bars { margin-top: 10px; }
.fit-details .reasons { margin: 12px 0 0; font-size: 15px; }
@media (max-width: 560px) {
  .survey-main > .lead { margin-bottom: 20px; font-size: 15px; }
}

/* Matches page layout */

.match .fit-details { grid-column: 1 / -1; margin: 0; }
@media (max-width: 560px) {
  .match { grid-template-columns: 1fr auto; padding: 20px; }
  .match { gap: 14px 16px; }
}

/* Messages */

.know-before summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 750; font-size: 17px; }


.section-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; }
.section-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.section-list .btn { min-height: 44px; padding: 8px 16px; flex-shrink: 0; }

.push-offer {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  animation: toast-in 260ms cubic-bezier(.3, .7, .4, 1.3);
}
.push-offer p { margin: 0 0 12px; }
.signed-in .push-offer { bottom: calc(92px + env(safe-area-inset-bottom)); }

.faq { display: grid; gap: 8px; margin: 8px 0 28px; }
.faq details { padding: 4px 20px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; font-weight: 700; }
.faq p { margin: 0 0 16px; color: var(--muted); }

.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.admin-tab { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.admin-tab[aria-selected="true"] { background: var(--invert); color: var(--invert-ink); box-shadow: none; }
.admin-balance { display: grid; gap: 18px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 14px; }
.admin-balance h2 { margin: 4px 0; font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.admin-balance h2 .muted { font-size: var(--text-lg); letter-spacing: 0; }
.admin-balance p { margin: 0; }
.balance-bar { display: flex; height: 40px; border-radius: 14px; overflow: hidden; font-size: 13px; font-weight: 650; }
.balance-bar span { display: flex; align-items: center; padding: 0 14px; min-width: 0; white-space: nowrap; }
.balance-bar .women { background: var(--accent); color: var(--accent-ink); }
.balance-bar .men { background: var(--surface-2); color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.stat { padding: 16px 18px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 2px; }
.stat b { font-size: 28px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; }
.admin-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.admin-list li p { margin: 0 0 6px; }
.admin-list li.resolved { opacity: 0.55; }
.admin-list.compact li { padding: 8px 0; font-size: 14px; font-family: var(--mono); overflow-wrap: anywhere; }
.admin-list blockquote { margin: 0 0 8px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); }
.admin-share { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 4px; }
.histogram { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.hbar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.hbar i { width: 100%; min-height: 2px; border-radius: 4px 4px 2px 2px; background: var(--accent); }
.hbar span { font: 600 10px/1 var(--mono); color: var(--muted); height: 10px; }

.quota { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; padding: 14px 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.quota p { margin: 0; font-size: 14px; color: var(--muted); }
.quota b { color: var(--ink); }
.quota.full { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.quota-dots { display: flex; gap: 5px; flex-shrink: 0; }
.quota-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.quota-dots i.used { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }

.push-notice { margin-bottom: 18px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent); }
.push-notice h3 { margin-bottom: 6px; }
.push-notice p { margin: 0 0 12px; color: var(--muted); }
.push-notice ol { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }

.report-groups { display: grid; gap: 12px; margin-top: 12px; }
.report-card { padding: 16px 18px; border-radius: 20px; background: var(--surface-2); }
.report-card.done { opacity: 0.6; }
.report-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.report-card h4 { margin: 0; font-size: 18px; }
.report-card header p { margin: 2px 0 8px; }
.report-card > p { margin: 0 0 8px; }
.report-notes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.report-notes li { padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.report-notes li.resolved { opacity: 0.6; }
.report-notes p { margin: 2px 0 0; }
.chip-status { flex-shrink: 0; padding: 6px 10px; border-radius: 999px; font: 600 12px/1 var(--mono); background: var(--surface); color: var(--muted); }
.chip-status.open { background: var(--accent); color: var(--accent-ink); }

/* Read receipts */

/* Admin: survey funnel and feedback insights */
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.funnel li { display: grid; grid-template-columns: 7.5em 1fr auto; align-items: center; gap: 10px; font-size: 0.9rem; }
.funnel .track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.funnel .track i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.funnel b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.funnel.steps li { grid-template-columns: minmax(9em, 12em) 1fr 6.5em 3.5em; padding: 6px 8px; border-radius: 8px; }
.funnel.steps li > b { text-align: right; }
.funnel.steps li > span { display: grid; line-height: 1.25; }
.funnel.steps li > span small { font-size: 0.78rem; }
.funnel .drop { font-style: normal; font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); }
.funnel li.worst { background: color-mix(in srgb, var(--danger, #c0392b) 10%, transparent); }
.funnel li.worst .drop { color: var(--danger, #c0392b); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.insights { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.insights th, .insights td { padding: 6px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.insights td { font-variant-numeric: tabular-nums; }
.insights thead th { color: var(--muted); font-weight: 600; }

/* Ease of use */

/* App pages read best in one comfortable column on wide screens; the chat especially. */
/* Keyed on the page alone, which the server already sets, so a reload opens at this width instead of jumping to it. */
:is([data-page="eslesmeler"], [data-page="istekler"], [data-page="hesap"], [data-page="yeni-sorular"]) main { max-width: 800px; }

/* Every collapsible section shows that it opens. */
details > summary { list-style: none; gap: 10px; }
.confirm-line { margin: 12px 0; color: var(--danger); font-size: 14px; font-weight: 600; }
.confirm-line p { margin: 0 0 6px; }
.confirm-line .actions { margin-top: 10px; }
/* A tap on a control should act, not start a text selection with a copy menu on phones. */
.btn, details > summary, .chip, .icon-btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.55;
  transition: transform 160ms ease;
}
details[open] > summary::after { transform: translateY(2px) rotate(225deg); }

/* Notices stay short; the how-to opens on demand. */
.push-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; border-radius: 20px; }
.push-notice h3 { margin: 0; font-size: 16px; flex: 1 1 140px; }
.push-notice p, .push-notice ol { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--muted); }
.push-notice ol { padding-left: 20px; }
.push-notice .actions { margin: 0; flex-wrap: nowrap; }
.push-notice .btn { min-height: 44px; padding: 8px 14px; }

.quota { padding: 10px 16px; gap: 12px; }
.quota p { font-size: 13.5px; line-height: 1.4; }

/* Tab bar icons on phones. */
#nav svg { display: none; }

@media (max-width: 560px) {
  #nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 360px) {
  #nav a { padding: 8px 8px; }
}

/* Chat */

.chat {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 130px);
  min-height: 460px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.in-chat main { padding-top: 20px; padding-bottom: 20px; }
.in-chat .footer { display: none; }

.chat-head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
  z-index: 1;
}
.icon-btn {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.chat-who {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.chat-who:hover { background: var(--surface-2); }
.chat-who .avatar { width: 40px; height: 40px; font-size: 17px; }
.chat-name { min-width: 0; display: grid; line-height: 1.25; }
.chat-name b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-sub.typing { color: var(--accent-text); font-weight: 600; }

.chat-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 14px 10px;
  display: flex;
  flex-direction: column;
}
/* Short conversations sit at the bottom, next to the reply box, as in messaging apps. */
.chat-scroll > :first-child { margin-top: auto; }
.chat-system {
  align-self: center;
  max-width: 34em;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.chat-scroll .first-question { align-self: center; max-width: 30em; margin: 0 0 12px; text-align: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.thread .day { align-self: center; margin: 12px 0 8px; }
.thread .day span { display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.bubble {
  position: relative;
  max-width: min(78%, 34em);
  align-self: flex-start;
  margin-top: 6px;
  padding: 7px 10px 6px 12px;
  border-radius: 18px 18px 18px 6px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  line-height: 1.35;
}
.bubble.mine { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.bubble.mine time { opacity: 0.85; }
.bubble.cont { margin-top: 0; border-top-left-radius: 6px; }
.bubble.mine.cont { border-top-left-radius: 18px; border-top-right-radius: 6px; }
.bubble p { display: inline; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* The time sits at the end of the last line and wraps under it only when there is no room. */
.bubble time { float: right; margin: 6px 0 -2px 10px; font-size: 11px; line-height: 1; opacity: 0.7; font-variant-numeric: tabular-nums; }
.seen-note { margin: 3px 4px 0; text-align: right; font-size: 12px; color: var(--muted); }

.composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--line);
}
.composer textarea {
  flex: 1;
  margin: 0;
  min-height: 44px;
  max-height: 140px;
  padding: 11px 16px;
  border-radius: 22px;
  resize: none;
  font: 16px/1.35 var(--sans);
}
.send {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease;
}
.send svg { width: 22px; height: 22px; }
.send.mic { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); position: relative; }
.send.mic.recording { background: #c0392b; color: #fff; }
.send.mic[data-left]::after { content: attr(data-left); position: absolute; top: -6px; right: -6px; min-width: 18px; padding: 1px 4px; border-radius: 9px; background: var(--ink); color: var(--bg, #fff); font-size: 11px; line-height: 16px; }
.voice-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 2px 6px 6px; font-size: 13px; color: var(--muted); }
.voice-bar .text-button { font-size: 13px; }
.voice-bar.asked { color: var(--ink); }
.bubble { position: relative; transition: transform 120ms ease; }
.bubble .quote { display: block; width: 100%; margin: 0 0 6px; padding: 4px 8px; border: 0; border-left: 3px solid currentColor; border-radius: 6px; background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; font: inherit; font-size: 13px; text-align: left; opacity: .85; cursor: pointer; }
.bubble .quote b { display: block; font-size: 12px; }
.bubble .quote span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bubble .reply-btn { position: absolute; top: 50%; transform: translateY(-50%); right: -64px; padding: 2px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 12px; opacity: 0; cursor: pointer; }
.bubble.mine .reply-btn { right: auto; left: -64px; }
.bubble:hover .reply-btn, .bubble .reply-btn:focus-visible { opacity: 1; }
@media (hover: none) { .bubble .reply-btn { display: none; } }
.bubble.flash { animation: bubble-flash 1.4s ease; }
@keyframes bubble-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.reply-bar { display: flex; align-items: center; gap: 8px; margin: 0 6px 6px; padding: 6px 6px 6px 10px; border-left: 3px solid var(--accent); border-radius: 8px; background: color-mix(in srgb, var(--ink) 5%, transparent); font-size: 13px; }
.reply-bar[hidden] { display: none; }
.reply-bar > div { flex: 1; min-width: 0; }
.reply-bar b { display: block; font-size: 12px; }
.reply-bar span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.bubble.voice audio { display: block; width: min(260px, 60vw); height: 40px; }
/* View-once photos: a line in the thread, opened in a full-screen viewer for a few seconds. */
.once-line, .once-open { display: flex; align-items: center; gap: 8px; margin: 0; font: inherit; color: inherit; }
.once-line svg, .once-open svg { width: 20px; height: 20px; flex: none; }
.once-line small, .once-open small { opacity: .75; }
.once-open { min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.once-open:disabled { opacity: .6; cursor: progress; }
.bubble.once.opened { opacity: .75; }
.once-pick svg { width: 22px; height: 22px; }
.once-pick[hidden] { display: none; }
.once-slot:empty { display: none; }
.once-slot { margin: 0 6px 6px; }
.once-viewer { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: rgb(0 0 0 / .92); color: #fff; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.once-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(100%, 720px); font-size: 14px; }
.once-bar .icon-btn { color: #fff; }
.once-canvas { max-width: 100%; border-radius: 12px; pointer-events: none; }
.send:active { transform: scale(0.92); }
.send:disabled { opacity: 0.6; cursor: not-allowed; }
.chat-closed { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -1px 0 var(--line); }
.chat-closed .closed-note { margin: 0; }

.chat-info {
  width: min(560px, calc(100vw - 24px));
  max-height: min(86dvh, 820px);
  padding: 0 20px 20px;
  border: 0;
  border-radius: 24px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.chat-info::backdrop { background: rgba(0, 0, 0, 0.4); }
.selfie-sheet { width: min(480px, calc(100vw - 24px)); padding: 24px 20px 20px; }
.selfie-sheet h3 { margin: 0 0 12px; }
.selfie-gesture, .review-gesture { display: grid; gap: 4px; margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); }
.selfie-gesture b, .review-gesture b { font-size: var(--text-lg); letter-spacing: -0.01em; }
.selfie-video { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; background: var(--invert); transform: scaleX(-1); margin-bottom: 14px; }
.call-sheet { width: min(360px, calc(100vw - 24px)); padding: 28px 20px 24px; text-align: center; }
.call-sheet .call-avatar { display: inline-grid; place-items: center; width: 72px; height: 72px; font-size: 30px; margin: 0 auto 12px; }
.call-sheet h3 { margin: 0 0 4px; }
.call-sheet .call-line { margin: 0 0 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.call-sheet .actions { justify-content: center; }
.chat-info > header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin: 0 -20px; padding: 12px 12px 8px 20px; background: var(--bg); }
.chat-info h3 { margin: 0; font-size: 20px; }
.chat-info .meta { margin: 0 0 14px; color: var(--muted); }
.chat-info > * + details, .chat-info > section { margin-top: 12px; }

@media (max-width: 560px) {
  .chat { position: fixed; inset: 0; height: 100dvh; min-height: 0; border-radius: 0; box-shadow: none; z-index: 30; }
  .chat-head { padding-top: calc(8px + env(safe-area-inset-top)); }
  .chat-info { width: 100vw; max-width: none; max-height: 88dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  /* The full label stays in the accessibility tree; on screen each option is its position on the scale. */
  .likert .chip span { align-items: center; padding: 0; min-height: 44px; font-size: 0; }
  .likert .chip span::before { content: attr(data-n); font: 650 15px/1 var(--sans); }
  .chip span { padding: 8px 13px; min-height: 44px; font-size: 14px; border-radius: 12px; }
  textarea { font-size: 16px; }
  .rhythm figcaption > span:not(.rhythm-score) { display: none; }
}
@media (min-width: 900px) {
  .inbox .chat { height: auto; min-height: 0; }
  .inbox-placeholder-icon svg { width: 30px; height: 30px; }
}

/* Requests */

.req-group { margin-top: 26px; }
.req-group .group-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 17px; }
.group-title .count { min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); font: 600 12px/1.4 var(--mono); color: var(--muted); text-align: center; }
.req-group > .small { margin: 0 0 8px; }
.req-list { list-style: none; margin: 8px 0 0; padding: 0; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.req + .req { border-top: 1px solid var(--line); }
.req > details > summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; cursor: pointer; }
.req > details > summary:hover { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.req .avatar { width: 40px; height: 40px; font-size: 16px; }
.req-main { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.req-main b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-meta { font-size: 13px; color: var(--muted); }
.req-status { flex-shrink: 0; font-size: 12.5px; color: var(--muted); text-align: right; }
.req-status.urgent { color: var(--accent-text); font-weight: 650; }
.req.declined .req-main, .req.expired .req-main, .req.declined .avatar, .req.expired .avatar { opacity: 0.6; }
.req-panel { padding: 0 16px 16px 68px; }
.req-panel > :first-child { margin-top: 0; }
.req-panel .bars { margin: 8px 0 10px; }
.req-panel .actions { margin-top: 8px; }
.req-band { margin: 0; font-weight: 600; }
.req-answer { padding: 0 16px 14px 68px; }
.req-question { margin: 0 0 10px; font-weight: 650; }
.req-answer .actions { margin: 0; }
.req-answer > .small { margin: 8px 0 0; }
.req-history > summary { display: flex; align-items: center; cursor: pointer; min-height: 44px; }
.req-history > summary .group-title { margin: 0; }

@media (max-width: 560px) {
  .req > details > summary { padding: 10px 12px; gap: 10px; }
  .req-panel, .req-answer { padding-left: 12px; padding-right: 12px; }
}

/* Inbox */

.avatar { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; font-size: 18px; }

[data-page="mesajlar"] .footer { display: none; }

.inbox-head { padding: 4px 4px 12px; }
.inbox-head .page-title { margin: 0 0 2px; }
.inbox-head p { margin: 0; }
.convo-list { list-style: none; margin: 0; padding: 0; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.convo-list li:not([hidden]) ~ li .convo { box-shadow: inset 0 1px 0 var(--line); }
.inbox-filters { display: flex; gap: 8px; padding: 0 4px 12px; overflow-x: auto; scrollbar-width: none; }
.inbox-filter {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 18px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 600 14px/1 var(--sans); cursor: pointer;
}
.inbox-filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.inbox-filter-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 12px; }
.convo { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; color: inherit; text-decoration: none; }
.convo:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.convo.active { background: var(--accent-soft); }
.convo .avatar { width: 48px; height: 48px; font-size: 19px; }
.convo-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.convo-top, .convo-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.convo-top b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-top time { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.convo-preview { min-width: 0; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-count { flex-shrink: 0; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 12px/1 var(--sans); }
.convo.unread .convo-top time { color: var(--accent-text); font-weight: 650; }
.convo.unread .convo-preview { color: var(--ink); font-weight: 600; }
.convo.fresh .convo-preview { color: var(--accent-text); }
.convo.closed .avatar, .convo.closed .convo-main { opacity: 0.55; }

.inbox-placeholder { display: none; }

/* Wide screens: list and conversation side by side, like messaging apps on the web. */
@media (min-width: 900px) {
  .inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; height: calc(100dvh - 130px); min-height: 480px; }
  .inbox-list { display: flex; flex-direction: column; min-height: 0; }
  .inbox-list .convo-list { flex: 1; overflow-y: auto; }
  .inbox-placeholder {
    display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center;
    border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  }
  .inbox-placeholder-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
}
/* Phones: the list is the page; an open conversation takes the whole screen on its own. */
@media (max-width: 899px) {
  .inbox.has-chat > .inbox-list { display: none; }
}
@media (max-width: 560px) {
  main { padding-top: 24px; }
}
@media (max-width: 680px) {
}

/* Cookie bar */

.cookie-bar {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 25;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px 14px;
  padding: 8px 10px 8px 16px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cookie-bar p { margin: 0; flex: 1; font-size: var(--text-sm); line-height: 1.35; color: var(--muted); }
.cookie-bar .actions { margin: 0; flex-wrap: nowrap; }
.cookie-bar .btn { min-height: 40px; padding: 8px 14px; flex: 0 0 auto; white-space: nowrap; justify-content: center; }
body[data-page="anket"] .cookie-bar, .in-chat .cookie-bar { display: none; }

/* Messages on their way, and ones that did not go out. */
.bubble.pending { opacity: 0.72; }
.bubble.failed { opacity: 1; background: color-mix(in srgb, var(--danger) 85%, var(--accent)); }
.bubble .retry { display: block; margin: 8px 0 0 auto; min-height: 44px; padding: 6px 16px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font: 650 14px/1 var(--sans); cursor: pointer; }
.bubble.failed time { opacity: 0.95; font-weight: 600; }
/* Notices never sit on top of the reply box: in a chat they show under the header, and a toast never takes taps. */
.toast { pointer-events: none; }
.toast.with-action { pointer-events: auto; display: flex; align-items: center; gap: 16px; }
.toast-action { background: none; border: 0; padding: 4px 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.skipped summary { cursor: pointer; }
.skipped-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.signed-in.in-chat .toast, .signed-in.in-chat .push-offer, .in-chat .toast { top: calc(84px + env(safe-area-inset-top)); bottom: auto; }
@media (max-width: 560px) {
  /* Signed-in links move to a thumb-reachable tab bar instead of crowding the top island.
     A backdrop-filter on the island would make it the containing block of the fixed bar. */
  .signed-in .island { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* With the links in the tab bar the top bar is only the logo; it scrolls away instead of covering cards. */
  .signed-in .topbar { position: static; }
  .signed-in #nav {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 20;
    gap: 4px;
    padding: 6px;
    border-radius: 999px;
    background: var(--island);
    backdrop-filter: saturate(1.6) blur(18px);
    -webkit-backdrop-filter: saturate(1.6) blur(18px);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  }
  .signed-in #nav a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 8px; font-size: 14px; }
  .signed-in main { padding-bottom: 120px; }
  .signed-in .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .signed-in .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .signed-in[data-page="anket"] #nav, .signed-in[data-page="yeni-sorular"] #nav { display: none; }
  .step-nav > .btn { flex: 1; justify-content: center; }
  .home-hero .actions { width: 100%; }
  .home-hero .actions .btn { flex: 1 1 140px; justify-content: center; white-space: nowrap; }
  .home-final .btn { width: 100%; justify-content: center; }
}
@media (max-width: 400px) {
  .signed-in #nav { gap: 2px; padding: 5px; }
  .signed-in #nav a { padding: 0 4px; font-size: 13px; }
}
@media (min-width: 561px) {
  .signed-in .push-offer { bottom: 24px; }
}
@media (max-width: 560px) {
  .signed-in #nav a { flex-direction: column; gap: 2px; min-height: 52px; font-size: 11.5px; position: relative; }
  .signed-in #nav svg { display: block; width: 22px; height: 22px; }
  .signed-in #nav .badge { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; }
  /* Like a messaging app: the conversation takes the whole screen, without the site bar or tab bar. */
  .in-chat .topbar, .in-chat #nav { display: none !important; }
  .in-chat main { padding: 0; }
  .bubble { max-width: 82%; }
  .req-answer .actions .btn { flex: 1; justify-content: center; }
}
@media (min-width: 900px) {
  .inbox-placeholder p { margin: 0; }
}

/* Couple check */
.couple-check-card, .check-notice { margin: 12px 0; padding: 16px; border-radius: 18px; background: var(--accent-soft); }
.couple-check-card h4 { margin: 0 0 4px; }
.couple-check-card p { margin: 0 0 12px; }
.check-part { margin-top: 28px; }
.check-part h2, .check-part-title { font-size: 20px; margin: 28px 0 6px; }
.check-round { font-size: 15px; color: var(--muted); margin: 32px 0 0; }
.check-score { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 17px; }
.check-score b { font-size: 22px; }
.check-misses, .check-talk { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.check-misses li, .check-talk li { padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.check-talk p { margin: 4px 0 0; color: var(--muted); }
.end-reasons { border: 0; padding: 0; margin: 16px 0 0; }
.end-reasons legend { padding: 0; font-weight: 600; }
.end-reasons .chips { margin-top: 8px; }
.end-topic select { margin-top: 10px; }
.leave-reason { display: grid; gap: 6px; max-width: 30em; }
.exclusions-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.exclusions-form input { flex: 1 1 14em; }
.exclusions { width: 100%; border-collapse: collapse; font-size: 14px; }
.exclusions th, .exclusions td { padding: 6px 8px; text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.exclusions td:not(:first-child), .exclusions th:not(:first-child) { text-align: right; white-space: nowrap; }

/* Match page */

[data-page="eslesmeler"] main { max-width: 1460px; padding-inline: clamp(16px, 5vw, 72px); }
.matches-head { margin-bottom: 4px; }
.matches-head h1 { margin-bottom: 8px; }
.head-links { display: inline-flex; flex-wrap: wrap; gap: 16px; }
.head-links a { color: var(--accent-text); font-weight: 650; text-decoration: none; }
.head-links a:hover { text-decoration: underline; }
.quota { display: inline-flex; max-width: 100%; border-radius: 999px; padding: 12px 22px; }
@media (max-width: 600px) { .quota { display: flex; flex-wrap: wrap; border-radius: 20px; padding: 14px 18px; } }

.empty-row, .next-row { display: grid; gap: 22px; margin-top: 28px; }
@media (min-width: 900px) { .empty-row:not(.single) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.empty-matches {
  display: grid; justify-items: center; align-content: center; gap: 10px; text-align: center;
  padding: clamp(32px, 5vw, 56px) 28px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.empty-matches h2 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; max-width: 16em; margin: 18px 0 0; }
.empty-matches p { margin: 0; color: var(--muted); max-width: 26em; }
.empty-matches .btn { margin-top: 10px; }
.empty-matches .actions { justify-content: center; }
.empty-invite { display: grid; gap: 8px; justify-items: center; margin-top: 8px; }
.empty-invite p { font-weight: 650; color: var(--ink); }
.openings { display: grid; gap: 10px; width: min(100%, 440px); text-align: left; margin-top: 6px; }
.opening {
  display: grid; gap: 4px; padding: 14px 16px; border: 0; border-radius: 18px; text-align: left; cursor: pointer;
  background: var(--accent-soft); color: var(--ink); font: inherit;
}
.opening:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.opening:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.opening-title { font-weight: 750; color: var(--accent-text); }
.opening-detail { color: var(--muted); font-size: 14px; line-height: 1.45; }
.location-card {
  display: grid; gap: 8px; margin-top: 18px; padding: 22px 24px; border-radius: var(--radius);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.location-card h2 { font-size: 22px; letter-spacing: -0.02em; margin: 4px 0 0; }
.location-card p { margin: 0; color: var(--muted); max-width: 46em; }
.location-card .eyebrow, .daily .eyebrow { color: var(--accent-text); font: 650 var(--text-xs)/1.3 var(--sans); }
/* Account: a side menu on wide screens, a hero card, then one titled group per topic. */
.account { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.account-nav { position: sticky; top: 96px; }
.account-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.account-nav a { display: block; padding: 9px 14px; border-radius: 12px; color: var(--muted); font-size: var(--text-sm); font-weight: 600; text-decoration: none; }
.account-nav a:hover, .account-nav a:focus-visible { background: var(--surface); color: var(--ink); }
.account-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 20px; align-items: center; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.account-hero .match-avatar { width: 72px; height: 72px; font-size: var(--text-xl); }
.account-hero h1 { margin: 0 0 2px; font-size: var(--text-xl); letter-spacing: -0.02em; }
.account-hero p { margin: 0 0 10px; }
.account-hero .match-badges { margin: 0; }
.account-hero .match-badges a { color: inherit; }
.account-progress { grid-column: 1 / -1; display: grid; gap: 8px; }
.account-progress p { margin: 0; }
.account-group { margin-top: 28px; scroll-margin-top: 96px; }
.field-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 16px; font-weight: 600; }
.field-row select { min-width: 12em; }
.invite-panel { background: var(--accent-soft); box-shadow: none; }
.danger-zone { display: grid; gap: 16px; }
.danger-zone .actions { margin: 0; }
@media (max-width: 860px) {
  .account { grid-template-columns: minmax(0, 1fr); }
  .account-nav { display: none; }
}
.account-group > h2 { font-size: var(--text-sm); font-weight: 650; color: var(--muted); margin: 0 0 8px; }
.profile-head { display: flex; gap: 16px; align-items: center; margin: 8px 0 4px; }
.profile-head .match-avatar { width: 64px; height: 64px; font-size: var(--text-xl); }
.profile-head h1 { margin: 0; font-size: var(--text-xl); }
.account-row {
  display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 52px; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.account-row .chev { color: var(--muted); font-size: var(--text-lg); }
.nudge { margin: 18px 0 0; color: var(--muted); font-size: var(--text-sm); }
.nudge a { color: var(--accent-text); font-weight: 650; }
.openers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.opener {
  border: 0; border-radius: 14px; padding: 10px 12px; background: var(--surface-2); color: var(--ink);
  font: 600 var(--text-sm)/1.35 var(--sans); text-align: left; cursor: pointer; max-width: 100%;
}
.opener-card { margin: 0 10px 8px; padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.composer-form .openers { margin: 0 10px 8px; }
.opener-card p { margin: 6px 0 0; font-size: var(--text-lg); font-weight: 650; }
.ring-svg { width: 72px; height: 72px; }
.pack-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.chip-btn {
  padding: 10px 16px; min-height: 44px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--surface-2); color: var(--ink); font: 500 15px/1.3 var(--sans);
}
.chip-btn.on { background: var(--invert); color: var(--invert-ink); font-weight: 650; }
.chip-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mosaic { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; image-rendering: pixelated; }
.revealed-photo { width: min(100%, 280px); border-radius: 18px; }
.review-photo { width: min(100%, 220px); border-radius: 16px; margin: 8px 0; }
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); }
.revealed { display: grid; gap: 10px; }
.waiting-art { width: 132px; height: 132px; }
.waiting-art .halo { fill: var(--accent-soft); }
.waiting-art .orbit { fill: none; stroke: var(--accent); stroke-opacity: 0.4; stroke-width: 1.5; stroke-dasharray: 4 6; }
.waiting-art .one { fill: var(--accent); }
.waiting-art .other { fill: none; stroke: var(--accent); stroke-width: 3; }
.waiting-art .spark { fill: var(--accent); }
.waiting-art .spark.soft { opacity: 0.45; }

/* Deep enough at the top left, where the text sits, for white text (5:1); it lightens toward the button. */
.next-step {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, #b93a20 0%, #d4502f 45%, #ec8257 100%);
}
.next-step::before {
  content: ""; position: absolute; z-index: -1; width: 62%; aspect-ratio: 1; right: -12%; top: -34%;
  border-radius: 50%; background: rgba(255, 255, 255, 0.14);
}
.next-step .eyebrow, .you-card .eyebrow { font: 700 13px/1.3 var(--sans); letter-spacing: 0.14em; }
.next-step .eyebrow { color: #fff; opacity: 0.85; }
.next-step h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.03em; margin: 10px 0 16px; max-width: 16em; }
.next-step p { margin: 0; max-width: 34em; font-size: 17px; opacity: 0.95; }
.next-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.next-chips li { padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); font-weight: 650; font-size: 15px; }
.next-dashes { display: flex; gap: 8px; margin: 26px 0 0; }
.next-dashes i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.4); }
.next-action {
  display: inline-flex; align-items: center; min-height: 48px; margin-top: 30px; padding: 0 28px; border-radius: 999px;
  background: #fff; color: #9e2f17; font-weight: 750; font-size: 17px; text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(80, 20, 5, 0.6);
}
.next-action:hover { transform: translateY(-1px); }
.next-action:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .next-action:hover { transform: none; } }

.about-you { margin-top: 56px; }
.section-label { font: 600 17px/1 var(--sans); letter-spacing: 0.16em; color: var(--muted); margin: 0 0 18px; text-transform: none; }
.about-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.you-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: clamp(26px, 3.4vw, 44px); border-radius: var(--radius); }
.you-card .eyebrow { margin: 26px 0 8px; }
.you-card h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; margin: 0 0 14px; }
.you-card p { margin: 0 0 12px; font-size: 17px; }
.you-card .small { font-size: 14px; }
.you-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; }
.you-icon svg { width: 30px; height: 30px; }
.share-link {
  margin-top: auto; padding: 18px 0 0; border: 0; background: none; font: inherit; font-weight: 650; font-size: 17px;
  color: var(--accent-text); cursor: pointer;
}
.share-link:hover { text-decoration: underline; }
.share-link:disabled { opacity: 0.5; }
.persona-card { color: #f4f3ef; background: radial-gradient(120% 90% at 100% 0%, #4a2a22 0%, transparent 60%), #161514; }
.persona-card .you-icon { background: rgba(255, 255, 255, 0.08); color: #ff8a6b; }
.persona-card .eyebrow { color: #f4f3ef; opacity: 0.7; }
.persona-card p { opacity: 0.85; }
.persona-card .share-link { color: #ff8a6b; }
.attachment-card {
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 5%, var(--surface)) 0%, var(--surface) 45%, color-mix(in srgb, #8a6cf0 8%, var(--surface)) 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.attachment-card .you-icon { background: var(--surface); color: var(--accent); box-shadow: 0 6px 18px -10px rgba(17, 17, 20, 0.35); }
.tips-card { margin-top: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tips-card summary {
  display: flex; align-items: center; gap: 4px; min-height: 64px; padding: 0 28px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 18px;
}
.tips-card summary::-webkit-details-marker { display: none; }
.tips-card summary::after {
  content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-3px) rotate(45deg); transition: transform 0.2s;
}
.tips-card[open] summary::after { transform: translateY(2px) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .tips-card summary::after { transition: none; } }
.tips-card ul { margin: 0; padding: 0 28px 26px; list-style: none; display: grid; gap: 10px; }
.tips-card li { padding-left: 26px; position: relative; }
.tips-card li::before { content: ""; position: absolute; left: 6px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Match cards */
.match-list { display: grid; gap: 22px; margin-top: 28px; }
.match-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); align-items: stretch; }
.match { margin-top: 0; padding: clamp(22px, 2.6vw, 32px); box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -36px rgba(17, 17, 20, 0.35); }
.match-who { display: flex; gap: 14px; align-items: center; min-width: 0; }
.match-avatar {
  flex-shrink: 0; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  font: 700 28px/1 ui-serif, "New York", Georgia, serif; color: #fff; background: linear-gradient(135deg, #b93a20, #ec8257);
}
/* The card, as designed for both the app and the site: a head with the shared-topics rings, the name and the
   score; then the rest in one column, with the buttons always at the bottom so cards side by side line up. */
.match { display: flex; flex-direction: column; gap: 18px; }
.match-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.match h3 { font: 700 32px/1.1 ui-serif, "New York", Georgia, serif; letter-spacing: -0.01em; overflow-wrap: break-word; min-width: 0; }
.match .meta { margin: 6px 0 0; font-size: 16px; color: var(--muted); }
.fit-rings { position: relative; flex-shrink: 0; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--surface-2); }
.fit-rings svg { width: 52px; height: 38px; }
.fit-rings circle { stroke-width: 2.6; }
.fit-rings .ring-a { fill: color-mix(in srgb, var(--accent) 16%, transparent); stroke: var(--accent); }
.fit-rings .ring-b { fill: color-mix(in srgb, var(--ok) 12%, transparent); stroke: var(--ok); }
.fit-rings b { position: absolute; padding: 0 5px; border-radius: 999px; background: var(--surface); font: 750 13px/1.4 var(--sans); font-variant-numeric: tabular-nums; }
.match .ring span { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.match .band { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 700; white-space: nowrap; }
.match .topic.differ { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent-text); cursor: pointer; }
.match .card-sections { flex-direction: column; align-items: flex-start; }
/* Passing is a round "×" beside the main action, and the whole sheet is a link under them, as in the app. */
.match-actions { margin-top: auto; display: grid; gap: 12px; justify-items: center; }
.match-decide { display: flex; gap: 12px; width: 100%; }
.skip-btn { flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); cursor: pointer; }
.skip-btn svg { width: 22px; height: 22px; }
.skip-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.skip-btn:not(:disabled):hover { background: color-mix(in srgb, var(--ink) 12%, var(--surface-2)); }
.request-btn { flex: 1; justify-content: center; min-height: 52px; padding-inline: 16px; white-space: nowrap; }
.request-btn svg { width: 20px; height: 20px; }
.match-actions .btn.link { font-weight: 650; color: var(--accent-text); text-decoration: none; }
.match-badges { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 0; padding: 0; list-style: none; }
.match-badges li { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; background: var(--accent-soft); color: var(--accent-text); }
.match-badges li.good { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.match .actions .btn { min-height: 48px; }

/* The match card carries a short version of the detail sheet. */
.card-fit { grid-column: 1 / -1; display: grid; gap: 10px; }
.card-sections { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-sections-label { font-size: 13px; color: var(--muted); }
.card-sections ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.card-sections li { display: flex; gap: 8px; align-items: baseline; padding: 6px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 5%, transparent); font-size: 13px; color: var(--muted); }
.card-sections b { font: 650 12px var(--mono); color: var(--ink); }

.quiet-close { margin: 0 12px 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 8px; }
.quiet-close p { margin: 0; font-size: 0.92rem; }
.quiet-close .actions { margin: 0; }

.account-data dl { margin: 0; display: grid; gap: 10px; }
.account-data dt { font-weight: 600; }
.account-data dd { margin: 0; }

.stat-groups { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.stat-group { flex: 1 1 auto; }
.stat-group h3 { margin: 0 0 8px; }
/* A group's numbers stay on one row, so groups wrap whole instead of leaving one number alone. */
.stat-group .stats { margin: 0; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(104px, 1fr); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.review-card { display: grid; align-content: start; border-radius: 20px; background: var(--surface-2); overflow: hidden; }
.review-card .review-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: var(--invert); margin: 0; border-radius: 0; }
.review-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.review-body .review-gesture { margin: 0 0 6px; padding: 10px 12px; }
.review-body h4 { margin: 0; font-size: 16px; }
.review-body p { margin: 0; }
.review-body .actions { margin-top: 8px; }
.ending-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px 28px; }
.ending-block h4 { margin: 0 0 4px; font-size: 16px; }
.ending-block > p { margin: 0 0 10px; }
.ending-block .funnel li { grid-template-columns: minmax(0, 1fr) 30% 5.5em; }
.ending-block .funnel li > b { text-align: right; }
.ending-block .funnel li > span { overflow-wrap: anywhere; }
.feedback-matrix { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.feedback-matrix th, .feedback-matrix td { padding: 10px 12px; text-align: left; border-top: 1px solid var(--line); }
.feedback-matrix thead th { border-top: 0; font-size: 13px; color: var(--muted); font-weight: 600; }

/* The page keeps its width whether or not it is long enough to scroll. */
html { scrollbar-gutter: stable; }

.loader { display: grid; place-items: center; min-height: 40vh; }
.loader-mark { width: 72px; height: 45px; overflow: visible; }
.loader-mark path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100 130; animation: loader-draw 1.6s ease-in-out infinite; }
.loader-mark .wave-a { stroke: var(--ink); }
.loader-mark .wave-b { stroke: var(--accent); animation-delay: -0.8s; }
@keyframes loader-draw {
  /* Past either end by more than the round cap (about 4 units here), so no dot is left while a wave is hidden. */
  0% { stroke-dashoffset: 112; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -112; }
}
@media (prefers-reduced-motion: reduce) {
  .loader-mark path { stroke-dasharray: none; animation: loader-fade 1.6s ease-in-out infinite alternate; }
  .loader-mark .wave-b { animation-delay: 0s; }
  @keyframes loader-fade { from { opacity: 1; } to { opacity: 0.35; } }
}

/* The score as a short sum: agreement, what was taken off, what was added, the result. */
.score-recipe { grid-column: 1 / -1; display: grid; gap: 8px; }
/* The score as a sum, in one panel: agreement − what was taken off + what was added = the result. */
.score-recipe ul { display: flex; align-items: center; justify-content: space-evenly; gap: 4px; margin: 0; padding: 14px 16px; border-radius: 20px; background: var(--surface-2); list-style: none; }
.recipe-part { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; text-align: center; }
.recipe-part b { font: 750 26px/1.1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.recipe-part span { font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--muted); }
.recipe-part.minus b { color: var(--accent-text); }
.recipe-part.plus b { color: var(--ok); }
.recipe-part.total b { font-size: 34px; color: var(--accent-text); }
.recipe-sign { color: var(--muted); font: 600 22px/1 var(--sans); }
.recipe-notes { padding: 0 8px; }
.recipe-notes { display: grid; gap: 2px; }
.recipe-notes p { margin: 0; font-size: 13px; color: var(--muted); }
.recipe-notes b { color: var(--ink); font-weight: 650; }

/* Account status: three numbers that lead somewhere, under the hero. */
.account-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.account-tile {
  display: grid; gap: 2px; padding: 16px 18px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink); text-decoration: none; min-height: 44px;
}
.account-tile b { font-size: var(--text-xl); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.account-tile span { color: var(--muted); font-size: var(--text-sm); line-height: 1.3; }
.account-tile:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.account-tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 860px) {
  /* The side menu becomes a row of jumps that scrolls sideways, so a long page is still one tap from any part. */
  .account-nav { display: block; position: static; margin: 0 -4px; overflow-x: auto; scrollbar-width: none; }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav ul { display: flex; gap: 6px; padding: 0 4px 4px; }
  .account-nav a { white-space: nowrap; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-height: 44px; display: flex; align-items: center; }
}
@media (max-width: 420px) {
  .account-tile { padding: 12px; }
  .account-tile b { font-size: var(--text-lg); }
  .account-tile span { font-size: var(--text-xs); }
}

/* Why the list is the size it is: groups of reasons, each with a count and a bar against the whole pool. */
.reach h3 { margin-top: 0; }
.reach .openings { margin: 12px 0 4px; }
.reach-why { margin-top: 12px; border-top: 1px solid var(--line); text-align: left; width: 100%; }
.reach-why summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.reach-groups { display: grid; gap: 18px; margin: 4px 0 12px; }
.reach-group h4 { margin: 0 0 2px; font-size: var(--text-md); }
.reach-group p { margin: 0 0 8px; max-width: 52em; }
.reach-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reach-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; font-size: var(--text-sm); }
.reach-list b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.reach-list i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--muted); opacity: 0.45; max-width: 100%; }
.reach-group.mine .reach-list i { background: var(--accent); opacity: 1; }
.empty-matches .reach-why { max-width: 520px; }
.empty-matches .reach-why p { max-width: none; }

/* The women's page: short reasons side by side where there is room. */
.reasons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin: 18px 0; }
.reasons-grid .panel { margin-top: 0; }

/* On a phone: smaller rings, name and sum, so a name breaks only between words and the sum fits one line. */
@media (max-width: 520px) {
  .match-who { gap: 12px; }
  .fit-rings { width: 56px; height: 56px; }
  .fit-rings svg { width: 44px; height: 32px; }
  .recipe-part b { font-size: 20px; }
  .recipe-part.total b { font-size: 25px; }
  .recipe-part span { font-size: 11px; }
  .recipe-sign { font-size: 17px; }
  .score-recipe ul { gap: 2px; padding: 12px 8px; }
  .match h3 { font-size: 24px; overflow-wrap: break-word; }
  .match .meta { font-size: 14px; }
}

/* People who fit but rest: the same card, quieter, with a note where the buttons were. */
.resting-list { margin-top: 28px; }
.resting-list h2 { font-size: var(--text-lg); letter-spacing: -0.02em; margin: 0 0 4px; }
.resting-list > p { margin: 0 0 12px; max-width: 46em; }
.match.resting { background: var(--surface-2); box-shadow: none; }
.match.resting .match-avatar, .match.resting .mosaic, .match.resting .score { filter: grayscale(1); opacity: 0.75; }
.resting-note { margin: 0; color: var(--muted); font-size: var(--text-sm); }

/* The cookie question sits at the foot of the screen, above the tab bar where there is one. */
.cookie-bar { box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
@media (max-width: 860px) {
  .signed-in .cookie-bar { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* Landing hero: the slogan and, beside it, one question from the test to answer on the spot. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-grid .hero-title { font-size: clamp(44px, 6.6vw, 96px); margin: 14px 0 clamp(18px, 2.4vw, 28px); }
.hero-copy .lead { margin: 0 0 24px; max-width: 30em; }
.hero-copy .actions { margin: 0; }
.taster { display: grid; gap: 14px; padding: clamp(22px, 2.6vw, 30px); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.taster .mono-label { margin: 0; color: var(--accent-text); }
.taster-q { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
.taster-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.taster-option {
  width: 100%; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--surface-2); color: var(--ink);
  font: 600 var(--text-md)/1.3 var(--sans); text-align: left; cursor: pointer; transition: background 160ms ease, transform 160ms ease;
}
.taster-option:hover { background: var(--accent-soft); }
.taster-option:active { transform: scale(0.98); }
.taster-option:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.taster-result { position: relative; display: flex; justify-content: space-between; gap: 12px; min-height: 48px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--surface-2); overflow: hidden; font-size: var(--text-md); line-height: 1.3; }
.taster-result > span, .taster-result > b { position: relative; z-index: 1; }
.taster-result b { font-variant-numeric: tabular-nums; }
.taster-result i { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--ink) 13%, transparent); animation: taster-fill 520ms cubic-bezier(.2, .8, .2, 1); }
.taster-result.mine { box-shadow: inset 0 0 0 1.5px var(--accent); font-weight: 650; }
.taster-result.mine i { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.taster-note { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.taster-note b { color: var(--ink); }
.taster .actions { margin: 0; }
@keyframes taster-fill { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
@media (prefers-reduced-motion: reduce) {
  .taster-result i { animation: none; }
  .taster-option { transition: none; }
}

/* A few totals under the hero; each appears only once it is large enough to mean something. */
.home-numbers { list-style: none; margin: clamp(20px, 3vw, 32px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px clamp(24px, 5vw, 64px); }
.home-numbers li { display: grid; gap: 2px; }
.home-numbers b { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.home-numbers span { color: var(--muted); font-size: var(--text-sm); }

/* The three steps beside what they end in: an example of the card a member sees. */
.home-outcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.steps-col { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps-col li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: start; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.steps-col .step-no { font-size: clamp(36px, 4vw, 52px); margin: 0; grid-row: auto; }
.steps-col h3 { margin: 0 0 6px; }
.steps-col p { margin: 0; color: var(--muted); }
.sample-match { position: relative; transform: rotate(-1.2deg); }
.sample-match .sample-tag { grid-column: 1 / -1; margin: 0; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .sample-match { transition: transform 320ms cubic-bezier(.3, .7, .4, 1.3); }
  .sample-match:hover { transform: rotate(0deg); }
}

/* Every persona the test can end in, side by side; the row scrolls sideways on a phone. */
.persona-row { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.persona-row li { padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.persona-row li:nth-child(3n + 1) { background: var(--accent-soft); box-shadow: none; }
.persona-row h3 { margin: 0 0 8px; font-size: var(--text-lg); letter-spacing: -0.02em; }
.persona-row p { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.45; }
.home-safety .actions { margin-top: 18px; }

@media (max-width: 900px) {
  .hero-grid, .home-outcome { grid-template-columns: minmax(0, 1fr); }
  .hero-grid .hero-title { font-size: clamp(44px, 12vw, 72px); }
  .sample-match { transform: none; }
  .persona-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .persona-row::-webkit-scrollbar { display: none; }
  .persona-row li { flex: 0 0 78%; scroll-snap-align: start; }
}
@media (max-width: 520px) {
  /* On a phone the question takes a line of its own, with the two answers under it. */
  .cookie-bar { flex-wrap: wrap; padding: 12px 14px; }
  .cookie-bar p { flex: 1 0 100%; }
  .cookie-bar .actions { width: 100%; }
  .cookie-bar .btn { flex: 1 1 0; }
}

/* The line under a "siz" card that says what it is and links to the page that explains it. */
.you-card p.you-note { font-size: var(--text-sm); line-height: 1.45; }
.you-card .you-note a { font-weight: 650; }
.persona-card .you-note { opacity: 0.8; }
.persona-card .you-note a { color: #ff8a6b; }

/* Notifications are off: a standing card on the pages where news arrives, until they are on or it is put away. */
.push-nudge-slot:empty { display: none; }
.push-nudge {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  margin-bottom: 20px; padding: 20px 24px; border-radius: var(--radius); background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent);
}
.push-nudge > div:first-child { flex: 1 1 320px; }
.push-nudge h2 { font-size: var(--text-lg); letter-spacing: -0.02em; margin: 0 0 4px; }
.push-nudge p { margin: 0; color: var(--muted); max-width: 46em; }
.push-nudge .actions { margin: 0; }

/* Toasts sit above the full-screen chat on phones (z-index 30); they were drawn behind it and went unseen. */
.toast { z-index: 40; }
.composer-error { margin: 0 12px 6px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-size: var(--text-sm); font-weight: 600; }
.bubble p a { color: inherit; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

/* Finding words in a conversation: a bar under the header, matches outlined, the current one filled in. */
.chat-search { display: flex; align-items: center; gap: 2px; padding: 6px 8px 6px 12px; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.chat-search[hidden] { display: none; }
.chat-search input { flex: 1; min-width: 0; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 16px; }
.chat-search-count { min-width: 3.5em; text-align: center; color: var(--muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.bubble.search-hit { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.bubble.search-current { box-shadow: 0 0 0 3px var(--accent); }

/* Admin: a page head with segmented tabs, then rows of number cards and white panels, as in the design. */
[data-page="yonetim"] main { max-width: 1460px; padding-inline: clamp(16px, 3vw, 44px); }
.admin { --warn: #b7791f; --warn-soft: rgba(217, 138, 28, 0.16); --bad-soft: color-mix(in srgb, var(--danger) 14%, transparent); --good-soft: color-mix(in srgb, var(--ok) 14%, transparent); }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.admin-head h1 { margin: 0; font-size: clamp(32px, 3.4vw, 44px); letter-spacing: -0.03em; }
.admin-sub { margin: 4px 0 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.45; }
.admin-segments { display: flex; flex-wrap: wrap; gap: 2px; padding: 5px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.admin-segment { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 13px; background: none; color: var(--ink); font: 600 var(--text-md)/1 var(--sans); cursor: pointer; }
.admin-segment:hover { background: var(--surface-2); }
.admin-segment[aria-selected="true"] { background: var(--invert); color: var(--invert-ink); }
.seg-count { padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--muted); }
.seg-count.hot { background: var(--accent); color: #fff; }
.admin-body { display: grid; gap: 22px; }
.kpi-row { display: grid; gap: 16px; }
.kpi-row.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi-card, .admin-card { padding: 22px 24px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.kpi-label { margin: 0 0 10px; color: var(--muted); font-size: var(--text-sm); font-weight: 500; }
.kpi-value { display: block; font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-note { margin: 10px 0 0; font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.kpi-note.good, .admin td.good { color: var(--ok); }
.kpi-note.bad, .admin td.bad, .admin b.bad { color: var(--danger); }
.kpi-note.warn { color: var(--warn); }
.admin-grid { display: grid; gap: 22px; }
.admin-grid.wide-left { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.admin-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-grid.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-card h3 { margin: 0; font-size: var(--text-lg); letter-spacing: -0.02em; }
.admin-card > .admin-sub:first-of-type { margin-bottom: 18px; }
.big-figure { margin: 6px 0 0; font-size: clamp(40px, 4vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.big-figure span { font-size: var(--text-lg); font-weight: 650; letter-spacing: -0.02em; color: var(--muted); }
.bar-chart .bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; }
.bar-chart .bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--ink); opacity: 0.82; }
.bar-chart .bars i.hot { background: var(--accent); opacity: 1; }
.bar-labels { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: var(--text-sm); }
.balance-line { display: flex; height: 48px; margin: 22px 0 16px; border-radius: 14px; overflow: hidden; font-weight: 700; font-size: var(--text-sm); }
.balance-line span { display: flex; align-items: center; min-width: 0; padding: 0 16px; white-space: nowrap; overflow: hidden; }
.balance-line .women { background: var(--accent); color: #fff; }
.balance-line .men { background: var(--ink); color: var(--bg); }
.balance-line .bi { background: color-mix(in srgb, var(--muted) 45%, var(--surface-2)); color: var(--ink); padding: 0 10px; }
.balance-line .ok { background: var(--ok); color: #fff; }
.balance-line.calls { margin-top: 26px; }
.admin-rows { list-style: none; margin: 8px 0 0; padding: 0; }
.admin-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: var(--text-md); }
.admin-rows li:first-child { border-top: 0; }
.admin-rows li small, .admin-rows b small { color: var(--muted); font-weight: 500; }
.row-link { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.chip-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.chip-tag.bad { background: var(--bad-soft); color: var(--danger); }
.chip-tag.warn { background: var(--warn-soft); color: var(--warn); }
.chip-tag.good { background: var(--good-soft); color: var(--ok); }
.meter-line { height: 10px; margin-top: 20px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter-line i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.meter-line.violet i { background: #7c5ce6; }
.meter-line.hot i { background: var(--accent); }
.mini-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 18px; }
.mini-stats div { display: grid; gap: 2px; }
.mini-stats b { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mini-stats span { color: var(--muted); font-size: var(--text-sm); }
.share-row { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 22px; }
.share-row div { display: grid; }
.share-row b { font-size: 28px; letter-spacing: -0.03em; }
.share-row span { color: var(--muted); font-size: var(--text-sm); }
.admin-search input { width: 100%; min-height: 46px; padding: 10px 16px; border: 0; border-radius: 14px; background: var(--surface-2); color: var(--ink); font: inherit; }
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.admin-table th, .admin-table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table thead th { color: var(--muted); font-weight: 600; font-size: var(--text-sm); }
.admin-table tbody th { font-weight: 700; }
.admin-table td small { color: var(--muted); }
.funnel-rows { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.funnel-rows li { display: grid; grid-template-columns: minmax(8em, 13em) minmax(0, 1fr) 7.5em 3.5em; align-items: center; gap: 14px; }
.funnel-rows .track { height: 14px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.funnel-rows .track i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.funnel-rows span { font-weight: 650; font-variant-numeric: tabular-nums; }
.funnel-rows em { font-style: normal; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.funnel-rows li.worst .track i { background: var(--accent); }
.funnel-rows li.worst em { color: var(--danger); font-weight: 700; }
.chip-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.chip-line .admin-sub { margin: 0; }
.consent-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.consent-strip .mini-stats { margin: 0; }
/* Moderation: the list of people on the left, the one in front on the right. */
.mod-grid { display: grid; grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr); gap: 22px; align-items: start; }
.mod-list { padding: 18px 0 8px; }
.mod-list > .admin-search, .mod-list > .chip-line { margin: 0 18px; }
.mod-list > .chip-line { margin-top: 12px; }
.filter-chip { min-height: 36px; padding: 6px 14px; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 600 var(--text-sm)/1 var(--sans); cursor: pointer; }
.filter-chip.on { background: var(--invert); color: var(--invert-ink); box-shadow: none; }
.mod-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
.mod-bar .btn.link { margin-left: auto; padding: 0; min-height: 0; }
.mod-bar .admin-sub { margin: 0; }
.mod-rows { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow-y: auto; }
.mod-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.mod-row.current { background: var(--accent-soft); border-left-color: var(--accent); }
.mod-row input { width: 20px; height: 20px; accent-color: var(--ink); flex-shrink: 0; }
.mod-pick, .mod-more { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mod-more { padding: 12px 18px 12px 50px; }
.mod-who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mod-who b span { color: var(--muted); font-weight: 500; }
.mod-who small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.letter-avatar { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-weight: 700; }
.letter-avatar.large { width: 76px; height: 76px; font-size: 30px; }
.letter-avatar.more { background: var(--muted); }
.mod-detail { padding: 28px 30px; }
.mod-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.mod-head > div:nth-child(2) { flex: 1; min-width: 200px; }
.mod-head h2 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; }
.mod-head h2 span { color: var(--muted); font-weight: 500; }
.mod-head .actions { margin: 0; flex-wrap: wrap; }
.mod-head .btn { min-height: 44px; padding: 10px 16px; font-size: var(--text-sm); }
.btn.warn { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--warn) 40%, transparent); }
.btn.danger:not([disabled]) { background: var(--danger); color: #fff; box-shadow: none; }
.btn kbd { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.85); color: var(--ink); font: 700 11px/1.4 var(--mono); box-shadow: inset 0 0 0 1px var(--line); }
.mod-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.mod-tiles div { display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.mod-tiles span, .mod-section { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.mod-tiles b { font-size: var(--text-lg); }
.mod-section { margin: 26px 0 10px; }
.mod-reports { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mod-reports li { padding: 16px 20px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.mod-reports li.resolved { opacity: 0.55; }
.mod-report-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mod-report-head .admin-sub { margin: 0 0 0 auto; }
.mod-reports blockquote { margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid var(--line); border-radius: 4px 10px 10px 4px; background: var(--surface-2); }
.mod-reports p { margin: 8px 0 0; }
.mod-warning { margin: 18px 0 0; padding: 16px 20px; border-radius: 16px; background: var(--invert); color: var(--invert-ink); }
.mod-warning b { color: var(--accent); }
.mod-detail textarea { width: 100%; min-height: 96px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--surface-2); color: var(--ink); font: inherit; resize: vertical; }
.mod-foot { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 0; color: var(--muted); font-size: var(--text-sm); }
.mod-foot kbd { margin-right: 4px; padding: 1px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); font: 600 12px/1.5 var(--mono); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: var(--text-sm); }
@media (max-width: 1180px) {
  .kpi-row.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mod-grid, .admin-grid.wide-left { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .kpi-row.five, .kpi-row.four, .admin-grid.three, .admin-grid.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid.three > :last-child:nth-child(odd), .admin-grid.even > * { grid-column: 1 / -1; }
  .mod-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel-rows li { grid-template-columns: minmax(0, 1fr) 6.5em 3em; }
  .funnel-rows .track { grid-column: 1 / -1; grid-row: 2; }
  .admin-segments { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
  .admin-segment { white-space: nowrap; }
}
.warning-notice { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--danger); }

/* Ayna and the "Cevap verir" badge */
.mirror-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); line-height: 1.35; }
.mirror-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.mirror-line .small { flex-basis: 100%; }
.mirror-preview { margin-top: 14px; }
.mirror-self { margin-top: 18px; }
.mirror-self > summary { cursor: pointer; font-weight: 700; }
.mirror-q { margin: 18px 0 0; padding: 0; border: 0; }
.mirror-q legend { padding: 0; font-weight: 650; }
.mirror-q .chips { margin-top: 8px; }
.mirror-results { display: grid; gap: 16px; margin-top: 16px; }
.mirror-result-q { margin: 0 0 6px; font-weight: 650; }
.mirror-result ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mirror-result li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); overflow: hidden; font-size: var(--text-sm); }
.mirror-result li.mine { box-shadow: inset 0 0 0 2px var(--ink); }
.mirror-bar { position: absolute; inset: 0 auto 0 0; width: var(--share); background: var(--accent-soft); }
.mirror-option, .mirror-count { position: relative; }
.ayna-page { max-width: 640px; margin: 24px auto; }
.ayna-cta { margin-top: 28px; padding: 20px; border-radius: 20px; background: var(--surface-2); }
.ayna-cta h2 { font-size: var(--text-lg); margin: 0 0 8px; }

/* Letters: an envelope in the conversation, opened in place */
.bubble.letter-bubble { padding: 0; background: var(--surface); color: var(--ink); width: min(78%, 34em); }
.bubble.letter-bubble.mine { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.letter > summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.letter > summary::-webkit-details-marker { display: none; }
.letter > summary svg { flex: none; width: 28px; height: 28px; color: var(--accent-text); }
.letter-label { display: grid; gap: 2px; }
.letter-label .small { color: var(--muted); }
.letter.sealed > summary { background: var(--accent-soft); border-radius: 18px; }
.letter-body { padding: 4px 20px 18px; font-family: ui-serif, "New York", Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.6; }
.letter-body p { display: block; margin: 0 0 12px; white-space: pre-wrap; }
.bubble.letter-bubble time { position: absolute; right: 14px; bottom: 8px; float: none; margin: 0; }
.letter-sheet { width: min(640px, 100vw - 32px); }
.letter-sheet .chips { margin-top: 8px; }
.letter-area { width: 100%; margin-top: 14px; padding: 14px; border: 1px solid var(--field-edge); border-radius: 16px; background: var(--surface); color: var(--ink); font: 17px/1.6 ui-serif, "New York", Georgia, serif; resize: vertical; }
.letter-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.letter-sheet form > header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin: 0 -20px; padding: 12px 12px 8px 20px; background: var(--bg); }
.letter-sheet .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.letter-sheet .chip-btn { flex: none; white-space: nowrap; }

/* Şişedeki mektup: a sea, a bottle, and the journeys between them */
.sea-entry { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px 18px; border-radius: 22px; background: linear-gradient(120deg, #e4f1ef, #f6efe1); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.sea-entry > span:last-child { display: grid; gap: 2px; }
.sea-entry-bottle svg { width: 22px; height: 52px; transform: rotate(-18deg); }
.sea-scene { position: relative; height: 220px; margin: 0 0 18px; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, #f7d9b5 0%, #f3e8d8 38%, #9ccfd0 39%, #3f8f9a 100%); }
.sea-sun { position: absolute; left: 50%; top: 34px; width: 74px; height: 74px; margin-left: -37px; border-radius: 50%; background: radial-gradient(circle, #ffcf8a, #ff9b6a); opacity: .9; }
.wave { position: absolute; left: 0; width: 200%; height: 90px; background-repeat: repeat-x; background-size: 50% 100%; animation: wave-roll 9s linear infinite; }
.wave-back { bottom: 70px; opacity: .55; animation-duration: 14s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 90' preserveAspectRatio='none'%3E%3Cpath d='M0 40 Q50 20 100 40 T200 40 T300 40 T400 40 V90 H0z' fill='%2363aeb3'/%3E%3C/svg%3E"); }
.wave-front { bottom: -10px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 90' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q50 10 100 30 T200 30 T300 30 T400 30 V90 H0z' fill='%23317c88'/%3E%3C/svg%3E"); }
@keyframes wave-roll { to { transform: translateX(-50%); } }
.sea-bottle { position: absolute; left: 50%; bottom: 46px; width: 34px; height: 82px; margin-left: -17px; opacity: 0; transform-origin: 50% 80%; }
.sea-bottle svg { width: 100%; height: 100%; }
.sea-bottle.ashore { opacity: 1; animation: bottle-bob 3.2s ease-in-out infinite; }
.sea-bottle.throwing { animation: bottle-throw 2.4s cubic-bezier(.3, .6, .4, 1) forwards; }
.sea-bottle.arriving { animation: bottle-arrive 2.6s cubic-bezier(.2, .7, .3, 1) forwards; }
.sea-bottle.drifting { animation: bottle-drift 1.6s ease-in forwards; }
@keyframes bottle-bob { 0%, 100% { transform: translateY(0) rotate(-10deg); } 50% { transform: translateY(-8px) rotate(8deg); } }
@keyframes bottle-throw {
  0% { opacity: 1; transform: translate(-120px, 20px) rotate(-30deg) scale(1.1); }
  35% { opacity: 1; transform: translate(-20px, -110px) rotate(200deg) scale(.9); }
  55% { opacity: 1; transform: translate(40px, -30px) rotate(330deg) scale(.6); }
  100% { opacity: 0; transform: translate(70px, -78px) rotate(370deg) scale(.15); }
}
@keyframes bottle-arrive {
  0% { opacity: 0; transform: translate(60px, -80px) rotate(10deg) scale(.15); }
  20% { opacity: 1; }
  70% { transform: translate(-8px, -6px) rotate(-14deg) scale(.95); }
  100% { opacity: 1; transform: translate(0, 0) rotate(-10deg) scale(1); }
}
@keyframes bottle-drift { 0% { opacity: 1; transform: rotate(-10deg); } 100% { opacity: 0; transform: translate(80px, -70px) rotate(30deg) scale(.2); } }
.sea-panel { margin-bottom: 18px; }
.sea-panel h2 { font-size: var(--text-lg); margin: 4px 0 8px; }
.sea-letter { margin: 10px 0 14px; padding: 18px 20px; border-radius: 16px; background: #f6edd7; color: #2b2316; box-shadow: inset 0 0 0 1px #e2d3ad; animation: letter-unroll .7s ease-out both; transform-origin: top; }
.sea-letter .muted { color: #6b5a3c; }
@keyframes letter-unroll { from { transform: scaleY(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.sea-letter-text { margin: 0 0 8px; font: 18px/1.6 ui-serif, "New York", Georgia, serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.sea-letter-text.mine { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.sea-form { margin-top: 8px; }
.sea-prompts { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.sea-prompts .chip-btn { flex: none; white-space: nowrap; }
.sea-report { margin-top: 12px; color: var(--muted); }
.sea-report summary { cursor: pointer; font-size: var(--text-sm); }
.sea-replies { display: grid; gap: 16px; margin: 8px 0 0; padding: 0; list-style: none; }
.sea-replies li { padding: 16px; border-radius: 16px; background: var(--surface-2); }
@media (prefers-color-scheme: dark) {
  .sea-entry { background: linear-gradient(120deg, #17302f, #2b2519); }
  .sea-scene { background: linear-gradient(180deg, #2a2340 0%, #4b3a4f 38%, #1f4f57 39%, #0f2f36 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .wave, .sea-bottle.ashore, .sea-letter { animation: none; }
  .sea-bottle.throwing, .sea-bottle.drifting { animation: none; opacity: 0; }
  .sea-bottle.arriving { animation: none; opacity: 1; }
}
.chat-bottle { max-width: 34em; margin: 4px auto 14px; animation: none; }
.admin-bottles li { display: grid; gap: 8px; align-items: start; }
.admin-bottle .sea-letter-text { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 16px; }
.once-frame { position: relative; overflow: hidden; border-radius: 12px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.once-frame canvas { display: block; }
.once-mark { position: absolute; inset: -40%; display: grid; align-content: space-around; transform: rotate(-24deg); pointer-events: none; }
.once-mark span { color: rgba(255, 255, 255, 0.22); font-size: 13px; font-weight: 650; white-space: nowrap; text-shadow: 0 0 2px rgba(0, 0, 0, 0.25); }
.once-note { margin: 12px 0 0; color: rgba(255, 255, 255, 0.6); font-size: 12px; text-align: center; }

/* The page the old address shows for a moment while it sends people to ahenkk.app. */
.move-page { max-width: 520px; margin: 18vh auto 0; padding: 0 24px; text-align: center; }
.move-page h1 { font-size: clamp(28px, 6vw, 40px); letter-spacing: -0.03em; }
