* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: -webkit-fill-available; }

:root {
    --primary: #d4846a;
    --secondary: #f4e4bc;
    --accent: #e6a756;
    --golden: #f7ce68;
    --terracotta: #c4704f;
    --bg-dark: #0a0908;
    --bg-card: #1a1614;
    --text-primary: #ffffff;
    --text-secondary: #a89a8c;
    --glass-bg: rgba(26, 22, 20, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --user-msg-bg: rgba(212, 132, 106, 0.15);
    --ai-msg-bg: rgba(26, 22, 20, 0.6);
}

[data-theme="light"] {
    --bg-dark: #f8f5f2;
    --bg-card: #ffffff;
    --text-primary: #1a1614;
    --text-secondary: #6b5d52;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --user-msg-bg: rgba(212, 132, 106, 0.12);
    --ai-msg-bg: rgba(248, 245, 242, 0.9);
}

[data-theme="light"] .gradient-orb { opacity: 0.25; }
[data-theme="light"] .video-frame { box-shadow: 0 0 0 8px rgba(212, 132, 106, 0.15), 0 20px 60px rgba(0, 0, 0, 0.1); }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
    overflow: hidden;
}

.avatar-container {
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.ambient-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
    will-change: transform;
}

.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, var(--primary) 0%, transparent 70%); top: -20%; right: -10%; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, var(--golden) 0%, transparent 70%); bottom: -20%; left: -10%; animation-delay: -7s; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -14s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    z-index: 100;
}

.close-btn:hover { background: var(--primary); border-color: var(--primary); transform: translateX(-5px); }
.close-btn i { font-size: 0.85rem; }

.avatar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 800px;
    width: 100%;
    padding: 1.5rem;
    z-index: 10;
    transition: all 0.4s ease;
}

.avatar-content.horizontal {
    flex-direction: row;
    align-items: flex-start;
    max-width: 1200px;
    gap: 2rem;
}

.avatar-content.horizontal .video-section { flex-shrink: 0; width: 280px; position: sticky; top: 2rem; }
.avatar-content.horizontal .video-frame { width: 200px; height: 200px; }
.avatar-content.horizontal .chat-section { flex: 1; max-height: calc(100vh - 4rem); display: flex; flex-direction: column; }

.video-section { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.video-frame {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 0 0 8px rgba(212, 132, 106, 0.2), 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(212, 132, 106, 0.3);
    transition: all 0.3s ease;
}

.video-frame:hover { transform: scale(1.02); }

.video-frame video {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-frame video.active { opacity: 1; z-index: 2; }

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 132, 106, 0.1), transparent);
    pointer-events: none;
}

.avatar-name { text-align: center; }
.avatar-name h1 { 
    font-family: 'Bricolage Grotesque', sans-serif; 
    font-size: 1.5rem; 
    font-weight: 600; 
    color: var(--text-primary); 
    margin-bottom: 0.25rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.5rem; 
}
.avatar-name p { font-size: 0.9rem; color: var(--text-secondary); }
.avatar-name .status-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0; }
.avatar-name.thinking .status-dot { background: var(--golden); }

.chat-section { width: 100%; display: flex; flex-direction: column; gap: 1rem; }

.chat-history {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    max-height: 0;
    transition: max-height 0.4s ease;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.avatar-content.horizontal .chat-history { 
    display: flex; 
    max-height: 45vh; 
    padding-right: 0.5rem; 
}

.chat-history::-webkit-scrollbar { width: 4px; }
.chat-history::-webkit-scrollbar-track { background: transparent; }
.chat-history::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 2px; }

.chat-message {
    padding: 0.875rem 1rem;
    border-radius: 16px;
    max-width: 85%;
    animation: messageIn 0.25s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.chat-message.user {
    background: var(--user-msg-bg);
    border: 1px solid rgba(212, 132, 106, 0.3);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-message.ai {
    background: var(--ai-msg-bg);
    border: 1px solid var(--glass-border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-message .message-content { font-size: 0.9rem; line-height: 1.6; color: var(--text-primary); }
.chat-message.user .message-content { color: var(--primary); font-weight: 500; }

.response-area {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-height: 160px;
    overflow-y: auto;
}

.response-text { font-size: 1rem; line-height: 1.6; color: var(--text-primary); }
.response-text .cursor { display: inline; color: var(--primary); animation: blink 1s infinite; font-weight: 300; }
.response-text .char { display: inline; }

@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.thinking-indicator { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); }
.thinking-dots { display: flex; gap: 4px; }
.thinking-dots span { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; animation: bounce 1.4s infinite; }
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 0.5rem; }

.suggestion-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-btn:hover { background: var(--primary); border-color: var(--primary); color: var(--text-primary); transform: translateY(-2px); }

.input-area { width: 100%; }

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.4rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.2s ease;
}

.input-wrapper:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(212, 132, 106, 0.2); }

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    color: var(--text-primary);
    padding-left: 0.75rem;
    min-width: 0;
}

.input-wrapper input::placeholder { color: var(--text-secondary); }

.voice-btn, .send-btn, .mic-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.voice-btn, .mic-btn { background: transparent; color: var(--text-secondary); }
.voice-btn:hover, .mic-btn:hover { color: var(--primary); }
.voice-btn.muted { opacity: 0.5; }
.voice-btn.muted i::before { content: "\f6a9"; }

.mic-btn.listening { background: var(--primary); color: white; animation: micPulse 1.5s infinite; }

@keyframes micPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 132, 106, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(212, 132, 106, 0); }
}

.send-btn { background: linear-gradient(135deg, var(--primary), var(--terracotta)); color: white; }
.send-btn:hover { transform: scale(1.08); }
.send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

.theme-toggle {
    position: absolute;
    top: 1.5rem;
    right: 6rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.theme-toggle:hover { background: var(--primary); border-color: var(--primary); }
.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: block; }
[data-theme="light"] .theme-toggle .fa-sun { display: block; }
[data-theme="light"] .theme-toggle .fa-moon { display: none; }

.voice-selector { position: absolute; top: 1.5rem; right: 1.5rem; z-index: 100; }

.voice-selector-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.2s ease;
}

.voice-selector-toggle:hover { background: var(--primary); border-color: var(--primary); }

.voice-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 260px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0.875rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.voice-selector.open .voice-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.voice-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--glass-border);
}

.voice-dropdown-header span { font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }

.voice-dropdown-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.voice-dropdown-close:hover { color: var(--primary); }

#voice-select {
    width: 100%;
    padding: 0.6rem 0.875rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a89a8c' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
}

#voice-select:focus { outline: none; border-color: var(--primary); }
#voice-select option { background: var(--bg-card); color: var(--text-primary); }

.voice-preview { margin-top: 0.75rem; }

.voice-preview-btn {
    width: 100%;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, var(--primary), var(--terracotta));
    border: none;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.voice-preview-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(212, 132, 106, 0.4); }

.waveform-canvas { opacity: 0; transition: opacity 0.2s ease; margin-top: -0.25rem; }
.waveform-canvas.active { opacity: 1; }

.quick-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; opacity: 0; transform: translateY(8px); transition: all 0.3s ease; }
.quick-actions.visible { opacity: 1; transform: translateY(0); }

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--terracotta));
    border: none;
    border-radius: 20px;
    color: white;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 12px rgba(212, 132, 106, 0.3);
}

.quick-action-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212, 132, 106, 0.4); }

.tool-approval-buttons {
    display: flex;
    gap: 0.6rem;
    padding: 0.75rem;
    justify-content: center;
    animation: messageIn 0.25s ease;
}

.tool-approval-buttons .btn {
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.btn-approve {
    background: linear-gradient(135deg, #d4846a, #f7ce68);
    color: white;
    box-shadow: 0 3px 12px rgba(212, 132, 106, 0.3);
}

.btn-approve:hover { transform: translateY(-2px); box-shadow: 0 5px 16px rgba(212, 132, 106, 0.4); }
.btn-cancel { background: rgba(108, 117, 125, 0.2); color: var(--text-primary); border: 1px solid var(--glass-border); }
.btn-cancel:hover { background: rgba(108, 117, 125, 0.3); transform: translateY(-2px); }

.scheduling-card {
    background: linear-gradient(135deg, rgba(212, 132, 106, 0.1), rgba(247, 206, 104, 0.1));
    border: 2px solid var(--primary);
    border-radius: 14px;
    padding: 1.25rem;
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

.scheduling-card.visible { opacity: 1; transform: translateY(0); }

.scheduling-card-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.scheduling-card-header i { font-size: 1.25rem; color: var(--primary); }
.scheduling-card-header h3 { font-size: 1rem; color: var(--text-primary); margin: 0; }

.scheduling-duration { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 0.75rem; }

.scheduling-link-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #d4846a, #f7ce68);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 3px 12px rgba(212, 132, 106, 0.3);
}

.scheduling-link-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 16px rgba(212, 132, 106, 0.4); }
.scheduling-link-btn i { margin-right: 0.4rem; }

.copy-link-btn {
    display: block;
    width: 100%;
    padding: 0.6rem 1.25rem;
    background: rgba(212, 132, 106, 0.15);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-link-btn:hover { background: rgba(212, 132, 106, 0.25); transform: translateY(-2px); }
.copy-link-btn i { margin-right: 0.4rem; }

.response-area::-webkit-scrollbar { width: 4px; }
.response-area::-webkit-scrollbar-track { background: transparent; }
.response-area::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 2px; }
.response-area::-webkit-scrollbar-thumb:hover { background: var(--primary); }

@media (max-width: 1024px) {
    .avatar-content.horizontal { gap: 1.5rem; }
    .avatar-content.horizontal .video-section { width: 240px; }
    .avatar-content.horizontal .video-frame { width: 180px; height: 180px; }
}

@media (max-width: 768px) {
    body { overflow-y: auto; overflow-x: hidden; }
    
    .avatar-container { 
        height: auto; 
        min-height: 100dvh; 
        overflow: visible; 
        align-items: flex-start;
    }
    
    .avatar-content { 
        padding: 4.5rem 1rem 1.5rem; 
        min-height: 100dvh; 
        justify-content: flex-start; 
        gap: 1rem; 
    }
    
    .avatar-content.horizontal { 
        flex-direction: column; 
        align-items: center; 
    }
    
    .avatar-content.horizontal .video-section { 
        width: 100%; 
        position: static; 
        flex-direction: row;
        gap: 1rem;
    }
    
    .avatar-content.horizontal .video-frame { width: 100px; height: 100px; }
    .avatar-content.horizontal .avatar-name { text-align: left; }
    .avatar-content.horizontal .avatar-name h1 { justify-content: flex-start; font-size: 1.1rem; }
    
    .avatar-content.horizontal .chat-section { max-height: none; }
    .avatar-content.horizontal .chat-history { max-height: 35vh; }
    
    .close-btn { top: 0.75rem; left: 0.75rem; padding: 0.5rem 0.75rem; font-size: 0.75rem; }
    .close-btn span { display: none; }
    
    .theme-toggle { top: 0.75rem; right: 3.5rem; width: 34px; height: 34px; }
    
    .voice-selector { top: 0.75rem; right: 0.75rem; }
    .voice-selector-toggle { padding: 0.5rem; width: 34px; height: 34px; }
    .voice-selector-toggle span { display: none; }
    .voice-dropdown { width: 240px; max-width: calc(100vw - 1.5rem); }
    
    .video-frame { width: 120px; height: 120px; border-width: 3px; }
    
    .avatar-name h1 { font-size: 1.15rem; }
    .avatar-name p { font-size: 0.8rem; }
    
    .response-area { padding: 0.875rem; max-height: 120px; border-radius: 12px; }
    .response-text { font-size: 0.875rem; line-height: 1.5; }
    
    .suggestions { gap: 0.35rem; }
    .suggestion-btn { padding: 0.35rem 0.7rem; font-size: 0.7rem; }
    
    .input-wrapper { padding: 0.3rem; gap: 0.35rem; }
    .voice-btn, .send-btn, .mic-btn { width: 36px; height: 36px; font-size: 0.85rem; }
    
    .quick-actions { gap: 0.4rem; }
    .quick-action-btn { padding: 0.4rem 0.8rem; font-size: 0.75rem; }
    
    .chat-message { padding: 0.7rem 0.875rem; max-width: 90%; }
    .chat-message .message-content { font-size: 0.85rem; }
    
    .tool-approval-buttons { flex-direction: column; padding: 0.5rem; gap: 0.4rem; }
    .tool-approval-buttons .btn { width: 100%; justify-content: center; padding: 0.7rem 1rem; }
    
    .scheduling-card { padding: 1rem; margin: 0.25rem 0; }
    .scheduling-card-header h3 { font-size: 0.9rem; }
    .scheduling-link-btn, .copy-link-btn { padding: 0.6rem 1rem; font-size: 0.8rem; }

    .gradient-orb { filter: blur(60px); }
    .orb-1 { width: 400px; height: 400px; }
    .orb-2 { width: 350px; height: 350px; }
    .orb-3 { width: 300px; height: 300px; }
}

@media (max-width: 480px) {
    .avatar-content { padding: 4rem 0.75rem 1rem; }
    
    .avatar-content.horizontal .video-frame { width: 80px; height: 80px; }
    .avatar-content.horizontal .avatar-name h1 { font-size: 1rem; }
    .avatar-content.horizontal .chat-history { max-height: 30vh; }
    
    .video-frame { width: 100px; height: 100px; }
    
    .input-wrapper input { font-size: 14px; }
    .voice-btn, .send-btn, .mic-btn { width: 34px; height: 34px; }
    
    .suggestion-btn { padding: 0.3rem 0.6rem; font-size: 0.65rem; }
    
    .response-area { max-height: 100px; padding: 0.75rem; }
}

@media (max-width: 360px) {
    .avatar-content.horizontal .video-frame { width: 70px; height: 70px; }
    .suggestion-btn { padding: 0.25rem 0.5rem; font-size: 0.6rem; }
    .quick-action-btn { padding: 0.35rem 0.6rem; font-size: 0.7rem; }
}

@supports (-webkit-touch-callout: none) {
    .input-area { padding-bottom: env(safe-area-inset-bottom); }
    .avatar-content { padding-top: calc(4rem + env(safe-area-inset-top)); }
}

@media (max-height: 500px) and (orientation: landscape) {
    .avatar-content.horizontal .video-frame { width: 80px; height: 80px; }
    .avatar-content.horizontal .chat-history { max-height: 25vh; }
    .response-area { max-height: 80px; }
}
