/* Talk to the AI Front Desk: the voice demo block. Loaded only on pages that carry it.
   It uses the site's own tokens from assets/site.css, so dark mode follows. Phone first: 320px up. */
.vd-lead { margin: 0 0 14px; color: var(--muted); }
.vd-panel { border: 1px solid var(--line); border-top: 3px solid var(--ink); background: var(--panel); padding: 14px 14px 16px; border-radius: 2px; }
.vd-panel [hidden], .vd-sample [hidden] { display: none !important; }

button.cta { border: 0; font: inherit; font-weight: 600; line-height: 1.4; cursor: pointer; text-align: center; }
button.cta:disabled { opacity: 0.6; cursor: default; }
button.cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.vd-start { display: block; width: 100%; margin: 0; }
.vd-end { display: block; width: 100%; margin: 0; background: transparent; color: var(--brick); border: 2px solid var(--brick); padding: 10px 14px; }

/* The live call: a big countdown, a status line and the End button. */
.vd-live { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-items: center; }
.vd-timer { margin: 0; font: 800 2.4rem/1 var(--mono); letter-spacing: 0.02em; }
.vd-status { margin: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; }
.vd-status::before { content: ""; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); }
.vd-live[data-mode="speaking"] .vd-status::before { background: var(--accent); }
.vd-end { grid-column: 1 / -1; }
@media (prefers-reduced-motion: no-preference) {
  .vd-live[data-mode] .vd-status::before { animation: vd-pulse 1.2s ease-in-out infinite; }
  @keyframes vd-pulse { 50% { transform: scale(1.35); } }
}

.vd-done { margin: 12px 0 0; font-weight: 600; }
.vd-fallback { margin: 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--gold); }
.vd-fallback p { margin: 0 0 12px; }
.vd-fallback .cta { margin: 0; }

/* The summary: a printed message slip, stamped SAMPLE. */
.vd-card { position: relative; margin-top: 14px; padding: 10px 14px 12px; background: var(--sheet); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 2px; }
.vd-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.vd-card-label { margin: 0; font: 500 0.8rem/1.4 var(--mono); letter-spacing: 0.02em; color: var(--muted); }
.vd-stamp { flex: 0 0 auto; padding: 1px 6px; font: 700 0.7rem/1.4 var(--mono); letter-spacing: 0.14em; color: var(--brick); border: 2px solid var(--brick); border-radius: 2px; transform: rotate(3deg); }
.vd-card dl { display: grid; gap: 0; margin: 0; }
.vd-card dt { margin-top: 8px; font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.vd-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.vd-urgent { color: var(--brick); }
.vd-urgent::before { content: "! "; }
.vd-card-note { margin: 10px 0 0; font-size: 0.9rem; color: var(--muted); }

.vd-fine { margin: 14px 0 0; padding: 0; list-style: none; font-size: 0.92rem; color: var(--muted); }
.vd-fine li { margin: 0 0 4px; }

/* The "Hear a sample call" slot. Empty until a recording is committed for this page. */
.vd-sample { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.vd-sample h3 { margin: 0 0 4px; font-size: 1.05rem; }
.vd-sample-label { margin: 0 0 8px; font: 500 0.8rem/1.4 var(--mono); letter-spacing: 0.02em; color: var(--muted); }
.vd-sample audio { display: block; width: 100%; }
.vd-sample details { margin-top: 8px; }
.vd-sample summary { cursor: pointer; padding: 12px 0; min-height: 48px; font-weight: 600; color: var(--accent); }
.vd-transcript p { margin: 0 0 8px; }

@media (min-width: 720px) {
  .vd-panel { padding: 16px 20px 18px; }
  .vd-start { display: inline-block; width: auto; min-width: 20rem; }
  .vd-live { grid-template-columns: auto minmax(0, 1fr) auto; }
  .vd-end { grid-column: auto; width: auto; }
  .vd-card dl { grid-template-columns: 15rem minmax(0, 1fr); gap: 0 18px; }
  .vd-card dt { margin-top: 0; padding: 7px 0; border-top: 1px dotted var(--line); }
  .vd-card dd { padding: 6px 0; border-top: 1px dotted var(--line); }
  .vd-card dt:first-of-type, .vd-card dt:first-of-type + dd { border-top: 0; }
}
