/* Playground Page Styles */
.playground-hero {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
}

.playground-hero h1 {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
}

.playground-hero p {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

.playground-main {
    padding: 0 0 100px;
}

.playground-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 24px;
    align-items: stretch;
}

.playground-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.playground-right {
    min-width: 0;
}

@media (max-width: 1024px) {
    .playground-layout {
        grid-template-columns: 1fr;
    }
}

.playground-config {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px;
    backdrop-filter: blur(12px);
}

.config-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.config-row .btn {
    width: 100%;
}

.field-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.field-group input,
.field-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.field-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A3A3A3' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.field-group select option {
    background: #111;
    color: var(--text-primary);
}

.field-group input:focus,
.field-group select:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(244, 219, 0, 0.1);
}

/* Voice selector */
.voice-select-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-select-row select {
    flex: 1;
    min-width: 0;
}

.voice-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(244, 219, 0, 0.35);
    flex-shrink: 0;
    background: #000;
}

.voice-avatar.hidden {
    display: none;
}

.voice-preview-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(244, 219, 0, 0.3);
    background: rgba(244, 219, 0, 0.1);
    color: var(--color-blue);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.voice-preview-btn:hover:not(:disabled) {
    background: rgba(244, 219, 0, 0.2);
}

.voice-preview-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.voice-preview-btn.playing {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.35);
    color: #f87171;
}

/* Page-load spotlight on website input */
.website-input-wrap {
    position: relative;
    border-radius: var(--radius-sm);
}

.website-input-wrap.input-spotlight::before {
    content: '';
    position: absolute;
    inset: 22px -5px -5px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-blue);
    opacity: 0;
    pointer-events: none;
    animation: spotlightRing 2.8s ease-in-out 0.4s 2;
}

.website-input-wrap.input-spotlight::after {
    content: '';
    position: absolute;
    inset: 22px -6px -6px;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 28px rgba(244, 219, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    animation: spotlightGlow 2.8s ease-in-out 0.4s 2;
}

.website-input-wrap.input-spotlight label {
    animation: labelPulse 2.8s ease-in-out 0.4s 2;
}

.website-input-wrap.input-spotlight #pg-website {
    animation: inputGlowPulse 2.8s ease-in-out 0.4s 2;
    padding-right: 48px;
}

.website-input-field {
    position: relative;
}

.input-hand-hint {
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -16px;
    font-size: 1.75rem;
    color: var(--color-blue);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    filter: drop-shadow(0 2px 10px rgba(244, 219, 0, 0.45));
    transform: rotate(-12deg);
    z-index: 2;
}

.website-input-wrap.input-spotlight .input-hand-hint {
    visibility: visible;
    animation: handTapHint 1.3s ease-in-out 0.5s infinite;
}

@keyframes handTapHint {
    0%, 100% {
        opacity: 1;
        transform: rotate(-12deg) translateY(0) scale(1);
    }
    30% {
        transform: rotate(-8deg) translateY(6px) scale(0.88);
    }
    50% {
        transform: rotate(-10deg) translateY(2px) scale(0.94);
    }
    70% {
        transform: rotate(-12deg) translateY(0) scale(1);
    }
}

@keyframes spotlightRing {
    0%, 100% { opacity: 0; transform: scale(1); }
    20%, 80% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

@keyframes spotlightGlow {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes labelPulse {
    0%, 100% { color: var(--text-secondary); }
    50% { color: var(--color-blue); }
}

@keyframes inputGlowPulse {
    0%, 100% {
        border-color: var(--border-glass);
        box-shadow: none;
        transform: scale(1);
    }
    25%, 75% {
        border-color: rgba(244, 219, 0, 0.55);
        box-shadow: 0 0 0 4px rgba(244, 219, 0, 0.12), 0 0 20px rgba(244, 219, 0, 0.2);
        transform: scale(1);
    }
    50% {
        border-color: var(--color-blue);
        box-shadow: 0 0 0 6px rgba(244, 219, 0, 0.18), 0 0 32px rgba(255, 158, 0, 0.28);
        transform: scale(1.015);
    }
}

.status-bar {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: none;
}

.status-bar.visible {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-bar.loading {
    background: rgba(244, 219, 0, 0.08);
    border: 1px solid rgba(244, 219, 0, 0.2);
    color: var(--color-blue);
}

.status-bar.success {
    background: rgba(0, 200, 100, 0.08);
    border: 1px solid rgba(0, 200, 100, 0.2);
    color: #4ade80;
}

.status-bar.error {
    background: rgba(255, 80, 80, 0.08);
    border: 1px solid rgba(255, 80, 80, 0.2);
    color: #f87171;
}

.script-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.script-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.3);
}

.script-panel-header h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.script-panel-header h3 i {
    color: var(--color-blue);
}

.btn-copy {
    padding: 6px 14px;
    font-size: 0.8rem;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-copy:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
}

.script-output {
    width: 100%;
    flex: 1;
    min-height: 200px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--text-secondary);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    resize: vertical;
}

.preview-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 640px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.3);
}

.panel-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header h3 i {
    color: var(--color-blue);
}

.panel-body {
    flex: 1;
    position: relative;
    background: #0a0a0a;
    min-height: 580px;
}

.panel-body iframe#pg-website-frame {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 580px;
}

.preview-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    padding: 40px;
    gap: 12px;
    z-index: 1;
}

.preview-placeholder i {
    font-size: 2.5rem;
    opacity: 0.4;
}

.preview-placeholder.hidden {
    display: none;
}

/* Floating chat button */
.chat-fab {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--color-blue), var(--color-violet));
    color: #000;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 24px rgba(244, 219, 0, 0.35);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 32px rgba(244, 219, 0, 0.5);
}

.chat-fab.hidden {
    display: none;
}

/* Call panel overlay */
.call-panel {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: min(620px, calc(100vw - 48px));
    height: min(780px, calc(100vh - 48px));
    max-width: none;
    max-height: none;
    background: #111;
    border: 1px solid rgba(244, 219, 0, 0.28);
    border-radius: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.72), 0 0 30px rgba(244, 219, 0, 0.08);
    animation: slideUp 0.25s ease;
}

.call-panel.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.call-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-glass);
    font-size: 1.05rem;
    font-weight: 600;
}

.call-header-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.call-header-title {
    white-space: nowrap;
}

.call-header-title i {
    color: var(--color-blue);
    margin-right: 6px;
}

.call-header-connection {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
}

.call-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    min-width: 0;
}

.header-mic-control {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.35);
}

.header-mic-control.hidden {
    display: none;
}

.header-mic-control .call-ctrl-btn {
    width: 34px;
    height: 34px;
    font-size: 0.88rem;
}

.header-mic-control .mic-bars {
    width: 42px;
    flex: none;
    height: 22px;
}

.header-mic-control .mic-label {
    min-width: auto;
    font-size: 0.72rem;
    white-space: nowrap;
}

.call-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.call-close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.call-panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.call-visual-hidden {
    display: none;
}

.call-panel-body:has(.call-widget-wrap:not(.hidden)) .call-status-block {
    display: none;
}

/* Full-page call event toast cards — left edge */
.call-toast-stack {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    overflow: visible;
}

.call-toast-stack.hidden {
    display: none;
}

.call-toast-card {
    position: fixed;
    left: 32px;
    top: 0;
    width: min(340px, calc(100vw - 48px));
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px 18px 22px;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.97) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 1px solid rgba(244, 219, 0, 0.18);
    border-radius: var(--radius-md);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 24px rgba(244, 219, 0, 0.06);
    backdrop-filter: blur(16px);
    overflow: hidden;
    will-change: top, opacity;
}

.call-toast-glow {
    position: absolute;
    top: -40%;
    left: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(244, 219, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.call-toast-accent {
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--color-blue), var(--color-violet));
}

.call-toast-card.toast-crm .call-toast-accent {
    background: linear-gradient(180deg, var(--color-blue), #c9a800);
}

.call-toast-card.toast-appt .call-toast-accent {
    background: linear-gradient(180deg, #4ade80, #22c55e);
}

.call-toast-card.toast-contact .call-toast-accent {
    background: linear-gradient(180deg, #60a5fa, #3b82f6);
}

.call-toast-card.toast-agent .call-toast-accent {
    background: linear-gradient(180deg, var(--color-violet), #ff6b00);
}

.call-toast-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
}

.call-toast-card.toast-crm .call-toast-icon {
    background: rgba(244, 219, 0, 0.14);
    color: var(--color-blue);
    border: 1px solid rgba(244, 219, 0, 0.3);
    box-shadow: 0 0 16px rgba(244, 219, 0, 0.15);
}

.call-toast-card.toast-appt .call-toast-icon {
    background: rgba(74, 222, 128, 0.14);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
    box-shadow: 0 0 16px rgba(74, 222, 128, 0.15);
}

.call-toast-card.toast-contact .call-toast-icon {
    background: rgba(96, 165, 250, 0.14);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.15);
}

.call-toast-card.toast-agent .call-toast-icon {
    background: rgba(255, 158, 0, 0.14);
    color: var(--color-violet);
    border: 1px solid rgba(255, 158, 0, 0.3);
    box-shadow: 0 0 16px rgba(255, 158, 0, 0.15);
}

.call-toast-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.call-toast-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.call-toast-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.call-toast-check-wrap {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.call-toast-check {
    color: #4ade80;
    font-size: 1.1rem;
    opacity: 0;
    filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.5));
    animation: toastCheckIn 0.35s ease 0.5s forwards;
}

@keyframes toastCheckIn {
    from { opacity: 0; transform: scale(0.4); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
    .call-toast-card {
        left: 16px;
        width: calc(100vw - 32px);
        padding: 16px 18px;
    }
}

/* Connection status bar */
.call-conn-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.25);
}

.conn-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.conn-dot.idle { background: var(--text-muted); }
.conn-dot.connecting {
    background: var(--color-blue);
    animation: connPulse 1s infinite;
}
.conn-dot.connected {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}
.conn-dot.error { background: #f87171; }

@keyframes connPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Waveform + avatar */
.call-visual-wrap {
    position: relative;
    height: 90px;
    margin: 8px 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-wave-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 72px;
    top: 50%;
    transform: translateY(-50%);
}

.call-avatar-ring {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(244, 219, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.call-avatar-ring.active {
    border-color: var(--color-blue);
    box-shadow: 0 0 20px rgba(244, 219, 0, 0.35);
    animation: avatarPulse 2s infinite ease-in-out;
}

@keyframes avatarPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.call-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-blue), var(--color-violet));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #000;
}

.call-status-block {
    text-align: center;
    margin: auto;
    padding: 40px 24px;
}

.call-status-block h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.call-status-block p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Microphone meter */
.mic-meter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 20px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
}

.mic-meter.hidden {
    display: none;
}

.call-ctrl-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.call-ctrl-btn.mic-on {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.call-ctrl-btn.mic-off {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.mic-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 28px;
    flex: 1;
}

.mic-bars span {
    display: block;
    width: 4px;
    height: 4px;
    background: var(--color-blue);
    border-radius: 2px;
    transition: height 0.08s ease;
}

.mic-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    min-width: 52px;
    text-align: right;
}

/* Call action buttons */
.call-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 8px 20px;
}

.call-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-full);
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-primary);
}

.call-action-btn.connect {
    background: linear-gradient(135deg, var(--color-blue), var(--color-violet));
    color: #000;
}

.call-action-btn.connect:hover:not(:disabled) {
    box-shadow: 0 4px 20px rgba(244, 219, 0, 0.4);
    transform: translateY(-1px);
}

.call-action-btn.connect:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.call-action-btn.end {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.call-action-btn.end:hover {
    background: rgba(248, 113, 113, 0.25);
}

.call-action-btn.hidden {
    display: none;
}

/* LiveKit media stage */
.call-widget-wrap {
    flex: 1;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    border: 0;
    min-height: 0;
    background: #0a0a0a;
}

.call-widget-wrap.hidden {
    display: none;
}

.lk-stage {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.lk-remote-video {
    flex: 1;
    position: relative;
    min-height: 0;
    background: radial-gradient(circle at 50% 30%, rgba(244, 219, 0, 0.06), #0a0a0a 70%);
}

.lk-stage:has(.lk-transcript:not(.hidden)) .voice-only-media {
    display: none;
}

.lk-remote-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.lk-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 16px;
    text-align: center;
}

.lk-placeholder i {
    font-size: 1.6rem;
    color: var(--color-blue);
    opacity: 0.7;
}

.lk-placeholder.hidden {
    display: none;
}

.lk-remote-audio {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Live conversation transcript */
.lk-transcript {
    border-top: 1px solid rgba(244, 219, 0, 0.22);
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(6, 6, 6, 0.98));
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    flex: 1;
    min-height: 0;
    max-height: none;
    height: 100%;
}

.lk-transcript.hidden {
    display: none;
}

.lk-transcript-header {
    padding: 14px 20px;
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(244, 219, 0, 0.06);
}

.lk-transcript-header i {
    color: var(--color-blue);
    margin-right: 4px;
}

.lk-transcript-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.lk-transcript-line {
    width: fit-content;
    max-width: 82%;
    padding: 13px 16px;
    border-radius: 16px;
    font-size: 1.05rem;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
}

.lk-transcript-line.partial .lk-transcript-text {
    opacity: 0.72;
    font-style: italic;
}

.lk-transcript-speaker {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lk-transcript-line.from-user .lk-transcript-speaker {
    color: #111;
}

.lk-transcript-line.from-agent .lk-transcript-speaker {
    color: #4ade80;
}

.lk-transcript-line.from-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--color-blue), #ffb800);
    border-color: transparent;
}

.lk-transcript-line.from-user .lk-transcript-text {
    color: #111;
    font-weight: 600;
}

.lk-transcript-line.from-agent {
    align-self: flex-start;
    border-color: rgba(74, 222, 128, 0.2);
    background: rgba(74, 222, 128, 0.075);
}

.lk-transcript-text {
    color: #f2f2f2;
    word-break: break-word;
}

.lk-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.45);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.lk-room-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}

.lk-status {
    color: var(--color-blue);
    font-weight: 600;
}

@media (max-width: 480px) {
    .call-panel {
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .call-panel-header {
        flex-wrap: wrap;
        padding: 12px 14px;
        gap: 10px;
    }

    .call-header-info {
        flex: 1;
        min-width: 130px;
    }

    .call-header-actions {
        gap: 6px;
    }

    .header-mic-control {
        padding: 3px;
    }

    .header-mic-control .mic-bars,
    .header-mic-control .mic-label {
        display: none;
    }

    .call-action-btn {
        padding: 8px 12px;
    }

    .lk-transcript-body {
        padding: 14px;
    }

    .lk-transcript-line {
        max-width: 92%;
        font-size: 0.98rem;
    }

    .chat-fab {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }
}
