/* Design language (after EBB Scandinavia): near-black / off-white monochrome, light editorial serif with italics
   (Newsreader), plain grotesk labels (Inter), [ bracketed ] actions, hairline section rules, stacked cards with big
   coloured numerals. Rose kept as a small accent. The Oath Biome version is saved in designs/oath/. */
:root {
  --bg: #f3f4f0;
  --surface: #fbfbf8;
  --surface-2: #e8e9e4;
  --line: #dcddd6;
  --line-2: #c5c6bf;
  --ink: #0d0d0d;
  --text: #2b2b2a;
  --muted: #6f706b;
  --brand: #0d0d0d;
  --brand-mid: #3a3a38;
  --aqua: #f4b6c2;
  --aqua-pale: #e8e9e4;
  --on-brand: #f3f4f0;
  --rose-ink: #9b2c4a;
  --rose-wash: #f6e3e8;
  --good-ink: #006100;
  --good-wash: #edf7ed;
  --warn-ink: #7a5200;
  --warn-wash: #fcf2dd;
  --bad-ink: #8f1f1f;
  --bad-wash: #fbeaea;
  --shadow: 0 0 0 transparent;
  --shadow-lg: 0 20px 44px -20px rgba(48, 25, 18, .28);
  --r: 12px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Headlines only (the "20%"): everything people read stays in Inter. */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  color-scheme: light;
  --c1: #2476d1; --c2: #0a9a5e; --c3: #d04136; --c4: #f8e54f; /* EBB numeral colours */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0d;
    --surface: #161616;
    --surface-2: #1f1f1f;
    --line: #262626;
    --line-2: #3a3a3a;
    --ink: #f3f4f0;
    --text: #cfd0cb;
    --muted: #8d8e89;
    --brand: #f3f4f0;
    --brand-mid: #bfc0bb;
    --aqua: #f4b6c2;
    --aqua-pale: #242424;
    --on-brand: #0d0d0d;
    --rose-ink: #f4b6c2;
    --rose-wash: #2e1f24;
    --good-ink: #7fd88f;
    --good-wash: #12301b;
    --warn-ink: #f1c76a;
    --warn-wash: #33280f;
    --bad-ink: #ff9a8f;
    --bad-wash: #3a1616;
    --shadow: 0 0 0 transparent;
    --shadow-lg: 0 20px 44px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
/* Chosen in the app (top bar or Account): same dark tokens, regardless of the phone setting. */
:root[data-theme="dark"] {
  --bg: #0d0d0d;
  --surface: #161616;
  --surface-2: #1f1f1f;
  --line: #262626;
  --line-2: #3a3a3a;
  --ink: #f3f4f0;
  --text: #cfd0cb;
  --muted: #8d8e89;
  --brand: #f3f4f0;
  --brand-mid: #bfc0bb;
  --aqua: #f4b6c2;
  --aqua-pale: #242424;
  --on-brand: #0d0d0d;
  --rose-ink: #f4b6c2;
  --rose-wash: #2e1f24;
  --good-ink: #7fd88f;
  --good-wash: #12301b;
  --warn-ink: #f1c76a;
  --warn-wash: #33280f;
  --bad-ink: #ff9a8f;
  --bad-wash: #3a1616;
  --shadow: 0 0 0 transparent;
  --shadow-lg: 0 20px 44px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
html { background: var(--bg); }
body {
  height: 100dvh; width: 100%; max-width: 560px; margin: 0 auto;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -.02em; margin: 0; }
h1 { font-family: var(--display); font-size: 30px; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: 17px; margin-bottom: 6px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.pill {
  display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); background: var(--surface);
}

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(145deg, #5a2152, #3a1234); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 2px 6px -2px rgba(74,25,66,.5); display: grid; place-items: center; flex: none; }
.mark svg { width: 24px; height: 24px; }
.brand .wordmark { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: var(--ink); line-height: 1; white-space: nowrap; }
.brand .wordmark em { font-weight: 600; font-style: italic; color: var(--brand-mid); }
.badge18 { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; color: var(--muted); }

main { flex: 1; overflow-y: auto; padding: 16px 16px 28px; }
main.flush { padding: 0; }
main.chat { display: flex; flex-direction: column; padding: 0; }

/* bottom nav */
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: var(--surface); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; }
.tabs a svg { width: 21px; height: 21px; }
.tabs a.on { color: var(--brand); }
.tabs a.on::before { content: ""; position: absolute; top: -1px; left: 28%; right: 28%; height: 2px; background: var(--brand); border-radius: 2px; }
.dot { position: absolute; top: 6px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: #e0566e; border: 2px solid var(--surface); }

/* hero (landing) */
.hero {
  position: relative; color: #fff; padding: 40px 20px 34px; text-align: center; overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(160deg, #2a0d27 0%, #4a1942 55%, #7a3a6c 100%);
}
.hero::after { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 70%; background: radial-gradient(closest-side, rgba(244, 182, 194, .32), transparent); pointer-events: none; }
.hero .pill { background: transparent; color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .25); }
.hero h1 { color: #fff; font-size: 44px; letter-spacing: -.015em; margin: 18px 0 12px; }
.hero h1 span { color: var(--aqua); font-style: italic; }
.hero .lede { color: rgba(255, 255, 255, .72); font-size: 16px; max-width: 34ch; margin: 0 auto 22px; }
.hero .ctas { display: flex; gap: 10px; justify-content: center; }
.hero .checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 20px; font-size: 12px; color: rgba(255, 255, 255, .62); }
.hero .checks span::before { content: "✓ "; color: var(--aqua); }
.section { padding: 20px 16px 4px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.feature .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--aqua-pale); color: var(--brand); margin-bottom: 8px; }
.feature .ic svg { width: 16px; height: 16px; }
.feature b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.feature span { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: block; }

/* cards + forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.card.tight { padding: 14px; }
.eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-mid); box-shadow: 0 0 0 3px var(--aqua-pale); }
textarea { resize: vertical; min-height: 84px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-weight: 500; font-size: 14px; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

button, .btn {
  font: inherit; font-size: 14px; font-weight: 600; border: 1px solid transparent; border-radius: var(--r); padding: 11px 18px;
  background: var(--brand); color: var(--on-brand); cursor: pointer; box-shadow: var(--shadow);
  transition: transform .08s, filter .15s, background .15s; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
button:hover { filter: brightness(1.08); }
button:active { transform: scale(.985); }
button.aqua { background: var(--aqua); color: #4a1942; box-shadow: var(--shadow-lg); }
button.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
button.ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); box-shadow: none; }
button.danger { background: var(--surface); color: var(--bad-ink); border-color: var(--line-2); box-shadow: none; }
button.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
button:disabled { opacity: .45; cursor: default; transform: none; filter: none; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1; }
.full { width: 100%; margin-top: 16px; }

/* role + interest pickers */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.role { flex-direction: column; align-items: flex-start; text-align: left; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; padding: 14px; font-weight: 500; }
.role b { font-size: 15px; }
.role span { font-size: 12.5px; color: var(--muted); }
.role.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--aqua-pale); }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); box-shadow: none; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chips-static { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.chips-static span { font-size: 11.5px; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); color: var(--text); }

/* page header */
.pagehead { margin: 2px 0 16px; }
.pagehead h1 { margin: 8px 0 4px; }
.pagehead p { color: var(--muted); margin: 0; }
.sectionhead { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 8px; }
.sectionhead h2 { margin: 0; font-size: 15px; }
.count { font-size: 12px; font-weight: 600; color: var(--brand); background: var(--aqua-pale); padding: 2px 8px; border-radius: 99px; }

/* filters */
.filters { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; }
.filters select, .filters input { width: auto; flex: none; padding: 7px 11px; font-size: 13px; border-radius: 99px; background: var(--surface); }
.filters input[type=number] { width: 68px; }
.toggle { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text); margin: 0 0 12px; font-weight: 500; }
.toggle input { width: 16px; height: 16px; accent-color: var(--brand); }

/* people */
.person { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.person:hover { border-color: var(--line-2); }
.avatar {
  position: relative; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 18px; text-transform: uppercase;
}
.avatar.lg { flex-basis: 72px; width: 72px; height: 72px; border-radius: 18px; font-size: 28px; }
.avatar.online::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: #2fb36b; border: 2px solid var(--surface); }
.person .info { flex: 1; min-width: 0; }
.person .name { color: var(--ink); font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.person .sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--line-2); font-size: 20px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text); }
.tag.ov { background: var(--rose-wash); color: var(--rose-ink); }
.tag.good { background: var(--good-wash); color: var(--good-ink); }
.tag.info { background: var(--aqua-pale); color: var(--brand); }

/* application card */
.app-card .note { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--aqua); background: var(--surface-2); border-radius: 0 10px 10px 0; color: var(--ink); font-size: 14px; }
.app-card .actions { display: flex; gap: 8px; margin-top: 12px; }
.app-card .actions button { flex: 1; }

.profilehero { text-align: center; position: relative; }
.profilehero .avatar { margin: 0 auto 12px; }
.profilehero h1 { font-size: 26px; }
.profilehero .tags { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
.profilehero .chips-static { justify-content: center; margin-top: 12px; }
.quote { font-size: 15px; color: var(--ink); margin: 14px 0 0; line-height: 1.55; }
.callout { border-radius: 10px; padding: 11px 13px; font-size: 13.5px; margin-top: 12px; text-align: left; background: var(--aqua-pale); color: var(--brand); }
.callout.rose { background: var(--rose-wash); color: var(--rose-ink); }
.callout.warn { background: var(--warn-wash); color: var(--warn-ink); }
.callout.bad { background: var(--bad-wash); color: var(--bad-ink); }

/* cycle tracker */
.cycle-bar { display: grid; grid-template-columns: repeat(28, 1fr); gap: 2px; margin: 12px 0 6px; }
.cycle-bar i { height: 22px; border-radius: 3px; background: var(--surface-2); }
.cycle-bar i.period { background: #d36b84; }
.cycle-bar i.fertile { background: var(--aqua); }
.cycle-bar i.ovu { background: var(--brand); }
.cycle-bar i.today { outline: 2px solid var(--ink); outline-offset: 1px; }
.legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 10px; }
.stat b { display: block; color: var(--ink); font-size: 15px; }
.stat span { font-size: 11.5px; color: var(--muted); }

/* chat */
.msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.msg { position: relative; touch-action: pan-y; user-select: text; -webkit-touch-callout: none; max-width: 80%; padding: 8px 13px; border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); word-wrap: break-word; white-space: pre-wrap; }
.msg.mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.msg .who { display: block; font-size: 12px; font-weight: 700; color: var(--brand-mid); cursor: pointer; }
.msg.mine .who { display: none; }
.msg time { display: block; font-size: 10.5px; opacity: .6; margin-top: 2px; }
.seen { align-self: flex-end; font-size: 11px; color: var(--muted); margin-top: -2px; }
.typing { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); padding: 0 18px; height: 0; overflow: hidden; transition: height .15s ease; }
.typing.on { height: 24px; }
.typing .dots { display: inline-flex; gap: 3px; }
.typing .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-mid); animation: typedot 1.2s infinite ease-in-out; }
.typing .dots i:nth-child(2) { animation-delay: .15s; }
.typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typedot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chatrow .sub.is-typing { color: var(--brand-mid); font-style: italic; }
.composer { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.composer input { flex: 1; }
.chathead { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chathead .avatar { flex-basis: 38px; width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
.chathead .grow { flex: 1; min-width: 0; color: var(--ink); font-weight: 600; }
.chathead .grow small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.chathead .back { font-size: 26px; line-height: 1; color: var(--muted); padding-right: 2px; }
.banner { margin: 10px 14px 0; padding: 9px 12px; border-radius: 10px; font-size: 13px; background: var(--warn-wash); color: var(--warn-ink); }
.roomhead { padding: 14px 16px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.roomhead h1 { font-size: 26px; margin: 8px 0 2px; }
.roomhead p { font-size: 13px; color: var(--muted); margin: 0; }

.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 500;
  max-width: calc(100% - 32px); z-index: 10; box-shadow: var(--shadow-lg);
}
.toast.err { background: var(--bad-ink); color: #fff; }
.globalbanner { margin: 10px 16px 0; padding: 11px 14px; border-radius: 12px; background: var(--bad-wash); color: var(--bad-ink); font-size: 13.5px; font-weight: 500; display: flex; gap: 10px; align-items: center; }
.globalbanner button { flex: none; }

ol.vows { list-style: none; counter-reset: v; padding: 0; margin: 0; }
ol.vows li { counter-increment: v; display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
ol.vows li:first-child { border-top: 0; padding-top: 4px; }
ol.vows li::before { content: counter(v, decimal-leading-zero); font-weight: 700; font-size: 12px; color: var(--brand-mid); min-width: 20px; padding-top: 2px; }
ol.vows b { display: block; color: var(--ink); font-size: 14px; }
ol.vows span { color: var(--muted); font-size: 13px; }
ul.tips { padding-left: 18px; margin: 0; }
ul.tips li { margin: 7px 0; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.footer { text-align: center; font-size: 12px; color: var(--muted); padding: 18px 0 6px; }

/* admin */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.stat-grid .stat { background: var(--surface); border: 1px solid var(--line); }
.stat-grid .stat b { font-size: 22px; letter-spacing: -.02em; }
.stat-grid .stat.alert { background: var(--bad-wash); border-color: transparent; }
.stat-grid .stat.alert b, .stat-grid .stat.alert span { color: var(--bad-ink); }
.stat-grid .stat:first-child { grid-column: span 2; }
.segmented { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; margin-bottom: 12px; overflow-x: auto; }
.segmented button { flex: 1; white-space: nowrap; background: transparent; color: var(--muted); box-shadow: none; padding: 8px 10px; font-size: 13px; border-radius: 9px; }
.segmented button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.logrow { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.logrow:first-of-type { border-top: 0; }
.eyebrow + .logrow { border-top: 0; }
.backlink { display: inline-block; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
a.card { display: flex; color: inherit; }

/* WhatsApp login */
button.wa, a.btn.wa { background: #1fa855; color: #fff; text-decoration: none; }
button.wa svg, a.btn.wa svg { width: 18px; height: 18px; }
.steps { padding-left: 20px; margin: 14px 0 4px; color: var(--ink); font-size: 14px; }
.steps li { margin: 4px 0; }
.waiting { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 12px 0 4px; font-size: 13.5px; color: var(--muted); }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkbtn { background: none; border: 0; box-shadow: none; color: var(--brand-mid); padding: 12px 0 0; font-size: 13.5px; width: 100%; }
.callout input { margin: 8px 0 0; }
.unsaved { color: var(--brand-mid); font-weight: 600; margin-top: 8px; }


/* profile photos */
.avatar { overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.online { overflow: visible; }
.avatar.online img { border-radius: inherit; }

/* landing: how it works */
.howto { margin-bottom: 12px; }
ol.how { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 14px; }
ol.how li { display: flex; gap: 12px; align-items: flex-start; }
ol.how .num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 14px; }
ol.how b { display: block; color: var(--ink); font-size: 15px; }
ol.how span:not(.num) { font-size: 13.5px; color: var(--muted); line-height: 1.45; display: block; }

/* message box + voice typing */
.composer { align-items: flex-end; position: relative; }
.composer-input { flex: 1; resize: none; min-height: 44px; max-height: 150px; line-height: 1.4; padding: 11px 14px; overflow-y: auto; }
button.mic { flex: none; width: 38px; height: 38px; margin-bottom: 3px; padding: 0; border-radius: 50%; background: transparent; color: var(--muted); border: 1px solid var(--line-2); box-shadow: none; }
button.mic svg { width: 17px; height: 17px; }
button.mic:hover { color: var(--ink); }
button.mic.on { background: #e0566e; color: #fff; border-color: transparent; animation: micpulse 1.4s ease-in-out infinite; }
@keyframes micpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 86, 110, .45); } 50% { box-shadow: 0 0 0 8px rgba(224, 86, 110, 0); } }

/* confirmation dialog */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(20, 8, 18, .55); display: grid; place-items: center; padding: 20px; animation: fadein .15s ease-out; }
.dialog { width: 100%; max-width: 380px; background: var(--surface); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-lg); }
.dialog h2 { font-size: 19px; margin-bottom: 8px; }
.dialog .row { margin-top: 18px; }
button.danger-solid { background: #b3261e; color: #fff; }
@keyframes fadein { from { opacity: 0; } }
/* account drawer */
details.drawer { padding: 0; }
details.drawer summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; font-weight: 600; color: var(--ink); }
details.drawer summary::-webkit-details-marker { display: none; }
details.drawer summary .chev { transition: transform .2s; font-size: 20px; }
details.drawer[open] summary .chev { transform: rotate(90deg); }
.drawer-body { padding: 0 18px 18px; display: grid; gap: 10px; }

/* account button (top-right of the profile card) + bottom sheet */
.iconbtn { width: 38px; height: 38px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 20px; line-height: 1; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.iconbtn:hover { background: var(--rose-soft, rgba(244,182,194,.25)); }
.iconbtn.corner { position: absolute; top: 12px; right: 12px; }
.sheet-wrap { place-items: end center; padding: 0; }
.sheet { width: 100%; max-width: 520px; background: var(--surface); border-radius: 20px 20px 0 0; padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: sheetup .22s ease-out; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sheet-head h2 { font-size: 19px; margin: 0; }
.sheet-actions { display: grid; gap: 10px; margin-top: 14px; }
.sheet-actions button { width: 100%; }
@keyframes sheetup { from { transform: translateY(100%); } to { transform: none; } }

/* emoji picker */
.emoji-panel { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); max-height: 260px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow-lg); z-index: 20; animation: fadein .12s ease-out; }
.emoji-group + .emoji-group { margin-top: 8px; }
.emoji-group .eyebrow { margin: 0 0 4px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
.emoji-grid button { background: transparent; border: 0; box-shadow: none; padding: 0; height: 38px; font-size: 22px; line-height: 1; border-radius: 10px; color: inherit; }
.emoji-grid button:hover, .emoji-grid button:focus-visible { background: var(--line); }
button.mic.on[aria-expanded="true"] { background: var(--line); color: var(--ink); animation: none; border-color: var(--line-2); }

/* replies + reactions */
.msg .quote { display: block; width: 100%; text-align: left; margin: 2px 0 5px; padding: 5px 9px; border: 0; border-left: 3px solid var(--brand-mid); border-radius: 8px; background: rgba(0,0,0,.12); color: inherit; font: inherit; font-size: 13px; line-height: 1.35; box-shadow: none; white-space: normal; cursor: pointer; }
.msg:not(.mine) .quote { background: var(--line); }
.msg .quote b { display: block; font-size: 12px; color: var(--brand-mid); }
.msg.mine .quote { border-left-color: currentColor; }
.msg.mine .quote b { color: inherit; opacity: .8; }
.msg.has-reacts { margin-bottom: 14px; }
.reacts { position: absolute; bottom: -14px; left: 8px; display: flex; gap: 3px; }
.msg.mine .reacts { left: auto; right: 8px; }
.react { display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); font-size: 13px; line-height: 1; box-shadow: none; }
.react span { font-size: 11px; color: var(--muted); }
.react.me { border-color: var(--brand-mid); background: var(--line); }
.msg-tools { display: none; }
@media (hover: hover) and (pointer: fine) {
  .msg-tools { position: absolute; top: 50%; transform: translateY(-50%); right: -62px; display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
  .msg.mine .msg-tools { right: auto; left: -62px; }
  .msg:hover .msg-tools { opacity: 1; }
  .msg-tools button { width: 28px; height: 28px; padding: 0; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); box-shadow: none; font-size: 14px; }
  .msg-tools button:hover { color: var(--ink); }
}
.msg::before { content: "↩"; position: absolute; left: -30px; top: 50%; transform: translateY(-50%) scale(.6); opacity: 0; color: var(--muted); font-size: 18px; transition: opacity .1s, transform .1s; }
.msg.swiping::before { opacity: 1; transform: translateY(-50%) scale(1); color: var(--brand-mid); }
@keyframes msgflash { 0%, 60% { box-shadow: 0 0 0 3px var(--brand-mid); } 100% { box-shadow: none; } }
.msg.flash { animation: msgflash 1.4s ease-out; }
.react-menu { position: fixed; z-index: 60; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 6px; box-shadow: var(--shadow-lg); animation: fadein .12s ease-out; }
.react-row { display: flex; gap: 2px; }
.react-row button { width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; font-size: 24px; line-height: 1; transition: transform .1s; }
.react-row button:hover, .react-row button:focus-visible { transform: scale(1.18); background: var(--line); }
.react-row button.me { background: var(--line); }
.react-actions { display: flex; gap: 6px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.react-actions button { flex: 1; height: 34px; padding: 0 10px; font-size: 14px; background: transparent; color: var(--ink); border: 0; box-shadow: none; border-radius: 10px; }
.react-actions button:hover { background: var(--line); }
.replybar { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.replybar[hidden] { display: none; }
.rb-text { flex: 1; min-width: 0; border-left: 3px solid var(--brand-mid); padding-left: 9px; font-size: 13px; line-height: 1.35; }
.rb-text b { display: block; color: var(--brand-mid); font-size: 12px; }
.rb-text span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.iconbtn.sm { width: 30px; height: 30px; font-size: 17px; }
.msg.pending { opacity: .7; }
.msg.pending time::after { content: " · sending"; }
.stat-grid button.stat.link { display: block; width: 100%; height: auto; text-align: left; cursor: pointer; font: inherit; color: inherit; box-shadow: none; background: var(--surface); border: 1px solid var(--line); padding: 10px; border-radius: 10px; }
.stat-grid button.stat.link:hover { border-color: var(--brand-mid); }
.stat-grid button.stat.link.alert { background: var(--bad-wash); border-color: transparent; }

/* voice notes */
.voice { display: flex; align-items: center; gap: 9px; min-width: 190px; padding: 2px 0; }
.vp-play { flex: none; width: 34px; height: 34px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 12px; line-height: 1; box-shadow: none; background: var(--brand); color: var(--on-brand); border: 0; }
.msg.mine .vp-play { background: var(--on-brand); color: var(--brand); }
.vp-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(127,127,127,.3); position: relative; cursor: pointer; touch-action: none; }
.vp-bar::after { content: ""; position: absolute; inset: -10px 0; }
.vp-fill { height: 100%; width: 0; border-radius: inherit; background: currentColor; opacity: .85; }
.vp-time { flex: none; font-size: 12px; font-variant-numeric: tabular-nums; opacity: .8; min-width: 32px; text-align: right; }
.composer.recording > :not(.recbar) { visibility: hidden; }
.recbar { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0566e; animation: micpulse 1.2s ease-in-out infinite; flex: none; }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.recbar .grow { flex: 1; }
.composer > [hidden] { display: none; }
.msg time .edited { font-style: italic; }
.react-actions button.danger-text { color: var(--bad-ink, #c0392b); }
.react-summary { max-width: 290px; margin: 2px 6px 8px; font-size: 13px; line-height: 1.4; color: var(--ink); }
.react-summary b { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
@media (hover: hover) and (pointer: fine) {
  .voice[data-summary] { position: relative; }
  .voice[data-summary]:hover::after { content: attr(data-summary); position: absolute; left: 0; bottom: calc(100% + 10px); width: max-content; max-width: 260px; padding: 7px 10px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: 12.5px; line-height: 1.35; white-space: normal; box-shadow: var(--shadow-lg); z-index: 5; pointer-events: none; }
}

/* two cards side by side (Me tab: passcode + photo) */
.card-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; margin-bottom: 12px; }
.card-pair > .card { margin: 0; padding: 14px; display: flex; flex-direction: column; min-width: 0; }
.card-pair > .card > p.small { flex: 1; } /* pushes the buttons to the same height in both cards */
.card-pair .row { flex-direction: column; align-items: stretch; gap: 8px; }
.card-pair .row > *, .card-pair button { width: 100%; }
.card-pair button { padding: 10px 8px; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-pair .row { margin-top: 12px !important; }
.card-pair p.small { font-size: 12.5px; line-height: 1.45; }
.card-pair select { width: 100%; min-width: 0; }
.card-pair select { font-size: 14px; padding: 9px 4px 9px 8px; }
.card-pair label { font-size: 13px; }

/* light/dark switch in the top bar */
.top-right { display: flex; align-items: center; gap: 10px; }
.theme-btn { width: 34px; height: 34px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--muted); border: 1px solid var(--line-2); box-shadow: none; }
.theme-btn:hover { color: var(--ink); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); margin-top: 8px; }
.theme-seg button { height: 36px; padding: 0; font-size: 14px; background: transparent; color: var(--text); border: 0; box-shadow: none; border-radius: 9px; }
.theme-seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }

/* interest filter on Browse / Discover */
.ifilter { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 14px; }
.ifilter summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 11px 0; font-weight: 600; font-size: 14px; color: var(--ink); }
.ifilter summary::-webkit-details-marker { display: none; }
.ifilter summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
.ifilter[open] summary .chev { transform: rotate(90deg); }
.ifilter .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: var(--on-brand); font-size: 11.5px; display: inline-grid; place-items: center; }
.ifilter .count[hidden] { display: none; }
.ifilter p { margin: 0 0 10px; }
.ifilter .chipset { padding-bottom: 12px; }
.ifilter .linkish { background: none; border: 0; box-shadow: none; padding: 0 0 12px; color: var(--brand-mid); font-size: 13px; text-decoration: underline; }
.ifilter .linkish[hidden] { display: none; }
.chips-static span.match { background: var(--brand); color: var(--on-brand); }

/* social media handle */
.social { color: var(--brand-mid); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.social b { font-weight: 700; }
.social:hover { text-decoration: underline; }
.social.pill-link { display: inline-block; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); }
.social-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 8px; margin-bottom: 10px; }
.social-row select, .social-row input { width: 100%; min-width: 0; }
a.btnlink { display: inline-flex; align-items: center; text-decoration: none; padding: 7px 12px; font-size: 13px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--ink); }

/* meet-ups + feedback */
.stars { display: flex; gap: 4px; margin: 2px 0 6px; }
.star { width: 40px; height: 40px; padding: 0; font-size: 26px; line-height: 1; background: transparent; border: 0; box-shadow: none; color: var(--line-2); }
.star.on { color: #f2b01e; }
.row.yesno button { flex: 1; }
.row.yesno button.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.metstrip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px; font-size: 13px; color: var(--text); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.logrow.unsafe { background: var(--bad-wash); border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.sheet label { display: block; margin-top: 12px; }
.sheet .row select, .sheet .row input { flex: 1; min-width: 0; }
.sheet { max-height: 88vh; overflow-y: auto; }


/* ===================== Oath-style layer ===================== */
body { font-size: 15px; letter-spacing: -.005em; }
h1 { font-family: var(--display); font-weight: 300; font-size: 36px; line-height: 1.04; letter-spacing: -.035em; }
h2 { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.15; letter-spacing: -.02em; }
.sectionhead h2 { font-size: 20px; }
.pagehead h1 { font-size: 38px; margin: 10px 0 6px; }
.pagehead p { font-size: 14.5px; }
.profilehero h1 { font-family: var(--display); font-weight: 300; font-size: 32px; }
.roomhead h1 { font-size: 34px; }
.quote, .app-card .note { font-family: var(--display); font-size: 17px; line-height: 1.45; letter-spacing: -.01em; }

/* labels: small caps with a hairline tick in front, like "—— EXPLORE" */
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--muted); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--line-2); flex: none; }
.pill { font-weight: 500; letter-spacing: .14em; border-color: var(--line-2); background: transparent; padding: 5px 12px; }

/* header + tabs */
.top { background: var(--bg); padding: 14px 18px; }
.mark { border-radius: 50%; box-shadow: none; background: radial-gradient(circle at 30% 25%, #7a3a6c, #3a1234 70%); }
.brand .wordmark { font-weight: 300; font-size: 23px; letter-spacing: -.035em; }
.brand .wordmark em { font-weight: 300; }
.badge18 { font-weight: 500; letter-spacing: .14em; }
.theme-btn { border-color: var(--line); }
.tabs { background: var(--bg); }
.tabs a { font-weight: 500; letter-spacing: .01em; }
.tabs a.on { color: var(--ink); }
.tabs a.on::before { left: 30%; right: 30%; height: 1.5px; background: var(--ink); }

/* flat cards with hairlines (no drop shadows) */
.card { box-shadow: none; border-color: var(--line); border-radius: var(--r); }
.stat-grid .stat { border-radius: 12px; }
.stat-grid .stat b, .stat-grid button.stat.link b { font-family: var(--display); font-weight: 300; font-size: 34px; letter-spacing: -.04em; line-height: 1.05; }
.empty b { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: -.02em; }

/* pill buttons; full-width primary ones carry Oath's arrow-in-a-circle */
button, .btn { border-radius: 100px; font-weight: 500; font-size: 14.5px; box-shadow: none; padding: 12px 20px; letter-spacing: -.005em; }
button.sm { border-radius: 100px; padding: 7px 14px; }
button:hover { filter: none; opacity: .92; }
button.full:not(.ghost):not(.danger):not(.danger-solid):not(.linkbtn)::after {
  content: "\2192"; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: color-mix(in srgb, currentColor 18%, transparent); font-size: 15px; margin: -4px -10px -4px auto;
}
button.full:not(.ghost):not(.danger):not(.danger-solid):not(.linkbtn) { justify-content: space-between; padding-left: 22px; }
.iconbtn, .theme-btn, button.mic, .vp-play, .star, .react, .emoji-grid button, .react-row button, .chip { border-radius: 100px; }
.iconbtn, .theme-btn, button.mic, .vp-play { border-radius: 50%; }
.react-row button, .emoji-grid button { border-radius: 50%; }
.segmented { border-radius: 100px; padding: 4px; background: var(--surface-2); }
.segmented button { border-radius: 100px; font-weight: 500; }
.segmented button.on { box-shadow: none; border: 1px solid var(--line); }
.linkbtn { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* inputs */
input, select, textarea { border-radius: 12px; border-color: var(--line-2); background: var(--surface); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: none; }
.filters select, .filters input { border-color: var(--line-2); }
label { font-weight: 500; }

/* people + chat */
.avatar { border-radius: 14px; }
.avatar.lg { border-radius: 24px; }
.tag { border-radius: 100px; font-weight: 500; padding: 2px 9px; }
.msg { border-radius: 18px 18px 18px 6px; border-color: var(--line); }
.msg.mine { border-radius: 18px 18px 6px 18px; }
.composer, .chathead, .roomhead { background: var(--bg); }
.sheet { border-radius: 22px 22px 0 0; }
.dialog { border-radius: 20px; }
.dialog h2 { font-size: 23px; }

/* ruled lists (vows, how it works): hairline rows like Oath's grid */
ol.vows li b, ol.how b { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: -.015em; }

/* ---------- landing (Oath layout) ---------- */
.oath { padding: 10px 12px 0; }
.otile { position: relative; overflow: hidden; border-radius: 16px; min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px 22px 18px; color: #fff;
  background:
    radial-gradient(60% 55% at 78% 22%, rgba(244, 182, 194, .85), transparent 70%),
    radial-gradient(55% 50% at 18% 85%, rgba(231, 160, 178, .55), transparent 70%),
    radial-gradient(40% 35% at 55% 60%, rgba(255, 236, 214, .35), transparent 70%),
    linear-gradient(160deg, #2b0d27 0%, #4a1942 50%, #7a3a6c 100%); }
.otile::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.otile h1 { position: relative; z-index: 1; color: #fff; font-size: 50px; line-height: .98; letter-spacing: -.045em; max-width: 9.5ch; }
.otile h1 em { font-style: italic; }
.otile .tilebar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.otile .glass { background: rgba(255, 255, 255, .18); color: #fff; border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 10px 10px 10px 18px; gap: 12px; }
.otile .glass::after { content: "\2192"; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.otile .age { font-size: 11px; letter-spacing: .14em; color: rgba(255, 255, 255, .75); font-weight: 500; }
.ocaption { text-align: center; padding: 14px 0 6px; }
.ocaption b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: -.02em; color: var(--ink); }
.ocaption span { font-size: 13px; color: var(--muted); }
.ruled { border-left: 1px solid var(--line-2); margin: 26px 4px 0 10px; padding: 4px 0 4px 20px; }
.statement { font-size: 21px; line-height: 1.28; font-weight: 500; letter-spacing: -.02em; color: var(--ink); margin: 0 0 18px; }
.ruled p.serif { font-family: var(--display); font-size: 19px; line-height: 1.45; color: var(--text); letter-spacing: -.01em; }
.ogrid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-2); margin: 28px -12px 0; }
.ogrid > div { padding: 22px 22px 24px; border-bottom: 1px solid var(--line-2); }
.ogrid h3 { font-family: var(--display); font-weight: 300; font-size: 30px; line-height: 1.05; letter-spacing: -.035em; color: var(--ink); margin: 0 0 14px; }
.ogrid .num { font-size: 11px; letter-spacing: .14em; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ogrid .num::before { content: ""; width: 22px; height: 1px; background: var(--line-2); }
.ogrid p { margin: 0; font-size: 14.5px; color: var(--text); }
.osteps { display: grid; gap: 18px; }
.osteps b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.ofeatures { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ofeatures > div { background: var(--surface-2); border-radius: 12px; padding: 14px; }
.ofeatures b { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: -.02em; color: var(--ink); margin-bottom: 4px; }
.ofeatures span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ostart { margin: 26px 0 0; }
.ofooter { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 26px 22px 34px; border-top: 1px solid var(--line-2); margin: 0 -12px; }
.ofooter .big { font-family: var(--display); font-weight: 300; font-size: 34px; line-height: 1.05; letter-spacing: -.035em; color: var(--ink); }
.ofooter ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.ofooter a { color: var(--text); }
@media (min-width: 520px) { .otile h1 { font-size: 58px; } }
/* fixes after the first look */
.role, button.role { border-radius: 15px; }
.otile .glass { white-space: nowrap; }
.otile .age { white-space: nowrap; }
@media (max-width: 430px) { .badge18 { display: none; } }
.composer-input { scrollbar-width: none; }
.composer-input::-webkit-scrollbar { display: none; }
.card-pair button.full::after { display: none !important; }
.card-pair button.full { justify-content: center !important; padding-left: 8px !important; }
.chathead { flex-wrap: wrap; row-gap: 8px; }
.chathead .grow { overflow: hidden; }
.chathead .grow, .chathead .grow small { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.chat-actions { display: flex; gap: 6px; flex: none; }
.chat-actions a.btnlink { border-radius: 100px; padding: 6px 12px; }
.chat-actions button.sm { padding: 6px 12px; }
/* phones: the buttons get their own row under the name, so nothing overlaps */
@media (max-width: 480px) { .chat-actions { flex: 1 0 100%; padding-left: 26px; } }


/* ===================== EBB layer (overrides the Oath layer above) ===================== */
h1 { font-weight: 300; font-size: 38px; line-height: 1.08; letter-spacing: -.02em; }
h1 em, h2 em { font-style: italic; }
h2 { font-weight: 300; font-size: 24px; letter-spacing: -.015em; }
.pagehead h1 { font-size: 40px; }
/* labels: plain small sentence-case text, no tick, no capitals (EBB "What we've done") */
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 400; color: var(--muted); gap: 0; }
.eyebrow::before { display: none; }
.pill { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 400; border: 0; padding: 0; color: var(--muted); }
.pill::before { content: "[ "; } .pill::after { content: " ]"; }
.badge18 { letter-spacing: 0; font-weight: 400; font-size: 12.5px; }
.badge18::before { content: "[ "; } .badge18::after { content: " ]"; }

/* header: logo left, [ Light ] / [ Dark ] text on the right */
.top { border-bottom: 0; }
.mark { background: var(--ink); }
.mark svg path, .mark svg circle { fill: var(--bg); }
.brand .wordmark { font-weight: 300; letter-spacing: -.02em; }
.brand .wordmark em { color: var(--ink); }
.theme-btn { width: auto; height: auto; border: 0; border-radius: 0; padding: 4px 0; font-size: 12.5px; color: var(--ink); background: none; }
.theme-btn svg { display: none; }
.tabs { border-top: 1px solid var(--line); }
.tabs a.on::before { height: 1px; left: 0; right: 0; }

/* cards: flat, 12px radius, hairline */
.card { border-radius: 12px; background: var(--surface); }
.stat-grid .stat b, .stat-grid button.stat.link b { font-family: var(--font); font-weight: 400; font-size: 36px; letter-spacing: -.05em; }
.empty b { font-weight: 300; }

/* buttons: square-ish, and the main ones read like EBB's [ bracketed ] actions */
button, .btn { border-radius: 10px; font-weight: 400; }
button.sm { border-radius: 8px; }
button.full:not(.ghost):not(.danger):not(.danger-solid):not(.linkbtn)::after { content: " ]"; display: inline; width: auto; height: auto; background: none; margin: 0; font-size: inherit; }
button.full:not(.ghost):not(.danger):not(.danger-solid):not(.linkbtn)::before { content: "[ "; }
button.full:not(.ghost):not(.danger):not(.danger-solid):not(.linkbtn) { justify-content: center; padding-left: 18px; }
.card-pair button.full::before { display: none; }
.linkbtn { text-decoration: none; }
.linkbtn::before { content: "[ "; } .linkbtn::after { content: " ]"; }
.segmented, .segmented button { border-radius: 10px; }
.chip { border-radius: 8px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tag { border-radius: 6px; font-weight: 400; }
input, select, textarea { border-radius: 10px; }
.msg { border-radius: 14px 14px 14px 4px; }
.msg.mine { border-radius: 14px 14px 4px 14px; }
.avatar { border-radius: 50%; }
.avatar.lg { border-radius: 50%; }
.quote, .app-card .note { font-style: italic; }
.app-card .note { border-left-color: var(--ink); }

/* ---------- landing (EBB layout, always dark) ---------- */
.ebb { --bg: #0d0d0d; --surface: #161616; --surface-2: #1f1f1f; --line: #262626; --line-2: #3a3a3a; --ink: #f3f4f0; --text: #cfd0cb; --muted: #8d8e89;
  --brand: #f3f4f0; --brand-mid: #bfc0bb; --on-brand: #0d0d0d; --aqua-pale: #242424; color-scheme: dark;
  background: var(--bg); color: var(--text); margin: 0; min-height: 100%; }
main.flush:has(.ebb) { background: #0d0d0d; }
.ebb-hero { position: relative; min-height: 78vh; display: grid; place-items: center; overflow: hidden; padding: 40px 14px; isolation: isolate; }
.ebb-blob { position: absolute; width: min(92vw, 470px); left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 0; animation: ebbsway 9s ease-in-out infinite alternate; }
.ebb-blob path { fill: #f3f4f0; }
@keyframes ebbsway { from { transform: translate(-50%, -50%) rotate(-4deg) scale(.97); } to { transform: translate(-50%, -50%) rotate(5deg) scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .ebb-blob { animation: none; } }
.ebb-hero h1 { position: relative; z-index: 1; color: #fff; mix-blend-mode: difference; text-align: center; font-size: 40px; line-height: 1.08; letter-spacing: -.02em; max-width: 13ch; margin: 0; }
.ebb-corner { position: absolute; z-index: 2; font-size: 12.5px; color: #f3f4f0; background: none; border: 0; padding: 0; box-shadow: none; mix-blend-mode: difference; }
.ebb-corner.tl { top: 14px; left: 14px; } .ebb-corner.br { bottom: 16px; right: 14px; } .ebb-corner.bl { bottom: 16px; left: 14px; }
.ebb-big { font-family: var(--font); font-weight: 400; font-size: 26vw; line-height: .9; letter-spacing: -.06em; color: #f3f4f0; text-align: center; margin: 18px 0 0; }
@media (min-width: 560px) { .ebb-big { font-size: 140px; } }
.ebb-lede { font-family: var(--display); font-weight: 300; font-size: 24px; line-height: 1.22; letter-spacing: -.015em; text-align: center; color: #f3f4f0; padding: 14px 14px 0; margin: 0; }
.ebb-lede em { font-style: italic; }
.ebb-lede .dim { color: #8d8e89; }
.ebb-section { padding: 0 10px; margin-top: 46px; }
.ebb-label { font-size: 12.5px; color: #cfd0cb; border-top: 1px solid rgba(243, 244, 240, .25); padding: 10px 0 0; margin: 0 0 22px; }
.ebb-title { font-family: var(--display); font-weight: 300; font-size: 44px; line-height: 1; letter-spacing: -.025em; color: #f3f4f0; margin: 0 0 18px 14px; }
.ebb-title.right { text-align: right; margin: -6px 14px 22px 0; }
.ebb-para { font-family: var(--display); font-weight: 300; font-size: 19px; line-height: 1.32; color: #f3f4f0; margin: 0 0 22px 44px; }
.ebb-stack { display: grid; gap: 10px; }
.ebb-card { background: #f3f4f0; color: #0d0d0d; border-radius: 12px; padding: 16px 16px 20px; }
.ebb-card:nth-child(2) { background: #e2e3de; } .ebb-card:nth-child(3) { background: #d6d7d1; } .ebb-card:nth-child(4) { background: #c9cac4; }
.ebb-card .n { font-family: var(--font); font-size: 92px; line-height: .85; letter-spacing: -.05em; }
.ebb-card .k { font-size: 12px; color: #5a5b57; margin: 14px 0 6px; }
.ebb-card h3 { font-family: var(--display); font-weight: 300; font-size: 30px; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 8px; color: #0d0d0d; }
.ebb-card p { margin: 0; font-size: 14px; color: #2b2b2a; }
.ebb-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ebb-tile { background: #4a4a48; border-radius: 12px; padding: 12px 12px 14px; color: #f3f4f0; display: flex; flex-direction: column; min-height: 210px; }
.ebb-tile svg { width: 100%; height: 110px; margin: 4px 0 auto; }
.ebb-tile svg * { fill: none; stroke: #f3f4f0; stroke-width: 1.2; }
.ebb-tile b { font-weight: 400; font-size: 14px; text-align: center; margin-top: 10px; }
.ebb-tile span { font-size: 12px; color: #c8c9c4; text-align: center; line-height: 1.35; margin-top: 4px; }
.ebb-start { margin-top: 18px; }
.ebb-start .card { background: #161616; border-color: #262626; }
.ebb-foot { padding: 30px 14px 40px; margin-top: 46px; border-top: 1px solid rgba(243, 244, 240, .25); }
.ebb-foot .big { font-family: var(--display); font-weight: 300; font-size: 40px; line-height: 1; letter-spacing: -.025em; color: #f3f4f0; margin-bottom: 18px; }
.ebb-foot .big em { font-style: italic; }
.ebb-foot a, .ebb-foot button { color: #f3f4f0; font-size: 13px; }
.ebb-foot .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ebb-foot .links a::before { content: "[ "; } .ebb-foot .links a::after { content: " ]"; }
.ebb-foot small { color: #8d8e89; font-size: 12px; }
/* the app header sits on the dark landing too */
body:has(.ebb) { background: #0d0d0d; }
body:has(.ebb) .top { background: #0d0d0d; }
body:has(.ebb) .top .wordmark, body:has(.ebb) .top .wordmark em, body:has(.ebb) .theme-btn, body:has(.ebb) .badge18 { color: #f3f4f0; }
body:has(.ebb) .mark { background: #f3f4f0; }
body:has(.ebb) .mark svg path, body:has(.ebb) .mark svg circle { fill: #0d0d0d; }

/* ===================== Full-page layout (wide screens) =====================
   Phones keep the one-column app. From 900px the app fills the window: a left menu instead of the
   bottom tabs, content across the width in grids, and chats as two panes (list + conversation). */
.grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 14px; align-items: start; }
.grid-list > .sectionhead, .grid-list > .empty, .grid-list > .callout { grid-column: 1 / -1; }
.chatlist { display: none; }
.pickchat { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 8%; }
.pickchat-n { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.pickchat h1 { font-size: clamp(40px, 5vw, 76px); max-width: 14ch; }

@media (min-width: 900px) {
  body {
    max-width: none; display: grid; height: 100dvh;
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
  }
  .top { grid-column: 1 / -1; grid-row: 1; padding: 18px 32px; border-bottom: 1px solid var(--line); }
  .brand .wordmark { font-size: 27px; }
  .mark { width: 38px; height: 38px; }
  .badge18 { display: inline !important; }
  #globalbanner { grid-column: 2 / -1; grid-row: 2; }
  main { grid-column: 2 / -1; grid-row: 3; padding: 40px 56px 64px; }
  body:has(#tabs[hidden]) main, body:has(#tabs[hidden]) #globalbanner { grid-column: 1 / -1; }

  /* left menu */
  .tabs { grid-column: 1; grid-row: 2 / 4; display: flex; flex-direction: column; gap: 2px; padding: 26px 14px; border-top: 0; border-right: 1px solid var(--line); background: var(--bg); }
  .tabs a { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 12px 16px; font-size: 15px; border-radius: 10px; }
  .tabs a svg { width: 20px; height: 20px; }
  .tabs a:hover { background: var(--surface-2); color: var(--ink); }
  .tabs a.on { background: var(--surface-2); }
  .tabs a.on::before { top: 10px; bottom: 10px; left: 0; right: auto; width: 2px; height: auto; }
  .dot { position: static; margin-left: auto; }

  /* chats: list + conversation */
  body.split { grid-template-columns: 240px 360px minmax(0, 1fr); }
  body.split main { grid-column: 3; }
  body.split #globalbanner { grid-column: 3; }
  .chatlist:not([hidden]) { display: block; grid-column: 2; grid-row: 2 / 4; overflow-y: auto; border-right: 1px solid var(--line); padding: 0 0 20px; }
  .chatlist-head { padding: 28px 18px 14px; }
  .chatlist-head h2 { font-size: 30px; }
  .chatlist .chatrow { margin: 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 14px 18px; }
  .chatlist .chatrow:hover { background: var(--surface-2); }
  .chatlist .chatrow.active { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--ink); }
  main.chat { padding: 0; }
  .msgs { padding: 24px 40px; }
  .msg { max-width: min(70%, 620px); }
  .composer { padding: 14px 40px; }
  .chathead, .roomhead { padding-left: 40px; padding-right: 40px; }
  .chat-actions { flex: none !important; padding-left: 0 !important; }
  .typing { padding: 0 42px; }
  .replybar { padding-left: 40px; padding-right: 40px; }
  .roomhead h1 { font-size: 48px; }

  /* page headings get room to breathe */
  .pagehead { margin: 0 0 32px; max-width: 900px; }
  .pagehead h1 { font-size: clamp(48px, 5.2vw, 84px); line-height: 1; }
  .pagehead p { font-size: 17px; max-width: 60ch; }

  /* Me, profiles, Safety, sign-up: cards across the width */
  body[data-page="me"] main, body[data-page="u"] main, body[data-page="safety"] main, body[data-page="signup"] main {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; align-content: start; align-items: start;
  }
  body[data-page="me"] main > *, body[data-page="u"] main > *, body[data-page="safety"] main > *, body[data-page="signup"] main > * { margin: 0; }
  body[data-page="me"] main > .profilehero, body[data-page="u"] main > .profilehero,
  body[data-page="safety"] main > .pagehead, body[data-page="signup"] main > .pagehead { grid-column: 1 / -1; }
  .profilehero { display: grid; grid-template-columns: auto 1fr; column-gap: 28px; text-align: left; align-items: center; padding: 28px 32px; }
  .profilehero > * { grid-column: 2; }
  .profilehero > .avatar.lg { grid-column: 1; grid-row: 1 / span 6; width: 132px; height: 132px; flex-basis: 132px; font-size: 52px; margin: 0; }
  .profilehero h1 { font-size: 48px; }
  .profilehero .tags, .profilehero .chips-static { justify-content: flex-start; }
  .profilehero > .iconbtn.corner { position: absolute; grid-column: auto; }
  .card-pair { margin: 0; }

  /* Discover / Applicants and admin */
  .filters { flex-wrap: wrap; overflow: visible; }
  .stat-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
  .stat-grid .stat b, .stat-grid button.stat.link b { font-size: 48px; }
  .segmented { max-width: 900px; }
  .sheet { border-radius: 20px; margin-bottom: 4vh; }

  /* landing: edge to edge */
  .ebb-hero { min-height: calc(100dvh - 75px); }
  .ebb-blob { width: min(52vw, 640px); }
  .ebb-hero h1 { font-size: clamp(48px, 5.4vw, 92px); max-width: 15ch; }
  .ebb-corner.bl { left: 32px; } .ebb-corner.br { right: 32px; }
  .ebb-big { font-size: 24vw; margin-top: 4vh; }
  .ebb-lede { font-size: clamp(28px, 3vw, 48px); max-width: 26ch; margin: 0 auto; }
  .ebb-section { padding: 0 32px; margin-top: 12vh; }
  .ebb-title { font-size: clamp(64px, 8vw, 140px); margin-left: 4vw; }
  .ebb-title.right { margin-right: 4vw; }
  .ebb-para { font-size: clamp(22px, 2vw, 32px); margin-left: 33%; max-width: 32ch; }
  .ebb-stack { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ebb-card { padding: 26px 28px 30px; }
  .ebb-card .n { font-size: clamp(120px, 12vw, 200px); }
  .ebb-card h3 { font-size: clamp(36px, 3.4vw, 56px); }
  .ebb-card p { font-size: 16px; max-width: 46ch; }
  .ebb-tiles { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .ebb-tile { min-height: 320px; padding: 20px; }
  .ebb-tile svg { height: 170px; }
  .ebb-tile b { font-size: 17px; } .ebb-tile span { font-size: 14px; }
  .ebb-start { display: grid; grid-template-columns: 1fr minmax(0, 560px); column-gap: 32px; }
  .ebb-start .ebb-label { grid-column: 1 / -1; }
  .ebb-start::before { content: "Join in under a minute. Just a username and a 4-digit passcode."; font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3vw, 52px); line-height: 1.08; letter-spacing: -.02em; color: #f3f4f0; grid-row: 2; max-width: 16ch; }
  .ebb-foot { padding: 48px 32px 56px; display: grid; grid-template-columns: 2fr 1fr; align-items: end; gap: 24px; }
  .ebb-foot .big { font-size: clamp(56px, 7vw, 120px); grid-column: 1 / -1; }
}
@media (min-width: 1400px) {
  main { padding: 48px 80px 72px; }
  body.split { grid-template-columns: 260px 400px minmax(0, 1fr); }
  body { grid-template-columns: 260px minmax(0, 1fr); }
}
@media (min-width: 900px) { body.split .chathead .back { display: none; } }
