/* Dopplo — one stylesheet for the landing page, the app and the legal pages. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f5f2;
  --bg-sunk: #eceae4;
  --ink: #0c0c0e;
  --ink-2: #2a2a30;
  --text: #17171a;
  --muted: #6b6b73;
  --faint: #9e9ea6;
  --line: #ebe9e4;
  --line-2: #dcd9d1;

  --brand: #ff3d6e;
  --brand-2: #ff9a3d;
  --brand-ink: #e0245a;
  --brand-soft: #fff0f3;
  --grad: linear-gradient(100deg, #ff3d6e 0%, #ff5f57 45%, #ff9a3d 100%);

  --ok: #0f9d58;
  --ok-soft: #e7f6ee;
  --warn: #c97700;
  --warn-soft: #fff4e0;
  --danger: #dc3640;
  --danger-soft: #fdecec;
  --info: #2f63f0;
  --info-soft: #ebf0ff;

  /* reel formats / audio types */
  --talking: #3d6bff;
  --text-on-screen: #f2a007;
  --random: #13b07b;
  --music: #9b5cff;
  --na: #bcbcc4;

  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --sh-1: 0 1px 2px rgba(12, 12, 14, 0.05);
  --sh-2: 0 1px 2px rgba(12, 12, 14, 0.04), 0 8px 24px -8px rgba(12, 12, 14, 0.12);
  --sh-3: 0 2px 6px rgba(12, 12, 14, 0.05), 0 28px 60px -22px rgba(12, 12, 14, 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
img, video { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: #ffd3dd; color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.muted { color: var(--muted); }
.small-text { font-size: 12.5px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark, .splash-mark { color: var(--ink); }

/* ── page states: boot splash → landing (signed out) or app (signed in) ── */
.splash { position: fixed; inset: 0; z-index: 500; display: none; place-items: center; background: #fff; }
.splash-mark { width: 52px; height: 52px; animation: breathe 1.4s ease-in-out infinite; }
body[data-state='boot'] .splash { display: grid; }
body[data-state='boot'] .landing, body[data-state='boot'] .app { display: none; }
body[data-state='in'] .landing { display: none; }
.app { display: none; }
body[data-state='in'] .app { display: grid; }
body[data-state='pay'] .landing { display: none; }

/* ── plans page: signed in without a plan (there is no free tier) ── */
.paywall { display: none; position: relative; min-height: 100vh; padding-bottom: 80px; overflow: hidden; }
body[data-state='pay'] .paywall { display: block; }
.pw-nav { position: relative; z-index: 2; }
.pw-nav-in { height: 68px; display: flex; align-items: center; gap: 22px; }
.pw-link { appearance: none; border: 0; background: none; padding: 8px 2px; white-space: nowrap; font: 500 14.5px/1 var(--sans); color: var(--muted); cursor: pointer; }
.pw-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.pw-me { margin-left: auto; display: flex; align-items: center; gap: 14px; min-width: 0; }
.pw-email { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--muted); }
.pw-main { position: relative; padding-top: clamp(28px, 5vw, 56px); }
.pw-main > .section-head, .pw-main > .pricing-mount { position: relative; z-index: 1; }
.pw-main > .section-head { margin-bottom: 40px; }
@media (max-width: 760px) {
  .pw-nav-in { gap: 12px; }
  .pw-email { display: none; }
  .pw-link { font-size: 13px; }
  .pw-me .btn { height: 38px; padding: 0 14px; font-size: 13px; }
}
@media (max-width: 480px) {
  .pw-nav-in .wordmark, .pw-long { display: none; }
}

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--text);
  font: 600 14px/1 var(--sans); letter-spacing: -0.005em; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform 0.15s var(--ease), background-color 0.15s, box-shadow 0.2s, border-color 0.15s, color 0.15s, opacity 0.15s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn .i { width: 16px; height: 16px; }
.btn .i.g { width: 18px; height: 18px; }
.btn.wide { width: 100%; }
.btn-ink, .btn.primary { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 16px -8px rgba(12, 12, 14, 0.55); }
.btn-ink:hover, .btn.primary:hover { background: #26262c; }
.btn-brand { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(255, 61, 110, 0.75); }
.btn-brand:hover { filter: brightness(1.05) saturate(1.05); }
.btn-soft { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-soft:hover { border-color: #c9c5bc; background: var(--bg-soft); }
.btn-ghost, .btn.ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover, .btn.ghost:hover { background: rgba(12, 12, 14, 0.05); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); }
.btn-white:hover { background: #f3f1ec; }
.btn-dark { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-dark:hover { background: rgba(255, 255, 255, 0.14); }
.btn.danger:hover, .btn-danger:hover { color: var(--danger); border-color: #f4b8bc; background: var(--danger-soft); }
.btn-sm, .btn.small { height: 34px; padding: 0 13px; font-size: 13px; gap: 6px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; gap: 5px; }
.btn-xs .i { width: 14px; height: 14px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-xl { height: 56px; padding: 0 28px; font-size: 16px; gap: 10px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 999px; display: inline-grid; place-items: center; flex: none;
  border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn.danger:hover { color: var(--danger); border-color: #f4b8bc; background: var(--danger-soft); }
.icon-btn .i { width: 16px; height: 16px; }

/* ── form controls ── */
.add-form textarea, .add-form input:not([type='checkbox']), .add-form select,
.field input, .field textarea, .swap-start select, .swap-start input, .retry-row input {
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; font-size: 14px; color: var(--ink);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s; min-width: 0;
}
.add-form textarea, .field textarea { resize: vertical; line-height: 1.5; }
.add-form textarea:focus, .add-form input:focus, .add-form select:focus, .field input:focus, .field textarea:focus,
.swap-start select:focus, .swap-start input:focus, .retry-row input:focus {
  border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 61, 110, 0.12);
}
::placeholder { color: var(--faint); }
select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 32px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 15px;
}
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); cursor: pointer; line-height: 1.45; }
.check input { width: 17px; height: 17px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.add-form { display: flex; flex-direction: column; gap: 10px; }
.add-form .row { display: flex; gap: 10px; }
.add-form .row > input, .add-form .row > select { flex: 1; }
.add-form .row > .btn { flex: none; height: auto; min-height: 42px; }

/* ══════════════════════════ LANDING ══════════════════════════ */
.landing { position: relative; overflow-x: clip; background: #fff; }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; }
.wordmark { font: 800 23px/1 var(--display); letter-spacing: -0.05em; }

.l-nav { position: sticky; top: 0; z-index: 50; transition: background-color 0.25s, box-shadow 0.25s; }
.l-nav.scrolled { background: rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.l-nav-in { height: 68px; display: flex; align-items: center; gap: 24px; }
.l-links { display: flex; gap: 2px; margin-left: 16px; }
.l-links a { padding: 8px 13px; border-radius: 999px; color: var(--muted); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: color 0.15s, background-color 0.15s; }
.l-links a:hover { color: var(--ink); background: var(--bg-soft); }
.l-nav-cta { margin-left: auto; display: flex; gap: 6px; }

/* hero */
.hero { position: relative; padding: 52px 0 0; text-align: center; }
.hero-bg { position: absolute; inset: -68px 0 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(760px 420px at 50% -2%, rgba(255, 61, 110, 0.12), transparent 70%),
    radial-gradient(560px 380px at 88% 26%, rgba(255, 154, 61, 0.12), transparent 70%),
    radial-gradient(560px 380px at 8% 38%, rgba(61, 107, 255, 0.07), transparent 70%);
}
.hero-bg::after { content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(12, 12, 14, 0.08) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 28%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 65% 55% at 50% 28%, #000 25%, transparent 75%);
}
.hero-in { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line); box-shadow: var(--sh-2);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: border-color 0.15s, transform 0.2s var(--ease);
}
.eyebrow:hover { border-color: var(--line-2); transform: translateY(-1px); }
.eyebrow .i { width: 15px; height: 15px; color: var(--muted); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(255, 61, 110, 0.5); animation: ping 2s infinite; }
.eyebrow-sep { width: 1px; height: 14px; background: var(--line-2); }
.hero-title {
  font: 800 clamp(46px, 7.6vw, 108px)/0.93 var(--display); letter-spacing: -0.052em; color: var(--ink);
  margin: 24px auto 0; max-width: 12.5ch; text-wrap: balance;
}
.hero-title em, .h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 0.07em 0.04em 0.02em; margin-right: -0.03em;
}
.hero-lede { max-width: 620px; margin: 24px auto 0; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-note { display: flex; gap: 8px 22px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 20px 0 0; font-size: 13.5px; color: var(--muted); }
.hn { display: inline-flex; align-items: center; gap: 7px; }
.hero-note .i { width: 15px; height: 15px; color: var(--ok); stroke-width: 2.2; }
.hero-note .hn-model { color: var(--brand-ink); }
.hero-note .hn-model .i { color: var(--brand); stroke-width: 2; }
.hero-note .hn-model b { font-weight: 650; }
.gate-msg { margin: 16px auto 0; max-width: 540px; padding: 10px 14px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: 14px; }

/* hero reel row */
.reel-row { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 1.6vw, 22px); margin: 60px auto 0; padding: 0 24px 72px; }
.rc {
  position: relative; flex: none; width: clamp(150px, 15vw, 214px); aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: #121216; box-shadow: 0 34px 60px -30px rgba(12, 12, 14, 0.55), 0 0 0 1px rgba(12, 12, 14, 0.06);
}
.reel-row .rc:nth-child(1) { transform: translateY(46px) rotate(-4deg); }
.reel-row .rc:nth-child(2) { transform: translateY(16px) rotate(-1.5deg); }
.reel-row .rc:nth-child(4) { transform: translateY(16px) rotate(1.5deg); }
.reel-row .rc:nth-child(5) { transform: translateY(46px) rotate(4deg); }
.rc-main { width: clamp(184px, 19vw, 270px); overflow: visible; z-index: 2; box-shadow: 0 50px 90px -36px rgba(255, 61, 110, 0.55), 0 30px 60px -30px rgba(12, 12, 14, 0.5), 0 0 0 1px rgba(12, 12, 14, 0.06); }
.rc video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; border-radius: inherit; display: block; }
.rc-vid::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 24%, transparent 62%, rgba(0, 0, 0, 0.5)); }
.rc-vid .rc-side { display: none; }
.rc-fig { position: absolute; left: 50%; bottom: 0; width: 88%; height: 74%; transform: translateX(-50%); fill: rgba(255, 255, 255, 0.2); stroke: none; z-index: -1; }
.t-ocean { background: radial-gradient(120% 70% at 18% 8%, #5b8fff 0%, transparent 56%), radial-gradient(100% 70% at 92% 92%, #36d6bd 0%, transparent 56%), #0c1526; }
.t-dusk { background: radial-gradient(110% 70% at 82% 8%, #ff7f9f 0%, transparent 56%), radial-gradient(100% 70% at 8% 92%, #ffb469 0%, transparent 56%), #26131f; }
.t-ice { background: radial-gradient(110% 70% at 20% 10%, #a9c8ff 0%, transparent 56%), radial-gradient(100% 70% at 85% 90%, #6f8cff 0%, transparent 56%), #18213a; }
.t-brand { background: radial-gradient(110% 70% at 80% 10%, #ff4d79 0%, transparent 58%), radial-gradient(100% 70% at 15% 90%, #ffa04a 0%, transparent 58%), #2a1018; }
.rc-ui { position: absolute; inset: 0; z-index: 1; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; font-size: 11.5px; text-align: left; }
.rc-top { display: flex; align-items: center; gap: 7px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.rc-av { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); border: 1.5px solid #fff; flex: none; }
.rc-side { position: absolute; right: 9px; bottom: 58px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.rc-side span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 600; }
.rc-side .i { width: 20px; height: 20px; stroke-width: 2; }
.rc-bot { display: flex; flex-direction: column; gap: 5px; padding-right: 38px; }
.rc-bot i { display: block; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.78); }
.rc-bot i + i { background: rgba(255, 255, 255, 0.45); }
.rc-snd { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 10.5px; font-weight: 500; opacity: 0.92; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.rc-snd .i { width: 12px; height: 12px; }
.rc-views { position: absolute; top: 11px; right: 11px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font: 600 10.5px var(--mono); }
.rc-views .i { width: 11px; height: 11px; }
.rc-look { position: absolute; left: 11px; bottom: 36px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 11px; font-weight: 600; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.4); }
.rc-look .i { width: 12px; height: 12px; color: var(--brand); }
.fchip {
  position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 4px; padding: 11px 14px; border-radius: 16px; text-align: left; white-space: nowrap;
  background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink);
  border: 1px solid rgba(12, 12, 14, 0.06); box-shadow: 0 22px 44px -18px rgba(12, 12, 14, 0.4);
  animation: float 6s ease-in-out infinite;
}
.fc-1 { left: -92px; top: 30%; }
.fc-2 { right: -96px; bottom: 20%; animation-delay: -3s; }
.fc-k { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.fc-k .i { width: 13px; height: 13px; color: var(--brand); }
.fchip b { font: 700 16px var(--display); letter-spacing: -0.02em; }
.fc-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.fc-row .i { width: 14px; height: 14px; color: var(--brand); }
.fc-bar { width: 150px; height: 5px; border-radius: 99px; background: var(--bg-sunk); overflow: hidden; }
.fc-bar i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; animation: fillbar 3.4s var(--ease) infinite; }

/* why Dopplo: six reasons in a row under the hero */
.why { padding: 30px 0 34px; border-block: 1px solid var(--line); background: #fff; }
.why-title { margin: 0 0 18px; text-align: center; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: 0.09em; color: var(--brand-ink); }
.why-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.why-pt { padding: 4px 20px; border-left: 1px solid var(--line); }
.why-pt:first-child { border-left: 0; padding-left: 0; }
.why-pt:last-child { padding-right: 0; }
.why-ic { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); margin-bottom: 12px; }
.why-ic .i { width: 16px; height: 16px; }
.why-pt b { display: block; font: 700 16px/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.why-pt p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
@media (max-width: 1100px) {
  .why-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; }
  .why-pt:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .why-pt:nth-child(3n) { padding-right: 0; }
}
@media (max-width: 640px) {
  .why { padding: 26px 0 30px; }
  .why-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .why-pt { padding: 0 0 0 14px; }
  .why-pt:nth-child(3n + 1) { border-left: 1px solid var(--line); padding-left: 14px; }
  .why-pt:nth-child(odd) { border-left: 0; padding-left: 0; }
  .why-pt:nth-child(even) { padding-right: 0; }
  .why-pt b { font-size: 15px; }
  .why-pt p { font-size: 13px; }
}

/* sections */
.section { position: relative; padding: clamp(84px, 10vw, 132px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-lede { margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: 9px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: 0.09em; color: var(--brand-ink); }
.kicker::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.h2 { font: 800 clamp(34px, 4.7vw, 62px)/1 var(--display); letter-spacing: -0.047em; color: var(--ink); margin: 16px 0 0; text-wrap: balance; }
.section-lede { margin: 18px 0 0; max-width: 600px; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.fine { margin: 20px 0 0; font-size: 12.5px; color: var(--faint); }
.center { text-align: center; }

/* showcase player */
.player { display: grid; grid-template-columns: 1fr 370px; min-height: 660px; border-radius: 30px; overflow: hidden; background: #0d0d10; color: #fff; box-shadow: 0 50px 100px -50px rgba(12, 12, 14, 0.7), 0 0 0 1px rgba(12, 12, 14, 0.08); }
.pl-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 36px 32px 76px; overflow: hidden; }
.pl-blur { position: absolute; inset: -60px; background: center / cover no-repeat; filter: blur(50px) saturate(1.25) brightness(0.5); transform: scale(1.1); transition: background-image 0.5s; }
.pl-video { position: relative; height: min(560px, 68vh); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.pl-video video { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.3s; }
.pl-video video.swapping { opacity: 0; }
.pl-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 12px; font-weight: 600; }
.pl-badge .i { width: 13px; height: 13px; color: var(--brand); }
.pl-controls { position: absolute; left: 28px; right: 28px; bottom: 24px; display: flex; align-items: center; gap: 14px; }
.pl-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color 0.15s; }
.pl-btn:hover { background: rgba(255, 255, 255, 0.22); }
.pl-btn .i { width: 16px; height: 16px; }
.pl-track { flex: 1; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.pl-track i { display: block; height: 100%; width: 0; background: var(--grad); }
.pl-time { min-width: 36px; text-align: right; font: 500 12px var(--mono); color: rgba(255, 255, 255, 0.7); }
.pl-side { display: flex; flex-direction: column; gap: 20px; padding: 24px; background: #151519; border-left: 1px solid rgba(255, 255, 255, 0.06); }
.pl-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 13px; background: rgba(255, 255, 255, 0.05); }
.pl-tabs button { height: 36px; border: 0; border-radius: 10px; background: transparent; color: rgba(255, 255, 255, 0.55); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.pl-tabs button:hover { color: #fff; }
.pl-tabs button.on { background: rgba(255, 255, 255, 0.13); color: #fff; }
.pl-k { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.45); }
.pl-k .i { width: 14px; height: 14px; }
.pl-idea { display: inline-flex; padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 15px; font-weight: 600; }
.pl-idea::before { content: '“'; } .pl-idea::after { content: '”'; }
.pl-outfit { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.78); font-size: 13.5px; line-height: 1.6; }
.pl-dl { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; margin: 0; font-size: 13.5px; }
.pl-dl dt { color: rgba(255, 255, 255, 0.5); }
.pl-dl dd { margin: 0; text-align: right; font-weight: 500; }
.pl-side > .btn { margin-top: auto; }

/* outfit swaps */
.looks { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.looks-steps { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-direction: column; gap: 20px; }
.looks-steps li { display: flex; gap: 16px; }
.ls-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--sh-1); font: 700 14px var(--display); }
.looks-steps b { font: 700 18px var(--display); letter-spacing: -0.02em; color: var(--ink); }
.looks-steps p { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.idea-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.idea-chips span { padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.looks-art { display: grid; grid-template-columns: 1fr 1fr 1.12fr; grid-template-rows: auto auto; gap: 14px; align-items: end; }
.la-idea { grid-column: 1 / 3; justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--sh-2); font-size: 15px; font-weight: 600; }
.la-idea .i { width: 16px; height: 16px; color: var(--brand); }
.la-link { grid-column: 3; grid-row: 1; align-self: center; justify-self: start; display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px var(--mono); color: var(--muted); }
.la-link .i { width: 15px; height: 15px; color: var(--brand); }
.la-frames { grid-column: 1 / 3; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.la-frame { position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--bg-sunk); box-shadow: var(--sh-2); }
.la-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.la-frame figcaption { position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font: 700 12px var(--display); }
.la-frame.picked { outline: 3px solid var(--brand); outline-offset: 3px; }
.pick { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 6px 14px -4px rgba(255, 61, 110, 0.6); }
.pick .i { width: 16px; height: 16px; stroke-width: 2.6; }
.la-result { grid-column: 3; grid-row: 2; position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #111; box-shadow: 0 40px 70px -30px rgba(12, 12, 14, 0.55); }
.la-result video { width: 100%; height: 100%; object-fit: cover; display: block; }
.la-tag { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.95); color: var(--ink); font-size: 12px; font-weight: 600; }
.la-tag .i { width: 13px; height: 13px; color: var(--ok); stroke-width: 2.4; }

/* photos and carousels: a swapped carousel post to click through, and the ticked strip of originals */
.photos { grid-template-columns: 1.05fr 1fr; }
.ph-art { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.ph-post { flex: 0 1 384px; min-width: 0; padding: 12px 12px 14px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); }
.ph-head { display: flex; align-items: center; gap: 9px; padding: 4px 4px 12px; font-size: 13px; }
.ph-head b { font-weight: 600; color: var(--ink); }
.ph-av { width: 26px; height: 26px; border-radius: 50%; flex: none; background: var(--grad); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--brand); }
.ph-count { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); font: 600 11.5px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.ph-stage { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--bg-sunk); }
.ph-track { display: flex; height: 100%; transition: transform 0.55s var(--ease); }
.ph-slide { position: relative; flex: 0 0 100%; margin: 0; }
.ph-slide img, .ph-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-nav { position: absolute; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: var(--ink); cursor: pointer; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.45); transition: transform 0.15s var(--ease), background-color 0.15s; }
.ph-nav:hover { background: #fff; transform: scale(1.07); }
.ph-nav:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ph-nav[hidden] { display: none; }
.ph-nav .i { width: 16px; height: 16px; }
.ph-nav.prev { left: 10px; }
.ph-nav.prev .i { transform: rotate(90deg); }
.ph-nav.next { right: 10px; }
.ph-nav.next .i { transform: rotate(-90deg); }
.ph-dots { display: flex; justify-content: center; gap: 5px; margin-top: 12px; }
.ph-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transition: background-color 0.2s, transform 0.2s; }
.ph-dots i.on { background: var(--brand); transform: scale(1.2); }
.ph-panel { position: relative; z-index: 1; flex: 0 0 232px; display: flex; flex-direction: column; gap: 12px; margin: 0 0 -50px -40px; padding: 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--sh-3); }
.ph-idea { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 12px; background: var(--bg-soft); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ph-idea .i { width: 15px; height: 15px; color: var(--brand); }
.ph-same { display: flex; align-items: center; gap: 6px; margin-top: -4px; font-size: 12px; font-weight: 500; color: var(--ok); }
.ph-same .i { width: 13px; height: 13px; flex: none; stroke-width: 2.6; }
.ph-k { font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); }
.ph-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph-thumb { position: relative; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--bg-sunk); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 0.2s; }
.ph-thumb.on { outline-color: var(--ink); }
.ph-thumb:focus-visible { outline-color: var(--brand); }
.ph-tick { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 3px 8px -2px rgba(255, 61, 110, 0.6); }
.ph-tick .i { width: 11px; height: 11px; stroke-width: 3; }
.ph-go { display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-size: 13px; white-space: nowrap; font-weight: 600; box-shadow: 0 10px 22px -10px rgba(255, 61, 110, 0.7); }
.ph-go .i { width: 15px; height: 15px; }
.ph-go em { font-style: normal; font-weight: 500; opacity: 0.85; }
.ph-go em::before { content: '·'; margin: 0 5px 0 1px; }
.ph-price { display: inline-flex; align-items: center; gap: 8px; margin: 30px 0 0; padding: 9px 15px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13.5px; font-weight: 600; }
.ph-price .i { width: 15px; height: 15px; flex: none; }
@media (max-width: 1000px) { .photos .looks-copy { order: -1; } }
@media (max-width: 640px) {
  .ph-art { flex-direction: column; align-items: center; gap: 0; }
  .ph-post { flex: none; width: 100%; max-width: 400px; }
  .ph-panel { flex: none; width: min(100%, 400px); margin: 14px 0 0; }
}

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 16px 16px 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.step-art { position: relative; height: 214px; margin-bottom: 22px; padding: 18px; border-radius: 16px; background: var(--bg-soft); overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.step-n { display: block; padding: 0 6px; font: 600 12px var(--mono); letter-spacing: 0.06em; color: var(--brand-ink); }
.step h3 { margin: 8px 0 8px; padding: 0 6px; font: 700 22px/1.15 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.step p { margin: 0; padding: 0 6px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.mini-input { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--sh-1); font-size: 13px; color: var(--faint); }
.mini-input .i { width: 16px; height: 16px; color: var(--muted); }
.caret { display: inline-block; width: 1.5px; height: 15px; margin-left: 1px; background: var(--brand); animation: blink 1s steps(1) infinite; vertical-align: middle; }
.mini-row { display: flex; align-items: center; gap: 9px; padding: 7px 4px; font-size: 13px; }
.mini-row .av { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.mini-row .a1 { background: linear-gradient(135deg, #ff9a3d, #ff3d6e); }
.mini-row .a2 { background: linear-gradient(135deg, #5b8fff, #36d6bd); }
.mini-row .a3 { background: linear-gradient(135deg, #9b5cff, #ff7f9f); }
.mini-row b { font-weight: 600; color: var(--ink-2); }
.mini-row .ok { margin-left: auto; font: 500 12px var(--mono); color: var(--ok); }
.mini-row .busy { margin-left: auto; display: flex; align-items: center; gap: 6px; font: 500 12px var(--mono); color: var(--warn); }
.mini-map { width: 100%; height: 100%; }
.mini-map .ax { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.mini-map .md { fill: none; stroke: #c4c0b7; stroke-dasharray: 4 4; }
.mini-map .dots rect { fill: #cfcbc2; stroke: #fff; stroke-width: 1.5; }
.mini-map .dots rect:nth-child(3n) { fill: #9db4ff; }
.mini-map .dots rect:nth-child(4n) { fill: #f7c766; }
.mini-map .hot, .bm-plot .hot { fill: var(--brand); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 6px 10px rgba(255, 61, 110, 0.5)); animation: hot 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mini-flag { position: absolute; top: 14px; right: 14px; padding: 5px 9px; border-radius: 8px; background: var(--ink); color: #fff; font: 500 11px var(--mono); }
.art-swap { flex-direction: row; align-items: center; justify-content: center; gap: 10px; }
.mini-frame { position: relative; width: 62px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #ddd center / cover no-repeat; box-shadow: var(--sh-2); flex: none; }
.art-swap .f1 { background-image: url('/media/bunny-a.jpg'); }
.art-swap .f2 { background-image: url('/media/bunny-b.jpg'); }
.art-swap .rc-fig, .art-swap .mini-video .rc-fig { display: none; }
.mini-frame.picked { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.mini-frame .pick { width: 20px; height: 20px; right: 5px; bottom: 5px; }
.mini-frame .pick .i { width: 11px; height: 11px; }
.mini-arrow { width: 20px; height: 20px; color: var(--muted); }
.mini-video { position: relative; width: 92px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #222 url('/media/demo-bunny.jpg') center / cover no-repeat; box-shadow: 0 16px 30px -14px rgba(12, 12, 14, 0.5); flex: none; }
.mv-play { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: var(--ink); }
.mv-play .i { width: 13px; height: 13px; }
.mv-snd { position: absolute; left: 6px; bottom: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.45); color: #fff; }
.mv-snd .i { width: 11px; height: 11px; }

/* time comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1000px; margin: 0 auto; }
.cmp { display: flex; flex-direction: column; padding: 28px; border-radius: 26px; background: var(--bg-soft); border: 1px solid var(--line); }
.cmp-new { background: var(--ink); color: #fff; border-color: transparent; box-shadow: 0 40px 70px -36px rgba(12, 12, 14, 0.6); }
.cmp-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.cmp-head span { font: 600 12.5px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.cmp-new .cmp-head span { color: rgba(255, 255, 255, 0.55); }
.cmp-head b { font: 800 44px/1 var(--display); letter-spacing: -0.045em; }
.cmp-old .cmp-head b { color: var(--muted); }
.cmp-new .cmp-head b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cmp ul { list-style: none; margin: 0; padding: 0; }
.cmp li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.cmp-old li span { color: var(--ink-2); }
.cmp-new li { border-color: rgba(255, 255, 255, 0.1); }
.cmp li em { font: 500 13px var(--mono); font-style: normal; white-space: nowrap; color: var(--muted); }
.cmp-new li em { color: rgba(255, 255, 255, 0.65); }
.cmp-new li em.auto { color: #4ade80; }
.cmp-bar { margin-top: auto; padding-top: 22px; }
.cmp-bar i { display: block; height: 8px; border-radius: 99px; transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease) 0.3s; }
.cmp-old .cmp-bar i { width: 100%; background: repeating-linear-gradient(90deg, #cfcbc2 0 14px, #c3beb4 14px 16px); }
.cmp-new .cmp-bar i { width: 4%; min-width: 14px; background: var(--grad); }
.cmp.in .cmp-bar i { transform: scaleX(1); }

/* features bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile-f { position: relative; grid-column: span 2; display: flex; flex-direction: column; min-height: 250px; padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: box-shadow 0.25s, transform 0.25s var(--ease); }
.tile-f:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.f-map { grid-column: span 4; grid-row: span 2; }
.tf-ic { width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.tf-ic .i { width: 20px; height: 20px; }
.tile-f h3 { margin: 0 0 6px; font: 700 20px/1.2 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.tile-f p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.tf-copy { max-width: 520px; }
.tf-art { margin-top: auto; padding-top: 20px; }
.big-map { display: grid; grid-template-columns: 0.75fr 1.4fr; gap: 16px; align-items: stretch; }
.bm-wall { display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; padding: 14px; border-radius: 16px; background: var(--bg-soft); }
.bm-wall span { width: 22px; height: 34px; border-radius: 5px; background: linear-gradient(160deg, #dedad2, #c4bfb5); box-shadow: inset 0 -3px 0 var(--c); }
.bm-plot { width: 100%; height: auto; padding: 6px; border-radius: 16px; background: var(--bg-soft); }
.bm-plot .ax { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.bm-plot .gr { fill: none; stroke: #e6e3dc; }
.bm-plot .md { fill: none; stroke: #bfbab0; stroke-dasharray: 4 4; }
.bm-plot .pts rect { fill: #d2cec6; stroke: #fff; stroke-width: 1.5; }
.bm-plot .pts rect:nth-child(3n) { fill: #9db4ff; }
.bm-plot .pts rect:nth-child(4n+1) { fill: #c7a6ff; }
.bm-plot .pts rect:nth-child(5n) { fill: #f7c766; }
.bm-plot text { font: 600 8.5px var(--mono); fill: var(--faint); letter-spacing: 0.04em; }
.wave { display: flex; align-items: center; gap: 4px; height: 64px; }
.wave i { flex: 1; height: 30%; border-radius: 99px; background: var(--grad); animation: wave 1.3s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -0.4s; } .wave i:nth-child(3n+1) { animation-delay: -0.8s; } .wave i:nth-child(4n) { animation-duration: 1.7s; } .wave i:nth-child(5n) { animation-duration: 1s; }
.tags-art { display: flex; flex-wrap: wrap; gap: 6px; }
.tg { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 12px; font-weight: 500; }
.tg::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.tags-art .script { flex-basis: 100%; margin: 8px 0 0; font: italic 400 17px/1.35 var(--serif); color: var(--ink-2); }
.refresh-art { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--bg-soft); position: relative; }
.refresh-art b { font-size: 14px; }
.refresh-art .ra-sub { font: 500 12px var(--mono); color: var(--ok); }
.ra-dot { position: absolute; top: 18px; right: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); animation: pingok 2s infinite; }
.f-private::after, .f-own::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 61, 110, 0.12), transparent 70%); }

/* pricing: shared by the landing page and the in-app Plans page */
.pricing-mount { display: flex; flex-direction: column; align-items: center; container-type: inline-size; }
.bill-toggle { display: inline-flex; gap: 4px; padding: 5px; margin: 0 auto 34px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.bill-toggle button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font: 600 14px var(--sans); color: var(--muted); cursor: pointer; transition: color 0.2s, background 0.2s, box-shadow 0.2s; }
.bill-toggle button:hover { color: var(--ink); }
.bill-toggle button[aria-checked='true'] { background: #fff; color: var(--ink); box-shadow: var(--sh-2); }
.bill-toggle button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.save { padding: 3px 8px; border-radius: 999px; background: var(--ok-soft); font: 600 11.5px var(--mono); color: var(--ok); letter-spacing: -0.01em; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: 100%; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.tier:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.tier > * { position: relative; }
.tier h3 { margin: 0; font: 700 22px var(--display); letter-spacing: -0.03em; color: var(--ink); }
.tier-for { margin: 6px 0 0; min-height: 2.9em; font-size: 14px; line-height: 1.45; color: var(--muted); }
.tier-badge { position: absolute; top: 26px; right: 24px; padding: 5px 11px; border-radius: 999px; background: var(--grad); font: 600 12px var(--sans); color: #fff; }
.tier-badge.value { background: var(--ok-soft); color: var(--ok); }
.tier-price { display: flex; align-items: baseline; gap: 6px; margin: 24px 0 0; }
.tier-price s { font: 600 22px var(--display); color: var(--faint); letter-spacing: -0.03em; text-decoration-thickness: 2px; }
.tier-price b { font: 800 60px/1 var(--display); letter-spacing: -0.055em; color: var(--ink); }
.tier-price > span { font-size: 15px; color: var(--muted); }
.tier-billed { margin: 10px 0 0; min-height: 1.4em; font-size: 13.5px; color: var(--muted); }
.tier-billed em { font-style: normal; font-weight: 600; color: var(--ok); }
/* credits a month, then what they make: a small tree */
.tier-credits { margin: 22px 0 0; padding: 15px 16px 13px; border-radius: 16px; background: var(--bg-soft); }
.tc-total { display: flex; align-items: center; gap: 9px; margin: 0; }
.tc-total .i { flex: none; width: 18px; height: 18px; color: var(--brand); }
.tc-total b { font: 700 19px/1.2 var(--display); letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.tc-total span { font-size: 14px; color: var(--muted); }
.tc-rows { list-style: none; margin: 3px 0 0 8px; padding: 0; }
.tc-rows li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; padding: 4px 0 4px 21px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.tc-rows li::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1.5px solid var(--line-2); }
.tc-rows li::after { content: ''; position: absolute; left: 0; top: 0; width: 13px; height: 14px; border: 0 solid var(--line-2); border-width: 0 0 1.5px 1.5px; border-bottom-left-radius: 7px; }
.tc-rows li:last-child::before { display: none; }
.tc-rows b { font: 650 15px/1.4 var(--sans); color: var(--ink); white-space: nowrap; }
.tc-rows b i { font-style: normal; font-weight: 400; color: var(--muted); }
.tier-list { list-style: none; margin: 22px 0 26px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.tier-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.ck { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.ck .i { width: 12px; height: 12px; stroke-width: 3; }
.tier .btn { margin-top: auto; }
.tier .btn .i { transition: transform 0.25s var(--ease); }
.tier .btn:hover .i { transform: translateX(3px); }

/* featured plan: dark card with a warm glow */
.tier.featured { background: var(--ink); border-color: var(--ink); box-shadow: var(--sh-3); overflow: hidden; }
.tier.featured::before { content: ''; position: absolute; right: -130px; top: -130px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 61, 110, 0.42), transparent 65%); pointer-events: none; }
.tier.featured h3, .tier.featured .tier-price b, .tier.featured .tc-total b, .tier.featured .tc-rows b { color: #fff; }
.tier.featured .tier-for, .tier.featured .tier-price > span, .tier.featured .tier-billed, .tier.featured .tc-total span, .tier.featured .tc-rows li, .tier.featured .tc-rows b i { color: rgba(255, 255, 255, 0.6); }
.tier.featured .tier-price s { color: rgba(255, 255, 255, 0.35); }
.tier.featured .tier-billed em { color: #5ee0a0; }
.tier.featured .tier-credits { background: rgba(255, 255, 255, 0.07); }
.tier.featured .tc-total .i { color: #ff8fa9; }
.tier.featured .tc-rows li::before, .tier.featured .tc-rows li::after { border-color: rgba(255, 255, 255, 0.22); }
.tier.featured .tier-list li { color: rgba(255, 255, 255, 0.88); }
.tier.featured .ck { background: rgba(94, 224, 160, 0.16); color: #5ee0a0; }

/* price change when the billing period flips */
.tiers.flip .tier-price b, .tiers.flip .tier-price s, .tiers.flip .tier-billed { animation: priceflip 0.45s var(--ease) both; }
@keyframes priceflip { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

.tier-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 26px 0 0; font-size: 13.5px; color: var(--muted); }
.tier-trust span { display: inline-flex; align-items: center; gap: 7px; }
.tier-trust .i { width: 16px; height: 16px; color: var(--ok); }

.plan-compare { display: block; width: 100%; margin: 26px 0 0; border-top: 1px solid var(--line); }
.plan-compare summary { list-style: none; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 20px 0 4px; cursor: pointer; font: 600 15px var(--sans); color: var(--ink); }
.plan-compare summary::-webkit-details-marker { display: none; }
.plan-compare summary .i { width: 16px; height: 16px; color: var(--muted); transition: transform 0.25s var(--ease); }
.plan-compare[open] summary .i { transform: rotate(180deg); }
.compare-scroll { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table tbody th { text-align: left; font-weight: 500; color: var(--ink-2); }
.compare-table thead th { font: 700 16px var(--display); letter-spacing: -0.02em; color: var(--ink); background: var(--bg-soft); }
.compare-table thead th small { display: block; margin-top: 2px; font: 500 12px var(--mono); color: var(--muted); letter-spacing: 0; }
.compare-table td { font-variant-numeric: tabular-nums; color: var(--ink); }
.compare-table .ck { margin: 0 auto; }

/* in-app Plans page */
.page-head.center { justify-content: center; text-align: center; }
.page-head.center .page-sub { margin-inline: auto; }
.pricing-mount.in-app { margin-top: 6px; }
/* switching plan: the amount due today, before Stripe opens */
.switch-dialog { width: min(440px, calc(100vw - 24px)); }
.sw { display: flex; flex-direction: column; gap: 10px; padding: 30px 26px 22px; }
.sw-kicker { font: 600 12px/1 var(--mono, ui-monospace, monospace); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sw-big { font: 800 44px/1 var(--display); letter-spacing: -0.04em; color: var(--ink); margin-top: 4px; }
.sw-big small { margin-left: 8px; font-family: var(--sans, system-ui, sans-serif); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.sw-math { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.sw-list { list-style: none; margin: 6px 0 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; border-radius: 16px; background: #faf7f5; }
.sw-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--ink); }
.sw-list .i { flex: none; width: 16px; height: 16px; margin-top: 1px; color: #16a34a; }
.sw-note { display: flex; align-items: flex-start; justify-content: center; gap: 6px; line-height: 1.45; margin: 4px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.sw-note .i { width: 13px; height: 13px; flex: none; }

/* the current plan, above the plan cards */
.plan-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; max-width: 980px; margin: 0 auto 26px; padding: 16px 18px; border-radius: 20px; background: linear-gradient(120deg, #fff3ef, #fff 70%); border: 1px solid #ffd9df; }
.plan-bar[hidden] { display: none; }
.pb-text { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pb-text > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pb-text b { font: 700 16px/1.3 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.pb-text span:not(.set-ic) { font-size: 13.5px; color: var(--muted); }
.pb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tier .btn[disabled] { opacity: 0.6; cursor: default; }
.plans-faq { margin: 56px 0 24px; }
.plans-faq h3 { margin: 0 0 14px; font: 700 22px var(--display); letter-spacing: -0.03em; color: var(--ink); }
.faq-box { border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; box-shadow: var(--sh-1); }
.faq-box details + details { border-top: 1px solid var(--line); }
.faq-box summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font: 600 15.5px var(--sans); color: var(--ink); transition: background 0.2s; }
.faq-box summary:hover, .faq-box details[open] { background: var(--bg-soft); }
.faq-box summary::-webkit-details-marker { display: none; }
.faq-box summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.faq-box summary .i { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform 0.25s var(--ease); }
.faq-box details[open] summary .i { transform: rotate(180deg); }
.faq-box details p { margin: 0; padding: 4px 22px 20px; max-width: 76ch; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* sized by the room the cards get (the app's content column is narrower than the landing page) */
@container (max-width: 960px) {
  .tiers { gap: 14px; }
  .tier { padding: 26px 20px 22px; border-radius: 24px; }
  .tier-badge { top: 22px; right: 18px; }
  .tier-price b { font-size: 50px; }
  .tier-price s { font-size: 19px; }
  .tier-list li { font-size: 14px; }
}
@container (max-width: 740px) {
  .tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .tier-for { min-height: 0; }
}
@media (max-width: 520px) {
  .bill-toggle button { padding: 0 12px; gap: 6px; font-size: 13px; }
  .sv-w { display: none; }
  .save::before { content: '−'; }
  .tier { padding: 26px 22px 22px; }
  .tier-price b { font-size: 52px; }
}

/* faq */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: 100px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; font: 600 18px var(--display); letter-spacing: -0.02em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--muted); transition: transform 0.25s var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); color: var(--brand); }
.faq details p { margin: -6px 0 22px; max-width: 62ch; font-size: 15.5px; line-height: 1.65; color: var(--muted); }

/* final CTA + footer */
.cta-band { position: relative; padding: 128px 0; text-align: center; background: var(--ink); color: #fff; overflow: hidden; }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(640px 320px at 50% 115%, rgba(255, 61, 110, 0.5), transparent 70%), radial-gradient(520px 260px at 15% -10%, rgba(255, 154, 61, 0.25), transparent 70%); }
.cta-in { position: relative; }
.cta-band .h2 { max-width: 14ch; margin: 0 auto; color: #fff; }
.cta-in p { margin: 18px 0 34px; font-size: 18px; color: rgba(255, 255, 255, 0.65); }
.l-foot { padding: 56px 0 30px; background: var(--ink); color: rgba(255, 255, 255, 0.6); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.l-foot .brand { color: #fff; }
.l-foot .brand-mark { color: #fff; }
.foot-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand p { margin: 12px 0 0; max-width: 280px; font-size: 14.5px; }
.foot-cols { display: flex; gap: 72px; }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; }
.foot-cols b { margin-bottom: 4px; font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: 0.09em; color: #fff; }
.foot-cols a { color: rgba(255, 255, 255, 0.62); text-decoration: none; font-size: 14.5px; transition: color 0.15s; }
.foot-cols a:hover { color: #fff; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; }

/* entrance animations */
.rise { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 120ms); }
.reveal { opacity: 0; translate: 0 26px; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; translate: 0 0; }

/* ══════════════════════════ APP ══════════════════════════ */
.app { grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; background: var(--bg-soft); }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px 16px; background: #fff; border-right: 1px solid var(--line); }
.side-brand { padding: 4px 10px 20px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-radius: 12px;
  background: transparent; color: var(--muted); font: 500 14.5px var(--sans); text-align: left; cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.nav-item:hover { background: var(--bg-soft); color: var(--ink); }
.nav-item.on { background: var(--bg-soft); color: var(--ink); font-weight: 600; }
.nav-item.on .i { color: var(--brand); }
.side .nav-item.on::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--grad); color: #fff; font: 600 11px/20px var(--mono); text-align: center; }
.nav-count { margin-left: auto; font: 500 12px var(--mono); color: var(--faint); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.side-setup { display: block; width: 100%; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(135deg, #fff6f3, #fff); text-align: left; cursor: pointer; font: inherit; }
.side-setup b { display: flex; justify-content: space-between; font-size: 13px; }
.side-setup b span { font: 500 12px var(--mono); color: var(--muted); }
.side-setup .bar { display: block; height: 5px; margin-top: 8px; border-radius: 99px; background: var(--bg-sunk); overflow: hidden; }
.side-setup .bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width 0.4s var(--ease); }
.side-links { display: flex; gap: 14px; padding: 2px 12px 0; }
.side-links a { font-size: 12px; color: var(--faint); text-decoration: none; }
.side-links a:hover { color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px;
  background: rgba(246, 245, 242, 0.82); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-compact { display: none; }
.view-title { margin: 0; font: 500 14px var(--sans); color: var(--muted); white-space: nowrap; }
.topbar-r { display: flex; align-items: center; gap: 10px; min-width: 0; }
.job-pill { display: flex; align-items: center; gap: 8px; height: 34px; max-width: 360px; padding: 0 13px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; }
.job-pill #jobText { overflow: hidden; text-overflow: ellipsis; }
.credit-chip { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px 0 10px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 12.5px var(--sans); white-space: nowrap; cursor: pointer; flex: none; transition: border-color 0.15s, background-color 0.15s; }
.credit-chip:hover { border-color: #d8d5ce; background: var(--bg-soft); }
.credit-chip .i { width: 15px; height: 15px; color: var(--brand); fill: currentColor; stroke-width: 1.6; }
.credit-chip b { font: 700 13px var(--mono); }
.credit-chip span { color: var(--muted); }
.credit-chip.low { border-color: #ffd9df; background: var(--brand-soft); }
.credit-chip.low span { color: var(--brand-ink); }
.spinner { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--brand); animation: spin 0.8s linear infinite; flex: none; display: inline-block; }
.user { position: relative; }
.avatar-btn { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); background: var(--grad); color: #fff; font-weight: 700; cursor: pointer; overflow: hidden; flex: none; }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu { position: absolute; right: 0; top: 46px; z-index: 60; width: 252px; padding: 6px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-3); animation: pop 0.16s var(--ease); }
.menu-info { display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 13px; min-width: 0; }
.menu-info b { font-size: 14px; }
.menu-info span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font: 500 14px var(--sans); text-align: left; text-decoration: none; cursor: pointer; }
.menu-item:hover { background: var(--bg-soft); }
.menu-item .i { width: 16px; height: 16px; color: var(--muted); }

.view { width: 100%; max-width: 1680px; margin: 0 auto; padding: 6px 28px 56px; animation: viewIn 0.35s var(--ease); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 14px 0 20px; }
.page-head-text { min-width: 0; }
.page-title { margin: 0; font: 800 30px/1.1 var(--display); letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.page-sub { margin: 6px 0 0; max-width: 780px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-1); }

/* onboarding */
.onboard { position: relative; display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: center; margin-bottom: 16px; padding: 20px; border-radius: 20px; background: linear-gradient(115deg, #fff 0%, #fff 55%, #fff3ef 100%); border: 1px solid var(--line); box-shadow: var(--sh-1); overflow: hidden; }
.onboard::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 61, 110, 0.12), transparent 70%); pointer-events: none; }
.ob-intro h3 { margin: 0 0 4px; font: 700 19px var(--display); letter-spacing: -0.025em; }
.ob-intro p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.ob-progress { height: 6px; margin-top: 14px; border-radius: 99px; background: var(--bg-sunk); overflow: hidden; }
.ob-progress i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width 0.5s var(--ease); }
.ob-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ob-step { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font: inherit; text-align: left; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.15s; }
.ob-step:hover { transform: translateY(-1px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.ob-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); font: 600 11px var(--mono); color: var(--muted); }
.ob-n .i { width: 13px; height: 13px; stroke-width: 2.6; }
.ob-step b { font-size: 14px; color: var(--ink); }
.ob-step small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ob-step.done { background: var(--bg-soft); cursor: default; }
.ob-step.done:hover { transform: none; box-shadow: none; border-color: var(--line); }
.ob-step.done .ob-n { background: var(--ok); border-color: var(--ok); color: #fff; }
.ob-step.done b { color: var(--muted); }
.ob-close { position: absolute; top: 10px; right: 10px; z-index: 2; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); font: inherit; color: inherit; text-align: left; }
button.stat-card { cursor: pointer; transition: border-color 0.15s, box-shadow 0.2s, transform 0.2s var(--ease); }
button.stat-card:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-1px); }
.sc-k { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.sc-k .i { width: 14px; height: 14px; }
.sc-v { font: 700 27px/1.1 var(--display); letter-spacing: -0.035em; color: var(--ink); }
.sc-sub { font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* discover controls */
.controls { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; padding: 14px 16px; }
.sliders { display: flex; gap: 28px; flex-wrap: wrap; }
.slider { display: flex; align-items: center; gap: 12px; flex: 1 1 280px; max-width: 440px; }
.slider .lbl { min-width: 86px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.slider .val { min-width: 70px; text-align: right; font: 600 13px var(--mono); color: var(--ink); white-space: nowrap; }
input[type='range'] {
  flex: 1; min-width: 100px; height: 4px; border-radius: 99px; -webkit-appearance: none; appearance: none; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--ink) var(--fill, 0%), var(--bg-sunk) var(--fill, 0%));
}
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 6px rgba(12, 12, 14, 0.2); transition: transform 0.12s; }
input[type='range']::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 6px rgba(12, 12, 14, 0.2); }
input[type='range']:active::-webkit-slider-thumb { transform: scale(1.15); }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.f { display: flex; align-items: center; gap: 7px; }
.f > span { font-size: 12.5px; color: var(--muted); }
.f select { height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13px; min-width: 140px; max-width: 220px; }
.chips { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.chip { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; white-space: nowrap; transition: background-color 0.15s, color 0.15s; }
.chip:hover { color: var(--ink); }
.chip.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip b { font: 600 12px var(--mono); color: var(--ink-2); }
.search { display: flex; align-items: center; gap: 8px; height: 36px; min-width: 250px; margin-left: auto; padding: 0 8px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 61, 110, 0.12); }
.search .i { width: 16px; height: 16px; color: var(--faint); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 0; font-size: 13.5px; }
.search input::-webkit-search-cancel-button { display: none; }
kbd { padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg-soft); font: 500 11px var(--mono); color: var(--faint); }

/* wall + map */
.panel { position: relative; min-height: 580px; padding: 18px; --mapH: clamp(420px, 60vh, 620px); }
.split { display: grid; grid-template-columns: minmax(300px, 0.82fr) 1.18fr; align-items: start; min-height: 540px; }
.wall-col { min-width: 0; padding-right: 18px; border-right: 1px solid var(--line); }
.map-col { min-width: 0; display: flex; flex-direction: column; padding-left: 18px; }
.col-label { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--ink); }
.col-n { padding: 2px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); font: 600 11px var(--mono); }
.col-hint { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--faint); }
/* as tall as the map; with hundreds of reels it scrolls inside (padding leaves room for the hover zoom) */
#wall { display: flex; flex-direction: column; gap: 16px; isolation: isolate; max-height: var(--mapH); overflow-y: auto; overscroll-behavior: contain; margin: -10px -8px; padding: 10px 8px; scrollbar-width: thin; }
.group-label { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.group-label .dot { width: 8px; height: 8px; border-radius: 50%; }
.group-label .n { font: 500 11.5px var(--mono); color: var(--faint); }
.tiles { display: flex; flex-wrap: wrap; gap: 4px; }
.tile { position: relative; flex: none; width: 30px; height: 46px; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--bg-sunk); transition: transform 0.14s var(--ease), box-shadow 0.14s; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.hl { z-index: 3; transform: scale(1.5); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink), 0 10px 20px rgba(12, 12, 14, 0.3); }
#map { position: relative; flex: none; height: var(--mapH); isolation: isolate; }
#axes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#axes text { fill: var(--faint); font: 10px var(--mono); }
#axes .grid { stroke: var(--line); stroke-width: 1; }
#axes .median { stroke: #c2bdb3; stroke-width: 1.2; stroke-dasharray: 4 4; }
#axes .axis-title { fill: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
#points { position: absolute; inset: 0; }
.pt { position: absolute; width: 20px; height: 31px; margin: -15.5px 0 0 -10px; border-radius: 4px; overflow: hidden; cursor: pointer; background: var(--bg-sunk); border: 1.5px solid #fff; box-shadow: 0 2px 6px rgba(12, 12, 14, 0.22); transition: transform 0.14s var(--ease), opacity 0.3s, box-shadow 0.14s; }
.pt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt.hl { z-index: 50 !important; transform: scale(2); box-shadow: 0 0 0 1.5px var(--ink), 0 12px 24px rgba(12, 12, 14, 0.35); }
.pt.hidden { opacity: 0; }
/* above the top of the scale: pinned to the top edge with a small arrow */
.pt.over { overflow: visible; }
.pt.over::before { content: ''; position: absolute; left: 50%; top: -7px; margin-left: -4px; border: 4px solid transparent; border-top: 0; border-bottom: 5px solid var(--brand); }
.pt.over img { border-radius: 3px; }
#fly { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
#fly img { position: fixed; border-radius: 4px; object-fit: cover; will-change: transform; box-shadow: 0 6px 16px rgba(12, 12, 14, 0.25); }

.empty { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; background: #fff; border-radius: 20px; }
.empty h2 { max-width: 20ch; margin: 22px 0 8px; font: 800 28px/1.1 var(--display); letter-spacing: -0.035em; color: var(--ink); }
.empty p { max-width: 48ch; margin: 0 0 24px; color: var(--muted); line-height: 1.5; }
.empty .add-form { width: min(620px, 100%); }
.empty-art { display: flex; gap: 10px; align-items: flex-end; }
.empty-art span { width: 46px; height: 74px; border-radius: 11px; box-shadow: var(--sh-2); }
.empty-art span:nth-child(1) { background: radial-gradient(110% 70% at 20% 10%, #5b8fff, transparent 60%), #0c1526; transform: rotate(-8deg) translateY(6px); }
.empty-art span:nth-child(2) { width: 54px; height: 88px; background: radial-gradient(110% 70% at 80% 10%, #ff4d79, transparent 60%), radial-gradient(100% 70% at 15% 90%, #ffa04a, transparent 60%), #2a1018; }
.empty-art span:nth-child(3) { background: radial-gradient(110% 70% at 80% 10%, #ff7f9f, transparent 60%), #26131f; transform: rotate(8deg) translateY(6px); }

/* tooltip */
.tooltip { position: fixed; z-index: 120; display: flex; gap: 12px; width: 344px; padding: 10px; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-3); }
.tooltip img { width: 76px; height: 135px; flex: none; object-fit: cover; border-radius: 10px; background: var(--bg-sunk); }
.t-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.t-acct { font-size: 14px; font-weight: 700; }
.t-stats { display: grid; grid-template-columns: auto auto; gap: 2px 12px; font: 12px var(--mono); color: var(--muted); }
.t-stats b { color: var(--ink); font-weight: 600; }
.t-cap { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 99px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 11.5px; font-weight: 500; color: var(--ink-2); }
.tag .dot { width: 7px; height: 7px; border-radius: 50%; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 14px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--sh-3); animation: toastIn 0.3s var(--ease); }

/* reel modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 28px; background: rgba(12, 12, 14, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn 0.2s; }
.modal-card { position: relative; width: min(1060px, 100%); max-height: calc(100vh - 56px); overflow: auto; background: #fff; border-radius: 26px; box-shadow: 0 40px 100px -30px rgba(12, 12, 14, 0.55); animation: pop 0.25s var(--ease); }
.modal-card .close { position: absolute; top: 14px; right: 14px; z-index: 5; }
.detail { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 620px; }
.d-media { background: #0d0d10; padding: 20px; }
.d-media-in { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 12px; }
.media { width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.d-actions .btn { width: 100%; }
.d-actions .btn.full { grid-column: 1 / -1; }
.d-body { min-width: 0; padding: 28px 30px 30px; }
.d-head { display: flex; align-items: center; gap: 12px; padding-right: 44px; }
.d-av { width: 46px; height: 46px; flex: none; border-radius: 50%; object-fit: cover; background: var(--bg-sunk); }
.d-head h3 { margin: 0; font: 700 22px var(--display); letter-spacing: -0.03em; }
.d-meta { margin-top: 2px; font-size: 13px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0; }
.stat { padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); min-width: 0; }
.stat .k { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.stat .v { margin-top: 2px; font: 700 19px var(--display); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-swap { margin-bottom: 8px; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, #fff4f1, #fff 62%); border: 1px solid #ffd9df; }
.d-swap-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 700 16px var(--display); letter-spacing: -0.02em; }
.d-swap-head .i { color: var(--brand); }
.d-sec { margin-top: 20px; }
.d-sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.d-sec-head span { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--muted); font: 500 12px var(--sans); cursor: pointer; }
.copy-btn:hover { color: var(--ink); border-color: var(--line-2); }
.copy-btn .i { width: 13px; height: 13px; }
.text { max-height: 200px; overflow: auto; padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.swap-box, .swap-box-top { display: flex; flex-direction: column; gap: 10px; }
.swap-box-top > p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.swap-start { display: flex; gap: 8px; flex-wrap: wrap; }
.swap-start select { flex: 0 0 140px; }
.swap-start input { flex: 1 1 200px; }
.swap-start .btn { flex: none; height: auto; min-height: 42px; }
.swap-start textarea { flex: 1 1 100%; order: 3; min-height: 64px; resize: vertical; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; font: 14px/1.45 var(--sans); color: var(--ink); background: #fff; }
.swap-start textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
.swap-start textarea + .btn { order: 4; }
.rec-changes { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.rec-changes .i { flex: none; width: 13px; height: 13px; margin-top: 2px; }
.rec-changes span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* swaps */
.notice { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(120deg, #fff3ef, #fff 70%); border: 1px solid #ffd9df; }
.notice .set-ic { background: #fff; color: var(--brand); }
.notice b { display: block; font-size: 14.5px; }
.notice span { font-size: 13.5px; color: var(--muted); }
.notice .btn { margin-left: auto; }
.seg { display: inline-flex; gap: 2px; margin-bottom: 16px; padding: 3px; border-radius: 12px; background: #fff; border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--ink); color: #fff; }
.seg button b { font: 500 11.5px var(--mono); opacity: 0.7; }
/* the Swaps grid: every job is the same 9:16 tile, so rows line up */
.swap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(208px, 100%), 1fr)); gap: 16px; grid-auto-flow: dense; }
.job { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 6px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.job:hover { box-shadow: var(--sh-2); }
.job.wide { grid-column: span 2; }
/* every tile in a row ends on the same line: the media takes up any extra height (covers crop a little) */
.job-media { position: relative; flex: 1 0 auto; aspect-ratio: 9 / 16; border-radius: 15px; overflow: hidden; background: var(--bg-sunk); isolation: isolate; }
.job.wide .job-media { aspect-ratio: auto; }
.job-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; display: block; }
/* a finished swap before it's played: its first frame and a play button (the player is made on tap) */
.job-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: #000; cursor: pointer; display: block; }
.job-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.job-play-btn { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: #0c0c0e; box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform 0.15s ease; }
.job-play:hover .job-play-btn { transform: scale(1.07); }
.job-play:focus-visible .job-play-btn { outline: 2px solid var(--brand, #ff3d6e); outline-offset: 3px; }
.job-play-btn .i { width: 24px; height: 24px; margin-left: 3px; }
/* while working / after a failure: the original reel's cover, softened, under a frosted panel */
.job-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: blur(10px) saturate(0.85) brightness(0.92); }
.job.s-failed .job-bg { filter: blur(10px) grayscale(1) brightness(0.8); }
.job-media:has(.job-bg)::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(12, 12, 14, 0.18), transparent 30%, transparent 55%, rgba(12, 12, 14, 0.35)); }
.job:is(.s-preparing, .s-frames, .s-rendering, .s-analyzing) .job-media::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%); background-size: 250% 100%; animation: jobshine 2.4s ease-in-out infinite; }
@keyframes jobshine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.job-panel { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 24px -10px rgba(12, 12, 14, 0.35); font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.job-step { display: flex; align-items: flex-start; gap: 8px; }
.job-step .spinner { margin-top: 2px; }
.job-panel.fail .fail-btns { display: flex; flex-direction: column; gap: 6px; }
.job-panel.fail .fail-btns .btn, .job-panel.fail > .btn { width: 100%; justify-content: center; }
.job-panel.fail p { margin: 0; color: var(--danger); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.job-panel .btn { width: 100%; }
.swap-prog { position: relative; height: 4px; border-radius: 99px; background: var(--bg-sunk); overflow: hidden; }
.swap-prog i { position: absolute; top: 0; bottom: 0; width: 38%; border-radius: inherit; background: var(--grad); animation: indet 1.5s ease-in-out infinite; }
.retry-row { display: flex; gap: 8px; }
.retry-row input { flex: 1; min-width: 0; padding: 8px 12px; font-size: 13px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; background: var(--bg-soft); color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; flex: none; }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.s-done { background: var(--ok-soft); color: var(--ok); }
.status-pill.s-failed { background: var(--danger-soft); color: var(--danger); }
.status-pill.s-choose, .status-pill.s-review { background: var(--info-soft); color: var(--info); }
.status-pill.s-preparing, .status-pill.s-frames, .status-pill.s-rendering, .status-pill.s-analyzing { background: var(--warn-soft); color: var(--warn); }
.status-pill.s-preparing::before, .status-pill.s-frames::before, .status-pill.s-rendering::before, .status-pill.s-analyzing::before { animation: blink 1s steps(1) infinite; }
/* chips on the media */
.job-kind, .job-media .status-pill { position: absolute; top: 8px; z-index: 3; box-shadow: 0 2px 8px -2px rgba(12, 12, 14, 0.25); }
.job-kind { left: 8px; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink); font-size: 11.5px; font-weight: 600; }
.job-kind .i { width: 13px; height: 13px; color: var(--brand); }
.job-media .status-pill { right: 8px; }
.job-media .status-pill.s-choose, .job-media .status-pill.s-review { background: #fff; }
/* footer: source reel, title, actions */
.job-foot { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 2px 0 4px; }
.job-src { width: 26px; height: 40px; flex: none; border-radius: 7px; object-fit: cover; cursor: pointer; background: var(--bg-sunk); transition: opacity 0.15s; }
.job-src:hover { opacity: 0.8; }
.job-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.job-title b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-title b i { font-style: normal; font-weight: 400; color: var(--faint); }
.job-title span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-foot .icon-btn { width: 32px; height: 32px; flex: none; }
/* "Pick a frame": two 9:16 frames side by side */
.job-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; height: 100%; }
.frame { position: relative; min-width: 0; border-radius: 12px; overflow: hidden; background: var(--bg-sunk); }
.frame-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.frame-open:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.frame img { width: 100%; height: 100%; min-height: 0; aspect-ratio: 9 / 16; object-fit: cover; display: block; transition: transform 0.3s var(--ease); }
.frame-open:hover img { transform: scale(1.03); }
.frame-outfit { position: absolute; left: 0; right: 0; top: 0; margin: 0; padding: 38px 10px 24px; background: linear-gradient(180deg, rgba(12, 12, 14, 0.62), transparent); color: #fff; font-size: 11.5px; line-height: 1.35; pointer-events: none; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.frame .btn { position: absolute; left: 8px; right: 8px; bottom: 8px; width: auto; box-shadow: 0 6px 18px -6px rgba(12, 12, 14, 0.5); }
.job .retry-row { padding: 0 2px 2px; }
@media (max-width: 560px) {
  .swap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .job.wide { grid-column: 1 / -1; }
  .job-title b { font-size: 12.5px; }
}

.script { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: var(--bg-soft); }
.script input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(12, 12, 14, 0.08); }
.script input { width: 100%; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font: 13px var(--sans); color: var(--ink); outline: none; }
.swap .row.wrap { flex-wrap: wrap; }
/* the same tiles, smaller, in the reel popup */
.swap-list.in-modal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 6px; grid-auto-flow: dense; }
.swap-list.in-modal .job { box-shadow: none; }
.swap-list.in-modal .job.wide { grid-column: 1 / -1; }
.swap-list.in-modal .job-foot .job-src { display: none; }
.empty-card { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 52px 24px; text-align: center; }
.empty-card h3 { margin: 12px 0 0; font: 800 24px var(--display); letter-spacing: -0.03em; }
.empty-card > p { max-width: 50ch; margin: 0; color: var(--muted); line-height: 1.5; }
.mini-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 18px 0 10px; }
.mini-steps div { width: 210px; padding: 14px; border-radius: 16px; background: var(--bg-soft); text-align: left; }
.mini-steps .n { font: 600 11px var(--mono); color: var(--brand-ink); }
.mini-steps b { display: block; margin-top: 4px; font-size: 14px; }
.mini-steps span { font-size: 12.5px; color: var(--muted); }

/* models */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.model-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); transition: box-shadow 0.2s, transform 0.2s var(--ease); }
.model-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.mc-photos { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3px; aspect-ratio: 4 / 3.4; background: var(--bg-sunk); }
.mc-photos img, .mc-photos .ph-empty { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--bg-sunk); }
.mc-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 10px; }
.mc-body b { font: 700 18px var(--display); letter-spacing: -0.02em; }
.mc-desc { font-size: 13px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-actions { display: flex; gap: 6px; margin-top: auto; padding: 4px 16px 16px; }
.model-form { margin-bottom: 20px; padding: 22px; }
.mf-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mf-head h3 { margin: 0; font: 700 20px var(--display); letter-spacing: -0.025em; }
.mf-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; }
.photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.photo-drop { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; border-radius: 16px; border: 1.5px dashed var(--line-2); background: var(--bg-soft) center / cover no-repeat; text-align: center; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.photo-drop:hover { border-color: var(--brand); background-color: var(--brand-soft); }
.photo-drop .ph { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.photo-drop .ph .i { width: 22px; height: 22px; margin-bottom: 4px; }
.photo-drop .ph b { font-size: 13px; color: var(--ink-2); }
.photo-drop .ph small { color: var(--faint); }
.photo-drop.has { border-style: solid; border-color: transparent; }
.photo-drop.has .ph { position: absolute; left: 8px; right: 8px; bottom: 8px; flex-direction: row; justify-content: center; padding: 6px 8px; border-radius: 10px; background: rgba(12, 12, 14, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.photo-drop.has .ph b { color: #fff; }
.photo-drop.has .ph .i, .photo-drop.has .ph small { display: none; }
.mf-fields { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field > span i { font-style: normal; font-weight: 400; color: var(--faint); }
.mf-fields .row { display: flex; gap: 8px; }

/* Create model: pick how she looks, 2 face reference photos, save one */
.page-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-card .row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.mc-need { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 9px; border-radius: 99px; background: var(--brand-soft); color: #c2264f; font-size: 12px; font-weight: 600; }
.mc-need .i { width: 13px; height: 13px; }
.cm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 20px; align-items: start; }
.cm-picks { padding: 6px 24px 22px; }
.cm-loading { padding: 20px 0; }
.cm-sec { padding: 16px 0 12px; border-bottom: 1px solid var(--line); }
.cm-sec h4 { margin: 0 0 8px; font: 600 11.5px var(--mono, ui-monospace, monospace); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.cm-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: start; padding: 5px 0; }
.cm-label { padding-top: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 99px;
  background: #fff; font: 500 13px var(--sans); color: var(--ink-2); cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.cm-chip:hover { border-color: var(--ink-2); color: var(--ink); }
.cm-chip:active { transform: scale(0.97); }
.cm-chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cm-sw { flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(12, 12, 14, 0.14); }
.cm-chip[aria-pressed='true'] .cm-sw { box-shadow: 0 0 0 1.5px #fff; }
.cm-foot { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; }
.cm-note { max-width: 520px; }
.cm-go { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cm-go .btn .i { width: 17px; height: 17px; }
.cm-cost { margin-left: 4px; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.22); font-size: 12.5px; font-weight: 600; }
.cm-result { position: sticky; top: 80px; padding: 20px; }
.cm-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 4px 6px; text-align: center; }
.cm-empty b { font: 700 16px var(--display); letter-spacing: -0.02em; color: var(--ink); }
.cm-empty p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cm-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-bottom: 8px; }
.cm-frames span { display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 16px; border: 1.5px dashed var(--line-2); background: var(--bg-soft); color: var(--faint); }
.cm-frames .i { width: 30px; height: 30px; }
.cm-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.cm-head b { font: 700 16px var(--display); letter-spacing: -0.02em; color: var(--ink); }
.cm-head span { font-size: 12.5px; color: var(--muted); }
.cm-clock { font: 600 14px var(--mono, ui-monospace, monospace); color: var(--brand); }
.cm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: 62vh; overflow-y: auto; padding: 3px; margin: -3px; }
.cm-tile {
  position: relative; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 16px; cursor: pointer; background: var(--bg-soft) center / cover no-repeat;
  box-shadow: 0 0 0 1px var(--line); transition: transform 0.15s, box-shadow 0.15s; animation: pop 0.35s ease both;
}
button.cm-tile:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-2), 0 12px 24px -14px rgba(12, 12, 14, 0.5); }
.cm-tile.on { box-shadow: 0 0 0 3px var(--brand), 0 12px 26px -12px rgba(255, 61, 110, 0.7); }
.cm-tile.on .ai-tick { opacity: 1; transform: none; }
.cm-zoom {
  position: absolute; left: 8px; bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: rgba(12, 12, 14, 0.55); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color 0.15s, transform 0.15s;
}
.cm-zoom:hover, .cm-zoom:focus-visible { background: rgba(12, 12, 14, 0.8); transform: scale(1.06); }
.cm-zoom .i { width: 16px; height: 16px; }
.cm-sk { cursor: default; background: linear-gradient(100deg, var(--bg-soft) 30%, #fff 50%, var(--bg-soft) 70%) 0 0 / 250% 100%; animation: jobshine 1.4s linear infinite; }
.ai-tick { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; opacity: 0; transform: scale(0.6); transition: opacity 0.15s, transform 0.15s; }
.ai-tick .i { width: 14px; height: 14px; }
.cm-prompt { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.cm-prompt summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; list-style: none; }
.cm-prompt summary::-webkit-details-marker { display: none; }
.cm-prompt summary .i { width: 15px; height: 15px; color: var(--muted); }
.cm-prompt[open] summary { border-bottom: 1px solid var(--line); }
.cm-prompt pre { margin: 0; padding: 12px; max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 12px/1.55 var(--mono, ui-monospace, monospace); color: var(--ink-2); }
.cm-prompt .btn { margin: 0 12px 12px; }
.cm-save { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.cm-save .btn.wide { width: 100%; justify-content: center; }
/* create model: the two steps */
.cm-steps { display: flex; gap: 8px; padding: 18px 0 14px; border-bottom: 1px solid var(--line); }
.cm-steps button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; font: 600 14.5px var(--display); letter-spacing: -0.01em; color: var(--ink-2);
  cursor: pointer; transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
}
.cm-steps button:hover { border-color: var(--ink-2); }
.cm-steps button:active { transform: scale(0.98); }
.cm-steps button b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-soft); font: 700 12px var(--mono, ui-monospace, monospace); }
.cm-steps button[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cm-steps button[aria-selected='true'] b { background: rgba(255, 255, 255, 0.16); }
.cm-done { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); color: #fff; }
.cm-done .i { width: 11px; height: 11px; }

/* step 2: the body builder, with the live figure */
.cm-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; padding-top: 18px; }
.cm-figure-wrap { position: sticky; top: 96px; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -26px rgba(42, 22, 12, 0.45); }
.cm-figure { display: block; width: 100%; height: auto; }
.cmf-glow { fill: #ff5f57; opacity: 0.36; transform: translate(0, 10px); }
.cmf-scan { fill: none; stroke: #fff; stroke-width: 0.8; opacity: 0.42; }
.cmf-core { fill: none; stroke: #fff; stroke-width: 1.1; stroke-linecap: round; }
.cmf-edge { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.2; }
.cmf-sweep { animation: cmfsweep 4.6s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes cmfsweep { from { transform: translateY(0); } to { transform: translateY(450px); } }
.cmf-guide { opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.cmf-guide.on { opacity: 1; }
.cmf-guide line { stroke: #0c0c0e; stroke-width: 1.3; stroke-dasharray: 3 4; }
.cmf-guide circle { fill: #fff; stroke: #0c0c0e; stroke-width: 1.5; }
.cmf-guide rect { fill: #0c0c0e; }
.cmf-guide text { font: 700 9.5px var(--mono, ui-monospace, monospace); letter-spacing: 0.12em; fill: #fff; }
@media (prefers-reduced-motion: reduce) { .cmf-sweep { animation: none; opacity: 0; } }
.cm-figure-tag {
  position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 600 10.5px var(--mono, ui-monospace, monospace); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.cm-figure-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: ping 2s infinite; }
.cm-body-ctl .cm-sec:first-child { padding-top: 0; }
.cm-body-ctl .cm-sec:last-child { border-bottom: 0; }
.cm-slider { padding: 7px 0 5px; }
.cm-sl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.cm-sl-head label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cm-sl-head b { padding: 2px 9px; border-radius: 99px; background: var(--brand-soft); font-size: 12.5px; font-weight: 600; color: var(--brand-ink); }
.cm-sl-head b.bump { animation: cmbump 0.28s ease-out; }
@keyframes cmbump { 40% { transform: scale(1.12); } }
.cm-sl-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); }
.cm-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; --p: 50%; }
.cm-range:focus-visible { outline: none; }
.cm-range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) 0 var(--p), var(--line) var(--p) 100%); }
.cm-range::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line); }
.cm-range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--brand); }
.cm-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--brand);
  box-shadow: 0 3px 10px -3px rgba(255, 61, 110, 0.6); transition: transform 0.15s, box-shadow 0.15s;
}
.cm-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 3px 10px -3px rgba(255, 61, 110, 0.6); }
.cm-range:hover::-webkit-slider-thumb { transform: scale(1.08); }
.cm-range:active::-webkit-slider-thumb { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(255, 61, 110, 0.14); }
.cm-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255, 61, 110, 0.25); }
.cm-body-hint { margin: 0; max-width: 560px; }

/* saving: her face and body side by side */
.cm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cm-mini {
  position: relative; height: 112px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-soft) center / cover no-repeat;
  cursor: pointer; transition: transform 0.12s, box-shadow 0.15s;
}
.cm-mini:hover { box-shadow: 0 0 0 2px var(--ink-2); }
.cm-mini span { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 99px; background: rgba(12, 12, 14, 0.62); font-size: 11.5px; font-weight: 600; color: #fff; }
.cm-mini.empty { border: 1.5px dashed var(--line-2); }
.cm-mini.empty span { position: static; display: grid; place-items: center; height: 100%; background: none; color: var(--faint); font-size: 12.5px; }
@media (max-width: 1100px) {
  .cm-layout { grid-template-columns: 1fr; }
  .cm-result { position: static; }
  .cm-tiles { max-height: none; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .cm-body { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cm-picks { padding: 4px 16px 18px; }
  .cm-row { grid-template-columns: 1fr; gap: 6px; }
  .cm-label { padding-top: 0; }
  .cm-body { grid-template-columns: 1fr; gap: 16px; }
  .cm-figure-wrap { position: relative; top: 0; width: min(230px, 70%); margin: 0 auto; }
  .cm-steps button { padding: 10px; font-size: 14px; }
}

/* profiles */
.profiles-layout { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 16px; align-items: start; }
.add-card { position: sticky; top: 80px; padding: 22px; }

/* add profiles: one form on the Profiles page, in the dialog and in the empty state */
.adder { display: flex; flex-direction: column; gap: 18px; text-align: left; }
.adder-head h3 { margin: 0; font: 700 20px/1.15 var(--display); letter-spacing: -0.025em; color: var(--ink); }
.adder-head p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.adder-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.adder-label i { font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--faint); }
.adder-tip { margin: 7px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--faint); }
.handle-box {
  display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 6px; min-height: 104px; padding: 8px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 14px; cursor: text; transition: border-color 0.15s, box-shadow 0.15s;
}
.handle-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 61, 110, 0.12); }
.hchips { display: contents; }
.handle-box input { flex: 1 1 150px; min-width: 150px; height: 32px; padding: 0 6px; border: 0; outline: none; background: transparent; font-size: 14px; color: var(--ink); }
.hchip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 32px; padding: 0 4px 0 4px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink);
  animation: chipIn 0.18s var(--ease, ease-out);
}
.hchip .hav { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 700 11px var(--sans); }
.hchip .hname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hchip em { font-style: normal; font-size: 11.5px; color: var(--faint); }
.hchip.known .hav { background: var(--bg-sunk); color: var(--muted); }
.hchip button { flex: none; width: 24px; height: 24px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer; }
.hchip button:hover { background: var(--bg-sunk); color: var(--ink); }
.hchip button .i { width: 13px; height: 13px; }
@keyframes chipIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
.niche-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.niche-list { display: contents; }
.nchip {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.nchip:hover { border-color: #c9c5bc; }
.nchip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.nchip-new {
  width: 128px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent;
  font-size: 13px; color: var(--ink); outline: none; transition: border-color 0.15s, width 0.2s;
}
.nchip-new:focus, .nchip-new:not(:placeholder-shown) { width: 160px; border-style: solid; border-color: var(--ink); background: #fff; }
.adder-select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background-color: #fff; font-size: 14px; color: var(--ink); outline: none; }
.adder-select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 61, 110, 0.12); }
.vis-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg-soft); border-radius: 13px; }
.vis-seg button {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 0; border-radius: 10px; background: transparent;
  font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.vis-seg button .i { width: 16px; height: 16px; }
.vis-seg button[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(12, 12, 14, 0.06), 0 0 0 1px var(--line); }
.vis-note { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; background: var(--bg-soft); border-radius: 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.vis-note .i { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--ink-2); }
.vis-note b { color: var(--ink); font-weight: 600; }
.adder-sec[data-vis]:empty { display: none; }
.adder-foot { display: flex; flex-direction: column; gap: 9px; }
.adder-foot .btn { width: 100%; height: 46px; font-size: 14.5px; }
.adder-foot .hint { text-align: center; }
.adder-foot .hint:empty { display: none; }

.add-dialog {
  width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--text);
  box-shadow: 0 30px 80px rgba(12, 12, 14, 0.28); overflow: auto;
}
.add-dialog[open] { animation: dialogIn 0.22s var(--ease, ease-out); }
.add-dialog::backdrop { background: rgba(12, 12, 14, 0.38); backdrop-filter: blur(3px); }
.add-dialog .adder { padding: 26px 24px 22px; }
.add-x { position: absolute; top: 16px; right: 16px; z-index: 1; }
/* sign in: a small card around Google's own button */
.signin-dialog { width: min(400px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--text); box-shadow: 0 30px 80px rgba(12, 12, 14, 0.28); overflow: visible; }
.signin-dialog[open] { animation: dialogIn 0.22s var(--ease, ease-out); }
.signin-dialog::backdrop { background: rgba(12, 12, 14, 0.38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.signin-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 38px 28px 22px; }
.signin-mark { width: 52px; height: 52px; margin-bottom: 16px; }
.signin-body h2 { margin: 0; font: 700 26px/1.1 'Bricolage Grotesque', sans-serif; letter-spacing: -0.03em; }
.signin-body > p { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; max-width: 290px; }
.gsi-slot { display: flex; justify-content: center; min-height: 44px; width: 100%; margin: 24px 0 4px; }
.signin-body .signin-fine { margin-top: 14px; font-size: 12px; color: var(--ink-3, #8a8a90); }
.signin-fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.signin-alt { margin-top: 14px; padding: 6px 8px; border: 0; background: none; color: var(--ink-3, #8a8a90); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.signin-alt:hover { color: var(--ink-2); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

.empty-adder { width: min(520px, 100%); padding: 22px; }
.empty .empty-adder p { max-width: none; margin: 7px 0 0; }
.f-acct { gap: 6px; }
.f-add { width: 36px; height: 36px; }
.status.private { background: var(--bg-soft); color: var(--muted); }
.list-card { padding: 8px 8px 12px; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 10px; }
.list-head b { font: 700 16px var(--display); letter-spacing: -0.02em; }
.list-sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.acct-list { display: flex; flex-direction: column; }
.acct { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-top: 1px solid var(--line); border-radius: 14px; transition: background-color 0.15s; }
.acct:first-child { border-top-color: transparent; }
.acct:hover { background: var(--bg-soft); }
.acct .av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg-sunk); }
.acct .name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; font-weight: 600; }
.acct .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.acct .meta input { width: 100px; padding: 0 0 1px; border: 0; border-bottom: 1px dashed var(--line-2); background: transparent; font-size: 12.5px; color: var(--ink-2); outline: none; }
.acct .meta input:focus { border-bottom-color: var(--ink); }
.acct .meta select { max-width: 140px; padding: 0 22px 0 0 !important; border: 0; background-color: transparent; background-position: right 2px center; background-size: 12px; font-size: 12.5px; color: var(--ink-2); }
.acct .err { margin-top: 3px; font-size: 12px; color: var(--danger); }
.acct .btns { display: flex; gap: 4px; opacity: 0.55; transition: opacity 0.15s; }
.acct:hover .btns { opacity: 1; }
.status { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 99px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); font: 500 11px var(--mono); }
.status.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.status.error { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.status.scraping, .status.analysing, .status.queued { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.status.shared { background: var(--info-soft); border-color: transparent; color: var(--info); }
.activity { margin: 10px 12px 0; }
.activity summary { padding: 8px 0; font-size: 13px; color: var(--muted); cursor: pointer; }
.activity pre { max-height: 240px; overflow: auto; margin: 4px 0 0; padding: 12px; border-radius: 12px; background: var(--bg-soft); white-space: pre-wrap; font: 11.5px/1.6 var(--mono); color: var(--muted); }

/* settings */
.settings-grid { column-count: 2; column-gap: 16px; }
.set-card { display: flex; flex-direction: column; gap: 16px; padding: 20px; margin-bottom: 16px; break-inside: avoid; }
.set-head { display: flex; align-items: flex-start; gap: 14px; }
.set-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--bg-soft); color: var(--ink-2); }
.set-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 17px var(--display); letter-spacing: -0.02em; }
.set-head p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.pill { padding: 2px 7px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.credit-box { display: flex; flex-direction: column; gap: 14px; }
.cb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border-radius: 16px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cb-top::before { content: ''; position: absolute; right: -60px; top: -80px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 61, 110, 0.5), transparent 65%); pointer-events: none; }
.cb-top > * { position: relative; }
.cb-bal b { display: block; font: 800 40px/1 var(--display); letter-spacing: -0.04em; }
.cb-bal span { display: block; margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, 0.65); }
.cb-top .btn-soft { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: transparent; }
.cb-top .btn-soft:disabled { opacity: 0.6; cursor: default; }
.cb-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cb-prices div { padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); }
.cb-prices b { display: block; font: 600 13.5px var(--mono); }
.cb-prices span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.cb-hist summary { cursor: pointer; font-size: 13.5px; font-weight: 600; }
.cb-list { display: flex; flex-direction: column; margin-top: 8px; font-size: 13px; }
.cb-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.cb-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-row em { font-style: normal; font-size: 12px; color: var(--faint); white-space: nowrap; }
.cb-row b { min-width: 44px; text-align: right; font: 600 13px var(--mono); }
.cb-row b.plus { color: var(--ok); }
.credit-warn { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; line-height: 1.45; }
.credit-warn a { font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.credit-warn .i { width: 15px; height: 15px; margin-top: 1px; flex: none; fill: currentColor; stroke-width: 1.6; }
.account-box { display: flex; align-items: center; gap: 14px; }
.ab-av { width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover; background: var(--grad); display: grid; place-items: center; color: #fff; font: 700 20px var(--display); }
.account-box b { display: block; font-size: 15px; }
.account-box span { font-size: 13.5px; color: var(--muted); }
.account-box .btn { margin-left: auto; }
.usage-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* mobile tab bar */
.tabbar { display: none; }

/* ══════════════════════════ LEGAL PAGES ══════════════════════════ */
.legal-page .l-nav { background: rgba(255, 255, 255, 0.85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.legal { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 104px; }
.legal h1 { margin: 0; font: 800 clamp(38px, 5vw, 58px)/1 var(--display); letter-spacing: -0.045em; }
.legal .updated { margin: 14px 0 32px; font-size: 14px; color: var(--muted); }
.legal h2 { margin: 42px 0 10px; font: 700 22px var(--display); letter-spacing: -0.025em; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 4px; }
.legal a { color: var(--brand-ink); }
.callout { padding: 14px 16px; border-radius: 14px; background: var(--warn-soft); border: 1px solid #f3dcae; font-size: 14px !important; color: #6b4a00 !important; }
.todo { padding: 0 4px; border-radius: 4px; background: #fff0b8; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.notfound h1 { margin: 0; font: 800 clamp(64px, 12vw, 140px)/0.9 var(--display); letter-spacing: -0.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { margin: 14px 0 26px; font-size: 18px; color: var(--muted); }

/* ══════════════════════════ RESPONSIVE ══════════════════════════ */
@media (max-width: 1180px) {
  .fc-1 { left: -40px; }
  .fc-2 { right: -44px; }
  .onboard { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .l-links { display: none; }
  .steps, .compare, .pricing { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-f { grid-column: span 1; }
  .f-map { grid-column: 1 / -1; grid-row: auto; }
  .looks { grid-template-columns: 1fr; gap: 44px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
  .faq-wrap .section-head { position: static; }
  .player { grid-template-columns: 1fr; }
  .pl-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
  .pl-video { height: min(560px, 74vh); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .brand-compact { display: inline-flex; }
  .brand-compact .brand-mark { width: 26px; height: 26px; }
  .view-title { font: 700 17px var(--display); color: var(--ink); letter-spacing: -0.02em; }
  .topbar { padding: 0 16px; height: 58px; }
  #openAccounts { width: 36px; padding: 0; }
  #openAccounts span { display: none; }
  .job-pill { max-width: 150px; }
  .view { padding: 2px 16px 112px; }
  .page-title { font-size: 25px; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(6, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .tabbar .nav-item { flex-direction: column; justify-content: center; gap: 3px; padding: 6px 2px; font-size: 11px; }
  .tabbar .nav-item.on { background: transparent; }
  .tabbar .nav-badge { position: absolute; top: 2px; left: 54%; min-width: 17px; height: 17px; margin: 0; padding: 0 4px; font-size: 10px; line-height: 17px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .ob-steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .wall-col { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .map-col { padding: 16px 0 0; }
  .panel { --mapH: 380px; }
  #wall { max-height: 320px; }
  .search { min-width: 0; margin-left: 0; flex: 1 1 100%; }
  .profiles-layout, .mf-grid { grid-template-columns: 1fr; }
  .settings-grid { column-count: 1; }
  .add-card { position: static; }
  .swap-grid { grid-template-columns: minmax(0, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .d-media { padding: 16px; }
  .d-media-in { position: static; }
  .media { max-width: 280px; margin: 0 auto; }
  .d-body { padding: 20px 18px 24px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { align-items: flex-end; padding: 0; }
  .modal-card { max-height: 94vh; border-radius: 24px 24px 0 0; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .tooltip { display: none !important; }
}
@media (max-width: 640px) {
  .credit-chip { padding: 0 11px 0 9px; }
  .credit-chip span { display: none; }
  .cb-prices { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 32px); }
  .l-nav-cta .btn-ghost { display: none; }
  .hero { padding-top: 30px; }
  .hero-cta .btn { width: 100%; }
  .eyebrow { font-size: 12.5px; }
  .eyebrow { white-space: nowrap; }
  .eb-a, .eyebrow-sep { display: none; }
  .reel-row { gap: 8px; padding: 0 10px 56px; margin-top: 44px; }
  .reel-row .rc:nth-child(1), .reel-row .rc:nth-child(5) { display: none; }
  .rc { width: 26vw; border-radius: 16px; }
  .rc-main { width: 38vw; }
  .rc-ui { padding: 9px; font-size: 10px; }
  .rc-av { width: 18px; height: 18px; }
  .rc:not(.rc-main) .rc-top { font-size: 0; }
  .rc:not(.rc-main) .rc-snd { display: none; }
  .rc-look { bottom: 30px; left: 8px; font-size: 10px; padding: 4px 7px; white-space: nowrap; }
  .rc:not(.rc-main) .rc-look { display: none; }
  .fchip { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile-f, .f-map { grid-column: auto; }
  .big-map { grid-template-columns: 1fr; }
  .looks-art { grid-template-columns: 1fr 1fr; }
  .la-idea, .la-frames, .la-link { grid-column: 1 / -1; }
  .la-result { grid-column: 1 / -1; grid-row: auto; width: 62%; justify-self: center; }
  .cmp { padding: 22px; }
  .cmp-head b { font-size: 36px; }
  .foot-cols { gap: 44px; }
  .pl-stage { padding: 20px 16px 70px; }
  .pl-controls { left: 18px; right: 18px; }
  .stats { gap: 8px; }
  .stat-card { padding: 12px 14px; }
  .sc-v { font-size: 22px; }
  .ob-steps { grid-template-columns: 1fr; }
  .add-form .row { flex-direction: column; }
  .swap-start select, .swap-start input, .swap-start .btn { flex: 1 1 100%; }
  .sliders { gap: 12px; }
  .chips { width: 100%; overflow-x: auto; }
  .f { flex: 1 1 100%; }
  .f > span { min-width: 58px; }
  .f select { flex: 1; max-width: none; }
    }

/* ══════════════════════════ MOTION ══════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes wave { 0%, 100% { height: 22%; } 50% { height: 100%; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes indet { 0% { left: -40%; } 100% { left: 100%; } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.92); opacity: 0.7; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 110, 0.5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(255, 61, 110, 0); } }
@keyframes pingok { 0% { box-shadow: 0 0 0 0 rgba(15, 157, 88, 0.45); } 80%, 100% { box-shadow: 0 0 0 8px rgba(15, 157, 88, 0); } }
@keyframes fillbar { 0% { transform: scaleX(0.05); } 70%, 100% { transform: scaleX(1); } }
@keyframes hot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; translate: none; }
}

/* ── Creator row (Discover): one round avatar per tracked profile; picking one filters the page ── */
.creators { position: relative; margin: -2px 0 14px; }
.cr-track {
  display: flex; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  scrollbar-width: none; padding: 4px 2px 2px; scroll-padding-inline: 44px;
}
.cr-track::-webkit-scrollbar { display: none; }
.creators.can-next .cr-track { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 80px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 80px), transparent); }
.creators.can-prev .cr-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 80px); mask-image: linear-gradient(90deg, transparent, #000 80px); }
.creators.can-prev.can-next .cr-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent); mask-image: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent); }
.cr {
  flex: 0 0 auto; width: 86px; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 4px 3px 6px; border: 0; border-radius: 16px; background: none; color: var(--text); font: inherit;
  cursor: pointer; scroll-snap-align: start; transition: transform 0.2s var(--ease);
}
.cr:hover:not(:disabled) { transform: translateY(-2px); }
.cr:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.cr:disabled { cursor: default; }
.cr-ring {
  position: relative; width: 68px; height: 68px; margin-bottom: 6px; padding: 2.5px; border-radius: 50%;
  background: var(--line-2); display: grid; place-items: center; transition: background-color 0.2s, box-shadow 0.2s;
}
.cr:hover:not(:disabled):not(.on) .cr-ring { background: var(--faint); }
.cr.on .cr-ring { background: var(--grad); box-shadow: 0 6px 18px -6px rgba(255, 61, 110, 0.55); }
.cr-face {
  position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  border: 2.5px solid var(--bg); background: var(--bg-sunk); display: grid; place-items: center;
}
.cr-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cr-ini { font: 700 22px var(--display); color: var(--muted); }
.cr-ini .i { width: 24px; height: 24px; }
.cr-mosaic { display: grid; grid-template-columns: 1fr 1fr; }
.cr-mosaic img { position: static; }
.cr-mosaic.m2 { grid-template-rows: 1fr; }
.cr-mosaic.m3 img:first-child { grid-row: span 2; }
.cr b {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 12.5px/1.25 var(--sans); letter-spacing: -0.01em;
}
.cr > span:last-child { font: 500 10.5px/1.3 var(--mono); color: var(--muted); white-space: nowrap; }
.cr.on b { color: var(--brand-ink); }
.cr.dim .cr-face img { filter: grayscale(1); opacity: 0.55; }
.cr.dim b, .cr.dim > span:last-child { color: var(--faint); }
.cr.busy .cr-ring::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2.5px solid transparent; border-top-color: var(--brand); animation: spin 1s linear infinite;
}
.cr-add .cr-ring { background: none; border: 1.5px dashed var(--line-2); color: var(--muted); }
.cr-add:hover .cr-ring { border-color: var(--brand); color: var(--brand); background: var(--brand-soft) !important; }
.cr-add .cr-ring .i { width: 22px; height: 22px; }
.cr-add b { color: var(--muted); }
.cr-nav {
  position: absolute; top: 40px; z-index: 2; width: 34px; height: 34px; transform: translateY(-50%);
  display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  background: var(--bg); color: var(--ink); box-shadow: var(--sh-2); cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.15s;
}
.cr-nav:hover { transform: translateY(-50%) scale(1.06); }
.cr-nav .i { width: 16px; height: 16px; }
.cr-prev { left: -4px; } .cr-prev .i { transform: rotate(90deg); }
.cr-next { right: -4px; } .cr-next .i { transform: rotate(-90deg); }
.creators.can-prev .cr-prev, .creators.can-next .cr-next { opacity: 1; pointer-events: auto; }
@media (hover: none) { .cr-nav { display: none; } }
@media (max-width: 560px) { .cr { width: 74px; } .cr-ring { width: 58px; height: 58px; } }

/* Full screen shows the whole vertical video (black bars at the sides), not the card's cropped fill.
   Two separate rules on purpose: a browser that doesn't know one of the selectors would drop a combined rule. */
video:fullscreen { object-fit: contain !important; background: #000 !important; border-radius: 0 !important; transform: none !important; filter: none !important; }
video:-webkit-full-screen { object-fit: contain !important; background: #000 !important; border-radius: 0 !important; transform: none !important; filter: none !important; }

/* How a swap starts: 2 first frames to pick from, or straight to the video */
.swap-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.swap-mode button { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease); }
.swap-mode button:hover { border-color: var(--faint); }
.swap-mode button[aria-checked="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; background: var(--brand-soft); }
.swap-mode button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.swap-mode i { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; transition: border 0.15s var(--ease); }
.swap-mode button[aria-checked="true"] i { border: 5px solid var(--brand); }
.swap-mode span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.swap-mode b { font-size: 13.5px; font-weight: 600; }
.swap-mode small { font-size: 12px; color: var(--muted); line-height: 1.35; }
@media (max-width: 560px) { .swap-mode { grid-template-columns: 1fr; } }

/* Face fix: tools on each first-frame option */
.frame-tools { position: absolute; bottom: 48px; right: 8px; left: 8px; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px; pointer-events: none; }
.frame-tools > * { pointer-events: auto; }
.frame-tool { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font: 600 11.5px var(--sans); cursor: pointer; box-shadow: 0 4px 12px -4px rgba(12, 12, 14, 0.45); transition: background 0.15s var(--ease), transform 0.15s var(--ease); }
.frame-tool:hover { background: #fff; transform: translateY(-1px); }
.frame-tool:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.frame-tool .i { width: 13px; height: 13px; color: var(--brand); }
.frame-chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--ok); color: #fff; font: 600 11.5px var(--sans); box-shadow: 0 4px 12px -4px rgba(12, 12, 14, 0.45); margin-right: auto; }
.frame-chip .i { width: 12px; height: 12px; }
.frame.showing-before .frame-chip { background: var(--ink-2); }
.frame.showing-before .frame-chip::after { content: ' · before'; font-weight: 500; opacity: 0.8; }
.fix-err { margin: 0 12px 8px; padding: 8px 10px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: 12.5px; line-height: 1.4; }

/* Face fix: the box editor */
.fx-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12, 12, 14, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn 0.2s; }
.fx-panel { display: flex; flex-direction: column; gap: 12px; width: min(560px, 100%); max-height: calc(100vh - 40px); padding: 16px; border-radius: 22px; background: #fff; box-shadow: 0 40px 100px -30px rgba(12, 12, 14, 0.6); animation: pop 0.25s var(--ease); }
.fx-head { display: flex; align-items: flex-start; gap: 12px; }
.fx-head > div { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.fx-head b { font-size: 16px; }
.fx-head span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.fx-stage-wrap { flex: 1; min-height: 0; display: flex; justify-content: center; background: var(--bg-soft); border-radius: 14px; overflow: hidden; }
.fx-stage { position: relative; display: inline-block; max-height: 100%; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; }
.fx-stage img { display: block; max-width: 100%; max-height: calc(100vh - 230px); width: auto; height: auto; pointer-events: none; }
.fx-box { position: absolute; border: 2px solid #fff; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(12, 12, 14, 0.45), 0 0 0 1px var(--brand) inset; pointer-events: none; }
.fx-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fx-hint { flex: 1 1 200px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) { .fx-foot .btn { flex: 1 1 auto; } .fx-stage img { max-height: calc(100vh - 290px); } }

/* Which moment of the reel the first frames are made from */
.pick-moment { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.pm-thumb { flex: none; width: 40px; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--bg-sunk); color: var(--faint); }
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-thumb .i { width: 18px; height: 18px; }
.pm-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pm-text b { font-size: 13.5px; font-weight: 600; }
.pm-text span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.pm-btns { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pm-reset { padding: 0; border: 0; background: none; color: var(--muted); font: 500 11.5px var(--sans); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pm-reset:hover { color: var(--ink); }
@media (max-width: 560px) { .pick-moment { flex-wrap: wrap; } .pm-btns { flex-direction: row; align-items: center; width: 100%; justify-content: flex-end; } }

/* The moment picker */
.pm-panel { width: min(520px, 100%); }
.pm-stage { position: relative; align-items: center; background: #000; }
.pm-video { display: block; max-width: 100%; max-height: calc(100vh - 270px); width: auto; height: auto; cursor: pointer; }
.pm-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px; background: rgba(12, 12, 14, 0.55); color: #fff; font-size: 13.5px; text-align: center; }
.pm-controls { display: flex; align-items: center; gap: 8px; }
.pm-range { flex: 1; min-width: 0; accent-color: var(--brand); }
.pm-step { flex: none; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); font: 600 18px/1 var(--sans); cursor: pointer; }
.pm-step:hover:not(:disabled) { border-color: var(--faint); }
.pm-step:disabled, .pm-controls .icon-btn:disabled { opacity: 0.4; cursor: default; }
.pm-time { flex: none; min-width: 46px; text-align: right; font: 600 12.5px var(--mono); color: var(--ink-2); }
@media (max-width: 560px) { .pm-video { max-height: calc(100vh - 320px); } }

/* "Fix the face automatically" switch in the swap box */
.auto-face { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); cursor: pointer; user-select: none; }
.auto-face input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.af-switch { flex: none; position: relative; width: 34px; height: 20px; margin-top: 1px; border-radius: 999px; background: var(--line-2); transition: background 0.18s ease; }
.af-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); transition: transform 0.18s ease; }
.auto-face input:checked + .af-switch { background: var(--brand); }
.auto-face input:checked + .af-switch::after { transform: translateX(14px); }
.auto-face input:focus-visible + .af-switch { outline: 2px solid var(--brand); outline-offset: 2px; }
.af-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.af-text b { font-size: 13.5px; font-weight: 600; }
.af-text b em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 4px; }
.af-text > span { font-size: 12px; color: var(--muted); line-height: 1.35; }

/* ── Pictures: Discover's Reels / Pictures switch, the picture-post wall and modal, the Pictures tab ── */
.page-head-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg .i { width: 15px; height: 15px; }
.kind-seg { margin: 0; }
[data-view-pane='discover'] .page-head { flex-wrap: wrap; }

.pic-panel { padding: 16px; }
.pic-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pic-bar .seg { margin: 0; }
.pic-search { margin-left: auto; }
.pic-cols { columns: 5 200px; column-gap: 12px; }
.pic-tile {
  position: relative; display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 16px; overflow: hidden;
  background: var(--bg-sunk); cursor: pointer; break-inside: avoid; box-shadow: var(--sh-1);
  animation: picIn 0.5s var(--ease) both; animation-delay: var(--d, 0ms);
}
.pic-tile img { display: block; width: 100%; height: auto; min-height: 120px; transition: transform 0.5s var(--ease); }
.pic-tile:hover img { transform: scale(1.035); }
.pic-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pic-over {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(12, 12, 14, 0.66)); color: #fff; font-size: 12.5px; text-align: left;
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.pic-tile:hover .pic-over, .pic-tile:focus-visible .pic-over { opacity: 1; transform: none; }
.pic-over b { min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pic-over span { display: inline-flex; align-items: center; gap: 4px; flex: none; font: 600 12px var(--mono); }
.pic-over .i { width: 13px; height: 13px; }
.pic-multi { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(12, 12, 14, 0.45); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pic-multi .i { width: 14px; height: 14px; }
.pic-slide { width: auto; min-width: 26px; padding: 0 7px; font-size: 11px; font-weight: 650; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
/* a carousel's arrows: on hover (always on touch screens) */
.pic-nav {
  position: absolute; top: 50%; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); cursor: pointer; transform: translateY(-50%); box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.5);
  opacity: 0; transition: opacity 0.2s var(--ease), background 0.15s;
}
.pic-nav[hidden] { display: none; }
.pic-tile:hover .pic-nav, .pic-tile:focus-within .pic-nav { opacity: 1; }
.pic-nav:hover { background: #fff; }
.pic-nav:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pic-nav .i { width: 16px; height: 16px; }
.pic-nav.prev { left: 8px; }
.pic-nav.prev .i { transform: rotate(90deg); }
.pic-nav.next { right: 8px; }
.pic-nav.next .i { transform: rotate(-90deg); }
@media (hover: none) { .pic-nav { opacity: 1; } }
.pic-more { display: flex; justify-content: center; padding: 6px 0 2px; }
.pic-more b { font: 600 12px var(--mono); color: var(--muted); }
.pic-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 64px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.pic-empty .i { width: 30px; height: 30px; margin-bottom: 4px; color: var(--brand); }
.pic-empty b { color: var(--ink); font: 700 19px var(--display); letter-spacing: -0.02em; }
.pic-empty span { max-width: 46ch; line-height: 1.5; }
@keyframes picIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }

/* picture post modal */
.post-detail { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); min-height: 560px; }
.pd-media { display: flex; align-items: flex-start; justify-content: center; padding: 20px; background: #0d0d10; }
.pd-stick { position: sticky; top: 20px; width: 100%; }
.pd-frame { position: relative; }
.pd-frame img { display: block; width: 100%; max-height: calc(100vh - 100px); object-fit: contain; border-radius: 16px; }
.pd-stick.has-strip .pd-frame img { max-height: calc(100vh - 220px); }
/* a carousel: tick the photos to swap */
.pd-tick {
  position: absolute; z-index: 2; width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%; background: rgba(12, 12, 14, 0.35); color: transparent; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pd-tick .i { width: 13px; height: 13px; }
.picked > .pd-tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.pd-tick:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pd-tick-main { top: 12px; left: 12px; width: 30px; height: 30px; box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.5); }
.pd-tick-main .i { width: 16px; height: 16px; }
.pd-strip { display: flex; gap: 8px; margin-top: 12px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: thin; }
.pd-thumb { position: relative; flex: none; width: 62px; aspect-ratio: 4 / 5; }
.pd-thumb .pd-tick { top: 5px; right: 5px; }
.pd-jump {
  display: block; width: 100%; height: 100%; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #1c1c20;
  cursor: pointer; opacity: 0.5; transition: opacity 0.15s, border-color 0.15s;
}
.pd-jump img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-jump:hover, .pd-thumb.picked .pd-jump { opacity: 0.85; }
.pd-thumb.on .pd-jump { opacity: 1; border-color: #fff; }
.pd-jump:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pd-strip-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: rgba(255, 255, 255, 0.6); font-size: 12px; }
.pd-tick-all { padding: 0; border: 0; background: none; color: #fff; font: 600 12px var(--sans); cursor: pointer; }
.pd-tick-all:hover { text-decoration: underline; }
.pd-nav[hidden] { display: none; }
.pd-count { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(12, 12, 14, 0.55); color: #fff; font: 600 12px var(--mono); }
.pd-stats { grid-template-columns: repeat(3, 1fr); }
.pd-note { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.pd-make .pm-models { margin-bottom: 10px; }
.pm-input {
  width: 100%; margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff;
  font-size: 14px; color: var(--ink); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.pm-input:focus, #picPrompt:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 61, 110, 0.12); }
.pm-go { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pm-go .seg { margin: 0; }
.pm-go .btn { flex: 1; min-width: 210px; }
.pm-set { margin: 8px 0 0; }
.link-btn { padding: 0; border: 0; background: none; color: var(--brand-ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* model chips (Pictures tab and the post modal) */
.pm-models { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-model {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 15px 0 4px; border: 1px solid var(--line-2); border-radius: 99px;
  background: #fff; color: var(--ink-2); font: 500 13.5px var(--sans); cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.pm-model:hover { border-color: #c9c5bc; color: var(--ink); }
.pm-model img, .pm-ini { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; object-fit: cover; background: var(--bg-sunk); font-weight: 700; }
.pm-model.on { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 61, 110, 0.14); }
.pm-model.on img, .pm-model.on .pm-ini { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }

/* the Pictures tab: maker */
.pic-maker { position: relative; margin-bottom: 22px; padding: 22px; overflow: hidden; background: radial-gradient(120% 150% at 100% 0%, #fff1ec 0%, #fff 48%); }
.pm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
.pm-main, .pm-side { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pm-side { padding-left: 28px; border-left: 1px dashed var(--line-2); }
.pm-label { display: flex; align-items: center; gap: 8px; margin-top: 8px; font: 600 13px var(--sans); color: var(--ink-2); }
.pm-main > .pm-label:first-child, .pm-side > .pm-label:first-child { margin-top: 0; }
.pm-n { padding: 2px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); font: 600 11px var(--mono); }
#picPrompt {
  width: 100%; min-height: 104px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff;
  font: 15px/1.5 var(--sans); color: var(--ink); resize: vertical; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.pm-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-idea { min-height: 30px; padding: 5px 11px; line-height: 1.35; text-align: left; border: 1px dashed var(--line-2); border-radius: 99px; background: transparent; color: var(--muted); font: 500 12.5px var(--sans); cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.pm-idea:hover { border-style: solid; border-color: #c9c5bc; background: #fff; color: var(--ink); }
.pm-shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pm-shape {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 72px; padding: 8px 4px 7px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font: 600 11.5px var(--mono); cursor: pointer;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.pm-shape:hover { border-color: var(--line-2); color: var(--ink); }
.pm-shape i { display: block; height: 34px; border: 1.5px solid currentColor; border-radius: 4px; background: var(--bg-soft); }
.pm-shape.on { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 61, 110, 0.12); }
.pm-shape.on i { border-color: transparent; background: var(--grad); }
.pm-count { align-self: flex-start; margin: 0; }
.pm-count button { min-width: 46px; justify-content: center; }
.pm-side .btn-lg { margin-top: 8px; }

/* the Pictures tab: cards */
.pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; align-items: start; }
.pic-grid > .empty-card { grid-column: 1 / -1; }
.pic-card { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--sh-1); animation: picIn 0.4s var(--ease) both; }
.pc-media { position: relative; display: grid; gap: 4px; border-radius: 15px; overflow: hidden; }
.pc-media.n2, .pc-media.n3, .pc-media.n4 { grid-template-columns: 1fr 1fr; }
.pc-img { position: relative; overflow: hidden; background: var(--bg-sunk); }
.pc-img > a:first-child { display: block; width: 100%; height: 100%; }
.pc-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.pc-img:hover img { transform: scale(1.03); }
.pc-dl { position: absolute; right: 8px; bottom: 8px; opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s; }
.pc-img:hover .pc-dl, .pc-dl:focus-visible { opacity: 1; transform: none; }
.pc-wait { background: linear-gradient(100deg, var(--bg-sunk) 30%, #f8f6f1 50%, var(--bg-sunk) 70%); background-size: 300% 100%; animation: pcShimmer 1.4s linear infinite; }
@keyframes pcShimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.pc-step {
  position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 16px); padding: 8px 14px;
  border-radius: 99px; background: rgba(255, 255, 255, 0.94); box-shadow: var(--sh-2); color: var(--ink-2); font: 500 12.5px var(--sans);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translate(-50%, -50%);
}
.pc-fail { aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; background: var(--danger-soft); color: var(--danger); font-size: 13.5px; line-height: 1.5; text-align: center; }
.pc-fail p { margin: 0; }
.pc-note { margin: 0 6px; font-size: 12.5px; line-height: 1.45; color: var(--warn); }

@media (hover: none) {
  .pic-over, .pc-dl { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  .pm-grid { grid-template-columns: 1fr; gap: 18px; }
  .pm-side { padding: 16px 0 0; border-left: 0; border-top: 1px dashed var(--line-2); }
  .pm-shapes { grid-template-columns: repeat(6, 1fr); }
  .post-detail { grid-template-columns: 1fr; }
  .pd-stick { position: static; }
  .pd-frame img, .pd-stick.has-strip .pd-frame img { max-height: 60vh; }
}
@media (max-width: 640px) {
  .page-head-tools { width: 100%; }
  .pic-cols { columns: 2 140px; column-gap: 8px; }
  .pic-tile { margin-bottom: 8px; border-radius: 12px; }
  .pic-search { flex: 1; min-width: 0; margin-left: 0; }
  .pic-maker { padding: 16px; }
  .pm-shapes { grid-template-columns: repeat(3, 1fr); }
}

/* ── Picture swaps: the swap tools on each finished picture (Fix face, Make it real, Before, Undo) ── */
.pm-face { margin-top: 2px; }
.pd-make .pm-face { margin: 2px 0 0; }
.pm-side .pm-face { margin-top: 10px; }
.pc-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pc-open:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.pc-chip {
  position: absolute; left: 8px; top: 8px; max-width: calc(100% - 16px); display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: 999px; background: var(--ok); color: #fff; font: 600 11px var(--sans); box-shadow: 0 4px 12px -4px rgba(12, 12, 14, 0.45); pointer-events: none;
}
.pc-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-chip .i { flex: none; width: 11px; height: 11px; }
.pc-hint {
  position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); color: var(--ink); font: 600 11.5px var(--sans); box-shadow: 0 4px 12px -4px rgba(12, 12, 14, 0.45);
  pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s;
}
.pc-hint .i { width: 13px; height: 13px; color: var(--brand); }
.pc-img:hover .pc-hint, .pc-open:focus-visible ~ .pc-hint { opacity: 1; transform: none; }
.pc-busy {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; text-align: center;
  background: rgba(255, 255, 255, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); color: var(--ink); font: 600 12.5px var(--sans);
}
.pc-img.busy img { filter: saturate(0.6); }

.pv-overlay { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(12, 12, 14, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn 0.2s; }
.pv-panel { display: grid; grid-template-columns: minmax(0, 1fr) 320px; width: min(1080px, 100%); max-height: calc(100vh - 48px); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--sh-3); }
.pv-stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 18px; background: #16161a; }
.pv-frame { position: relative; max-width: 100%; border-radius: 12px; overflow: hidden; line-height: 0; }
.pv-frame img { display: block; max-width: 100%; max-height: calc(100vh - 84px); width: auto; height: auto; user-select: none; }
.pv-tag { position: absolute; left: 10px; top: 10px; height: 24px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--ink-2); color: #fff; font: 600 11.5px var(--sans); }
.pv-nav {
  position: absolute; top: 50%; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92);
  color: var(--ink); cursor: pointer; transform: translateY(-50%); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.5); transition: background 0.15s;
}
.pv-nav:hover { background: #fff; }
.pv-nav:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pv-nav .i { width: 18px; height: 18px; }
.pv-nav.prev { left: 14px; }
.pv-nav.prev .i { transform: rotate(90deg); }
.pv-nav.next { right: 14px; }
.pv-nav.next .i { transform: rotate(-90deg); }
.pv-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 18px; overflow-y: auto; }
.pv-head { display: flex; align-items: flex-start; gap: 10px; }
.pv-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pv-head b { font: 600 17px var(--display, var(--sans)); letter-spacing: -0.01em; }
.pv-head span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-chip { align-self: flex-start; margin: 0; }
.pv-outfit { padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); }
.pv-outfit span { display: block; margin-bottom: 3px; font: 600 10.5px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pv-outfit p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.pv-tools { display: flex; flex-direction: column; gap: 8px; }
.pv-tool {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}
.pv-tool:hover:not(:disabled) { border-color: var(--line-2); box-shadow: var(--sh-1); transform: translateY(-1px); }
.pv-tool:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pv-tool:disabled { opacity: 0.55; cursor: not-allowed; }
.pv-tool > .i { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--brand); }
.pv-tool > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pv-tool b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; }
.pv-tool b em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted); }
.pv-tool small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.pv-row { display: flex; gap: 8px; }
.pv-row .btn { flex: 1; justify-content: center; }
.pv-foot { margin-top: auto; display: flex; gap: 8px; padding-top: 4px; }
.pv-foot .btn { flex: 1; justify-content: center; }

@media (hover: none) {
  .pc-hint { opacity: 1; transform: none; }
}
@media (max-width: 820px) {
  .pv-overlay { padding: 0; align-items: stretch; }
  .pv-panel { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; max-height: none; height: 100%; border-radius: 0; }
  .pv-stage { padding: 10px; }
  .pv-frame img { max-height: calc(54vh - 20px); }
  .pv-side { max-height: 46vh; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); gap: 10px; }
  .pv-tool small { display: none; }
}

/* ── What a profile is tracked for: reels, pictures or both ── */
.kind-seg { grid-template-columns: repeat(3, 1fr); }
.acct .meta select.kind-select { max-width: 150px; padding: 1px 22px 1px 8px !important; border-radius: 999px; background-color: var(--bg-soft); font-weight: 500; }
.acct .meta select.kind-select.k-pictures { background-color: rgba(255, 61, 110, 0.09); color: var(--brand); }
.acct .meta select.kind-select.k-reels { background-color: rgba(12, 12, 14, 0.06); }

/* one picture, full screen: swap frames, made pictures */
.lb-overlay { position: fixed; inset: 0; z-index: 180; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(10, 10, 12, 0.94); color: #fff; animation: fadeIn 0.18s; }
.lb-top { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.lb-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lb-title b { font: 600 15px var(--sans); }
.lb-title span { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-acts { display: flex; align-items: center; gap: 8px; }
.lb-btn { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #fff; font: 600 13px var(--sans); white-space: nowrap; cursor: pointer; transition: background 0.15s; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lb-btn[aria-pressed="true"] { background: #fff; color: var(--ink); }
.lb-btn:focus-visible, .lb-nav:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.lb-btn .i { width: 16px; height: 16px; }
.lb-use { background: #fff; color: var(--ink); }
.lb-use:hover { background: rgba(255, 255, 255, 0.88); }
.lb-use:disabled { opacity: 0.5; cursor: default; }
.lb-x { width: 38px; padding: 0; justify-content: center; }
.lb-stage { display: flex; min-height: 0; padding: 0 72px; overflow: hidden; }
.lb-stage img { display: block; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.lb-stage.zoomed { padding: 0; overflow: auto; cursor: grab; }
.lb-stage.zoomed:active { cursor: grabbing; }
.lb-stage.zoomed img { max-width: none; max-height: none; border-radius: 0; cursor: zoom-out; }
.lb-tag { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); height: 26px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--ink-2); color: #fff; font: 600 12px var(--sans); pointer-events: none; }
.lb-nav { position: absolute; top: 50%; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; transform: translateY(-50%); transition: background 0.15s; }
.lb-nav:hover { background: rgba(255, 255, 255, 0.26); }
.lb-nav .i { width: 22px; height: 22px; }
.lb-nav.prev { left: 14px; }
.lb-nav.prev .i { transform: rotate(90deg); }
.lb-nav.next { right: 14px; }
.lb-nav.next .i { transform: rotate(-90deg); }
.lb-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 18px 16px; text-align: center; }
.lb-cap { margin: 0; max-width: 720px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lb-hint { font-size: 11.5px; color: rgba(255, 255, 255, 0.45); }
.pv-frame img[data-pv="full"] { cursor: zoom-in; }
@media (max-width: 720px) {
  .lb-top { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .lb-title { flex-basis: calc(100% - 50px); }
  .lb-acts { order: 3; width: 100%; }
  .lb-acts .lb-use { flex: 1; justify-content: center; }
  .lb-x { position: absolute; top: 10px; right: 12px; }
  .lb-stage { padding: 0 8px; }
  .lb-nav { width: 38px; height: 38px; background: rgba(0, 0, 0, 0.45); }
  .lb-nav.prev { left: 8px; }
  .lb-nav.next { right: 8px; }
  .lb-hint { display: none; }
  .lb-tag { top: 110px; }
}

/* Discover: the reel list under the map */
.reel-panel { margin-top: 16px; padding: 16px; }
.reel-panel .pic-bar { justify-content: space-between; }
.rl-label { flex: 1; min-width: 220px; margin: 0; }
.rl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.rl-card {
  display: flex; flex-direction: column; min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: #fff; color: var(--ink); text-align: left; cursor: pointer; font: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
  animation: picIn 0.45s var(--ease) both; animation-delay: var(--d, 0ms);
}
.rl-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2, 0 12px 28px -14px rgba(12, 12, 14, 0.35)); border-color: transparent; }
.rl-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.rl-thumb { position: relative; display: block; aspect-ratio: 9 / 14; background: var(--bg-sunk); overflow: hidden; }
.rl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.rl-card:hover .rl-thumb img { transform: scale(1.04); }
.rl-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 12, 14, 0.28), transparent 26%, transparent 70%, rgba(12, 12, 14, 0.42)); pointer-events: none; }
.rl-views, .rl-dur, .rl-lift { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px; font: 600 11.5px var(--mono); }
.rl-views { left: 8px; bottom: 8px; background: rgba(12, 12, 14, 0.5); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rl-dur { right: 8px; bottom: 8px; background: rgba(12, 12, 14, 0.5); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rl-lift { left: 8px; top: 8px; background: #fff; color: var(--brand-ink, var(--ink)); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.35); }
.rl-views .i, .rl-lift .i { width: 12px; height: 12px; }
.rl-go {
  position: absolute; z-index: 1; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px;
  background: #fff; color: var(--ink); font: 600 13px var(--sans); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translate(-50%, -40%); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); pointer-events: none;
}
.rl-go .i { width: 15px; height: 15px; }
.rl-card:hover .rl-go, .rl-card:focus-visible .rl-go { opacity: 1; transform: translate(-50%, -50%); }
.rl-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; min-width: 0; }
.rl-acct { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.rl-acct b { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-acct span { flex: none; font-size: 11.5px; color: var(--faint); }
.rl-cap { min-height: 2.8em; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rl-stats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 600 11.5px var(--mono); color: var(--muted); }
.rl-stats > span { display: inline-flex; align-items: center; gap: 4px; }
.rl-stats i { font-style: normal; font-weight: 400; color: var(--faint); }
.rl-stats .i { width: 12px; height: 12px; }
.rl-fmt { margin-left: auto; font: 500 11.5px var(--sans); }
.rl-fmt .dot { width: 7px; height: 7px; border-radius: 50%; }
@media (max-width: 600px) {
  .reel-panel { padding: 12px; }
  .rl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rl-go { display: none; }
  .reel-panel .seg button { height: 30px; padding: 0 9px; font-size: 12.5px; gap: 5px; }
  .rl-label .col-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rl-card { animation: none; } }

/* ── Phones and tablets (5 Dec 2026) ──
   iPhone Safari zooms the whole page in when you tap a text box whose text is under 16px, and doesn't zoom
   back out; inside a sheet (the post and reel screens) pinching back out barely works. On touch screens every
   text box is 16px, so tapping one never zooms. touch-action: manipulation turns off double-tap zoom too
   (quick taps on ticks and buttons zoomed in); pinch-zoom still works everywhere. */
html { touch-action: manipulation; }
@media (pointer: coarse) {
  input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='file']):not([type='color']),
  textarea, select, [contenteditable='true'] { font-size: 16px !important; }
}
