/*
 * EventSync shared marketing demo styles.
 *
 * Scoped to .es-demo-shell so the same high-fidelity renderer can mount
 * inside multiple static landing pages without leaking styles outward.
 */

.es-demo-shell,
.es-demo-shell * {
  box-sizing: border-box;
}

.es-demo-shell {
  --ink: #0F172A;
  --ink-2: #1E293B;
  --ink-3: #334155;
  --mute: #64748B;
  --mute-2: #94A3B8;
  --bg: #F6F5F2;
  --bg-elev: #FBFAF7;
  --surface: #FFFFFF;
  --surface-2: #F7F6F4;
  --hair: #E2E8F0;
  --hair-2: #EEF0F3;
  --gold: #C4956A;
  --gold-soft: #F5E9D7;
  --rouge: #C2524C;
  --rouge-soft: #FCE4E3;
  --sage: #8FB498;
  --sage-soft: #E2EDE4;
  --amber: #D98B3A;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
  --shadow-soft: 0 8px 28px rgba(15, 23, 42, 0.08);

  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 440px);
  gap: 48px;
  align-items: center;
  width: 100%;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.es-demo-shell > section {
  margin: 0;
  padding: 0;
}

.es-demo-shell button,
.es-demo-shell input,
.es-demo-shell textarea {
  font: inherit;
}

.es-demo-shell button,
.es-demo-shell a {
  -webkit-tap-highlight-color: transparent;
}

.es-demo-shell a {
  color: inherit;
}

.es-demo-fallback {
  margin: 0;
  color: var(--mute, #64748B);
  font-size: 0.98rem;
  line-height: 1.6;
}

.es-demo-shell .story-panel {
  padding: 16px 0;
}

.es-demo-shell .eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.es-demo-shell .story-panel h1,
.es-demo-shell .story-panel h2,
.es-demo-shell .story-panel h3 {
  max-width: 650px;
  font-family: "Lora", serif;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 1.02;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 20px;
}

.es-demo-shell .story-copy {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--mute);
  margin: 0 0 26px;
  line-height: 1.6;
}

.es-demo-shell .story-actions,
.es-demo-shell .intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.es-demo-shell .story-actions {
  margin-bottom: 28px;
}

.es-demo-shell .btn,
.es-demo-shell .mini-btn,
.es-demo-shell .chip-btn,
.es-demo-shell .action-pill,
.es-demo-shell .link-btn,
.es-demo-shell .next-row,
.es-demo-shell .choice-card,
.es-demo-shell .command-row,
.es-demo-shell .back-btn,
.es-demo-shell .audience button,
.es-demo-shell .switch {
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.es-demo-shell .btn,
.es-demo-shell .link-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}

.es-demo-shell .btn:hover,
.es-demo-shell .btn:focus-visible,
.es-demo-shell .mini-btn:hover,
.es-demo-shell .mini-btn:focus-visible,
.es-demo-shell .chip-btn:hover,
.es-demo-shell .chip-btn:focus-visible,
.es-demo-shell .action-pill:hover,
.es-demo-shell .action-pill:focus-visible,
.es-demo-shell .next-row:hover,
.es-demo-shell .next-row:focus-visible,
.es-demo-shell .choice-card:hover,
.es-demo-shell .choice-card:focus-visible,
.es-demo-shell .command-row:hover,
.es-demo-shell .command-row:focus-visible,
.es-demo-shell .audience button:hover,
.es-demo-shell .audience button:focus-visible,
.es-demo-shell .back-btn:hover,
.es-demo-shell .back-btn:focus-visible,
.es-demo-shell .link-btn:hover,
.es-demo-shell .link-btn:focus-visible {
  transform: translateY(-1px);
}

.es-demo-shell .btn:focus-visible,
.es-demo-shell .mini-btn:focus-visible,
.es-demo-shell .chip-btn:focus-visible,
.es-demo-shell .action-pill:focus-visible,
.es-demo-shell .next-row:focus-visible,
.es-demo-shell .choice-card:focus-visible,
.es-demo-shell .command-row:focus-visible,
.es-demo-shell .audience button:focus-visible,
.es-demo-shell .back-btn:focus-visible,
.es-demo-shell .link-btn:focus-visible,
.es-demo-shell .switch:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.16);
}

.es-demo-shell .btn-primary {
  color: white;
  background: var(--ink);
}

.es-demo-shell .btn-primary:hover,
.es-demo-shell .btn-primary:focus-visible {
  background: var(--ink-2);
}

.es-demo-shell .btn-outline {
  background: var(--surface);
  border-color: var(--hair);
  color: var(--ink);
}

.es-demo-shell .btn-outline:hover,
.es-demo-shell .btn-outline:focus-visible {
  border-color: var(--ink);
}

.es-demo-shell .btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.es-demo-shell .btn-rouge {
  background: var(--rouge);
  color: white;
}

.es-demo-shell .btn-sage {
  background: var(--sage);
  color: white;
}

.es-demo-shell .link-btn {
  border: 0;
  background: transparent;
  color: var(--mute);
  text-decoration: underline;
  padding: 8px;
}

.es-demo-shell .proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 540px;
  margin-top: 18px;
}

.es-demo-shell .proof {
  padding: 13px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.es-demo-shell .proof strong {
  display: block;
  font-family: "Lora", serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.es-demo-shell .proof span {
  display: block;
  margin-top: 4px;
  color: var(--mute);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.es-demo-shell .step-list {
  display: grid;
  gap: 10px;
  max-width: 540px;
  margin-top: 24px;
}

.es-demo-shell .step-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.54);
}

.es-demo-shell .step-num {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  padding: 0;
  overflow: hidden;
}

.es-demo-shell .step-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.es-demo-shell .step-item span {
  display: block;
  color: var(--mute);
  font-size: 0.88rem;
}

.es-demo-shell .step-item .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  margin-top: 0;
  padding: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  line-height: 1;
  text-align: center;
  overflow: hidden;
}

.es-demo-shell .story-outcome {
  display: none;
  max-width: 560px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(143, 180, 152, 0.5);
  border-radius: var(--radius-lg);
  background: rgba(226, 237, 228, 0.42);
  color: #31543a;
  font-family: "Lora", serif;
  font-size: 1.12rem;
  line-height: 1.45;
}

.es-demo-shell .story-outcome.show {
  display: block;
}

.es-demo-shell .demo-stage {
  justify-self: center;
  width: min(100%, 440px);
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.es-demo-shell .device {
  width: min(100%, 390px, calc((100dvh - 28px) * 0.4621));
  aspect-ratio: 390 / 844;
  height: auto;
  min-height: 0;
  border: 9px solid var(--ink);
  border-radius: 38px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
}

.es-demo-shell .device-status {
  height: calc(58px + env(safe-area-inset-top, 0px));
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(6px + env(safe-area-inset-top, 0px)) 34px 0;
  background: var(--ink);
  color: white;
  font-weight: 800;
  font-size: 0.96rem;
  position: relative;
}

.es-demo-shell .device-status::before {
  content: "";
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  width: 112px;
  height: 32px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050505;
}

.es-demo-shell .device-bars {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
}

.es-demo-shell .device-signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.es-demo-shell .device-signal span {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.es-demo-shell .device-signal span:nth-child(1) {
  height: 4px;
  opacity: 0.34;
}

.es-demo-shell .device-signal span:nth-child(2) {
  height: 6px;
  opacity: 0.5;
}

.es-demo-shell .device-signal span:nth-child(3) {
  height: 8px;
  opacity: 0.64;
}

.es-demo-shell .device-signal span:nth-child(4) {
  height: 10px;
}

.es-demo-shell .device-wifi {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.es-demo-shell .device-battery {
  width: 26px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 5px;
  position: relative;
  display: inline-block;
}

.es-demo-shell .device-battery::after {
  content: "";
  position: absolute;
  top: 3px;
  right: -5px;
  width: 3px;
  height: 6px;
  border-radius: 0 2px 2px 0;
  background: currentColor;
}

.es-demo-shell .device-battery span {
  position: absolute;
  inset: 2px 5px 2px 2px;
  border-radius: 2px;
  background: currentColor;
}

.es-demo-shell .app {
  flex: 1;
  min-height: 0;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

.es-demo-shell .app-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.es-demo-shell .screen-scroll,
.es-demo-shell .whats-next {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.es-demo-shell .screen-scroll {
  padding: 22px 20px 24px;
}

.es-demo-shell .whats-next {
  padding: 20px;
  background: var(--bg);
}

.es-demo-shell .screen-scroll::-webkit-scrollbar,
.es-demo-shell .whats-next::-webkit-scrollbar {
  width: 4px;
}

.es-demo-shell .screen-scroll::-webkit-scrollbar-thumb,
.es-demo-shell .whats-next::-webkit-scrollbar-thumb {
  background: var(--hair);
  border-radius: 4px;
}

.es-demo-shell .phone-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.es-demo-shell .phone-title {
  font-family: "Lora", serif;
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 700;
}

.es-demo-shell .phone-subtitle {
  color: var(--mute);
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 650;
}

.es-demo-shell .back-btn {
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.es-demo-shell .intro-screen,
.es-demo-shell .complete-screen {
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: var(--bg);
}

.es-demo-shell .intro-badge {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  margin: 0 auto 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--gold);
  font-family: "Lora", serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.es-demo-shell .intro-screen h2,
.es-demo-shell .complete-screen h2 {
  font-family: "Lora", serif;
  font-size: 2.15rem;
  line-height: 1.08;
  font-weight: 600;
  margin: 0 0 14px;
}

.es-demo-shell .intro-screen p,
.es-demo-shell .complete-screen p {
  color: var(--mute);
  font-size: 0.96rem;
  margin: 0 0 22px;
}

.es-demo-shell .intro-actions {
  display: grid;
  gap: 12px;
}

.es-demo-shell .cockpit-top {
  flex: 0 0 auto;
  background: var(--ink);
  color: white;
  padding: 26px 20px 24px;
  position: relative;
  overflow: hidden;
}

.es-demo-shell .cockpit-screen {
  background: var(--bg);
}

.es-demo-shell .cockpit-screen .cockpit-top {
  flex: 0 1 auto;
  max-height: 58%;
  padding: 6px 20px 18px;
  background:
    radial-gradient(circle at 88% 4%, rgba(196, 149, 106, 0.18), transparent 34%),
    var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.es-demo-shell .cockpit-screen .pull-affordance {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.44);
  font-weight: 650;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.es-demo-shell .cockpit-screen .pull-affordance span {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.es-demo-shell .cockpit-screen .pull-affordance strong {
  font: inherit;
}

.es-demo-shell .cockpit-screen .cockpit-row {
  margin-bottom: 8px;
}

.es-demo-shell .cockpit-screen .live-chip {
  display: none;
}

.es-demo-shell .cockpit-screen .event-name {
  font-size: 1.26rem;
  margin-bottom: 8px;
}

.es-demo-shell .cockpit-screen .cockpit-eyebrow {
  font-size: 0.68rem;
  margin-bottom: 6px;
}

.es-demo-shell .cockpit-screen .cockpit-title {
  font-size: 2.05rem;
  line-height: 1.02;
  margin-bottom: 9px;
}

.es-demo-shell .cockpit-screen .cockpit-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.es-demo-shell .cockpit-screen .cockpit-location::before,
.es-demo-shell .cockpit-screen .cockpit-subline::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.es-demo-shell .cockpit-screen .cockpit-location::before {
  background: var(--gold);
}

.es-demo-shell .cockpit-screen .cockpit-subline {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.es-demo-shell .cockpit-screen .cockpit-subline::before {
  background: rgba(255, 255, 255, 0.7);
}

.es-demo-shell .cockpit-screen .count-row {
  margin-bottom: 8px;
}

.es-demo-shell .cockpit-screen .count-main {
  font-size: 2.82rem;
  white-space: nowrap;
}

.es-demo-shell .cockpit-screen .count-side {
  padding-bottom: 5px;
  font-size: 0.9rem;
}

.es-demo-shell .cockpit-screen .progress {
  margin-bottom: 11px;
}

.es-demo-shell .cockpit-screen .progress span {
  width: var(--fill, 100%);
  background: var(--gold);
}

.es-demo-shell .cockpit-screen .cockpit-actions {
  gap: 8px;
}

.es-demo-shell .cockpit-screen .btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
}

.es-demo-shell .cockpit-screen .chip-row {
  grid-template-columns: 1fr 1fr;
}

.es-demo-shell .cockpit-screen .chip-btn {
  min-height: 38px;
}

.es-demo-shell .cockpit-screen .action-pill {
  display: inline-flex;
}

.es-demo-shell .cockpit-screen .whats-next {
  flex: 1;
  min-height: 0;
  padding: 0 20px 22px;
  overflow-y: auto;
  background: var(--bg);
  border-top: 1px solid var(--hair-2);
}

.es-demo-shell .cockpit-screen .section-row {
  position: sticky;
  top: 0;
  z-index: 2;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -20px 10px;
  padding: 18px 20px 12px;
  background: linear-gradient(180deg, var(--bg) 82%, rgba(246, 245, 242, 0.94) 100%);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.035);
}

.es-demo-shell .cockpit-screen .section-row h3 {
  color: var(--ink);
  font-family: "Lora", serif;
  font-size: 1.32rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.es-demo-shell .cockpit-screen .section-row span {
  color: var(--mute);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.es-demo-shell .cockpit-screen .next-list {
  gap: 0;
}

.es-demo-shell .cockpit-screen .next-row {
  grid-template-columns: 52px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--hair-2);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.es-demo-shell .cockpit-screen .next-row.has-adjustment {
  grid-template-columns: 52px minmax(0, 1fr) minmax(44px, auto);
  gap: 8px;
}

.es-demo-shell .cockpit-screen .next-row.changed {
  border-color: var(--hair-2);
}

.es-demo-shell .cockpit-screen .next-row:last-child {
  border-bottom: 0;
}

.es-demo-shell .cockpit-screen .next-time {
  font-size: 0.74rem;
}

.es-demo-shell .cockpit-screen .next-title {
  font-family: "Lora", serif;
  font-size: 0.98rem;
  font-weight: 800;
}

.es-demo-shell .cockpit-screen .next-meta {
  margin-top: 2px;
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 650;
}

.es-demo-shell .cockpit-screen .adjustment {
  min-width: 42px;
  min-height: 28px;
}

.es-demo-shell .cockpit-screen .next-row > span[aria-hidden="true"] {
  color: var(--mute-2);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
}

.es-demo-shell .cockpit-row,
.es-demo-shell .deficit-row,
.es-demo-shell .section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.es-demo-shell .cockpit-row {
  margin-bottom: 14px;
}

.es-demo-shell .status-line,
.es-demo-shell .section-row h3,
.es-demo-shell .section-label,
.es-demo-shell .deficit-card h3 {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.es-demo-shell .status-line {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.es-demo-shell .section-row h3,
.es-demo-shell .section-label,
.es-demo-shell .deficit-card h3 {
  color: var(--mute);
}

.es-demo-shell .section-row {
  align-items: baseline;
  margin-bottom: 12px;
}

.es-demo-shell .section-row span {
  color: var(--mute);
  font-weight: 700;
  font-size: 0.82rem;
}

.es-demo-shell .live-chip,
.es-demo-shell .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 30px;
  padding: 0 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.es-demo-shell .live-chip {
  background: var(--rouge);
  color: white;
}

.es-demo-shell .event-name {
  font-family: "Lora", serif;
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.es-demo-shell .cockpit-eyebrow {
  color: var(--rouge);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.es-demo-shell .cockpit-title {
  font-family: "Lora", serif;
  font-size: 2.25rem;
  line-height: 1.02;
  font-weight: 600;
  margin-bottom: 10px;
}

.es-demo-shell .cockpit-location {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.es-demo-shell .count-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.es-demo-shell .count-main {
  font-family: "Lora", serif;
  font-size: 4.25rem;
  line-height: 0.92;
  font-weight: 700;
}

.es-demo-shell .count-side {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 700;
  padding-bottom: 7px;
}

.es-demo-shell .progress {
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
  margin-bottom: 20px;
}

.es-demo-shell .progress span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--rouge);
}

.es-demo-shell .cockpit-actions,
.es-demo-shell .next-list,
.es-demo-shell .card-list,
.es-demo-shell .preview-list,
.es-demo-shell .complete-list {
  display: grid;
  gap: 10px;
}

.es-demo-shell .chip-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.es-demo-shell .chip-btn {
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.86rem;
}

.es-demo-shell .action-pill {
  justify-self: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.es-demo-shell .next-row,
.es-demo-shell .choice-card,
.es-demo-shell .command-row,
.es-demo-shell .vendor-card,
.es-demo-shell .broadcast-card,
.es-demo-shell .photo-cue {
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 3px 0 rgba(15, 23, 42, 0.035);
}

.es-demo-shell .next-row {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
}

.es-demo-shell .next-row.changed {
  border-color: rgba(196, 149, 106, 0.62);
}

.es-demo-shell .next-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.es-demo-shell .next-title {
  display: block;
  font-weight: 800;
  line-height: 1.15;
}

.es-demo-shell .next-meta {
  color: var(--mute);
  font-size: 0.78rem;
  margin-top: 2px;
  font-weight: 650;
}

.es-demo-shell .adjustment {
  min-width: 42px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--gold);
  background: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.es-demo-shell .screen-header {
  flex: 0 0 auto;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--hair-2);
  background: var(--bg);
}

.es-demo-shell .deficit-card {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px;
  margin: -2px 0 18px;
  border: 1px solid rgba(217, 139, 58, 0.36);
  border-radius: var(--radius-lg);
  background: rgba(251, 250, 247, 0.96);
  box-shadow: var(--shadow-soft);
}

.es-demo-shell .deficit-card h3 {
  font-size: 0.68rem;
  margin: 0 0 4px;
}

.es-demo-shell .deficit-value {
  font-family: "Lora", serif;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
}

.es-demo-shell .deficit-value.done {
  color: var(--sage);
}

.es-demo-shell .ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--sage) calc(var(--pct, 0) * 1%), var(--hair) 0);
  position: relative;
  flex: 0 0 auto;
}

.es-demo-shell .ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: var(--bg-elev);
}

.es-demo-shell .ring span {
  position: relative;
  z-index: 1;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.es-demo-shell .choice-card {
  width: 100%;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.es-demo-shell .choice-card strong {
  display: block;
  margin-bottom: 2px;
}

.es-demo-shell .choice-card span {
  color: var(--mute);
  font-size: 0.78rem;
  font-weight: 650;
}

.es-demo-shell .choice-card .pill {
  background: var(--gold-soft);
  color: var(--gold);
  letter-spacing: 0;
  text-transform: none;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
}

.es-demo-shell .choice-card.is-used {
  border-color: rgba(143, 180, 152, 0.64);
  background: rgba(226, 237, 228, 0.48);
}

.es-demo-shell .preview-list {
  margin-top: 18px;
  gap: 8px;
}

.es-demo-shell .preview-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--hair-2);
}

.es-demo-shell .preview-row:last-child {
  border-bottom: 0;
}

.es-demo-shell .preview-row .delta {
  color: var(--gold);
  font-weight: 800;
}

.es-demo-shell .success-note {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius);
  color: #31543a;
  background: var(--sage-soft);
  font-weight: 750;
  font-size: 0.86rem;
}

.es-demo-shell .success-note.show {
  display: block;
}

.es-demo-shell .mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
}

.es-demo-shell .mode-btn {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mute);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.es-demo-shell .mode-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.es-demo-shell .recovery-note {
  margin: 8px 0 12px;
  color: var(--mute);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
}

.es-demo-shell .manual-list {
  display: grid;
  gap: 10px;
}

.es-demo-shell .manual-card {
  padding: 14px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 3px 0 rgba(15, 23, 42, 0.035);
  display: grid;
  gap: 10px;
}

.es-demo-shell .manual-card.is-used {
  border-color: rgba(196, 149, 106, 0.62);
  background: rgba(245, 233, 215, 0.32);
}

.es-demo-shell .manual-copy strong {
  display: block;
  line-height: 1.2;
}

.es-demo-shell .manual-copy span {
  display: block;
  margin-top: 4px;
  color: var(--mute);
  font-size: 0.78rem;
  font-weight: 650;
}

.es-demo-shell .manual-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--mute);
  font-size: 0.74rem;
  font-weight: 800;
}

.es-demo-shell .manual-meta span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.es-demo-shell .manual-meta strong {
  color: var(--gold);
}

.es-demo-shell .manual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.es-demo-shell .trim-button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(196, 149, 106, 0.42);
  background: var(--gold-soft);
  color: #765235;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.es-demo-shell .trim-button.is-undo {
  color: #31543a;
  border-color: rgba(143, 180, 152, 0.46);
  background: var(--sage-soft);
}

.es-demo-shell .trim-button.is-reset {
  color: var(--mute);
  border-color: var(--hair);
  background: var(--surface);
}

.es-demo-shell .trim-button[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
}

.es-demo-shell .trim-button.is-static {
  display: inline-flex;
  align-items: center;
  cursor: default;
  color: #31543a;
  border-color: rgba(143, 180, 152, 0.46);
  background: var(--sage-soft);
}

.es-demo-shell .manual-remaining {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(252, 234, 211, 0.72);
  color: #925b16;
  font-size: 0.8rem;
  font-weight: 800;
}

.es-demo-shell .bottom-action {
  flex: 0 0 auto;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--hair);
  background: rgba(251, 250, 247, 0.94);
}

.es-demo-shell .bottom-action .btn {
  width: 100%;
}

.es-demo-shell .command-sheet {
  margin-top: auto;
  padding: 8px 20px 24px;
  border-radius: 28px 28px 0 0;
  background: var(--surface);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.09);
}

.es-demo-shell .handle {
  width: 62px;
  height: 6px;
  border-radius: 999px;
  background: var(--hair-2);
  margin: 10px auto 18px;
}

.es-demo-shell .command-row {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
}

.es-demo-shell .command-row + .command-row {
  border-top: 1px solid var(--hair-2);
  border-radius: 0;
}

.es-demo-shell .command-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 900;
}

.es-demo-shell .command-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.es-demo-shell .command-copy strong {
  display: block;
  line-height: 1.2;
}

.es-demo-shell .command-copy span {
  display: block;
  margin-top: 3px;
  color: var(--mute);
  font-size: 0.8rem;
  font-weight: 650;
}

.es-demo-shell .push-notification {
  position: absolute;
  z-index: 20;
  top: 12px;
  left: 14px;
  right: 14px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(203, 213, 225, 0.76);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  animation: esPushIn 260ms ease-out both;
}

.es-demo-shell .push-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
}

.es-demo-shell .push-notification strong,
.es-demo-shell .push-notification span span {
  display: block;
}

.es-demo-shell .push-notification strong {
  font-size: 0.84rem;
  line-height: 1.15;
}

.es-demo-shell .push-notification span span {
  margin-top: 2px;
  color: var(--mute);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
}

@keyframes esPushIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.es-demo-shell .summary-card {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.es-demo-shell .summary-bar {
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: var(--hair);
  margin-bottom: 10px;
}

.es-demo-shell .summary-bar span {
  display: block;
}

.es-demo-shell .summary-bar .checked {
  background: var(--sage);
}

.es-demo-shell .summary-bar .upcoming {
  background: var(--amber);
}

.es-demo-shell .summary-bar .late {
  background: #CBD5E1;
}

.es-demo-shell .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--mute);
  font-size: 0.78rem;
  font-weight: 750;
}

.es-demo-shell .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 5px;
}

.es-demo-shell .vendor-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.es-demo-shell .vendor-card h4 {
  font-size: 1.02rem;
  line-height: 1.2;
  margin: 0 0 5px;
}

.es-demo-shell .vendor-card p,
.es-demo-shell .broadcast-card p {
  color: var(--mute);
  font-size: 0.82rem;
  font-weight: 650;
  margin: 0;
}

.es-demo-shell .vendor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.es-demo-shell .mini-btn {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--surface);
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
}

.es-demo-shell .status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.es-demo-shell .status-chip.late {
  color: #925b16;
  background: #FCEAD3;
}

.es-demo-shell .status-chip.checked {
  color: #31543a;
  background: var(--sage-soft);
}

.es-demo-shell .status-chip.normal {
  color: var(--ink);
  background: var(--hair-2);
}

.es-demo-shell .form-card {
  padding: 14px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: grid;
  gap: 12px;
}

.es-demo-shell .field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
}

.es-demo-shell .field input,
.es-demo-shell .field textarea {
  width: 100%;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: var(--bg-elev);
  color: var(--ink);
  resize: none;
}

.es-demo-shell .toggle-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.es-demo-shell .toggle-row strong {
  display: block;
  font-size: 0.88rem;
}

.es-demo-shell .toggle-row span {
  display: block;
  color: var(--mute);
  font-size: 0.76rem;
  font-weight: 650;
}

.es-demo-shell .switch {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  position: relative;
  cursor: pointer;
}

.es-demo-shell .switch::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  top: 3px;
  right: 3px;
  border-radius: 50%;
  background: white;
}

.es-demo-shell .audience {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.es-demo-shell .audience button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--surface);
  cursor: pointer;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.es-demo-shell .audience button.is-selected {
  border-color: rgba(196, 149, 106, 0.62);
  background: var(--gold-soft);
  color: #765235;
}

.es-demo-shell .broadcast-card {
  padding: 15px;
  display: grid;
  gap: 8px;
}

.es-demo-shell .broadcast-card h4 {
  font-size: 1rem;
  margin: 0;
}

.es-demo-shell .badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.es-demo-shell .photo-banner {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: var(--radius-lg);
  color: #31543a;
  background: var(--sage-soft);
  font-weight: 800;
}

.es-demo-shell .photo-next {
  padding: 16px;
  margin-bottom: 14px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: white;
}

.es-demo-shell .photo-next .section-label {
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 8px;
}

.es-demo-shell .photo-next h3 {
  font-family: "Lora", serif;
  font-size: 1.55rem;
  line-height: 1.12;
  margin: 0;
}

.es-demo-shell .photo-next p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 650;
}

.es-demo-shell .photo-cue {
  padding: 13px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
}

.es-demo-shell .complete-list {
  margin: 18px 0 24px;
}

.es-demo-shell .complete-list li {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  font-weight: 750;
}

.es-demo-shell .complete-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage);
  margin-top: 7px;
  flex: 0 0 auto;
}

.es-demo-shell .store-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.es-demo-shell .dialog-backdrop {
  position: absolute;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 23, 42, 0.52);
  z-index: 10;
  padding: 16px;
}

.es-demo-shell .dialog-backdrop.show {
  display: flex;
}

.es-demo-shell .dialog {
  width: 100%;
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow);
}

.es-demo-shell .dialog h3 {
  font-family: "Lora", serif;
  font-size: 1.45rem;
  margin: 0 0 8px;
}

.es-demo-shell .dialog p {
  color: var(--mute);
  font-size: 0.9rem;
  margin: 0 0 16px;
}

.es-demo-shell .dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.es-demo-shell .toast {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  font-size: 0.86rem;
  font-weight: 750;
  box-shadow: var(--shadow-soft);
}

.es-demo-shell .toast.show {
  opacity: 1;
  transform: translateY(0);
}

body.es-demo-body-active {
  overflow: hidden;
}

body.es-demo-body-active .top-nav {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .es-demo-shell .btn,
  .es-demo-shell .mini-btn,
  .es-demo-shell .chip-btn,
  .es-demo-shell .action-pill,
  .es-demo-shell .link-btn,
  .es-demo-shell .next-row,
  .es-demo-shell .choice-card,
  .es-demo-shell .command-row,
  .es-demo-shell .back-btn,
  .es-demo-shell .audience button,
  .es-demo-shell .switch,
  .es-demo-shell .toast {
    transition: none;
  }

  .es-demo-shell .push-notification {
    animation: none;
  }
}

@media (max-width: 980px) {
  .es-demo-shell {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 26px;
  }

  .es-demo-shell .story-panel {
    max-width: 720px;
  }

  .es-demo-shell .demo-stage {
    width: min(100%, 430px);
  }
}

@media (max-width: 720px) {
  .es-demo-shell {
    gap: 18px;
  }

  .es-demo-shell .story-panel {
    padding: 4px 4px 0;
  }

  .es-demo-shell .story-panel h1,
  .es-demo-shell .story-panel h2,
  .es-demo-shell .story-panel h3 {
    font-size: clamp(2.15rem, 11vw, 3.1rem);
  }

  .es-demo-shell .proof-strip {
    grid-template-columns: 1fr;
  }

  .es-demo-shell .step-list {
    display: none;
  }

  .es-demo-shell .demo-stage {
    width: 100%;
  }

  .es-demo-shell .device {
    width: 100%;
    min-height: 0;
    height: calc(100dvh - 94px);
    aspect-ratio: auto;
    border-width: 0;
    border-radius: 24px;
  }

  body.es-demo-body-active .es-demo-shell--mobile-active .story-panel {
    display: none;
  }

  body.es-demo-body-active .es-demo-shell--mobile-active {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background: var(--ink);
  }

  body.es-demo-body-active .es-demo-shell--mobile-active .demo-stage {
    width: 100%;
    height: 100%;
  }

  body.es-demo-body-active .es-demo-shell--mobile-active .device {
    height: 100dvh;
    min-height: 100dvh;
    aspect-ratio: auto;
    border-radius: 0;
    border-width: 0;
  }

  body.es-demo-body-active .es-demo-shell--mobile-active .device-status {
    display: flex;
  }

  .es-demo-shell .store-actions,
  .es-demo-shell .dialog-actions,
  .es-demo-shell .chip-row {
    grid-template-columns: 1fr;
  }

  .es-demo-shell .cockpit-screen .chip-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 390px) {
  .es-demo-shell .cockpit-screen .count-main {
    font-size: 2.82rem;
  }

  .es-demo-shell .cockpit-screen .cockpit-title {
    font-size: 2.05rem;
  }

  .es-demo-shell .next-row,
  .es-demo-shell .preview-row {
    grid-template-columns: 54px 1fr auto;
  }
}

.es-actionbtn:hover,
.es-actionbtn:focus-visible {
  border-color: var(--es-ink);
  outline: none;
}

.es-actionbtn:focus-visible {
  box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.20);
}

.es-actionbtn--primary {
  background: var(--es-ink);
  color: #fff;
  border-color: var(--es-ink);
}

.es-actionbtn--primary:hover,
.es-actionbtn--primary:focus-visible {
  background: #000;
}

/* Broadcast preview */
.es-broadcast {
  background: var(--es-surface);
  border: 1px solid var(--es-hair);
  border-radius: var(--es-radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.es-broadcast[hidden] {
  display: none;
}

.es-broadcast__header {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--es-ink);
}

.es-broadcast__body {
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--es-ink-2);
}

.es-broadcast__recipients {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.es-recipient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--es-surface-2);
  border: 1px solid var(--es-hair);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--es-ink);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.es-recipient--ack {
  background: #ECFDF5;
  border-color: #34D399;
  color: var(--es-success);
}

.es-broadcast__ack {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--es-success);
}

.es-broadcast__send {
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--es-ink);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.es-broadcast__send[disabled] {
  opacity: 0.5;
  cursor: default;
}

/* Status & a11y live region */
.es-demo__live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Control bar (replay / take over) */
.es-demo__controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.es-demo__control {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--es-hair);
  background: var(--es-surface);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--es-ink);
  cursor: pointer;
}

.es-demo__control:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.20);
}

.es-demo__control--primary {
  background: var(--es-ink);
  color: #fff;
  border-color: var(--es-ink);
}

/* End CTA card */
.es-demo__end {
  background: var(--es-surface);
  border: 1px solid var(--es-hair);
  border-radius: var(--es-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.es-demo__end[hidden] {
  display: none;
}

.es-demo__end-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.es-demo__end-btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--es-hair);
  background: var(--es-surface);
  color: var(--es-ink);
  cursor: pointer;
}

.es-demo__end-btn--primary {
  background: var(--es-ink);
  color: #fff;
  border-color: var(--es-ink);
}

.es-demo__end-btn--inline {
  background: transparent;
  border: none;
  padding: 4px 0;
  color: var(--es-ink);
  text-decoration: underline;
  align-self: flex-start;
}

/* Reduced motion: kill animations, snap to states */
@media (prefers-reduced-motion: reduce) {
  .es-block,
  .es-recipient {
    transition: none;
  }
  .es-block--pulse {
    animation: none;
  }
}
