/* Doppl lobby — the product's own block language, ported 1:1.
 *
 * Tokens mirror web/src/index.css: paper canvas, white block cards on a hard
 * ink-slab shadow (no blur — press a control and it sits DOWN onto its
 * shadow), 6px radius ("blocks, not pebbles"), and the app's three-step
 * motion scale. People wear circles, machines wear squares — same grammar
 * as the app's roster and composer audience strip. */

:root {
  /* palette — lifted from the app */
  --background: #f2f2ec;
  --card: #ffffff;
  --ink: #11120f;
  --muted: #11120f0d;
  --muted-foreground: #5e6259;
  --border: #dfe2da;
  --border-strong: #c8ccc2;
  --brand-accent: #6f52d9;
  --brand-accent-on: #ffffff;
  --status-green: #36a474;
  --status-blue: #536bff;
  --status-yellow: #d4972a;
  --status-red: #f17462;
  --success: #207a55;
  --chart-1: #536bff;
  --chart-2: #9367ed;
  --chart-3: #36a474;
  --chart-4: #d4972a;
  --chart-5: #f17462;

  /* block geometry — crisp, not soft */
  --radius: 6px;
  --block-ink: rgba(17, 18, 15, 0.16);
  --shadow-block: 0 3px 0 var(--block-ink);
  --shadow-block-lg: 0 4px 0 var(--block-ink);

  /* motion scale — instant / quick / settle, same easings as the app */
  --motion-instant: 90ms;
  --motion-quick: 160ms;
  --motion-settle: 260ms;
  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-glide: cubic-bezier(0.3, 1.18, 0.4, 1);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(ellipse 90% 60% at 85% -10%, rgba(111, 82, 217, 0.07), transparent 60%),
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(83, 107, 255, 0.05), transparent 55%),
    var(--background);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── entrances ─────────────────────────────────────────────────────────── */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes message-in {
  from { opacity: 0; transform: translateY(6px) scale(0.99); }
  to   { opacity: 1; transform: none; }
}
@keyframes status-pop {
  from { transform: scale(0.4); }
  to   { transform: scale(1); }
}
@keyframes live-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(54, 164, 116, 0.45); }
  60%      { box-shadow: 0 0 0 5px rgba(54, 164, 116, 0); }
}
@keyframes spark-turn {
  from { transform: rotate(0deg); }
  to   { transform: rotate(90deg); }
}
@keyframes ghost-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

.rise { animation: rise-in var(--motion-settle) var(--ease-settle) both; animation-delay: var(--d, 0ms); }

/* ── header ────────────────────────────────────────────────────────────── */

.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

/* the mark: two overlapping blocks sharing a lens — two entities, one space */
.wordmark-mark { display: inline-flex; }
.wordmark-mark span {
  width: 13px; height: 13px;
  border-radius: 4px;
  background: var(--ink);
  display: inline-block;
}
.wordmark-mark span + span {
  margin-left: -5px;
  background: var(--brand-accent);
  mix-blend-mode: multiply;
  transition: transform var(--motion-quick) var(--ease-spring);
}
.wordmark:hover .wordmark-mark span + span { transform: translateX(3px); }

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

.nav-link {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color var(--motion-instant) linear;
}
.nav-link:hover { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-block);
  transition: transform var(--motion-instant) linear, box-shadow var(--motion-instant) linear;
}
.nav-cta:hover { background: #26271f; }
.nav-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--block-ink); }

/* ── hero ──────────────────────────────────────────────────────────────── */

.demo-shell { max-width: 1200px; margin: 0 auto; padding: 0 24px 64px; }

.hero { padding: 28px 0 20px; max-width: 640px; }

.hero h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  font-weight: 800;
}

.hero-sub {
  color: var(--muted-foreground);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0;
}

/* ── app frame ─────────────────────────────────────────────────────────── */

.app-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 18px;
  align-items: start;
}

.block-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-block-lg);
}

/* ── room card ─────────────────────────────────────────────────────────── */

.room { display: flex; flex-direction: column; overflow: hidden; }

.room-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), rgba(255,255,255,0)),
    var(--card);
}

.room-glyph {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand-accent);
  color: var(--brand-accent-on);
  box-shadow: 0 2px 0 var(--block-ink);
}
.room-glyph svg { width: 20px; height: 20px; fill: currentColor; }

.room-title-block { min-width: 0; flex: 1; }

.room-head h2 {
  font-size: 16.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}

.room-cast {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--muted-foreground);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 2px 0 var(--block-ink);
  padding: 2.5px 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  transition: transform var(--motion-instant) linear, box-shadow var(--motion-instant) linear,
    border-color var(--motion-quick) linear;
}
.agent-badge:hover { border-color: var(--border-strong); }
.agent-badge:active { transform: translateY(2px); box-shadow: none; }
.agent-badge .status-dot {
  width: 7px; height: 7px;
  border-radius: 2px;                 /* machines wear squares */
  background: var(--status-green);
  animation: status-pop var(--motion-quick) var(--ease-spring) both;
}
.agent-badge[data-status="working"] .status-dot { background: var(--status-yellow); }
.agent-badge .status-word { color: var(--muted-foreground); font-weight: 500; }
.agent-badge[data-status="working"] .status-word { color: var(--status-yellow); }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 10px;
  background: var(--card);
  white-space: nowrap;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--status-yellow);
}
.live-pill[data-state="live"] .live-dot {
  background: var(--status-green);
  animation: live-breathe 2.4s ease-out infinite;
}
.live-pill[data-state="live"] { color: var(--success); border-color: color-mix(in srgb, var(--status-green) 35%, var(--border)); }
.live-pill[data-state="down"] .live-dot { background: var(--status-red); }

/* ── greeting ──────────────────────────────────────────────────────────── */

.greeting {
  margin: 14px 16px 0;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 28%, var(--border));
  background: color-mix(in srgb, var(--brand-accent) 6%, var(--card));
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  animation: rise-in var(--motion-settle) var(--ease-glide) both;
}
.greeting p { margin: 0 0 8px; }
.greeting-hi { font-weight: 750; font-size: 15px; }
.greeting code {
  font-family: var(--font-mono);
  background: var(--muted);
  border-radius: 4px;
  padding: 1px 5px;
}
.greeting-go {
  margin-top: 2px;
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
  padding: 7px 14px;
  cursor: pointer;
  box-shadow: var(--shadow-block);
  transition: transform var(--motion-instant) linear, box-shadow var(--motion-instant) linear;
}
.greeting-go:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--block-ink); }

/* ── transcript ────────────────────────────────────────────────────────── */

.transcript {
  height: min(52vh, 560px);
  overflow-y: auto;
  padding: 14px 16px 6px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.transcript-empty { color: var(--muted-foreground); font-size: 14px; }

.msg {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  animation: message-in var(--motion-settle) var(--ease-settle) both;
  animation-delay: var(--d, 0ms);
}

.msg-avatar {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;                  /* people wear circles */
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 0 var(--block-ink);
}
.msg-avatar.is-agent {
  border-radius: var(--radius);        /* machines wear squares */
  background: var(--brand-accent);
}
.msg-avatar.is-agent svg { width: 20px; height: 20px; fill: #fff; }
.msg:hover .msg-avatar.is-agent .glyph-eye { transform: scaleY(0.15); }
.glyph-eye { transform-origin: center; transition: transform var(--motion-quick) var(--ease-spring); }

.msg-body { min-width: 0; flex: 1; }

.msg-meta {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 12.5px;
}
.msg-name { font-weight: 750; }
.msg-name.agent { color: var(--brand-accent); }
.msg-kind {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-accent);
  background: color-mix(in srgb, var(--brand-accent) 10%, transparent);
  border-radius: 4px;
  padding: 1px 5px;
}
.msg-time { color: var(--muted-foreground); font-size: 11.5px; margin-left: auto; }

.msg-text {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.msg-replying-to {
  margin: 2px 0 2px;
  padding-left: 8px;
  border-left: 3px solid var(--border-strong);
  color: var(--muted-foreground);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-reactions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.msg-reactions:empty { display: none; }

.reaction-chip {
  font: inherit;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 2px 7px;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--block-ink);
  transition: transform var(--motion-instant) linear, box-shadow var(--motion-instant) linear,
    border-color var(--motion-quick) linear, background var(--motion-quick) linear;
}
.reaction-chip:active { transform: translateY(2px); box-shadow: none; }
.reaction-chip[data-mine="true"] {
  border-color: color-mix(in srgb, var(--brand-accent) 45%, var(--border));
  background: color-mix(in srgb, var(--brand-accent) 8%, var(--card));
}
.react-button {
  font: inherit;
  font-size: 12px;
  color: var(--muted-foreground);
  border: 1px dashed var(--border-strong);
  background: none;
  border-radius: var(--radius);
  padding: 2px 8px;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--motion-quick) linear, color var(--motion-quick) linear;
}
.msg:hover .react-button, .msg:focus-within .react-button { opacity: 1; }
@media (hover: none) { .react-button { opacity: 1; } }
.react-button:hover { color: var(--ink); }

.msg-actions {
  display: flex;
  gap: 10px;
  margin-top: 3px;
  opacity: 0;
  transition: opacity var(--motion-quick) linear;
}
.msg:hover .msg-actions, .msg:focus-within .msg-actions { opacity: 1; }
@media (hover: none) { .msg-actions { opacity: 1; } }

.msg-action {
  font: inherit;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--muted-foreground);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.msg-action:hover { color: var(--ink); }

.msg.ghost .msg-text { color: var(--muted-foreground); }
.msg.ghost .msg-avatar { animation: ghost-pulse 1.6s ease-in-out infinite; }

/* emoji picker */
.emoji-pop {
  position: absolute;
  z-index: 30;
  display: flex;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-block-lg);
  padding: 4px;
  animation: rise-in var(--motion-quick) var(--ease-glide) both;
}
.emoji-pop button {
  font-size: 16px;
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 4px 6px;
  cursor: pointer;
  transition: background var(--motion-instant) linear, transform var(--motion-instant) linear;
}
.emoji-pop button:hover { background: var(--muted); transform: scale(1.15); }

/* ── live turn + typing ────────────────────────────────────────────────── */

.live-turn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 30%, var(--border));
  background: color-mix(in srgb, var(--brand-accent) 6%, var(--card));
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-accent);
  animation: rise-in var(--motion-quick) var(--ease-glide) both;
}
.live-turn-spark { display: grid; place-items: center; }
.live-turn-spark svg {
  width: 15px; height: 15px;
  fill: var(--brand-accent);
  animation: spark-turn 1.2s var(--ease-spring) infinite alternate;
}

.typing-line {
  min-height: 16px;
  margin: 4px 16px 0;
  font-size: 12px;
  color: var(--muted-foreground);
}
.typing-line:empty { margin: 0; min-height: 0; }

/* ── reply banner ──────────────────────────────────────────────────────── */

.reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 16px 0;
  padding: 6px 10px;
  border-left: 3px solid var(--brand-accent);
  background: var(--muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 12.5px;
  color: var(--muted-foreground);
  animation: rise-in var(--motion-quick) var(--ease-settle) both;
}
.reply-banner button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted-foreground);
  padding: 0 2px;
}
.reply-banner button:hover { color: var(--ink); }

/* ── composer ──────────────────────────────────────────────────────────── */

.composer {
  display: flex;
  gap: 10px;
  padding: 12px 16px 4px;
}

.composer-input-wrap { position: relative; flex: 1; min-width: 0; }

.composer-input {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 11px 13px;
  outline: none;
  box-shadow: 0 2px 0 var(--block-ink);
  transition: border-color var(--motion-quick) linear, box-shadow var(--motion-quick) linear;
}
.composer-input::placeholder { color: var(--muted-foreground); }
.composer-input:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 2px 0 var(--block-ink), 0 0 0 3px color-mix(in srgb, var(--brand-accent) 22%, transparent);
}

.send-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  cursor: pointer;
  box-shadow: var(--shadow-block);
  transition: transform var(--motion-instant) linear, box-shadow var(--motion-instant) linear,
    background var(--motion-quick) linear;
}
.send-button:hover { background: #26271f; }
.send-button:hover .send-arrow { transform: translateX(2px); }
.send-button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--block-ink); }
.send-button:disabled { opacity: 0.55; cursor: default; }
.send-arrow {
  width: 15px; height: 15px;
  fill: currentColor;
  transition: transform var(--motion-quick) var(--ease-spring);
}

/* mention menu — a floating block, spring in like the app's popovers */
.mention-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-block-lg);
  padding: 4px;
  z-index: 20;
  animation: rise-in var(--motion-quick) var(--ease-glide) both;
}
.mention-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 7px 9px;
  cursor: pointer;
}
.mention-item:hover, .mention-item[aria-selected="true"] { background: var(--muted); }
.mention-item .mention-square {
  width: 22px; height: 22px;
  flex: none;
  border-radius: 5px;
  background: var(--brand-accent);
  display: grid;
  place-items: center;
}
.mention-item .mention-square svg { width: 14px; height: 14px; fill: #fff; }
.mention-item .mention-handle { font-weight: 700; }
.mention-item .mention-sub { color: var(--muted-foreground); font-size: 12px; margin-left: auto; }

/* ── composer foot: identity + audience ────────────────────────────────── */

.composer-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 0;
  min-height: 26px;
}

.guest-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-foreground);
  background: var(--muted);
  border: 0;
  border-radius: var(--radius);
  padding: 4px 9px;
  cursor: pointer;
  transition: color var(--motion-quick) linear, background var(--motion-quick) linear;
}
.guest-chip:hover { color: var(--ink); background: #11120f1a; }

/* the audience strip — this is a staffed room, not a prompt box */
.audience-strip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted-foreground);
  border-left: 1px solid var(--border);
  padding-left: 10px;
  min-width: 0;
}
.audience-marks { display: inline-flex; align-items: center; gap: 3px; }
.audience-marks .a-person {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--status-green) 80%, transparent);
  animation: status-pop var(--motion-quick) var(--ease-spring) both;
}
.audience-marks .a-agent {
  width: 7px; height: 7px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--brand-accent) 62%, transparent);
  animation: status-pop var(--motion-quick) var(--ease-spring) both;
}
.audience-count { white-space: nowrap; }

/* ── prompt chips ──────────────────────────────────────────────────────── */

.prompt-row { padding: 8px 16px 14px; }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.prompt-chip {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 10px;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--block-ink);
  transition: transform var(--motion-instant) linear, box-shadow var(--motion-instant) linear,
    color var(--motion-quick) linear, border-color var(--motion-quick) linear;
}
.prompt-chip:hover { color: var(--ink); border-color: var(--border-strong); }
.prompt-chip:active { transform: translateY(2px); box-shadow: none; }

.composer-error {
  margin: 0 16px 12px;
  font-size: 12.5px;
  color: var(--status-red);
}

/* ── right rail ────────────────────────────────────────────────────────── */

.rail { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.rail-card { padding: 16px; }

.rail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.rail-glyph { width: 17px; height: 17px; fill: var(--brand-accent); flex: none; }

.roster-section + .roster-section { margin-top: 12px; }

.roster-label {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted-foreground);
}
.roster-hint { text-transform: none; letter-spacing: 0; opacity: 0.75; margin-left: 4px; }

.roster { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }

.roster-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 7px;
  border-radius: var(--radius);
  font-size: 13px;
  animation: rise-in var(--motion-settle) var(--ease-settle) both;
  animation-delay: var(--d, 0ms);
  transition: background var(--motion-instant) linear;
}
.roster-row:hover { background: var(--muted); }

.roster-mark {
  flex: none;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  box-shadow: 0 2px 0 var(--block-ink);
}
.roster-mark.is-person { border-radius: 50%; }
.roster-mark.is-agent { border-radius: 5px; background: var(--brand-accent); }
.roster-mark.is-agent svg { width: 15px; height: 15px; fill: #fff; }
.roster-row:hover .roster-mark.is-agent .glyph-eye { transform: scaleY(0.15); }

.roster-name { font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-sub { margin-left: auto; font-size: 11px; color: var(--muted-foreground); white-space: nowrap; }
.roster-sub.working { color: var(--status-yellow); font-weight: 650; }

.roster-mention {
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-accent);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 2px 4px;
  margin-left: auto;
  border-radius: 4px;
  opacity: 0;
  transition: opacity var(--motion-quick) linear;
}
.roster-row:hover .roster-mention, .roster-mention:focus-visible { opacity: 1; }
@media (hover: none) { .roster-mention { opacity: 1; } }
.roster-mention:hover { background: var(--muted); }

.rail-note { margin: 12px 0 0; font-family: var(--font-mono); font-size: 11px; color: var(--muted-foreground); }
.rail-note a { color: var(--brand-accent); }

/* feature list */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list li { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.5; color: var(--muted-foreground); }
.feature-list strong { color: var(--ink); font-weight: 700; }
.feature-glyph { flex: none; width: 16px; height: 16px; fill: var(--brand-accent); margin-top: 2px; }
.feature-list li:hover .glyph-spark { animation: spark-turn 0.5s var(--ease-spring) both; }

.rail-cta { text-align: center; padding: 20px 16px; }
.rail-cta-line { margin: 0 0 10px; font-size: 14px; font-weight: 750; }
.rail-cta-button { justify-content: center; background: var(--brand-accent); }
.rail-cta-button:hover { background: #5b40c2; }
.rail-cta .rail-note { margin-top: 10px; }

.mosaic-band { margin-top: 22px; }

.room-objective {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 12.5px;
  color: var(--muted-foreground);
  text-align: center;
}

/* ── responsive ────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .app-frame { grid-template-columns: 1fr; }
  .rail { order: 2; }
  .transcript { height: min(48vh, 440px); }
  .hero { padding-top: 16px; }
  .msg-actions { opacity: 1; }
}

@media (max-width: 560px) {
  .site-header { padding: 14px 16px 6px; }
  .demo-shell { padding: 0 12px 40px; }
  .composer { flex-direction: row; }
  .send-button { padding: 0 14px; }
  .send-button .send-label { display: none; }
  .roster-hint { display: none; }
}

/* the app's global reduced-motion gate, honored here too */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

[hidden] { display: none !important; }
