/* Eco design system. Apple rules, Stitch mood: quiet surfaces, one red accent for "live". */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --card: #ffffff;
  --card-2: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.14);
  --glass: rgba(255, 255, 255, 0.72);
  --red: #ed1c24;
  --red-soft: rgba(237, 28, 36, 0.1);
  --ok: #248a3d;
  --warn: #b25000;
  --invert-bg: #1d1d1f;
  --invert-ink: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, "Helvetica Neue", "Noto Sans Devanagari", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-2: #0e0e10;
    --card: #161618;
    --card-2: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #d2d2d7;
    --muted: #8e8e93;
    --faint: #636366;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --glass: rgba(22, 22, 24, 0.72);
    --red-soft: rgba(237, 28, 36, 0.18);
    --ok: #30d158;
    --warn: #ff9f0a;
    --invert-bg: #f5f5f7;
    --invert-ink: #000000;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #0e0e10;
  --card: #161618;
  --card-2: #1c1c1e;
  --ink: #f5f5f7;
  --ink-2: #d2d2d7;
  --muted: #8e8e93;
  --faint: #636366;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(22, 22, 24, 0.72);
  --red-soft: rgba(237, 28, 36, 0.18);
  --ok: #30d158;
  --warn: #ff9f0a;
  --invert-bg: #f5f5f7;
  --invert-ink: #000000;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.47 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
svg.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
[hidden] { display: none !important; }
::selection { background: var(--red-soft); }

/* ---------- layout ---------- */
.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(640px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.row { display: flex; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); letter-spacing: 0; font-size: 0.82em; }
.small { font-size: 14px; letter-spacing: -0.01em; }
.tiny { font-size: 12px; letter-spacing: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 40;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.bar > .inner { height: 52px; display: flex; align-items: center; gap: 12px; padding-inline: var(--gutter); max-width: 1880px; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 19px; letter-spacing: -0.03em; text-decoration: none; }
.brand::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.bar .title { font-weight: 600; font-size: 15px; }

/* ---------- pills & chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card-2);
  font-size: 12px; font-weight: 600; letter-spacing: 0; white-space: nowrap; color: var(--ink-2);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.pill.live .dot, .dot.live { background: var(--red); animation: pulse 2s infinite; }
.pill.live { color: var(--ink); }
.pill.mock .dot { background: var(--warn); }
.pill.replay .dot { background: var(--muted); }
.pill.ok .dot { background: var(--ok); }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 8px;
  background: var(--card-2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--ink-2);
}
.chip.red { background: var(--red); border-color: var(--red); color: #fff; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(237, 28, 36, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(237, 28, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(237, 28, 36, 0); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, opacity 0.2s; user-select: none;
}
.btn:hover { background: var(--card-2); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.btn.primary { background: var(--invert-bg); color: var(--invert-ink); border-color: transparent; }
.btn.primary:hover { opacity: 0.88; }
.btn.red { background: var(--red); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--card-2); }
.btn.big { height: 56px; font-size: 17px; padding: 0 28px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; }
.icon-btn { width: 36px; height: 36px; padding: 0; border-radius: 50%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); outline-offset: 2px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card.inset { background: var(--card-2); border-radius: var(--radius-sm); padding: 16px; }
.card.lift { box-shadow: var(--shadow); }
.card h2 { font-size: 22px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 16px 0; }

/* ---------- forms ---------- */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
label.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type="text"], input[type="search"], textarea, select {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--card); font-size: 16px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
input:focus, textarea:focus, select:focus { border-color: var(--ink-2); box-shadow: 0 0 0 4px var(--line); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; height: 34px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

.drop {
  border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 28px; text-align: center;
  color: var(--muted); cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.drop:hover, .drop.over { border-color: var(--ink-2); background: var(--card-2); }

.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--card-2); border: 1px solid var(--line); font-size: 14px; }
.banner.warn { background: color-mix(in srgb, var(--warn) 12%, var(--card)); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.banner.red { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 30%, transparent); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0;
  background: var(--invert-bg); color: var(--invert-ink); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: all 0.35s var(--ease); z-index: 100; pointer-events: none; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- QR ---------- */
.qr { background: #fff; border-radius: 18px; padding: 14px; display: inline-flex; line-height: 0; }
.qr svg { width: 100%; height: auto; display: block; }
.url { font-family: var(--mono); font-weight: 600; letter-spacing: 0; }

/* ---------- captions (stepped fade from the Stitch Audience Room) ---------- */
.captions { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 40vh; }
.captions > p { color: var(--faint); font-size: 15px; transition: all 0.5s var(--ease); }
.captions > p:nth-last-child(5) { opacity: 0.35; font-size: 14px; }
.captions > p:nth-last-child(4) { opacity: 0.5; }
.captions > p:nth-last-child(3) { opacity: 0.7; font-size: 16px; }
.captions > p:nth-last-child(2) { color: var(--muted); font-size: 17px; }
.captions > p:last-child { color: var(--ink); font-size: clamp(24px, 6.4vw, 34px); line-height: 1.25; font-weight: 600; letter-spacing: -0.025em; }
.captions > p.new { animation: rise 0.6s var(--ease); }
.captions .flag { font-size: 12px; color: var(--muted); font-weight: 500; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- hold to talk ---------- */
.hold {
  --level: 0;
  position: relative; width: 112px; height: 112px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--red); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(237, 28, 36, 0.35); touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform 0.25s var(--ease);
}
.hold svg { width: 40px; height: 40px; }
.hold::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--red);
  opacity: 0; transform: scale(calc(1 + var(--level) * 0.35)); transition: transform 0.08s linear, opacity 0.2s;
}
.hold.on { transform: scale(1.06); }
.hold.on::before { opacity: 0.45; }
.hold.busy { opacity: 0.6; }
.hold.sm { width: 84px; height: 84px; }
.hold.sm svg { width: 28px; height: 28px; }
.hold-label { font-size: 13px; color: var(--muted); font-weight: 500; text-align: center; }

/* ---------- conversation bubbles ---------- */
.thread { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 20px; background: var(--card-2); animation: rise 0.45s var(--ease); }
.bubble.me { align-self: flex-end; background: var(--invert-bg); color: var(--invert-ink); border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.eco { align-self: flex-start; background: var(--card); border: 1px solid var(--line-2); border-bottom-left-radius: 6px; }
.bubble .orig { font-size: 13px; opacity: 0.6; margin-top: 4px; }
.bubble .who { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.6; margin-bottom: 2px; }
.bubble.pending { opacity: 0.55; }

/* ---------- sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; background: rgba(0, 0, 0, 0.35); animation: fade 0.3s; }
.sheet {
  background: var(--bg); border-radius: 28px 28px 0 0; padding: 28px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  width: min(560px, 100%); margin-inline: auto; animation: up 0.5s var(--ease);
}
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 28px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- small data viz ---------- */
.meter { height: 6px; border-radius: 3px; background: var(--card-2); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width 0.6s var(--ease); }
.stat { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; }
.kv + .kv { border-top: 1px solid var(--line); }

.empty { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media print {
  .bar, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ======================= pages ======================= */

/* home */
.hero { padding: clamp(56px, 12vw, 120px) 0 56px; text-align: center; }
.hero h1 { font-size: clamp(34px, 6.2vw, 68px); letter-spacing: -0.045em; line-height: 1.04; max-width: 15ch; margin: 22px auto 0; text-wrap: balance; }
.hero .sub { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 40ch; margin: 22px auto 0; text-wrap: balance; }
.room-card { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--radius-lg); }
.room-card h2 { font-size: 30px; }
.room-card .preview { border-radius: 18px; background: var(--card-2); border: 1px solid var(--line); padding: 18px; min-height: 196px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.room-card .preview .l1 { color: var(--faint); font-size: 14px; }
.room-card .preview .l2 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 14px; color: var(--ink-2); }
.ticks li { display: flex; gap: 8px; align-items: flex-start; }
.ticks svg { color: var(--red); margin-top: 2px; }
.section { padding: 64px 0; }
.section h2.big { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.04em; }
.step-n { width: 28px; height: 28px; border-radius: 50%; background: var(--invert-bg); color: var(--invert-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); }
.quote { font-size: clamp(18px, 2.4vw, 24px); font-style: italic; color: var(--ink-2); max-width: 38ch; margin: 0 auto; text-wrap: balance; }

/* forms pages */
.page-head { padding: 48px 0 24px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.04em; }
.form-section { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.form-section > header h2 { font-size: 19px; }
.form-section > header p { color: var(--muted); font-size: 14px; margin-top: 6px; }
@media (max-width: 760px) { .form-section { grid-template-columns: 1fr; gap: 14px; } }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.thumbs > div { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--card-2); aspect-ratio: 16/9; display: grid; place-items: center; }
.thumbs canvas { display: block; }
.lang-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.toggle[aria-pressed="true"] { background: var(--invert-bg); color: var(--invert-ink); border-color: transparent; }
.toggle:disabled { opacity: 0.4; cursor: default; }
.option { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); cursor: pointer; }
.option[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.option[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.option .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; margin-top: 2px; }
.option[aria-checked="true"] .radio { border: 6px solid var(--ink); }
.source { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--card); }
.source textarea { min-height: 110px; font-size: 15px; }
.ready { text-align: center; padding: 40px 0 80px; }
.ready .qr { width: min(280px, 70vw); }

/* presenter */
.console { display: grid; grid-template-columns: 300px minmax(0, 1fr) 360px; gap: 20px; padding: 20px; max-width: 1880px; margin: 0 auto; align-items: start; }
@media (max-width: 1180px) { .console { grid-template-columns: minmax(0, 1fr) 340px; } .console > .col-left { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
@media (max-width: 800px) { .console { grid-template-columns: 1fr; padding: 12px; } }
.console .card { padding: 18px; }
.col-left, .col-mid, .col-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.slide-frame { border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16/9; display: grid; place-items: center; border: 1px solid var(--line); }
.slide-frame > * { width: 100%; }
.slide-next { opacity: 0.6; }
.mic-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--card-2); cursor: pointer; text-align: left; }
.mic-btn .ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); }
.mic-btn.on .ico { background: var(--red); color: #fff; border-color: transparent; animation: pulse 2s infinite; }
.level { height: 4px; border-radius: 2px; background: var(--card-2); overflow: hidden; }
.level > i { display: block; height: 100%; width: 0; background: var(--red); transition: width 0.08s linear; }
.said { display: flex; flex-direction: column; gap: 14px; }
.said .now { font-size: clamp(24px, 2.6vw, 36px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.18; animation: rise 0.5s var(--ease); }
.said .past { color: var(--muted); font-size: 16px; }
.tr { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 17px; }
.tr .chip { justify-content: center; }
.topic { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.topic .n { font-size: 26px; font-weight: 700; letter-spacing: -0.04em; text-align: right; line-height: 1; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 64px; }
.bars > div { flex: 1; background: var(--card-2); border-radius: 4px 4px 0 0; position: relative; min-height: 3px; }
.bars > div.hot { background: var(--red); }
.bars > div.cur { outline: 2px solid var(--ink); outline-offset: 1px; }
.q-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.q-item.done { opacity: 0.45; }

/* text slides (no PDF on this device) */
.tslide { aspect-ratio: 16/9; width: 100%; background: radial-gradient(120% 120% at 0% 0%, #1c1c1e 0%, #000 60%); color: #f5f5f7; padding: 7% 8%; display: flex; flex-direction: column; justify-content: center; gap: 3%; position: relative; container-type: inline-size; }
.tslide h2 { font-size: 6.4cqw; letter-spacing: -0.04em; line-height: 1.05; }
.tslide p { font-size: 2.6cqw; color: #a1a1a6; line-height: 1.4; max-width: 46ch; }
.tslide-n { position: absolute; top: 5%; left: 8%; font-size: 1.6cqw; color: #636366; font-weight: 600; }
.tslide::after { content: ""; position: absolute; top: 5.6%; right: 8%; width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: var(--red); }

/* projector */
.screen { position: fixed; inset: 0; background: #000; color: #f5f5f7; display: grid; place-items: center; overflow: hidden; }
.screen .stage { width: min(100vw, 177.78vh); aspect-ratio: 16/9; position: relative; display: grid; place-items: center; }
.screen .stage > .slot { width: 100%; height: 100%; display: grid; place-items: center; }
.screen .stage canvas, .screen .stage .tslide { width: 100% !important; height: auto; }
.screen .corner { position: absolute; right: 2.2%; bottom: 3%; background: rgba(22, 22, 24, 0.86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; width: clamp(130px, 13vw, 220px); border: 1px solid rgba(255, 255, 255, 0.1); }
.screen .corner .qr { padding: 8px; border-radius: 10px; width: 100%; }
.screen .corner .url { font-size: clamp(10px, 0.95vw, 15px); color: #f5f5f7; }
.screen .cap { position: absolute; left: 4%; right: calc(4% + clamp(130px, 13vw, 220px) + 2%); bottom: 4%; font-size: clamp(18px, 2.3vw, 40px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9); }
.screen .cap .chip { background: rgba(255, 255, 255, 0.14); color: #fff; border: 0; margin-right: 10px; vertical-align: 0.3em; }
.lobby { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2.4vh; }
.lobby h1 { font-size: clamp(28px, 4.2vw, 72px); letter-spacing: -0.045em; max-width: 22ch; }
.lobby .qr { width: min(46vh, 60vw); padding: 2.2vh; border-radius: 3vh; }
.lobby .url { font-size: clamp(20px, 2.6vw, 44px); }
.screen .fs { position: fixed; top: 16px; right: 16px; opacity: 0; transition: opacity 0.3s; }
.screen:hover .fs { opacity: 1; }

/* listener + customer (phones) */
.phone { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); }
.status-row { display: flex; align-items: center; gap: 8px; padding: 14px 0 6px; }
.ask-box { display: flex; gap: 8px; padding: 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); align-items: center; }
.ask-box input { border: 0; background: transparent; min-height: 40px; padding: 0 12px; box-shadow: none !important; }
.send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.send:disabled { opacity: 0.35; }
.qa { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); animation: rise 0.45s var(--ease); }
.qa .q { font-weight: 600; }
.qa .a { font-size: 15px; color: var(--ink-2); }
.qa .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.composer { position: sticky; bottom: 0; background: linear-gradient(to top, var(--bg) 70%, transparent); padding: 18px 0 calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.composer .ask-box { width: 100%; }
.lang-select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card-2); height: 32px; min-height: 32px; padding: 0 12px; font-size: 13px; font-weight: 600; width: auto; }

/* owner counter */
.owner { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100dvh - 53px - env(safe-area-inset-top)); }
@media (max-width: 820px) { .owner { grid-template-columns: 1fr; height: auto; } }
.owner aside { border-right: 1px solid var(--line); overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.convo-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; cursor: pointer; border: 1px solid transparent; text-align: left; background: transparent; width: 100%; }
.convo-item:hover { background: var(--card-2); }
.convo-item[aria-current="true"] { background: var(--card-2); border-color: var(--line-2); }
.convo-item .top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.convo-item .last { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.needs { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.owner main { display: flex; flex-direction: column; min-height: 0; }
.owner .thread-wrap { flex: 1; overflow-y: auto; padding: 24px clamp(16px, 4vw, 48px); }
.owner .bubble { font-size: 19px; }
.owner .reply { border-top: 1px solid var(--line); padding: 16px clamp(16px, 4vw, 48px) calc(16px + env(safe-area-inset-bottom)); display: flex; gap: 16px; align-items: center; }

/* face to face */
.f2f { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-rows: 1fr 1fr; background: var(--bg); }
.f2f .half { display: flex; flex-direction: column; gap: 16px; padding: 24px; min-height: 0; }
.f2f .half.them { transform: rotate(180deg); border-bottom: 1px solid var(--line); }
.f2f .half .said-big { flex: 1; overflow-y: auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.f2f .half .said-big p { font-size: clamp(22px, 3.4vw, 34px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; animation: rise 0.45s var(--ease); }
.f2f .half .said-big p.dim { font-size: 17px; color: var(--muted); font-weight: 500; }
.f2f .controls { display: flex; align-items: center; gap: 16px; }

/* cards (post-talk / weekly) */
.report { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.report h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.045em; }
.report .big-num { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 28px 0; }
.report .big-num .card { padding: 18px; }

/* sticker */
.sticker { width: min(420px, 100%); margin: 40px auto; border-radius: 32px; padding: 32px 28px; background: #fff; color: #1d1d1f; text-align: center; box-shadow: var(--shadow); border: 1px solid rgba(0, 0, 0, 0.08); }
.sticker .qr { width: 78%; padding: 0; margin: 18px 0; }
.sticker .langs { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: #424245; }
.sticker .langs b { font-size: 22px; color: #1d1d1f; letter-spacing: -0.03em; }
@media print { .sticker { box-shadow: none; margin: 0 auto; border: 1px solid #ddd; } }
