@import url("https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400..900&display=swap");
/* Live Demo Agent — shared stylesheet. Load after tokens.css. Every color, space and radius comes from tokens. */

:root {
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-land: 640ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-land: cubic-bezier(.2, .9, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[data-theme] { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dl-muted { color: var(--ink-muted); }
.dl-num { font-variant-numeric: tabular-nums; }

/* Icons: inline SVG, 24 grid, 1.75 stroke, currentColor */
.dl-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.dl-icon--fill { fill: currentColor; stroke: none; }
.dl-spin { animation: dl-spin .9s linear infinite; }
@keyframes dl-spin { to { transform: rotate(360deg); } }

/* ---------- App shell (container queries, so it adapts to its box, not the window) ---------- */
.dl-app { container: app / inline-size; min-height: 100%; background: var(--bg); color: var(--ink); }
.dl-topbar { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; }
.dl-topbar__name { font-size: 15px; line-height: 20px; font-weight: 700; }
.dl-brandmark { width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1.5px dashed var(--line-strong); display: grid; place-items: center; font-size: 9px; line-height: 10px; text-align: center; color: var(--ink-muted); }
.dl-panel { display: grid; gap: var(--space-6); padding: 0 var(--space-4) 40px; max-width: 560px; margin: 0 auto;
  grid-template-areas: "status" "start" "ready" "footer"; }
.dl-panel__status { grid-area: status; }
.dl-panel__start { grid-area: start; }
.dl-panel__ready { grid-area: ready; }
.dl-panel__footer { grid-area: footer; }
@container app (min-width: 960px) {
  .dl-topbar { padding: 16px 40px; }
  .dl-panel { max-width: 1200px; padding: 8px 40px 56px; gap: var(--space-6) 48px; align-items: start;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas: "status start" "ready start" "footer start"; }
  .dl-panel__start { position: sticky; top: 24px; }
}
.dl-section { display: grid; gap: var(--space-4); }
.dl-section__head { display: grid; gap: var(--space-1); }
.dl-subsection { display: grid; gap: var(--space-3); }
.dl-subhead { font-size: 15px; line-height: 20px; font-weight: 700; }

/* ---------- Buttons ---------- */
.dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control-height); padding: 0 20px;
  border-radius: var(--radius-md); border: 1px solid transparent; background: transparent; font-size: 16px; line-height: 20px; font-weight: 600;
  text-decoration: none; cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.dl-btn--primary { background: var(--primary); color: var(--on-primary); }
.dl-btn--primary:hover { background: var(--primary-hover); }
.dl-btn--secondary { background: var(--surface-raised); border-color: var(--line-strong); color: var(--ink); }
.dl-btn--secondary:hover { background: var(--surface-sunken); }
.dl-btn--quiet { color: var(--primary-text); padding: 0 12px; }
.dl-btn--quiet:hover { background: var(--surface-sunken); }
.dl-btn--danger { border-color: var(--danger); color: var(--danger); background: transparent; }
.dl-btn--danger:hover { background: var(--danger-soft); }
.dl-btn--danger-solid { background: var(--danger); color: var(--on-danger); }
.dl-btn--lg { min-height: 56px; font-size: 18px; }
.dl-btn--sm { min-height: 44px; padding: 0 14px; font-size: 15px; }
.dl-btn--block { display: flex; width: 100%; }
.dl-btn:disabled, .dl-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.dl-iconbtn { width: var(--touch-min); height: var(--touch-min); flex: none; display: grid; place-items: center; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink-muted); cursor: pointer; }
.dl-iconbtn:hover { background: var(--surface-sunken); color: var(--ink); }

/* Prepare vs Quick: the two ways to start, each explains itself */
.dl-choices { display: grid; gap: var(--space-3); }
.dl-choice { display: grid; grid-template-columns: 40px 1fr auto; gap: 2px 14px; align-items: center; width: 100%; padding: 14px 16px; text-align: left;
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); cursor: pointer; }
.dl-choice:hover { background: var(--surface-sunken); }
.dl-choice__icon { grid-row: 1 / 3; align-self: start; width: 40px; height: 40px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--surface-sunken); }
.dl-choice__title { font-size: 17px; line-height: 24px; font-weight: 700; }
.dl-choice__time { font-size: 13px; line-height: 24px; font-weight: 650; white-space: nowrap; color: var(--ink-muted); }
.dl-choice__desc { grid-column: 2 / 4; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.dl-choice--primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.dl-choice--primary:hover { background: var(--primary-hover); }
.dl-choice--primary .dl-choice__icon { background: color-mix(in srgb, currentColor 16%, transparent); }
.dl-choice--primary .dl-choice__desc, .dl-choice--primary .dl-choice__time { color: var(--on-primary); }
.dl-choice:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Form fields ---------- */
.dl-form { display: grid; gap: var(--space-4); }
.dl-field { display: grid; gap: 6px; }
.dl-label { font-size: 14px; line-height: 20px; font-weight: 600; }
.dl-opt { font-weight: 400; color: var(--ink-muted); }
.dl-input, .dl-select, .dl-textarea { width: 100%; min-height: var(--control-height); padding: 11px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font-size: 16px; line-height: 24px; }
.dl-textarea { min-height: 104px; resize: vertical; }
.dl-input::placeholder, .dl-textarea::placeholder { color: var(--ink-muted); opacity: 1; }
.dl-input:focus-visible, .dl-select:focus-visible, .dl-textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.dl-input:disabled, .dl-select:disabled, .dl-textarea:disabled { opacity: .55; }
.dl-select-wrap { position: relative; }
.dl-select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.dl-select-wrap > .dl-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-muted); }
.dl-hint { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.dl-field.is-invalid .dl-input { border: 2px solid var(--danger); padding: 10px 13px; }
.dl-error { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--danger); }
.dl-error .dl-icon { width: 18px; height: 18px; margin-top: 1px; }
.dl-input-group { position: relative; }
.dl-input-group .dl-input { padding-right: 52px; }
.dl-input-group .dl-iconbtn { position: absolute; right: 2px; top: 2px; }
.dl-reveal { display: grid; gap: 6px; padding: 12px; border-radius: var(--radius-md); background: var(--surface-sunken); }
.dl-reveal[hidden] { display: none; }
.dl-split { display: grid; gap: var(--space-4); }
@container app (min-width: 520px) { .dl-split { grid-template-columns: 1fr 1fr; } }

/* Photo upload */
.dl-upload { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px; border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md); color: var(--ink); font-weight: 600; cursor: pointer; }
.dl-upload:hover { background: var(--surface-sunken); }
.dl-upload:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.dl-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dl-upload__sub { display: block; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--ink-muted); }
.dl-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.dl-thumb { position: relative; width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--surface-raised); border: 1px solid var(--line); overflow: hidden; }
.dl-thumb svg { width: 100%; height: 100%; display: block; }
.dl-thumb .dl-iconbtn { position: absolute; top: -10px; right: -10px; transform: scale(.7); }

/* ---------- Status pill ---------- */
.dl-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 14px 4px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface-sunken); color: var(--ink); font-size: 15px; line-height: 20px; font-weight: 650; white-space: nowrap; }
.dl-pill__dot { position: relative; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--primary); }
.dl-pill--live { background: var(--signal-soft); border-color: transparent; color: var(--signal-ink); }
.dl-pill--live .dl-pill__dot { background: var(--signal); }
.dl-pill--live .dl-pill__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--signal); animation: dl-lamp 1.6s ease-out infinite; }
.dl-pill--ended { color: var(--ink-muted); }
.dl-pill--ended .dl-pill__dot { background: transparent; border: 2px solid var(--ink-muted); }
.dl-pill--lg { min-height: 48px; padding: 10px 22px 10px 18px; font-size: 19px; line-height: 24px; gap: 12px; }
.dl-pill--lg .dl-pill__dot { width: 12px; height: 12px; }
@keyframes dl-lamp { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.7); } }

/* ---------- Tags: confirmed vs typical ---------- */
.dl-tag { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 1px 8px; border-radius: var(--radius-sm);
  font-size: 12px; line-height: 18px; font-weight: 650; white-space: nowrap; }
.dl-tag .dl-icon { width: 14px; height: 14px; stroke-width: 2.25; }
.dl-tag--confirmed { background: var(--primary-soft); color: var(--primary-text); }
.dl-tag--typical { border: 1.5px dashed var(--line-strong); color: var(--ink-muted); padding: 0 7px; }
.dl-tag--neutral { background: var(--surface-sunken); color: var(--ink-muted); }

/* ---------- Readiness meter ---------- */
.dl-ready { display: grid; gap: 12px; }
.dl-ready__line { font-size: 17px; line-height: 25px; }
.dl-ready__line strong { font-weight: 700; }
.dl-meter { display: flex; gap: 3px; height: 14px; }
.dl-meter__seg { flex: 1; border-radius: 3px; }
.dl-meter__seg.is-confirmed { background: var(--primary); }
.dl-meter__seg.is-typical { background: repeating-linear-gradient(135deg, var(--line-strong) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.dl-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.dl-legend__key { display: inline-flex; align-items: center; gap: 6px; }
.dl-legend__swatch { width: 16px; height: 10px; border-radius: 2px; }
.dl-verdict { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--primary-text); }
.dl-verdict--caution { color: var(--signal-ink); }

/* ---------- Status card ---------- */
.dl-status { display: grid; gap: var(--space-4); padding: 20px; border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--surface-raised); color: var(--ink); }
.dl-status--live, .dl-status--preparing { border-color: transparent; box-shadow: var(--shadow-lift); }
.dl-status__head { display: grid; gap: 6px; }
.dl-status__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dl-status__name { font-size: 30px; line-height: 34px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.dl-status__title { font-size: 22px; line-height: 28px; font-weight: 750; letter-spacing: -.01em; }
.dl-status__text { font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.dl-status__actions { display: grid; gap: 10px; }
.dl-number { font-variant-numeric: tabular-nums; }
@container app (min-width: 960px) { .dl-status { padding: 28px; } .dl-status__name { font-size: 40px; line-height: 44px; } }

/* Preparing: progress + log */
.dl-progress { display: grid; gap: 8px; }
.dl-progress__bar { height: 6px; border-radius: var(--radius-pill); background: var(--surface-sunken); overflow: hidden; }
.dl-progress__fill { height: 100%; border-radius: inherit; background: var(--signal); transition: width 700ms var(--ease-out); }
.dl-progress__meta { display: flex; justify-content: space-between; font-size: 13px; line-height: 18px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.dl-log { list-style: none; padding: 0; display: grid; gap: 10px; }
.dl-log li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; line-height: 20px; color: var(--ink-muted); }
.dl-log li .dl-icon { margin-top: 0; }
.dl-log li.is-done { color: var(--ink); }
.dl-log li.is-done .dl-icon { color: var(--primary); }
.dl-log li.is-current { color: var(--ink); font-weight: 650; }
.dl-log li.is-current .dl-icon { color: var(--signal); }
.dl-log li.is-new { animation: dl-logline 280ms var(--ease-out) both; }
@keyframes dl-logline { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Notices ---------- */
.dl-notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-md); font-size: 14px; line-height: 20px; }
.dl-notice .dl-icon { margin-top: 0; }
.dl-notice strong { font-weight: 700; }
.dl-notice--error { background: var(--danger-soft); color: var(--danger); }
.dl-notice--caution { background: var(--signal-soft); color: var(--signal-ink); }
.dl-notice--info { background: var(--surface-sunken); color: var(--ink); }

/* ---------- Test call in browser ---------- */
.dl-testcall { display: grid; gap: 10px; }
.dl-callbar { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 6px 6px 16px; border-radius: var(--radius-md); background: var(--signal-soft); color: var(--signal-ink); font-weight: 650; }
.dl-callbar__time { font-variant-numeric: tabular-nums; }
.dl-callbar .dl-btn { margin-left: auto; }
.dl-level { display: inline-flex; align-items: center; gap: 2px; height: 18px; }
.dl-level i { display: block; width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: center; animation: dl-level 900ms ease-in-out infinite alternate; }
.dl-level i:nth-child(2) { animation-delay: -300ms; } .dl-level i:nth-child(3) { animation-delay: -600ms; } .dl-level i:nth-child(4) { animation-delay: -150ms; }
@keyframes dl-level { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.dl-callnote { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* ---------- Lists (questions, calls & bookings) ---------- */
.dl-list { list-style: none; padding: 0; border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); }
.dl-list > li { display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; padding: 14px 16px; }
.dl-list > li + li { border-top: 1px solid var(--line); }
.dl-list__icon { grid-row: 1 / 4; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-sunken); color: var(--ink-muted); }
.dl-list__icon--booking { background: var(--primary-soft); color: var(--primary-text); }
.dl-list__title { font-weight: 650; }
.dl-list__meta { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.dl-list__link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -6px 0 -12px; color: var(--primary-text); font-weight: 650; font-size: 15px; text-decoration: none; }
.dl-list__link:hover { text-decoration: underline; }
.dl-questions { list-style: none; padding: 0; display: grid; }
.dl-questions li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; font-size: 18px; line-height: 26px; font-weight: 600; }
.dl-questions li + li { border-top: 1px solid var(--line); }
.dl-questions .dl-icon { margin-top: 3px; color: var(--primary); }
.dl-empty { padding: 24px 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); text-align: center; color: var(--ink-muted); font-size: 15px; line-height: 22px; }

/* ---------- Disclosure ---------- */
.dl-disclosure { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-raised); }
.dl-disclosure > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; cursor: pointer; font-weight: 650; border-radius: var(--radius-lg); }
.dl-disclosure > summary::-webkit-details-marker { display: none; }
.dl-disclosure > summary .dl-chev { margin-left: auto; color: var(--ink-muted); transition: transform var(--dur-base) var(--ease-out); }
.dl-disclosure[open] > summary .dl-chev { transform: rotate(180deg); }
.dl-disclosure__sub { display: block; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--ink-muted); }
.dl-disclosure__body { display: grid; gap: 28px; padding: 20px 16px; border-top: 1px solid var(--line); }
.dl-disclosure--plain { background: transparent; border-style: dashed; border-color: var(--line-strong); }

/* Profile editor */
.dl-svc { list-style: none; padding: 0; display: grid; }
.dl-svc > li { display: grid; grid-template-columns: 1fr 44px; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.dl-svc__fields { display: grid; gap: 8px; }
.dl-svc__row { display: flex; align-items: center; gap: 8px; }
.dl-svc .dl-input { min-height: 44px; padding: 9px 12px; }
.dl-svc .dl-iconbtn { align-self: start; }
.dl-hours { display: grid; gap: 8px; }
.dl-hours__row { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 8px; align-items: center; }
.dl-hours__day { font-weight: 650; font-size: 15px; }
.dl-hours .dl-input { min-height: 44px; padding: 9px 10px; }
.dl-faq { list-style: none; padding: 0; display: grid; gap: 12px; }
.dl-faq li { display: grid; gap: 2px; font-size: 15px; line-height: 22px; }
.dl-faq b { font-weight: 650; }
.dl-faq span { color: var(--ink-muted); }

/* ---------- Footer ---------- */
.dl-footer { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.dl-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; }
.dl-link:hover { text-decoration: underline; }
.dl-link .dl-icon { color: var(--ink-muted); }
.dl-fineprint { font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* ---------- Sheet (confirm) ---------- */
.dl-scrim { position: absolute; inset: 0; background: rgba(13, 26, 22, .5); display: flex; align-items: flex-end; }
.dl-sheet { width: 100%; display: grid; gap: var(--space-4); padding: 24px 20px 28px; border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: var(--surface-raised); box-shadow: var(--shadow-lift); }
.dl-sheet__title { font-size: 20px; line-height: 26px; font-weight: 750; }
.dl-sheet__actions { display: grid; gap: 10px; }

/* ---------- Audio player ---------- */
.dl-player { display: flex; align-items: center; gap: 12px; padding: 4px 16px 4px 4px; border-radius: var(--radius-pill); background: var(--surface-sunken); }
.dl-player__btn { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); cursor: pointer; }
.dl-player__seek { flex: 1; min-width: 0; accent-color: var(--primary); height: 24px; }
.dl-player__time { font-size: 13px; line-height: 18px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- History ---------- */
.dl-history { list-style: none; padding: 0; }
.dl-demo { border-bottom: 1px solid var(--line); }
.dl-demo > summary { list-style: none; display: grid; grid-template-columns: 1fr auto 20px; gap: 2px 12px; align-items: center; min-height: 72px; padding: 14px 0; cursor: pointer; }
.dl-demo > summary::-webkit-details-marker { display: none; }
.dl-demo__name { font-size: 17px; line-height: 24px; font-weight: 700; }
.dl-demo__date { grid-column: 1; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.dl-demo__counts { grid-row: 1 / 3; grid-column: 2; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.dl-demo > summary .dl-chev { grid-row: 1 / 3; grid-column: 3; color: var(--ink-muted); transition: transform var(--dur-base) var(--ease-out); }
.dl-demo[open] > summary .dl-chev { transform: rotate(180deg); }
.dl-demo__body { display: grid; gap: 20px; padding: 0 0 24px; }
.dl-callitem { display: grid; gap: 12px; padding: 16px; border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); }
.dl-callitem__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; line-height: 20px; }
.dl-callitem__when { font-weight: 650; }
.dl-callitem__from { color: var(--ink-muted); }
.dl-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; line-height: 22px; }
.dl-facts dt { color: var(--ink-muted); }
.dl-facts dd { font-weight: 600; }
.dl-toggle > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--primary-text); font-weight: 650; font-size: 15px; cursor: pointer; }
.dl-toggle > summary::-webkit-details-marker { display: none; }
.dl-toggle > summary .dl-chev { transition: transform var(--dur-base) var(--ease-out); }
.dl-toggle[open] > summary .dl-chev { transform: rotate(180deg); }

/* ---------- Transcript ---------- */
.dl-transcript { display: flex; flex-direction: column; gap: 18px; overflow-y: auto; overscroll-behavior: contain; }
.dl-turn { display: grid; gap: 6px; max-width: 80%; }
.dl-turn--agent { align-self: flex-start; justify-items: start; }
.dl-turn--caller { align-self: flex-end; justify-items: end; }
.dl-turn__who { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 18px; font-weight: 650; color: var(--ink-muted); }
.dl-avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: 12px; line-height: 1; font-weight: 800; }
.dl-bubble { padding: 14px 18px; border-radius: 20px; font-size: 20px; line-height: 30px; transition: color var(--dur-base); }
.dl-turn--agent .dl-bubble { background: var(--surface-raised); border-top-left-radius: 6px; }
.dl-turn--caller .dl-bubble { border: 1.5px solid var(--line-strong); border-top-right-radius: 6px; }
.dl-bubble.is-partial { color: var(--ink-muted); }
.dl-bubble.is-partial::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 4px; vertical-align: -.12em; background: currentColor; animation: dl-caret 1s steps(2, start) infinite; }
@keyframes dl-caret { to { visibility: hidden; } }
.dl-toolnote { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink-muted); font-size: 15px; line-height: 20px; font-weight: 600; }
.dl-toolnote .dl-icon { width: 18px; height: 18px; }
.dl-toolnote.is-done .dl-icon { color: var(--primary); }
.dl-transcript--compact { gap: 10px; }
.dl-transcript--compact .dl-turn { max-width: 88%; }
.dl-transcript--compact .dl-bubble { padding: 9px 13px; font-size: 15px; line-height: 22px; border-radius: 16px; }
.dl-transcript--compact .dl-turn--agent .dl-bubble { background: var(--surface-sunken); }
.dl-transcript--compact .dl-toolnote { font-size: 13px; padding: 4px 10px; }
.dl-transcript--compact .dl-turn__who { font-size: 13px; }

/* ---------- Live Screen ---------- */
.dl-live { height: 100%; min-height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--bg); color: var(--ink); overflow: hidden; }
.dl-live__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 24px; padding: 36px 48px 24px; border-bottom: 1px solid var(--line); }
.dl-live__name { font-size: 72px; line-height: 1; font-weight: 800; letter-spacing: -.03em; overflow-wrap: anywhere; }
.dl-live__name.is-long { font-size: 56px; }
.dl-live__caption { margin-top: 12px; font-size: 20px; line-height: 28px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.dl-live__head .dl-pill { margin-top: 10px; }
.dl-live__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 38%); min-height: 0; }
.dl-live__main { min-height: 0; display: grid; }
.dl-live__main .dl-transcript { padding: 28px 40px 40px 48px; }
.dl-live__side { min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 16px; padding: 28px 48px 32px 8px; }
.dl-live__label { font-size: 15px; line-height: 20px; font-weight: 650; color: var(--ink-muted); }
.dl-live__empty { margin: auto; max-width: 440px; display: grid; justify-items: center; gap: 16px; text-align: center; color: var(--ink-muted); font-size: 20px; line-height: 30px; }
.dl-live__empty .dl-icon { width: 40px; height: 40px; stroke-width: 1.5; }
@media (max-width: 1100px) { .dl-live__head { padding: 28px 32px 20px; } .dl-live__main .dl-transcript { padding: 24px 28px 32px 32px; } .dl-live__side { padding: 24px 32px 28px 4px; } }

/* Appointment slot + booking card: the signature moment */
.dl-slot { min-height: 300px; display: grid; justify-items: center; align-content: center; gap: 14px; padding: 32px; border: 2px dashed var(--line); border-radius: var(--radius-xl); text-align: center; color: var(--ink-muted); font-size: 18px; line-height: 26px; }
.dl-slot .dl-icon { width: 36px; height: 36px; stroke-width: 1.5; }
.dl-booking { position: relative; display: grid; gap: 20px; padding: 28px; border-radius: var(--radius-xl); background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-lift); }
.dl-booking__flag { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; line-height: 24px; font-weight: 750; color: var(--primary-text); }
.dl-booked-mark { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.dl-booked-mark .dl-icon { width: 20px; height: 20px; stroke-width: 2.5; }
.dl-booked-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--signal); opacity: 0; pointer-events: none; }
.dl-booking__when { display: grid; font-size: 44px; line-height: 48px; font-weight: 800; letter-spacing: -.025em; }
.dl-booking__day { font-size: 22px; line-height: 28px; font-weight: 650; letter-spacing: -.01em; color: var(--ink-muted); }
.dl-booking__service { padding-top: 18px; border-top: 1px solid var(--line); font-size: 20px; line-height: 28px; font-weight: 650; }
.dl-booking__facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 17px; line-height: 24px; }
.dl-booking__facts dt { color: var(--ink-muted); }
.dl-booking__facts dd { font-weight: 600; }
.dl-booking--compact { gap: 14px; padding: 20px; }
.dl-booking--compact .dl-booking__when { font-size: 24px; line-height: 30px; }
.dl-booking--compact .dl-booking__day { font-size: 15px; line-height: 20px; }

.dl-booking.is-arriving { animation: dl-land var(--dur-land) var(--ease-land) both; }
.dl-booking.is-arriving .dl-booking__when { animation: dl-rise 520ms 180ms var(--ease-out) both; }
.dl-booking.is-arriving .dl-booking__service,
.dl-booking.is-arriving .dl-booking__facts { animation: dl-rise 480ms 320ms var(--ease-out) both; }
.dl-booking.is-arriving .dl-booked-mark path { stroke-dasharray: 22; stroke-dashoffset: 22; animation: dl-draw 320ms 380ms ease-out forwards; }
.dl-booking.is-arriving .dl-booked-ring { animation: dl-ring 900ms 560ms ease-out both; }
@keyframes dl-land { 0% { opacity: 0; transform: translateY(40px) scale(.94); } 55% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes dl-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes dl-draw { to { stroke-dashoffset: 0; } }
@keyframes dl-ring { 0% { opacity: .95; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes dl-fade { from { opacity: 0; } }

/* After-call summary (closes the transcript) */
.dl-summary { align-self: stretch; display: grid; gap: 12px; margin-top: 8px; padding: 24px; border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--surface-sunken); }
.dl-summary__title { font-size: 17px; line-height: 24px; font-weight: 750; }
.dl-summary__text { font-size: 20px; line-height: 30px; }
.dl-summary__note { font-size: 15px; line-height: 20px; color: var(--ink-muted); }
.dl-summary__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dl-summary.is-arriving { animation: dl-rise 420ms var(--ease-out) both; }

/* ---------- Sign in ---------- */
.dl-signin { min-height: 100%; display: grid; align-content: center; gap: 32px; max-width: 400px; margin: 0 auto; padding: 64px 16px; }
.dl-agency { display: flex; align-items: center; gap: 12px; }
.dl-agency__logo { width: 48px; height: 48px; border-radius: var(--radius-md); border: 1.5px dashed var(--line-strong); display: grid; place-items: center; font-size: 10px; line-height: 12px; text-align: center; color: var(--ink-muted); }
.dl-agency__name { font-size: 18px; line-height: 24px; font-weight: 750; }
.dl-signin__title { font-size: 30px; line-height: 34px; font-weight: 800; letter-spacing: -.02em; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .dl-booking.is-arriving { animation: dl-fade 160ms linear both !important; }
  .dl-pill--live .dl-pill__dot::after, .dl-booked-ring, .dl-bubble.is-partial::after { display: none; }
  .dl-spin { animation: none !important; }
  .dl-level i { animation: none !important; transform: scaleY(.6); }
}
