/* Public /live only. The interpreter continues to use the shared dark theme. */
.live-page {
  color-scheme: light;
  --bg: #f1f5f4;
  --surface: #fff;
  --ink: #193238;
  --muted: #52676d;
  --line: #d5e0de;
  --teal: #007b65;
  --amber: #805500;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}
.live-page [hidden] { display: none !important; }
.live-page button, .live-page a { -webkit-tap-highlight-color: transparent; }
.live-page :is(button, a, [tabindex]):focus-visible { outline: 3px solid #007b65; outline-offset: 4px; }
.live-page .demo-header { background: #123d42; color: #f3faf8; }
.live-page .demo-header-inner { max-width: 1152px; margin: auto; min-height: 80px; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.live-page .demo-brand { display: inline-flex; align-items: baseline; gap: 14px; color: inherit; text-decoration: none; font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.live-page .demo-brand span { color: #bcd7d6; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.live-page .demo-header-note { font-size: 14px; color: #d0e3e1; }
.live-page .live-shell { max-width: 1152px; padding: 0 32px 24px; }
.live-page .setup-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.live-page .setup-current { min-width: 0; }
.live-page .setup-label { font-size: 14px; color: var(--muted); }
.live-page .setup-current p { margin-top: 3px; overflow-wrap: anywhere; }
.live-page #selectedVoice { color: var(--muted); font-size: 14px; }
.live-page .setup-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.live-page .settings-toggle, .live-page .dialog-close { min-height: 44px; padding: 8px 0; background: none; border: 0; color: #006b58; font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.live-page .call-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 11px 24px; background: #007b65; border: 1px solid #007b65; border-radius: 8px; color: #fff; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }
.live-page .call-button:hover { background: #00634f; }
.live-page .call-button[aria-disabled="true"] { background: #e3eae8; border-color: #c9d6d2; color: #52676d; cursor: not-allowed; }
.live-page .scenario-picker { margin-top: 0; padding: 24px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0 0 10px 10px; background: #e6efec; box-shadow: none; }
.live-page .scenario-copy strong { margin-top: 0; font-size: 18px; }
.live-page .scenario-copy p { max-width: none; font-size: 14px; line-height: 1.8; }
.live-page .scenario-options { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 12px; }
.live-page .scenario-option { background: #fff; border: 2px solid #cbd9d4; padding: 14px 16px; border-radius: 8px; }
.live-page .scenario-option strong { font-size: 16px; line-height: 1.6; }
.live-page .scenario-option span { font-size: 14px; line-height: 1.7; }
.live-page .scenario-option.selected { background: #eef8f3; border-color: #007b65; }
.live-page .scenario-option:not(:disabled):hover { background: #edf6f2; border-color: #007b65; }
.live-page .scenario-option:disabled { opacity: 1; color: #52676d; }
.live-page .voice-picker { border-top-color: #c4d3cd; }
.live-page .hours-banner { box-shadow: none; background: #fff3d8; border-color: #e4c585; margin-top: 24px; }
.live-page .conversation-workspace { width: min(880px, 100%); margin: 24px auto 0; }
.live-page .eyebrow { display: block; color: #00715e; font-size: 14px; letter-spacing: .1em; font-weight: 700; }
.live-page h1, .live-page h2 { font-size: 20px; line-height: 1.5; }
.live-page h1 { margin: 0; letter-spacing: 0; }
.live-page .transcript-panel { min-height: 0; background: #fff; border: 1px solid #d2dfdb; border-radius: 12px; box-shadow: 0 5px 20px #123d4207; scroll-margin-top: 24px; }
.live-page .conversation-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px 12px; }
.live-page .call-status { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 12px; font-size: 14px; }
.live-page .call-status strong { font-weight: 600; }
.live-page .timer { color: #52676d; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.live-page .conversation-state { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 0 26px 18px; border-bottom: 1px solid #e3ebe8; }
.live-page .conversation-state p { font-size: 14px; color: var(--muted); }
.live-page .state-pill { background: #edf2f0; color: #52676d; border-radius: 5px; font-size: 12px; padding: 4px 8px; letter-spacing: .04em; }
.live-page .state-pill.live, .live-page .state-pill.live.listening { color: #006c53; background: #e1f3ea; }
.live-page .state-pill.live.thinking, .live-page .state-pill.ended, .live-page .state-pill.closed { color: #785000; background: #fff0cf; }
.live-page .state-pill.live.speaking { color: #24587c; background: #e8f2fb; }
.live-page .transcript { display: flex; flex-direction: column; gap: 0; height: clamp(300px, 44svh, 520px); margin: 0; padding: 0 26px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; scrollbar-color: #91aaa1 #f5f8f6; overflow-anchor: none; }
.live-page .empty-state { display: flex; flex: 1 0 auto; flex-direction: column; justify-content: center; gap: 12px; padding: 30px 10px; text-align: center; align-items: center; color: var(--muted); }
.live-page .empty-state strong { color: var(--ink); font-size: 18px; }
.live-page .empty-state p { max-width: 30em; font-size: 16px; line-height: 1.9; }
.live-page .utterance { display: block; flex: 0 0 auto; min-width: 0; padding: 22px 0; border-bottom: 1px solid #e3ebe8; }
.live-page .utterance:last-child { border-bottom: 0; }
.live-page .utterance-avatar { display: none; }
.live-page .utterance-body, .live-page .utterance.ai .utterance-body, .live-page .utterance.staff .utterance-body, .live-page .utterance.system .utterance-body { display: grid; grid-template-columns: 126px minmax(0, 1fr); justify-items: stretch; min-width: 0; max-width: none; width: 100%; gap: 18px; }
.live-page .utterance-meta { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-content: start; gap: 10px; font-size: 14px; line-height: 1.9; font-weight: 500; color: var(--muted); }
.live-page .utterance-meta span:first-child { grid-column: 2; grid-row: 1; color: #00715e; font-weight: 700; }
.live-page .utterance.customer .utterance-meta span:first-child { color: #334c5c; }
.live-page .utterance.staff .utterance-meta span:first-child { color: #805500; }
.live-page .utterance-meta span:last-child { grid-column: 1; grid-row: 1; font-variant-numeric: tabular-nums; }
.live-page .utterance .utterance-bubble { min-width: 0; max-width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; opacity: 1; overflow-wrap: anywhere; }
.live-page .utterance p { font-size: 16px; line-height: 1.9; white-space: pre-wrap; }
.live-page .utterance.system p { color: var(--muted); font-size: 14px; }
.live-page .utterance.partial .utterance-meta { font-style: normal; }
.live-page .utterance.partial .utterance-bubble { color: #365e55; }
.live-page .utterance-bubble .translation { color: var(--muted); font-size: 14px; border-color: var(--line); margin-top: 12px; padding-top: 10px; }
.live-page .transcript-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 10px 26px; border-top: 1px solid #e3ebe8; color: var(--muted); font-size: 14px; }
.live-page .jump-to-latest { min-height: 38px; padding: 6px 12px; border: 1px solid #b5cfc5; border-radius: 6px; background: #eff7f3; color: #006c53; font: inherit; font-weight: 700; cursor: pointer; }
.live-page .jump-to-latest:hover { background: #dcefe6; }
.live-page .signal-panel { margin-top: 28px; padding: 0; }
.live-page .panel-heading { align-items: baseline; flex-wrap: wrap; }
.live-page .signal-panel h2 { font-size: 18px; }
.live-page .intent { font-size: 14px; color: var(--muted); font-weight: 500; }
.live-page .signals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 28px; margin-top: 20px; }
.live-page .signal { padding: 0; background: none; border: 0; border-radius: 0; }
.live-page .signal > span { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.live-page .signal strong { font-size: 17px; margin-top: 5px; line-height: 1.7; overflow-wrap: anywhere; }
.live-page .signal small { font-size: 14px; margin-top: 3px; }
.live-page .result-section { margin-top: 28px; padding: 24px; background: #e3f0e9; border: 1px solid #c7dfd2; box-shadow: none; color: var(--ink); border-radius: 10px; }
.live-page .result-heading .eyebrow { margin-bottom: 6px; }
.live-page .result-badge { background: #fff1ce; color: #735000; border: 1px solid #dfc586; font-size: 14px; font-weight: 700; }
.live-page .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.live-page .result-card { background: #fff; border-color: #c7dfd2; }
.live-page .result-card > span { font-size: 14px; letter-spacing: 0; color: #006c53; }
.live-page .result-card p { font-size: 16px; }
.live-page .result-card small { font-size: 14px; color: #52676d; }
.live-page .notice-box { background: none; border: 0; border-top: 1px solid var(--line); padding: 22px 0 0; margin-top: 28px; }
.live-page .notice-box strong { color: var(--ink); font-size: 14px; }
.live-page .notice-box p { font-size: 14px; line-height: 1.8; }
.live-page .live-footer { max-width: 880px; margin: 28px auto 0; font-size: 14px; line-height: 1.7; }
.live-page .phone-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100svh - 40px); margin: auto; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px #102b3840; }
.live-page .phone-dialog::backdrop { background: #0b252ab3; }
.live-page .phone-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.live-page .phone-instruction { margin-top: 18px; font-size: 16px; color: var(--muted); }
.live-page .number-card { width: 100%; min-width: 0; margin: 22px 0; padding: 18px; border-radius: 8px; background: #eef5f1; color: var(--ink); }
.live-page .number-card span { color: var(--muted); font-size: 14px; letter-spacing: 0; }
.live-page .number-card strong { font-size: clamp(20px, 5vw, 28px); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.live-page .number-card .hours-note { font-size: 14px; color: var(--muted); white-space: normal; line-height: 1.7; }
.live-page .phone-dialog .call-button { width: 100%; }
.live-page .phone-availability, .live-page .phone-disclaimer { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 700px) {
  .live-page .demo-header-inner { padding: 16px 20px; }
  .live-page .demo-header-note { display: none; }
  .live-page .live-shell { padding: 0 20px 24px; }
  .live-page .setup-bar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .live-page .setup-actions { width: 100%; justify-content: space-between; }
  .live-page .conversation-heading { padding: 18px 18px 10px; }
  .live-page .conversation-state { padding: 0 18px 14px; }
  .live-page .transcript { padding: 0 18px; height: clamp(340px, 48svh, 480px); }
  .live-page .utterance-body, .live-page .utterance.ai .utterance-body, .live-page .utterance.staff .utterance-body, .live-page .utterance.system .utterance-body { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .live-page .utterance-meta { grid-template-columns: 48px minmax(0, 1fr); }
  .live-page .transcript-toolbar { padding: 10px 18px; }
  .live-page .signals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .live-page .scenario-picker { padding: 20px 16px; }
  .live-page .result-grid { grid-template-columns: minmax(0, 1fr); }
  .live-page .result-section { padding: 20px 16px; }
  .live-page .voice-picker { grid-template-columns: minmax(0, 1fr); }
  .live-page .phone-dialog { padding: 22px; }
}
@media (max-width: 360px) {
  .live-page .live-shell { padding-inline: 14px; }
  .live-page .signals { grid-template-columns: minmax(0, 1fr); }
  .live-page .call-button { padding-inline: 18px; }
}

/* On-demand scenario guidance keeps the default screen focused on the call. */
.live-page .guide-toggle { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 0; border: 0; background: none; color: #006b58; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.live-page .guide-toggle::after { content: "＋"; margin-left: 8px; }
.live-page .guide-toggle[aria-expanded="true"]::after { content: "−"; }
.live-page .scenario-guide { margin-top: 18px; padding: 26px 28px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.live-page .scenario-guide h2 { font-size: 20px; }
.live-page .scenario-guide h3 { margin: 22px 0 10px; font-size: 16px; color: var(--ink); }
.live-page .scenario-guide p, .live-page .scenario-guide li { font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.live-page .scenario-guide ul, .live-page .scenario-guide ol { padding-left: 1.4em; margin: 0; }
.live-page .scenario-guide li + li { margin-top: 8px; }
.live-page .scenario-guide .guide-capabilities { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; color: #006b58; }
.live-page .guide-capabilities li + li { margin-top: 0; }
.live-page .guide-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.live-page .guide-flow li::marker { font-weight: 700; color: #006b58; }
.live-page .scenario-guide blockquote { margin: 0; padding: 14px 18px; border-left: 3px solid #007b65; background: #eef5f1; font-size: 16px; line-height: 1.85; }
.live-page .scenario-guide .guide-limits { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.live-page .guide-limits strong { display: block; margin-bottom: 4px; color: var(--ink); }
@media (max-width: 700px) {
  .live-page .scenario-guide { padding: 20px 18px; }
  .live-page .guide-columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
