

.easter-egg-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-out, visibility 0.4s;
    cursor: none;
    overflow: hidden;
}

.easter-egg-overlay.easter-egg-visible {
    opacity: 1;
    visibility: visible;
}

.ee-tv-screen {
    position: absolute;
    inset: 0;
    z-index: 100;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    will-change: opacity;
}

.ee-tv-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffaa, transparent);
    box-shadow: 0 0 40px rgba(0, 255, 170, 0.6);
    transform-origin: center;
    will-change: transform;
    animation: ee-tv-turnon 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.ee-tv-active .ee-tv-line {
    animation: ee-tv-turnon 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes ee-tv-turnon {
    0% {
        transform: scaleY(0.5);
        opacity: 0;
    }
    8% {
        transform: scaleY(1);
        opacity: 1;
    }
    100% {
        transform: scaleY(400);
        opacity: 0;
    }
}

.ee-tv-screen.ee-tv-complete {
    pointer-events: none;
}

.ee-tv-screen.ee-tv-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.ee-codec-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-out, visibility 0.6s;
}

.ee-codec-inner.ee-visible {
    opacity: 1;
    visibility: visible;
}

.ee-bg-noise {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200vh;
    background: transparent url('../WEB-CONTENT/images/noise.png') repeat 0 0;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
    animation: ee-bg-noise-anim 0.2s infinite;
}

@keyframes ee-bg-noise-anim {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
    100% { transform: translate(5%, 0); }
}

.ee-codec-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 100% 80% at 50% 50%, rgba(0, 40, 30, 0.4) 0%, transparent 60%),
        linear-gradient(180deg, #0a0f0d 0%, #051008 100%);
    pointer-events: none;
}

.ee-codec-scan {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0 1px,
        rgba(0, 255, 170, 0.03) 1px 2px
    );
    pointer-events: none;
    animation: ee-scan-pulse 4s ease-in-out infinite;
}

@keyframes ee-scan-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ee-codec-noise {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
}

.ee-connecting {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.ee-connecting.ee-visible {
    opacity: 1;
    visibility: visible;
}

.ee-connecting.ee-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s;
}

.ee-connecting-text {
    font-family: var(--font-mono, 'IBM Plex Mono'), monospace;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    letter-spacing: 0.3em;
    color: rgba(0, 255, 170, 0.6);
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.4);
}

.ee-connecting-dots {
    display: inline-flex;
    gap: 2px;
}

.ee-connecting-dots i {
    font-style: normal;
    display: inline-block;
    opacity: 0;
    animation: ee-conn-dot 0.6s ease-out infinite;
}

.ee-connecting-dots i::before {
    content: '.';
    font-family: var(--font-mono, 'IBM Plex Mono'), monospace;
    color: rgba(0, 255, 170, 0.6);
}

.ee-connecting-dots i:nth-child(1) { animation-delay: 0s; }
.ee-connecting-dots i:nth-child(2) { animation-delay: 0.2s; }
.ee-connecting-dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes ee-conn-dot {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.ee-codec-panel {
    position: relative;
    z-index: 2;
    width: min(720px, 94vw);
    max-height: 88vh;
    border: 2px solid rgba(0, 255, 170, 0.4);
    background: rgba(5, 20, 15, 0.95);
    box-shadow: 
        0 0 30px rgba(0, 255, 170, 0.15),
        0 0 60px rgba(0, 255, 170, 0.08),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ee-codec-panel.ee-panel-hidden {
    opacity: 0;
    pointer-events: none;
}

.ee-codec-panel.ee-visible {
    opacity: 1;
    transform: scale(1);
}

.easter-egg-close {
    margin-left: auto;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(0, 255, 170, 0.3);
    background: rgba(5, 15, 10, 0.9);
    color: #00ffaa;
    font-family: var(--font-mono, 'IBM Plex Mono'), monospace;
    font-size: 1.3rem;
    line-height: 1;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.55s ease, visibility 0.55s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.easter-egg-close.ee-close-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.easter-egg-close:hover {
    background: rgba(0, 255, 170, 0.1);
    border-color: #00ffaa;
}

.ee-codec-header {
    position: relative;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0, 255, 170, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono, 'IBM Plex Mono'), monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: rgba(0, 255, 170, 0.8);
    text-shadow: 0 0 6px rgba(0, 255, 170, 0.3);
}

.ee-codec-transmission-status {
    flex: 1;
    text-align: center;
    color: rgba(0, 255, 170, 0.9);
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), text-shadow 0.45s ease, transform 0.45s ease;
}

.ee-codec-transmission-status.ee-status-fade-swap {
    opacity: 0.15 !important;
    animation: ee-status-glitch 0.5s ease-out forwards;
}

.ee-codec-transmission-status.ee-status-blink {
    animation: ee-status-blink 2.4s ease-in-out infinite;
}

@keyframes ee-status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

@keyframes ee-status-glitch {
    0% {
        opacity: 1;
        text-shadow: 0 0 6px rgba(0, 255, 170, 0.9);
        transform: translateX(0);
    }
    15% {
        opacity: 0.9;
        text-shadow: -2px 0 rgba(255, 80, 80, 0.8), 2px 0 rgba(80, 200, 255, 0.8);
        transform: translateX(-1px);
    }
    30% {
        opacity: 0.95;
        text-shadow: 2px 0 rgba(255, 80, 80, 0.6), -2px 0 rgba(80, 200, 255, 0.6);
        transform: translateX(1px);
    }
    45% {
        opacity: 0.3;
        text-shadow: -1px 1px rgba(255, 80, 80, 0.5), 1px -1px rgba(80, 200, 255, 0.5);
        transform: translateX(0);
    }
    60% {
        opacity: 0.2;
        text-shadow: 1px 0 rgba(255, 80, 80, 0.4), -1px 0 rgba(80, 200, 255, 0.4);
        transform: translateX(-0.5px);
    }
    100% {
        opacity: 0.15;
        text-shadow: 0 0 6px rgba(0, 255, 170, 0.2);
        transform: translateX(0);
    }
}

.ee-codec-status {
    color: rgba(255, 80, 80, 0.95);
    text-shadow: 0 0 8px rgba(255, 80, 80, 0.6);
    padding-right: 7.7px;
}

.ee-codec-body {
    display: flex;
    gap: 16px;
    padding: 20px;
    min-height: 200px;
    align-items: flex-start;
}

.ee-codec-avatars-row {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    align-items: flex-start;
}

.ee-codec-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ee-codec-avatar {
    flex-shrink: 0;
    width: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: opacity 0.7s ease, filter 0.7s ease;
}

.ee-codec-avatar.ee-avatar-inactive {
    opacity: 0.68;
    filter: grayscale(0.35);
}

.ee-codec-avatar.ee-avatar-user {
    order: 3;
}

.ee-avatar-label {
    font-family: var(--font-mono, 'IBM Plex Mono'), monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
}

.ee-avatar-sys .ee-avatar-label {
    color: #00ffaa;
    text-shadow: 0 0 6px rgba(0, 255, 170, 0.5);
}

.ee-avatar-user .ee-avatar-label {
    color: rgba(0, 200, 255, 0.95);
    text-shadow: 0 0 6px rgba(0, 200, 255, 0.5);
}

.ee-avatar-inactive .ee-avatar-label {
    color: rgba(180, 200, 190, 0.82) !important;
    text-shadow: 0 0 3px rgba(0, 255, 170, 0.15);
}

.ee-avatar-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono, 'IBM Plex Mono'), monospace;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    transition: color 0.7s ease;
}

.ee-avatar-sys .ee-avatar-status {
    color: rgba(0, 255, 170, 0.85);
}

.ee-avatar-user .ee-avatar-status {
    color: rgba(0, 200, 255, 0.9);
}

.ee-avatar-inactive .ee-avatar-status {
    color: rgba(180, 200, 190, 0.75) !important;
}

.ee-status-led {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.7s ease, box-shadow 0.7s ease;
}

.ee-status-led-online {
    background: #00ffaa;
    box-shadow: 0 0 6px rgba(0, 255, 170, 0.7);
}

.ee-status-led-offline {
    background: rgba(120, 120, 120, 0.8);
    box-shadow: 0 0 4px rgba(80, 80, 80, 0.4);
}

.ee-status-led-standby {
    background: #e6c200;
    box-shadow: 0 0 6px rgba(230, 194, 0, 0.7);
}

.ee-avatar-img {
    width: 68px;
    height: 68px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.ee-avatar-img::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent 0 1px,
        rgba(0, 0, 0, 0.35) 1px 2px
    );
    opacity: 0.85;
}

.ee-avatar-sys-img {
    border: 1px solid rgba(0, 255, 170, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 170, 0.2);
}

.ee-avatar-sys-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ee-avatar-user-img {
    border: 1px solid rgba(0, 200, 255, 0.5);
    background: rgba(0, 200, 255, 0.08);
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.2);
}

.ee-avatar-user-img::after {
    content: '?';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main, 'BIOS-SYS'), monospace;
    font-size: 1.3rem;
    color: rgba(0, 200, 255, 0.5);
}

.ee-codec-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    transition: gap 0.45s ease;
}

.ee-message-wrapper {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ee-message-container {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
    max-height: 420px;
    min-height: 0;
}

.ee-message-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 24px;
    transition: gap 0.4s ease;
}

.ee-message {
    padding: 10px 12px;
    border-left: 3px solid rgba(0, 255, 170, 0.5);
    background: rgba(0, 255, 170, 0.03);
    box-shadow: 0 0 12px rgba(0, 255, 170, 0.15);
    animation: ee-message-enter 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes ee-message-enter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ee-message-enter-user {
    from {
        opacity: 0;
        transform: translateY(8px) translateX(4px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(1);
    }
}

.ee-message-user {
    align-self: flex-end;
    max-width: 85%;
    transform-origin: right bottom;
    animation: ee-message-enter-user 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    border-left-color: rgba(0, 200, 255, 0.6);
    background: rgba(0, 200, 255, 0.04);
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.2);
}

.ee-message-system-closed {
    border-left-color: rgba(218, 165, 32, 0.7);
    background: rgba(218, 165, 32, 0.06);
    box-shadow: 0 0 12px rgba(218, 165, 32, 0.25);
}

.ee-message-system-closed .ee-message-speaker {
    color: rgba(255, 215, 0, 0.95);
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

.ee-message-system-closed .ee-message-text {
    color: rgba(255, 235, 180, 0.95);
    text-shadow: 0 0 4px rgba(218, 165, 32, 0.3);
}

.ee-message-speaker {
    display: block;
    font-family: var(--font-mono, 'IBM Plex Mono'), monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    margin-bottom: 4px;
}

.ee-message-sys .ee-message-speaker {
    color: #00ffaa;
    text-shadow: 0 0 6px rgba(0, 255, 170, 0.5);
}

.ee-message-user .ee-message-speaker {
    color: rgba(0, 200, 255, 0.95);
    text-shadow: 0 0 6px rgba(0, 200, 255, 0.5);
}

.ee-message-text {
    font-family: var(--font-mono, 'IBM Plex Mono'), monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.ee-message-sys .ee-message-text {
    color: rgba(200, 255, 240, 0.9);
    text-shadow: 0 0 4px rgba(0, 255, 170, 0.25);
}

.ee-message-user .ee-message-text {
    color: rgba(200, 240, 255, 0.95);
    text-shadow: 0 0 4px rgba(0, 200, 255, 0.25);
}

.ee-message-sys:not(.ee-typing-done) .ee-message-text::after {
    content: '▌';
    margin-left: 2px;
    animation: ee-cursor-blink 0.8s step-end infinite;
    color: #00ffaa;
    text-shadow: 0 0 8px rgba(0, 255, 170, 0.9), 0 0 16px rgba(0, 255, 170, 0.6);
}

.ee-message-user .ee-message-text::after,
.ee-message-system-closed .ee-message-text::after {
    display: none !important;
}

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

.ee-options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    max-height: 400px;
    transition: opacity 0.45s ease, max-height 0.5s ease, gap 0.45s ease;
}

.ee-options-container.ee-options-exiting {
    opacity: 0;
    max-height: 0;
    gap: 0;
    pointer-events: none;
}

.ee-options-container.ee-options-exiting .ee-option-btn {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.35s ease, transform 0.4s ease;
}

.ee-option-btn.ee-option-enter {
    opacity: 0;
    transform: translateY(6px);
    animation: ee-option-enter 0.35s ease-out forwards;
}

@keyframes ee-option-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ee-option-btn {
    padding: 10px 14px;
    border: 1px solid rgba(0, 255, 170, 0.35);
    background: rgba(0, 255, 170, 0.05);
    color: rgba(200, 255, 240, 0.9);
    font-family: var(--font-mono, 'IBM Plex Mono'), monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-align: left;
    cursor: none;
    transition: all 0.2s ease;
}

.ee-option-btn:hover {
    background: rgba(0, 255, 170, 0.15);
    border-color: #00ffaa;
    color: #00ffaa;
    box-shadow: 0 0 12px rgba(0, 255, 170, 0.25);
}

.ee-codec-footer {
    padding: 10px 16px;
    border-top: 1px solid rgba(0, 255, 170, 0.2);
    font-family: var(--font-mono, 'IBM Plex Mono'), monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(0, 255, 170, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ee-footer-text {
    transition: opacity 0.35s ease;
}

.ee-footer-text.ee-footer-text-swap {
    opacity: 0;
}

.ee-footer-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: opacity 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.ee-footer-pulse-active {
    background: #00ffaa;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.8);
    animation: ee-pulse-green 2s infinite;
}

.ee-footer-pulse-warning {
    background: #e6c200;
    box-shadow: 0 0 10px rgba(230, 194, 0, 0.8);
    animation: ee-pulse-yellow 2s infinite;
}

.ee-footer-pulse-inactive {
    background: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
    animation: ee-pulse-red 2s infinite;
}

@keyframes ee-pulse-yellow {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(230, 194, 0, 0.8); }
    50% { opacity: 0.5; box-shadow: 0 0 5px rgba(230, 194, 0, 0.5); }
}

@keyframes ee-pulse-green {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(0, 255, 170, 0.8); }
    50% { opacity: 0.5; box-shadow: 0 0 5px rgba(0, 255, 170, 0.5); }
}

@keyframes ee-pulse-red {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(255, 68, 68, 0.8); }
    50% { opacity: 0.5; box-shadow: 0 0 5px rgba(255, 68, 68, 0.5); }
}

.ee-footer-countdown {
    color: rgba(255, 80, 80, 0.9);
    transition: opacity 0.35s ease, color 0.35s ease;
}

.ee-codec-footer.ee-footer-warning .ee-footer-text {
    color: rgba(0, 255, 170, 0.85);
}

.ee-codec-footer.ee-footer-warning .ee-footer-countdown {
    color: rgba(230, 194, 0, 0.95);
}

.ee-codec-hint {
    margin-top: 16px;
    font-family: var(--font-mono, 'IBM Plex Mono'), monospace;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: rgba(0, 255, 170, 0.25);
    text-transform: uppercase;
}

@media (min-width: 769px) {
    .ee-codec-panel {
        width: min(920px, 96vw);
        max-height: 92vh;
    }

    .ee-codec-header {
        padding: 14px 24px;
        font-size: 0.82rem;
        gap: 16px;
    }

    .ee-codec-body {
        padding: 24px 28px;
        gap: 24px;
        min-height: 280px;
    }

    .ee-codec-main {
        gap: 20px;
    }

    .ee-codec-avatars-row {
        display: contents;
    }

    .ee-codec-body .ee-codec-avatar {
        flex-shrink: 0;
        width: 110px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .ee-codec-body .ee-codec-avatar .ee-avatar-img {
        width: 84px;
        height: 84px;
    }

    .ee-codec-avatar.ee-avatar-user {
        order: 3;
    }

    .ee-codec-body .ee-avatar-label {
        font-size: 0.8rem;
    }

    .ee-codec-body .ee-avatar-status {
        font-size: 0.62rem;
    }

    .ee-codec-body .ee-status-led {
        width: 6px;
        height: 6px;
    }

    .ee-codec-chat {
        gap: 18px;
    }

    .ee-message-wrapper {
        position: relative;
    }

    .ee-fade-top,
    .ee-fade-bottom {
        position: absolute;
        left: -4px;
        right: -4px;
        height: 56px;
        pointer-events: none;
        z-index: 1;
        will-change: opacity;
    }

    .ee-fade-top {
        top: -4px;
        background: radial-gradient(ellipse 105% 120% at 50% 0%,
            rgba(5, 20, 15, 0.97) 0%,
            rgba(5, 20, 15, 0.7) 25%,
            rgba(5, 20, 15, 0.3) 50%,
            transparent 75%);
    }

    .ee-fade-bottom {
        bottom: -4px;
        background: radial-gradient(ellipse 105% 120% at 50% 100%,
            rgba(5, 20, 15, 0.97) 0%,
            rgba(5, 20, 15, 0.7) 25%,
            rgba(5, 20, 15, 0.3) 50%,
            transparent 75%);
    }

    .ee-codec-body .ee-message-container {
        max-height: 560px;
        gap: 16px;
    }

    .ee-codec-body .ee-message-inner {
        padding-top: 36px;
        padding-bottom: 32px;
    }

    .ee-codec-body .ee-message {
        padding: 14px 18px;
    }

    .ee-codec-body .ee-message-speaker {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .ee-codec-body .ee-message-text {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .ee-codec-body .ee-options-container {
        gap: 12px;
    }

    .ee-codec-body .ee-option-btn {
        padding: 14px 18px;
        font-size: 0.9rem;
        min-height: 48px;
    }

    .ee-codec-panel .ee-codec-footer {
        padding: 14px 24px;
        font-size: 0.72rem;
        gap: 12px;
    }

    .ee-codec-panel .ee-footer-pulse {
        width: 9px;
        height: 9px;
    }

    .easter-egg-close {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .easter-egg-overlay {
        cursor: default;
        padding: 0;
        direction: ltr;
    }

    .ee-codec-inner {
        padding: 0;
        width: 100%;
        max-width: 100%;
        direction: ltr;
    }

    .ee-codec-panel {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100dvh;
        margin: 0;
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        border-radius: 0;
        border-left: none;
        border-right: none;
        display: flex;
        flex-direction: column;
        direction: ltr;
        text-align: left;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .ee-codec-panel .ee-codec-header {
        flex-shrink: 0;
        padding: 12px 16px 10px;
        font-size: 0.6rem;
        letter-spacing: 0.12em;
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
    }

    .ee-codec-freq {
        font-size: 0.55rem;
        flex-shrink: 0;
    }

    .ee-codec-transmission-status {
        font-size: 0.58rem;
        flex: 1;
        min-width: 0;
        text-align: center;
    }

    .ee-codec-status {
        font-size: 0.52rem;
        flex-shrink: 0;
    }

    
    .ee-codec-panel .ee-codec-body {
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        padding: 12px 16px 8px;
        gap: 12px;
        overflow: hidden;
        align-items: stretch;
    }

    .ee-codec-avatars-row {
        flex-shrink: 0;
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: space-between;
    }

    
    .ee-codec-body .ee-codec-avatar {
        flex: 1 1 0;
        min-width: 0;
        display: grid;
        grid-template-columns: 36px minmax(70px, 1fr);
        grid-template-rows: auto auto;
        gap: 2px 8px;
        padding: 8px 10px;
        background: rgba(0, 255, 170, 0.04);
        border-radius: 8px;
        border: 1px solid rgba(0, 255, 170, 0.2);
        box-sizing: border-box;
        align-items: center;
    }

    .ee-codec-avatar .ee-avatar-img {
        grid-column: 1;
        grid-row: 1 / -1;
        width: 36px;
        height: 36px;
        align-self: center;
    }

    .ee-codec-avatar .ee-avatar-label {
        grid-column: 2;
        grid-row: 1;
        font-size: 0.6rem;
        letter-spacing: 0.04em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ee-codec-avatar .ee-avatar-status {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.48rem;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .ee-codec-avatar .ee-status-led {
        width: 4px;
        height: 4px;
    }

    .ee-codec-main {
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
        overflow: hidden;
    }

    
    .ee-codec-chat {
        flex: 1 1 0;
        min-height: 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-sizing: border-box;
    }

    .ee-message-wrapper {
        contain: layout paint;
    }

    .ee-message-container {
        flex: 1 1 0;
        min-height: 140px;
        max-height: none;
        padding-top: 30px;
        padding-bottom: 24px;
        overflow-y: auto;
        overflow-x: hidden;
        overflow-anchor: none;
        scroll-behavior: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        -webkit-tap-highlight-color: transparent;
        scrollbar-width: none;
        -ms-overflow-style: none;
        contain: paint;
    }

    .ee-fade-top,
    .ee-fade-bottom {
        position: absolute;
        left: 0;
        right: 0;
        height: 40px;
        pointer-events: none;
        z-index: 1;
        will-change: opacity;
    }

    .ee-fade-top {
        top: 0;
        background: linear-gradient(to bottom,
            rgba(5, 18, 14, 0.98) 0%,
            rgba(5, 18, 14, 0.85) 25%,
            transparent 100%);
    }

    .ee-fade-bottom {
        bottom: 0;
        background: linear-gradient(to top,
            rgba(5, 18, 14, 0.98) 0%,
            rgba(5, 18, 14, 0.85) 25%,
            transparent 100%);
    }

    .ee-message-container::-webkit-scrollbar {
        display: none;
        width: 0;
    }

    .ee-message-inner {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-bottom: 28px;
        align-items: stretch;
        justify-content: flex-start;
    }

    
    .ee-message {
        padding: 12px 14px;
        border-radius: 12px;
        border-left: none;
        max-width: 85%;
        min-width: 0;
        box-sizing: border-box;
        content-visibility: auto;
        contain-intrinsic-size: auto 60px;
    }

    .ee-message-sys {
        align-self: flex-start;
        border-radius: 12px 12px 12px 4px;
        background: rgba(0, 255, 170, 0.08);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    .ee-message-user {
        align-self: flex-end;
        max-width: 85%;
        border-radius: 12px 12px 4px 12px;
        background: rgba(0, 200, 255, 0.12);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    .ee-message-system-closed {
        align-self: flex-start;
        border-radius: 12px 12px 12px 4px;
        background: rgba(218, 165, 32, 0.1);
    }

    .ee-message-speaker {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        margin-bottom: 6px;
    }

    .ee-message-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    
    .ee-options-container {
        flex: 0 0 auto;
        flex-shrink: 0;
        gap: 10px;
        max-height: none;
        margin-top: 0;
        padding: 10px 0 6px;
        border-top: 1px solid rgba(0, 255, 170, 0.2);
        display: flex;
        flex-direction: column;
    }

    .ee-option-btn {
        padding: 12px 14px;
        font-size: 0.82rem;
        border-radius: 4px;
        min-height: 44px;
        display: flex;
        align-items: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        width: 100%;
        box-sizing: border-box;
    }

    .ee-option-btn:hover,
    .ee-option-btn:active {
        background: rgba(0, 255, 170, 0.2);
    }

    
    .ee-codec-panel .ee-codec-footer {
        flex-shrink: 0;
        padding: 10px 16px 12px;
        font-size: 0.6rem;
        letter-spacing: 0.1em;
        flex-wrap: wrap;
        gap: 8px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .ee-footer-pulse {
        width: 6px;
        height: 6px;
    }

    .easter-egg-close {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
        border-radius: 8px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        flex-shrink: 0;
        margin-left: auto;
    }

    .ee-codec-hint {
        display: none;
    }
}

@media (max-width: 400px) {
    .ee-codec-panel .ee-codec-header {
        padding: 10px 12px;
    }

    .ee-codec-panel .ee-codec-body {
        padding: 10px 12px 6px;
    }

    .ee-codec-body .ee-codec-avatar {
        max-width: calc(50% - 5px);
    }

    .ee-message {
        padding: 10px 12px;
        max-width: 90%;
    }

    .ee-message-text {
        font-size: 0.9rem;
    }

    .ee-option-btn {
        padding: 10px 12px;
        font-size: 0.78rem;
        min-height: 40px;
    }
}
