/* AI Receptionist demo: mock customer website + chat widget + behind-the-scenes trace */
.site{border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;background:var(--surface);box-shadow:var(--shadow);position:relative;min-height:640px;display:flex;flex-direction:column}
.site .chrome{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--surface-3);border-bottom:1px solid var(--border);font-size:12px;color:var(--ink-3)}
.site .chrome i{width:10px;height:10px;border-radius:50%;background:#CBD3DE;display:inline-block}
.site .chrome .url{flex:1;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:3px 10px;margin-left:6px;font-family:var(--mono);font-size:11.5px}
.site .bw-head{display:flex;align-items:center;gap:10px;padding:14px 20px;border-bottom:1px solid var(--border)}
.site .bw-logo{width:30px;height:30px;border-radius:8px;background:#1F5F8B;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:14px}
.site .bw-name{font-weight:700;font-size:15px;color:#1F3A52}
.site .bw-head .sp{flex:1}
.site .bw-phone{font-weight:600;color:#1F5F8B;font-size:13.5px}
.site .bw-hero{padding:28px 20px 20px;max-width:46%;}
.site .bw-hero h2{font-size:24px;line-height:1.2;color:#1F3A52;letter-spacing:-.01em}
.site .bw-hero p{color:var(--ink-2);font-size:13.5px;margin:10px 0 14px}
.site .bw-hero .pill{display:inline-block;font-size:12px;border:1px solid var(--border);border-radius:14px;padding:3px 10px;margin:0 6px 6px 0;color:var(--ink-2)}
.site .bw-blocks{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0 20px 20px;max-width:50%}
.site .bw-blocks div{height:70px;border-radius:8px;background:var(--surface-3)}
/* widget */
.cw{position:absolute;right:16px;bottom:16px;top:112px;width:min(380px,calc(100% - 32px));background:var(--surface);border:1px solid var(--border-strong);border-radius:14px;box-shadow:0 12px 32px rgba(16,24,40,.18);display:flex;flex-direction:column;overflow:hidden}
.cw-h{background:#1F3A52;color:#fff;padding:12px 14px;display:flex;align-items:center;gap:10px}
.cw-h .av{width:30px;height:30px;border-radius:50%;background:#2F78AB;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px}
.cw-h b{display:block;font-size:13.5px} .cw-h small{font-size:11.5px;color:#BFD3E4}
.cw-h small::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#4ADE80;margin-right:5px}
.cw-body{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px;background:var(--surface-2)}
.msg{max-width:85%;padding:9px 12px;border-radius:12px;font-size:13.5px;line-height:1.45;white-space:pre-wrap}
.msg.a{background:var(--surface);border:1px solid var(--border);align-self:flex-start;border-bottom-left-radius:4px}
.msg.c{background:#2F78AB;color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.msg.s{align-self:center;background:none;color:var(--ink-3);font-size:11.5px;max-width:95%;text-align:center}
.msg.typing{color:var(--ink-3)} .msg.typing span{animation:blink 1s infinite} .msg.typing span:nth-child(2){animation-delay:.2s} .msg.typing span:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,100%{opacity:.25}50%{opacity:1}}
.chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 10px;background:var(--surface-2);max-height:132px;overflow-y:auto}
.chips:empty{padding:0}
.chips button{border:1px solid #9CC0DC;background:var(--surface);color:#1F5F8B;border-radius:14px;padding:5px 11px;font-size:12.5px;cursor:pointer}
.chips button:hover{background:#EEF5FB}
.cw-in{display:flex;gap:8px;padding:10px;border-top:1px solid var(--border);background:var(--surface)}
.cw-in input{flex:1;border:1px solid var(--border-strong);border-radius:18px;padding:8px 14px;font-size:13.5px}
.cw-in button{border:0;background:#2F78AB;color:#fff;border-radius:18px;padding:0 16px;font-weight:600;cursor:pointer}
.cw-foot{font-size:10.5px;color:var(--ink-3);text-align:center;padding:0 10px 8px;background:var(--surface)}
/* trace */
.trace{display:flex;flex-direction:column;gap:10px;max-height:560px;overflow-y:auto}
.tr{border:1px solid var(--border);border-radius:var(--r);padding:10px 12px;font-size:12.5px;background:var(--surface-2)}
.tr .q{font-weight:600;color:var(--ink);margin-bottom:6px}
.tr dl{display:grid;grid-template-columns:92px 1fr;gap:3px 8px;margin:0}
.tr dt{color:var(--ink-3)} .tr dd{margin:0;color:var(--ink-2)}
.tr .rule{display:inline-block;margin-top:6px;font-size:11.5px;font-weight:600;color:#0A4A8F;background:var(--info-bg);border-radius:4px;padding:1px 7px}
/* transcript (inbox) */
.tx{display:flex;flex-direction:column;gap:8px;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--r);padding:14px;max-height:520px;overflow-y:auto}
/* schedule */
.sched{table-layout:fixed;min-width:760px}.sched th:first-child,.sched td:first-child{width:24%}
.slot{border-radius:5px;padding:5px 8px;font-size:12px;line-height:1.35}
.slot.office{background:var(--surface-3);color:var(--ink-2)}
.slot.ai-pending{background:var(--warn-bg);color:#6E3F00;border:1px dashed #E0B36A}
.slot.ai-booked{background:var(--ok-bg);color:#0D5E37}
.slot.open{color:var(--ink-3)} .slot.past{color:#B8C1CD}
.slot a{color:inherit;font-weight:600}
.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--ink-3)}
.legend span::before{content:"";display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:-2px;background:var(--c);border:1px solid var(--b,var(--border-strong))}
/* toggle */
.tog{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--border)}
.tog:last-child{border-bottom:0}
.tog input{margin-top:3px;width:16px;height:16px}
.tog b{font-size:13.5px} .tog p{margin:2px 0 0;font-size:12.5px;color:var(--ink-3)}
@media(max-width:1100px){.site .bw-hero,.site .bw-blocks{max-width:100%}.site .bw-blocks{display:none}.cw{position:relative;right:auto;bottom:auto;top:auto;width:auto;margin:0 12px 12px;height:560px}}

#kv{grid-template-columns:repeat(3,1fr)}
@media(max-width:700px){#kv{grid-template-columns:1fr}}
.chans{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.chans span{font-size:12.5px;font-weight:600;background:var(--primary-soft);color:var(--primary);border-radius:999px;padding:3px 10px}
.cl-row{display:grid;grid-template-columns:96px 1fr 90px 150px;gap:10px;align-items:center;padding:11px 14px;border-bottom:1px solid var(--border);cursor:pointer;font-size:14px;background:none;border-left:0;border-right:0;border-top:0;width:100%;text-align:left;font:inherit;color:var(--ink)}
.cl-row:hover,.cl-row.on{background:var(--primary-soft)}.cl-row .m{color:var(--ink-3);font-size:12.5px}
.tx{display:flex;flex-direction:column;gap:8px}.tx .u{align-self:flex-start;background:var(--surface-3);border-radius:12px 12px 12px 4px;padding:9px 12px;max-width:85%;font-size:14px}
.tx .a{align-self:flex-end;background:var(--primary-soft);border-radius:12px 12px 4px 12px;padding:9px 12px;max-width:85%;font-size:14px}
.tx small{display:block;color:var(--ink-3);font-size:11.5px;margin-bottom:2px}
.lsw{display:inline-flex;gap:2px;background:var(--surface-3);border-radius:999px;padding:3px}.lsw button{border:0;background:none;font:inherit;font-size:13px;font-weight:600;padding:4px 12px;border-radius:999px;cursor:pointer;color:var(--ink-2)}.lsw button.on{background:var(--surface);color:var(--primary)}
@media(max-width:760px){.cl-row{grid-template-columns:1fr 1fr}}
