/* AI receptionist demo. Builds on /css/site.css (tokens, .win, .chip, .card, .btn). Mock data only. */

/* ---------- page furniture ---------- */
.rx-hero { padding-block: clamp(48px, 7vw, 96px) clamp(8px, 2vw, 24px); }
.rx-hero h1 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.9rem); margin-bottom: 22px; }
.rx-hero h1 .grad { display: block; }
.rx-hero .lead { max-width: 60ch; }
.rx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.rx-sec { padding-block: clamp(40px, 6vw, 84px); }
.rx-listen .wrap, #try .wrap { max-width: 1340px; }
.rx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 26px; flex-wrap: wrap; }
.rx-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.rx-head .kicker { margin-bottom: 14px; }
.rx-head-note { max-width: 44ch; font-size: .92rem; }
.rx-win { border-radius: var(--r-lg); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(88,224,216,.5); animation: rx-pulse 1.6s infinite; flex: none; display: inline-block; }
@keyframes rx-pulse { 70% { box-shadow: 0 0 0 7px rgba(88,224,216,0); } 100% { box-shadow: 0 0 0 0 rgba(88,224,216,0); } }
@keyframes rx-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes rx-flash { from { background: var(--accent-dim); } }

/* ---------- the app: call on the left, dashboard on the right ---------- */
.rx-app { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.rx-call { padding: 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rx-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.rx-picker button { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--text-3); font: 500 .78rem var(--font); cursor: pointer; }
.rx-picker button[aria-pressed="true"] { background: var(--bg-3); color: var(--text); border-color: var(--line-2); }
.rx-call-head { display: flex; align-items: center; gap: 12px; }
.rx-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text); font: 600 .8rem var(--font); flex: none; }
.rx-call-id { display: grid; min-width: 0; flex: 1; }
.rx-call-id strong { color: var(--text); font-size: .95rem; font-variant-numeric: tabular-nums; }
.rx-call-id span { font-size: .76rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rx-player { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.rx-play { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: 0 0 0 6px var(--accent-dim), 0 8px 26px -6px rgba(88,224,216,.6); transition: transform .2s var(--ease), background .2s; }
.rx-play:hover { background: var(--accent-2); transform: scale(1.05); }
.rx-play svg { width: 22px; height: 22px; }
.rx-play .i-pause, .rx-play.is-playing .i-play { display: none; }
.rx-play.is-playing .i-pause { display: block; }
.rx-player-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rx-time { font-size: .86rem; color: var(--text); }
.rx-speaking { display: flex; align-items: center; gap: 7px; font-size: .76rem; color: var(--text-3); }
.rx-sp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.rx-speaking[data-who="ai"] { color: var(--accent); } .rx-speaking[data-who="ai"] .rx-sp-dot { background: var(--accent); }
.rx-speaking[data-who="caller"] { color: var(--text); } .rx-speaking[data-who="caller"] .rx-sp-dot { background: var(--text); }
.rx-level { width: 96px; height: 34px; flex: none; }

.rx-wave { position: relative; height: 62px; border-radius: 8px; }
.rx-wave canvas { position: absolute; inset: 8px 0 0; width: 100%; height: calc(100% - 8px); }
.rx-wave-marks { position: absolute; inset: 0 0 auto; height: 6px; }
.rx-wave-marks span { position: absolute; top: 0; width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; }
.wm-ghost { background: var(--line-2); }
.wm { background: var(--accent); box-shadow: 0 0 8px var(--accent); z-index: 1; }
.rx-wave input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rx-wave:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.rx-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .66rem; color: var(--text-2); }
.rx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rx-legend i { width: 8px; height: 8px; border-radius: 2px; }
.lg-ai { background: var(--accent); } .lg-caller { background: #c9cdd4; }

.rx-transcript { position: relative; flex: 1 1 0; min-height: 230px; overflow-y: auto; display: grid; align-content: start; gap: 8px; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent; }
.rx-empty { font-size: .86rem; color: var(--text-3); padding: 28px 8px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; }
.tr-line { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); animation: rx-in .35s var(--ease); transition: border-color .25s, background .25s; }
.tr-line.is-caller { margin-left: 22px; }
.tr-line.is-ai { margin-right: 22px; }
.tr-line.active { border-color: var(--accent-line); background: var(--accent-dim); }
.tr-meta { display: flex; justify-content: space-between; font: 500 .66rem var(--mono); color: var(--text-3); margin-bottom: 3px; }
.is-ai .tr-who { color: var(--accent); }
.tr-line p { font-size: .88rem; line-height: 1.45; color: var(--text); }
.rx-caption { font: 500 .7rem var(--mono); color: var(--text-3); }

/* ---------- dashboard ---------- */
.rx-dash { min-width: 0; background: var(--bg); }
.rx-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.rx-dash-title { display: flex; align-items: center; gap: 10px; }
.rx-logo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(140deg, #1d4f8f, #2a7bd6); color: #fff; font: 700 .72rem var(--font); }
.rx-dash-title div { display: grid; }
.rx-dash-title strong { color: var(--text); font-size: .9rem; }
.rx-dash-title .mono { font-size: .66rem; color: var(--text-3); }
.rx-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.rx-tabs button { padding: 6px 11px; border: 0; border-radius: 7px; background: none; color: var(--text-3); font: 500 .8rem var(--font); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.rx-tabs button:hover { color: var(--text); }
.rx-tabs button[aria-selected="true"] { background: var(--bg-3); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }
.rx-count { font: 500 .66rem var(--mono); padding: 1px 6px; border-radius: 99px; background: var(--accent-dim); color: var(--accent); }
.rx-panel { padding: 16px 18px 18px; display: grid; gap: 14px; align-content: start; }

.strip-in { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-1); font-size: .84rem; animation: rx-in .3s var(--ease); }
.strip-in strong { color: var(--text); }
.strip-in.live { border-color: var(--accent-line); background: var(--accent-dim); }
.strip-in.done { border-color: rgba(76,195,138,.3); }
.s-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); } .s-dot.ok { background: var(--good); }
.s-r { margin-left: auto; font-size: .76rem; }

.tgrid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); gap: 14px; }
.tgrid .recent { grid-column: 1 / -1; }
.pcard { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); padding: 14px; min-width: 0; }
.pc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: .82rem; font-weight: 600; color: var(--text); }
.pc-h .mono { font-size: .66rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.pc-empty { font-size: .82rem; color: var(--text-3); padding: 8px 0; }
.pc-link { background: none; border: 0; color: var(--accent); font: 500 .76rem var(--font); cursor: pointer; }
.pc-link:hover { text-decoration: underline; }

.flist, .rx-did-list { list-style: none; padding: 0; margin: 0; }
.f-item, .d-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); animation: rx-in .4s var(--ease); }
.f-item:first-child, .d-item:first-child { border-top: 0; }
.f-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line); color: var(--text-2); }
.f-ic svg { width: 14px; height: 14px; }
.k-booking .f-ic { color: var(--good); border-color: rgba(76,195,138,.3); }
.k-lead .f-ic, .k-ring .f-ic { color: var(--accent); border-color: var(--accent-line); }
.f-body { display: grid; gap: 1px; min-width: 0; }
.f-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.f-body strong { font-size: .83rem; font-weight: 550; color: var(--text); }
.f-meta { font-size: .76rem; color: var(--text-3); line-height: 1.4; }
.f-t { font: 500 .66rem var(--mono); color: var(--text-3); padding-top: 4px; }
.f-top .chip { font-size: .62rem; padding: 1px 6px; }

/* week calendar */
.pcard.calc { display: flex; flex-direction: column; }
.cal { display: grid; grid-template-columns: 18px repeat(5, minmax(0, 1fr)); gap: 4px; flex: 1; min-height: 300px; }
.cal-col, .cal-hours { display: flex; flex-direction: column; min-width: 0; }
.cal-day { height: 22px; font: 500 .64rem var(--mono); color: var(--text-3); text-align: center; white-space: nowrap; }
.cal-col.today .cal-day { color: var(--accent); }
.cal-body { position: relative; flex: 1; border-radius: 6px; background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px calc(100% / 9)), rgba(255,255,255,.015); }
.cal-col.today .cal-body { background-color: rgba(88,224,216,.04); }
.cal-hbody { flex: 1; display: grid; grid-template-rows: repeat(9, 1fr); }
.cal-hbody span { font: 500 .58rem var(--mono); color: var(--text-3); text-align: right; transform: translateY(-5px); }
.cal-b { position: absolute; left: 2px; right: 2px; top: calc(var(--s) * 100% + 1px); height: calc(var(--h) * 100% - 2px); padding: 2px 5px; border-radius: 4px; background: var(--bg-3); border-left: 2px solid var(--text-3); overflow: hidden; display: grid; align-content: start; line-height: 1.25; }
.cal-b span { font: 500 .56rem var(--mono); color: var(--text-3); }
.cal-b b { font-size: .62rem; font-weight: 500; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-b.past { opacity: .45; }
.cal-b.offer { background: var(--accent-dim); border: 1px dashed var(--accent); animation: rx-in .3s var(--ease), rx-blink 1.2s ease-in-out infinite; }
.cal-b.offer b, .cal-b.offer span { color: var(--accent); }
.cal-b.new { background: var(--accent); border-left-color: #fff; box-shadow: 0 0 22px -2px rgba(88,224,216,.7); animation: rx-in .45s var(--ease); z-index: 1; }
.cal-b.new b, .cal-b.new span { color: var(--accent-ink); font-weight: 600; }
@keyframes rx-blink { 50% { opacity: .55; } }
.cal-now { position: absolute; left: -2px; right: -2px; top: calc(var(--s) * 100%); height: 1px; background: var(--bad); z-index: 2; }
.cal-now::before { content: ""; position: absolute; left: -2px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--bad); }

/* text to the caller, email to the owner */
.phone { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); padding: 12px; min-height: 150px; }
.ph-top { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text); padding-bottom: 9px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.ph-av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #2a7bd6; color: #fff; font: 700 .56rem var(--font); }
.ph-stamp { text-align: center; font-size: .6rem; color: var(--text-3); margin: 4px 0 8px; }
.bubble { max-width: 94%; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: #2a2d33; color: var(--text); font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; animation: rx-in .4s var(--ease); }
.ph-rem { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; font-size: .62rem; line-height: 1.5; color: var(--text-3); animation: rx-in .4s var(--ease); }
.ph-rem svg { width: 12px; height: 12px; flex: none; margin-top: 2px; color: var(--warn); }
.mail { animation: rx-in .4s var(--ease); }
.m-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--text-2); }
.m-row span, .m-dl dt { color: var(--text-3); font-size: .74rem; }
.m-row strong { color: var(--text); font-weight: 550; }
.m-dl { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 5px 8px; padding-top: 10px; font-size: .8rem; }
.m-dl dd { color: var(--text); }

/* calls table */
.crow { border-top: 1px solid var(--line); }
.crow.head { border-top: 0; }
.crow-btn { display: grid; grid-template-columns: 74px minmax(0, 1.1fr) minmax(0, 1.3fr) 118px 40px 14px; gap: 12px; align-items: center; width: 100%; padding: 9px 6px; background: none; border: 0; border-radius: 8px; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.crow-btn:hover:not(:disabled) { background: rgba(255,255,255,.03); }
button.crow-btn:disabled { cursor: default; }
.crow.head .crow-btn { font: 500 .64rem var(--mono); color: var(--text-3); cursor: default; padding-block: 4px; }
.crow.head .crow-btn span { font: inherit; color: inherit; }
.c-time { font: 500 .72rem var(--mono); color: var(--text-2); white-space: nowrap; }
.c-time em { font-style: normal; color: var(--text-3); }
.c-who { display: grid; min-width: 0; }
.c-who strong { font-size: .84rem; font-weight: 550; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-who span { font-size: .72rem; color: var(--text-3); }
.c-reason { font-size: .82rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-dur { font: 500 .72rem var(--mono); color: var(--text-3); text-align: right; }
.c-chev { color: var(--text-3); display: grid; }
.c-chev svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.crow-btn[aria-expanded="true"] .c-chev svg { transform: rotate(90deg); }
.crow.is-live { background: var(--accent-dim); border-radius: 8px; border-top-color: transparent; }
.crow[data-new], .lrow[data-new], .arow[data-new] { animation: rx-flash 2.4s ease-out; }
.crow-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; padding: 6px 6px 18px 92px; animation: rx-in .3s var(--ease); }
.cd-label { display: block; font: 500 .64rem var(--mono); color: var(--text-3); margin-bottom: 6px; }
.cd-sum p { font-size: .84rem; color: var(--text-2); }
.cd-tr { display: grid; gap: 6px; }
.cd-tr .tr-line { padding: 7px 10px; animation: none; }
.cd-tr .tr-line p { font-size: .8rem; }

/* leads and bookings */
.lgrid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.lside { display: grid; gap: 14px; }
.lrow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line); border-radius: 6px; }
.llist > :first-child, .alist > :first-child { border-top: 0; }
.l-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line); font: 600 .64rem var(--font); color: var(--text-2); }
.l-who, .a-what { display: grid; min-width: 0; }
.l-who strong, .a-what strong { font-size: .84rem; font-weight: 550; color: var(--text); }
.l-who span, .a-what span { font-size: .72rem; color: var(--text-3); }
.l-when { font: 500 .68rem var(--mono); color: var(--text-3); white-space: nowrap; }
.arow { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--line); border-radius: 6px; }
.a-when { display: grid; font: 500 .68rem var(--mono); color: var(--text-3); }
.a-when b { color: var(--text); font-weight: 500; }
.vm { padding: 10px 0; border-top: 1px solid var(--line); }
.vm-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: .8rem; }
.vm-top strong { color: var(--text); font-weight: 550; }
.vm-top span { font-size: .72rem; }
.vm-r { margin-left: auto; font-family: var(--mono); }
.vm p { font-size: .84rem; color: var(--text-2); margin-top: 4px; }

/* analytics */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); padding: 12px 14px; display: grid; gap: 2px; }
.kpi span { font-size: .72rem; color: var(--text-3); }
.kpi strong { font-size: 1.7rem; line-height: 1.15; letter-spacing: -.03em; font-weight: 600; color: var(--text); }
.kpi em { font-style: normal; font-size: .68rem; color: var(--text-3); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line); }
.chart text { fill: var(--text-3); font: 500 9px var(--mono); }
.chart .b-all { fill: rgba(255,255,255,.13); }
.chart .b-book { fill: var(--accent); opacity: .85; }
.chart .bar:hover .b-all { fill: rgba(255,255,255,.24); }
.chart .today .b-all { fill: rgba(255,255,255,.26); }
.chart text.v { fill: var(--text); }
.lg { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-left: 8px; }
.lg-all { background: rgba(255,255,255,.26); } .lg-book { background: var(--accent); }
.stack { display: flex; gap: 2px; height: 10px; border-radius: 99px; overflow: hidden; margin: 4px 0 12px; }
.olist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
.olist li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto 38px; gap: 8px; align-items: center; font-size: .8rem; }
.olist i { width: 8px; height: 8px; border-radius: 2px; }
.olist b { color: var(--text); font-weight: 550; }
.olist em { font-style: normal; color: var(--text-3); font-size: .72rem; text-align: right; }

/* test-line card under the window */
.rx-test { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-top: 28px; }
.rx-test > div:first-child { flex: 1 1 380px; max-width: 62ch; }
.rx-test-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- the walkthrough ---------- */
.rx-restart { background: none; border: 1px solid var(--line); border-radius: 7px; padding: 4px 10px; color: var(--text-3); font: 500 .7rem var(--mono); cursor: pointer; }
.rx-restart:hover { color: var(--text); border-color: var(--line-2); }
.rx-sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
.rx-chat { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); }
.rx-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: .84rem; color: var(--text); }
.rx-chat-head .mono { margin-left: auto; font-size: .72rem; }
.dot-live.off { background: var(--text-3); box-shadow: none; }
.rx-thread { height: 400px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent; }
.msg { max-width: min(78%, 520px); display: grid; gap: 3px; animation: rx-in .3s var(--ease); }
.msg.from-ai { align-self: flex-start; } .msg.from-you { align-self: flex-end; justify-items: end; }
.msg-who { font: 500 .64rem var(--mono); color: var(--text-3); }
.from-ai .msg-who { color: var(--accent); }
.msg p { padding: 10px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.45; color: var(--text); }
.from-ai p { background: var(--bg-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.from-you p { background: var(--accent-dim); border: 1px solid var(--accent-line); border-bottom-right-radius: 4px; }
.msg p svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; color: var(--warn); }
.typing p { display: inline-flex; gap: 4px; padding: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: rx-type 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes rx-type { 30% { transform: translateY(-4px); background: var(--accent); } 60% { transform: none; } }
.msg-sys { align-self: center; font-size: .66rem; color: var(--text-3); padding: 3px 10px; border: 1px solid var(--line); border-radius: 99px; }
.rx-say { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--line); background: rgba(255,255,255,.015); min-height: 104px; align-content: flex-start; }
.say-prompt { flex-basis: 100%; font: 500 .7rem var(--mono); color: var(--text-3); }
.say-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--accent-line); background: var(--accent-dim); color: var(--text); font: 500 .9rem/1.3 var(--font); text-align: left; cursor: pointer; transition: background .2s, transform .2s var(--ease), border-color .2s; }
.say-btn:hover { background: rgba(88,224,216,.2); border-color: var(--accent); transform: translateY(-1px); }
.say-btn.sys { border-color: var(--line-2); background: var(--bg-3); }
.say-btn.alt { border: 1px dashed var(--line-2); background: none; color: var(--text-2); }
.say-btn.alt:hover { color: var(--text); border-color: var(--text-3); background: rgba(255,255,255,.04); }
.say-btn svg { width: 15px; height: 15px; flex: none; }
.say-btn em { font-style: normal; font-size: .68rem; color: var(--text-3); }
.rx-did { min-width: 0; background: var(--bg); display: flex; flex-direction: column; }
.rx-did-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--text); }
.rx-did-list { padding: 6px 16px 14px; overflow-y: auto; flex: 1; max-height: 500px; }

/* ---------- what is real ---------- */
.rx-real { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.rx-real h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 16px; }
.rx-ticks { gap: 12px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .rx-app { grid-template-columns: minmax(0, 1fr); }
  .rx-call { border-right: 0; border-bottom: 1px solid var(--line); }
  .rx-transcript { flex: none; min-height: 150px; max-height: 240px; }
}
@media (max-width: 760px) {
  .rx-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .rx-call { padding: 16px; }
  .rx-panel { padding: 14px 12px 16px; }
  .rx-dash-head { padding: 12px; }
  .tgrid, .lgrid, .rx-sim, .rx-real { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .olist { grid-template-columns: minmax(0, 1fr); }
  .s-r { margin-left: 0; flex-basis: 100%; }
  .crow-btn { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 8px; }
  .c-reason, .c-dur, .c-chev, .crow.head { display: none; }
  .crow-detail { grid-template-columns: minmax(0, 1fr); padding: 4px 4px 16px; }
  .lrow { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .l-when { display: none; }
  .rx-chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .rx-thread { height: 340px; padding: 14px; }
  .msg { max-width: 88%; }
  .say-btn { flex: 1 1 100%; }
  .rx-level { width: 64px; }
  .rx-test-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .tr-line, .f-item, .d-item, .msg, .bubble, .cal-b, .strip-in, .mail, .ph-rem, .crow-detail { animation: none !important; }
  .live-dot, .typing i { animation: none; }
}
.rx-restart { white-space: nowrap; }
