*{box-sizing:border-box}body{background:#f3f4f6;margin:0}.widget{color:#1f2937;max-width:720px;margin:2rem auto;padding:0 1rem 3rem;font-family:system-ui,-apple-system,Segoe UI,sans-serif}.widget h1{color:#4b5563;font-size:1.25rem;font-weight:500}.tenant-label{color:#9ca3af;margin:-.5rem 0 1rem;font-size:.85rem}.call-card{background:#fff;border-radius:16px;margin-bottom:1.25rem;padding:1.5rem;box-shadow:0 1px 3px #00000014,0 4px 12px #0000000d}.status-row{align-items:center;gap:.6rem;margin-bottom:1rem;display:flex}.status-badge{border-radius:999px;align-items:center;gap:.4rem;padding:.3rem .75rem;font-size:.85rem;font-weight:600;display:inline-flex}.status-dot{border-radius:50%;width:8px;height:8px;display:inline-block}.status-idle{color:#6b7280;background:#f3f4f6}.status-idle .status-dot{background:#9ca3af}.status-listening{color:#1d4ed8;background:#dbeafe}.status-listening .status-dot{background:#3b82f6;animation:1.2s ease-in-out infinite pulse}.status-thinking{color:#b45309;background:#fef3c7}.status-thinking .status-dot{background:#f59e0b;animation:.9s ease-in-out infinite blink}.status-speaking{color:#15803d;background:#dcfce7}.status-speaking .status-dot{background:#22c55e;animation:.8s ease-in-out infinite pulse}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.4)}}@keyframes blink{0%,to{opacity:1}50%{opacity:.3}}.conn-text{color:#9ca3af;margin-left:auto;font-size:.8rem}.audio-level{background:#e5e7eb;border-radius:999px;height:6px;margin-bottom:1.1rem;overflow:hidden}.audio-level-fill{background:#3b82f6;border-radius:999px;height:100%;transition:width 80ms linear}.controls{gap:.6rem;display:flex}.btn{cursor:pointer;border:none;border-radius:10px;padding:.6rem 1.1rem;font-size:.95rem;font-weight:600;transition:opacity .15s}.btn:hover{opacity:.85}.btn-primary{color:#fff;background:#2563eb}.btn-danger{color:#fff;background:#dc2626}.btn-secondary{color:#374151;background:#f3f4f6}.error-banner{color:#991b1b;background:#fee2e2;border-radius:8px;margin-bottom:1rem;padding:.5rem .75rem;font-size:.85rem}.transcript-card{background:#fff;border-radius:16px;max-height:360px;margin-bottom:1.25rem;padding:1.25rem;overflow-y:auto;box-shadow:0 1px 3px #00000014}.transcript-card h2{color:#6b7280;margin-top:0;font-size:1rem}.bubble-row{margin-bottom:.5rem;display:flex}.bubble-row.customer{justify-content:flex-end}.bubble{white-space:pre-wrap;border-radius:14px;max-width:78%;padding:.5rem .8rem;font-size:.92rem;line-height:1.4}.bubble-row.customer .bubble{color:#fff;background:#2563eb;border-bottom-right-radius:4px}.bubble-row.ai .bubble{color:#1f2937;background:#f3f4f6;border-bottom-left-radius:4px}.bubble-row.agent{flex-direction:column;align-items:flex-start}.bubble-label{color:#047857;margin-bottom:.15rem;margin-left:.2rem;font-size:.72rem;font-weight:600}.bubble-row.agent .bubble{color:#065f46;background:#d1fae5;border-bottom-left-radius:4px}.interim{color:#9ca3af;font-size:.85rem;font-style:italic}.interim-reconnecting{color:#b45309;font-style:normal}.stt-reconnect-badge{color:#b45309;background:#fef3c7;border-radius:999px;padding:.2rem .6rem;font-size:.78rem}.metrics-details{background:#fff;border-radius:12px;padding:.9rem 1.25rem;box-shadow:0 1px 3px #0000000f}.metrics-details summary{cursor:pointer;color:#6b7280;font-size:.9rem;font-weight:600}.metrics-table{border-collapse:collapse;width:100%;margin-top:.75rem;font-size:.8rem}.metrics-table th,.metrics-table td{text-align:right;border:1px solid #e5e7eb;padding:.35rem .5rem}.metrics-table th:first-child,.metrics-table td:first-child{text-align:left}
