/* ────────────────────────────────────────────────────────────
   PULSE — showroom v2
   ────────────────────────────────────────────────────────── */

.sr2 {
  flex: 1;
  max-width: 1440px; margin: 0 auto; width: 100%;
  padding: 36px 40px 80px;
}
.sr2-head { margin-bottom: 32px; max-width: 760px; }
.sr2-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 16px;
}
.sr2-eyebrow .rule { width: 32px; height: 1px; background: var(--line-strong); }
.sr2-h {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.0;
}
.sr2-lead {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 60ch;
}

.sr2-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 18px;
  align-items: start;
}
.sr2-left { display: flex; flex-direction: column; gap: 18px; }

/* hero */
.sr2-hero {
  position: relative;
  background:
    radial-gradient(ellipse at center, oklch(from var(--pulse) l c h / 0.06), transparent 62%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  min-height: 320px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
  padding: 36px 24px;
  overflow: hidden;
}
.sr2-hero-rings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.sr2-hero-rings span {
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 999px;
  border: 1px solid oklch(from var(--pulse) l c h / 0.22);
  animation: sr2-ring 5s var(--ease) infinite;
}
.sr2-hero-rings span:nth-child(2) { animation-delay: 1.6s; }
.sr2-hero-rings span:nth-child(3) { animation-delay: 3.3s; }
@keyframes sr2-ring {
  0%   { transform: scale(0.5); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}
.sr2-hero-stage {
  position: relative; z-index: 1;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 0 1px oklch(from var(--pulse) l c h / 0.16), 0 24px 64px -18px oklch(from var(--pulse) l c h / 0.35), 0 24px 64px -18px oklch(0 0 0 / 0.5);
  transition: width 0.32s var(--ease), height 0.32s var(--ease), border-radius 0.32s var(--ease);
}
.sr2-hero-stage .avatar-live { width: 100% !important; height: 100% !important; border-radius: 20px !important; }
.sr2-hero-stage.shape-circle, .sr2-hero-stage.shape-circle .avatar-live { border-radius: 999px !important; }
.sr2-hero-stage.shape-pill, .sr2-hero-stage.shape-pill .avatar-live { border-radius: 999px !important; }
.sr2-hero-stage.shape-wide, .sr2-hero-stage.shape-wide .avatar-live { border-radius: 14px !important; }
.sr2-hero-meta {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-3);
}
.sr2-hero-meta .dot { opacity: 0.5; }
.sr2-hero-meta .pulse-txt { color: var(--pulse-hi); }

/* contexts */
.sr2-contexts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.sr2-ctx {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex; flex-direction: column;
}
.sr2-ctx-lbl {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.sr2-ctx-frame {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px;
  flex: 1;
  display: flex; align-items: center;
  min-height: 96px;
}
.sr2-ctx-flush { padding: 0; overflow: hidden; }
.sr2-ctx-chat { flex-direction: column; gap: 8px; align-items: stretch; justify-content: center; }

.sr2-mock-profile { display: flex; align-items: center; gap: 12px; width: 100%; }
.sr2-mock-name { font-weight: 600; font-size: 13.5px; letter-spacing: -0.01em; }
.sr2-mock-status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3);
  letter-spacing: 0.06em; margin-top: 3px;
}
.sr2-mock-status .pulse-dot { width: 5px; height: 5px; }

.sr2-bubble {
  display: flex; gap: 9px; align-items: flex-end;
  padding: 9px 11px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 88%;
}
.sr2-bubble-me { align-self: flex-end; }
.sr2-bubble-text { font-size: 12px; line-height: 1.4; }
.sr2-bubble-who {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.10em;
  color: var(--ink-3); margin-bottom: 2px;
}

.sr2-card-hero {
  position: relative; width: 100%; aspect-ratio: 16/9;
}
.sr2-card-hero .avatar-live { width: 100% !important; height: 100% !important; border-radius: 0 !important; }
.sr2-card-hero-cap {
  position: absolute; inset: auto 0 0 0;
  padding: 14px;
  background: linear-gradient(to top, oklch(0 0 0 / 0.7), transparent);
}
.sr2-card-hero-name { font-family: var(--font-ui); font-weight: 600; font-size: 17px; letter-spacing: -0.018em; color: var(--ink); }
.sr2-card-hero-sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.10em; color: oklch(0.96 0.008 80 / 0.7); margin-top: 2px; }

.sr2-mock-nav {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.sr2-mock-navlinks { display: flex; gap: 16px; flex: 1; font-size: 12px; color: var(--ink-3); }
.sr2-mock-navlinks .on { color: var(--ink); }
.sr2-mock-navpill {
  display: flex; align-items: center; gap: 8px;
  padding: 3px 4px 3px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-2);
}

/* config */
.sr2-config {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 76px;
}
.sr2-config-h { font-family: var(--font-ui); font-weight: 700; font-size: 24px; letter-spacing: -0.025em; }
.sr2-config-sub { color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }

.sr2-opt { display: flex; flex-direction: column; gap: 10px; }
.sr2-opt-lbl {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.sr2-seg { display: flex; gap: 4px; flex-wrap: wrap; }
.sr2-seg button {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
  transition: all 0.15s var(--ease);
}
.sr2-seg button:hover { color: var(--ink); background: var(--panel-2); }
.sr2-seg button.is-on { background: var(--pulse-soft); color: var(--pulse-hi); border-color: var(--pulse); }
.sr2-opt-note { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }

.sr2-range { width: 100%; accent-color: var(--pulse); }
.sr2-size-presets { display: flex; gap: 5px; }

.sr2-snippet {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.sr2-snippet-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}
.sr2-copy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase;
  transition: all 0.15s var(--ease);
}
.sr2-copy:hover { background: var(--panel-hi); color: var(--ink); }
.sr2-copy.is-copied { background: var(--pulse-soft); color: var(--pulse-hi); border-color: var(--pulse); }
.sr2-code {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px; line-height: 1.7;
  color: var(--ink);
  margin: 0; white-space: pre-wrap;
}

.sr2-ready {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
}
.sr2-ready strong { color: var(--pulse-hi); font-weight: 600; }

/* toast */
.sr2-toast {
  position: fixed;
  bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 80;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  animation: sr2-toast-in 0.3s var(--ease-out);
}
@keyframes sr2-toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 1000px) {
  .sr2-grid { grid-template-columns: 1fr; }
  .sr2-config { position: static; }
  .sr2-contexts { grid-template-columns: 1fr; }
}
