/* Gifted review page. Gifted's own look: white surfaces, soft shadows instead of borders, big images,
   pink only for the one main action on screen. Light and dark, reduced motion, 390 to 1440 wide. */
:root {
  --pink: #e6007e; --pink-h: #c9006d; --on-pink: #ffffff; --pink-soft: #fde8f3;
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f6f4f5; --surface-3: #ece8ea;
  --ink: #1c191b; --ink-2: #4a4448; --muted: #736b70; --line: #ebe6e9;
  --ok: #157a46; --ok-soft: #e5f4eb; --on-ok: #ffffff;
  --warn: #a8500c; --warn-soft: #fdefe0; --on-warn: #ffffff; --warn-fill: #c25a0c;
  --no: #5d575b; --no-soft: #efedee; --on-no: #ffffff;
  --bad: #b3261e; --bad-soft: #fbe7e5;
  --sh-1: 0 1px 2px rgba(28, 25, 27, .06), 0 2px 8px rgba(28, 25, 27, .05);
  --sh-2: 0 2px 6px rgba(28, 25, 27, .06), 0 10px 28px rgba(28, 25, 27, .09);
  --sh-3: 0 20px 60px rgba(28, 25, 27, .2);
  --hair: 0 0 0 1px rgba(28, 25, 27, .06);
  --r-s: 12px; --r: 16px; --r-l: 24px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --top-h: 64px; --bar-h: 0px; --side: 40px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --pink: #ff2e98; --pink-h: #ff55ab; --on-pink: #ffffff; --pink-soft: #3a1529;
  --bg: #121011; --surface: #1c191b; --surface-2: #242022; --surface-3: #312c2f;
  --ink: #f5f1f3; --ink-2: #d4ccd1; --muted: #a59ba1; --line: #322d30;
  --ok: #5fd193; --ok-soft: rgba(95, 209, 147, .14); --on-ok: #08200f;
  --warn: #f5ad5b; --warn-soft: rgba(245, 173, 91, .14); --on-warn: #2a1500; --warn-fill: #f5ad5b;
  --no: #c2b9be; --no-soft: rgba(255, 255, 255, .08); --on-no: #161314;
  --bad: #ff8a80; --bad-soft: rgba(255, 138, 128, .14);
  --sh-1: 0 0 0 1px rgba(255, 255, 255, .05), 0 2px 8px rgba(0, 0, 0, .4);
  --sh-2: 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 28px rgba(0, 0, 0, .5);
  --sh-3: 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 60px rgba(0, 0, 0, .65);
  --hair: 0 0 0 1px rgba(255, 255, 255, .07);
  color-scheme: dark } }
:root[data-theme="dark"] {
  --pink: #ff2e98; --pink-h: #ff55ab; --on-pink: #ffffff; --pink-soft: #3a1529;
  --bg: #121011; --surface: #1c191b; --surface-2: #242022; --surface-3: #312c2f;
  --ink: #f5f1f3; --ink-2: #d4ccd1; --muted: #a59ba1; --line: #322d30;
  --ok: #5fd193; --ok-soft: rgba(95, 209, 147, .14); --on-ok: #08200f;
  --warn: #f5ad5b; --warn-soft: rgba(245, 173, 91, .14); --on-warn: #2a1500; --warn-fill: #f5ad5b;
  --no: #c2b9be; --no-soft: rgba(255, 255, 255, .08); --on-no: #161314;
  --bad: #ff8a80; --bad-soft: rgba(255, 138, 128, .14);
  --sh-1: 0 0 0 1px rgba(255, 255, 255, .05), 0 2px 8px rgba(0, 0, 0, .4);
  --sh-2: 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 28px rgba(0, 0, 0, .5);
  --sh-3: 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 60px rgba(0, 0, 0, .65);
  --hair: 0 0 0 1px rgba(255, 255, 255, .07);
  color-scheme: dark }
@media (max-width: 899px) { :root { --side: 16px; --top-h: 56px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 72px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased; padding-bottom: var(--bar-h); }
body.locked { overflow: hidden; }
a { color: inherit; }
button, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.2; }
img { display: block; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: 99px; box-shadow: var(--sh-2); }
.skip:focus { top: 10px; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--surface-2); box-shadow: inset 0 -1px 0 var(--surface-3); font: 600 12px/1 var(--font); color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn-p, .btn-s, .btn-t { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 99px; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; border: 0; transition: background-color .15s, box-shadow .15s, transform .1s; }
.btn-p { background: var(--pink); color: var(--on-pink); box-shadow: 0 6px 18px rgba(230, 0, 126, .28); }
.btn-p:hover { background: var(--pink-h); }
.btn-p:active { transform: scale(.98); }
.btn-p:disabled { background: var(--surface-3); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.btn-p .i { width: 18px; height: 18px; }
.btn-s { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.btn-s:hover { background: var(--surface-2); }
.btn-s:disabled { color: var(--muted); cursor: not-allowed; }
.btn-t { background: none; color: var(--ink-2); padding: 0 14px; min-height: 44px; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--surface-3); }
.btn-t:hover { color: var(--ink); background: var(--surface-2); text-decoration-color: transparent; }
.ib { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); cursor: pointer; color: var(--ink); }
.ib:hover { background: var(--surface-2); }
.ib:disabled { color: var(--surface-3); cursor: default; box-shadow: inset 0 0 0 1px var(--line); }
.lnk { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-underline-offset: 3px; }
.lnk .i { width: 15px; height: 15px; }

/* ---------- Chips and progress ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); text-decoration: none; }
.chip .i { width: 14px; height: 14px; stroke-width: 2.4; }
.chip.ver { background: var(--ink); color: var(--bg); letter-spacing: .01em; }
.chip.tag { background: var(--ink); color: var(--bg); }
.chip.built { background: var(--ok-soft); color: var(--ok); }
.st-approved { background: var(--ok-soft); color: var(--ok); }
.st-changes { background: var(--warn-soft); color: var(--warn); }
.st-no { background: var(--no-soft); color: var(--no); }
.st-todo { background: var(--surface); color: var(--ink-2); box-shadow: var(--hair); }
.rs-open { background: var(--pink-soft); color: var(--pink); }
.rs-sent, .rs-building { background: var(--warn-soft); color: var(--warn); }
.rs-built { background: var(--ok-soft); color: var(--ok); }
.rs-closed, .rs-draft { background: var(--no-soft); color: var(--no); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.pp { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 8px; border-radius: 99px; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.pp b { color: var(--ink); font-weight: 700; }
.ring { width: 22px; height: 22px; }
.ring circle { fill: none; stroke-width: 3; }
.ring-bg { stroke: var(--surface-3); }
.ring-fg { stroke: var(--ink); stroke-linecap: round; transition: stroke-dashoffset .4s ease; }
.pp.full .ring-fg { stroke: var(--ok); }
.prog { display: grid; gap: 10px; }
.prog .pp { justify-self: start; box-shadow: none; padding: 0; height: auto; background: none; font-size: 15px; }
.track { display: block; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.track i { display: block; height: 100%; background: var(--ink); border-radius: 99px; transition: width .4s ease; }
.av { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--ink); box-shadow: 0 0 0 2px var(--surface); }
.av-approved { background: var(--ok-soft); color: var(--ok); }
.av-changes { background: var(--warn-soft); color: var(--warn); }
.av-no { background: var(--no-soft); color: var(--no); }
.av-me { background: var(--ink); color: var(--bg); width: 32px; height: 32px; font-size: 14px; box-shadow: none; }

/* ---------- Top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-in { max-width: 1280px; margin: 0 auto; height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 max(var(--side), env(safe-area-inset-right, 0px)) 0 max(var(--side), env(safe-area-inset-left, 0px)); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.02em; border-radius: 12px; white-space: nowrap; }
.brand .logo { width: 32px; height: 32px; flex: none; }
.brand-t span { font-weight: 500; color: var(--muted); }
.brand-g { display: none; }
.top-r { display: flex; align-items: center; gap: 14px; min-width: 0; }
.me { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.lang { display: flex; align-items: center; gap: 8px; }
.lang-l { font-size: 13px; color: var(--muted); font-weight: 500; }
.seg { display: inline-flex; border-radius: 99px; padding: 3px; background: var(--surface-2); }
.seg button { border: 0; background: none; padding: 0 12px; min-height: 30px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
@media (max-width: 599px) { .top .lang-l, .me-n { display: none; } }
/* Which demo: Web demo or iOS app demo. Short labels on narrow screens. */
.proj { flex: none; margin-right: auto; }
.proj .proj-s { display: none; }
@media (max-width: 1199px) { .proj .proj-l { display: none; } .proj .proj-s { display: inline; } .top .lang-l { display: none; } }
@media (max-width: 559px) { .top .brand-t { display: none; } }
@media (max-width: 420px) { .proj button { padding: 0 9px; } }
body[data-view="gate"] .proj { display: none; }

/* ---------- Agent status strip ---------- */
.strip { background: var(--bg); }
.strip-in { max-width: 1280px; margin: 0 auto; padding: 12px var(--side) 0; }
.strip-box { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; min-height: 44px; padding: 4px 6px 4px 16px; border-radius: 22px; background: var(--surface-2); font-size: 14px; }
.strip-in .st { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.strip-in .what { min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-in .what a { color: var(--ink); font-weight: 600; margin-right: 10px; text-underline-offset: 3px; }
.strip-in .tog { border: 0; background: none; color: var(--ink-2); font-weight: 600; font-size: 14px; cursor: pointer; padding: 4px 8px; border-radius: 99px; white-space: nowrap; display: inline-grid; place-items: center; }
.strip-in .tog-x { width: 30px; height: 30px; padding: 0; }
.strip-in .tog-x .i { width: 16px; height: 16px; }
.strip-in .tog:hover { background: var(--surface-3); }
.strip .log { grid-column: 1 / -1; margin: 4px 0 8px; padding: 12px 14px; border-radius: var(--r-s); background: var(--surface); font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 9.5em; overflow: auto; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.strip.working .pulse { background: var(--pink); }
.strip.done .pulse { background: var(--ok); }
.strip.failed .pulse { background: var(--bad); }
.strip.failed .st { color: var(--bad); }
@media (prefers-reduced-motion: no-preference) {
  .strip.working .pulse, .strip.queued .pulse { animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .3; transform: scale(.75); } }
}

/* ---------- Page frame ---------- */
.app { min-height: 60vh; outline: none; }
.page { max-width: 1280px; margin: 0 auto; padding: 28px var(--side) 72px; }
.page.narrow { max-width: 820px; }
.loading { max-width: 1280px; margin: 0 auto; padding: 48px var(--side); color: var(--muted); }
.crumb { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 16px -8px; padding: 6px 12px 6px 6px; border-radius: 99px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.crumb:hover { background: var(--surface-2); color: var(--ink); }
.crumb .i { width: 18px; height: 18px; }
.empty { color: var(--muted); margin: 8px 0; }
.status-line { margin: 0; font-size: 14px; color: var(--muted); }
.status-line:empty { display: none; }
.lead { color: var(--ink-2); font-size: 17px; margin: 0; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sec h2 { font-size: 22px; margin: 0 0 20px; }
.team-line { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Home ---------- */
.home-h { max-width: 760px; margin: 12px 0 32px; }
.home-h h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; letter-spacing: -.03em; }
.home-h p { margin: 0; color: var(--ink-2); font-size: 17px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--sh-2); overflow: hidden; margin-bottom: 56px; }
.hero-media { position: relative; display: block; min-height: 440px; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, var(--pink-soft), var(--surface-2) 70%); }
.mosaic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0; padding: 32px; }
.mosaic > span { position: relative; flex: none; height: 84%; aspect-ratio: 295 / 640; border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: var(--sh-2); transition: transform .3s ease; }
.mosaic > span.wide { aspect-ratio: 16 / 10; height: auto; width: 62%; border-radius: 14px; }
.mosaic > span + span { margin-left: -28px; }
.mosaic.n3 > span:nth-child(1) { transform: rotate(-5deg) translateY(12px); z-index: 1; }
.mosaic.n3 > span:nth-child(2) { z-index: 3; height: 92%; }
.mosaic.n3 > span:nth-child(3) { transform: rotate(5deg) translateY(12px); z-index: 2; }
.mosaic.n2 > span:nth-child(1) { transform: rotate(-4deg); }
.mosaic.n2 > span:nth-child(2) { transform: rotate(4deg); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@media (prefers-reduced-motion: no-preference) { .hero-media:hover .mosaic.n3 > span:nth-child(1) { transform: rotate(-7deg) translate(-10px, 14px); } .hero-media:hover .mosaic.n3 > span:nth-child(3) { transform: rotate(7deg) translate(10px, 14px); } }
.mosaic.is-loading > span { width: 26%; background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 300% 100%; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) { .is-loading, .is-loading > span { animation: shimmer 1.4s linear infinite; } @keyframes shimmer { to { background-position: -150% 0; } } }
.ver-big { font-size: 64px; font-weight: 800; letter-spacing: -.04em; color: var(--surface-3); }
.hero-b { padding: 40px; display: flex; flex-direction: column; gap: 16px; justify-content: center; min-width: 0; }
.hero-b h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 0; letter-spacing: -.03em; }
.hero-b .prog { margin-top: 4px; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hero-empty { grid-template-columns: 1fr; }
.hero-empty .hero-b { padding: 48px; align-items: flex-start; }
.home-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: start; }

/* Masonry tiles (rows are sized by review.js so the order still reads left to right) */
.tiles { --gap: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: 4px; column-gap: 20px; align-items: start; }
.rtiles { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tile { position: relative; min-width: 0; }
.tile-a { display: block; text-decoration: none; border-radius: var(--r); }
.tile-img { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--surface-2); box-shadow: var(--hair); aspect-ratio: 3 / 4; transition: transform .2s ease, box-shadow .2s ease; }
.tile-img.wide { aspect-ratio: 16 / 10; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .35s ease; }
.tile-img.blank { display: grid; place-items: center; }
.tile-img.blank .ver-big { font-size: 48px; }
.tile-a:hover .tile-img { box-shadow: var(--sh-2); }
@media (prefers-reduced-motion: no-preference) { .tile-a:hover .tile-img img { transform: scale(1.025); } }
.tile .badge { position: absolute; top: 10px; left: 10px; pointer-events: none; }
.tile .badge .chip { box-shadow: var(--sh-1); background-clip: padding-box; }
.tile .badge .st-approved { background: var(--ok); color: var(--on-ok); }
.tile .badge .st-changes { background: var(--warn-fill); color: var(--on-warn); }
.tile .badge .st-no { background: var(--no); color: var(--on-no); }
.tile .badge .st-todo { background: var(--surface); color: var(--ink); }
.built-dot { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ok); box-shadow: var(--sh-1); }
.built-dot .i { width: 18px; height: 18px; }
.tile-b { display: grid; gap: 4px; padding: 10px 4px 0; }
.tile-t { font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-m { font-size: 13px; color: var(--muted); line-height: 1.4; }
.tile-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.rtiles .tile-b { gap: 6px; }
.rtiles .tile-b .meta { gap: 6px; }
.faces { display: inline-flex; flex: none; }
.faces .av { width: 24px; height: 24px; font-size: 11px; }
.faces .av + .av { margin-left: -6px; }

/* Evolution timeline */
.evo { list-style: none; margin: 0; padding: 0; position: relative; }
.evo li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; }
.evo li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--surface-3); }
.evo .nd { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); color: var(--ink-2); }
.evo .nd .i { width: 17px; height: 17px; }
.evo .k-ver .nd { background: var(--ok); color: var(--on-ok); box-shadow: none; }
.evo .k-wait .nd { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--surface-3); }
.evo .k-ver.k-wait .nd { background: var(--warn-soft); color: var(--warn); box-shadow: none; }
.bx { min-width: 0; padding-top: 6px; }
.bx-t { font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.35; display: block; }
a.bx-t:hover { text-decoration: underline; text-underline-offset: 3px; }
.bx-m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.bx-m .chip { height: 22px; font-size: 12px; padding: 0 8px; }
.lk { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; font-size: 14px; }

/* ---------- Round: header and grid ---------- */
.rhead { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; margin-bottom: 32px; }
.rhead-t h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; margin: 12px 0 12px; }
.intro { color: var(--ink-2); font-size: 16px; max-width: 70ch; }
.intro p { margin: 0; }
.intro.open { display: block; -webkit-line-clamp: unset; }
.more { border: 0; background: none; padding: 6px 0; margin-top: 4px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rhead-side { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--sh-2); }
.cta-desk .btn-p { width: 100%; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.fchip span { color: var(--muted); font-weight: 500; }
.fchip:hover { box-shadow: inset 0 0 0 1px var(--ink-2); color: var(--ink); }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.fchip[aria-pressed="true"] span { color: inherit; opacity: .7; }
.keys-hint { margin: 24px 0 0; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* Phone bottom bar */
.bar { display: none; }
@media (max-width: 899px) {
  .bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 -1px 0 var(--line); padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .bar .pp { box-shadow: none; background: none; padding: 0; }
  .bar .btn-p { flex: 0 1 auto; min-width: 0; padding: 0 20px; }
  .cta-desk, .keys-hint { display: none; }
}

/* ---------- Round: one card ---------- */
.subbar { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.subbar-in { max-width: 1280px; margin: 0 auto; padding: 10px var(--side); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.subbar .crumb { margin: 0 0 0 -8px; justify-self: start; }
.sub-track { display: block; height: 2px; background: var(--line); }
.sub-track i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .4s ease; }
.pos { display: inline-flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.pos b { color: var(--ink); font-size: 15px; }
.sub-r { display: inline-flex; align-items: center; gap: 12px; justify-self: end; }
.arrows { display: inline-flex; gap: 8px; }
.focus { max-width: 1280px; margin: 0 auto; padding: 12px var(--side) 72px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
@media (prefers-reduced-motion: no-preference) {
  .focus.in-r .focus-main { animation: in-r .28s cubic-bezier(.2, .7, .2, 1); }
  .focus.in-l .focus-main { animation: in-l .28s cubic-bezier(.2, .7, .2, 1); }
  @keyframes in-r { from { opacity: 0; transform: translateX(24px); } }
  @keyframes in-l { from { opacity: 0; transform: translateX(-24px); } }
}
.focus-main { min-width: 0; }

/* Now | Proposed */
.compare { margin-bottom: 32px; }
.switch { display: none; }
.panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pane { min-width: 0; }
@media (min-width: 900px) { .compare.after-wide .panes { grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr); } }
.pane-h { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.pane[data-kind="after"] .pane-h { color: var(--ink); }
.pane[data-kind="after"] .pane-h::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stage { position: relative; height: clamp(340px, 56vh, 580px); border-radius: var(--r-l); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.pane[data-kind="after"] .stage { background: var(--surface-2); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ok) 35%, transparent); }
.stage-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; border: 0; background: none; cursor: zoom-in; border-radius: var(--r-l); }
.stage-img img { max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; width: auto; height: auto; object-fit: contain; border-radius: 14px; box-shadow: var(--sh-2); background: var(--surface); }
.stage.is-tall .stage-img img { border-radius: 18px; }
.stage-zoom { position: absolute; right: 14px; bottom: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); opacity: 0; transition: opacity .15s; }
.stage-zoom .i { width: 17px; height: 17px; }
.stage-img:hover .stage-zoom, .stage-img:focus-visible .stage-zoom { opacity: 1; }
.st-nav { position: absolute; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); cursor: pointer; opacity: .92; }
.st-nav:hover { opacity: 1; }
.st-nav .i { width: 18px; height: 18px; }
.st-prev { left: 10px; }
.st-next { right: 10px; }
.stage-text { padding: 32px; place-items: center; text-align: center; }
.stage-text p { margin: 0; max-width: 34ch; color: var(--ink-2); font-size: 16px; }
.cap { display: flex; justify-content: space-between; gap: 12px; margin: 10px 4px 0; font-size: 14px; color: var(--ink-2); }
.cap-n { color: var(--muted); white-space: nowrap; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 3px; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.th { flex: none; width: 44px; height: 60px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: pointer; opacity: .6; transition: opacity .15s, box-shadow .15s; }
.th.wide { width: 80px; }
.th img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.th:hover { opacity: .9; }
.th[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.pane-note { margin: 12px 4px 0; font-size: 14px; color: var(--muted); }
img.broken { min-height: 120px; min-width: 120px; }

/* Card text */
.ctitle { margin-bottom: 24px; }
.ctitle .meta { margin-bottom: 12px; }
.area { font-size: 14px; color: var(--muted); font-weight: 500; }
.ctitle h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; margin: 0; outline: none; }
.block { margin-bottom: 28px; }
.block h2, .callout h2, .team h2 { font-size: 18px; margin: 0 0 12px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; font-size: 17px; line-height: 1.5; }
.ticks .i { width: 22px; height: 22px; padding: 3px; margin-top: 1px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); stroke-width: 2.6; }
.callout { border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; background: var(--surface-2); }
.callout h2 { font-size: 15px; margin-bottom: 4px; }
.callout p { margin: 0; color: var(--ink-2); }
.callout.ask { background: var(--warn-soft); }
.callout.ask h2 { color: var(--warn); }
.accs { margin: 28px 0; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 60px; cursor: pointer; font-weight: 600; font-size: 16px; border-radius: 8px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .chev { margin-left: auto; color: var(--muted); transition: transform .2s; }
.acc[open] summary .chev { transform: rotate(180deg); }
.acc-n { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 99px; padding: 1px 8px; }
.acc-b { padding: 0 0 22px; }
blockquote { margin: 0; padding: 0 0 0 18px; border-left: 3px solid var(--surface-3); color: var(--ink-2); font-size: 16px; line-height: 1.65; white-space: pre-line; }
.flows { display: grid; gap: 18px; }
.flow h3 { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.flow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.step { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 10px; font-size: 14px; background: var(--surface-2); color: var(--ink-2); }
.step.nu { background: var(--ok-soft); color: var(--ink); }
.arr { color: var(--muted); display: inline-grid; }
.arr .i { width: 14px; height: 14px; }
.none { color: var(--muted); margin: 0; font-size: 14px; }
.wt-sc { overflow-x: auto; border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--line); }
.wt-sc table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
.wt-sc th, .wt-sc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.wt-sc th { font-weight: 600; color: var(--muted); background: var(--surface-2); position: sticky; top: 0; }
.wt-sc tr:last-child td { border-bottom: 0; }
.team-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.team-l li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
.team-l .av { width: 32px; height: 32px; font-size: 13px; box-shadow: none; }
.team-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 3px 0 0; font-size: 15px; }
.team-who .chip { height: 24px; font-size: 12px; padding: 0 8px; }
.team-note { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.team-none { margin: 0; font-size: 14px; color: var(--muted); }
.team-inline { display: none; }

/* Decision card (desktop: sticky on the right; phone: the bottom bar) */
.dec { position: sticky; top: calc(var(--top-h) + 76px); display: grid; gap: 14px; padding: 24px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--sh-2); max-height: calc(100vh - var(--top-h) - 176px); overflow: auto; overscroll-behavior: contain; }
.dec-h { font-size: 20px; margin: 0; }
.dseg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 18px; background: var(--surface-2); }
.dseg button { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: 6px 4px; border: 0; border-radius: 14px; background: none; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s; }
.dseg button .i { width: 20px; height: 20px; }
.dseg button:hover:not(:disabled) { background: var(--surface); box-shadow: var(--sh-1); color: var(--ink); }
.dseg button[data-s="approved"][aria-pressed="true"] { background: var(--ok); color: var(--on-ok); box-shadow: var(--sh-1); }
.dseg button[data-s="changes"][aria-pressed="true"] { background: var(--warn-fill); color: var(--on-warn); box-shadow: var(--sh-1); }
.dseg button[data-s="no"][aria-pressed="true"] { background: var(--no); color: var(--on-no); box-shadow: var(--sh-1); }
.dseg button:disabled { cursor: not-allowed; opacity: .55; }
.dseg button[aria-pressed="true"]:disabled { opacity: .85; }
.note-box { display: grid; gap: 8px; }
.note-l { font-size: 14px; font-weight: 600; }
.ta-wrap { position: relative; }
.ta-wrap textarea { display: block; width: 100%; min-height: 96px; resize: vertical; border: 0; border-radius: var(--r); padding: 14px 16px; background: var(--surface-2); color: var(--ink); font-size: 16px; line-height: 1.5; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .15s, background-color .15s; }
.ta-wrap.has-mic textarea { padding-right: 56px; }
.ta-wrap textarea:focus { outline: none; background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.ta-wrap textarea.need { box-shadow: inset 0 0 0 2px var(--warn-fill); background: var(--surface); }
.ta-wrap textarea::placeholder { color: var(--muted); }
.ta-wrap textarea:disabled { opacity: .7; }
.mic { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); cursor: pointer; }
.mic:hover { background: var(--surface-3); }
.mic.on { background: #e5484d; color: #fff; box-shadow: 0 0 0 calc(3px + var(--lv, 0) * 10px) rgba(229, 72, 77, .22) !important; transition: box-shadow .08s linear; animation: none !important; }
.mic.wait { opacity: .6; cursor: progress; }
@media (prefers-reduced-motion: no-preference) { .mic.on { animation: ring 1.6s ease-out infinite; } @keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ink) 35%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } } }
.interim { margin: 6px 4px 0; font-size: 14px; color: var(--muted); font-style: italic; }
.interim:empty { display: none; }
.listening { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.need-msg { margin: 0; font-size: 14px; color: var(--warn); font-weight: 500; }
.add-note { justify-self: start; border: 0; background: none; padding: 4px 0; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.save-msg { margin: 0; font-size: 13px; color: var(--muted); min-height: 1em; }
.save-msg:empty { display: none; }
.save-msg.bad { color: var(--bad); font-weight: 600; }
.dec-go { display: grid; gap: 4px; }
.dec-go .btn-p { order: -1; width: 100%; }
.dec .team-side { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }
.dec .team-side h2 { font-size: 15px; }
.keys { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0; font-size: 13px; color: var(--muted); }
.keys > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ---------- Your review and Send ---------- */
.send-h h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; margin: 0 0 10px; outline: none; }
.send-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px 0 8px; padding: 16px 16px 16px 20px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--sh-2); }
.send-top .pp { box-shadow: none; padding: 0; background: none; font-size: 15px; }
#send-msg { margin: 8px 4px; }
.sum-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 4px; }
.sum a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px 12px 10px 10px; border-radius: var(--r); text-decoration: none; }
.sum a:hover { background: var(--surface-2); }
.sum-img { width: 52px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--surface-2); box-shadow: var(--hair); }
.sum-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sum-t { display: grid; gap: 2px; min-width: 0; }
.sum-t b { font-weight: 600; font-size: 15px; line-height: 1.35; }
.sum-m { font-size: 13px; color: var(--muted); }
.sum-n { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sum.missing .sum-t b { color: var(--ink); }
.sum.missing .chip { box-shadow: inset 0 0 0 1.5px var(--ink); background: none; color: var(--ink); }
.who { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.sent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; margin: 24px 0 0; padding: 18px 20px; border-radius: var(--r-l); background: var(--ok-soft); color: var(--ink); }
.sent > .i { color: var(--ok); width: 24px; height: 24px; }
.sent p { margin: 0; }
@media (max-width: 899px) { .sum a { grid-template-columns: 52px minmax(0, 1fr); align-items: start; } .sum a > .chip { grid-column: 2; justify-self: start; margin-top: -8px; } .sum-img { grid-row: span 2; } .strip-in .what { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .send-top .btn-p { display: none; } .send-top { box-shadow: none; padding: 0; background: none; margin-top: 16px; } }

/* ---------- Gate and errors ---------- */
.gate { min-height: calc(100vh - var(--top-h) - 40px); display: grid; place-items: center; padding: 32px var(--side); }
.gate-in { max-width: 440px; text-align: center; padding: 48px 36px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--sh-2); }
.gate-in .logo { width: 64px; height: 64px; margin: 0 auto 20px; }
.gate-in h1 { font-size: 26px; margin: 0 0 10px; }
.gate-in p { margin: 0; color: var(--ink-2); }
body[data-view="gate"] .top-r { display: none; }
.err-card { max-width: 560px; padding: 32px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--sh-2); }
.err-card h1 { font-size: 22px; margin: 0 0 8px; }
.err-card p { margin: 0 0 20px; color: var(--ink-2); }

/* ---------- Tell the agent: floating button, side panel or bottom sheet ---------- */
.fab { position: fixed; z-index: 26; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 18px; border: 0; border-radius: 99px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; box-shadow: var(--sh-3); cursor: pointer; transition: transform .15s; }
.fab:hover { transform: translateY(-1px); }
.fab .i { width: 20px; height: 20px; }
.fab-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--pink); color: var(--on-pink); font-size: 12px; font-weight: 700; }
body[data-view="card"] .fab { width: 52px; padding: 0; justify-content: center; right: auto; left: max(24px, env(safe-area-inset-left, 0px)); }
body[data-view="card"] .fab .fab-t { display: none; }
body[data-view="card"] .fab .fab-n { position: absolute; top: -4px; right: -4px; }
@media (max-width: 899px) {
  .fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  body.has-bar .fab { bottom: calc(var(--bar-h) + 12px); width: 52px; padding: 0; justify-content: center; }
  body.has-bar .fab .fab-t { display: none; }
  body.has-bar .fab .fab-n { position: absolute; top: -4px; right: -4px; }
  body[data-view="card"] .fab { left: auto; right: 16px; }
}
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(15, 12, 14, .42); }
@media (prefers-reduced-motion: no-preference) { .scrim:not([hidden]) { animation: fade .2s ease; } @keyframes fade { from { opacity: 0; } } }
.agent { position: fixed; z-index: 41; top: 12px; right: 12px; bottom: 12px; width: min(460px, calc(100vw - 24px)); display: flex; flex-direction: column; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--sh-3); overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { .agent:not([hidden]) { animation: slide-in .26s cubic-bezier(.2, .7, .2, 1); } @keyframes slide-in { from { transform: translateX(32px); opacity: 0; } } }
.agent-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 8px 24px; }
.agent-hd h2 { font-size: 22px; margin: 0; }
.x { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); cursor: pointer; }
.x:hover { background: var(--surface-3); }
.x .i { width: 18px; height: 18px; }
.agent-bd { flex: 1; overflow: auto; padding: 4px 24px 24px; overscroll-behavior: contain; display: grid; align-content: start; gap: 14px; }
.agent-bd .hint { margin: 0; color: var(--ink-2); font-size: 15px; }
.agent-bd .note-l { margin-top: 4px; }
#ins-text { min-height: 132px; font-size: 17px; }
.agent .ta-wrap.has-mic textarea { padding-right: 16px; }
.voice-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.voice-row:empty { display: none; }
.mic-big { position: static; width: auto; height: 56px; padding: 0 22px 0 8px; gap: 10px; display: inline-flex; align-items: center; border-radius: 99px; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); font-weight: 600; font-size: 15px; }
.mic-big .i { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--ink); color: var(--bg); }
.mic-big.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line) !important; }
.mic-big.on .i { background: #e5484d; color: #fff; box-shadow: 0 0 0 calc(2px + var(--lv, 0) * 9px) rgba(229, 72, 77, .22); transition: box-shadow .08s linear; }
.voice-row .lang { flex-wrap: wrap; }
.row { display: grid; gap: 8px; }
.row select { width: 100%; height: 48px; padding: 0 40px 0 14px; border: 0; border-radius: var(--r-s); background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23736b70' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; appearance: none; -webkit-appearance: none; font-size: 15px; color: var(--ink); text-overflow: ellipsis; }
.row-btn { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sub { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 14px 0 0; }
.count:not(:empty) { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.ins-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ins { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: var(--r); background: var(--surface-2); }
.ins.has-shot { grid-template-columns: 64px minmax(0, 1fr); }
.ins-shot { width: 64px; height: 88px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--surface-3); box-shadow: var(--hair); }
.ins-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ins-b { min-width: 0; display: grid; gap: 6px; align-content: start; }
.ins-t { margin: 0; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.ctx { margin: 0; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.ctx a { font-weight: 600; text-underline-offset: 2px; }
.ins-m { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 12.5px; color: var(--muted); }
.ins-empty { color: var(--muted); font-size: 14px; padding: 4px 0; }
.ins-old summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 10px 0; color: var(--ink-2); }
.ins-old .ins { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.agent-ft { display: grid; gap: 8px; padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -1px 0 var(--line); }
.agent-ft .btn-p { width: 100%; }
@media (max-width: 599px) {
  .agent { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 24px 24px 0 0; }
  .agent::before { content: ""; position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 40px; height: 5px; border-radius: 99px; background: var(--surface-3); }
  .agent-hd { padding: 22px 16px 6px 20px; }
  .agent-bd { padding: 4px 20px 20px; }
  .agent-ft { padding-left: 20px; padding-right: 20px; }
  @media (prefers-reduced-motion: no-preference) { .agent:not([hidden]) { animation: sheet-up .3s cubic-bezier(.2, .7, .2, 1); } @keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } } }
}

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(10, 8, 9, .92); display: grid; place-items: center; padding: 56px 72px 40px; }
.lb figure { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: 100%; max-height: 100%; }
.lb img { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); border-radius: 14px; background: #fff; }
.lb figcaption { color: #ece6ea; font-size: 15px; text-align: center; }
.lb-x { position: absolute; top: 14px; right: 14px; background: rgba(255, 255, 255, .14); color: #fff; }
.lb-x:hover { background: rgba(255, 255, 255, .24); }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.lb-nav:hover { background: rgba(255, 255, 255, .24); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-n { position: absolute; top: 22px; left: 0; right: 0; margin: 0; text-align: center; color: #cfc6cb; font-size: 14px; pointer-events: none; }
.lb :focus-visible { outline-color: #fff; }
@media (max-width: 599px) { .lb { padding: 64px 12px 72px; } .lb-nav { top: auto; bottom: 14px; translate: none; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1099px) {
  .home-cols { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .rhead { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .focus { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
}
@media (max-width: 899px) {
  body { font-size: 16px; }
  .page { padding-top: 20px; }
  .hero { grid-template-columns: minmax(0, 1fr); margin-bottom: 44px; }
  .hero-media { min-height: 300px; } .mosaic { padding: 20px; } .mosaic > span { border-radius: 16px; } .mosaic > span + span { margin-left: -36px; }
  .hero-b { padding: 24px 20px 24px; gap: 14px; }
  .acts .btn-p, .acts .btn-s { flex: 1 1 100%; }
  .rhead { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 24px; }
  .rhead-side { box-shadow: none; padding: 0; background: none; border-radius: 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--side)) 20px; padding: 2px var(--side); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .tiles { --gap: 20px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); column-gap: 12px; }
  .tile .badge { top: 8px; left: 8px; }
  .tile .badge .chip { height: 24px; font-size: 12px; padding: 0 8px; }
  .tile-t { font-size: 14px; }

  .subbar-in { grid-template-columns: auto 1fr auto; padding: 8px var(--side); gap: 8px; }
  .subbar .crumb span { display: none; }
  .subbar .crumb { padding: 8px; }
  .pos { justify-self: center; }
  #pp { display: none; }
  .ib { width: 36px; height: 36px; }
  .focus { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 4px; padding-bottom: 32px; }
  .compare { margin-bottom: 24px; }
  .switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 99px; background: var(--surface-2); }
  .switch button { min-height: 40px; border: 0; border-radius: 99px; background: none; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; }
  .switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
  .panes { grid-template-columns: minmax(0, 1fr); }
  .compare.show-after .pane[data-kind="before"], .compare.show-before .pane[data-kind="after"] { display: none; }
  .pane-h { display: none; }
  .stage { height: min(54vh, 480px); min-height: 320px; }
  .stage-img { padding: 16px; }
  .stage-zoom { opacity: 1; width: 32px; height: 32px; right: 10px; bottom: 10px; }
  .st-nav { width: 32px; height: 32px; }
  .ticks li { font-size: 16px; }
  .team-inline { display: block; margin-top: 8px; }

  .dec { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 25; max-height: 70vh; gap: 10px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); border-radius: 22px 22px 0 0; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 -1px 0 var(--line), 0 -10px 30px rgba(0, 0, 0, .06); }
  .dec-h, .dec .team-side, .keys, .add-note { display: none; }
  .dseg { border-radius: 16px; }
  .dseg button { flex-direction: row; min-height: 46px; gap: 6px; font-size: 14px; border-radius: 12px; }
  .dseg button .i { width: 18px; height: 18px; }
  .note-box { gap: 6px; }
  .note-l { font-size: 13px; }
  .note-box textarea { min-height: 72px; font-size: 16px; }
  .save-msg:not(.bad) { display: none; }
  .dec-go { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; }
  .dec-go .btn-p { order: 0; grid-column: 2; min-height: 48px; }
  .dec-go .btn-t { grid-column: 1; grid-row: 1; padding: 0 6px; font-size: 14px; white-space: normal; line-height: 1.25; text-align: left; max-width: 150px; }
  .dec-go .btn-t[hidden] + .btn-p, .dec-go .btn-t[hidden] ~ .btn-p { grid-column: 1 / -1; }
}
@media (max-width: 380px) { .dseg button .i { display: none; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .top, .strip, .fab, .bar, .dec, .subbar { display: none !important; } }

/* ---------- Top navigation ---------- */
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 99px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
@media (max-width: 760px) { .nav a { padding: 0 9px; font-size: 13.5px; } .nav-demo { display: none !important; } }
@media (max-width: 480px) { .nav a[href="#/connect"] { display: none; } }

/* ---------- Gate form ---------- */
.gate-f { display: grid; gap: 10px; margin: 24px 0 0; }
.gate-f input { width: 100%; min-height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 16px; font: inherit; font-size: 16px; box-shadow: inset 0 0 0 1px transparent; }
.gate-f input:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.gate-f .btn-p { width: 100%; }
.gate-msg { min-height: 1.2em; font-size: 14px; color: #c1272d; }
.gate-in p.gate-more { margin-top: 4px; font-size: 14px; }
.gate-more a { color: var(--ink); font-weight: 600; }

/* ---------- Guide and Connect ---------- */
.guide h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -.03em; margin: 6px 0 14px; }
.g-kick { margin: 8px 0 0; color: var(--pink); font-weight: 700; font-size: 14px; }
.g-lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); margin: 0 0 28px; max-width: 64ch; }
.g-loop { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: g; }
.g-loop li { position: relative; padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); counter-increment: g; }
.g-loop li::before { content: counter(g); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pink); color: var(--on-pink); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.g-loop b { display: block; font-size: 16px; }
.g-loop span { color: var(--muted); font-size: 14px; }
@media (max-width: 599px) { .g-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-step { display: grid; gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.g-txt { min-width: 0; }
.g-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--surface); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.g-step h2 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 8px; }
.g-step p, .g-step li { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.g-step p { margin: 0 0 10px; }
.g-step b { color: var(--ink); }
.g-step a { color: var(--ink); font-weight: 600; }
.guide code { font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.g-fig { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); background: var(--surface-2); }
.g-fig img { display: block; width: 100%; height: auto; }
.g-note { background: var(--surface); border-radius: 20px; padding: 24px; border: 0; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); margin-top: 12px; }
.c-key { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); margin: 0 0 12px; }
.c-key b { display: block; font-size: 16px; }
.c-key span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.c-key .btn-s { flex: none; min-height: 42px; }
@media (max-width: 599px) { .c-key { flex-direction: column; align-items: stretch; } }
.c-block { margin: 16px 0; }
.c-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.c-hd b { font-size: 15px; }
.c-hd .btn-s { min-height: 36px; padding: 0 16px; font-size: 14px; }
.c-note { font-size: 14px !important; color: var(--muted) !important; }
.guide pre { margin: 0 0 10px; padding: 14px 16px; border-radius: 14px; background: #1c191b; color: #f5f1f3; overflow-x: auto; font-size: 13.5px; line-height: 1.55; }
.guide pre code { background: none; padding: 0; color: inherit; white-space: pre; overflow-wrap: normal; }
.c-ex { margin: 0 0 12px; padding-left: 20px; }
.c-ex li { margin-bottom: 6px; }
.c-tools { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 16px; margin: 8px 0 0; }
.c-tools dt { margin: 0; }
.c-tools dd { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 599px) { .c-tools { grid-template-columns: 1fr; gap: 2px; } .c-tools dd { margin-bottom: 10px; } }

.g-fig.g-phone { max-width: 340px; }
@media (min-width: 900px) { .g-step:has(.g-phone) { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 32px; } .g-fig.g-phone { max-width: none; } }
body[data-view="guide"] .app, body[data-view="connect"] .app, body[data-view="card"] .page { padding-bottom: 120px; }

/* Connect: one-click apps */
.c-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 0 0 28px; }
.c-app { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); min-width: 0; }
.c-app p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; flex: 1; }
.c-app-hd { display: flex; align-items: center; gap: 12px; }
.c-app-hd b { display: block; font-size: 17px; }
.c-app-hd small { display: block; color: var(--muted); font-size: 13px; }
.c-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--ink); flex: none; }
.c-btn { width: 100%; }
.c-copyrow { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.c-copyrow code { flex: 1; min-width: 0; background: none !important; padding: 0 !important; font-size: 12.5px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-copyrow .btn-s { min-height: 36px; padding: 0 14px; font-size: 14px; flex: none; }
.c-conns { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.c-conns li { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.c-conns li > div { flex: 1; min-width: 0; }
.c-conns b { display: block; }
.c-conns small { color: var(--muted); font-size: 13px; }
.c-conns .btn-s { min-height: 38px; padding: 0 16px; font-size: 14px; }
.c-dot { width: 10px; height: 10px; border-radius: 50%; background: #14804a; flex: none; }
.c-none { color: var(--muted) !important; }
.c-more summary { cursor: pointer; font-weight: 700; font-size: 18px; }

.gate-in .gate-f { margin-top: 24px; }
.me-b { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 8px 4px 4px; border-radius: 99px; font: inherit; color: inherit; cursor: pointer; }
.me-b:hover { background: var(--surface-2); }

/* ---------- The three steps: Feedback, Proposals, Next version ---------- */
.steps3 { list-style: none; margin: -12px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: s3; }
.s3 > a, .s3 > .s3-a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); color: var(--ink); text-decoration: none; }
.s3 > a:hover { background: var(--surface-3); }
.s3-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.s3.on .s3-n { background: var(--ink); color: var(--bg); box-shadow: none; }
.s3.here > .s3-a { background: var(--pink-soft); }
.s3.here .s3-n { background: var(--pink); color: var(--on-pink); }
.s3-b { min-width: 0; display: grid; gap: 2px; }
.s3-b b { font-size: 15px; }
.s3-b span { font-size: 13px; color: var(--ink-2); }
@media (max-width: 640px) {
  .steps3 { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .s3 > a, .s3 > .s3-a { padding: 10px 14px; }
}

/* ---------- Feedback page ---------- */
.fb-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.fb-side { position: sticky; top: 88px; }
.fb-card { padding: 20px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); display: grid; gap: 12px; }
.fb-card .btn-p { width: 100%; }
.fb-big { margin: 0; font-size: 17px; }
.fb-big b { font-size: 28px; letter-spacing: -.02em; margin-right: 4px; }
.sec-sub { margin: -12px 0 14px; color: var(--muted); font-size: 14px; }
.fbp .sec { margin-bottom: 36px; }
.fbp .sec h2 { display: flex; align-items: center; gap: 10px; }
.ins.fb { background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.ins.fb.has-shot { grid-template-columns: 88px minmax(0, 1fr); }
.ins.fb .ins-shot { width: 88px; height: 120px; }
.ins.fb .ins-t { font-size: 16px; }
.ins.parked { opacity: .72; }
.fb-acts { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 2px; }
.fb-acts .btn-t { min-height: 36px; padding: 0 12px; font-size: 14px; }
.fb-acts .btn-s { min-height: 40px; padding: 0 18px; font-size: 15px; }
.fb-acts .btn-t .i { width: 16px; height: 16px; }
.fb-st { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.fb-st a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.fb-st .i { width: 16px; height: 16px; }
.fb-ta { width: 100%; }
.ctx .dev { margin-left: 8px; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); font-size: 12px; color: var(--muted); white-space: nowrap; display: inline-block; }
.ins-t .chip { height: 22px; font-size: 12px; padding: 0 8px; vertical-align: 2px; margin-right: 4px; }
.chip.k-bug { background: #fdecec; color: #a3242a; }
.chip.k-idea { background: #eef1fd; color: #3048b0; }
.chip.k-love-it { background: var(--pink-soft); color: var(--pink-h); }
.fb-old > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.fb-old > summary::-webkit-details-marker { display: none; }
.fb-old > summary h2 { margin: 0 0 4px; }
.fb-old > summary .chev { width: 22px; height: 22px; transition: transform .2s; }
.fb-old[open] > summary .chev { transform: rotate(180deg); }
.fb-old[open] > summary { margin-bottom: 16px; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.nav-n { min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--pink); color: var(--on-pink); font-size: 11px; font-weight: 700; }
.nav-n[hidden] { display: none; }
.try-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.try-row .btn-s { min-height: 42px; padding: 0 18px; font-size: 15px; }
.try .i { width: 16px; height: 16px; }
.rhead-side .try-row .btn-s { width: 100%; }
@media (max-width: 899px) {
  .fb-cols { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fb-side { display: none; }
  .fbp { padding-bottom: 120px; }
}
@media (max-width: 480px) {
  .ins.fb.has-shot { grid-template-columns: 64px minmax(0, 1fr); }
  .ins.fb .ins-shot { width: 64px; height: 88px; }
  .nav a[href="#/guide"] { display: none; }
}

.fb-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 20px; }
.fb-h h2 { margin: 0 !important; }
.fb-add { min-height: 40px; padding: 0 16px; font-size: 14px; }
.fb-add .i { width: 16px; height: 16px; }
body[data-view="feedback"] .fab { display: none !important; }

@media (max-width: 560px) {
  /* The language switch also sits next to every microphone; the top bar keeps room for the Feedback link. */
  #lang-top { display: none !important; }
  .fb-add-l { display: none; }
}
