        :root {
            --primary-color: #8B4513;
            --secondary-color: #D4AF37;
            --accent-color: #2F4F4F;
            --text-light: rgba(255, 255, 255, 0.95);
            --text-muted: rgba(255, 255, 255, 0.65);
            --text-dark: #333333;
            --backdrop-primary: rgba(15, 23, 20, 0.35);
            --backdrop-secondary: rgba(212, 175, 55, 0.12);
            --glass-effect: rgba(255, 255, 255, 0.1);
            --glass-border: rgba(255, 255, 255, 0.18);
            --content-max: min(100%, 72rem);
            --header-radius: 16px;
            --hdr-gap: clamp(0.5rem, 1.5vw, 1rem);
            --hdr-pad: clamp(1rem, 2.5vw, 1.35rem);
            --btn-h: 2.375rem;
            --btn-radius: 8px;
            --btn-bg: rgba(255, 255, 255, 0.08);
            --btn-bg-hover: rgba(255, 255, 255, 0.16);
            --btn-border: rgba(255, 255, 255, 0.2);
        }

        html, body {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            overflow: auto;
        }
        
        body {
            font-family: 'Inter', sans-serif;
            color: var(--text-dark);
            background: linear-gradient(-45deg, 
                var(--primary-color), 
                var(--secondary-color), 
                var(--accent-color), 
                #4a6741);
            background-size: 400% 400%;
            animation: gradient 20s ease infinite;
            display: flex;
            flex-direction: column;
            height: 100%;
            position: relative;
        }

        @keyframes gradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .container {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding: clamp(0.5rem, 2vw, 1.25rem);
            width: 100%;
            max-width: 100%;
            min-height: 0;
            box-sizing: border-box;
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* —— App header (modern) —— */
        .header {
            width: 100%;
            max-width: var(--content-max);
            margin-bottom: var(--hdr-gap);
            background: rgba(12, 18, 16, 0.55);
            backdrop-filter: blur(24px) saturate(1.2);
            -webkit-backdrop-filter: blur(24px) saturate(1.2);
            border: 1px solid var(--glass-border);
            border-radius: var(--header-radius);
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
            overflow: visible;
            flex-shrink: 0;
            position: relative;
            z-index: 30;
        }

        .header-inner {
            display: flex;
            flex-direction: column;
        }

        .header-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: var(--hdr-pad);
            padding-bottom: clamp(0.75rem, 2vw, 1rem);
        }

        .institution-branding {
            display: flex;
            align-items: center;
            gap: 1rem;
            min-width: 0;
            flex: 1;
        }

        .institution-portrait {
            width: 3rem;
            height: 3rem;
            border-radius: 50%;
            background-image: var(--portrait-url);
            background-size: cover;
            background-position: center;
            border: 2px solid rgba(212, 175, 55, 0.5);
            flex-shrink: 0;
        }

        .institution-title {
            min-width: 10rem;
            flex: 1;
        }

        .header-badge {
            display: block;
            font-size: 0.6875rem;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--secondary-color);
            margin-bottom: 0.2rem;
        }

        .main-title {
            font-size: clamp(1rem, 2vw, 1.25rem);
            font-weight: 600;
            color: var(--text-light);
            margin: 0;
            line-height: 1.3;
            letter-spacing: -0.02em;
        }

        .header-menu-toggle {
            display: none;
            flex-shrink: 0;
            width: var(--btn-h);
            height: var(--btn-h);
            border: 1px solid var(--btn-border);
            border-radius: var(--btn-radius);
            background: var(--btn-bg);
            color: var(--text-light);
            cursor: pointer;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            padding: 0;
            transition: background 0.2s;
        }

        .header-menu-toggle:hover {
            background: var(--btn-bg-hover);
        }

        .header-menu-toggle span {
            display: block;
            width: 1.125rem;
            height: 2px;
            background: currentColor;
            border-radius: 1px;
            transition: transform 0.2s, opacity 0.2s;
        }

        .header-menu-toggle[aria-expanded="true"] span:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }
        .header-menu-toggle[aria-expanded="true"] span:nth-child(2) {
            opacity: 0;
        }
        .header-menu-toggle[aria-expanded="true"] span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

        .header-controls {
            border-top: 1px solid var(--glass-border);
            background: rgba(0, 0, 0, 0.15);
            overflow: visible;
            position: relative;
            z-index: 31;
        }

        .header-menu {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 0.5rem 0.75rem;
            padding: 0.75rem var(--hdr-pad) var(--hdr-pad);
        }

        .toolbar-group {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.375rem;
        }

        .toolbar-group-label {
            font-size: 0.6875rem;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--text-muted);
            margin-right: 0.125rem;
        }

        .toolbar-sep {
            width: 1px;
            height: 1.5rem;
            background: var(--glass-border);
            flex-shrink: 0;
            margin: 0 0.125rem;
        }

        .threads-section, .avatar-section, .quiz-section, .export-section {
            display: flex;
            align-items: center;
            gap: 0.375rem;
        }

        .threads-controls, .avatar-controls, .quiz-controls {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.375rem;
        }

        .thread-btn, .avatar-btn, .quiz-btn, .export-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: var(--btn-h);
            padding: 0 0.875rem;
            border-radius: var(--btn-radius);
            font-family: inherit;
            font-size: 0.8125rem;
            font-weight: 500;
            line-height: 1;
            cursor: pointer;
            border: 1px solid var(--btn-border);
            color: var(--text-light);
            background: var(--btn-bg);
            transition: background 0.15s, border-color 0.15s;
            white-space: nowrap;
            touch-action: manipulation;
        }

        .thread-btn:hover, .avatar-btn:hover, .quiz-btn:hover, .export-icon:hover {
            background: var(--btn-bg-hover);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .quiz-btn.active {
            background: rgba(212, 175, 55, 0.2);
            border-color: rgba(212, 175, 55, 0.45);
            color: #fff;
        }

        .avatar-stop {
            border-color: rgba(248, 113, 113, 0.4);
            background: rgba(127, 29, 29, 0.35);
        }

        .avatar-stop:hover {
            background: rgba(153, 27, 27, 0.45);
        }

        .toolbar-group--settings {
            margin-left: auto;
            position: relative;
            z-index: 32;
        }

        .settings-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            min-height: var(--btn-h);
            padding: 0 0.875rem;
            border-radius: var(--btn-radius);
            font-family: inherit;
            font-size: 0.8125rem;
            font-weight: 500;
            cursor: pointer;
            border: 1px solid var(--btn-border);
            color: var(--text-light);
            background: var(--btn-bg);
            transition: background 0.15s, border-color 0.15s;
        }

        .settings-btn:hover,
        .settings-btn[aria-expanded="true"] {
            background: var(--btn-bg-hover);
            border-color: rgba(212, 175, 55, 0.45);
        }

        .settings-btn svg {
            width: 1rem;
            height: 1rem;
            flex-shrink: 0;
        }

        .settings-panel {
            display: none;
            position: fixed;
            z-index: 10050;
            min-width: 16.5rem;
            max-width: calc(100vw - 1.5rem);
            padding: 0.875rem 1rem;
            border-radius: 12px;
            border: 1px solid var(--glass-border);
            background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.99));
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }

        .settings-panel.is-open {
            display: block;
            visibility: visible;
            opacity: 1;
            pointer-events: auto;
        }

        .settings-panel:not(.is-open) {
            visibility: hidden;
            opacity: 0;
            pointer-events: none;
        }

        .settings-panel-title {
            margin: 0 0 0.75rem;
            font-size: 0.6875rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-muted);
        }

        .settings-panel-section {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .settings-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
        }

        .speech-toggle {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            font-size: 0.8125rem;
            font-weight: 500;
            color: var(--text-muted);
            user-select: none;
        }

        .speech-toggle input {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }

        .speech-toggle-track {
            width: 2.25rem;
            height: 1.25rem;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid var(--btn-border);
            position: relative;
            transition: background 0.2s;
            flex-shrink: 0;
        }

        .speech-toggle-track::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 0.875rem;
            height: 0.875rem;
            border-radius: 50%;
            background: #fff;
            transition: transform 0.2s;
        }

        .speech-toggle input:checked + .speech-toggle-track {
            background: rgba(212, 175, 55, 0.35);
            border-color: rgba(212, 175, 55, 0.5);
        }

        .speech-toggle input:checked + .speech-toggle-track::after {
            transform: translateX(1rem);
        }

        .speech-toggle input:checked ~ .speech-toggle-label {
            color: var(--text-light);
        }

        .speech-speed-control {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            font-size: 0.8125rem;
            color: var(--text-muted);
            width: 100%;
        }

        .speech-speed-control-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
        }

        .speech-speed-control input[type="range"] {
            width: 100%;
            height: 0.25rem;
            accent-color: rgba(212, 175, 55, 0.85);
            cursor: pointer;
        }

        .speech-speed-value {
            font-variant-numeric: tabular-nums;
            color: var(--text-light);
            font-size: 0.75rem;
        }

        .checkbox-container {
            display: contents;
        }

        #thread-file-input {
            display: none;
        }

        .conversation-thread {
            flex: 1;
            width: 100%;
            max-width: var(--content-max);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(248, 250, 252, 0.1));
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            padding: 25px;
            border-radius: 20px;
            overflow-y: auto;
            margin-bottom: 15px;
            max-height: 65vh;
        }

        /* Header: mobile */
        @media (max-width: 900px) {
            .header-menu-toggle {
                display: flex;
            }

            .header-controls {
                display: none;
            }

            .header-controls.is-open {
                display: block;
            }

            .header-menu {
                flex-direction: column;
                align-items: stretch;
            }

            .toolbar-sep {
                display: none;
            }

            .toolbar-group {
                width: 100%;
                padding-bottom: 0.5rem;
                border-bottom: 1px solid var(--glass-border);
            }

            .toolbar-group:last-child {
                border-bottom: none;
                padding-bottom: 0;
            }

            .toolbar-group--settings {
                margin-left: 0;
                justify-content: center;
                padding-top: 0.25rem;
            }

            .settings-panel.is-open {
                position: static;
                width: 100%;
                max-width: none;
                margin-top: 0.5rem;
                box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
            }
        }

        @media (min-width: 901px) {
            .institution-portrait {
                width: 3.5rem;
                height: 3.5rem;
            }

            .header-menu {
                justify-content: flex-start;
                gap: 0.5rem 1rem;
            }

            .toolbar-group--settings {
                margin-left: auto;
            }
        }

        @media (min-width: 1280px) {
            .header-menu {
                flex-wrap: nowrap;
                justify-content: space-between;
            }
        }

        @supports (padding: max(0px)) {
            .container {
                padding-left: max(clamp(0.5rem, 2vw, 1.25rem), env(safe-area-inset-left));
                padding-right: max(clamp(0.5rem, 2vw, 1.25rem), env(safe-area-inset-right));
            }
        }

        .message {
            margin-bottom: 24px;
            width: 100%;
            animation: fadeInUp 0.4s ease-out;
        }

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

        .message.user {
            text-align: right;
        }

        .message.assistant {
            text-align: left;
        }

        .message-content h1, .message-content h2, .message-content h3 {
            color: inherit;
            margin-top: 0;
            margin-bottom: 12px;
        }

        .message-content p {
            margin-bottom: 12px;
            line-height: 1.7;
        }

        .message-content ul, .message-content ol {
            margin-left: 20px;
            margin-bottom: 12px;
        }

        .message-content li {
            margin-bottom: 6px;
            line-height: 1.6;
        }

        .message-content code {
            background: rgba(0, 0, 0, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'Monaco', 'Consolas', monospace;
            font-size: 14px;
        }

        .message.user .message-content code {
            background: rgba(255, 255, 255, 0.2);
        }

        .message-content {
            display: inline-block;
            border-radius: 18px;
            padding: 18px 24px;
            max-width: 75%;
            word-wrap: break-word;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
            font-size: 16px;
            font-weight: 500;
            line-height: 1.6;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
            position: relative;
            transition: all 0.3s ease;
        }

        .message-content:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
        }

        .message.user .message-content {
            background: linear-gradient(135deg, #2563eb, #1d4ed8, #1e40af);
            color: #ffffff;
            border-bottom-right-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        .message.user .message-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
            border-radius: 18px;
            pointer-events: none;
        }

        .message.assistant .message-content {
            background: linear-gradient(135deg, #f8fafc, #e2e8f0, #cbd5e1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(148, 163, 184, 0.3);
            color: #1e293b;
            border-bottom-left-radius: 6px;
            text-shadow: 0 0.5px 1px rgba(255, 255, 255, 0.5);
        }

        .message.assistant .message-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), transparent);
            border-radius: 18px;
            pointer-events: none;
        }

        .form-container {
            width: 100%;
            max-width: var(--content-max);
            background: var(--glass-effect);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            padding: 20px;
            border-radius: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            box-sizing: border-box;
        }

        .form-row {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .form-container textarea {
            flex: 1;
            padding: 16px 24px;
            font-size: 16px;
            font-family: 'Inter', sans-serif;
            font-weight: 500;
            border: 2px solid rgba(148, 163, 184, 0.3);
            border-radius: 16px;
            resize: none;
            min-height: 50px;
            height: auto;
            max-height: 120px;
            box-sizing: border-box;
            overflow-y: auto;
            background: linear-gradient(135deg, #ffffff, #f8fafc);
            backdrop-filter: blur(10px);
            color: #1e293b;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .form-container textarea:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 4px 16px rgba(59, 130, 246, 0.1);
            transform: translateY(-1px);
            background: linear-gradient(135deg, #ffffff, #f1f5f9);
        }

        .form-container textarea::placeholder {
            color: #64748b;
            font-style: italic;
            font-weight: 400;
            opacity: 0.8;
        }

        .button-container {
            display: flex;
            flex-direction: row;
            gap: 8px;
        }

        .icon-button {
            width: var(--btn-h);
            height: var(--btn-h);
            min-width: var(--btn-h);
            padding: 0;
            background: var(--btn-bg);
            border: 1px solid var(--btn-border);
            border-radius: var(--btn-radius);
            color: var(--text-light);
            cursor: pointer;
            transition: background 0.15s, border-color 0.15s;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: none;
        }

        .icon-button:hover {
            background: var(--btn-bg-hover);
            border-color: rgba(255, 255, 255, 0.3);
            transform: none;
        }

        .icon-button svg {
            width: 1.125rem;
            height: 1.125rem;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .icon-button.recording {
            background: rgba(127, 29, 29, 0.45);
            border-color: rgba(248, 113, 113, 0.45);
            animation: pulse 1.5s infinite;
        }

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

        /* Form area mobile */
        @media (max-width: 768px) {
            .conversation-thread {
                padding: 15px;
                margin-bottom: 10px;
            }

            .form-container {
                max-width: var(--content-max);
                padding: 15px;
            }

            .form-row {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }

            .button-container {
                flex-direction: row;
                justify-content: center;
                gap: 10px;
            }

            .icon-button {
                width: 40px;
                height: 40px;
            }

            .icon-button svg {
                width: 1rem;
                height: 1rem;
            }
        }

        .bg-slideshow {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }

        .bg-slideshow img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity 3s ease-in-out;
            pointer-events: none;
            filter: grayscale(60%) brightness(0.4);
        }

        /* Scrollbar styling */
        .conversation-thread::-webkit-scrollbar {
            width: 8px;
        }

        .conversation-thread::-webkit-scrollbar-track {
            background: var(--glass-effect);
            border-radius: 4px;
        }

        .conversation-thread::-webkit-scrollbar-thumb {
            background: var(--secondary-color);
            border-radius: 4px;
        }

        .conversation-thread::-webkit-scrollbar-thumb:hover {
            background: var(--primary-color);
        }

        @keyframes recordingPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.5); }
            50% { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.15); }
        }

        /* Avatar status indicator */
        .avatar-status {
            position: fixed;
            top: 20px;
            right: 20px;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
            z-index: 9999;
            display: none;
            animation: fadeInDown 0.5s ease-out;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Avatar Modal Window Styling */
        .avatar-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(12px);
            z-index: 10000;
            display: none;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s ease-out;
        }

        .avatar-modal.active {
            display: flex;
        }

        .avatar-window {
            background: var(--glass-effect);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            padding: 0;
            width: 90%;
            max-width: 800px;
            height: 80%;
            max-height: 600px;
            position: relative;
            overflow: hidden;
            animation: slideInUp 0.4s ease-out;
        }

        .avatar-header {
            background: var(--backdrop-primary);
            color: var(--text-light);
            padding: 20px 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--glass-border);
            backdrop-filter: blur(10px);
        }

        .avatar-title {
            font-size: 20px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 12px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
            font-family: 'Inter', sans-serif;
        }

        .avatar-close-btn {
            background: linear-gradient(135deg, #ef4444, #dc2626);
            border: none;
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
        }

        .avatar-close-btn:hover {
            background: linear-gradient(135deg, #dc2626, #b91c1c);
            transform: scale(1.1);
            box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
        }

        .avatar-content {
            height: calc(100% - 80px);
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .avatar-widget-container {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0;
            background: transparent;
        }

        /* Simli Widget in Modal */
        .avatar-modal simli-widget {
            position: relative !important;
            right: auto !important;
            bottom: auto !important;
            width: 100% !important;
            height: 100% !important;
            max-width: 500px !important;
            max-height: 400px !important;
            border-radius: 15px !important;
            overflow: hidden !important;
            box-shadow: none !important;
            border: none !important;
        }

        .avatar-modal simli-widget iframe {
            width: 100% !important;
            height: 100% !important;
            border: none !important;
            border-radius: 13px !important;
            background: white !important;
        }

        .avatar-status-bar {
            background: var(--backdrop-secondary);
            border-top: 1px solid var(--glass-border);
            padding: 15px 25px;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-light);
            backdrop-filter: blur(10px);
        }

        .avatar-status-indicator {
            width: 8px;
            height: 8px;
            background: linear-gradient(135deg, #22c55e, #16a34a);
            border-radius: 50%;
            box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
            animation: pulse 2s infinite;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(50px) scale(0.9);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        /* Responsive design for smaller screens */
        @media (max-width: 768px) {
            .avatar-window {
                width: 95%;
                height: 90%;
                margin: 20px;
            }
            
            .avatar-title {
                font-size: 16px;
            }
        }
