/* ==========================================================================
   UNIdate HK v3 — Quiet Luxury Complete Stylesheet
   Every screen unified under one calm, editorial, Apple × Linear × Airbnb
   design language. Zero gradients spam, zero purple/neon, zero AI templates.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & BASE TYPOGRAPHY
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 72% 480px at 14% 0%, rgba(190, 206, 224, 0.16) 0%, transparent 72%),
    radial-gradient(ellipse 68% 520px at 88% 8%, rgba(238, 214, 194, 0.22) 0%, transparent 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23p)' opacity='0.034'/%3E%3C/svg%3E");
  background-size: auto, auto, 180px 180px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}


button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul, ol, dl, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { overflow-wrap: break-word; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

::selection { background: rgba(158, 59, 74, 0.16); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 6px;
}

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

.serif {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}
:lang(en) .serif { font-weight: 400; letter-spacing: -0.015em; }

.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.nw { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.55; }
.tiny { font-size: 13px; line-height: 1.5; }
.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.wrap {
  width: 100%;
  max-width: var(--max-site);
  margin: 0 auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px));
}
.col {
  width: 100%;
  max-width: var(--max-app);
  margin: 0 auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px));
}

.stack { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.between { justify-content: space-between; }

.only-d { display: none; }
.only-m { display: block; }
@media (min-width: 1024px) {
  .only-d { display: block; }
  .only-m { display: none !important; }
  .wrap, .col { padding-inline: 36px; }
}

/* --------------------------------------------------------------------------
   2. NAVIGATION (ADAPTIVE LIQUID-GLASS OVER SKY → WARM CREAM PAPER ON SCROLL)
   -------------------------------------------------------------------------- */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background-color 340ms var(--ease), border-color 340ms var(--ease), color 260ms var(--ease);
}

.landing-page .top {
  position: fixed;
  inset: env(safe-area-inset-top, 0px) 0 auto;
}
.has-preview-dock.landing-page .top {
  top: 41px;
}

.landing-page.over-sky .top {
  background: linear-gradient(180deg, rgba(16, 33, 44, 0.36) 0%, rgba(16, 33, 44, 0) 100%);
  border-bottom-color: transparent;
}
.landing-page.over-sky .plate b { color: #FAF8F2; text-shadow: 0 2px 14px rgba(8, 23, 33, 0.28); }
.landing-page.over-sky .plate small { color: rgba(250, 248, 242, 0.88); border-color: rgba(250, 248, 242, 0.32); background: rgba(255, 255, 255, 0.10); }
.landing-page.over-sky .navlink { color: rgba(250, 248, 242, 0.88); }
.landing-page.over-sky .navlink:hover { color: #FFFFFF; }
.landing-page.over-sky .langs {
  background: rgba(14, 30, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.landing-page.over-sky .langs button { color: rgba(250, 248, 242, 0.90); }
.landing-page.over-sky .langs button:hover { color: #FFFFFF; }
.landing-page.over-sky .langs button[aria-pressed="true"] {
  background: rgba(250, 248, 242, 0.94);
  color: var(--ink-surface);
}
.landing-page.over-sky .top .nav .btn-ink {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}
.landing-page.over-sky .top .nav .btn-ink:hover {
  background: rgba(14, 30, 42, 0.56);
  border-color: rgba(255, 255, 255, 0.54);
}
.landing-page.over-sky .acct.out {
  color: #FAF8F2;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.scrolled .top {
  background: var(--bg);
  border-bottom-color: var(--line-strong);
}
.landing-page.over-sky.scrolled .top {
  background: rgba(16, 34, 46, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

.top-in {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
}

.plate {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.plate b {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: 27px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  transition: color 240ms var(--ease);
}

.plate small {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 2px 6px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  line-height: 1.1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navlink {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  transition: color var(--ease-fast);
}
.navlink:hover { color: var(--ink); }
.top .nav .btn-sm {
  border-radius: var(--r-pill);
  min-height: 36px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
}

.langs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--bg-subtle);
}

.langs button {
  min-width: 30px;
  height: 26px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: background-color var(--ease-fast), color var(--ease-fast);
}
.langs button:hover { color: var(--ink); }
.langs button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--sh-xs);
}

.acct {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink-surface);
  color: var(--on-ink);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  transition: transform var(--ease-fast), border-color var(--ease-fast);
}
.acct:hover { transform: scale(1.04); }
.acct.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.acct.out { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.acct img { width: 100%; height: 100%; object-fit: cover; }
.acct svg { width: 16px; height: 16px; stroke: currentColor; }

/* Desktop App Tabs */
.dtabs { display: none; }
@media (min-width: 960px) {
  .dtabs { display: inline-flex; align-items: center; gap: 4px; }
  .dtab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 13px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: background-color var(--ease-fast), color var(--ease-fast);
  }
  .dtab svg { width: 16px; height: 16px; stroke: currentColor; opacity: 0.78; }
  .dtab:hover { color: var(--ink); background: var(--bg-subtle); }
  .dtab[aria-current="page"] {
    color: var(--ink);
    background: var(--surface);
    font-weight: 600;
    box-shadow: var(--sh-xs), inset 0 0 0 1px var(--line);
  }
  .dtab[aria-current="page"] svg { opacity: 1; color: var(--accent); }
  .dtab .tdot { top: 6px; right: 6px; }
}

/* Mobile Bottom Tab Bar (Clean Native iOS Bar) */
.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: var(--bg);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -8px 24px -14px rgba(8, 23, 33, 0.14);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabs-in {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  padding: 0 6px;
}
.tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--ease-fast);
}
.tab svg { width: 20px; height: 20px; stroke: currentColor; }
.tab[aria-current="page"] { color: var(--ink); font-weight: 600; }
.tab[aria-current="page"] svg { color: var(--accent); }
.tab-ic { position: relative; display: inline-flex; }
.tdot {
  position: absolute;
  top: -2px;
  right: -5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
}

@media (min-width: 960px) { .tabs { display: none; } }
@media (max-width: 860px) { .landing-page .nav .navlink { display: none; } }
@media (max-width: 560px) { .landing-page .nav .btn { display: none; } .nav { gap: 10px; } }

/* --------------------------------------------------------------------------
   3. BUTTONS, LINKS & INTERACTIVE CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--sh-xs);
  transition: background-color var(--ease-fast), border-color var(--ease-fast), color var(--ease-fast), transform var(--ease-fast), box-shadow var(--ease-fast);
}
.btn:hover { background: var(--surface-soft); border-color: rgba(23, 22, 20, 0.28); }
.btn:active, .btn.is-pressed { transform: scale(0.985); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.44; cursor: not-allowed; transform: none; }

.btn-ink, .btn-red {
  background: var(--ink-surface);
  border-color: var(--ink-surface);
  color: var(--on-ink);
  box-shadow: none;
}
.btn-ink:hover, .btn-red:hover { background: #2A2825; border-color: #2A2825; color: var(--on-ink); }

.btn-love {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: none;
}
.btn-love:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #FFFFFF; }
.btn-love svg { stroke: #FFFFFF; width: 17px; height: 17px; }

.btn-soft {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: none;
}
.btn-soft:hover { background: var(--bg-subtle); }
.btn-soft[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
}
.btn-soft svg { width: 15px; height: 15px; color: var(--muted); }
.btn-soft[aria-pressed="true"] svg { color: var(--accent); }

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #FFFFFF;
}
.btn-danger:hover { background: #96272D; border-color: #96272D; }

.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 15.5px; }

.btn[data-busy] { position: relative; color: transparent !important; }
.btn[data-busy]::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: var(--on-ink);
  animation: qSpin 0.7s linear infinite;
}
@keyframes qSpin { to { transform: rotate(360deg); } }

.link, .inl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color var(--ease-fast), text-decoration-color var(--ease-fast);
}
.link { min-height: 38px; font-size: 14px; }
.inl { display: inline; }
.link:hover, .inl:hover { color: var(--accent); text-decoration-color: var(--accent); }

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  min-height: 36px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--ease-fast);
}
.backlink svg { width: 16px; height: 16px; }
.backlink:hover { color: var(--ink); }

.x {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-xs);
  color: var(--muted);
  transition: background-color var(--ease-fast), color var(--ease-fast);
}
.x:hover { background: var(--bg-subtle); color: var(--ink); }
.x svg { width: 16px; height: 16px; }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .field .label, .label-row .label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.opt-tag { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; }

.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 15.5px;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
}
.input::placeholder { color: var(--quiet); }
.input:hover { border-color: rgba(23, 22, 20, 0.28); }
.input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23, 22, 20, 0.08);
}
.input[aria-invalid="true"] { border-color: var(--danger); background: #FFFDFD; }

textarea.input { height: auto; min-height: 98px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
select.input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2378736B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.otp {
  height: 62px;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-align: center;
}

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.unit { position: relative; }
.unit .input { padding-right: 46px; }
.unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); pointer-events: none; }
.range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.range-to { font-size: 13px; color: var(--muted); }
.field-note { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.field-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--verified); }
.counter { align-self: flex-end; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Chips & Segmented Controls */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.need { padding: 8px; margin: -8px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--danger); }
.chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  transition: background-color var(--ease-fast), border-color var(--ease-fast), color var(--ease-fast);
}
.chip:hover { border-color: rgba(23, 22, 20, 0.32); color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] {
  background: var(--ink-surface);
  border-color: var(--ink-surface);
  color: var(--on-ink);
  font-weight: 550;
}

.count-pill {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: var(--bg-subtle);
  color: var(--muted);
}
.count-pill.ok { background: var(--verified-soft); color: var(--verified); }

.seg {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: 3px;
  border-radius: var(--r-sm);
  background: var(--bg-subtle);
}
.seg::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / var(--n));
  transform: translateX(calc(100% * var(--i)));
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--sh-xs);
  transition: transform 280ms var(--ease), opacity 180ms;
}
.seg.none::before { opacity: 0; }
.seg button {
  position: relative;
  z-index: 1;
  min-height: 36px;
  padding: 0 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}
.seg button[aria-checked="true"] { color: var(--ink); font-weight: 600; }

/* iOS Switch */
.switch {
  position: relative;
  flex: none;
  width: 48px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--bg-hover);
  border: 1px solid var(--line);
  transition: background-color 220ms var(--ease);
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
  transition: transform 240ms var(--ease);
}
.switch[aria-checked="true"] { background: var(--verified); border-color: var(--verified); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* Feedback States */
.err {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--danger);
}
.err svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

.notice {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--body);
}
.notice.ok { background: var(--verified-soft); border-color: rgba(36, 104, 80, 0.22); color: var(--verified); }

.loading {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  min-height: 55vh;
}
.loading-bar { width: 140px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loading-bar i { display: block; width: 42%; height: 100%; background: var(--ink); animation: qLoad 1s ease-in-out infinite alternate; }
@keyframes qLoad { from { transform: translateX(-10%); } to { transform: translateX(150%); } }

#toast {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 950;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
#toast:empty { display: none; }
.toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(460px, 100%);
  padding: 11px 18px;
  border-radius: var(--r-pill);
  background: var(--ink-surface);
  color: var(--on-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.38;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 16px 38px -12px rgba(8, 23, 33, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  pointer-events: auto;
}
.toast svg { width: 15px; height: 15px; flex: none; color: #7EE2B8; }
@media (max-width: 959px) {
  #toast { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
}

/* --------------------------------------------------------------------------
   4. LANDING PAGE — DITTO × A24 HONG KONG TWILIGHT × LIQUID GLASS CINEMA
      Full-Bleed Painted Harbour Hero · Floating Liquid-Glass iPhone ·
      Scalloped Paper-Cut Dividers · Alternating Staggered Editorial Story ·
      Tilted 35mm Hong Kong Film Strip · Midnight Harbour Crush Vault ·
      Frosted-Glass Interactive Privacy · Editorial FAQ & Midnight Footer
   -------------------------------------------------------------------------- */
.dt-landing { position: relative; z-index: 2; display: block; overflow-x: clip; background: transparent; }

/* Tactile Analog Film Grain Overlay */
.dt-grain { display: none; }

/* Organic Scalloped Paper-Cut Dividers */
.dt-wave {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 6;
  line-height: 0;
  color: var(--bg);
  pointer-events: none;
}
.dt-wave.dt-wave-end { bottom: -1px; }
.dt-wave.dt-wave-start { top: -1px; }
.dt-wave svg { width: 100%; height: clamp(22px, 3vw, 44px); display: block; }

/* --- ACT I: PURE ARCHITECTURAL VICTORIA HARBOUR TWILIGHT HERO (ZERO AI ART) --- */
.dt-hero {
  position: relative;
  min-height: min(94svh, 840px);
  padding: calc(var(--nav-h) + clamp(16px, 2.4vw, 34px)) 0 clamp(60px, 6.2vw, 88px);
  display: flex;
  align-items: center;
  background: linear-gradient(166deg, #1D3240 0%, #365665 36%, #6B858C 68%, #CFA88B 100%);
  color: var(--on-ink);
  overflow: hidden;
}
.dt-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.dt-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 72% 76%, rgba(255, 214, 172, 0.34), transparent 72%),
    radial-gradient(540px 360px at 18% 24%, rgba(12, 28, 40, 0.38), transparent 72%);
}
.dt-horizon-silk {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  pointer-events: none;
  background:
    radial-gradient(80% 90% at 50% 100%, rgba(255, 224, 196, 0.14) 0%, transparent 72%),
    linear-gradient(180deg, transparent 0%, rgba(255, 236, 216, 0.06) 100%);
}
.dt-skyline { display: none !important; }
.dt-pill-sep { font-style: normal; opacity: 0.45; }
.dt-glass-pill b.num { color: #FFE3CA; font-weight: 700; }

.dt-hero-grid {
  position: relative;
  z-index: 4;
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  align-items: center;
}
.dt-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.dt-glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: rgba(10, 24, 36, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 26px -14px rgba(6, 16, 26, 0.36);
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.03em;
  color: rgba(250, 248, 242, 0.94);
}
.ap-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose-glow);
    animation: qlPulseRing 2.6s var(--ease) infinite;
}

.dt-h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(46px, 6.2vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #FAF8F2;
  text-shadow: 0 12px 34px rgba(8, 23, 33, 0.28);
}
:lang(en) .dt-h1 { font-family: var(--serif-en); font-weight: 400; letter-spacing: -0.02em; line-height: 0.98; font-size: clamp(44px, 4.7vw, 68px); }
.dt-h1 > span, .dt-h1 > em { display: block; }
.dt-h1-script {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  color: #FFE0CE;
  margin-top: 2px;
}
:lang(en) .dt-h1-script {
  font-family: var(--serif-italic);
  font-style: italic;
}

.dt-lead {
  max-width: 32em;
  font-size: clamp(16px, 1.55vw, 18.5px);
  line-height: 1.65;
  color: rgba(250, 248, 242, 0.90);
  text-shadow: 0 2px 12px rgba(8, 23, 33, 0.22);
}

/* Liquid-Glass Capsule Email Form */
.dt-join {
  width: 100%;
  max-width: 470px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 5px 5px 18px;
  border-radius: var(--r-pill);
  background: rgba(14, 30, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 40px -18px rgba(8, 23, 33, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease), box-shadow 260ms var(--ease);
}
.dt-join:focus-within {
  background: rgba(14, 30, 42, 0.56);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14), 0 22px 48px -18px rgba(8, 23, 33, 0.45);
}
.dt-join input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  color: #FFFFFF;
  font-size: 15.5px;
  outline: none;
}
.dt-join input::placeholder { color: rgba(250, 248, 242, 0.68); }

.dt-btn-ivory {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  background: #FAF8F2;
  color: var(--ink-surface);
  font-size: 14.5px;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 6px 20px -6px rgba(8, 23, 33, 0.35);
}
.dt-btn-ivory:hover { background: #FFFFFF; }
.dt-btn-ivory.lg, .dt-btn-glass.lg { min-height: 52px; padding: 0 30px; font-size: 15.5px; }

.dt-btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  background: rgba(14, 30, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
  color: #FAF8F2;
  font-size: 14.5px;
  font-weight: 550;
}
.dt-btn-glass:hover { background: rgba(255, 255, 255, 0.24); border-color: rgba(255, 255, 255, 0.54); }

.dt-consent { margin-top: -10px; max-width: 470px; font-size: 12.5px; line-height: 1.55; color: rgba(250, 248, 242, 0.72); }
.dt-consent .inl { color: #FAF8F2; text-decoration-color: rgba(250, 248, 242, 0.45); }

.dt-trust {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(250, 248, 242, 0.90);
}
.dt-trust li { display: inline-flex; align-items: center; gap: 6px; }
.dt-trust svg { width: 14px; height: 14px; color: #A6F0CC; }

.dt-count-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(8, 23, 33, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  color: rgba(250, 248, 242, 0.78);
}
.dt-count-bar b { font-size: 14.5px; font-weight: 650; color: #FAF8F2; }

/* Welcome back pill over twilight hero */
.d-welcome {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
}
.dw-face { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ink-surface); color: #FAF8F2; font-weight: 600; }
.dw-face img { width: 100%; height: 100%; object-fit: cover; }
.dw-txt { display: flex; flex-direction: column; }
.dw-txt b { font-size: 14.5px; color: #FAF8F2; }
.dw-txt span { font-size: 12.5px; color: rgba(250, 248, 242, 0.78); }
.d-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.d-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: var(--r-pill); background: #FAF8F2; color: var(--ink-surface); font-size: 14.5px; font-weight: 650; }
.d-link { display: inline-flex; align-items: center; min-height: 40px; font-size: 14.5px; font-weight: 500; color: #FAF8F2; text-decoration: underline; text-decoration-color: rgba(250, 248, 242, 0.45); text-underline-offset: 4px; }

/* --- FLOATING LIQUID-GLASS IPHONE (DITTO × APPLE LIQUID GLASS) --- */
.dt-hero-phone { display: flex; justify-content: center; }
.dt-phone-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.dt-phone { width: 100%; max-width: 374px; }
.dt-phone-shell {
  position: relative;
  padding: 11px;
  border-radius: 50px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.11) 46%, rgba(8, 23, 33, 0.24) 100%);
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow: var(--sh-glass);
}
.dt-phone-island {
  position: absolute;
  top: 21px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  border-radius: var(--r-pill);
  background: rgba(8, 18, 28, 0.88);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 9px;
}
.dt-phone-island span { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3A568C, #070C16 70%); }
.dt-phone-status {
  position: absolute;
  top: 25px;
  left: 32px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  pointer-events: none;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dt-sig { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 10px; }
.dt-sig i { width: 2.8px; border-radius: 1.5px; background: var(--ink); display: block; }
.dt-sig i:nth-child(1) { height: 4px; }
.dt-sig i:nth-child(2) { height: 7px; }
.dt-sig i:nth-child(3) { height: 10px; }
.dt-phone-home {
  position: absolute;
  bottom: 19px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  border-radius: 99px;
  background: rgba(21, 27, 32, 0.22);
  z-index: 6;
}
.dt-phone-screen {
  position: relative;
  min-height: 452px;
  border-radius: 39px;
  background: rgba(250, 248, 243, 0.96);
  padding: 50px 14px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

/* Authentic iMessage Drop UI inside Liquid-Glass Phone */
.dt-imsg { display: flex; flex-direction: column; gap: 12px; flex: 1; animation: qlAppIn 360ms var(--ease-expo) backwards; }
.dt-imsg-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.dt-imsg-av, .dt-imsg-face {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: none;
}
.dt-imsg-av { display: grid; place-items: center; background: var(--ink-surface); color: #FAF8F2; font-family: var(--serif-en); font-size: 17px; }
.dt-imsg-face { object-fit: cover; }
.dt-imsg-head b { display: block; font-size: 13.5px; font-weight: 650; line-height: 1.2; color: var(--ink); }
.dt-imsg-head small { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.dt-imsg-head svg { width: 10px; height: 10px; color: var(--verified); }

.dt-imsg-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.dt-bub {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.45;
  animation: qlBubIn 360ms var(--ease-expo) backwards;
}
.dt-bub.in { align-self: flex-start; background: #E9E8E2; color: var(--ink); border-bottom-left-radius: 6px; }
.dt-bub.in.confirm { background: #E4F2EA; color: #124D35; }
.dt-bub.out { align-self: flex-end; background: linear-gradient(180deg, #1F8FFF 0%, #0A7CFF 100%); color: #FFFFFF; border-bottom-right-radius: 6px; }

.dt-match-mini {
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  display: grid;
  grid-template-columns: 108px 1fr;
  animation: qlRise 500ms var(--ease-expo) 120ms backwards;
}
.dt-monogram-plate {
  position: relative;
  height: 132px;
  background: linear-gradient(155deg, #1E3444 0%, #4E2D3E 100%);
  color: #FAF8F2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
}
.dt-mono-orb {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 184, 0.24) 0%, transparent 70%);
  pointer-events: none;
}
.dt-monogram-plate::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(250, 248, 242, 0.16);
  border-radius: 12px;
  pointer-events: none;
}
.dt-mono-letter {
  position: relative;
  z-index: 1;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 27px;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #FFE4CE;
}
.dt-mono-sub {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(250, 248, 242, 0.72);
}
.dt-imsg-av.rose { background: var(--accent); font-style: italic; }
.dt-match-score {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: rgba(8, 23, 33, 0.78);
  color: #FAF8F2;
  font-size: 11px;
  font-weight: 700;
}
.dt-match-cap { padding: 11px 12px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.dt-match-cap strong { font-family: var(--serif-en); font-size: 24px; font-weight: 400; line-height: 1.05; color: var(--ink); }
.dt-match-cap span { font-size: 11.5px; color: var(--muted); }
.dt-match-cap p { font-size: 11.5px; line-height: 1.4; color: var(--body); margin-top: 4px; }

.dt-imsg-acts { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin-top: auto; padding-top: 6px; }
.dt-mini-btn { height: 40px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; }
.dt-mini-btn.primary { background: var(--accent); color: #FFFFFF; }
.dt-mini-btn.primary:hover { background: var(--accent-hover); }
.dt-mini-btn.ghost { background: var(--surface); border: 1px solid var(--line-strong); color: var(--body); }

/* Quiz & Chat modes inside Liquid-Glass Phone */
.dt-qbar { height: 4px; border-radius: 99px; background: rgba(21, 27, 32, 0.08); overflow: hidden; }
.dt-qbar i { display: block; height: 100%; background: var(--ink-surface); transition: width 360ms var(--ease-expo); }
.dt-qcard { background: var(--surface); border-radius: 20px; padding: 18px 14px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.dt-qtag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.dt-qcard h4 { font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.35; margin: 0; color: var(--ink); }
.dt-likert { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.dt-likert button { aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.dt-likert button[aria-pressed="true"] { background: var(--ink-surface); border-color: var(--ink-surface); color: #FAF8F2; transform: scale(1.08); animation: qlRingPop 460ms var(--ease-expo); }
.dt-qends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.dt-qhint { margin-top: auto; text-align: center; font-size: 11.5px; color: var(--muted); }

.dt-chat-spot { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-xs); }
.dt-spot-pin { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.dt-chat-spot b { display: block; font-size: 12.5px; color: var(--ink); }
.dt-chat-spot small { font-size: 11px; color: var(--muted); }
.dt-chat-bar-in { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 5px 5px 5px 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-strong); font-size: 12.5px; color: var(--muted); }
.dt-chat-bar-in i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; background: #0A7CFF; color: #FFFFFF; }

/* Liquid-Glass Mode Dock Beneath Phone */
.dt-phone-dock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(8, 23, 33, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.dt-phone-dock button {
  height: 34px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 550;
  color: rgba(250, 248, 242, 0.80);
}
.dt-phone-dock button:hover { color: #FFFFFF; }
.dt-phone-dock button[aria-selected="true"] {
  background: #FAF8F2;
  color: var(--ink-surface);
  font-weight: 650;
  box-shadow: var(--sh-xs);
}

/* --- 9-UNIVERSITY EDITORIAL BAND --- */
.dt-schools {
  background: transparent;
  padding: 22px 0 24px;
}
.dt-schools-in { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.dt-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
}
.dt-eyebrow.light { color: var(--gold); }
.dt-school-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 500;
  color: var(--body);
}

/* --- SHARED EDITORIAL HEADERS --- */
.dt-sec { padding-top: clamp(84px, 10vw, 136px); contain: layout style; }
.dt-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(44px, 6vw, 72px); }
.dt-head.center { align-items: center; text-align: center; }
.dt-h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}
:lang(en) .dt-h2 { font-family: var(--serif-en); font-weight: 400; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; }
.dt-h2.sm { font-size: clamp(28px, 3.8vw, 46px); }
.dt-h2.light { color: #FAF8F2; text-shadow: 0 8px 28px rgba(4, 12, 20, 0.36); }
.dt-script-sub {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--muted);
  max-width: 34em;
  line-height: 1.45;
}
.dt-script-sub.light { color: #FFD9C6; }

/* --- ACT II: DITTO-STYLE ALTERNATING STAGGERED EDITORIAL STORY --- */
.dt-stagger-list {
  list-style: none;
  padding: 0;
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.dt-stagger-card {
  width: 100%;
  max-width: 460px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dt-stagger-vis {
  border-radius: 20px;
  background: var(--bg);
  padding: 20px;
  border: 1px solid var(--line);
}
.dt-step-vis { display: flex; flex-direction: column; gap: 14px; }
.dt-step-vis.dark { background: var(--ink-surface); color: #FAF8F2; margin: -20px; padding: 24px; border-radius: 20px; }
.dt-sv-q { font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--ink); }
.dt-sv-scale { display: flex; justify-content: space-between; gap: 6px; }
.dt-sv-scale i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 600; background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted); }
.dt-sv-scale i.on { background: var(--ink-surface); border-color: var(--ink-surface); color: #FAF8F2; transform: scale(1.1); }
.dt-sv-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.dt-sv-tags span { padding: 5px 11px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--body); }
.dt-sv-tags span.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 600; }

.dt-sv-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--on-ink-2); }
.dt-sv-top em { font-style: normal; padding: 3px 9px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.12); color: #FAF8F2; font-weight: 600; }
.dt-sv-clock { font-size: 36px; font-weight: 650; letter-spacing: -0.03em; color: #FAF8F2; }
.dt-sv-ok { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(30, 123, 84, 0.25); color: #9BECC2; font-size: 12.5px; font-weight: 600; }
.dt-sv-ok svg { width: 14px; height: 14px; }

.dt-step-vis.vis-reveal { flex-direction: row; align-items: center; gap: 16px; }
.dt-sv-polaroid { position: relative; width: 108px; height: 132px; flex: none; padding: 8px; background: var(--surface); border-radius: 14px; box-shadow: var(--sh-sm); transform: rotate(-2.5deg); }
.dt-sv-polaroid.mono-card {
  background: linear-gradient(155deg, #1E3340 0%, #4E2C3E 100%);
  border: 4px solid var(--surface);
  color: #FAF8F2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.dt-sv-letter { font-family: var(--serif-en); font-style: italic; font-size: 50px; line-height: 0.9; color: #FFE3CE; }
.dt-sv-polaroid.mono-card small { font-size: 9px; letter-spacing: 0.08em; color: rgba(250, 248, 242, 0.72); }
.dt-sv-badge { position: absolute; right: -8px; bottom: -8px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--accent); color: #FFFFFF; font-size: 12px; font-weight: 700; box-shadow: var(--sh-xs); }
.dt-sv-meta { display: flex; flex-direction: column; gap: 4px; }
.dt-sv-meta strong { font-family: var(--serif-en); font-size: 30px; font-weight: 400; line-height: 1; color: var(--ink); }
.dt-sv-meta span { font-size: 12.5px; color: var(--muted); }
.dt-sv-meta small { font-size: 12.5px; color: var(--body); line-height: 1.45; margin-top: 4px; }

.dt-sv-lock { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--verified); }
.dt-sv-lock svg { width: 12px; height: 12px; }

.dt-stagger-txt { padding: 0 6px 6px; display: flex; flex-direction: column; gap: 6px; }
.dt-stagger-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--muted); }
.dt-step-idx { font-family: var(--serif-en); font-style: italic; font-size: 20px; color: var(--accent); }
.dt-stagger-txt h3 { font-family: var(--serif); font-size: 23px; font-weight: 550; color: var(--ink); }
.dt-stagger-txt p { font-size: 14.5px; line-height: 1.7; color: var(--body); }

/* --- CONTINUOUS EDITORIAL MARQUEE --- */

.dt-marquee {
  contain: layout paint style;
  margin-top: 28px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: var(--bg-subtle);
  overflow: hidden;
  white-space: nowrap;
}
.dt-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  animation: dtMarquee 32s linear infinite;
}
.dt-marquee:hover .dt-marquee-track { animation-play-state: paused; }
.dt-marquee-track span {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.dt-marquee-track i { font-style: normal; font-size: 12px; color: var(--accent); opacity: 0.7; }
@keyframes dtMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* Match Dossier & Manifesto Contrast */
.dt-dossier-band {
  margin-top: clamp(72px, 9vw, 116px);
  display: grid;
  gap: 40px;
  align-items: center;
}
.dt-dossier-band.dt-dossier-first { margin-top: 0; }
.dt-dossier-col { display: flex; flex-direction: column; gap: 16px; }
.dt-check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.dt-check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; color: var(--body); }
.dt-check-list svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--accent); }

.dt-dossier-frame {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
}
.dt-dossier-pic { position: relative; height: 196px; border-radius: 20px; overflow: hidden; }
.dt-dossier-monogram {
  background: radial-gradient(circle at 28% 24%, #355060 0%, #192B37 54%, #101D26 100%);
  color: #FAF8F2;
  display: grid;
  place-items: center;
}
.dt-dm-ring {
  position: absolute;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 224, 200, 0.28);
}
.dt-dm-letter {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 74px;
  line-height: 1;
  color: #FFE3CA;
  position: relative;
  z-index: 1;
}
.dt-dm-code {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10.5px;
  letter-spacing: 0.09em;
  color: rgba(250, 248, 242, 0.62);
}
.dt-pic-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(8, 23, 33, 0.72);
  color: #FAF8F2;
  font-size: 11.5px;
  font-weight: 550;
}
.dt-pic-tag svg { width: 12px; height: 12px; }
.dt-dossier-frame .placard { border: 0; box-shadow: none; padding: 8px 6px 4px; background: transparent; }

.dt-vs-wrap {
  margin-top: clamp(48px, 6vw, 76px);
  display: grid;
  gap: 20px;
}
.dt-vs-card {
  border-radius: 26px;
  padding: clamp(24px, 3.5vw, 36px);
  border: 1px solid var(--line);
}
.dt-vs-card.them { background: var(--bg-subtle); color: var(--muted); }
.dt-vs-card.us { background: var(--surface); border-color: var(--line-strong); box-shadow: var(--sh-sm); }
.dt-vs-kicker { display: block; font-family: var(--serif); font-size: 23px; font-weight: 550; margin-bottom: 16px; color: var(--ink); }
.dt-vs-card.them .dt-vs-kicker { color: var(--muted); }
.dt-vs-card ul { list-style: none; padding: 0; display: grid; }
.dt-vs-card li { display: flex; gap: 11px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.dt-vs-card li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.dt-vs-card.them li svg { color: var(--quiet); }
.dt-vs-card.us li svg { color: var(--accent); }

/* --- ACT II (PROMOTED): MIDNIGHT HARBOUR CRUSH LIST VAULT (PURE GRAPHIC) --- */
.dt-midnight {
  position: relative;
  margin-top: 0;
  padding: clamp(92px, 10.5vw, 140px) 0;
  background: radial-gradient(ellipse 82% 58% at 50% 16%, #1B3D52 0%, #0E2332 48%, #07151F 100%);
  color: #FAF8F2;
  overflow: hidden;
}
.dt-midnight-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.dt-mid-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 320px at 50% 24%, rgba(214, 51, 108, 0.14), transparent 72%),
    radial-gradient(680px 320px at 50% 96%, rgba(124, 174, 198, 0.12), transparent 74%);
}
.dt-midnight-bg .dt-skyline { color: #9FC4D8; opacity: 0.36; }
.dt-mid-cta { margin-top: 14px; }
.dt-mid-in {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.dt-mid-body { max-width: 36em; font-size: 16px; line-height: 1.72; color: rgba(246, 244, 236, 0.80); }

.dt-vault {
  width: 100%;
  max-width: 620px;
  margin-top: 22px;
  padding: 14px;
  border-radius: 28px;
  background: rgba(8, 23, 33, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: var(--sh-glass);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.dt-vault-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: rgba(246, 244, 236, 0.62);
  font-size: 14.5px;
}
.dt-vault-row small { font-size: 12px; color: rgba(246, 244, 236, 0.44); }
.dt-vault-row.on {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
}
.dt-vault-row em {
  position: relative;
  overflow: hidden;
  font-style: normal;
  font-size: 12px;
  font-weight: 650;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #FFFFFF;
}

/* --- ACT V: PRIVACY BY DESIGN ON WARM PAPER --- */
.dt-priv-grid { display: grid; gap: 20px; }
.dt-priv-card {
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dt-priv-vis {
  min-height: 178px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 20px;
}
.dt-priv-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); }
.dt-priv-card p { font-size: 14.5px; line-height: 1.68; color: var(--body); }

/* Privacy Visuals + Real Frosted Chloe Portrait Unlock on Hover */
.v-code { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.v-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; width: 100%; max-width: 222px; }
.v-boxes i { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; max-height: 40px; border-radius: 9px; font-style: normal; font-family: var(--mono); font-size: clamp(13px, 1.4vw, 16px); font-weight: 650; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); }
.v-ok, .v-lock { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; }
.v-ok { background: var(--verified-soft); color: var(--verified); }
.v-ok svg, .v-lock svg { width: 13px; height: 13px; }
.v-lock { background: var(--surface); border: 1px solid var(--line); color: var(--body); }

.v-photo { display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer; }
.v-pic-real {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 96px;
  height: 114px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-sm);
}
.v-pic-graphic {
  background: linear-gradient(150deg, #213746 0%, #583143 100%);
  color: #FAF8F2;
}
.v-mono-glyph {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 46px;
  line-height: 0.9;
  color: #FFE4CE;
  transform: scale(0.92);
  transition: transform 420ms var(--ease-expo);
}
.v-mono-meta {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(250, 248, 242, 0.74);
}
.v-frost-veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(
    -45deg,
    rgba(246, 244, 236, 0.94) 0px,
    rgba(246, 244, 236, 0.94) 6px,
    rgba(232, 228, 218, 0.94) 6px,
    rgba(232, 228, 218, 0.94) 12px
  );
  color: var(--ink);
  transition: opacity 380ms var(--ease-expo), transform 420ms var(--ease-expo);
}
.v-frost-veil svg { width: 18px; height: 18px; opacity: 0.72; }
.dt-peek-ok {
  position: absolute;
  bottom: 7px;
  right: 7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--verified);
  color: #FFFFFF;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 260ms var(--ease), transform 320ms var(--ease-spring);
}
.dt-peek-ok svg { width: 13px; height: 13px; }
.dt-priv-card:hover .v-frost-veil, .dt-priv-card.is-unlocked .v-frost-veil { opacity: 0; transform: scale(1.06); }
.dt-priv-card:hover .v-mono-glyph, .dt-priv-card.is-unlocked .v-mono-glyph { transform: scale(1.04); }
.dt-priv-card:hover .dt-peek-ok, .dt-priv-card.is-unlocked .dt-peek-ok { opacity: 1; transform: scale(1); }

.v-e2e { display: flex; flex-direction: column; gap: 7px; width: 100%; max-width: 230px; }
.v-bub { align-self: flex-end; padding: 7px 12px; border-radius: 14px 14px 4px 14px; background: var(--ink-surface); color: #FAF8F2; font-size: 13px; }
.v-cap { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.v-cap svg { width: 12px; height: 12px; flex: none; }
.v-cipher { padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; line-height: 1.5; color: var(--muted); }

.dt-more { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 14px; }
.dt-more li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 550; color: var(--ink); }
.dt-more-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; flex: none; color: var(--ink); }
.dt-more-ic svg { width: 17px; height: 17px; }
.dt-legal-bar { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* --- ACT VI: EDITORIAL FAQ --- */
.dt-faq-sec { max-width: 820px; }
.dt-faq-sub { font-size: 14.5px; color: var(--muted); }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 12px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { position: relative; width: 14px; height: 14px; flex: none; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: var(--muted); }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-a { overflow: hidden; }
.faq-item p { padding: 0 12px 24px; font-size: 15.5px; line-height: 1.72; color: var(--body); max-width: 62ch; }

/* --- ACT VII: GOLDEN TWILIGHT CLOSING CINEMA & DEEP MIDNIGHT FOOTER --- */
.dt-close {
  position: relative;
  margin-top: clamp(84px, 10vw, 136px);
  padding: clamp(112px, 13vw, 168px) 0 clamp(84px, 10vw, 128px);
  background: linear-gradient(180deg, #243C4B 0%, #142836 52%, #081721 100%);
  color: #FAF8F2;
  text-align: center;
  overflow: hidden;
}
.dt-close-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.dt-close-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(640px 360px at 50% 34%, rgba(255, 206, 168, 0.20), transparent 72%);
}
.dt-close-bg .dt-skyline { color: #9FC4D8; opacity: 0.28; }
.dt-close-in { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.dt-close-h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5.8vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #FAF8F2;
  text-shadow: 0 10px 32px rgba(8, 23, 33, 0.35);
}
:lang(en) .dt-close-h2 { font-family: var(--serif-en); font-weight: 400; font-size: clamp(46px, 6.4vw, 84px); }
.dt-close-clock { font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.02em; color: #FFE0CE; }
.dt-close-cta { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* Ditto-style Deep Midnight Editorial Footer */
.foot2 {
  background: var(--ink-surface);
  color: var(--on-ink-2);
  border-top: 1px solid var(--line-dark);
  padding: 56px 0 40px;
}
.foot2 .plate b { color: #FAF8F2; }
.foot2 .plate small { color: var(--gold); border-color: rgba(236, 192, 120, 0.36); }
.foot-top { display: grid; gap: 36px; }
.foot-brand2 p { margin-top: 10px; max-width: 26em; font-size: 13.5px; color: var(--on-ink-2); line-height: 1.65; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.foot-h { font-size: 11.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-muted); margin-bottom: 4px; }
.foot-a { font-size: 14px; color: var(--on-ink-2); text-decoration: none; padding: 2px 0; }
.foot-a:hover { color: #FFFFFF; }
.foot-a.dim { color: var(--on-ink-muted); cursor: default; }
.foot-mark { display: none; }
.foot-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 12px;
  color: var(--on-ink-muted);
}

/* Responsive Cinema Breakpoints */
@media (min-width: 760px) {
  .dt-priv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dt-more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dt-vs-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .dt-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 52px; }
  .dt-stagger-list { max-width: 1040px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; align-items: start; }
  .dt-stagger-card { max-width: none; height: 100%; }
  .dt-stagger-card:nth-child(even) { margin-top: 26px; }
  .dt-dossier-band { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 60px; }
  .foot-top { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .foot-cols { grid-template-columns: repeat(3, minmax(140px, 180px)); gap: 36px; }
}
@media (max-width: 560px) {
  .dt-join { flex-direction: column; align-items: stretch; border-radius: 22px; padding: 8px; }
  .dt-join input { padding: 0 10px; }
  .dt-join .dt-btn-ivory { width: 100%; }
  .dt-phone-shell { border-radius: 42px; padding: 9px; }
  .dt-phone-screen { border-radius: 33px; min-height: 468px; }
  .dt-step-vis.vis-reveal { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   5. APP LAYOUT SHELL & FOOTER
   -------------------------------------------------------------------------- */
.app-main {
  position: relative;
  z-index: 2;
  padding-top: clamp(24px, 4vw, 44px);
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  min-height: 68vh;
}
@media (min-width: 960px) { .app-main { padding-bottom: 72px; } }

.afoot {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  margin-top: 48px;
}
.afoot-in {
  padding-top: 32px;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.afoot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.afoot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.afoot-h { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.afoot-btn { font-size: 13.5px; color: var(--body); text-decoration: none; padding: 2px 0; text-align: left; }
.afoot-btn:hover { color: var(--ink); }
.afoot-btn.muted { color: var(--muted); cursor: default; }
.afoot-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
@media (min-width: 960px) {
  .afoot-in { padding-bottom: 40px; }
  .afoot-cols { grid-template-columns: repeat(3, minmax(0, 210px)); }
}

/* --------------------------------------------------------------------------
   6. HOME — CALM WEEKLY RHYTHM (EDITORIAL ASYMMETRY, NO BOX CLUTTER)
   -------------------------------------------------------------------------- */
.home-page {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hello-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hello-title { display: flex; flex-direction: column; gap: 6px; }
.hello-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}
.hello-stamp::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.hello {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  color: var(--ink);
}
.hello-sub { font-size: 15px; color: var(--body); }

/* Hairline 4-step Weekly Progress Ledger (NO white card box!) */
.week-track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}
.week-track li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.wt-dot {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: var(--num);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  background: var(--bg);
}
.wt-dot svg { width: 13px; height: 13px; }
.week-track li.done .wt-dot {
  background: var(--verified-soft);
  border-color: rgba(36, 104, 80, 0.28);
  color: var(--verified);
}
.week-track li.cur .wt-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.wt-txt { display: flex; flex-direction: column; gap: 1px; }
.wt-txt b { font-size: 14px; font-weight: 600; color: var(--ink); }
.wt-txt small { font-size: 12px; color: var(--muted); }
.week-track li.cur .wt-txt small { color: var(--accent); font-weight: 600; }

/* The Wednesday 21:00 Focal Panel (Single Warm Charcoal Anchor) */
.card-ink.dropcard {
  border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 40px);
  background: var(--ink-surface);
  color: var(--on-ink);
}
.dc-inner { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.dc-week { font-size: 13.5px; font-weight: 550; color: var(--on-ink-2); }
.route {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-xs);
  background: rgba(247, 245, 240, 0.1);
  color: var(--on-ink);
}
.dc-clock { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; }
.dc-label { color: var(--on-ink-muted); }
.big-count {
  font-family: var(--num);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--on-ink);
}
.dc-note { font-size: 14px; color: var(--on-ink-2); }
.dc-foot { margin-top: auto; padding-top: 8px; }
.dropcard .btn-love {
  background: var(--on-ink);
  border-color: var(--on-ink);
  color: var(--ink-surface);
  min-height: 48px;
}
.dropcard .btn-love:hover { background: #FFFFFF; border-color: #FFFFFF; }
.dropcard .btn-red {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.joined {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(130, 214, 178, 0.28);
  background: rgba(36, 104, 80, 0.18);
  color: #A8E6CC;
  font-size: 14px;
  font-weight: 550;
}
.joined svg { width: 16px; height: 16px; }
.dc-out {
  align-self: center;
  color: var(--on-ink-muted);
  text-decoration-color: rgba(247, 245, 240, 0.22);
  font-size: 13px;
}
.dc-out:hover { color: var(--on-ink); text-decoration-color: var(--on-ink); }
.burst { display: none; }

/* Your Match Card Preview */
.sec-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}

.mc-in {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 14px 16px;
  align-items: center;
}
.mc-photo {
  width: 80px;
  height: 100px;
  border-radius: var(--r-md);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg-subtle);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 28px;
}
.mc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--ease); }
.mc-photo:hover img { transform: scale(1.03); }
.mc-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mc-name { font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.mc-meta { font-size: 13.5px; color: var(--muted); }
.mc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mc-tags span {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-subtle);
  color: var(--body);
}
.mc-meter { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.mc-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.mc-row b { font-family: var(--num); color: var(--ink); font-weight: 600; }
.mc-bar { height: 3px; border-radius: 3px; background: var(--bg-subtle); overflow: hidden; }
.mc-bar i { display: block; height: 100%; background: var(--ink-surface); border-radius: 3px; }
.mc-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
  text-align: left;
  transition: background-color var(--ease-fast);
}
.mc-tip:hover { background: var(--bg-subtle); }
.mc-tip svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.mc-tip.ok {
  justify-content: flex-start;
  background: var(--verified-soft);
  border-color: rgba(36, 104, 80, 0.2);
  color: var(--verified);
  cursor: default;
}
.mc-tip.ok svg { color: var(--verified); }
.mc-note { grid-column: 1 / -1; }

/* Private Crush List (Recessed Architectural Stone Band) */
.crush-feature {
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.8vw, 38px);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.crush-feature-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.crush-feature-art { display: none; }
.crush-feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.crush-feature-kicker svg { width: 13px; height: 13px; }
.crush-feature h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); font-weight: 600; color: var(--ink); margin: 6px 0; }
.crush-feature-lead { font-size: 14.5px; color: var(--body); max-width: 38em; }
.crush-feature-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.crush-feature-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.crush-feature-count { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.crush-feature-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.crush-feature-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px 4px 12px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 14px;
}
.crush-feature-entry { display: flex; gap: 8px; }
.crush-feature-entry .input { flex: 1 1 auto; min-width: 0; height: 42px; }
.crush-feature-entry .btn {
  min-height: 42px;
  padding: 0 18px;
  background: var(--ink-surface);
  border-color: var(--ink-surface);
  color: var(--on-ink);
}
.crush-feature-entry .btn:hover { background: #2B2926; }
.crush-feature-privacy { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: var(--muted); }
.crush-feature-privacy svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--verified); }
.crush-feature-beta { font-size: 12.5px; color: var(--muted); }

/* Home Side & Promises */
.home-side { display: flex; flex-direction: column; gap: 20px; }
.invite-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}
.invite-compact-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.invite-compact-mark {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-xs);
  background: var(--bg-subtle);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}
.invite-compact h2 { font-size: 14.5px; font-weight: 600; color: var(--ink); }

.tips { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tips li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--body); line-height: 1.55; }
.tips svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--verified); }
.tips-in { display: flex; flex-direction: column; gap: 12px; }

/* Four Promises — Hairline Architectural Strip (NOT boxed icon cards!) */
.promise { display: flex; flex-direction: column; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.promise-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.promise-title { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); }
.promise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
.promise-item { display: flex; flex-direction: column; gap: 5px; }
.pr-ic { width: 22px; height: 22px; color: var(--accent); margin-bottom: 4px; }
.pr-ic svg { width: 20px; height: 20px; }
.promise-item b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.promise-item > span:last-child { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.home-note { text-align: center; }

@media (min-width: 1024px) {
  .home-page {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
  }
  .home-page > .notice { grid-column: 1 / -1; }
  .home-page > .hello-row {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .home-page > .beta-match-sec { grid-column: 1 / -1; }
  .home-page > .week-track { grid-column: 1 / -1; }
  .week-track li { flex-direction: row; align-items: center; gap: 12px; }
  .home-page > .dropcard { grid-column: 1 / span 7; align-self: stretch; }
  .home-page > .mycard { grid-column: 8 / span 5; }
  .mc-in { grid-template-columns: 1fr; }
  .mc-photo { width: 100%; height: auto; aspect-ratio: 4 / 3.6; }
  .home-page > .crush-sec { grid-column: 1 / span 7; }
  .home-page > .home-side { grid-column: 8 / span 5; }
  .home-page > .promise { grid-column: 1 / -1; margin-top: 8px; }
  .promise-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-page > .home-note { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   7. MATCH REVEAL, WAITING & MUTUAL CELEBRATION
   -------------------------------------------------------------------------- */
.match-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.reveal {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gallery { display: flex; flex-direction: column; gap: 12px; }
.mphoto-stage {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
}
.mphoto-btn { display: block; width: 100%; padding: 0; }
.mphoto {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 32%;
}
.mphoto.empty {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 64px;
  color: var(--muted);
}
.pdots {
  position: absolute;
  top: 12px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
  pointer-events: none;
}
.pdots i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.45); }
.pdots i.on { background: #FFFFFF; }

.mphoto-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: transform var(--ease-fast), background-color var(--ease-fast);
}
.mphoto-zoom:hover { background: #FFFFFF; transform: none; }

.thumbs { display: flex; gap: 8px; }
.thumbs button {
  width: 52px;
  height: 64px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1.5px solid transparent;
  padding: 2px;
  background: transparent;
}
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }

/* The Editorial Invitation Card (Placard) */
.placard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--sh-sm);
}
.placard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.placard .route { background: var(--bg-subtle); color: var(--ink); }
.dest {
  font-family: var(--serif);
  font-size: var(--dest-fs, clamp(42px, 6vw, 60px));
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 6px 0 2px;
}
:lang(en) .dest { font-weight: 400; }
.rollwin { height: 76px; overflow: hidden; }
.rollwin .dest { height: 76px; display: flex; align-items: center; margin: 0; }
.roll { animation: qRoll 2.2s var(--ease) forwards; }
@keyframes qRoll { from { transform: translateY(0); } to { transform: translateY(var(--roll-end)); } }
.fade { opacity: 0; animation: qFade 0.5s ease 2.4s forwards; }
.fade.now { animation-delay: 0s; opacity: 1; }
@keyframes qFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pc-meta { font-size: 15px; font-weight: 500; color: var(--body); }
.dash { border-top: 1px solid var(--line); margin: 12px 0 8px; }
.reason { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink); padding: 2px 0; }
.tick {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.pc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.fit {
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
}
.pc-score { display: inline-flex; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pc-score b { font-size: 28px; font-weight: 600; color: var(--ink); line-height: 1; }

/* About Dossier & Prompt */
.about-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.about-card.flat { padding: 8px 0 16px; border-top: 0; }
.about-h { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fit-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--verified-soft);
  color: var(--verified);
  font-size: 13.5px;
  font-weight: 500;
}
.fit-line svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.about-bio { font-family: var(--serif); font-size: 18px; line-height: 1.65; color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-size: 14.5px; font-weight: 550; color: var(--ink); }
.about-group { display: flex; flex-direction: column; gap: 8px; }
.about-sub { font-size: 12px; font-weight: 600; color: var(--muted); }
.about-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.about-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--bg-subtle);
  color: var(--body);
  font-size: 13px;
  font-weight: 500;
}
.want-block { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.want-tags span.hit { background: var(--verified-soft); color: var(--verified); }
.want-tags svg { width: 12px; height: 12px; }
.want-note { font-size: 13px; color: var(--muted); }

.prompt {
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: var(--bg-subtle);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prompt-text { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--ink); }

.decide { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.decide-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.decide-btns .btn { min-height: 50px; }
.decide-note { text-align: center; }

@media (min-width: 960px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reveal {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    column-gap: 56px;
    row-gap: 20px;
    align-items: start;
  }
  .reveal > .gallery, .reveal > .mphoto { grid-column: 1; grid-row: 1 / span 6; position: sticky; top: 88px; }
  .reveal > :not(.gallery):not(.mphoto) { grid-column: 2; }
}

/* Waiting for Wednesday 21:00 Sanctuary */
.waitdrop { display: flex; justify-content: center; padding: 16px 0; }
.wd-stage {
  width: 100%;
  max-width: 680px;
  padding: clamp(44px, 7vw, 80px) clamp(24px, 5vw, 52px);
  border-radius: var(--r-xl);
  background: var(--ink-surface);
  color: var(--on-ink);
  text-align: center;
}
.wd-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.wd-inner .hello-stamp { color: rgba(247, 245, 240, 0.62); }
.wd-inner .hello-stamp::after { content: ""; width: 20px; height: 1px; background: currentColor; }
.bigtime {
  font-family: var(--serif-en);
  font-size: clamp(88px, 18vw, 136px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--on-ink);
}
.wd-title { font-family: var(--serif); font-size: clamp(24px, 4vw, 32px); color: var(--on-ink); }
.wd-sub { max-width: 34ch; color: var(--on-ink-2); }
.wd-stage .btn {
  margin-top: 6px;
  background: transparent;
  border-color: rgba(247, 245, 240, 0.25);
  color: var(--on-ink);
  min-width: 160px;
}
.wd-stage .btn:hover { background: rgba(247, 245, 240, 0.08); }

/* Mutual Match Celebration Pavilion */
.match-success {
  max-width: 740px;
  margin: 12px auto 0;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--r-xl);
  background: var(--ink-surface);
  color: var(--on-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.match-success-heading { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.match-success-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #E3A7B0;
}
.match-success-status svg { width: 13px; height: 13px; }
.match-success-title {
  font-family: var(--serif);
  font-size: clamp(34px, 5.5vw, 54px);
  line-height: 1.08;
  color: var(--on-ink);
}
.match-success-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: min(100%, 400px);
}
.match-success-person { display: flex; flex-direction: column; gap: 8px; }
.match-success-photo {
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--ink-surface-2);
  border: 1px solid var(--line-dark);
  font-family: var(--serif);
  font-size: 36px;
  color: var(--on-ink);
}
.match-success-photo img { width: 100%; height: 100%; object-fit: cover; }
.match-success-person figcaption { font-size: 14px; font-weight: 500; color: var(--on-ink-2); }
.match-success-link { position: relative; display: grid; place-items: center; margin-bottom: 22px; }
.match-success-link::before { content: ""; position: absolute; left: -8px; right: -8px; height: 1px; background: var(--line-dark); }
.match-success-heart {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #FFFFFF;
}
.match-success-heart svg { width: 18px; height: 18px; stroke: currentColor; }
.match-success-message { display: flex; flex-direction: column; gap: 4px; }
.match-success-summary { font-size: 16px; font-weight: 500; color: var(--on-ink); }
.match-success-next { font-size: 14px; color: var(--on-ink-2); }
.match-success-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(100%, 280px); }
.match-success-cta {
  width: 100%;
  background: var(--on-ink);
  border-color: var(--on-ink);
  color: var(--ink-surface);
  min-height: 48px;
}
.match-success-cta:hover { background: #FFFFFF; }
.match-success-time, .match-success-next-round { font-size: 12.5px; color: var(--on-ink-muted); }

.ms-details {
  width: 100%;
  max-width: 540px;
  border-top: 1px solid var(--line-dark);
  text-align: left;
}
.ms-details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
  cursor: pointer;
  font-size: 14px;
  color: var(--on-ink-2);
}
.ms-details > summary::-webkit-details-marker { display: none; }
.ms-details > summary svg { width: 15px; height: 15px; transition: transform 220ms var(--ease); }
.ms-details[open] > summary svg { transform: rotate(90deg); }
.ms-about { border-top: 0; padding: 8px 0 4px; color: var(--on-ink); }
.ms-about .about-h, .ms-about .facts dt, .ms-about .about-sub, .ms-about .want-note { color: var(--on-ink-muted); }
.ms-about .about-bio, .ms-about .facts dd { color: var(--on-ink); }
.ms-about .about-tags span { background: var(--ink-surface-2); color: var(--on-ink-2); }
.ms-about .want-block { border-top-color: var(--line-dark); }

/* Empty / Centered Status */
.cm, .empty-day {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 0;
  align-items: center;
  text-align: center;
}
.cm-mark, .ok-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--ink);
}
.ok-badge { background: var(--verified-soft); border-color: rgba(36, 104, 80, 0.22); color: var(--verified); }
.cm-title { font-family: var(--serif); font-size: clamp(26px, 4vw, 36px); }
.cm-sub { color: var(--body); }
.cm-actions { width: 100%; max-width: 280px; margin-top: 8px; }
.empty-act { display: flex; justify-content: center; margin-top: 12px; }

/* --------------------------------------------------------------------------
   8. CHAT — CALM SPLIT WORKSPACE & HK DATE SPOTS CONCIERGE
   -------------------------------------------------------------------------- */
.chat-head {
  position: sticky;
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 14px;
  margin-top: -12px;
  background: rgba(247, 246, 242, 0.92);
  border-bottom: 1px solid var(--line);
}
html.has-preview-dock .chat-head { top: calc(var(--nav-h) + 41px); }
.avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--ink-surface);
  color: var(--on-ink);
  font-weight: 600;
  border: 1px solid var(--line);
}
.chat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-name { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.chat-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.days-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-subtle);
  color: var(--ink);
}
.text-only { display: inline-flex; align-items: center; gap: 5px; }
.text-only svg, .e2e-note svg { width: 14px; height: 14px; color: var(--verified); flex: none; }

/* Icebreaker Note */
.ice-card {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ice-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.ice-q { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.ice-ans { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; }
.ice-ans strong { font-weight: 600; color: var(--muted); }
.ice-ans span { color: var(--ink); overflow-wrap: anywhere; }

/* Message Transcript */
.chat-transcript {
  --chat-avatar-size: 30px;
  --chat-avatar-gap: 8px;
  gap: 8px;
  padding: 8px calc(var(--chat-avatar-size) + var(--chat-avatar-gap));
}
.tstamp { align-self: center; margin: 12px 0 4px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bubble {
  position: relative;
  max-width: min(82%, 440px);
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.bubble.cont { margin-top: -4px; }
.bubble.them {
  align-self: flex-start;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
}
.bubble.me {
  align-self: flex-end;
  background: var(--ink-surface);
  color: var(--on-ink);
  border-radius: 16px 16px 4px 16px;
}
.bubble.locked { display: inline-flex; align-items: center; gap: 6px; font-style: italic; opacity: 0.7; }
.chat-run-avatar {
  position: absolute;
  top: 3px;
  width: var(--chat-avatar-size);
  height: var(--chat-avatar-size);
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg-subtle);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
}
.them > .chat-run-avatar { right: calc(100% + var(--chat-avatar-gap)); }
.me > .chat-run-avatar { left: calc(100% + var(--chat-avatar-gap)); }
.chat-run-avatar > img { width: 100%; height: 100%; object-fit: cover; }
.chat-start { align-self: center; padding: 20px 0; font-size: 14px; color: var(--muted); }

/* Shared Date Spot Card inside Chat */
.chat-transcript > .chat-place {
  width: 248px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}
.chat-place-link { display: block; padding: 12px; text-decoration: none; color: inherit; }
.chat-place-info { display: flex; gap: 10px; align-items: flex-start; }
.chat-place-pin {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--r-xs);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.chat-place-pin svg { width: 16px; height: 16px; }
.chat-place-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-place-label { font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; }
.chat-place-name { font-size: 14.5px; font-weight: 600; }
.chat-place-address { font-size: 12px; color: var(--muted); }
.chat-place-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.chat-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.e2e-note { display: flex; align-items: flex-start; gap: 6px; color: var(--muted); }

/* Composer */
.composer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px) + var(--kb, 0px));
  z-index: 43;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.composer-in {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.composer .input { height: 42px !important; border-radius: var(--r-pill) !important; }
.chat-emoji-toggle {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--body);
  display: grid;
  place-items: center;
}
.chat-emoji-toggle[aria-expanded="true"] { border-color: var(--ink); color: var(--ink); }
.send {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  transition: background-color var(--ease-fast), transform var(--ease-fast);
}
.send:hover { background: var(--accent-hover); }
.send:active { transform: scale(0.94); }

/* Emoji & Sticker Picker */
.chat-picker {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 12px;
  width: min(340px, calc(100% - 24px));
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-picker-head { display: flex; justify-content: space-between; align-items: center; }
.chat-picker-tabs { display: flex; gap: 4px; }
.chat-picker-tabs button, .chat-picker-close {
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--r-xs);
  font-size: 13.5px;
  color: var(--muted);
}
.chat-picker-tabs button[aria-selected="true"] { background: var(--bg-subtle); color: var(--ink); font-weight: 600; }
.chat-picker-content { max-height: 210px; overflow: auto; }
.chat-emoji-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.chat-emoji-grid button { min-height: 38px; border-radius: var(--r-xs); font-size: 22px; }
.chat-emoji-grid button:hover { background: var(--bg-subtle); }
.chat-sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
.chat-sticker-tile { position: relative; }
.chat-sticker-tile .sticker-send, .chat-sticker-pick {
  width: 100%;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
}
.chat-sticker-tile img { max-width: 100%; max-height: 48px; object-fit: contain; }
.chat-sticker-remove {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 14px;
  line-height: 1;
}
.bubble.chat-sticker { padding: 4px; background: transparent; border: 0; }
.chat-sticker > img { width: 128px; height: 128px; object-fit: contain; border-radius: var(--r-sm); }

/* Chat Sidebar & HK Date Spots */
.about-disclose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 16px;
}
.about-disclose summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
}
.about-disclose summary::-webkit-details-marker { display: none; }

.confirm {
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(180, 52, 59, 0.28);
  background: var(--danger-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.confirm .attach { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--body); }

@media (min-width: 1024px) {
  .chat-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: start;
  }
  .chat-conv { min-width: 0; }
  .chat-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 84px;
    padding-left: 32px;
    border-left: 1px solid var(--line);
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .side-about { border-top: 0; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
  .composer {
    position: sticky;
    bottom: 16px;
    left: auto;
    right: auto;
    margin-top: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    background: var(--surface);
    box-shadow: var(--sh-sm);
  }
  .composer-in { max-width: none; padding: 6px 8px; }
  .composer .input { border: 0; background: transparent; box-shadow: none !important; }
}

/* --------------------------------------------------------------------------
   9. ME — EDITORIAL PORTFOLIO & APPLE-SETTINGS GROUPED LISTS
   -------------------------------------------------------------------------- */
.me-page { display: flex; flex-direction: column; gap: 28px; }
.me-side, .me-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.me-head {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px 16px;
  align-items: center;
}
.me-photo-btn { display: block; border-radius: var(--r-md); overflow: hidden; }
.me-photo { width: 76px; height: 96px; object-fit: cover; border-radius: var(--r-md); }
span.me-photo { display: grid; place-items: center; font-family: var(--serif); font-size: 28px; }
.me-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.me-name { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.15; color: var(--ink); }
.verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  margin-top: 3px;
  padding: 3px 9px 3px 7px;
  border-radius: var(--r-pill);
  background: var(--verified-soft);
  color: var(--verified);
  font-size: 12px;
  font-weight: 600;
}
.verified svg { width: 13px; height: 13px; }
.me-extra {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.me-bio { font-size: 14px; line-height: 1.65; color: var(--body); }

.me-sec { display: flex; flex-direction: column; gap: 8px; }
.list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.list-row {
  position: relative;
  width: 100%;
  min-height: 54px;
  padding: 11px 16px 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color var(--ease-fast);
}
.list-row + .list-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 0;
  height: 1px;
  background: var(--line);
}
button.list-row:hover, a.list-row:hover { background: var(--surface-soft); }
.list-row.static { cursor: default; }
.list-row.danger { color: var(--danger); }
.lr-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-row .chev { width: 16px; height: 16px; color: var(--quiet); flex: none; }

.inline-form { display: flex; gap: 8px; }
.inline-form .input { flex: 1 1 auto; min-width: 0; }
.inline-form .btn { flex: none; }

.safety-card { display: flex; flex-direction: column; gap: 10px; }
.safety-item { display: flex; gap: 9px; align-items: flex-start; color: var(--body); }
.safety-item svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--verified); }
.sos { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }

@media (min-width: 1024px) {
  .me-page {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }
  .me-side { position: sticky; top: 88px; }
  .me-side .me-head { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .me-side .me-photo-btn { width: 100%; }
  .me-side .me-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; }
  .me-extra { padding-top: 8px; }
}

/* --------------------------------------------------------------------------
   10. ONBOARDING, SIGN-IN, PHOTOS, 40-QUESTION QUIZ & PRIORITIES
   -------------------------------------------------------------------------- */
.side-layout { display: grid; gap: 36px; }
.side-main { min-width: 0; max-width: 600px; }
.side-panel { display: none; }

@media (min-width: 1024px) {
  .side-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 64px;
    align-items: start;
  }
  .side-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 88px;
    padding: 36px 32px;
    border-radius: var(--r-xl);
    background: var(--ink-surface);
    color: var(--on-ink);
    min-height: 520px;
  }
  .side-glow { display: none; }
  .side-time { font-family: var(--serif-en); font-size: 64px; line-height: 0.95; color: var(--on-ink); }
  .side-title { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--on-ink); }
  .side-steps { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
  .side-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    font-size: 14.5px;
    color: var(--on-ink-muted);
  }
  .side-steps li.done { color: var(--on-ink-2); }
  .side-steps li.cur { background: var(--ink-surface-2); color: var(--on-ink); font-weight: 550; }
  .ss-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--line-dark);
  }
  .ss-dot svg { width: 13px; height: 13px; }
  .side-steps li.done .ss-dot { background: rgba(36, 104, 80, 0.25); border-color: transparent; color: #A8E6CC; }
  .side-steps li.cur .ss-dot { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
  .side-note { margin-top: auto; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--on-ink-muted); line-height: 1.55; }
  .side-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: #A8E6CC; }
  .side-signin { align-items: center; justify-content: center; text-align: center; }
  .side-signin .ql-dossier { max-width: 300px; text-align: left; }
  .side-quote { font-family: var(--serif); font-size: 20px; color: var(--on-ink); }
}

.steptop { display: flex; flex-direction: column; gap: 14px; }
.stephead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.steps { display: flex; gap: 5px; }
.steps i { width: 24px; height: 3px; border-radius: 2px; background: var(--line); }
.steps i.done { background: var(--ink-surface); }
.steps i.cur { background: var(--accent); }

.pagehead { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.ptitle { font-family: var(--serif); font-size: clamp(28px, 4vw, 38px); line-height: 1.15; color: var(--ink); }
.psub { font-size: 15px; color: var(--body); max-width: 44ch; }

.form-page { gap: 24px; }
.form-page .group {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 22px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-page .group legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.form-page .group legend + * { clear: both; }
.group-sub { margin-top: -10px; }

.agree {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--body);
  cursor: pointer;
}
.agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agree-box {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: #FFFFFF;
  transition: background-color var(--ease-fast), border-color var(--ease-fast);
}
.agree-box svg { width: 13px; height: 13px; opacity: 0; }
.agree input:checked + .agree-box { background: var(--ink-surface); border-color: var(--ink-surface); }
.agree input:checked + .agree-box svg { opacity: 1; }
.agree.need { border-color: var(--danger); }

.sentto {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.sentto svg { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.disclose {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.disclose summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
  color: var(--body);
}
.disclose summary::-webkit-details-marker { display: none; }
.domlist { list-style: none; margin: 8px 0 0; }
.domlist li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.domlist code { color: var(--muted); }

/* Photos Grid */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pslot {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
}
.pslot > img { width: 100%; height: 100%; object-fit: cover; }
.pslot.add {
  align-content: center;
  gap: 6px;
  text-align: center;
  padding: 8px;
  border: 1.5px dashed var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.pslot.add:hover { border-color: var(--ink); background: var(--surface); }
.pslot.ghost { border: 1px dashed var(--line); background: transparent; color: var(--quiet); font-family: var(--serif); font-size: 22px; }
.pslot .tag {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(24, 23, 21, 0.78);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 500;
}
.pslot .pdel {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(24, 23, 21, 0.78);
  color: #FFFFFF;
}

/* 40-Question Quiz */
.mtr { position: relative; height: 14px; }
.mtr-line { position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--line); border-radius: 2px; }
.mtr-fill { height: 100%; background: var(--ink-surface); transition: width 360ms var(--ease); }
.stn { position: absolute; top: 3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line-strong); }
.stn.on { border-color: var(--ink-surface); }
.stn.cur { background: var(--accent); border-color: var(--accent); }

.qcount { display: inline-flex; align-items: baseline; gap: 4px; font-size: 13.5px; color: var(--muted); }
.qcount b { font-size: 22px; font-weight: 600; color: var(--ink); }
.qsec {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.qtext { font-family: var(--serif); font-size: clamp(26px, 3.8vw, 38px); line-height: 1.2; color: var(--ink); }

.likert { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.likert button {
  aspect-ratio: 1;
  max-width: 52px;
  width: 100%;
  justify-self: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--num);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color var(--ease-fast), border-color var(--ease-fast), color var(--ease-fast), transform var(--ease-fast);
}
.likert button:hover { border-color: var(--ink); }
.likert button[aria-checked="true"] { background: var(--ink-surface); border-color: var(--ink-surface); color: var(--on-ink); font-weight: 600; }

.opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 15.5px;
  text-align: left;
  color: var(--ink);
  transition: border-color var(--ease-fast), background-color var(--ease-fast);
}
.opt:hover { border-color: rgba(23, 22, 20, 0.34); background: var(--surface-soft); }
.opt[aria-checked="true"] { border-color: var(--ink); background: var(--bg-subtle); font-weight: 600; }
.opt svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

.quiz-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 8px; }
.quiz-foot svg { width: 14px; height: 14px; color: var(--verified); }
.kbd-hint { display: none; margin-left: auto; }
@media (hover: hover) and (pointer: fine) { .kbd-hint { display: inline; } }

/* Priorities */
.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-subtle); font-size: 13.5px; color: var(--body); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend svg { width: 16px; height: 16px; }
.prio-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 18px 8px; }
.prio-head { font-family: var(--serif); font-size: 18px; margin: 18px 0 8px; color: var(--ink); }
.prio { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.prio .qt { flex: 1; min-width: 0; font-size: 14.5px; }
.icon-toggle {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
}
.icon-toggle[aria-pressed="true"].star { background: var(--brass-soft); border-color: var(--brass); color: var(--brass); }
.icon-toggle[aria-pressed="true"].lock { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.dockbar {
  position: sticky;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: var(--r-pill);
  background: var(--ink-surface);
  color: var(--on-ink);
  box-shadow: var(--sh-md);
}
.dockbar.above-tabs { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 960px) { .dockbar.above-tabs { bottom: 16px; } }
.dock-count { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--on-ink-2); font-variant-numeric: tabular-nums; }
.dock-count i { width: 1px; height: 14px; background: var(--line-dark); margin: 0 6px; }
.dockbar .btn-red { background: var(--on-ink); border-color: var(--on-ink); color: var(--ink-surface); min-height: 40px; border-radius: var(--r-pill); }

/* --------------------------------------------------------------------------
   11. LEGAL SHEET & FULL-SCREEN PHOTO LIGHTBOX
   -------------------------------------------------------------------------- */
html.sheet-open, html.sheet-open body { overflow: hidden; }
.lg-wrap { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 24px; }
.lg-scrim { position: absolute; inset: 0; background: rgba(23, 22, 20, 0.45);
 }
.lg-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  height: min(86dvh, 840px);
  border-radius: var(--r-xl);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.lg-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.lg-grab { display: none; }
.lg-seg { max-width: 380px; width: 100%; }
.lg-x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-subtle); color: var(--ink); }
.lg-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.lg-progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.lg-body { flex: 1; overflow-y: auto; padding: 28px clamp(20px, 4vw, 36px) 48px; }
.legal-doc { max-width: 600px; margin: 0 auto; font-size: 14.5px; line-height: 1.7; color: var(--body); }
.lg-hero { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.lg-icon { display: none; }
.lg-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.lg-hero h1 { font-family: var(--serif); font-size: 30px; color: var(--ink); margin: 6px 0; }
.lg-date { font-size: 12.5px; color: var(--muted); }
.lg-lead { margin-top: 12px; font-size: 15.5px; color: var(--ink); }
.lg-toc { margin: 18px 0; }
.lg-toc-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.lg-toc-list { display: flex; flex-wrap: wrap; gap: 6px; }
.lg-chip { padding: 5px 11px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink); }
.lg-chip b { color: var(--accent); margin-right: 4px; }
.lg-card { margin-top: 24px; }
.lg-card h2 { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.lg-num { font-family: var(--num); font-size: 12.5px; font-weight: 600; color: var(--accent); }
.lg-card p, .lg-card ul { margin-bottom: 10px; }
.lg-card ul { padding-left: 1.2em; }
.lg-foot { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.lg-foot-title { font-weight: 600; color: var(--ink); }
@media (max-width: 640px) {
  .lg-wrap { padding: 0; align-items: end; }
  .lg-sheet { height: 92dvh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
}

/* Portrait Lightbox */
.photo-lightbox {
  margin: auto;
  padding: 52px 20px 24px;
  width: min(860px, 94vw);
  max-height: 92dvh;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-xl);
  background: var(--ink-surface);
  color: var(--on-ink);
  overflow: auto;
}
.photo-lightbox::backdrop { background: rgba(18, 17, 15, 0.78);
 }
.photo-lightbox .lb-frame { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.photo-lightbox img { max-height: min(68dvh, 680px); border-radius: var(--r-md); object-fit: contain; }
.photo-lightbox figcaption { display: flex; justify-content: space-between; width: min(500px, 100%); font-size: 14px; color: var(--on-ink-2); }
.photo-lightbox .lb-name { font-family: var(--serif); font-size: 20px; color: var(--on-ink); }
.photo-lightbox .lb-close, .photo-lightbox .lb-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(247, 245, 240, 0.12);
  color: var(--on-ink);
}
.photo-lightbox .lb-close { position: absolute; top: 12px; right: 12px; }
.photo-lightbox .lb-nav { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }

/* --------------------------------------------------------------------------
   12. LOCAL PREVIEW SCENE RIBBON (ONLY SHOWN ON /v3/preview.html)
   -------------------------------------------------------------------------- */
.v3-preview-dock {
  position: sticky;
  top: 0;
  z-index: 950;
  width: 100%;
  background: var(--ink-surface);
  border-bottom: 1px solid var(--line-dark);
}
.v3-preview-in {
  max-width: var(--max-site);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.v3-preview-in::-webkit-scrollbar { display: none; }
.v3-preview-tag {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E3A7B0;
  padding: 0 10px 0 2px;
}
.v3-preview-dock a {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--on-ink-2);
  text-decoration: none;
}
.v3-preview-dock a:hover { background: rgba(247, 245, 240, 0.1); color: #FFFFFF; }
.v3-preview-dock a[aria-current="page"] { background: var(--on-ink); color: var(--ink-surface); font-weight: 600; }
html.has-preview-dock .top { top: 41px; }

/* --------------------------------------------------------------------------
   13. MOTION & MICRO-INTERACTION CHOREOGRAPHY (DITTO × A24 × LIQUID GLASS)
   -------------------------------------------------------------------------- */

/* 13.1 Top Hairline Scroll Progress Bar (leaf GPU transform, zero :root style recalc) */
.top-prog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, #EE6A8E 65%, var(--gold) 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  transition: opacity 220ms var(--ease);
}

/* 13.2 Core Cinema & Editorial Keyframes */
@keyframes qlMaskUp {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes qlRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes qlStage {
  from { opacity: 0; transform: translateY(36px) scale(0.95); }
  to { opacity: 1; transform: none; }
}
@keyframes qlAppIn {
  from { opacity: 0; transform: translateY(16px) scale(0.992); }
  to { opacity: 1; transform: none; }
}
@keyframes qlViewIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes qlQuizFwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes qlQuizBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes qlBubIn { from { opacity: 0; transform: translateY(12px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes qlPickerIn { from { opacity: 0; transform: translateY(10px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes qlSheetUp { from { opacity: 0; transform: translateY(38px); } to { opacity: 1; transform: none; } }
@keyframes qlSheetPop { from { opacity: 0; transform: translateY(18px) scale(0.965); } to { opacity: 1; transform: none; } }
@keyframes qlSheetOut { to { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes qlScrimIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes qlScrimOut { to { opacity: 0; } }
@keyframes qlToastIn { from { opacity: 0; transform: translateY(12px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes qlShake { 18% { transform: translateX(-5px); } 42% { transform: translateX(5px); } 66% { transform: translateX(-3px); } 86% { transform: translateX(2px); } }
@keyframes qlPairL { from { opacity: 0; transform: translateX(-20px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes qlPairR { from { opacity: 0; transform: translateX(20px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes qlHeartBloom { 0% { opacity: 0; transform: scale(0.62); } 65% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes qlPhotoFade { from { opacity: 0.25; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
@keyframes qlRippleOut { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0.34; } 70% { opacity: 0.14; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
@keyframes qlPulseRing { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.38); opacity: 0.55; } }
@keyframes qlRingPop { 0% { box-shadow: 0 0 0 0 rgba(214, 51, 108, 0.38); } 100% { box-shadow: 0 0 0 11px rgba(214, 51, 108, 0); } }
@keyframes qlBadgeSheen { 0% { transform: translateX(-140%) skewX(-18deg); } 100% { transform: translateX(240%) skewX(-18deg); } }
@keyframes qlDigitPop { 0% { opacity: 0; transform: translateY(12px) scale(0.86); } 68% { opacity: 1; transform: translateY(-2px) scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes qlPillSlide { from { opacity: 0; transform: translateY(10px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes qlBubRight { from { opacity: 0; transform: translateX(14px) translateY(6px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes qlSchoolIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dtHeroBreath { 0%, 100% { transform: scale(1.03); } 50% { transform: scale(1.065); } }

/* 13.3 Twilight Cinema Hero Opening Choreography (Dramatic 3D Liquid-Glass Arrival) */
@keyframes dtPhoneSurge {
  0% { opacity: 0; transform: perspective(1200px) rotateX(15deg) rotateY(-12deg) translate3d(0, 92px, 0) scale(0.84); }
  70% { opacity: 1; transform: perspective(1200px) rotateX(-1.5deg) rotateY(1.2deg) translate3d(0, -6px, 0) scale(1.015); }
  100% { opacity: 1; transform: none; }
}
@keyframes dtHeadMask {
  from { opacity: 0; transform: translate3d(0, 32px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes dtPopScale {
  0% { opacity: 0; transform: scale(0.65) translateY(14px); }
  68% { opacity: 1; transform: scale(1.12) translateY(-2px); }
  100% { opacity: 1; transform: none; }
}
@keyframes dtPolaroidSwing {
  0% { opacity: 0; transform: translateY(28px) rotate(-16deg) scale(0.72); }
  70% { opacity: 1; transform: translateY(-4px) rotate(1deg) scale(1.04); }
  100% { opacity: 1; transform: rotate(-2.5deg) scale(1); }
}
@keyframes dtRimSweep {
  0% { transform: translateX(-160%) skewX(-24deg); opacity: 0; }
  35% { opacity: 0.7; }
  100% { transform: translateX(260%) skewX(-24deg); opacity: 0; }
}

.dt-hero .dt-glass-pill { animation: qlRise 680ms var(--ease-expo) 40ms backwards; }
.dt-hero .dt-h1 > span { animation: dtHeadMask 920ms var(--ease-expo) 120ms backwards; }
.dt-hero .dt-h1 > em { animation: dtHeadMask 960ms var(--ease-expo) 260ms backwards; }
.dt-hero .dt-lead { animation: qlRise 820ms var(--ease-expo) 360ms backwards; }
.dt-hero .dt-join,
.dt-hero .d-welcome { animation: qlRise 820ms var(--ease-expo) 450ms backwards; }
.dt-hero .dt-consent,
.dt-hero .d-cta { animation: qlRise 720ms var(--ease-expo) 520ms backwards; }
.dt-hero .dt-trust { animation: qlRise 720ms var(--ease-expo) 580ms backwards; }
.dt-hero .dt-count-bar { animation: qlRise 720ms var(--ease-expo) 640ms backwards; }

.dt-hero .dt-phone-shell {
  animation: dtPhoneSurge 1080ms var(--ease-expo) 220ms backwards;
  overflow: hidden;
}
.dt-hero .dt-phone-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  pointer-events: none;
  z-index: 8;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  animation: dtRimSweep 2.4s var(--ease-expo) 1.1s 1 both;
}
/* Live staggered iMessage pop-in inside Hero Liquid-Glass Phone */
.dt-hero .dt-imsg-body > .dt-bub.in:first-child { animation: qlBubIn 420ms var(--ease-spring) 120ms backwards; }
.dt-hero .dt-imsg-body > .dt-match-mini { animation: qlStage 540ms var(--ease-expo) 220ms backwards; }
.dt-hero .dt-imsg-body > .dt-imsg-acts { animation: qlRise 480ms var(--ease-expo) 320ms backwards; }
.dt-hero .dt-phone-dock { animation: qlRise 760ms var(--ease-expo) 640ms backwards; }

.week-track li.cur .wt-dot { animation: qlPulseRing 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite; }

/* 9-University Strip Wave Cascade */
.dt-school-list li { animation: qlSchoolIn 620ms var(--ease-expo) backwards; }
.dt-school-list li:nth-child(1) { animation-delay: 420ms; }
.dt-school-list li:nth-child(2) { animation-delay: 470ms; }
.dt-school-list li:nth-child(3) { animation-delay: 520ms; }
.dt-school-list li:nth-child(4) { animation-delay: 570ms; }
.dt-school-list li:nth-child(5) { animation-delay: 620ms; }
.dt-school-list li:nth-child(6) { animation-delay: 670ms; }
.dt-school-list li:nth-child(7) { animation-delay: 720ms; }
.dt-school-list li:nth-child(8) { animation-delay: 770ms; }
.dt-school-list li:nth-child(9) { animation-delay: 820ms; }

/* 13.4 DRAMATIC 120FPS LEFT/RIGHT WING FLY-IN & SURGE CHOREOGRAPHY (PURE GPU TRANSFORM + OPACITY) */
@keyframes dtSlideInLeft {
  from { opacity: 0; transform: translate3d(-120px, 0, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes dtSlideInRight {
  from { opacity: 0; transform: translate3d(120px, 0, 0); }
  to { opacity: 1; transform: none; }
}

.rv {
  transition:
    opacity 720ms var(--ease-expo) var(--d, 0ms),
    transform 920ms cubic-bezier(0.16, 1.06, 0.30, 1) var(--d, 0ms);
}
.rv:not(.in) {
  opacity: 0;
  transform: translate3d(0, 76px, 0) scale(0.93);
}

.rv-s {
  transition: opacity 560ms var(--ease-expo) var(--d, 0ms), transform 560ms var(--ease-expo) var(--d, 0ms);
}
.rv-s:not(.in) { opacity: 0; transform: translate3d(0, 26px, 0) scale(0.985); }

/* Section Headlines: Bold Curtain Surge */
.dt-head.rv:not(.in) { opacity: 0; transform: translate3d(0, 56px, 0); }


/* Act II — Alternating Story Cards: DRAMATIC FAR-LEFT & FAR-RIGHT WING FLY-IN! */
.dt-stagger-card.left.rv:not(.in) {
  opacity: 0;
  transform: translate3d(-220px, 52px, 0) rotate(-7deg) scale(0.88);
}
.dt-stagger-card.right.rv:not(.in) {
  opacity: 0;
  transform: translate3d(220px, 52px, 0) rotate(7deg) scale(0.88);
}
.dt-stagger-card.rv {
  transition:
    opacity 680ms var(--ease-expo),
    transform 960ms cubic-bezier(0.16, 1.08, 0.30, 1),
    border-color 260ms var(--ease),
    box-shadow 360ms var(--ease);
}



/* Act III — 4 Tilted 35mm Hong Kong Film Prints: DRAMATIC DUAL-WING SWEEP-IN! */

/* Act III-B — Match Dossier: Left Text Flies From Left, Chloe Card Flies From Right! */
.dt-dossier-col.rv:not(.in) { opacity: 0; transform: translate3d(-190px, 24px, 0); }
.dt-dossier-frame.rv:not(.in) { opacity: 0; transform: translate3d(190px, 36px, 0) rotate(5deg) scale(0.90); }
.dt-dossier-frame.in .dt-dossier-pic img { animation: qlPhotoFade 860ms var(--ease-expo) 180ms backwards; }


/* Act III-C — Comparison Cards: Bold Twin-Wing Fly-In From Opposite Sides! */
.dt-vs-card.them.rv:not(.in) { opacity: 0; transform: translate3d(-220px, 36px, 0) rotate(-5deg) scale(0.90); }
.dt-vs-card.us.rv:not(.in) { opacity: 0; transform: translate3d(220px, 36px, 0) rotate(5deg) scale(0.90); }


/* Act IV — Midnight Harbour Crush Vault: Bold Surge + Alternating Left/Right Vault Rows! */
.dt-vault.rv:not(.in) {
  opacity: 0;
  transform: translate3d(0, 110px, 0) scale(0.86);
}
.dt-vault.in .dt-vault-row:nth-child(1) { animation: dtSlideInLeft 680ms var(--ease-expo) 180ms backwards; }
.dt-vault.in .dt-vault-row:nth-child(2) { animation: dtSlideInRight 680ms var(--ease-expo) 300ms backwards; }
.dt-vault.in .dt-vault-row:nth-child(3) { animation: dtSlideInLeft 680ms var(--ease-expo) 420ms backwards; }
.dt-vault-row.on em::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-140%) skewX(-18deg);
  pointer-events: none;
}
.dt-vault.in .dt-vault-row.on em::after { animation: qlBadgeSheen 1.2s var(--ease-expo) 680ms 1 both; }

/* Act V — Privacy 3 Cards: Left Flies Left, Center Surges Up, Right Flies Right! */
.dt-priv-card.rv {
  transition:
    opacity 700ms var(--ease-expo) var(--d, 0ms),
    transform 960ms cubic-bezier(0.16, 1.08, 0.32, 1) var(--d, 0ms),
    border-color 260ms var(--ease),
    box-shadow 360ms var(--ease);
}
.dt-priv-card:nth-child(1).rv:not(.in) { opacity: 0; transform: translate3d(-190px, 48px, 0) rotate(-5deg) scale(0.88); }
.dt-priv-card:nth-child(2).rv:not(.in) { opacity: 0; transform: translate3d(0, 120px, 0) scale(0.84); }
.dt-priv-card:nth-child(3).rv:not(.in) { opacity: 0; transform: translate3d(190px, 48px, 0) rotate(5deg) scale(0.88); }



/* Lower 3 Guarantee Pills: Left / Up / Right */
.dt-more li:nth-child(1).rv:not(.in) { opacity: 0; transform: translate3d(-120px, 24px, 0); }
.dt-more li:nth-child(2).rv:not(.in) { opacity: 0; transform: translate3d(0, 64px, 0); }
.dt-more li:nth-child(3).rv:not(.in) { opacity: 0; transform: translate3d(120px, 24px, 0); }

/* Act VI — FAQ Rows Alternate Slide Left/Right + Closing Cinema Surge */
.faq-item:nth-child(odd).rv:not(.in) { opacity: 0; transform: translate3d(-84px, 16px, 0); }
.faq-item:nth-child(even).rv:not(.in) { opacity: 0; transform: translate3d(84px, 16px, 0); }

.dt-close-in.rv:not(.in) { opacity: 0; transform: translate3d(0, 84px, 0) scale(0.86); }


@media (max-width: 640px) {
  .dt-stagger-card.left.rv:not(.in),
  .dt-dossier-col.rv:not(.in),
  .dt-vs-card.them.rv:not(.in),
  .dt-priv-card:nth-child(1).rv:not(.in) { transform: translate3d(-72px, 44px, 0) scale(0.92); }
  .dt-stagger-card.right.rv:not(.in),
  .dt-dossier-frame.rv:not(.in),
  .dt-vs-card.us.rv:not(.in),
  .dt-priv-card:nth-child(3).rv:not(.in) { transform: translate3d(72px, 44px, 0) scale(0.92); }
}

/* 13.5 Inner-App Staggered View Cascade */
.vt .app-main { animation: qlViewIn 360ms var(--ease-expo) backwards; }
.ql-stagger { animation: qlAppIn 540ms var(--ease-expo) var(--sd, 0ms) backwards; }
.qf .qanim { animation: qlQuizFwd 340ms var(--ease-expo) backwards; }
.qb .qanim { animation: qlQuizBack 340ms var(--ease-expo) backwards; }
.mtr-fill { transition: width 460ms var(--ease-expo); }
.stn { transition: transform 320ms var(--ease-spring), background-color 240ms var(--ease), border-color 240ms var(--ease); }

/* 13.6 Tactile Click Ripple, Press Physics & Active Selection Bloom */
.ql-ripple-host { position: relative; overflow: hidden; }
.ql-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(21, 27, 32, 0.16) 0%, rgba(21, 27, 32, 0.04) 68%, transparent 100%);
  animation: qlRippleOut 560ms var(--ease-expo) forwards;
}
.ql-ripple.light { background: radial-gradient(circle, rgba(255, 253, 248, 0.36) 0%, rgba(255, 253, 248, 0.09) 68%, transparent 100%); }
.ql-ripple.accent { background: radial-gradient(circle, rgba(214, 51, 108, 0.24) 0%, rgba(214, 51, 108, 0.05) 68%, transparent 100%); }

.btn, .dt-btn-ivory, .dt-btn-glass, .dt-mini-btn, .dt-phone-dock button, .dt-likert button,
.d-btn, .chip, .opt, .likert button, .icon-toggle,
.dtab, .tab, .langs button, .thumbs button, .mphoto-zoom, .acct, .mc-tip, .list-row, .backlink, .x, .send, .lg-chip {
  transition:
    transform 240ms var(--ease-spring),
    background-color 200ms var(--ease),
    border-color 200ms var(--ease),
    color 200ms var(--ease),
    box-shadow 260ms var(--ease),
    opacity 200ms var(--ease);
}

.btn:not([disabled]):not([aria-disabled="true"]):active,
.btn:not([disabled]):not([aria-disabled="true"]).is-pressed,
.dt-btn-ivory:active, .dt-btn-ivory.is-pressed,
.dt-btn-glass:active, .dt-btn-glass.is-pressed,
.dt-mini-btn:active, .d-btn:active, .d-btn.is-pressed {
  transform: scale(0.968);
  transition-duration: 90ms;
}

.chip:active, .chip.is-pressed,
.opt:active, .opt.is-pressed,
.likert button:active, .likert button.is-pressed,
.dt-likert button:active, .dt-phone-dock button:active,
.icon-toggle:active, .icon-toggle.is-pressed,
.dtab:active, .dtab.is-pressed,
.tab:active, .tab.is-pressed,
.langs button:active, .langs button.is-pressed,
.thumbs button:active, .thumbs button.is-pressed,
.mphoto-zoom:active, .acct:active, .mc-tip:active, .x:active, .lg-chip:active {
  transform: scale(0.95);
  transition-duration: 90ms;
}

.likert button[aria-checked="true"],
.chip[aria-pressed="true"],
.chip[aria-checked="true"],
.opt[aria-checked="true"] { animation: qlRingPop 460ms var(--ease-expo); }

/* True iOS Organic Switch Thumb Stretch */
.switch::after { transition: transform 280ms var(--ease-spring), width 180ms var(--ease); }
.switch:active::after, .switch.is-pressed::after { width: 27px; }
.switch[aria-checked="true"]:active::after, .switch[aria-checked="true"].is-pressed::after { transform: translateX(15px); }

/* 13.7 Desktop Fine-Pointer Elevation, 3D Micro-Tilt & Magnetic Pull */
.ql-tilt { position: relative; transform-style: preserve-3d; transition: transform 420ms var(--ease-expo), border-color 260ms var(--ease), box-shadow 340ms var(--ease); }
.ql-tilt.is-tilting { transition: transform 90ms linear, border-color 240ms var(--ease), box-shadow 260ms var(--ease); }
.ql-mag { transition: transform 340ms var(--ease-expo), background-color 200ms var(--ease), border-color 200ms var(--ease), box-shadow 260ms var(--ease); }
.ql-mag.is-mag { transition: transform 90ms linear, background-color 200ms var(--ease), border-color 200ms var(--ease), box-shadow 260ms var(--ease); }

@media (hover: hover) and (pointer: fine) {
  .btn:not([disabled]):not([aria-disabled="true"]):hover,
  .dt-btn-ivory:hover,
  .dt-btn-glass:hover,
  .d-btn:hover { transform: translateY(-1.5px); }
  .btn-love:not([disabled]):not([aria-disabled="true"]):hover,
  .dt-mini-btn.primary:hover { box-shadow: 0 12px 24px -12px rgba(214, 51, 108, 0.55); }
  .dt-stagger-card:hover, .dt-priv-card:hover { transition: border-color 220ms var(--ease); }
  .dt-stagger-card:hover, .dt-priv-card:hover { border-color: var(--line-strong); box-shadow: var(--sh-md); }
  .list-row .chev, .mc-tip svg, .backlink svg { transition: transform 260ms var(--ease-expo), color 200ms var(--ease); }
  button.list-row:hover .chev, a.list-row:hover .chev, .mc-tip:not(.ok):hover svg { transform: translateX(4px); color: var(--ink); }
  .backlink:hover svg { transform: translateX(-4px); }
  .likert button:hover { transform: translateY(-2.5px); box-shadow: var(--sh-sm); }
  .opt:hover { transform: translateY(-1.5px); box-shadow: var(--sh-xs); }
  .chip:hover { transform: translateY(-1px); }
  .thumbs button { transition: transform 240ms var(--ease-spring), border-color 200ms var(--ease), box-shadow 240ms var(--ease); }
  .thumbs button:hover { transform: translateY(-3px); box-shadow: var(--sh-xs); }
  .navlink { position: relative; }
  .navlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform 280ms var(--ease-expo); }
  .navlink:hover::after { transform: scaleX(1); }
}

/* 13.8 Pointer-Follow Moonlight Sheen on Midnight Focal Surfaces */
.dropcard, .dt-vault, .vis-opt, .wd-stage, .match-success, .side-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.dropcard::before, .dt-vault::before, .vis-opt::before, .wd-stage::before, .match-success::before, .side-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--sheen-a, 0);
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 35%), rgba(255, 255, 255, 0.11), transparent 68%);
  transition: opacity 420ms var(--ease);
}
.dropcard > *, .dt-vault > *, .vis-opt > *, .wd-stage > *, .match-success > *, .side-panel > * { position: relative; z-index: 1; }

/* 13.9 Silky Disclosures & FAQ Accordions */
.faq-item { border-radius: var(--r-sm); transition: background-color 300ms var(--ease); }
.faq-item[open]:not(.closing) { background: rgba(255, 255, 255, 0.62); }
.faq-item summary { border-radius: var(--r-sm); transition: color 200ms var(--ease), background-color 220ms var(--ease); }
.faq-item summary:hover { background: rgba(21, 27, 32, 0.03); }
.faq-item summary i { transition: transform 340ms var(--ease-expo); }
.faq-item summary i::before, .faq-item summary i::after { transition: transform 340ms var(--ease-expo), background-color 240ms var(--ease); }
.faq-item[open]:not(.closing) summary i { transform: rotate(180deg); }
.faq-item[open]:not(.closing) summary i::before, .faq-item[open]:not(.closing) summary i::after { background: var(--accent); }
.faq-item[open]:not(.closing) summary i::after { transform: rotate(0deg); }
.faq-item.closing summary i { transform: rotate(0deg); }
.faq-item.closing summary i::after { transform: rotate(90deg); }

.disclose summary svg, .about-disclose summary svg, .ms-details summary svg { transition: transform 320ms var(--ease-expo), color 220ms var(--ease); }
.disclose[open]:not(.closing) summary svg, .about-disclose[open]:not(.closing) summary svg, .ms-details[open]:not(.closing) summary svg { transform: rotate(90deg); color: var(--accent); }

/* 13.10 Sheets, Lightbox, Picker, Bubbles, Toast & Celebration */
.lg-scrim { animation: qlScrimIn 260ms var(--ease) both; }
.lg-sheet { animation: qlSheetUp 420ms var(--ease-expo) both; }
@media (min-width: 641px) { .lg-sheet { animation: qlSheetPop 380ms var(--ease-expo) both; } }
.lg-wrap.closing .lg-scrim { animation: qlScrimOut 220ms ease both; }
.lg-wrap.closing .lg-sheet { animation: qlSheetOut 220ms ease both; }
.photo-lightbox[open] { animation: qlSheetPop 340ms var(--ease-expo) both; }
.photo-lightbox[open]::backdrop { animation: qlScrimIn 260ms var(--ease) both; }
.photo-lightbox img.is-swapping { animation: qlPhotoFade 360ms var(--ease-expo) both; }
.chat-picker { transform-origin: calc(100% - 48px) bottom; animation: qlPickerIn 240ms var(--ease-expo) both; }
.bubble.new { animation: qlBubIn 320ms var(--ease-expo) both; }
.toast { animation: qlToastIn 280ms var(--ease-spring) both; }
.match-success .match-success-person:first-child { animation: qlPairL 620ms var(--ease-expo) 90ms both; }
.match-success .match-success-person.peer { animation: qlPairR 620ms var(--ease-expo) 150ms both; }
.match-success .match-success-heart { animation: qlHeartBloom 580ms var(--ease-spring) 240ms both; }
.match-success .match-success-title { animation: qlMaskUp 640ms var(--ease-expo) 180ms both; }
.joined.pop { animation: qlSheetPop 420ms var(--ease-spring) both; }
.mphoto { animation: qlPhotoFade 360ms var(--ease-expo) both; }
.input[aria-invalid="true"], .chips.need, .agree.need { animation: qlShake 420ms var(--ease); }

/* Persistent #siteTop & #siteTabs morph in place via morphApp (zero ViewTransition bitmap ghosting) */


/* ==========================================================================
   14. IN-APP EDITORIAL ARCHITECTURAL UPGRADE (ALL 9 REMAINING SCREENS)
       Unified Ditto × Hong Kong Twilight DNA · Midnight Night Ritual ·
       120fps Left/Right Wing Fly-In · Zero GPU Blur · Zero AI Art
   ========================================================================== */

/* 14.1 Shared Pill Button & Input Polish */
.btn-pill { border-radius: var(--r-pill) !important; }
.input-lg { height: 50px; padding: 0 16px; border-radius: 14px; font-size: 16px; }

/* 14.2 Elevated Floating Desktop Tab Capsule */
@media (min-width: 960px) {
  .dtabs {
    gap: 3px;
    padding: 4px;
    border-radius: var(--r-pill);
    background: var(--bg-subtle);
    border: 1px solid var(--line);
  }
  .dtab {
    height: 34px;
    padding: 0 15px;
    border-radius: var(--r-pill);
    font-size: 13.5px;
    font-weight: 550;
  }
  .dtab:hover { background: rgba(21, 27, 32, 0.05); }
  .dtab[aria-current="page"] {
    background: var(--ink-surface);
    color: #FAF8F2;
    box-shadow: 0 6px 16px -8px rgba(8, 23, 33, 0.45);
  }
  .dtab[aria-current="page"] svg { color: #FFE3CA; }
}

/* 14.3 Dramatic 120fps Wing Fly-In & Surge System for All In-App Screens */
@keyframes qlWingInL {
  0% { opacity: 0; transform: translate3d(-96px, 24px, 0) rotate(-2deg) scale(0.95); }
  100% { opacity: 1; transform: none; }
}
@keyframes qlWingInR {
  0% { opacity: 0; transform: translate3d(96px, 24px, 0) rotate(2deg) scale(0.95); }
  100% { opacity: 1; transform: none; }
}
@keyframes qlMeterGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes wdOrbitSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes msSparkFloat {
  0% { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.4); }
  30% { opacity: 0.9; }
  100% { opacity: 0; transform: translate3d(var(--sx, 0px), var(--sy, -72px), 0) scale(1.1); }
}
@keyframes qlPairWingL {
  0% { opacity: 0; transform: translate3d(-110px, 16px, 0) rotate(-8deg) scale(0.86); }
  100% { opacity: 1; transform: none; }
}
@keyframes qlPairWingR {
  0% { opacity: 0; transform: translate3d(110px, 16px, 0) rotate(8deg) scale(0.86); }
  100% { opacity: 1; transform: none; }
}

.ql-wing-l { animation: qlWingInL 760ms cubic-bezier(0.16, 1.06, 0.30, 1) var(--sd, 0ms) backwards; }
.ql-wing-r { animation: qlWingInR 760ms cubic-bezier(0.16, 1.06, 0.30, 1) var(--sd, 0ms) backwards; }

.rv-s {
  transition:
    opacity 640ms var(--ease-expo) var(--d, 0ms),
    transform 840ms cubic-bezier(0.16, 1.06, 0.30, 1) var(--d, 0ms);
}
.rv-s:not(.in) { opacity: 0; transform: translate3d(0, 44px, 0) scale(0.96); }
.rv-s.wing-l:not(.in) { opacity: 0; transform: translate3d(-110px, 28px, 0) rotate(-2.5deg) scale(0.93); }
.rv-s.wing-r:not(.in) { opacity: 0; transform: translate3d(110px, 28px, 0) rotate(2.5deg) scale(0.93); }

@media (max-width: 720px) {
  .ql-wing-l, .ql-wing-r { animation-name: qlAppIn; animation-duration: 520ms; }
  .rv-s.wing-l:not(.in) { transform: translate3d(-44px, 28px, 0) scale(0.96); }
  .rv-s.wing-r:not(.in) { transform: translate3d(44px, 28px, 0) scale(0.96); }
}

/* 14.4 Auth Card, 1-Tap 9-University Domain Picker & Twilight Side Sanctuary */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 3.8vw, 38px);
  box-shadow: var(--sh-sm);
}
.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.auth-eyebrow svg { width: 12px; height: 12px; }

.dom-picker { display: flex; flex-direction: column; gap: 8px; }
.dom-picker-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dom-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
@media (max-width: 480px) { .dom-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dom-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  text-align: left;
  transition: transform 220ms var(--ease-spring), border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.dom-chip b { font-size: 12.5px; font-weight: 650; color: var(--ink); line-height: 1.2; }
.dom-chip span { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.dom-chip:hover { border-color: var(--ink); background: var(--surface); transform: translateY(-1.5px); }
.dom-chip.on {
  background: var(--ink-surface);
  border-color: var(--ink-surface);
}
.dom-chip.on b { color: #FAF8F2; }
.dom-chip.on span { color: rgba(250, 248, 242, 0.72); }

/* Upgraded Twilight Harbour Side Panel + Live Onboarding Card */
@media (min-width: 1024px) {
  .side-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; }
  .side-panel {
    position: sticky;
    top: 88px;
    padding: 32px 28px;
    border-radius: 30px;
    background: linear-gradient(166deg, #1E3443 0%, #0E2331 54%, #07151F 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--sh-glass);
    color: #FAF8F2;
    min-height: 540px;
    gap: 18px;
  }
  .side-panel .side-glow {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(360px 260px at 78% 18%, rgba(255, 206, 168, 0.16), transparent 72%);
  }
  .side-panel .dt-skyline {
    height: 128px;
    color: #9CC2D6;
    opacity: 0.24;
  }
  .side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .side-time { font-family: var(--serif-en); font-size: 56px; line-height: 0.92; color: #FFE3CA; }
  .side-stamp { font-size: 11px; letter-spacing: 0.09em; color: rgba(250, 248, 242, 0.56); }
  .side-title { font-family: var(--serif); font-size: 22px; font-weight: 500; color: #FAF8F2; line-height: 1.3; }
  .side-live-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }
  .slc-av {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    flex: none;
    display: grid;
    place-items: center;
    background: linear-gradient(155deg, #2D4A5C 0%, #6A3248 100%);
    color: #FFE4CE;
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 26px;
  }
  .slc-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .slc-info b { font-size: 14.5px; color: #FAF8F2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .slc-info span { font-size: 12px; color: rgba(250, 248, 242, 0.68); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .slc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
  .slc-tags i {
    font-style: normal;
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.12);
    color: #FFE3CA;
  }
  .side-steps li.cur {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }
  .side-signin { padding: 24px 20px; }
  .side-signin .dt-phone { max-width: 320px; }
  .side-signin .dt-phone-screen { min-height: 448px; }
  .side-quote { font-family: var(--serif); font-size: 17px; color: rgba(250, 248, 242, 0.84); margin-top: 4px; }
}

/* 14.5 Editorial Onboarding Form Cards & Stepper */
.stephead {
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.steps i { width: 26px; height: 4px; border-radius: 99px; transition: width 320ms var(--ease-expo), background-color 240ms var(--ease); }
.steps i.cur { width: 42px; background: var(--accent); }
.step-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.step-meta b { color: var(--ink); font-weight: 650; }
.step-meta em { font-style: normal; color: var(--accent); font-weight: 600; }

.form-page .group {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 24px 24px;
  background: var(--surface);
  box-shadow: var(--sh-xs);
}
.form-page .group legend {
  float: left;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
}

/* 14.6 Meditative 40-Question Quiz Stage & Color-Coded Priority Ledger */
.quiz-wrap { padding-top: 8px; gap: 20px; }
.qp-pill {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  margin-left: 6px;
}
.quiz-stage {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--sh-sm);
}
.quiz-stage .qsec {
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
}
.quiz-stage .opt {
  min-height: 56px;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--bg);
}
.quiz-stage .opt[aria-checked="true"] {
  background: var(--ink-surface);
  border-color: var(--ink-surface);
  color: #FAF8F2;
}
.quiz-stage .opt[aria-checked="true"] svg { color: #FFE3CA; }
.quiz-stage .likert button { max-width: 56px; font-weight: 600; background: var(--bg); }
.quiz-stage .likert button[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; transform: scale(1.08); }
.quiz-foot kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  margin-right: 4px;
}
.prio-list { border-radius: 24px; padding: 6px 20px 12px; box-shadow: var(--sh-xs); }
.prio { padding: 14px 12px; margin: 0 -12px; border-radius: 12px; border-left: 3px solid transparent; transition: background-color 200ms var(--ease), border-color 200ms var(--ease); }
.prio.is-star { border-left-color: var(--brass); background: rgba(182, 134, 58, 0.05); }
.prio.is-lock { border-left-color: var(--accent); background: rgba(214, 51, 108, 0.05); }

/* 14.7 Home Command Center — Connected Journey Rail, Twilight Dropcard & Midnight Crush Vault */
.week-track {
  position: relative;
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
}
@media (min-width: 1024px) {
  .week-track::before {
    content: "";
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: 0;
    height: 3px;
    background: var(--bg-subtle);
    border-radius: 99px;
  }
  .week-track::after {
    content: "";
    position: absolute;
    left: 36px;
    bottom: 0;
    height: 3px;
    width: calc((100% - 72px) * var(--stage-p, 0%) / 100);
    max-width: calc(100% - 72px);
    background: linear-gradient(90deg, var(--verified) 0%, var(--accent) 100%);
    border-radius: 99px;
    transition: width 640ms var(--ease-expo);
  }
}

.card-ink.dropcard {
  position: relative;
  border-radius: 30px;
  padding: clamp(28px, 4vw, 40px);
  background: linear-gradient(160deg, #1E3645 0%, #0D2230 56%, #07151F 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--sh-glass);
}
.dc-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(460px 280px at 78% 18%, rgba(255, 206, 168, 0.18), transparent 72%);
}
.dropcard .dt-skyline { height: 136px; color: #9CC2D6; opacity: 0.22; z-index: 0; }
.dc-inner { position: relative; z-index: 2; }
.dc-week { display: inline-flex; align-items: center; gap: 8px; color: #FFE3CA; font-weight: 600; }
.dropcard .btn-love { border-radius: var(--r-pill); font-weight: 650; }
.dropcard .joined { border-radius: var(--r-pill); }

.mycard .card { border-radius: 26px; box-shadow: var(--sh-sm); }
.mc-photo.mc-mono {
  background: linear-gradient(155deg, #213746 0%, #593143 100%);
  color: #FAF8F2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.mc-mono-letter { font-family: var(--serif-en); font-style: italic; font-size: 56px; line-height: 0.9; color: #FFE3CA; }
.mc-photo.mc-mono em { font-style: normal; font-size: 11px; letter-spacing: 0.08em; color: rgba(250, 248, 242, 0.72); }
.mc-bar i { transform-origin: 0 50%; animation: qlMeterGrow 780ms var(--ease-expo) 220ms backwards; }

/* Signature Midnight Harbour Crush Vault inside Home (matches Landing Act II!) */
.crush-feature.crush-midnight {
  position: relative;
  border-radius: 30px;
  padding: clamp(26px, 3.8vw, 38px);
  background: radial-gradient(ellipse 84% 62% at 50% 10%, #1B3D52 0%, #0E2332 52%, #07151F 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--sh-glass);
  color: #FAF8F2;
}
.cf-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(460px 260px at 80% 15%, rgba(214, 51, 108, 0.16), transparent 72%);
}
.crush-midnight .dt-skyline { height: 120px; color: #9FC4D8; opacity: 0.24; z-index: 0; }
.crush-midnight > *:not(.cf-glow):not(.dt-skyline) { position: relative; z-index: 2; }
.crush-midnight .crush-feature-kicker { color: #FFE0CE; }
.crush-midnight h2 { color: #FAF8F2; }
.crush-midnight .crush-feature-lead { color: rgba(246, 244, 236, 0.78); }
.crush-midnight .crush-feature-controls {
  background: rgba(8, 23, 33, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
}
.crush-midnight .crush-feature-label { color: #FAF8F2; }
.crush-midnight .crush-feature-count { color: #FFE3CA; }
.crush-midnight .crush-feature-list { padding: 0; }
.crush-midnight .crush-feature-list li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #FAF8F2;
  border-radius: 12px;
}
.crush-midnight .crush-feature-list .x { color: rgba(250, 248, 242, 0.68); }
.crush-midnight .crush-feature-list .x:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.crush-midnight .crush-feature-entry .input {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  border-radius: var(--r-pill);
  padding: 0 16px;
}
.crush-midnight .crush-feature-entry .input::placeholder { color: rgba(250, 248, 242, 0.56); }
.crush-midnight .crush-feature-entry .input:focus { border-color: rgba(255, 255, 255, 0.58); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }
.crush-midnight .crush-feature-entry .btn {
  border-radius: var(--r-pill);
  background: #FAF8F2;
  border-color: #FAF8F2;
  color: var(--ink-surface);
  font-weight: 650;
}
.crush-midnight .crush-feature-entry .btn:hover { background: #FFFFFF; }
.crush-midnight .crush-feature-privacy { color: rgba(246, 244, 236, 0.72); }
.crush-midnight .crush-feature-privacy svg { color: #9BECC2; }
.crush-midnight .crush-feature-beta { color: rgba(246, 244, 236, 0.58); }

/* 14.8 Wednesday 21:00 Night Ritual Theme (html.night-page — Deep Velvet & Fine Film Grain) */
html.night-page,
html.night-page body {
  background-color: #08141E;
  background-image:
    radial-gradient(ellipse 680px 580px at 22% 28%, rgba(255, 206, 174, 0.085) 0%, transparent 72%),
    radial-gradient(ellipse 620px 500px at 82% 16%, rgba(214, 51, 108, 0.07) 0%, transparent 74%),
    radial-gradient(ellipse 760px 520px at 50% 96%, rgba(92, 138, 166, 0.08) 0%, transparent 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.032'/%3E%3C/svg%3E");
  background-size: auto, auto, auto, 180px 180px;
  color: #FAF8F2;
}
html.night-page body::before { background: #08141E; }
html.night-page .top {
  background: #091722;
  border-bottom-color: rgba(255, 255, 255, 0.10);
}
html.night-page .plate b { color: #FAF8F2; }
html.night-page .plate small { color: #FFE0CE; border-color: rgba(255, 224, 206, 0.30); }
html.night-page .dtabs { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.10); }
html.night-page .dtab { color: rgba(250, 248, 242, 0.70); }
html.night-page .dtab:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
html.night-page .dtab[aria-current="page"] { background: #FAF8F2; color: var(--ink-surface); }
html.night-page .dtab[aria-current="page"] svg { color: var(--accent); }
html.night-page .langs { background: rgba(255, 255, 255, 0.08); }
html.night-page .langs button { color: rgba(250, 248, 242, 0.68); }
html.night-page .langs button[aria-pressed="true"] { background: #FAF8F2; color: var(--ink-surface); }
html.night-page .tabs { background: #091722; border-top-color: rgba(255, 255, 255, 0.10); }
html.night-page .tab { color: rgba(250, 248, 242, 0.56); }
html.night-page .tab[aria-current="page"] { color: #FAF8F2; }
html.night-page .match-switch .btn-soft { border-color: rgba(255, 255, 255, 0.22); color: rgba(250, 248, 242, 0.84); }
html.night-page .match-switch .btn-soft[aria-pressed="true"] { background: #FAF8F2; border-color: #FAF8F2; color: var(--ink-surface); }

/* Night Page Reveal Cards */
.night .mphoto-stage { border-radius: 26px; border-color: rgba(255, 255, 255, 0.16); box-shadow: var(--sh-glass); }
.night .thumbs button[aria-pressed="true"] { border-color: #FFE3CA; }
.night .placard {
  border-radius: 28px;
  padding: 28px 30px;
  background: #FAF8F2;
  color: var(--ink);
  box-shadow: var(--sh-glass);
}
.night .about-card.night-card {
  padding: 24px 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.night .about-h, .night .facts dt, .night .about-sub, .night .want-note { color: rgba(246, 244, 236, 0.60); }
.night .about-bio, .night .facts dd { color: #FAF8F2; }
.night .about-tags span { background: rgba(255, 255, 255, 0.09); color: rgba(250, 248, 242, 0.88); }
.night .want-block { border-top-color: rgba(255, 255, 255, 0.10); }
.night .want-tags span.hit { background: rgba(30, 123, 84, 0.28); color: #9BECC2; }
.night .fit-line { background: rgba(30, 123, 84, 0.24); color: #9BECC2; }
.night .prompt {
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 18px 18px 0;
}
.night .prompt-text { color: #FAF8F2; }
.night .prompt .muted, .night .decide-note { color: rgba(246, 244, 236, 0.62); }
.night .decide-btns .btn:not(.btn-love) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FAF8F2;
  border-radius: var(--r-pill);
}
.night .decide-btns .btn:not(.btn-love):hover { background: rgba(255, 255, 255, 0.14); }
.night .decide-btns .btn-love { border-radius: var(--r-pill); box-shadow: 0 14px 32px -12px rgba(214, 51, 108, 0.62); }
.night .cm { text-align: center; align-items: center; }
.night .cm-title { color: #FAF8F2; }
.night .cm-sub { color: rgba(246, 244, 236, 0.72); }

/* Waiting Countdown Sanctuary */
.wd-stage {
  border-radius: 34px;
  background: radial-gradient(ellipse 80% 60% at 50% 18%, #1C3F54 0%, #0E2332 52%, #07151F 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--sh-glass);
}
.wd-orbit {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(440px, 84vw);
  height: min(440px, 84vw);
  border-radius: 50%;
  border: 1px dashed rgba(255, 227, 202, 0.16);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  animation: wdOrbitSpin 56s linear infinite;
}
.wd-stage .dt-skyline { height: 156px; color: #9FC4D8; opacity: 0.26; z-index: 0; }
.wd-inner { position: relative; z-index: 2; }
.wd-stage .bigtime { color: #FFE3CA; text-shadow: 0 14px 40px rgba(4, 12, 20, 0.45); }

/* Mutual Match Celebration Pavilion */
.match-success {
  border-radius: 34px;
  background: radial-gradient(ellipse 82% 58% at 50% 16%, #243C4F 0%, #102433 52%, #07151F 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--sh-glass);
}
.ms-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(480px 300px at 50% 34%, rgba(214, 51, 108, 0.22), transparent 72%);
}
.match-success .dt-skyline { height: 150px; color: #9FC4D8; opacity: 0.25; z-index: 0; }
.ms-sparks { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.ms-sparks i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFE3CA;
  opacity: 0;
  animation: msSparkFloat 3.4s var(--ease-expo) infinite;
}
.ms-sparks .sp-1 { left: 22%; top: 38%; --sx: -24px; --sy: -76px; animation-delay: 0.1s; background: #FF7EA7; }
.ms-sparks .sp-2 { left: 32%; top: 28%; --sx: -14px; --sy: -64px; animation-delay: 0.6s; }
.ms-sparks .sp-3 { left: 48%; top: 22%; --sx: 8px; --sy: -82px; animation-delay: 0.25s; background: #FFE0A3; }
.ms-sparks .sp-4 { left: 66%; top: 30%; --sx: 22px; --sy: -70px; animation-delay: 0.9s; background: #FF7EA7; }
.ms-sparks .sp-5 { left: 78%; top: 42%; --sx: 26px; --sy: -62px; animation-delay: 0.45s; }
.ms-sparks .sp-6 { left: 28%; top: 54%; --sx: -28px; --sy: -54px; animation-delay: 1.4s; background: #A8E6CC; }
.ms-sparks .sp-7 { left: 72%; top: 56%; --sx: 24px; --sy: -56px; animation-delay: 1.8s; background: #FFE0A3; }
.ms-sparks .sp-8 { left: 52%; top: 44%; --sx: -6px; --sy: -86px; animation-delay: 1.1s; background: #FF7EA7; }

.match-success .match-success-person:first-child { animation: qlPairWingL 780ms cubic-bezier(0.16, 1.08, 0.30, 1) 120ms both; }
.match-success .match-success-person.peer { animation: qlPairWingR 780ms cubic-bezier(0.16, 1.08, 0.30, 1) 180ms both; }
.match-success-photo { border-radius: 22px; border: 2px solid rgba(255, 255, 255, 0.24); box-shadow: 0 18px 36px -14px rgba(4, 12, 20, 0.6); }
.match-success-cta { border-radius: var(--r-pill); font-weight: 650; }
.ms-details { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 20px; padding: 0 18px; }
.ms-details summary { color: #FAF8F2; }

/* 14.9 Editorial Chat Studio */
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
}
.chat-head .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, #213746 0%, #593143 100%);
  color: #FFE3CA;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 20px;
}
.chat-who { display: flex; flex-direction: column; gap: 1px; margin-right: auto; min-width: 0; }
.chat-name { display: inline-flex; align-items: center; gap: 7px; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.chat-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--verified); animation: qlPulseRing 2.6s var(--ease) infinite; }
.days-pill {
  flex: none;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
}
.ice-card {
  border-radius: 22px;
  border-left: 3px solid var(--accent);
  box-shadow: var(--sh-xs);
}
.bubble.me { background: #0C1F2D; }
.bubble.them { box-shadow: var(--sh-xs); }
.card.coffee { border-radius: 24px; box-shadow: var(--sh-xs); }

/* 14.10 Twilight-Topped Member Passport & Settings Lists */
.me-head {
  position: relative;
  border-radius: 28px;
  padding: 0 20px 22px;
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.me-banner {
  grid-column: 1 / -1;
  position: relative;
  height: 92px;
  margin: 0 -20px -36px;
  background: linear-gradient(160deg, #1E3645 0%, #0D2230 62%, #07151F 100%);
  overflow: hidden;
}
.me-banner .dt-skyline { height: 78px; color: #9CC2D6; opacity: 0.28; }
.me-pass-tag {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 10px;
  letter-spacing: 0.10em;
  color: rgba(255, 227, 202, 0.72);
}
.me-photo-btn { position: relative; z-index: 2; border: 3px solid var(--surface); border-radius: 18px; box-shadow: var(--sh-sm); }
.me-id { position: relative; z-index: 2; padding-top: 34px; }
@media (min-width: 1024px) {
  .me-side .me-head { padding: 0 22px 24px; }
  .me-side .me-banner { height: 104px; margin: 0 -22px -54px; }
  .me-side .me-id { padding-top: 0; }
}
.me-main .list { border-radius: 22px; box-shadow: var(--sh-xs); }
.safety-card { border-radius: 22px; box-shadow: var(--sh-xs); }


/* ==========================================================================
   15. FULL-SITE AUDIT FIXES (P0 + P1 + P2)
       Chat Viewport-Locked Scroll · Opaque Chrome · Single-Screen Ritual Fit ·
       Select Single Chevron · Floating Match Decide Bar · Native Slim Footer
   ========================================================================== */

/* 15.1 Guaranteed single chevron on <select> (including Chrome 135+ ::picker-icon) */
select.input::picker-icon { display: none; }

/* 15.2 Eliminate redundant desktop sign-in icon beside pill CTA */
@media (min-width: 561px) {
  .landing-acct-m { display: none; }
}

/* 15.3 Hero Phone Tab 0 Match Highlights (fills empty vertical gap cleanly) */
.dt-match-why {
  list-style: none;
  padding: 0;
  margin: 2px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dt-match-why li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--body);
  line-height: 1.35;
}
.dt-match-why svg { width: 13px; height: 13px; flex: none; color: var(--accent); }

/* 15.4 Home Active-Match Dropcard & Exact Top-Edge Column Alignment */
.dc-active-head { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; }
.dc-active-title {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  color: #FAF8F2;
}
.dc-next-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.dc-next-row b { color: #FFE3CA; font-weight: 650; }
.mc-head-label { grid-column: 1 / -1; margin-bottom: -4px; }
.tips { padding: 0; }
.tips-in .sec-label { margin-bottom: 2px; }

/* 15.5 Single-Screen Ritual Fit inside 1440x900 Desktop Viewport (Email, Waiting, Mutual) */
@media (min-width: 1024px) {
  .side-panel {
    top: calc(var(--nav-h) + 28px);
    min-height: 0;
    padding: 26px 26px;
    gap: 14px;
  }
  html.has-preview-dock .side-panel { top: calc(var(--nav-h) + 64px); }
  .side-signin { padding: 20px 18px; }
  .side-signin .dt-phone { max-width: 306px; }
  .side-signin .dt-phone-screen { min-height: 416px; padding: 48px 14px 20px; }
  .side-signin .dt-phone-stage { gap: 12px; }
  .auth-card { padding: 26px 32px; gap: 16px; }

  .waitdrop { padding: 4px 0; }
  .wd-stage { padding: 44px 48px; }
  .wd-stage .bigtime { font-size: clamp(78px, 10vw, 112px); }

  .match-success { margin-top: 4px; padding: 34px 48px; gap: 18px; }
  .match-success-title { font-size: clamp(32px, 4.2vw, 46px); }
  .match-success-pair { width: min(100%, 340px); }
}

/* 15.6 Waiting Sanctuary Secondary Warm Action */
.wd-acts { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 4px; }
.wd-sec-link { color: #FFE3CA; font-size: 13.5px; text-decoration-color: rgba(255, 227, 202, 0.36); }
.wd-sec-link:hover { color: #FFFFFF; text-decoration-color: #FFFFFF; }

/* 15.7 Floating Sticky Decision Capsule on Desktop Match Reveal */
@media (min-width: 960px) {
  .night .decide {
    position: sticky;
    bottom: 18px;
    z-index: 12;
    padding: 14px 16px 12px;
    border-radius: 24px;
    background: #0F2332;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 22px 48px -14px rgba(4, 12, 20, 0.75);
  }
}

/* 15.8 P0 Viewport-Locked Chat Scroll Architecture (Zero Header/Sidebar Clipping!) */
.chat-main { padding-bottom: 92px; }
.chat-main.has-composer { padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
.chat-conv { gap: 12px; }
.chat-head { position: static; margin-top: 0; background: var(--surface); border-bottom: 1px solid var(--line); }

@media (min-width: 1024px) {
  .chat-main,
  .chat-main.has-composer {
    height: calc(100dvh - var(--nav-h));
    min-height: 0;
    padding-top: 18px;
    padding-bottom: 18px;
    overflow: hidden;
  }
  html.has-preview-dock .chat-main,
  html.has-preview-dock .chat-main.has-composer {
    height: calc(100dvh - var(--nav-h) - 41px);
  }
  .chat-cols {
    height: 100%;
    align-items: stretch;
  }
  .chat-conv {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .chat-transcript {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    padding-block: 10px;
  }
  .chat-conv .composer {
    position: static;
    flex: none;
    margin-top: 4px;
  }
  .chat-side {
    position: static;
    height: 100%;
    max-height: none;
    overflow-y: auto;
    padding-bottom: 12px;
  }
}

/* 15.9 Slim Native App Footer (Replaces bulky 3-col marketing footer inside authenticated app) */
.afoot-slim { margin-top: 28px; border-top: 1px solid var(--line); }
.afoot-slim-in {
  padding-top: 18px;
  padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  font-size: 12.5px;
  color: var(--muted);
}
@media (min-width: 960px) { .afoot-slim-in { padding-bottom: 28px; } }
.afoot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.afoot-links .afoot-btn { font-size: 12.5px; color: var(--muted); }
.afoot-links .afoot-btn:hover { color: var(--ink); }

/* 15.10 Mobile Home Week-Track Tight Labels & Smooth Inner Reveals */
@media (max-width: 640px) {
  .week-track { padding: 14px 12px; gap: 8px; }
  .wt-txt b { font-size: 13px; }
  .wt-txt small { font-size: 10.5px; line-height: 1.3; }
}
.rv-s {
  transition:
    opacity 460ms var(--ease-expo) var(--d, 0ms),
    transform 620ms cubic-bezier(0.16, 1.05, 0.30, 1) var(--d, 0ms);
}


/* ==========================================================================
   16. BESPOKE 7-ACT STORY-DRIVEN MOTION CHOREOGRAPHY (100% 120FPS PURE GPU)
       Every landing act has its own physical metaphor — zero monotonous copy-paste:
       Act I   Hero        — Left glide + Right 3D glass phone + 9-uni piano wave
       Act II  Crush Vault — 3D Lacquer Safe Lid Hinge-Open (rotateX) + 3 Vault Bolts
       Act III How (01-04) — Signature Alternating Pendulum Wing Sweep (±44vw, ±9deg)
       Act IV-A Dossier    — 3D Invitation Card Flip-Reveal (rotateY -68deg -> 0deg)
       Act IV-B Comparison — Center-Stage Deck Split (Old pushes left, UNIdate rises)
       Act IV-C Postcards  — Café-Table Dealer Fan-Out (Center stack fans out 4 ways!)
       Act V   Privacy     — 3D Protective Shields Hinged Upright (rotateX -38deg)
       Act VI  FAQ         — Crisp Editorial Typesetter Drawer Cascade
       Act VII Closing     — Harbour Horizon Curtain Lift + Converging CTAs
       All strictly 1:1 native scale translate3d/rotate + opacity. Zero lag.
   ========================================================================== */

/* Keep HK_SKYLINE strictly anchored at bottom of dark cards */
.dt-skyline {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0 !important;
  z-index: 0 !important;
  pointer-events: none;
}

/* Isolate layout/style scope on animated cards so motion never invalidates neighbors */
.dt-stagger-card,
.dt-vs-card,
.dt-priv-card,
.dt-dossier-frame,
.dt-dossier-col,
.dt-vault {
  contain: layout style;
}

/* Sleek GPU-light shadows on moving cards */
.dt-stagger-card,
.dt-dossier-frame,
.dt-vs-card.us,
.dt-priv-card {
  box-shadow: 0 10px 26px -14px rgba(8, 23, 33, 0.14);
}

/* --- ACT I: HERO OPENING — LEFT EDITORIAL GLIDE + RIGHT 3D GLASS ARRIVAL --- */
@keyframes dtHeroWingL {
  from { opacity: 0; transform: translate3d(-96px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes dtHeroWingR {
  from { opacity: 0; transform: perspective(1200px) translate3d(140px, 24px, 0) rotateY(-16deg) rotateZ(4deg); }
  to { opacity: 1; transform: perspective(1200px) translate3d(0, 0, 0) rotateY(0deg) rotateZ(0deg); }
}
@keyframes dtVaultBoltL {
  from { opacity: 0; transform: translate3d(-180px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes dtVaultBoltR {
  from { opacity: 0; transform: translate3d(180px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes dtCloseCtaL {
  from { opacity: 0; transform: translate3d(-88px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes dtCloseCtaR {
  from { opacity: 0; transform: translate3d(88px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.dt-hero .dt-hero-copy { animation: dtHeroWingL 760ms cubic-bezier(0.16, 1.04, 0.30, 1) 30ms backwards; }
.dt-hero .dt-phone-shell { animation: dtHeroWingR 920ms cubic-bezier(0.16, 1.05, 0.30, 1) 90ms backwards; }

/* Universal Landing .rv Base — Pure Compositor transform + opacity ONLY */
.dt-landing .rv {
  transition:
    opacity 540ms cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms),
    transform 840ms cubic-bezier(0.16, 1.06, 0.30, 1) var(--d, 0ms);
}
.dt-landing .rv:not(.in) {
  opacity: 0;
}

/* Section Headers: Calm Horizon Lift (lets each Act's unique card physics be the star!) */
.dt-landing .dt-head.rv:not(.in) {
  transform: translate3d(0, 38px, 0);
}

/* --- ACT II (#crush): THE MAGNETIC VAULT LOCK — 3D HINGE LID + 3 STEEL BOLTS --- */
.dt-landing .dt-mid-in .dt-eyebrow.rv:not(.in) {
  transform: translate3d(0, -22px, 0);
}
.dt-landing .dt-mid-in .dt-h2.rv:not(.in) {
  transform: translate3d(0, 32px, 0);
}
.dt-landing .dt-mid-body.rv:not(.in) {
  transform: translate3d(0, 26px, 0);
  transition-delay: 80ms;
}
.dt-landing .dt-vault.rv {
  transform-origin: 50% 100%;
  transition:
    opacity 580ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 920ms cubic-bezier(0.16, 1.06, 0.30, 1);
}
.dt-landing .dt-vault.rv:not(.in) {
  transform: perspective(1100px) rotateX(28deg) translate3d(0, 72px, 0);
}
.dt-landing .dt-vault.in .dt-vault-row:nth-child(1) { animation: dtVaultBoltL 640ms cubic-bezier(0.16, 1.06, 0.30, 1) 140ms backwards; }
.dt-landing .dt-vault.in .dt-vault-row:nth-child(2) { animation: dtVaultBoltR 640ms cubic-bezier(0.16, 1.06, 0.30, 1) 240ms backwards; }
.dt-landing .dt-vault.in .dt-vault-row:nth-child(3) { animation: dtVaultBoltL 640ms cubic-bezier(0.16, 1.06, 0.30, 1) 340ms backwards; }
.dt-landing .dt-mid-cta.rv:not(.in) {
  transform: translate3d(0, 36px, 0);
  transition-delay: 140ms;
}

/* --- ACT III (#how): SIGNATURE PENDULUM WING SWEEP (Alternating Far-Left / Far-Right!) --- */
.dt-landing .dt-stagger-card.rv {
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 860ms cubic-bezier(0.16, 1.08, 0.30, 1);
}
.dt-landing .dt-stagger-card.left.rv:not(.in) {
  transform: translate3d(-44vw, 38px, 0) rotate(-10deg);
}
.dt-landing .dt-stagger-card.right.rv:not(.in) {
  transform: translate3d(44vw, 38px, 0) rotate(10deg);
}

/* --- ACT IV-A (#card Dossier): 3D INVITATION CARD FLIP-REVEAL (Turn Face-Up!) --- */
.dt-landing .dt-dossier-col.rv:not(.in) {
  transform: translate3d(0, 44px, 0);
}
.dt-landing .dt-dossier-frame.rv {
  transform-origin: 50% 50%;
  transition:
    opacity 540ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 980ms cubic-bezier(0.16, 1.06, 0.28, 1);
}
.dt-landing .dt-dossier-frame.rv:not(.in) {
  transform: perspective(1200px) rotateY(-64deg) translate3d(48px, 24px, 0) rotateZ(4deg);
}

/* --- ACT IV-B (Comparison): CENTER-STAGE DECK SPLIT (Parting Outward From Center!) --- */
.dt-landing .dt-vs-card.rv {
  transition:
    opacity 540ms cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms),
    transform 880ms cubic-bezier(0.16, 1.06, 0.30, 1) var(--d, 0ms);
}
.dt-landing .dt-vs-card.them.rv:not(.in) {
  transform: perspective(1000px) translate3d(88px, 44px, 0) rotateY(18deg) rotateZ(2deg);
}
.dt-landing .dt-vs-card.us.rv:not(.in) {
  transform: perspective(1000px) translate3d(-88px, 68px, 0) rotateX(14deg) rotateY(-16deg) rotateZ(-2deg);
}


/* --- ACT V (#safety): 3D PROTECTIVE SHIELDS HINGING UPRIGHT FROM DESK --- */
.dt-landing .dt-priv-card.rv {
  transform-origin: 50% 100%;
  transition:
    opacity 540ms cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms),
    transform 880ms cubic-bezier(0.16, 1.07, 0.30, 1) var(--d, 0ms);
}
.dt-landing .dt-priv-card.rv:not(.in) {
  transform: perspective(1100px) rotateX(-38deg) translate3d(0, 68px, 0);
}
/* Guarantee pills: Clean domino staircase rise */
.dt-landing .dt-more li.rv:not(.in) {
  transform: translate3d(0, 38px, 0);
}

/* --- ACT VI (#faq): TYPESETTER'S DRAWER CASCADE (Subtle Oblique Editorial Slide) --- */
.dt-landing .faq-item.rv {
  transition:
    opacity 460ms cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms),
    transform 680ms cubic-bezier(0.16, 1.03, 0.30, 1) var(--d, 0ms),
    background-color 240ms var(--ease);
}
.dt-landing .faq-item.rv:not(.in) {
  transform: translate3d(-34px, 22px, 0);
}

/* --- ACT VII (Closing Cinema): HARBOUR HORIZON CURTAIN LIFT + CONVERGING CTAS --- */
.dt-landing .dt-close-in.rv {
  transform-origin: 50% 100%;
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 920ms cubic-bezier(0.16, 1.05, 0.30, 1);
}
.dt-landing .dt-close-in.rv:not(.in) {
  transform: perspective(1200px) rotateX(18deg) translate3d(0, 72px, 0);
}
.dt-landing .dt-close-in.in .dt-close-cta > :first-child { animation: dtCloseCtaL 680ms cubic-bezier(0.16, 1.06, 0.30, 1) 180ms backwards; }
.dt-landing .dt-close-in.in .dt-close-cta > :last-child { animation: dtCloseCtaR 680ms cubic-bezier(0.16, 1.06, 0.30, 1) 240ms backwards; }

/* Mobile fine-tuning for narrow viewports */
@media (max-width: 640px) {
  .dt-landing .dt-stagger-card.left.rv:not(.in) { transform: translate3d(-48vw, 28px, 0) rotate(-7deg); }
  .dt-landing .dt-stagger-card.right.rv:not(.in) { transform: translate3d(48vw, 28px, 0) rotate(7deg); }
  .dt-landing .dt-dossier-frame.rv:not(.in) { transform: perspective(1000px) rotateY(-42deg) translate3d(24px, 24px, 0); }
  .dt-landing .dt-vs-card.them.rv:not(.in) { transform: translate3d(-36px, 32px, 0); }
  .dt-landing .dt-vs-card.us.rv:not(.in) { transform: translate3d(36px, 42px, 0); }
  .dt-vault-btn {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: auto;
    min-height: 58px;
    padding: 12px 16px;
    gap: 4px;
  }
}


/* ==========================================================================
   17. ARCHITECTURAL MATTE FROSTED GLASS SYSTEM (雾面毛玻璃质感)
       Disciplined 10px-14px satin blur · Specular glass rims · Zero nesting ·
       Preserves all 7 bespoke motion metaphors cleanly at high frame rates.
   ========================================================================== */

/* 17.1 Sticky Top Navigation & Mobile Tab Bar — Frosted Matte Satin Chrome */
.top {
  background: linear-gradient(180deg, rgba(248, 246, 240, 0.84) 0%, rgba(246, 244, 236, 0.76) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: rgba(21, 27, 32, 0.08);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.55);
}
.scrolled .top {
  background: linear-gradient(180deg, rgba(248, 246, 240, 0.88) 0%, rgba(246, 244, 236, 0.80) 100%);
}
.landing-page.over-sky .top {
  background: linear-gradient(180deg, rgba(16, 33, 44, 0.34) 0%, rgba(16, 33, 44, 0.04) 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.landing-page.over-sky.scrolled .top {
  background: rgba(14, 30, 42, 0.56);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
html.night-page .top {
  background: rgba(9, 23, 34, 0.76);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}
.tabs {
  background: rgba(246, 244, 236, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-top-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 -1px 0 rgba(21, 27, 32, 0.08), 0 -10px 26px -14px rgba(8, 23, 33, 0.16);
}
html.night-page .tabs {
  background: rgba(9, 23, 34, 0.80);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-top-color: rgba(255, 255, 255, 0.12);
}
.composer {
  background: rgba(246, 244, 236, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
  backdrop-filter: blur(14px) saturate(155%);
}

/* 17.2 Hero Twilight Smoked-Glass Pills, Capsule Input, Dock & Phone Bezel (Razor-Thin Hairline, Zero Double-Rim) */
.dt-glass-pill,
.dt-join,
.dt-phone-dock,
.dt-btn-glass {
  background: rgba(10, 24, 36, 0.34);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 32px -16px rgba(6, 16, 26, 0.38);
}
.dt-join {
  background: rgba(10, 24, 36, 0.38);
  border-color: rgba(255, 255, 255, 0.16);
}
.dt-join:focus-within {
  background: rgba(10, 24, 36, 0.52);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.09), 0 18px 40px -16px rgba(6, 16, 26, 0.44);
}
.dt-btn-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
}
.landing-page.over-sky .langs,
.landing-page.over-sky .top .nav .btn-ink {
  background: rgba(10, 24, 36, 0.30);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.landing-page.over-sky .top .nav .btn-ink:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.26);
}
.landing-page.over-sky .plate small {
  border-color: rgba(250, 248, 242, 0.20);
  background: rgba(255, 255, 255, 0.08);
}
.landing-page.over-sky .acct.out {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(10, 24, 36, 0.28);
}
/* Prevent nested blur when scrolled header itself turns on blur */
.landing-page.over-sky.scrolled .langs,
.landing-page.over-sky.scrolled .top .nav .btn-ink {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.dt-phone-shell {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 48%, rgba(8, 23, 33, 0.24) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 28px 64px -22px rgba(6, 18, 28, 0.52), inset 0 0 0 0.5px rgba(255, 255, 255, 0.22);
}

/* 17.3 Smoked Midnight Matte Glass Vaults & Night Ritual Cards */
.dt-vault,
.crush-midnight .crush-feature-controls {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, rgba(8, 23, 33, 0.56) 100%);
  -webkit-backdrop-filter: blur(13px) saturate(145%);
  backdrop-filter: blur(13px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 48px -20px rgba(4, 12, 20, 0.58);
}
.night .about-card.night-card,
.night .prompt,
.ms-details {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06) 0%, rgba(10, 25, 36, 0.62) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: none;
}
@media (min-width: 960px) {
  .night .decide {
    background: linear-gradient(155deg, rgba(20, 42, 58, 0.82) 0%, rgba(10, 24, 35, 0.88) 100%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 48px -14px rgba(4, 12, 20, 0.72);
  }
}
/* True 1-Physical-Pixel Retina Hairline on Dark Glass Pills & Capsules */
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) {
  .dt-glass-pill,
  .dt-join,
  .dt-phone-dock,
  .dt-btn-glass,
  .d-welcome,
  .dt-count-bar,
  .cal-remind,
  .cal-pill,
  .wd-priority-badge,
  .dropcard .joined,
  .landing-page.over-sky .langs,
  .landing-page.over-sky .top .nav .btn-ink,
  .landing-page.over-sky .plate small,
  .landing-page.over-sky .acct.out,
  html.night-page .dtabs,
  html.night-page .langs,
  .dt-vault,
  .dt-vault-row.on,
  .crush-midnight .crush-feature-controls,
  .crush-midnight .crush-feature-entry .input,
  .crush-midnight .crush-note-in,
  .night .about-card.night-card,
  .night .prompt,
  .night .decide,
  .ms-details {
    border-width: 0.5px;
    border-color: rgba(255, 255, 255, 0.22);
  }
  .dt-join:focus-within {
    border-color: rgba(255, 255, 255, 0.44);
  }
}

/* 17.4 Warm Sandblasted Milk-Glass Editorial Cards Over Topographic Paper */
.dt-landing .rv:not(.in) {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.dt-stagger-card,
.dt-dossier-frame,
.dt-vs-card.us,
.dt-priv-card,
.dt-more li,
.auth-card,
.quiz-stage,
.form-page .group,
.week-track,
.mycard .card,
.me-head,
.me-main .list,
.safety-card,
.chat-head {
  background: linear-gradient(158deg, rgba(255, 254, 251, 0.84) 0%, rgba(250, 248, 241, 0.70) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  backdrop-filter: blur(10px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0 0 1px rgba(21, 27, 32, 0.06),
    0 12px 28px -16px rgba(8, 23, 33, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}
.dt-vs-card.them {
  background: linear-gradient(158deg, rgba(242, 239, 231, 0.76) 0%, rgba(235, 231, 222, 0.64) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: 0 0 0 1px rgba(21, 27, 32, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.dt-marquee {
  background: rgba(246, 244, 236, 0.62);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  backdrop-filter: blur(8px) saturate(130%);
}
.faq-item[open]:not(.closing) {
  background: rgba(255, 254, 250, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* 17.5 Privacy Card 2 — Real Frosted Glass Unlock Lens (See Monogram Softly Through Frost!) */
.v-frost-veil {
  background: linear-gradient(145deg, rgba(250, 248, 243, 0.62) 0%, rgba(235, 230, 220, 0.54) 100%);
  -webkit-backdrop-filter: blur(9px) saturate(130%);
  backdrop-filter: blur(9px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.dt-priv-card:hover .v-frost-veil,
.dt-priv-card.is-unlocked .v-frost-veil {
  opacity: 0;
  transform: translate3d(0, -10px, 0);
}

/* 17.6 Legal Sheet Frosted Scrim */
.lg-scrim {
  background: rgba(12, 24, 34, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}


/* ==========================================================================
   18. PRODUCT LOGIC UPGRADES (#1 Crush Fast-Track, #2 Calendar, #4 Priority, #5 Viral Story)
   ========================================================================== */
.dt-vault-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), transform 220ms var(--ease-spring);
}
.dt-vault-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-1px);
}
.intent-banner {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
}
.intent-banner svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.skip-to-crush {
  align-self: center;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}
.skip-to-crush:hover { color: var(--accent); }
.quiz-mile {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  align-self: center;
}

/* Wednesday 20:55 Calendar Reminder Pills (Home Dropcard & Waiting Sanctuary) */
.cal-remind {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  width: 100%;
}
.cal-remind-lbl { font-size: 12px; color: rgba(250, 248, 242, 0.74); text-align: center; }
.cal-remind-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cal-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #FAF8F2;
  font-size: 12.5px;
  font-weight: 600;
  transition: background-color 180ms var(--ease), transform 220ms var(--ease-spring);
}
.cal-pill:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }

/* Priority Pass & Waiting Sanctuary Badge */
.wd-priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(30, 123, 84, 0.24);
  border: 1px solid rgba(155, 236, 194, 0.34);
  color: #9BECC2;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.wd-priority-badge svg { width: 13px; height: 13px; }
.wd-priority-badge.gold {
  background: rgba(214, 166, 86, 0.20);
  border-color: rgba(255, 224, 163, 0.38);
  color: #FFE0A3;
}

/* Crush List Incoming Anonymous Notes (Sealed Envelopes) & Optional Note Input */
.crush-inbox {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.crush-env {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 224, 206, 0.28);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.crush-env.is-sealed {
  background: linear-gradient(155deg, rgba(214, 51, 108, 0.16), rgba(255, 255, 255, 0.07));
  border-color: rgba(255, 198, 214, 0.34);
}
.crush-env.is-open {
  background: rgba(250, 248, 242, 0.10);
  border-color: rgba(255, 224, 206, 0.36);
}
.crush-env-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.crush-env-seal {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: rgba(214, 51, 108, 0.24);
  border: 1px solid rgba(255, 198, 214, 0.36);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.crush-env-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.crush-env-copy strong { font-size: 14.5px; font-weight: 650; color: #FAF8F2; line-height: 1.35; }
.crush-env-copy span { font-size: 12.5px; color: rgba(250, 248, 242, 0.72); line-height: 1.5; }
.crush-env-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.crush-env-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 180ms var(--ease), transform 220ms var(--ease-spring), border-color 180ms var(--ease);
}
.crush-env-btn.open {
  background: #FFE0CE;
  border: 1px solid #FFE0CE;
  color: #0B1D28;
  font-weight: 650;
}
.crush-env-btn.open:hover { background: #FFFFFF; border-color: #FFFFFF; transform: translateY(-1px); }
.crush-env-btn.skip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(250, 248, 242, 0.86);
}
.crush-env-btn.skip:hover { background: rgba(255, 255, 255, 0.16); }
.crush-env-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #FFE0CE;
}
.crush-env-meta time { font-weight: 500; color: rgba(250, 248, 242, 0.58); }
.crush-env-quote {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(9, 24, 35, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 17px;
  line-height: 1.55;
  color: #FAF8F2;
  word-break: break-word;
}
.crush-env-hint {
  margin: 0;
  font-size: 12.5px;
  color: rgba(250, 248, 242, 0.72);
  line-height: 1.5;
}
.crush-env-foot, .crush-env-confirm {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(250, 248, 242, 0.76);
}
.crush-env-confirm span { margin-right: auto; }
.crush-env-link {
  background: none;
  border: none;
  padding: 2px 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(250, 248, 242, 0.70);
  cursor: pointer;
}
.crush-env-link:hover { color: #FAF8F2; text-decoration: underline; }
.crush-env-link.danger { color: #FF9DB8; }
.crush-env-link.danger:hover { color: #FFD0DE; }

.crush-form-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.crush-midnight .crush-note-in {
  height: 42px;
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #FAF8F2;
}
.crush-midnight .crush-note-in::placeholder { color: rgba(250, 248, 242, 0.48); }
.crush-midnight .crush-note-in:focus {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 224, 206, 0.56);
}
.crush-entry-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.crush-sent-note {
  font-size: 12.5px;
  color: rgba(255, 224, 206, 0.84);
  line-height: 1.45;
  word-break: break-word;
}


/* Distinct persona plates & full Hero phone Quiz / Chat preview panels */
.dt-sv-polaroid.mono-card.tone-ust {
  background: linear-gradient(155deg, #1E3958 0%, #2B5373 100%);
}
.v-pic-graphic.tone-hku {
  background: linear-gradient(150deg, #1E3E38 0%, #274A57 100%);
}
.dt-q-preview {
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(21, 27, 32, 0.04);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dt-q-preview b { font-size: 11.5px; color: var(--accent); letter-spacing: 0.02em; }
.dt-q-preview p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--body); }
.dt-imsg-ice {
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dt-imsg-ice span { font-size: 10.5px; font-weight: 650; color: var(--accent); letter-spacing: 0.03em; }
.dt-imsg-ice b { font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.4; }

/* Home unopened anonymous note alert banner & 5-step setup progress */
.crush-alert-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(214, 51, 108, 0.12) 0%, rgba(255, 224, 206, 0.24) 100%);
  border: 1px solid var(--accent-line);
  color: var(--ink);
  font-size: 13.5px;
  text-align: left;
  transition: transform 200ms var(--ease-spring), border-color 180ms var(--ease);
}
.crush-alert-bar:hover { transform: translateY(-1px); border-color: var(--accent); }
.crush-alert-bar em { font-style: normal; font-size: 12.5px; font-weight: 650; color: var(--accent); white-space: nowrap; }

.setup-progress-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  overflow: hidden;
}
.setup-progress-bar .sp-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; }
.setup-progress-bar .sp-sub { margin: 3px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.sp-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--bg-subtle);
}
.sp-rail i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #EC7A9E);
  transition: width 360ms var(--ease-expo);
}
.prio-skip-btn { align-self: center; }

/* Crush note & chat live counters + failed message retry actions */
.crush-note-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.crush-note-wrap .crush-note-in { width: 100%; padding-right: 58px; }
.crush-note-count {
  position: absolute;
  right: 12px;
  font-size: 11px;
  color: rgba(250, 248, 242, 0.50);
  pointer-events: none;
}
.msg-count {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.msg-fail-acts {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
}
.msg-fail-acts button {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 650;
}

/* Mutual Availability Overlap Card in Chat */
.avail-card {
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0 14px;
}
.avail-card summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.avail-card summary::-webkit-details-marker { display: none; }
.avail-card summary > span:first-child { white-space: nowrap; }
.avail-card summary > .tiny,
.avail-card summary > .avail-match-pill { margin-left: auto; text-align: right; }
.avail-card summary .chev { width: 14px; height: 14px; flex: none; transition: transform 200ms var(--ease); }
.avail-card[open] summary .chev { transform: rotate(90deg); }
.avail-match-pill {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--verified-soft);
  color: var(--verified);
  font-size: 11.5px;
  font-weight: 650;
}
.avail-body {
  padding: 4px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.avail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding-top: 10px;
}
@media (max-width: 520px) { .avail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.avail-slot {
  min-height: 34px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--body);
  font-size: 12px;
  font-weight: 550;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.avail-slot[aria-pressed="true"] {
  background: var(--ink-surface);
  border-color: var(--ink-surface);
  color: #FAF8F2;
}
.avail-slot.hit {
  background: var(--verified);
  border-color: var(--verified);
  color: #FFFFFF;
}

/* 1-tap optional feedback strip on Pass / Expired screens */
.fb-card {
  width: 100%;
  max-width: 480px;
  margin: 14px auto 0;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}
html:not(.night-page) .fb-card { background: var(--surface); }
.fb-title { font-size: 12.5px; color: var(--muted); }
html.night-page .fb-title { color: rgba(250, 248, 242, 0.72); }
.fb-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.fb-pill {
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 550;
}
html.night-page .fb-pill {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.24);
  color: #FAF8F2;
}
.fb-pill:hover { border-color: var(--accent); color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .rv:not(.in), .rv-s:not(.in) { opacity: 1 !important; transform: none !important; }
  .dt-marquee-track { animation: none !important; }
  .top-prog { display: none !important; }
}


/* ==========================================================================
   18. EDITORIAL CHAT STUDIO (DittoDate x iMessage Unified Conversation Workspace)
   ========================================================================== */
.chat-main { padding-top: 12px; padding-bottom: 24px; }
.chat-main .chat-cols { display: block; }
.chat-studio {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 254, 251, 0.94) 0%, rgba(250, 248, 242, 0.88) 100%);
  border: 1px solid rgba(21, 27, 32, 0.08);
  box-shadow: 0 22px 48px -28px rgba(8, 23, 33, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  overflow: hidden;
}
.chat-studio .match-switch {
  padding: 10px 16px 0;
  margin-bottom: -2px;
}

/* Unified Chat Header */
.chat-studio .chat-head {
  position: static;
  margin-top: 0;
  padding: 12px 16px;
  gap: 11px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(21, 27, 32, 0.08);
  background: rgba(255, 254, 251, 0.96);
  box-shadow: none;
  flex: none;
}
.chat-av-btn {
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  flex: none;
  cursor: pointer;
}
.chat-studio .chat-head .avatar { width: 40px; height: 40px; font-size: 18px; }
.chat-who { gap: 2px; }
.chat-studio .chat-name { font-size: 17.5px; }
.chat-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.days-pill.urgent { background: rgba(180, 52, 59, 0.12); color: #9F252C; }
.chat-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.chat-icon-btn:hover,
.chat-icon-btn[aria-pressed="true"] {
  background: rgba(21, 27, 32, 0.06);
  color: var(--ink);
}
.chat-icon-btn svg { width: 17px; height: 17px; stroke: currentColor; }
.chat-confirm { margin: 10px 14px 0; flex: none; }

/* Mobile Profile Slide-down Sheet */
.chat-info-sheet {
  flex: none;
  max-height: 58dvh;
  overflow-y: auto;
  padding: 14px 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 251, 0.98);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: qlPickerIn 200ms var(--ease-expo) both;
}
.chat-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Pre-chat Icebreaker Stage */
.chat-pre-stage {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.chat-pre-stage .ice-card { width: min(100%, 480px); }

/* In-stream System Privacy Pill & Icebreaker Card */
.chat-sys-pill {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  margin: 2px auto 6px;
  border-radius: 999px;
  background: rgba(21, 27, 32, 0.045);
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
  max-width: 94%;
}
.chat-sys-pill svg { width: 13px; height: 13px; flex: none; color: var(--verified); }

.ice-card.in-stream {
  align-self: center;
  width: min(100%, 480px);
  margin: 2px auto 10px;
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(246, 244, 236, 0.88);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  box-shadow: none;
  gap: 6px;
}
.ice-card.in-stream .ice-q { font-size: 16px; }
.ice-card.in-stream .ice-ans { font-size: 13.5px; gap: 4px 12px; }

.chat-starters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 4px auto 8px;
  max-width: 480px;
}
.chat-starter {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--body);
  font-size: 12.5px;
  line-height: 1.35;
  text-align: left;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease-spring);
}
.chat-starter:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }

/* Transcript Breathing Room & Bubbles */
.chat-studio .chat-transcript {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(21, 27, 32, 0.16) transparent;
  padding: 16px 52px 18px 52px;
  gap: 7px;
}
.chat-studio .chat-transcript::-webkit-scrollbar { width: 5px; }
.chat-studio .chat-transcript::-webkit-scrollbar-thumb { background: rgba(21, 27, 32, 0.16); border-radius: 99px; }
.chat-studio .chat-transcript::-webkit-scrollbar-track { background: transparent; }

.chat-studio .bubble {
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 14.5px;
  line-height: 1.48;
  cursor: pointer;
}
.chat-studio .bubble.them {
  background: #FFFFFF;
  border: 1px solid rgba(21, 27, 32, 0.08);
  border-bottom-left-radius: 6px;
  box-shadow: 0 2px 8px -6px rgba(8, 23, 33, 0.16);
}
.chat-studio .bubble.me {
  background: #0C1F2D;
  color: #FAF8F2;
  border-bottom-right-radius: 6px;
}
.chat-studio .bubble.chat-sticker { background: transparent; border: 0; box-shadow: none; padding: 4px; }
.chat-studio .bub-time {
  display: block;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  transition:
    max-height 220ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 220ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 160ms ease;
}
.chat-studio .bubble.me .bub-time { color: rgba(250, 248, 242, 0.80); }
.chat-studio .bubble.them .bub-time { color: var(--muted); }
.chat-studio .bubble.show-time .bub-time {
  max-height: 20px;
  margin-top: 4px;
  opacity: 0.76;
}

/* Integrated Dock, Floating Drawers & Multi-line Composer */
.chat-dock {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 16px 12px;
  border-top: 1px solid rgba(21, 27, 32, 0.08);
  background: rgba(252, 251, 247, 0.96);
}
.chat-quickbar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chat-quickbar::-webkit-scrollbar { display: none; }
.chat-qpill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  min-height: 29px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(21, 27, 32, 0.048);
  border: 1px solid transparent;
  color: var(--body);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.chat-qpill:hover { background: rgba(21, 27, 32, 0.085); color: var(--ink); }
.chat-qpill[aria-pressed="true"] {
  background: var(--ink-surface);
  color: #FAF8F2;
}
.chat-qpill.has-hit {
  background: var(--verified-soft);
  border-color: rgba(15, 107, 79, 0.22);
  color: var(--verified);
}
.chat-qpill.has-hit[aria-pressed="true"] {
  background: var(--verified);
  color: #FFFFFF;
}
.qpill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.chat-drawer {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(100% + 8px);
  z-index: 30;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 254, 251, 0.98);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 44px -18px rgba(8, 23, 33, 0.30);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: qlPickerIn 220ms var(--ease-expo) both;
}
.chat-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.chat-drawer-head > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chat-drawer-head b { font-size: 13.5px; color: var(--ink); }
.chat-drawer .avail-grid { padding-top: 2px; }
.chat-drawer p { margin: 0; }
.chat-drawer .inline-form { gap: 8px; }

.chat-dock .composer {
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.chat-dock .composer-in {
  position: static;
  max-width: none;
  padding: 0;
  display: block;
}
.composer-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.composer-field {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 3px 5px 3px 14px;
  border-radius: 22px;
  background: #FFFFFF;
  border: 1px solid rgba(21, 27, 32, 0.14);
  box-shadow: inset 0 1px 2px rgba(8, 23, 33, 0.03);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.composer-field:focus-within {
  border-color: rgba(21, 27, 32, 0.34);
  box-shadow: 0 0 0 3px rgba(21, 27, 32, 0.06);
}
.composer-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 36px;
  max-height: 112px;
  padding: 7px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.45;
  resize: none;
  outline: none;
}
.composer-input::placeholder { color: var(--muted); }
.composer-field .msg-count {
  align-self: center;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  padding-right: 2px;
}
.chat-dock .chat-emoji-toggle {
  width: 34px;
  height: 34px;
  margin-bottom: 1px;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.chat-dock .chat-emoji-toggle:hover,
.chat-dock .chat-emoji-toggle[aria-expanded="true"] {
  background: rgba(21, 27, 32, 0.06);
  color: var(--ink);
}
.chat-dock .send { width: 40px; height: 40px; margin-bottom: 1px; }

.chat-dock .chat-picker {
  right: 14px;
  bottom: calc(100% + 8px);
  width: 348px;
  max-width: calc(100% - 28px);
  z-index: 32;
}
.chat-dock .chat-picker-content { padding-bottom: 8px; }

/* Right Profile Studio Card (Desktop) */
@media (min-width: 1024px) {
  .chat-main.is-thread,
  .chat-main {
    height: calc(100dvh - var(--nav-h));
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 18px;
    overflow: hidden;
  }
  html.has-preview-dock .chat-main,
  html.has-preview-dock .chat-main.is-thread {
    height: calc(100dvh - var(--nav-h) - 41px);
  }
  .chat-main .chat-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 368px;
    gap: 22px;
    height: 100%;
    align-items: stretch;
  }
  .chat-studio { height: 100%; }
  .chat-main .chat-side {
    display: flex;
    flex-direction: column;
    position: static;
    height: 100%;
    max-height: none;
    padding: 0;
    border: 0;
    overflow: hidden;
  }
  .chat-side-card {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(21, 27, 32, 0.16) transparent;
    padding: 14px 18px 16px;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(255, 254, 251, 0.90) 0%, rgba(250, 248, 242, 0.84) 100%);
    border: 1px solid rgba(21, 27, 32, 0.08);
    box-shadow: 0 22px 48px -28px rgba(8, 23, 33, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.94);
    display: flex;
    flex-direction: column;
    gap: 11px;
  }
  .chat-side-card .side-about {
    border-top: 0;
    border-bottom: 0;
    padding: 0;
    gap: 11px;
  }
  .chat-side-card .about-bio { font-size: 13.5px; line-height: 1.5; }
  .chat-side-card .facts { gap: 7px 14px; padding-block: 10px; }
  .chat-side-card .want-block { padding-top: 10px; }
}

.chat-side-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(21, 27, 32, 0.08);
  background: var(--bg-subtle);
  flex: none;
}
.chat-side-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  transition: transform 420ms var(--ease-expo);
}
.chat-side-hero:hover img { transform: scale(1.03); }
.chat-photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(8, 23, 33, 0.72);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
}

/* Mobile Immersive Thread (No overlapping bottom tabs!) */
@media (max-width: 1023px) {
  html.chat-immersive .tabs { display: none !important; }
  .chat-main.is-thread {
    max-width: none;
    width: 100%;
    padding: 0;
    height: calc(100dvh - var(--nav-h) - var(--kb, 0px));
    overflow: hidden;
  }
  html.has-preview-dock .chat-main.is-thread {
    height: calc(100dvh - var(--nav-h) - 41px - var(--kb, 0px));
  }
  .chat-main.is-thread .chat-cols {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .chat-main.is-thread .chat-studio {
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: var(--bg);
  }
  .chat-main.is-thread .chat-head {
    padding: 8px 10px;
    gap: 8px;
    background: rgba(248, 246, 240, 0.96);
  }
  .chat-main.is-thread .chat-icon-btn { width: 30px; height: 30px; }
  .chat-main.is-thread .chat-sub { font-size: 11.5px; }
  .chat-main.is-thread .chat-transcript {
    padding: 12px 44px 14px 44px;
  }
  .chat-main.is-thread .chat-dock {
    padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .chat-dock .chat-picker {
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
  }
}


/* ==========================================================================
   19. QUIET LUXURY NIGHT REVEAL, TACTILE BUTTONS & TYPOGRAPHY CALIBRATION
   ========================================================================== */

/* 19.1 Calmer Nocturnal Nav Pills & Frosted Photo Zoom */
html.night-page .top {
  background: rgba(8, 20, 30, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
html.night-page .dtab[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
  color: #FAF8F2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 16px -8px rgba(0, 0, 0, 0.55);
}
html.night-page .dtab[aria-current="page"] svg { color: #FF7DA8; }
html.night-page .langs button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.16);
  color: #FAF8F2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
}
html.night-page .match-switch .btn-soft[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  color: #FAF8F2;
}

.mphoto-zoom {
  background: rgba(10, 22, 32, 0.56);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(250, 248, 242, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.48);
}
.mphoto-zoom:hover {
  background: rgba(10, 22, 32, 0.78);
  border-color: rgba(255, 255, 255, 0.46);
  color: #FFFFFF;
}

/* 19.2 Zero-Overlap Desktop Night Reveal + Candlelit Stationery & Champagne Match */
.reveal-dossier {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.night .placard {
  background: linear-gradient(168deg, #FCFBF7 0%, #F4EFE3 100%);
  border: 1px solid rgba(255, 250, 240, 0.72);
  box-shadow: 0 28px 72px -24px rgba(2, 8, 14, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}
.night .fit-line {
  background: linear-gradient(135deg, rgba(236, 192, 120, 0.14) 0%, rgba(255, 224, 206, 0.08) 100%);
  border: 1px solid rgba(236, 192, 120, 0.28);
  color: #F5DFBA;
}
.night .fit-line svg { color: #ECC078; }
.night .want-tags span.hit {
  background: rgba(236, 192, 120, 0.15);
  border: 1px solid rgba(236, 192, 120, 0.30);
  color: #F5DFBA;
}

@media (min-width: 960px) {
  .reveal {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 52px;
    row-gap: 16px;
    align-items: start;
  }
  .reveal > .gallery,
  .reveal > .mphoto {
    grid-column: 1;
    grid-row: 1;
    position: static;
  }
  .reveal .mphoto { aspect-ratio: 4 / 4.65; }
  .reveal > .reveal-dossier {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .reveal > .decide,
  .night .reveal > .decide {
    grid-column: 1;
    grid-row: 2;
    position: sticky;
    bottom: 20px;
    align-self: start;
    padding: 14px 16px 12px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(20, 42, 58, 0.88) 0%, rgba(10, 23, 34, 0.94) 100%);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    backdrop-filter: blur(14px) saturate(145%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 44px -16px rgba(2, 8, 14, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
}

/* 19.3 Tactile Micro-Lit Primary Buttons */
.btn-love {
  background: linear-gradient(180deg, #E1437A 0%, #CB2861 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 22px -12px rgba(214, 51, 108, 0.62);
}
.btn-love:hover {
  background: linear-gradient(180deg, #DA3770 0%, #B82055 100%);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 26px -12px rgba(214, 51, 108, 0.74);
}
.btn-ink, .btn-red {
  background: linear-gradient(180deg, #162938 0%, #081721 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 22px -12px rgba(8, 23, 33, 0.46);
}
.btn-ink:hover, .btn-red:hover {
  background: linear-gradient(180deg, #1D3547 0%, #0C1E2B 100%);
  border-color: rgba(255, 255, 255, 0.14);
}
.dropcard .btn-love {
  background: linear-gradient(180deg, #FFFFFF 0%, #F3EFE4 100%);
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--ink-surface);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 10px 24px -12px rgba(0, 0, 0, 0.45);
}
.dropcard .btn-love:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
}

/* 19.4 Micro-Typography, Home Track Alignment & Quiz Avatar */
.hello {
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}
.quiz-stage .qtext {
  font-weight: 500;
  text-wrap: balance;
  max-width: 17em;
  line-height: 1.36;
}
.slc-av.has-img {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.slc-av.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

@media (min-width: 1024px) {
  .home-page .mc-photo:not(.mc-mono) {
    display: block;
    aspect-ratio: 16 / 10;
  }
  .home-page .mc-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 32%;
  }
  .week-track::before,
  .week-track::after {
    display: none;
  }
  .week-track li {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    z-index: 2;
  }
  .week-track li .wt-dot {
    width: 28px;
    height: 28px;
    box-shadow: 0 0 0 4px var(--surface);
  }
  .week-track li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 34px;
    right: -6px;
    top: 13px;
    height: 2px;
    border-radius: 99px;
    background: var(--bg-subtle);
  }
  .week-track li.done:not(:last-child)::before {
    background: rgba(30, 123, 84, 0.46);
  }
  .week-track li.cur:not(:last-child)::before {
    background: linear-gradient(90deg, rgba(214, 51, 108, 0.52) 0%, var(--bg-subtle) 65%);
  }
}


/* ==========================================================================
   20. GROK / X.AI TACTILE BUTTONS, POPOVER SELECTS & GLIDING PILLS
       Concentric Corner Geometry · Origin-Anchored Micro-Spring ·
       75ms Inset Highlight Pills · color-mix 3%->7% Surfaces ·
       Scroll-Fade Masks · Shared Gliding Segmented Pill
   ========================================================================== */

@keyframes grokPopIn {
  from {
    opacity: 0;
    transform: scale(0.965);
    filter: blur(1.5px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}
@keyframes grokPopOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.972);
  }
}
@keyframes grokCheckIn {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 20.1 Custom Grok Popover Select Replacing Native <select> */
.gsel-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 46px;
  padding: 0 13px 0 14px;
  border-radius: 13px;
  border: 1px solid rgba(21, 27, 32, 0.11);
  background: var(--surface);
  background: color-mix(in srgb, var(--ink) 2.2%, var(--surface));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(8, 23, 33, 0.03);
  transition:
    background-color 120ms ease-out,
    border-color 120ms ease-out,
    box-shadow 150ms ease-out,
    transform 80ms ease-out;
}
.gsel-btn:hover {
  background: #F3F0E7;
  background: color-mix(in srgb, var(--ink) 5.5%, var(--surface));
  border-color: rgba(21, 27, 32, 0.22);
}
.gsel-btn:active,
.gsel-btn.is-pressed {
  transform: scale(0.988);
}
.gsel-btn:focus-visible {
  outline: none;
  border-color: rgba(21, 27, 32, 0.36);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(21, 27, 32, 0.22);
}
.gsel-btn[aria-expanded="true"] {
  background: var(--surface);
  border-color: rgba(21, 27, 32, 0.34);
  box-shadow: 0 0 0 3px rgba(21, 27, 32, 0.06);
}
.gsel-btn[aria-invalid="true"] {
  border-color: var(--danger);
  background: #FFFDFD;
}
.gsel-val {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.gsel-btn.is-ph .gsel-val {
  color: var(--quiet);
  font-weight: 450;
}
.gsel-chev {
  flex: none;
  color: var(--muted);
  transition: transform 220ms var(--ease-expo), color 120ms ease-out;
}
.gsel-btn:hover .gsel-chev,
.gsel-btn[aria-expanded="true"] .gsel-chev {
  color: var(--ink);
}
.gsel-btn[aria-expanded="true"] .gsel-chev {
  transform: rotate(180deg);
}

.gsel-portal {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
}
.gsel-pop {
  position: fixed;
  z-index: 96;
  pointer-events: auto;
  outline: none;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 254, 251, 0.96);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  border: 1px solid rgba(21, 27, 32, 0.08);
  box-shadow:
    0 18px 48px -8px rgba(8, 23, 33, 0.22),
    0 4px 12px -4px rgba(8, 23, 33, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  will-change: transform, opacity;
  animation: grokPopIn 190ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.gsel-pop.closing {
  pointer-events: none;
  animation: grokPopOut 135ms ease-out both;
}
.gsel-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(21, 27, 32, 0.16) transparent;
}
.gsel-list[data-fade="bottom"],
.chat-picker-content[data-fade="bottom"] {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 22px), rgba(0, 0, 0, 0.38) calc(100% - 9px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 22px), rgba(0, 0, 0, 0.38) calc(100% - 9px), transparent 100%);
}
.gsel-list[data-fade="top"],
.chat-picker-content[data-fade="top"] {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.38) 9px, #000 22px, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.38) 9px, #000 22px, #000 100%);
}
.gsel-list[data-fade="both"],
.chat-picker-content[data-fade="both"] {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.38) 9px, #000 22px, #000 calc(100% - 22px), rgba(0, 0, 0, 0.38) calc(100% - 9px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.38) 9px, #000 22px, #000 calc(100% - 22px), rgba(0, 0, 0, 0.38) calc(100% - 9px), transparent 100%);
}

/* Concentric 10px inner highlight pill (16px shell - 6px pad) with Grok 75ms ease-out */
.gsel-opt {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 450;
  color: var(--ink);
  cursor: pointer;
  transition: color 75ms ease-out, transform 75ms ease-out;
}
.gsel-opt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: transparent;
  pointer-events: none;
  z-index: -1;
  transition: background-color 75ms ease-out;
}
.gsel-opt[data-hi="true"]::after,
.gsel-opt:hover::after {
  background: rgba(21, 27, 32, 0.062);
}
.gsel-opt:active {
  transform: scale(0.986);
}
.gsel-opt.is-any {
  color: var(--muted);
}
.gsel-opt[aria-selected="true"] {
  font-weight: 600;
  color: var(--ink);
}
.gsel-opt[aria-selected="true"]::after {
  background: rgba(21, 27, 32, 0.048);
}
.gsel-opt[aria-selected="true"][data-hi="true"]::after,
.gsel-opt[aria-selected="true"]:hover::after {
  background: rgba(21, 27, 32, 0.088);
}
.gsel-opt-lbl {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gsel-opt-ck {
  flex: none;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.gsel-opt-ck svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
  animation: grokCheckIn 210ms var(--ease-spring) both;
}

/* 20.2 Grok-Style Chat Floating Popovers & color-mix Quickbar Pills */
.chat-qpill:not(.has-hit):not([aria-pressed="true"]) {
  background: rgba(21, 27, 32, 0.042);
  background: color-mix(in srgb, var(--ink) 3.5%, var(--surface));
  border: 1px solid rgba(21, 27, 32, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.chat-qpill {
  transition:
    background-color 110ms ease-out,
    border-color 110ms ease-out,
    color 110ms ease-out,
    box-shadow 140ms ease-out,
    transform 75ms ease-out;
}
.chat-qpill:not(.has-hit):not([aria-pressed="true"]):hover {
  background: rgba(21, 27, 32, 0.082);
  background: color-mix(in srgb, var(--ink) 7.5%, var(--surface));
  border-color: rgba(21, 27, 32, 0.16);
  color: var(--ink);
}
.chat-qpill:active,
.chat-qpill.is-pressed {
  transform: scale(0.968);
}
.chat-qpill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px rgba(21, 27, 32, 0.24);
}
.chat-qpill[aria-pressed="true"] {
  background: var(--ink-surface);
  border-color: var(--ink-surface);
  color: #FAF8F2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 6px 14px -8px rgba(8, 23, 33, 0.45);
}
.chat-qpill.has-hit[aria-pressed="true"] {
  background: var(--verified);
  border-color: var(--verified);
  color: #FFFFFF;
}
.qpill-chev {
  flex: none;
  opacity: 0.58;
  transition: transform 200ms var(--ease-expo), opacity 120ms ease-out;
}
.chat-qpill:hover .qpill-chev { opacity: 0.88; }
.chat-qpill[aria-pressed="true"] .qpill-chev {
  transform: rotate(180deg);
  opacity: 0.92;
}

.chat-drawer {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 254, 251, 0.96);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  border: 1px solid rgba(21, 27, 32, 0.08);
  box-shadow:
    0 18px 46px -10px rgba(8, 23, 33, 0.22),
    0 4px 12px -4px rgba(8, 23, 33, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  will-change: transform, opacity;
  animation: grokPopIn 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.chat-drawer.closing {
  pointer-events: none;
  animation: grokPopOut 135ms ease-out both;
}
.cdh-l {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.chat-drawer-back {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  padding: 0 10px 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(21, 27, 32, 0.09);
  background: rgba(21, 27, 32, 0.045);
  color: var(--body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 90ms ease-out, border-color 90ms ease-out, color 90ms ease-out, transform 75ms ease-out;
}
.chat-drawer-back:hover {
  background: rgba(21, 27, 32, 0.09);
  border-color: rgba(21, 27, 32, 0.16);
  color: var(--ink);
}
.chat-drawer-back:active { transform: scale(0.95); }
.chat-drawer-back svg { width: 13px; height: 13px; flex: none; }
.cdh-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  color: var(--ink);
}
.cdh-title svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.avail-match-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.avail-match-pill svg { width: 12px; height: 12px; flex: none; }
.chat-drawer .avail-slot {
  border-radius: 10px;
  transition: background-color 75ms ease-out, border-color 75ms ease-out, color 75ms ease-out, transform 75ms ease-out;
}
.chat-drawer .avail-slot:not([aria-pressed="true"]):not(.hit) {
  border: 1px solid rgba(21, 27, 32, 0.09);
  background: color-mix(in srgb, var(--ink) 2.5%, var(--surface));
  color: var(--body);
}
.chat-drawer .avail-slot:not([aria-pressed="true"]):not(.hit):hover {
  background: color-mix(in srgb, var(--ink) 6.5%, var(--surface));
  border-color: rgba(21, 27, 32, 0.18);
  color: var(--ink);
}
.chat-drawer .avail-slot[aria-pressed="true"] {
  background: var(--ink-surface);
  border-color: var(--ink-surface);
  color: #FAF8F2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.chat-drawer .avail-slot.hit,
.chat-drawer .avail-slot.hit[aria-pressed="true"] {
  background: var(--verified);
  border-color: var(--verified);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
}
.chat-drawer .avail-slot:active { transform: scale(0.972); }

.chat-dock .chat-picker {
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 254, 251, 0.96);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  border: 1px solid rgba(21, 27, 32, 0.08);
  box-shadow:
    0 18px 46px -10px rgba(8, 23, 33, 0.22),
    0 4px 12px -4px rgba(8, 23, 33, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  will-change: transform, opacity;
  animation: grokPopIn 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.chat-dock .chat-picker.closing {
  pointer-events: none;
  animation: grokPopOut 135ms ease-out both;
}
.chat-picker-close {
  border-radius: 9px;
  transition: background-color 75ms ease-out, color 75ms ease-out, transform 75ms ease-out;
}
.chat-picker-close:hover {
  background: rgba(21, 27, 32, 0.065);
  color: var(--ink);
}
.chat-picker-close:active { transform: scale(0.94); }
.chat-emoji-grid button {
  border-radius: 10px;
  transition: background-color 75ms ease-out, transform 75ms ease-out;
}
.chat-emoji-grid button:hover { background: rgba(21, 27, 32, 0.068); }
.chat-emoji-grid button:active { transform: scale(0.91); }

/* 20.3 Real Shared Gliding Pill Across All Segmented Controls */
.langs,
.dtabs,
.dt-phone-dock,
.chat-picker-tabs {
  position: relative;
}
.glide-pill {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  opacity: 0;
  will-change: transform, width;
}
.langs > button,
.dtabs > .dtab,
.dt-phone-dock > button,
.chat-picker-tabs > button {
  position: relative;
  z-index: 1;
}

.langs .glide-pill {
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(8, 23, 33, 0.09), 0 0 0 1px rgba(21, 27, 32, 0.05);
}
.landing-page.over-sky .langs .glide-pill {
  background: rgba(250, 248, 242, 0.94);
  box-shadow: 0 2px 10px rgba(8, 23, 33, 0.16);
}
html.night-page .langs .glide-pill {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.dtabs .glide-pill {
  background: var(--ink-surface);
  box-shadow: 0 6px 16px -8px rgba(8, 23, 33, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
html.night-page .dtabs .glide-pill {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 16px -8px rgba(0, 0, 0, 0.55);
}

.dt-phone-dock .glide-pill {
  background: #FAF8F2;
  box-shadow: 0 2px 8px rgba(8, 23, 33, 0.22);
}

.chat-picker-tabs {
  padding: 3px;
  gap: 2px;
  border-radius: 12px;
  background: rgba(21, 27, 32, 0.048);
}
.chat-picker-tabs button {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  transition: color 120ms ease-out;
}
.chat-picker-tabs .glide-pill {
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(8, 23, 33, 0.09), 0 0 0 1px rgba(21, 27, 32, 0.05);
}

.langs.has-glide button[aria-pressed="true"],
.landing-page.over-sky .langs.has-glide button[aria-pressed="true"],
html.night-page .langs.has-glide button[aria-pressed="true"],
.dtabs.has-glide .dtab[aria-current="page"],
.dtabs.has-glide .dtab[aria-current="page"]:hover,
html.night-page .dtabs.has-glide .dtab[aria-current="page"],
html.night-page .dtabs.has-glide .dtab[aria-current="page"]:hover,
.dt-phone-dock.has-glide button[aria-selected="true"],
.chat-picker-tabs.has-glide button[aria-selected="true"] {
  background: transparent !important;
  box-shadow: none !important;
}

/* 20.4 Zero-Float Precision Options, Chips, Likert, List Rows & Disclosures */
.opt {
  position: relative;
  isolation: isolate;
  border-radius: 13px;
  border-color: rgba(21, 27, 32, 0.11);
  transition: border-color 110ms ease-out, background-color 110ms ease-out, transform 80ms ease-out;
}
.opt::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 10px;
  background: transparent;
  pointer-events: none;
  z-index: -1;
  transition: background-color 75ms ease-out;
}
.opt:hover {
  border-color: rgba(21, 27, 32, 0.22);
  background: var(--surface);
}
.opt:hover::before {
  background: rgba(21, 27, 32, 0.055);
}
.opt[aria-checked="true"] {
  border-color: rgba(21, 27, 32, 0.36);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(8, 23, 33, 0.06);
}
.opt[aria-checked="true"]::before {
  background: rgba(21, 27, 32, 0.068);
}
.opt[aria-checked="true"] svg {
  animation: grokCheckIn 210ms var(--ease-spring) both;
}
.opt:active,
.opt.is-pressed {
  transform: scale(0.986);
}

.chip {
  border-color: rgba(21, 27, 32, 0.11);
  background: color-mix(in srgb, var(--ink) 2.2%, var(--surface));
  transition:
    background-color 75ms ease-out,
    border-color 75ms ease-out,
    color 75ms ease-out,
    box-shadow 120ms ease-out,
    transform 80ms ease-out;
}
.chip:hover {
  background: color-mix(in srgb, var(--ink) 6%, var(--surface));
  border-color: rgba(21, 27, 32, 0.24);
  color: var(--ink);
}
.chip[aria-pressed="true"],
.chip[aria-checked="true"] {
  background: var(--ink-surface);
  border-color: var(--ink-surface);
  color: var(--on-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 4px 12px -6px rgba(8, 23, 33, 0.42);
}
.chip:active,
.chip.is-pressed {
  transform: scale(0.972);
}

.likert button {
  border-color: rgba(21, 27, 32, 0.12);
  background: color-mix(in srgb, var(--ink) 2%, var(--surface));
  transition:
    background-color 75ms ease-out,
    border-color 75ms ease-out,
    color 75ms ease-out,
    box-shadow 120ms ease-out,
    transform 80ms ease-out;
}
.likert button:not([aria-checked="true"]):hover {
  background: color-mix(in srgb, var(--ink) 6.5%, var(--surface));
  border-color: rgba(21, 27, 32, 0.30);
}
.likert button[aria-checked="true"] {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 14px -6px rgba(214, 51, 108, 0.44);
}
.likert button:active,
.likert button.is-pressed {
  transform: scale(0.94);
}

/* Override bouncy desktop vertical lift on options/chips/likert for grounded Grok precision */
@media (hover: hover) and (pointer: fine) {
  .likert button:hover,
  .opt:hover,
  .chip:hover {
    transform: none;
    box-shadow: none;
  }
  .opt[aria-checked="true"]:hover {
    box-shadow: 0 1px 3px rgba(8, 23, 33, 0.06);
  }
}

/* Secondary & Soft Buttons: x.ai 3% -> 7% color-mix micro-tint + focus ring */
:where(html:not(.night-page)) .btn:where(:not(.btn-love):not(.btn-ink):not(.btn-red):not(.btn-danger):not(.btn-soft):not(.match-success-cta)) {
  background: color-mix(in srgb, var(--ink) 3%, var(--surface));
  border-color: rgba(21, 27, 32, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(8, 23, 33, 0.04);
  transition: background-color 110ms ease-out, border-color 110ms ease-out, color 110ms ease-out, box-shadow 140ms ease-out, transform 80ms ease-out;
}
:where(html:not(.night-page)) .btn:where(:not(.btn-love):not(.btn-ink):not(.btn-red):not(.btn-danger):not(.btn-soft):not(.match-success-cta)):hover {
  background: color-mix(in srgb, var(--ink) 7%, var(--surface));
  border-color: rgba(21, 27, 32, 0.20);
}
:where(html:not(.night-page)) .btn-soft:not([aria-pressed="true"]) {
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  border-color: rgba(21, 27, 32, 0.10);
  transition: background-color 110ms ease-out, border-color 110ms ease-out, color 110ms ease-out, transform 80ms ease-out;
}
:where(html:not(.night-page)) .btn-soft:not([aria-pressed="true"]):hover {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  border-color: rgba(21, 27, 32, 0.18);
}
.btn:focus-visible,
.chip:focus-visible,
.opt:focus-visible,
.likert button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(21, 27, 32, 0.24);
}
html.night-page .btn:focus-visible,
html.night-page .dtab:focus-visible,
html.night-page .langs button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #09131C, 0 0 0 4px rgba(250, 248, 242, 0.36);
}

/* Concentric 75ms Inset Highlight on Settings List Rows & Disclosures */
button.list-row,
a.list-row {
  position: relative;
  isolation: isolate;
}
button.list-row::before,
a.list-row::before {
  content: "";
  position: absolute;
  inset: 3px 4px;
  border-radius: 10px;
  background: transparent;
  pointer-events: none;
  z-index: -1;
  transition: background-color 75ms ease-out;
}
button.list-row:hover,
a.list-row:hover {
  background: transparent;
}
button.list-row:hover::before,
a.list-row:hover::before {
  background: rgba(21, 27, 32, 0.052);
}
button.list-row.danger:hover::before {
  background: rgba(180, 42, 50, 0.08);
}

.faq-item summary {
  transition: color 120ms ease-out, background-color 75ms ease-out;
}
.faq-item summary:hover {
  background: rgba(21, 27, 32, 0.042);
}
.ms-details > summary {
  border-radius: 12px;
  transition: background-color 75ms ease-out, color 120ms ease-out;
}
.ms-details > summary:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .gsel-pop,
  .gsel-pop.closing,
  .gsel-opt-ck svg,
  .chat-drawer,
  .chat-drawer.closing,
  .chat-dock .chat-picker,
  .chat-dock .chat-picker.closing,
  .opt[aria-checked="true"] svg {
    animation: none !important;
  }
  .glide-pill {
    transition: none !important;
  }
}


/* ==========================================================================
   21. DITTO LIQUID-GLASS CHAT STUDIO & EDITORIAL PORTRAIT COMPANION
       Coastal Harbour Mist Atmosphere · Apple Liquid Glass Theater ·
       Centered Frosted iOS Header · Editorial Film Keepsake Card ·
       Curved SVG iMessage Tails · Grok + Action Menu · Portrait Companion
   ========================================================================== */

/* 21.1 Airy Victoria Harbour Coastal Mist Canvas Behind Liquid Glass */
html.chat-page .chat-main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(64% 52% at 12% 0%, rgba(114, 158, 174, 0.28) 0%, transparent 66%),
    radial-gradient(50% 48% at 90% 6%, rgba(255, 224, 184, 0.36) 0%, transparent 64%),
    radial-gradient(58% 50% at 48% 100%, rgba(128, 162, 176, 0.22) 0%, transparent 68%);
}
html.chat-page .top {
  background: rgba(244, 245, 242, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(12, 34, 80, 0.06);
}

/* 21.2 Liquid-Glass Chat Theater */
html.chat-page .chat-studio {
  border-radius: 30px;
  background: linear-gradient(162deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 250, 248, 0.66) 46%, rgba(255, 253, 249, 0.82) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  backdrop-filter: blur(24px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.90);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 0 1px rgba(12, 34, 80, 0.045),
    0 32px 76px -26px rgba(12, 34, 80, 0.22),
    0 10px 26px -14px rgba(12, 34, 80, 0.10);
}

/* 21.3 Centered Ditto / iOS Frosted Header */
.chat-studio .chat-head,
html.has-preview-dock .chat-studio .chat-head {
  position: relative;
  top: auto;
  z-index: 12;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(12, 34, 80, 0.055);
  background: rgba(252, 253, 251, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  backdrop-filter: blur(18px) saturate(165%);
}
.chat-head-left { display: flex; align-items: center; justify-content: flex-start; gap: 6px; min-width: 0; }
.chat-head-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.chat-days-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(12, 34, 80, 0.042);
  border: 1px solid rgba(12, 34, 80, 0.06);
  font-size: 11.5px;
  font-weight: 550;
  color: var(--muted);
  white-space: nowrap;
}
.chat-days-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #23966A;
}
.chat-days-chip.urgent {
  background: rgba(180, 52, 59, 0.09);
  border-color: rgba(180, 52, 59, 0.16);
  color: #9F252C;
}
.chat-days-chip.urgent i { background: #C93A43; }

.chat-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 14px 4px 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.90);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 6px 18px -10px rgba(12, 34, 80, 0.22), inset 0 1px 0 #FFFFFF;
  cursor: pointer;
  max-width: 100%;
  transition: background-color 110ms ease-out, box-shadow 140ms ease-out, transform 80ms ease-out;
}
.chat-id-pill:hover {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px -10px rgba(12, 34, 80, 0.26), inset 0 1px 0 #FFFFFF;
}
.chat-id-pill:active { transform: scale(0.976); }
.chat-id-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 25%;
  flex: none;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(12, 34, 80, 0.18);
}
.chat-id-av.mono {
  display: grid;
  place-items: center;
  background: var(--ink-surface);
  color: #FAF8F2;
  font-size: 14px;
  font-weight: 600;
}
.chat-id-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
  gap: 1px;
}
.chat-id-copy b {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.chat-id-copy b em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.45;
  font-size: 15px;
}
.chat-id-copy small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.only-m-inl { display: none; }
.chat-studio .chat-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(12, 34, 80, 0.04);
  border: 1px solid rgba(12, 34, 80, 0.055);
  color: var(--muted);
  transition: background-color 90ms ease-out, color 110ms ease-out, transform 80ms ease-out;
}
.chat-studio .chat-icon-btn:hover {
  background: rgba(12, 34, 80, 0.085);
  color: var(--ink);
}
.chat-studio .chat-icon-btn:active { transform: scale(0.93); }

/* 21.4 Editorial Film-Print Keepsake Icebreaker (Zero Cheap Left Stripe) */
.chat-keepsake {
  align-self: center;
  width: min(100%, 486px);
  margin: 4px auto 12px;
  padding: 15px 17px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.96) 0%, rgba(248, 245, 238, 0.90) 100%);
  border: 1px solid rgba(12, 34, 80, 0.075);
  box-shadow: 0 14px 36px -22px rgba(12, 34, 80, 0.22), inset 0 1px 0 #FFFFFF;
}
.ks-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.ks-kicker {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.ks-priv {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 107, 79, 0.08);
  color: var(--verified);
  font-size: 11px;
  font-weight: 550;
}
.ks-priv svg { width: 11px; height: 11px; }
.ks-q {
  margin: 0 0 11px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.32;
  color: var(--ink);
}
.ks-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ks-pair.single { grid-template-columns: 1fr; }
.ks-note {
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(12, 34, 80, 0.035);
  border: 1px solid rgba(12, 34, 80, 0.05);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ks-note.me {
  background: rgba(10, 124, 255, 0.06);
  border-color: rgba(10, 124, 255, 0.11);
}
.ks-who {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}
.ks-who i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.ks-note.me .ks-who i { background: #0A7CFF; }
.ks-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.46;
  color: var(--ink);
}
.ice-card.pre-keepsake {
  border-radius: 24px;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.96) 0%, rgba(248, 245, 238, 0.92) 100%);
  border: 1px solid rgba(12, 34, 80, 0.08);
  box-shadow: 0 16px 40px -24px rgba(12, 34, 80, 0.22), inset 0 1px 0 #FFFFFF;
}
@media (max-width: 440px) {
  .ks-pair { grid-template-columns: 1fr; }
}

/* 21.5 True Apple iMessage x Ditto Edge-to-Edge Thread + Curved SVG Tails */
.chat-studio .chat-transcript {
  padding: 14px 22px 18px;
  gap: 9px;
}
.chat-studio .tstamp {
  margin: 6px 0 2px;
  font-size: 11px;
  font-weight: 550;
  color: rgba(21, 27, 32, 0.45);
  letter-spacing: 0.01em;
}
.chat-studio .bubble {
  position: relative;
  max-width: min(74%, 450px);
  padding: 9.5px 14.5px;
  border-radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--sans);
  font-size: 15px;
  line-height: 1.42;
  letter-spacing: -0.012em;
  word-break: break-word;
  overflow: visible;
}
.chat-studio .bubble.cont { margin-top: -6px; }
.chat-studio .bubble.them {
  align-self: flex-start;
  background: rgba(233, 233, 229, 0.94);
  border: 0;
  color: #11161B;
  border-bottom-left-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(12, 34, 80, 0.05);
  transform-origin: 0 100%;
}
.chat-studio .bubble.me {
  align-self: flex-end;
  background: linear-gradient(180deg, #2796FF 0%, #0A7CFF 100%);
  border: 0;
  color: #FFFFFF;
  border-bottom-right-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 20px -12px rgba(10, 124, 255, 0.56);
  transform-origin: 100% 100%;
}
.chat-studio .bubble.them.has-tail { border-bottom-left-radius: 15px; }
.chat-studio .bubble.me.has-tail { border-bottom-right-radius: 15px; }
.chat-studio .bubble.has-tail::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 16px;
  pointer-events: none;
}
.chat-studio .bubble.them.has-tail::after {
  left: -6px;
  background: rgba(233, 233, 229, 0.94);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath fill='%23000' d='M6 0v10c0 3.2-2.2 5.2-6 6 5.6.3 10.6-1.2 14-5V0z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath fill='%23000' d='M6 0v10c0 3.2-2.2 5.2-6 6 5.6.3 10.6-1.2 14-5V0z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.chat-studio .bubble.me.has-tail::after {
  right: -6px;
  background: #0A7CFF;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath fill='%23000' d='M8 0v10c0 3.2 2.2 5.2 6 6-5.6.3-10.6-1.2-14-5V0z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath fill='%23000' d='M8 0v10c0 3.2 2.2 5.2 6 6-5.6.3-10.6-1.2-14-5V0z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.chat-receipt {
  align-self: flex-end;
  margin-top: -5px;
  padding-right: 4px;
  font-size: 11px;
  font-weight: 550;
  color: rgba(21, 27, 32, 0.44);
  letter-spacing: 0.01em;
}

/* 21.6 Unified Floating Liquid-Glass Composer & Grok + Concentric Action Menu */
.chat-dock {
  padding: 6px 16px 14px;
  gap: 8px;
  border-top: 0;
  background: linear-gradient(180deg, rgba(252, 253, 251, 0) 0%, rgba(252, 253, 251, 0.86) 36%, rgba(252, 253, 251, 0.96) 100%);
}
.chat-date-banner {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 107, 79, 0.10);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 107, 79, 0.18);
  color: #0E5C44;
  font-size: 12.5px;
  cursor: pointer;
  transition: background-color 110ms ease-out, transform 80ms ease-out;
}
.chat-date-banner:hover { background: rgba(15, 107, 79, 0.15); }
.chat-date-banner:active { transform: scale(0.976); }
.cdb-edit { font-size: 11.5px; opacity: 0.72; font-weight: 600; margin-left: 2px; }

.chat-plus-btn {
  position: relative;
  width: 40px;
  height: 40px;
  margin-bottom: 1px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(12, 34, 80, 0.09);
  color: var(--ink);
  box-shadow: 0 8px 20px -12px rgba(12, 34, 80, 0.28), inset 0 1px 0 #FFFFFF;
  cursor: pointer;
  transition: background-color 110ms ease-out, border-color 110ms ease-out, color 110ms ease-out, transform 80ms ease-out;
}
.chat-plus-btn:hover {
  background: #FFFFFF;
  border-color: rgba(12, 34, 80, 0.18);
}
.chat-plus-btn:active { transform: scale(0.93); }
.chat-plus-ic { transition: transform 220ms var(--ease-expo); }
.chat-plus-btn[aria-expanded="true"] {
  background: var(--ink-surface);
  border-color: var(--ink-surface);
  color: #FAF8F2;
}
.chat-plus-btn[aria-expanded="true"] .chat-plus-ic { transform: rotate(45deg); }
.chat-plus-btn .qpill-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 2px #FFFFFF;
}

.chat-drawer.is-menu {
  left: 16px;
  right: auto;
  width: min(306px, calc(100% - 32px));
  padding: 6px;
  border-radius: 18px;
  gap: 2px;
}
.cm-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 75ms ease-out, transform 75ms ease-out;
}
.cm-item:hover { background: rgba(12, 34, 80, 0.055); }
.cm-item:active { transform: scale(0.986); }
.cm-ic {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(12, 34, 80, 0.052);
  color: var(--ink);
}
.cm-ic.is-hit {
  background: rgba(15, 107, 79, 0.12);
  color: var(--verified);
}
.cm-ic svg { width: 16px; height: 16px; }
.cm-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cm-copy b { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.cm-copy small {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-hit { color: var(--verified); font-weight: 600; }
.cm-item > svg { width: 14px; height: 14px; color: var(--quiet); flex: none; }

.composer-field {
  border-radius: 24px;
  padding: 3px 5px 3px 15px;
  background: rgba(255, 255, 255, 0.90);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(12, 34, 80, 0.10);
  box-shadow: 0 10px 26px -16px rgba(12, 34, 80, 0.24), inset 0 1px 0 #FFFFFF;
}
.composer-field:focus-within {
  border-color: rgba(10, 124, 255, 0.44);
  box-shadow: 0 0 0 3px rgba(10, 124, 255, 0.12), 0 10px 26px -16px rgba(12, 34, 80, 0.18);
}
.chat-dock .send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2796FF 0%, #0A7CFF 100%);
  color: #FFFFFF;
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 8px 20px -10px rgba(10, 124, 255, 0.65);
  transition: transform 80ms ease-out, filter 120ms ease-out, box-shadow 150ms ease-out;
}
.chat-dock .send:hover {
  filter: brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 10px 24px -10px rgba(10, 124, 255, 0.78);
}
.chat-dock .send:active { transform: scale(0.92); }
.chat-dock .send svg { width: 18px; height: 18px; }

/* 21.7 Magazine-Grade Editorial Portrait & Date Companion (Desktop + Mobile Sheet) */
@media (min-width: 1024px) {
  .chat-main .chat-cols {
    grid-template-columns: minmax(0, 1fr) 356px;
    gap: 20px;
  }
  .chat-side-card {
    padding: 12px 12px 16px;
    border-radius: 30px;
    background: linear-gradient(162deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 250, 248, 0.68) 100%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
    backdrop-filter: blur(24px) saturate(165%);
    border: 1px solid rgba(255, 255, 255, 0.90);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      inset 0 0 0 1px rgba(12, 34, 80, 0.045),
      0 28px 68px -28px rgba(12, 34, 80, 0.20);
  }
}
.cc-wrap { display: flex; flex-direction: column; gap: 12px; }
.cc-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.25;
  border-radius: 22px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #0C1F2D;
  cursor: pointer;
  text-align: left;
  flex: none;
  box-shadow: 0 14px 32px -18px rgba(12, 34, 80, 0.34);
}
.cc-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  transition: transform 520ms var(--ease-expo);
}
.cc-hero:hover img { transform: scale(1.03); }
.cc-hero-mono { display: grid; place-items: center; }
.cc-mono-ch { font-size: 72px; color: rgba(250, 248, 242, 0.78); }
.cc-pcount {
  position: absolute;
  top: 11px;
  right: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(8, 20, 32, 0.52);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
}
.cc-scrim {
  position: absolute;
  inset: auto 0 0 0;
  padding: 56px 16px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 20, 32, 0.42) 44%, rgba(8, 20, 32, 0.84) 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cc-name {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.08;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
.cc-name span {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 400;
  opacity: 0.86;
}
.cc-meta {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.84);
}
.cc-fit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.cc-fit-chips span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 550;
}
.cc-fit-chips svg { width: 11px; height: 11px; color: #8EF0C8; }

.cc-date-card {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(12, 34, 80, 0.08);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
  transition: background-color 90ms ease-out, border-color 110ms ease-out, transform 80ms ease-out;
}
.cc-date-card:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(12, 34, 80, 0.16);
}
.cc-date-card:active { transform: scale(0.986); }
.cc-date-card.is-hit {
  background: rgba(15, 107, 79, 0.085);
  border-color: rgba(15, 107, 79, 0.20);
}
.cc-date-card.is-hit:hover { background: rgba(15, 107, 79, 0.13); }
.cc-date-ic {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(12, 34, 80, 0.055);
  color: var(--ink);
}
.cc-date-card.is-hit .cc-date-ic {
  background: rgba(15, 107, 79, 0.12);
  color: var(--verified);
}
.cc-date-ic svg { width: 16px; height: 16px; }
.cc-date-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cc-date-copy b { font-size: 13px; font-weight: 650; color: var(--ink); line-height: 1.25; }
.cc-date-card.is-hit .cc-date-copy b { color: #0E5C44; }
.cc-date-copy span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.cc-date-card > svg { width: 14px; height: 14px; color: var(--quiet); flex: none; }

.cc-bio {
  margin: 0;
  padding: 2px 6px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--body);
}
.cc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 4px;
}
.cc-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(12, 34, 80, 0.048);
  border: 1px solid rgba(12, 34, 80, 0.05);
  color: var(--body);
  font-size: 12px;
  font-weight: 500;
}
.cc-tags span.hit {
  background: rgba(15, 107, 79, 0.10);
  border-color: rgba(15, 107, 79, 0.18);
  color: #0E5C44;
  font-weight: 600;
}
.cc-tags span.hit svg { width: 12px; height: 12px; }

.cc-more {
  border-top: 1px solid rgba(12, 34, 80, 0.07);
  padding-top: 8px;
  margin-top: 2px;
}
.cc-more summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 75ms ease-out, color 110ms ease-out;
}
.cc-more summary::-webkit-details-marker { display: none; }
.cc-more summary:hover { background: rgba(12, 34, 80, 0.05); color: var(--ink); }
.cc-more summary svg { width: 14px; height: 14px; transition: transform 260ms var(--ease-expo); }
.cc-more[open]:not(.closing) summary svg { transform: rotate(90deg); }
.cc-more-body { padding: 8px 6px 4px; display: flex; flex-direction: column; gap: 11px; }
.cc-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.cc-facts dt { font-size: 11px; color: var(--muted); }
.cc-facts dd { margin: 1px 0 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.cc-sub-sec { display: flex; flex-direction: column; gap: 6px; }
.cc-sub-sec > span { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; }
.cc-want-text { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--body); }

/* Mobile Immersive Refinement */
@media (max-width: 1023px) {
  .only-m-inl { display: inline; }
  html.chat-page .chat-main.is-thread .chat-studio {
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: linear-gradient(180deg, rgba(246, 248, 247, 0.78) 0%, rgba(250, 248, 242, 0.88) 100%);
  }
  .chat-main.is-thread .chat-head {
    padding: 8px 12px;
    background: rgba(250, 251, 248, 0.84);
  }
  .chat-id-pill { padding: 3px 11px 3px 4px; gap: 8px; }
  .chat-id-av { width: 30px; height: 30px; }
  .chat-id-copy b { font-size: 14px; }
  .chat-id-copy small { font-size: 10.5px; max-width: 185px; }
  .chat-main.is-thread .chat-transcript { padding: 12px 15px 16px; }
  .chat-dock { padding: 6px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .chat-drawer.is-menu { left: 12px; width: min(296px, calc(100% - 24px)); }
  .chat-info-sheet .cc-hero { aspect-ratio: 16 / 10; }
}


/* ==========================================================================
   22. AIRY PEARL-SILK OPTICAL LIQUID-GLASS CHAT STUDIO
       Light, Restrained, Luminous Chromatic Watercolor-Silk Field ·
       Whisper-Fine Monochrome Cotton/Film Micro-Grain · Sculpted Daylight
       Liquid Glass w/ 6px Refracted Bezel · Typing-Aware Send Illumination
   ========================================================================== */

@keyframes dittoMsgLaunch {
  0% {
    opacity: 0;
    transform: translate3d(8px, 22px, 0) scale(0.86);
  }
  68% {
    opacity: 1;
    transform: translate3d(0, -1.5px, 0) scale(1.014);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@keyframes dittoMsgIn {
  0% {
    opacity: 0;
    transform: translate3d(-8px, 14px, 0) scale(0.90);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@keyframes dittoSendPulse {
  0% { transform: scale(0.88); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes dittoArrowFly {
  0% { transform: translate3d(0, 0, 0); }
  42% { transform: translate3d(0, -3.5px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes dittoReceiptIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes dittoCardRise {
  from { opacity: 0; transform: translate3d(0, 12px, 0) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* 22.1 Airy Daylight Pearl-Silk Chromatic Field (Static Cached GPU Layer — 0.00ms/frame) */
html.chat-page body {
  background: #ECEAE6;
}
html.chat-page .chat-main::before { display: none; }
html.chat-page .chat-main { position: relative; z-index: 2; }

.chat-world {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
  transform: translateZ(0);
  background: #ECEAE6;
}
.cw-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(154deg, #E6E8EA 0%, #ECEBE8 44%, #EFECE7 76%, #ECE6E1 100%);
}
.cw-orb {
  position: absolute;
  border-radius: 50%;
}
/* Barely-There Cool Mist Whisper (Pure Multi-Stop Gaussian Gradient — Zero Blur Shader Cost) */
.cw-orb-a {
  width: 72vw;
  height: 72vw;
  max-width: 980px;
  max-height: 980px;
  top: -24%;
  left: -16%;
  background: radial-gradient(circle, rgba(180, 198, 222, 0.22) 0%, rgba(188, 204, 225, 0.11) 34%, rgba(196, 210, 228, 0.035) 58%, transparent 78%);
}
/* Barely-There Warm Champagne Silk Whisper */
.cw-orb-b {
  width: 74vw;
  height: 74vw;
  max-width: 1020px;
  max-height: 1020px;
  right: -20%;
  bottom: -28%;
  background: radial-gradient(circle, rgba(238, 210, 190, 0.24) 0%, rgba(236, 210, 192, 0.12) 34%, rgba(234, 210, 194, 0.04) 58%, transparent 78%);
}
/* Whispered Rose-Quartz Veil */
.cw-orb-c {
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  top: 20%;
  left: 28%;
  background: radial-gradient(circle, rgba(232, 200, 210, 0.16) 0%, rgba(229, 199, 209, 0.075) 36%, rgba(226, 198, 208, 0.02) 60%, transparent 78%);
}
.cw-silk {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(124deg, transparent 18%, rgba(255, 255, 255, 0.20) 38%, rgba(255, 255, 255, 0.32) 47%, transparent 64%),
    radial-gradient(90% 60% at 50% 0%, rgba(255, 255, 255, 0.26) 0%, transparent 62%);
}
/* Ultra-Fine Cotton Paper & Optical Satin Micro-Grain */
.cw-grain {
  position: absolute;
  inset: 0;
  opacity: 0.044;
  mix-blend-mode: multiply;
  background-size: 180px 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* 22.2 Luminous Daylight Frosted-Quartz Top Nav */
html.chat-page .top {
  position: sticky;
  z-index: 40;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.68);
}
html.chat-page .plate b { color: var(--ink); text-shadow: none; }
html.chat-page .plate small {
  color: var(--accent);
  border-color: rgba(214, 51, 108, 0.24);
  background: rgba(255, 255, 255, 0.56);
}
html.chat-page .dtabs {
  background: rgba(255, 255, 255, 0.44);
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.90), 0 4px 16px -10px rgba(34, 44, 62, 0.14);
}
html.chat-page .dtab { color: rgba(21, 27, 32, 0.64); }
html.chat-page .dtab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.45); }
html.chat-page .dtab[aria-current="page"] { color: #FAF8F2; }
html.chat-page .dtab[aria-current="page"] svg { color: #FFE3CA; }
html.chat-page .dtabs .glide-pill {
  background: var(--ink-surface);
  box-shadow: 0 6px 16px -8px rgba(12, 22, 34, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
html.chat-page .langs {
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.90);
}
html.chat-page .langs button { color: rgba(21, 27, 32, 0.62); }
html.chat-page .langs button:hover { color: var(--ink); }
html.chat-page .langs button[aria-pressed="true"] { color: var(--ink); }
html.chat-page .langs .glide-pill {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 10px -4px rgba(34, 44, 62, 0.16);
}
html.chat-page .acct {
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 14px -6px rgba(34, 44, 62, 0.22);
}

/* 22.3 Sculpted Daylight Liquid-Crystal Glass Slabs w/ 6px Quartz Bezel */
html.chat-page .chat-studio {
  position: relative;
  border-radius: 34px;
  background: linear-gradient(
    156deg,
    rgba(255, 255, 255, 0.60) 0%,
    rgba(255, 255, 255, 0.28) 48%,
    rgba(255, 255, 255, 0.48) 100%
  );
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1.5px 0 #FFFFFF,
    inset 0 -1px 0 rgba(255, 255, 255, 0.48),
    inset 0 0 0 6px rgba(255, 255, 255, 0.24),
    0 0 0 0.5px rgba(28, 38, 54, 0.075),
    0 30px 78px -26px rgba(28, 38, 54, 0.16),
    0 8px 22px -12px rgba(28, 38, 54, 0.08);
}
.chat-glass-sheen {
  position: absolute;
  top: -22%;
  left: -14%;
  width: 68%;
  height: 136%;
  z-index: 1;
  pointer-events: none;
  transform: rotate(-14deg);
  background: linear-gradient(108deg, transparent 28%, rgba(255, 255, 255, 0.26) 48%, rgba(255, 250, 246, 0.10) 54%, transparent 72%);
}
.chat-studio > :not(.chat-glass-sheen) { position: relative; z-index: 2; }

@media (min-width: 1024px) {
  html.chat-page .chat-side-card {
    padding: 12px 12px 14px;
    border-radius: 34px;
    background: linear-gradient(
      156deg,
      rgba(255, 255, 255, 0.60) 0%,
      rgba(255, 255, 255, 0.28) 48%,
      rgba(255, 255, 255, 0.48) 100%
    );
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    backdrop-filter: blur(26px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow:
      inset 0 1.5px 0 #FFFFFF,
      inset 0 -1px 0 rgba(255, 255, 255, 0.48),
      inset 0 0 0 6px rgba(255, 255, 255, 0.24),
      0 0 0 0.5px rgba(28, 38, 54, 0.075),
      0 30px 78px -26px rgba(28, 38, 54, 0.15);
  }
}

/* 22.4 Floating Daylight Frosted-Quartz Header + Scroll-Through Dissolve */
html.chat-page .chat-studio .chat-head,
html.chat-page.has-preview-dock .chat-studio .chat-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  padding: 13px 18px 16px;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.16) 72%, transparent 100%);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
  backdrop-filter: blur(14px) saturate(155%);
}
html.chat-page .chat-days-chip {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.90);
  color: var(--body);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 14px -8px rgba(30, 42, 60, 0.16);
  text-shadow: none;
}
html.chat-page .chat-days-chip i { background: #1E9B6B; box-shadow: 0 0 6px rgba(30, 155, 107, 0.36); }
html.chat-page .chat-days-chip.urgent {
  background: rgba(255, 236, 238, 0.88);
  border-color: rgba(196, 56, 70, 0.22);
  color: #9F252C;
}

html.chat-page .chat-id-pill {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 8px 24px -12px rgba(30, 42, 60, 0.18);
}
html.chat-page .chat-id-pill:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: #FFFFFF;
}
html.chat-page .chat-id-copy b {
  color: var(--ink);
  text-shadow: none;
}
html.chat-page .chat-id-copy b em { opacity: 0.44; color: var(--ink); }
html.chat-page .chat-id-copy small {
  color: var(--muted);
  text-shadow: none;
}
html.chat-page .chat-studio .chat-icon-btn {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.90);
  color: var(--body);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 12px -6px rgba(30, 42, 60, 0.14);
}
html.chat-page .chat-studio .chat-icon-btn:hover {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

/* Scroll-Through Dissolve Feather Under Floating Header (Zero Bleed Behind Header Pills) */
html.chat-page .chat-studio .chat-transcript {
  padding: 82px 22px 18px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0px, transparent 52px, rgba(0, 0, 0, 0.34) 68px, #000 84px, #000 calc(100% - 14px), rgba(0, 0, 0, 0.86) 100%);
  mask-image: linear-gradient(to bottom, transparent 0px, transparent 52px, rgba(0, 0, 0, 0.34) 68px, #000 84px, #000 calc(100% - 14px), rgba(0, 0, 0, 0.86) 100%);
}
html.chat-page .chat-studio.has-overlay .chat-transcript {
  padding-bottom: 206px;
}
html.chat-page .chat-studio .chat-transcript::-webkit-scrollbar-thumb { background: rgba(30, 42, 60, 0.16); }
html.chat-page .chat-studio .chat-pre-stage { padding-top: 86px; }
html.chat-page .chat-studio .chat-confirm { position: relative; z-index: 16; margin-top: 72px; }

/* 22.5 Tactile Vellum Dual-Photo Film Collage Keepsake Card */
.chat-keepsake {
  width: min(100%, 496px);
  margin: 4px auto 14px;
  padding: 15px 16px 15px;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 247, 242, 0.86) 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 44px -22px rgba(30, 42, 60, 0.18), inset 0 1px 0 #FFFFFF;
  animation: dittoCardRise 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ks-lead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.ks-collage {
  position: relative;
  width: 66px;
  height: 76px;
  flex: none;
}
.ks-collage.is-pair { width: 96px; }
.ks-snap {
  position: absolute;
  top: 4px;
  width: 58px;
  height: 66px;
  padding: 3px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 0;
  box-shadow: 0 10px 22px -10px rgba(30, 42, 60, 0.28), 0 0 0 1px rgba(30, 42, 60, 0.05);
  overflow: hidden;
  cursor: pointer;
  transition: transform 240ms var(--ease-spring), box-shadow 240ms ease;
}
.ks-snap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
  border-radius: 9px;
}
.ks-snap-0 { left: 0; transform: rotate(-4deg); z-index: 2; }
.ks-snap-1 { left: 34px; top: 8px; transform: rotate(4.5deg); z-index: 1; }
.ks-snap:hover {
  transform: rotate(0deg) scale(1.09) translateY(-2px);
  z-index: 4;
  box-shadow: 0 16px 28px -10px rgba(30, 42, 60, 0.36);
}
.ks-head-copy { flex: 1 1 auto; min-width: 0; }
.ks-title {
  margin: 4px 0 3px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
.ks-head-copy .ks-q {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

/* 22.6 Crisp Tactile Bubbles, Whisper-Clean Receipts & 120fps Composited Launch */
html.chat-page .chat-studio .tstamp {
  color: rgba(28, 36, 48, 0.48);
  text-shadow: none;
  font-weight: 600;
}
html.chat-page .chat-studio .bubble {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
html.chat-page .chat-studio .bubble.them {
  background: rgba(255, 255, 255, 0.90);
  color: #131820;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 6px 18px -10px rgba(30, 42, 60, 0.14);
}
html.chat-page .chat-studio .bubble.them.has-tail::after {
  background: rgba(255, 255, 255, 0.90);
}
html.chat-page .chat-studio .bubble.me {
  background: linear-gradient(180deg, #2D93FF 0%, #0A78F5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 10px 24px -12px rgba(10, 120, 245, 0.50);
}
html.chat-page .chat-studio .bubble.me.has-tail::after {
  background: #0A78F5;
}
html.chat-page .chat-receipt {
  padding: 0 4px 0 0;
  margin-top: -5px;
  min-height: 15px;
  line-height: 15px;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: rgba(28, 36, 48, 0.52);
  text-shadow: none;
  font-weight: 550;
  transition: opacity 180ms ease-out, color 180ms ease-out;
}
html.chat-page .chat-receipt.is-sending {
  opacity: 0.62;
}
html.chat-page .chat-start {
  color: var(--muted);
  text-shadow: none;
}

/* 22.7 Floating Daylight Liquid-Glass Composer & Typing-Aware Send Illumination */
html.chat-page .chat-dock {
  padding: 6px 16px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.24) 100%);
}
html.chat-page .chat-date-banner {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.96);
  color: #0E5C44;
  box-shadow: 0 8px 22px -12px rgba(30, 42, 60, 0.18), inset 0 1px 0 #FFFFFF;
}
html.chat-page .chat-date-banner:hover { background: #FFFFFF; }
.cdb-spark { display: inline-flex; color: var(--verified); }
.cdb-spark svg { width: 14px; height: 14px; }

html.chat-page .chat-plus-btn {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 8px 20px -12px rgba(30, 42, 60, 0.20);
}
html.chat-page .chat-plus-btn:hover { background: #FFFFFF; }
html.chat-page .chat-plus-btn[aria-expanded="true"] {
  background: var(--ink-surface);
  border-color: var(--ink-surface);
  color: #FAF8F2;
}
html.chat-page .composer-field {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px -14px rgba(30, 42, 60, 0.18), inset 0 1px 0 #FFFFFF;
}
html.chat-page .composer-field:focus-within {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(45, 147, 255, 0.54);
  box-shadow: 0 0 0 3px rgba(45, 147, 255, 0.16), 0 10px 28px -14px rgba(30, 42, 60, 0.16);
}
/* Quiet Pearlescent Glass Send Button When Empty -> Luminous Sapphire Blue When Typing */
html.chat-page .chat-dock .send {
  background: rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.92);
  color: rgba(21, 27, 32, 0.44);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 6px 18px -10px rgba(30, 42, 60, 0.16);
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, transform 120ms ease-out;
}
html.chat-page .composer-form.has-text .send,
html.chat-page .chat-dock .send:hover {
  background: linear-gradient(180deg, #2D93FF 0%, #0A78F5 100%);
  border-color: rgba(255, 255, 255, 0.42);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44), 0 10px 24px -8px rgba(10, 120, 245, 0.56);
}
html.chat-page .composer-form.has-text .send { transform: scale(1.03); }
html.chat-page .chat-dock .send:active { transform: scale(0.92); }
.chat-dock .send.is-fired {
  animation: dittoSendPulse 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.chat-dock .send.is-fired svg {
  animation: dittoArrowFly 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* 22.8 Crisp Readable Inner Cards Suspended Inside Daylight Liquid-Glass Companion */
html.chat-page .cc-hero {
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 38px -18px rgba(30, 42, 60, 0.24);
}
html.chat-page .cc-date-card {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px -14px rgba(30, 42, 60, 0.14), inset 0 1px 0 #FFFFFF;
}
html.chat-page .cc-date-card:hover { background: rgba(255, 255, 255, 0.96); }
html.chat-page .cc-date-card.is-hit {
  background: rgba(235, 251, 244, 0.90);
  border-color: rgba(15, 107, 79, 0.24);
}
.cc-sheet {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 13px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.80);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px -16px rgba(30, 42, 60, 0.12), inset 0 1px 0 #FFFFFF;
}
html.chat-page .cc-bio { padding: 0 2px; color: var(--ink); }
html.chat-page .cc-tags { padding: 0; }
html.chat-page .cc-more { padding-top: 6px; margin-top: 0; }

/* 22.9 Mobile Full-Bleed Airy Pearl-Silk Liquid-Glass Experience */
@media (max-width: 1023px) {
  .chat-days-chip.only-d { display: none !important; }
  html.chat-page .chat-main.is-thread .chat-studio {
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.16) 52%, rgba(255, 255, 255, 0.28) 100%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
  }
  html.chat-page .chat-main.is-thread .chat-head {
    padding: 8px 12px 14px;
    background: linear-gradient(180deg, rgba(246, 245, 242, 0.88) 0%, rgba(246, 245, 242, 0.42) 72%, transparent 100%);
  }
  html.chat-page .chat-main.is-thread .chat-transcript {
    padding: 74px 14px 18px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0px, transparent 48px, rgba(0, 0, 0, 0.35) 62px, #000 76px, #000 calc(100% - 10px), rgba(0, 0, 0, 0.88) 100%);
    mask-image: linear-gradient(to bottom, transparent 0px, transparent 48px, rgba(0, 0, 0, 0.35) 62px, #000 76px, #000 calc(100% - 10px), rgba(0, 0, 0, 0.88) 100%);
  }
  html.chat-page .chat-main.is-thread .chat-studio.has-overlay .chat-transcript {
    padding-bottom: 224px;
  }
  html.chat-page .chat-main.is-thread .chat-dock {
    padding: 6px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  }
  html.chat-page .chat-info-sheet {
    position: relative;
    z-index: 18;
    margin-top: 62px;
    background: rgba(255, 254, 252, 0.95);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.90);
    box-shadow: 0 22px 48px -18px rgba(30, 42, 60, 0.22);
  }
  html.chat-page .chat-info-sheet .chat-icon-btn {
    background: rgba(20, 30, 44, 0.06);
    border-color: rgba(20, 30, 44, 0.08);
    color: var(--ink);
    box-shadow: none;
  }
  html.chat-page .chat-info-sheet .chat-icon-btn:hover {
    background: rgba(20, 30, 44, 0.12);
    color: var(--ink);
  }
  .ks-lead { gap: 11px; }
  .ks-collage.is-pair { width: 84px; height: 68px; }
  .ks-snap { width: 50px; height: 58px; }
  .ks-snap-1 { left: 28px; }
  .ks-title { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .cw-orb-a,
  .cw-orb-b,
  .cw-orb-c,
  .chat-glass-sheen,
  .chat-keepsake,
  .chat-receipt,
  .chat-dock .send.is-fired,
  .chat-dock .send.is-fired svg,
  html.chat-page .chat-studio .bubble.new {
    animation: none !important;
  }
}


/* ==========================================================================
   23. AIRY PEARL-SILK DROP PAGE, MUSEUM-GRADE CONFIRMED MATCH CARD,
       4-CHAPTER QUIZ PROGRESS, DIRECT MEETUP CALENDAR & VECTOR ALIGNMENT
   ========================================================================== */

/* 23.1 Vector Icon Alignment (Crush Notes, Calendar Pills, Quiz Milestone) */
.cab-l {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cab-l svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.crush-env-seal svg { width: 17px; height: 17px; color: #FFD8E6; }
.cem-ic {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cem-ic svg { width: 14px; height: 14px; flex: none; color: #FFE0CE; }
.crush-sent-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.crush-sent-note svg { width: 13px; height: 13px; flex: none; opacity: 0.78; color: #FFE0CE; }
.cal-pill svg { width: 14px; height: 14px; flex: none; opacity: 0.85; }
.quiz-mile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.quiz-mile svg { width: 14px; height: 14px; flex: none; color: var(--accent); }

/* 23.2 Direct 1-Tap Meetup Calendar Button in Chat Composer */
html.chat-page .chat-cal-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 160ms var(--ease-expo);
}
html.chat-page .chat-cal-btn.is-hit:not([aria-expanded="true"]) {
  background: rgba(235, 251, 244, 0.92);
  border-color: rgba(15, 107, 79, 0.24);
  color: #0E5C44;
}
html.chat-page .chat-cal-btn[aria-expanded="true"] svg {
  transform: scale(0.94);
}

/* 23.3 4-Chapter Segmented Quiz Progress Rail */
.qchapters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.qchap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.qchap-lbl {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 550;
  color: var(--quiet);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 200ms var(--ease);
}
.qchap-lbl i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.72;
}
.qchap.is-done .qchap-lbl { color: var(--body); }
.qchap.is-cur .qchap-lbl { color: var(--ink); font-weight: 650; }
.qchap.is-cur .qchap-lbl i { color: var(--accent); opacity: 1; }
.qchap-rail {
  display: block;
  height: 3.5px;
  border-radius: 99px;
  background: rgba(21, 27, 32, 0.085);
  overflow: hidden;
}
.qchap-rail i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: var(--ink-surface);
  transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1), background-color 220ms ease;
}
.qchap.is-cur .qchap-rail i {
  background: linear-gradient(90deg, #162838 0%, var(--accent) 100%);
}
.qchap.is-done .qchap-rail i {
  background: var(--verified);
}
@media (max-width: 520px) {
  .qchapters { gap: 6px; }
  .qchap-lbl { font-size: 10.5px; gap: 3px; }
  .qchap-lbl i { display: none; }
}

/* 23.4 Airy Luminous Pearl-Silk Drop Page (Matches Chat Studio Atmosphere) */
html.drop-page,
html.drop-page body {
  background: #ECEAE6;
}
html.drop-page .top {
  position: sticky;
  z-index: 40;
  background: rgba(255, 255, 255, 0.46);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}
html.drop-page .plate b { color: var(--ink); text-shadow: none; }
html.drop-page .plate small {
  color: var(--accent);
  border-color: rgba(214, 51, 108, 0.24);
  background: rgba(255, 255, 255, 0.56);
}
html.drop-page .dtabs {
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.90), 0 4px 16px -10px rgba(34, 44, 62, 0.14);
}
html.drop-page .dtab { color: rgba(21, 27, 32, 0.64); }
html.drop-page .dtab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.45); }
html.drop-page .dtab[aria-current="page"] { color: #FAF8F2; }
html.drop-page .dtab[aria-current="page"] svg { color: #FFE3CA; }
html.drop-page .dtabs .glide-pill {
  background: var(--ink-surface);
  box-shadow: 0 6px 16px -8px rgba(12, 22, 34, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
html.drop-page .langs {
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.90);
}
html.drop-page .langs button { color: rgba(21, 27, 32, 0.62); }
html.drop-page .langs button:hover { color: var(--ink); }
html.drop-page .langs button[aria-pressed="true"] { color: var(--ink); }
html.drop-page .langs .glide-pill {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 10px -4px rgba(34, 44, 62, 0.16);
}
html.drop-page .acct {
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 14px -6px rgba(34, 44, 62, 0.22);
}
html.drop-page .drop-main {
  position: relative;
  z-index: 2;
  padding-top: clamp(22px, 3.2vw, 38px);
  padding-bottom: clamp(88px, 10vw, 112px);
}
html.drop-page .match-switch {
  justify-content: center;
  margin-bottom: 18px;
}

/* 23.4b Romantic Golden-Hour Glow on Drop Page + Refined Active Tab Dot */
html.drop-page .cw-orb-b {
  background: radial-gradient(circle, rgba(242, 198, 184, 0.30) 0%, rgba(238, 200, 190, 0.14) 36%, rgba(234, 204, 196, 0.04) 60%, transparent 78%);
}
html.drop-page .cw-orb-c {
  background: radial-gradient(circle, rgba(232, 188, 204, 0.22) 0%, rgba(228, 192, 206, 0.09) 38%, transparent 76%);
}
@media (min-width: 960px) {
  .dtab .tdot {
    top: 5px;
    right: 7px;
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 1.5px var(--bg);
  }
  .dtab[aria-current="page"] .tdot {
    box-shadow: 0 0 0 1.5px rgba(10, 22, 32, 0.85);
  }
}

/* 23.5 Physical Film-Portrait & Letterpress Stationery Match Spread (.mcr-stage) */
@keyframes mcrRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.968);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@keyframes mcrCardDeliver {
  0% {
    opacity: 0;
    transform: perspective(1200px) translate3d(0, 42px, 0) rotateX(6.5deg) scale(0.915);
  }
  68% {
    opacity: 1;
    transform: perspective(1200px) translate3d(0, -2px, 0) rotateX(-0.4deg) scale(1.006);
  }
  100% {
    opacity: 1;
    transform: perspective(1200px) translate3d(0, 0, 0) rotateX(0deg) scale(1);
  }
}
@keyframes mcrKenBurns {
  0% { transform: scale(1.085); }
  100% { transform: scale(1); }
}
@keyframes mcrLightSweep {
  0% {
    opacity: 0;
    transform: translate3d(-125%, 0, 0) skewX(-18deg);
  }
  22% { opacity: 0.9; }
  85% { opacity: 0.55; }
  100% {
    opacity: 0;
    transform: translate3d(165%, 0, 0) skewX(-18deg);
  }
}
@keyframes mcrFadeUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes wdDialSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mcr-stage {
  width: min(100%, 896px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mcr-stage-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(24, 34, 46, 0.52);
  animation: mcrFadeUp 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mcr-stage-bar span { white-space: nowrap; }
.mcr-rule {
  flex: 1 1 auto;
  max-width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24, 34, 46, 0.18), transparent);
}

.mcr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 34px;
  overflow: hidden;
  overflow: clip;
  background: linear-gradient(
    156deg,
    rgba(255, 255, 255, 0.70) 0%,
    rgba(255, 255, 255, 0.34) 48%,
    rgba(255, 255, 255, 0.58) 100%
  );
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1.5px 0 #FFFFFF,
    inset 0 -1px 0 rgba(255, 255, 255, 0.52),
    inset 0 0 0 6px rgba(255, 255, 255, 0.24),
    0 0 0 0.5px rgba(28, 38, 54, 0.075),
    0 36px 90px -28px rgba(28, 38, 54, 0.19),
    0 10px 26px -14px rgba(28, 38, 54, 0.09);
  animation: mcrRise 540ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mcr-stage.is-revealing .mcr-card {
  transform-origin: 50% 72%;
  animation: mcrCardDeliver 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.mcr-card > :not(.chat-glass-sheen):not(.mcr-sweep) { position: relative; z-index: 2; }
.mcr-sweep {
  position: absolute;
  inset: -10% 0;
  width: 46%;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(108deg, transparent 15%, rgba(255, 252, 245, 0.52) 50%, transparent 85%);
}
.mcr-stage.is-revealing .mcr-sweep {
  animation: mcrLightSweep 960ms cubic-bezier(0.22, 1, 0.36, 1) 240ms both;
}
@media (min-width: 840px) {
  .mcr-card {
    display: grid;
    grid-template-columns: 382px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    align-items: stretch;
  }
}

/* Fine-Art Film Cover Panel */
.mcr-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #172734;
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 48px -22px rgba(20, 32, 48, 0.34);
}
@media (min-width: 840px) {
  .mcr-media {
    aspect-ratio: auto;
    min-height: 508px;
    height: 100%;
  }
}
.mcr-photo-btn,
.mcr-media > .mcr-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.mcr-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
  transition: transform 560ms var(--ease-expo);
}
.mcr-stage.is-revealing .mcr-photo {
  animation: mcrKenBurns 920ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.mcr-media:hover .mcr-photo { transform: scale(1.024); }
.mcr-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 28, 0.28) 0%,
    transparent 24%,
    transparent 54%,
    rgba(10, 18, 28, 0.56) 82%,
    rgba(10, 18, 28, 0.84) 100%
  );
}
.mcr-mono {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(155deg, #243B4B 0%, #563244 100%);
  color: #FFE4CE;
}
.mcr-mono-ch { font-size: 96px; font-style: italic; line-height: 0.9; }
.mcr-mono .mono { font-size: 11px; letter-spacing: 0.1em; color: rgba(250, 248, 242, 0.72); }

.mcr-story-bars {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  gap: 5px;
  pointer-events: none;
}
.mcr-story-bars i {
  flex: 1 1 0;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.34);
  transition: background-color 220ms ease;
}
.mcr-story-bars i.on {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.mcr-media-top {
  position: absolute;
  top: 22px;
  left: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.mcr-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(14, 24, 34, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 0.5px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.96);
  font-size: 11.5px;
  font-weight: 550;
  letter-spacing: 0.02em;
}
.mcr-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE9E;
  box-shadow: 0 0 8px rgba(74, 222, 158, 0.65);
}
.mcr-badge.is-pick i {
  background: #FF88AE;
  box-shadow: 0 0 8px rgba(255, 136, 174, 0.72);
}
.mcr-score {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 0.5px solid rgba(255, 255, 255, 0.96);
  color: #101A24;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 16px -8px rgba(10, 20, 32, 0.35);
}

.mcr-cover-cap {
  position: absolute;
  left: 20px;
  right: 62px;
  bottom: 18px;
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mcr-cover-name {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 50px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #FFFDF8;
  text-shadow: 0 4px 18px rgba(8, 16, 26, 0.44);
}
.mcr-cover-name span {
  font-family: var(--sans);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 350;
  color: rgba(255, 253, 248, 0.78);
  letter-spacing: -0.01em;
}
.mcr-cover-meta {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 253, 248, 0.84);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(8, 16, 26, 0.40);
}

.mcr-zoom {
  position: absolute;
  right: 14px;
  bottom: 16px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(14, 24, 34, 0.42);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 0.5px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  transition: background-color 120ms ease-out, transform 80ms ease-out;
}
.mcr-zoom:hover { background: rgba(14, 24, 34, 0.70); }
.mcr-zoom:active { transform: scale(0.93); }

/* Right Cotton-Vellum Letterpress Stationery Sheet */
.mcr-sheet {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 3vw, 28px) clamp(20px, 3vw, 28px) clamp(18px, 2.6vw, 24px);
  border-radius: 24px;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.88) 0%, rgba(252, 249, 244, 0.82) 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 10px 28px -18px rgba(28, 38, 54, 0.14);
}
.mcr-stage.is-revealing .mcr-sheet > * {
  animation: mcrFadeUp 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mcr-stage.is-revealing .mcr-sheet > :nth-child(1) { animation-delay: 80ms; }
.mcr-stage.is-revealing .mcr-sheet > :nth-child(2) { animation-delay: 135ms; }
.mcr-stage.is-revealing .mcr-sheet > :nth-child(3) { animation-delay: 190ms; }
.mcr-stage.is-revealing .mcr-sheet > :nth-child(4) { animation-delay: 240ms; }
.mcr-stage.is-revealing .mcr-sheet > :nth-child(5) { animation-delay: 285ms; }
.mcr-stage.is-revealing .mcr-sheet > :nth-child(6) { animation-delay: 330ms; }

.mcr-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mcr-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.mcr-days {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 107, 79, 0.085);
  color: #0E5C44;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.mcr-days.is-pending {
  background: rgba(206, 62, 108, 0.085);
  color: #B42E5C;
}

/* Editorial Serif Bio Quote Block */
.mcr-quote-block {
  position: relative;
  margin: 0;
  padding: 4px 0 4px 20px;
  border-left: 1.5px solid rgba(206, 78, 118, 0.26);
}
.mcr-qmark {
  position: absolute;
  top: -12px;
  left: -7px;
  padding: 0 3px;
  background: #FDFBF8;
  font-family: var(--serif-en);
  font-size: 32px;
  line-height: 1;
  color: rgba(206, 78, 118, 0.42);
  pointer-events: none;
}
.mcr-bio {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: #1B242E;
}

/* Poetic Compatibility Resonance */
.mcr-why {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px 0 2px;
  border-top: 1px solid rgba(21, 27, 32, 0.07);
  background: transparent;
  border-radius: 0;
}
.mcr-sub-lbl {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(24, 34, 46, 0.46);
}
.mcr-reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mcr-reasons li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.48;
  color: #1D2630;
}
.mcr-reasons svg {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 4px;
  color: #C94B76;
}

/* Warm Vellum Prompt Slip */
.mcr-slip {
  padding: 12px 15px;
  border-radius: 16px;
  background: linear-gradient(148deg, #FAF6EE 0%, #F4EDE0 100%);
  border: 1px solid rgba(182, 158, 126, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.90);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mcr-slip-lbl {
  font-size: 11px;
  font-weight: 600;
  color: rgba(114, 92, 68, 0.74);
  letter-spacing: 0.02em;
}
.mcr-slip p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.56;
  color: #241F1A;
}

.mcr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mcr-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(21, 27, 32, 0.042);
  border: 1px solid rgba(21, 27, 32, 0.055);
  color: var(--body);
  font-size: 12px;
  font-weight: 500;
}
.mcr-tags span.is-fit {
  background: rgba(15, 107, 79, 0.08);
  border-color: rgba(15, 107, 79, 0.16);
  color: #0E5C44;
  font-weight: 600;
}
.mcr-tags span.is-fit svg { width: 12px; height: 12px; }

/* Integrated Bottom Action Dock (Zero Sticky Overlap!) */
.mcr-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(21, 27, 32, 0.065);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mcr-decide-row {
  display: grid;
  grid-template-columns: minmax(108px, 0.84fr) minmax(0, 1.36fr);
  gap: 10px;
}
.mcr-pass-btn {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(21, 27, 32, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: var(--body);
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #FFFFFF;
  transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out, transform 80ms ease-out;
}
.mcr-pass-btn:hover {
  background: #FFFFFF;
  border-color: rgba(21, 27, 32, 0.22);
  color: var(--ink);
}
.mcr-pass-btn:active { transform: scale(0.974); }
.mcr-yes-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, #DC4277 0%, #C22A5F 100%);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 14px 28px -12px rgba(202, 46, 100, 0.54);
  transition: filter 130ms ease-out, box-shadow 160ms ease-out, transform 80ms ease-out;
}
.mcr-yes-btn:hover {
  filter: brightness(1.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 16px 32px -12px rgba(202, 46, 100, 0.64);
}
.mcr-yes-btn:active { transform: scale(0.974); }
.mcr-yes-btn svg { width: 17px; height: 17px; flex: none; }
.mcr-yes-btn[disabled],
.mcr-pass-btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.mcr-cta {
  width: 100%;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, #172736 0%, #0C1822 100%);
  color: #FAF8F2;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 28px -14px rgba(10, 22, 34, 0.56);
  transition: background-color 140ms ease-out, box-shadow 160ms ease-out, transform 80ms ease-out;
}
.mcr-cta:hover {
  background: linear-gradient(180deg, #1E3346 0%, #10202E 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 16px 32px -14px rgba(10, 22, 34, 0.64);
}
.mcr-cta:active { transform: scale(0.976); }
.mcr-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 180ms var(--ease-expo);
}
.mcr-cta:hover svg { transform: translateX(3px); }
.mcr-note {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.mcr-note svg { width: 12px; height: 12px; color: var(--verified); flex: none; }
.mcr-next-round {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--verified);
  font-weight: 550;
}

/* Expandable Full Dossier Below Match Card */
.mcr-details {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 14px 36px -22px rgba(28, 38, 54, 0.14);
  overflow: hidden;
}
.mcr-details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
  transition: background-color 90ms ease-out, color 120ms ease-out;
}
.mcr-details > summary::-webkit-details-marker { display: none; }
.mcr-details > summary:hover { background: rgba(255, 255, 255, 0.42); color: var(--ink); }
.mcr-details > summary svg { width: 15px; height: 15px; transition: transform 260ms var(--ease-expo); }
.mcr-details[open]:not(.closing) > summary svg { transform: rotate(90deg); }
.mcr-details-body {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mcr-about {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(21, 27, 32, 0.06) !important;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: none !important;
}

/* 23.6 Airy Horology Waiting Sanctuary (Fix Refresh Button Contrast & Add Orbital Dial) */
.drop-main .waitdrop .wd-stage {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(36px, 5vw, 56px) clamp(22px, 4vw, 48px);
  background: linear-gradient(156deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.40) 50%, rgba(255, 255, 255, 0.62) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1.5px 0 #FFFFFF,
    inset 0 0 0 6px rgba(255, 255, 255, 0.24),
    0 32px 80px -28px rgba(28, 38, 54, 0.16);
  color: var(--ink);
}
.wd-dial {
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(360px, 82vw);
  height: min(360px, 82vw);
  transform: translate(-50%, -50%);
  color: #162634;
  pointer-events: none;
  z-index: 0;
}
.wd-dial-hand {
  transform-origin: 160px 160px;
  animation: wdDialSpin 48s linear infinite;
}
.drop-main .wd-stage .wd-inner { position: relative; z-index: 2; }
.drop-main .wd-stage .dc-glow { opacity: 0.12; }
.drop-main .wd-stage .hello-stamp {
  background: rgba(21, 27, 32, 0.055);
  border-color: rgba(21, 27, 32, 0.08);
  color: var(--body);
}
.drop-main .wd-stage .bigtime {
  color: #111922;
  letter-spacing: -0.04em;
}
.drop-main .wd-stage .wd-title { color: #111922; }
.drop-main .wd-stage .big-count {
  color: #111922;
  font-variant-numeric: tabular-nums;
}
.drop-main .wd-stage .wd-sub {
  color: var(--body);
  text-wrap: balance;
  max-width: 32ch;
  margin-inline: auto;
}
.drop-main .wd-stage .wd-acts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.drop-main .wd-stage .wd-refresh {
  min-width: 132px;
  min-height: 42px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(21, 27, 32, 0.13);
  color: #111922;
  font-weight: 600;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 8px 20px -12px rgba(20, 32, 48, 0.18);
}
.drop-main .wd-stage .wd-refresh:hover {
  background: #FFFFFF;
  border-color: rgba(21, 27, 32, 0.24);
  color: #0B1218;
}
.drop-main .wd-stage .wd-sec-link { color: var(--body); }
.drop-main .wd-stage .wd-sec-link:hover { color: var(--ink); }
.drop-main .wd-stage .cal-remind {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(21, 27, 32, 0.08);
}
.drop-main .wd-stage .cal-remind-lbl { color: var(--muted); }
.drop-main .wd-stage .cal-pill {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21, 27, 32, 0.11);
  color: var(--ink);
}
.drop-main .wd-stage .cal-pill:hover {
  background: #FFFFFF;
  border-color: rgba(21, 27, 32, 0.22);
}
.drop-main .wd-stage .wd-priority-badge {
  background: rgba(15, 107, 79, 0.10);
  border-color: rgba(15, 107, 79, 0.20);
  color: #0E5C44;
}
.drop-main .wd-stage .wd-priority-badge.gold {
  background: rgba(182, 134, 58, 0.12);
  border-color: rgba(182, 134, 58, 0.24);
  color: #7D581B;
}
.drop-main .wd-stage .dt-btn-ivory {
  background: var(--ink-surface);
  color: #FAF8F2;
  box-shadow: 0 10px 24px -12px rgba(8, 23, 33, 0.42);
}
.drop-main .wd-stage .dt-btn-ivory:hover { background: #1A2E3E; }

/* 23.7 Mobile Bottom Tab Bar Smooth Gliding Pill */
.tabs-in {
  position: relative;
  padding: 4px 8px;
}
.tabs-in > .tab {
  position: relative;
  z-index: 1;
  min-height: 50px;
  border-radius: 14px;
}
.tabs-in .glide-pill {
  border-radius: 14px;
  background: rgba(21, 27, 32, 0.06);
}

/* 23.8 Unified Grounded Micro-Physics (Zero Float-Up Hover, Crisp 80ms Press) */
@media (hover: hover) and (pointer: fine) {
  .btn:not([disabled]):not([aria-disabled="true"]):hover,
  .dt-btn-ivory:hover,
  .dt-btn-glass:hover,
  .d-btn:hover,
  .cal-pill:hover,
  .dom-chip:hover,
  .chat-starter:hover,
  .dt-vault-btn:hover,
  .crush-env-btn.open:hover {
    transform: none;
  }
}
.btn:not([disabled]):not([aria-disabled="true"]):active,
.btn:not([disabled]):not([aria-disabled="true"]).is-pressed,
.dt-btn-ivory:active,
.dt-btn-ivory.is-pressed,
.dt-btn-glass:active,
.dt-btn-glass.is-pressed,
.d-btn:active,
.d-btn.is-pressed,
.cal-pill:active,
.dom-chip:active,
.chat-starter:active,
.dt-vault-btn:active {
  transform: scale(0.974);
  transition-duration: 80ms;
}

/* 23.9 Razor-Thin Dark Smoked-Glass Hairline Override (Zero Double-Rim on 1x & Retina) */
.dt-glass-pill,
.dt-join,
.dt-phone-dock,
.dt-btn-glass,
.d-welcome,
.dt-count-bar,
.dropcard .cal-remind,
.dropcard .cal-pill,
.dropcard .joined,
.landing-page.over-sky .langs,
.landing-page.over-sky .top .nav .btn-ink,
.landing-page.over-sky .plate small,
.landing-page.over-sky .acct.out,
.dt-vault,
.dt-vault-row.on,
.crush-midnight .crush-feature-controls,
.crush-midnight .crush-feature-entry .input,
.crush-midnight .crush-note-in {
  background-clip: padding-box;
  border-color: rgba(255, 255, 255, 0.14);
}
.d-welcome,
.dropcard .cal-pill,
.crush-midnight .crush-feature-entry .input {
  box-shadow: none;
}
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) {
  .dt-glass-pill,
  .dt-join,
  .dt-phone-dock,
  .dt-btn-glass,
  .d-welcome,
  .dt-count-bar,
  .dropcard .cal-remind,
  .dropcard .cal-pill,
  .dropcard .joined,
  .landing-page.over-sky .langs,
  .landing-page.over-sky .top .nav .btn-ink,
  .landing-page.over-sky .plate small,
  .landing-page.over-sky .acct.out,
  .dt-vault,
  .dt-vault-row.on,
  .crush-midnight .crush-feature-controls,
  .crush-midnight .crush-feature-entry .input,
  .crush-midnight .crush-note-in {
    border-width: 0.5px;
    border-color: rgba(255, 255, 255, 0.21);
  }
  .dt-join:focus-within {
    border-color: rgba(255, 255, 255, 0.42);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mcr-card,
  .mcr-sheet,
  .mcr-sheet > *,
  .mcr-photo,
  .mcr-sweep,
  .wd-dial-hand {
    animation: none !important;
  }
}
