/* ===== VARIABLES ===== */
:root {
    --primary: #00d2ff;
    --primary-dark: #00a8cc;
    --dark: #0b0e14;
    --dark-light: #1a1d25;
    --light: #f0f0f0;
    --success: #00ff88;
    --warning: #ffcc00;
    --danger: #ff3e3e;
    --gray: #888;
    --gray-light: #aaa;
    --gray-dark: #333;
    --text: #f4f7fb;
    --text-soft: #d5dbe3;
    --text-muted: #8b95a5;
    --panel: rgba(255, 255, 255, 0.04);
    --panel-border: rgba(0, 210, 255, 0.18);
    --input-bg: rgba(255, 255, 255, 0.06);
    --input-text: #ffffff;
    --bubble-other-bg: #16324a;
    --bubble-other-border: #2f8cff;
    --bubble-other-text: #f3f8ff;
    --bubble-other-name: #8ec5ff;
    --bubble-other-time: rgba(243, 248, 255, 0.72);
    --bubble-mine-bg: #0b6e91;
    --bubble-mine-border: #19c6ef;
    --bubble-mine-text: #ffffff;
    --bubble-mine-name: #d7f7ff;
    --bubble-mine-time: rgba(255, 255, 255, 0.78);
    --bubble-audio-bg: #0e3d32;
    --bubble-audio-border: #2ed39a;
    --bubble-audio-text: #e9fff6;
    --bubble-audio-time: rgba(233, 255, 246, 0.75);
    --ptt-bg: radial-gradient(circle, #1c2838 0%, #070b12 100%);
    --ptt-text: #f4fbff;
    --ptt-ring: #00d2ff;
    --ptt-active-bg: #00d2ff;
    --ptt-active-text: #041018;
}

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--dark);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* ===== LOGIN OVERLAY ===== */
#login-overlay {
    position: fixed;
    inset: 0;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--primary);
    width: 90%;
    max-width: 300px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.login-card input {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border-radius: 10px;
    border: 1px solid var(--panel-border);
    background: var(--input-bg);
    color: var(--input-text);
    outline: none;
    font-size: 16px;
    -webkit-appearance: none;
}

.login-card input:focus {
    border-color: var(--primary);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    color: black;
    font-size: 16px;
    margin-top: 10px;
    transition: all 0.2s;
}

.login-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* ===== MAIN APP CONTAINER ===== */
.app-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: 100vh;
    height: 100dvh;
    padding: 12px 16px 14px;
    gap: 12px;
    position: relative;
    min-height: 0;
}

.app-container.dock-open {
    padding-right: 348px;
}

/* ===== TOP BAR ===== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(0, 210, 255, 0.18);
    border-radius: 16px;
    flex-shrink: 0;
}

.top-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}

.top-sep {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

/* ===== SIGNAL INDICATOR ===== */
.signal-container {
    position: static;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 22px;
    flex-shrink: 0;
}

.sig-bar {
    width: 4px;
    background: var(--gray-dark);
    border-radius: 1px;
    transition: 0.3s;
}

.sig-1 { height: 6px; }
.sig-2 { height: 10px; }
.sig-3 { height: 14px; }
.sig-4 { height: 18px; }

.ping-text {
    font-size: 0.6rem;
    color: var(--gray);
    margin-left: 5px;
    font-family: monospace;
}

/* ===== HEADER BUTTONS ===== */
.header-buttons {
    position: static;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.header-btn {
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    background: rgba(0, 210, 255, 0.1);
}

.header-btn.exit {
    color: var(--danger);
    border-color: var(--danger);
    background: rgba(255, 62, 62, 0.1);
}

.header-btn:active {
    transform: scale(0.95);
}

.header-btn.active {
    background: var(--primary);
    color: black;
}

/* ===== DEVICE INDICATOR ===== */
.device-indicator {
    position: static;
    transform: none;
    font-size: 0.7rem;
    color: var(--gray-light);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

/* ===== USERS PANEL ===== */
.users-panel {
    width: 100%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.users-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.user-tag {
    background: rgba(0, 210, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 210, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.user-tag.active {
    background: rgba(255, 62, 62, 0.15);
    border-color: var(--danger);
}

.user-tag.muted {
    background: rgba(255, 62, 62, 0.1) !important;
    border-color: var(--danger) !important;
    opacity: 0.6;
    text-decoration: line-through;
}

.user-tag.ios::after { content: " 📱"; font-size: 0.8rem; }
.user-tag.android::after { content: " 🤖"; font-size: 0.8rem; }
.user-tag.desktop::after { content: " 💻"; font-size: 0.8rem; }

.dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    transition: all 0.3s;
}

.user-tag.active .dot {
    background: var(--danger);
    box-shadow: 0 0 12px var(--danger);
}

/* ===== PTT BUTTON ===== */
.ptt-circle {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    background: var(--ptt-bg);
    color: var(--ptt-text);
    border: 4px solid var(--ptt-ring);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    touch-action: none;           /* FIX iOS: previne scroll și selecție la touch */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;  /* FIX iOS: dezactivează meniu contextual la long press */
    transition: all 0.1s;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.1);
    margin: 4px 0 10px;
    outline: none;
    flex-shrink: 0;
}

.ptt-circle:active,
.ptt-circle.active {
    background: var(--ptt-active-bg);
    color: var(--ptt-active-text);
    border-color: var(--ptt-ring);
    transform: scale(0.95);
    box-shadow: 0 0 40px var(--ptt-ring);
}

/* ===== VU METER ===== */
.vu-meter {
    width: min(420px, 80%);
    height: 8px;
    background: var(--gray-dark);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

#vu-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--success), var(--primary));
    transition: width 0.05s;
}

/* ===== STATUS MESSAGE ===== */
.status-pill {
    flex-shrink: 0;
    min-width: 148px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: rgba(0, 210, 255, 0.08);
    box-shadow: inset 0 0 12px rgba(0, 210, 255, 0.08);
}

.status-pill.mode-standby {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(0, 210, 255, 0.08);
}

.status-pill.mode-transmit {
    color: #fff;
    border-color: var(--danger);
    background: var(--danger);
    box-shadow: 0 0 18px rgba(255, 62, 62, 0.55);
    animation: pulse 1s infinite;
}

.status-pill.mode-receive {
    color: #042014;
    border-color: var(--success);
    background: var(--success);
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.45);
}

/* ===== LOGS PANEL ===== */
.logs-panel {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    flex: 1;
    background: transparent;
    border-radius: 0;
    padding: 4px 2px;
    font-size: 0.75rem;
    overflow-y: auto;
    border: none;
    color: var(--gray-light);
}

.log-entry {
    margin-bottom: 4px;
    border-left: 2px solid var(--primary);
    padding-left: 6px;
    line-height: 1.2;
}

/* ===== RECONNECT ALERT ===== */
#reconnect-alert {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--danger);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: none;
    z-index: 1100;
    box-shadow: 0 4px 15px rgba(255, 62, 62, 0.3);
}

/* ===== IOS AUDIO PERMISSION HELPER ===== */
#audio-permission-helper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--warning);
    color: black;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    display: none;
    z-index: 2000;
}

/* ===== QUEUE TEXT ===== */
#queue-text {
    font-size: 0.85rem;
    color: var(--gray);
    font-style: italic;
    margin: 10px 0 4px;
    min-height: 20px;
    text-align: center;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: calc(100% - 24px);
    margin: 0 12px 8px;
    padding: 7px 12px;
    border-radius: 18px;
    background: var(--bubble-other-bg);
    color: var(--bubble-other-text);
    border: 1px solid var(--bubble-other-border);
    font-size: 0.78rem;
    font-style: normal;
}

.typing-indicator[hidden] {
    display: none !important;
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.typing-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.45;
    animation: typingDot 1s infinite;
}

.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
    40% { transform: translateY(-3px); opacity: 1; }
}

/* ===== TEST AUDIO BUTTON ===== */
.test-audio-btn {
    position: static;
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* ===== SETTINGS OVERLAY ===== */
#settings-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.settings-card {
    background: rgba(30, 30, 40, 0.95);
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--primary);
    width: min(680px, 96vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    color: #e8eef5;
}

.settings-shell {
    display: flex;
    gap: 12px;
    min-height: 0;
    flex: 1;
}

.settings-tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 132px;
    flex-shrink: 0;
}

.settings-tab {
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    color: #c5ced8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.settings-tab.active {
    background: var(--primary);
    color: #041018;
    border-color: var(--primary);
}

.settings-panels {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    max-height: 62vh;
    padding-right: 4px;
}

.settings-panel[hidden] {
    display: none !important;
}

.theme-selector {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.settings-title {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.setting-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.setting-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #ccc;
}

.setting-description {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 10px;
}

/* ===== TOGGLE SWITCH ===== */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-dark);
    transition: .3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* ===== VOLUME SLIDER ===== */
#volume-slider {
    width: 100%;
    margin-top: 8px;
}

.volume-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--gray-dark);
    border-radius: 3px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

/* ===== THEME SELECTOR ===== */
.theme-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.theme-option {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.theme-option.active {
    background: var(--primary);
    color: black;
    border-color: var(--primary);
}

.theme-option:hover {
    border-color: var(--primary);
}

/* ===== SETTINGS BUTTONS ===== */
.settings-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.settings-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-btn.save {
    background: var(--primary);
    color: black;
}

.settings-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.settings-btn:active {
    transform: scale(0.95);
}

/* ===== NOISE CANCELLATION INDICATOR ===== */
.nc-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 5px;
}

.nc-indicator.on {
    background: var(--success);
    box-shadow: 0 0 5px var(--success);
}

.nc-indicator.off {
    background: var(--danger);
    box-shadow: 0 0 5px var(--danger);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 860px) {
    .app-container.dock-open {
        padding-right: 10px;
    }

    .top-bar {
        flex-wrap: wrap;
    }

    .status-pill {
        width: 100%;
        order: 3;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 8px 10px 10px;
        gap: 8px;
    }
    
    .ptt-circle {
        width: 150px;
        height: 150px;
    }
    
    .header-buttons {
        gap: 6px;
    }
    
    .header-btn {
        padding: 5px 10px;
        font-size: 0.72rem;
    }

    .network-name {
        display: none;
    }
}

@media (max-height: 700px) {
    .app-container {
        padding: 8px 10px;
    }
    
    .ptt-circle {
        width: 132px;
        height: 132px;
        margin: 2px 0 6px;
    }

    .chat-panel {
        min-height: 180px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.pulse {
    animation: pulse 1s infinite;
}

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== HISTORY PANEL ===== */
.history-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: rgba(20, 20, 30, 0.95);
    border-radius: 15px;
    border: 2px solid var(--primary);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 210, 255, 0.1);
    border-radius: 15px 15px 0 0;
}

.history-header span {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
}

.close-btn:hover {
    background: rgba(255, 62, 62, 0.1);
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.history-item {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}

.history-user {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-time {
    font-size: 0.7rem;
    color: var(--gray);
}

.history-transcription {
    margin-top: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--gray-light);
    border-left: 2px solid var(--success);
}

.history-audio {
    margin-top: 10px;
}

.play-audio-btn {
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.play-audio-btn:hover {
    background: rgba(0, 210, 255, 0.2);
}

/* ===== ADMIN CONTROLS ===== */
.admin-btn {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
    border: 1px solid var(--warning);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-btn:hover {
    background: rgba(255, 193, 7, 0.2);
}

.admin-btn[data-action="clear"] {
    background: rgba(255, 62, 62, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

.admin-btn[data-action="clear"]:hover {
    background: rgba(255, 62, 62, 0.2);
}

/* ===== USER STATUS INDICATORS ===== */
.status-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 5px;
}

.status-online {
    background: var(--success);
    box-shadow: 0 0 5px var(--success);
}

.status-offline {
    background: var(--gray);
}

.status-busy {
    background: var(--danger);
    box-shadow: 0 0 5px var(--danger);
}

.status-away {
    background: var(--warning);
    box-shadow: 0 0 5px var(--warning);
}

/* ===== USER ROLES ===== */
.user-role {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
}

.role-admin {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.role-moderator {
    background: rgba(0, 210, 255, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.role-user {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
    border: 1px solid var(--gray);
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 40, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid var(--primary);
    z-index: 4000;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.toast.success {
    border-color: var(--success);
    background: rgba(0, 255, 136, 0.1);
}

.toast.warning {
    border-color: var(--warning);
    background: rgba(255, 204, 0, 0.1);
}

.toast.error {
    border-color: var(--danger);
    background: rgba(255, 62, 62, 0.1);
}

.toast-icon {
    font-size: 1.2rem;
}
/* ===== PWA STYLES ===== */
.pwa-mode body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.pwa-mode .top-bar {
    margin-top: env(safe-area-inset-top);
}

/* Install promotion (opțional) */
.install-promotion {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 210, 255, 0.9);
    color: black;
    padding: 12px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary);
    animation: slideUp 0.3s ease-out;
}

.install-promotion button {
    background: black;
    color: var(--primary);
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.install-promotion button:active {
    transform: scale(0.95);
}

/* ===== SAFE AREA SUPPORT ===== */
@supports (padding: max(0px)) {
    body {
        padding-left: min(0vmin, env(safe-area-inset-left));
        padding-right: min(0vmin, env(safe-area-inset-right));
    }
}
/* Adaugă la sfârșitul fișierului CSS existent */

/* Loading spinner */
.mini-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

/* Rate limit alert */
#rate-limit-alert {
  display: none;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--danger);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: slideInDown 0.3s ease-out;
}

#dismiss-rate-alert {
  background: transparent;
  border: none;
  color: white;
  margin-left: 15px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Toast notifications */
@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes fadeOutDown {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, 20px); }
}

/* Server info in settings */
.server-info {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.5;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 5px;
  margin-top: 5px;
}

/* Input hints */
.input-hint {
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
  margin-left: 5px;
}

/* Accessibility - screen reader only */
.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;
}

/* Theme data attributes */
[data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
  --primary: #0084ff;
  --primary-dark: #0066d6;
  --dark: #ffffff;
  --dark-light: #ffffff;
  --darker: #f0f2f5;
  --text: #050505;
  --text-soft: #050505;
  --text-muted: #65676b;
  --gray: #65676b;
  --gray-light: #050505;
  --gray-dark: #e4e6eb;
  --success: #31a24c;
  --panel: #ffffff;
  --panel-border: #e4e6eb;
  --input-bg: #f0f2f5;
  --input-text: #050505;
  --bubble-other-bg: #25d366;
  --bubble-other-border: #1ebe5a;
  --bubble-other-text: #ffffff;
  --bubble-other-name: #ffffff;
  --bubble-other-time: rgba(255, 255, 255, 0.88);
  --bubble-other-meter: #ffffff;
  --bubble-mine-bg: #d9fdd3;
  --bubble-mine-border: #b7ebc2;
  --bubble-mine-text: #111b21;
  --bubble-mine-name: #075e54;
  --bubble-mine-time: #3b4a42;
  --bubble-mine-meter: #075e54;
  --bubble-audio-bg: #25d366;
  --bubble-audio-border: #1ebe5a;
  --bubble-audio-text: #ffffff;
  --bubble-audio-time: rgba(255, 255, 255, 0.88);
  --bubble-audio-meter: #ffffff;
  --ptt-bg: radial-gradient(circle, #ffffff 0%, #f0f2f5 100%);
  --ptt-text: #050505;
  --ptt-ring: #0084ff;
  --ptt-active-bg: #0084ff;
  --ptt-active-text: #ffffff;
}

[data-theme="light"] .top-bar,
[data-theme="light"] .login-card,
[data-theme="light"] .settings-card,
[data-theme="light"] .chat-panel {
  background: #ffffff;
  color: #050505;
  border-color: #e4e6eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .settings-tab,
[data-theme="light"] .side-tab {
  background: #f0f2f5;
  color: #050505;
  border-color: transparent;
}

[data-theme="light"] .settings-tab.active,
[data-theme="light"] .side-tab.active {
  background: #0084ff;
  color: #ffffff;
}

[data-theme="light"] .setting-label,
[data-theme="light"] .chat-header {
  color: #050505;
}

[data-theme="light"] .setting-description {
  color: #65676b;
}

[data-theme="light"] .chat-header,
[data-theme="light"] .side-dock-toolbar {
  background: #ffffff;
  border-bottom-color: #e4e6eb;
}

[data-theme="light"] .chat-input-row {
  background: #ffffff;
  border-top-color: #e4e6eb;
}

[data-theme="light"] .chat-input::placeholder {
  color: #8a8d91;
}

[data-theme="light"] .text-message {
  border-radius: 18px;
}

[data-theme="light"] .side-dock-panel {
  background: #ffffff;
  color: #050505;
  border-color: #e4e6eb;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .side-dock-fab {
  background: #ffffff;
  color: #0084ff;
  border-color: #e4e6eb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .user-tag {
  background: #f0f2f5;
  color: #050505;
  border-color: #e4e6eb;
}

[data-theme="light"] .log-entry,
[data-theme="light"] .logs-panel {
  color: #050505;
}

[data-theme="light"] .login-btn,
[data-theme="light"] .chat-send-btn {
  background: #0084ff;
  color: #ffffff;
}

[data-theme="light"] .header-btn {
  background: #e7f3ff;
}

[data-theme="light"] .device-indicator,
[data-theme="light"] .network-badge {
  background: #f0f2f5;
  color: #050505;
  border-color: #e4e6eb;
}

[data-theme="light"] .ptt-circle {
  box-shadow: 0 8px 24px rgba(0, 132, 255, 0.18);
}

[data-theme="light"] .status-pill.mode-standby {
  background: #e7f3ff;
  color: #0084ff;
  border-color: #0084ff;
}

/* Log types */
.log-error {
  color: var(--danger);
}

.log-warning {
  color: var(--warning);
}

.log-info {
  color: var(--primary);
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
[role="radio"]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .settings-card {
    width: 96vw;
    max-height: 92vh;
    padding: 14px;
  }

  .settings-tabs {
    width: 96px;
  }

  .settings-tab {
    font-size: 0.72rem;
    padding: 9px 8px;
  }

  .settings-panels {
    max-height: 58vh;
  }
  
  .theme-options {
    flex-direction: column;
  }
  
  .theme-option {
    width: 100%;
    margin-bottom: 5px;
  }
}

/* Pulsing animation for talking */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.ptt-circle.active {
  animation: pulse 1s infinite;
}

/* Device colors in user list */
.user-tag.ios .dot {
  background: #007AFF !important;
}

.user-tag.android .dot {
  background: #3DDC84 !important;
}

.user-tag.desktop .dot {
  background: var(--primary) !important;
}
/* ===== CHAT TEXT ===== */
.chat-panel {
    width: 100%;
    max-width: none;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 280px;
    max-height: none;
    transition: max-height 0.3s ease, flex-basis 0.3s ease;
}

.chat-panel.minimized {
    flex: 0 0 auto;
    min-height: 0;
    max-height: 42px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-size: 0.75rem;
    color: #aaa;
    background: rgba(0,210,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    user-select: none;
}

.toggle-chat-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}
.toggle-chat-btn:hover { background: rgba(255,255,255,0.1); }

.chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    max-height: none;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.text-message {
    max-width: 85%;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.4;
    word-break: break-word;
    animation: fadeIn 0.2s ease-out;
}

.text-message-mine {
    align-self: flex-end;
    background: var(--bubble-mine-bg);
    border: 1px solid var(--bubble-mine-border);
    color: var(--bubble-mine-text);
    border-bottom-right-radius: 3px;
}

.text-message-other {
    align-self: flex-start;
    background: var(--bubble-other-bg);
    border: 1px solid var(--bubble-other-border);
    color: var(--bubble-other-text);
    border-bottom-left-radius: 3px;
}

.text-message-audio {
    align-self: flex-start;
    position: relative;
    background: var(--bubble-audio-bg);
    border: 1px solid var(--bubble-audio-border);
    color: var(--bubble-audio-text);
}

.text-message-audio.is-playing {
    border-color: var(--primary);
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.28);
}

.audio-eq {
    display: none;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
    flex-shrink: 0;
}

.text-message-audio.is-playing .audio-eq {
    display: flex;
}

.eq-bar {
    width: 3px;
    height: 4px;
    border-radius: 2px;
    background: var(--primary);
    animation: eqBounce 0.75s ease-in-out infinite;
}

.eq-bar:nth-child(2) { animation-delay: 0.12s; }
.eq-bar:nth-child(3) { animation-delay: 0.24s; }
.eq-bar:nth-child(4) { animation-delay: 0.08s; }
.eq-bar:nth-child(5) { animation-delay: 0.2s; }

@keyframes eqBounce {
    0%, 100% { height: 4px; }
    50% { height: 15px; }
}

.audio-play-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0%;
    opacity: 0;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.8);
}

.text-message-audio.is-playing .audio-play-progress {
    opacity: 1;
}

.text-message-audio.is-playing .play-audio-btn {
    background: #ffffff;
    color: var(--primary);
}

.text-msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
    gap: 8px;
}

.text-msg-user {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--bubble-other-name);
}

.text-message-mine .text-msg-user,
.text-message-audio.mine .text-msg-user {
    color: var(--bubble-mine-name);
}

.text-message-other .text-msg-user {
    color: var(--bubble-other-name);
}

.text-message-audio:not(.mine) .text-msg-user {
    color: var(--bubble-other-name);
}

.text-msg-time {
    font-size: 0.68rem;
    color: var(--bubble-other-time);
    white-space: nowrap;
}

.text-message-mine .text-msg-time,
.text-message-audio.mine .text-msg-time {
    color: var(--bubble-mine-time);
}

.text-message-other .text-msg-time {
    color: var(--bubble-other-time);
}

.text-message-audio:not(.mine) .text-msg-time {
    color: var(--bubble-audio-time);
}

.text-message-audio.mine .play-audio-btn {
    background: #ffffff;
    color: var(--bubble-mine-meter, #075e54);
    border-color: var(--bubble-mine-meter, #075e54);
}

.text-message-audio:not(.mine) .play-audio-btn {
    background: #ffffff;
    color: #075e54;
    border-color: #ffffff;
}

.text-message-audio.mine .eq-bar,
.text-message-audio.mine .audio-play-progress {
    background: var(--bubble-mine-meter, #075e54);
    box-shadow: none;
}

.text-message-audio:not(.mine) .eq-bar,
.text-message-audio:not(.mine) .audio-play-progress {
    background: var(--bubble-audio-meter, #ffffff);
    box-shadow: none;
}

.text-message-audio.mine.is-playing .play-audio-btn {
    background: var(--bubble-mine-meter, #075e54);
    color: #ffffff;
    border-color: var(--bubble-mine-meter, #075e54);
}

.text-message-audio:not(.mine).is-playing .play-audio-btn {
    background: #ffffff;
    color: #128c7e;
    border-color: #ffffff;
}

.text-message-audio.mine .audio-msg-label {
    color: var(--bubble-mine-time);
}

.text-message-audio:not(.mine) .audio-msg-label {
    color: var(--bubble-audio-time);
}

.text-msg-body {
    color: inherit;
}

.text-message-mine .text-msg-body,
.text-message-other .text-msg-body {
    color: inherit;
}

.chat-input-row {
    display: flex;
    gap: 6px;
    padding: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.2);
    position: relative;
    z-index: 50;
}

.chat-input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 7px 14px;
    color: var(--input-text);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.chat-input:focus {
    border-color: var(--primary);
    background: rgba(0,210,255,0.05);
}

.chat-input::placeholder { color: #555; }

.chat-send-btn {
    background: var(--primary);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: #000;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.chat-send-btn:hover { opacity: 0.85; }
.chat-send-btn:active { transform: scale(0.92); }

/* ===== HEXBIT 5G+ NETWORK BADGE ===== */
.network-badge {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 20px;
    padding: 4px 8px 4px 6px;
    font-size: 0.68rem;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

.network-icon {
    font-size: 0.65rem;
    animation: networkPulse 3s ease-in-out infinite;
}

@keyframes networkPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.network-name {
    color: #aaa;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.network-tech {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
}

/* ===== CHAT NOTIFICATION BADGE ===== */
.chat-badge {
    display: none;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 5px;
    min-width: 16px;
    text-align: center;
    animation: badgePop 0.3s ease-out;
    margin-left: 4px;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ===== CHAT FLASH ANIMATION ===== */
@keyframes chatFlash {
    0% { border-color: rgba(255,255,255,0.08); box-shadow: none; }
    25% { border-color: var(--primary); box-shadow: 0 0 12px rgba(0, 210, 255, 0.4); }
    50% { border-color: rgba(255,255,255,0.08); box-shadow: none; }
    75% { border-color: var(--primary); box-shadow: 0 0 12px rgba(0, 210, 255, 0.4); }
    100% { border-color: rgba(255,255,255,0.08); box-shadow: none; }
}

.chat-panel.chat-flash {
    animation: chatFlash 0.6s ease-in-out;
}

/* ===== QUEUE TEXT STATES ===== */
#queue-text {
    transition: color 0.3s ease;
    text-align: center;
}

/* ===== RADIO STAGE ===== */
.stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 0;
}

.radio-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ===== FLOATING MEMBERS / LOG DOCK ===== */
.side-dock {
    position: fixed;
    top: 84px;
    right: 16px;
    bottom: 16px;
    width: 320px;
    z-index: 40;
    display: flex;
    pointer-events: none;
}

.side-dock.collapsed {
    width: 0;
    overflow: visible;
}

.side-dock-panel {
    pointer-events: auto;
    width: 320px;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    color: #e8eef5;
    background: rgba(10, 14, 22, 0.94);
    border: 1px solid rgba(0, 210, 255, 0.28);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.side-dock.collapsed .side-dock-panel {
    display: none;
}

.side-dock-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 210, 255, 0.05);
}

.side-tabs {
    display: flex;
    gap: 6px;
    flex: 1;
}

.side-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    color: #9aa4b2;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 7px 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.side-tab.active {
    color: #041018;
    background: var(--primary);
    border-color: var(--primary);
}

.side-tab.tab-pulse {
    animation: tabPulse 0.6s ease;
}

@keyframes tabPulse {
    0% { box-shadow: 0 0 0 rgba(0, 210, 255, 0); }
    40% { box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.35); }
    100% { box-shadow: 0 0 0 rgba(0, 210, 255, 0); }
}

.tab-count,
.tab-badge {
    min-width: 18px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.68rem;
    line-height: 1.3;
}

.side-tab.active .tab-count {
    background: rgba(0, 0, 0, 0.18);
    color: #041018;
}

.side-tab:not(.active) .tab-count {
    background: rgba(0, 210, 255, 0.15);
    color: var(--primary);
}

.tab-badge {
    background: var(--danger);
    color: white;
}

.side-dock-close,
.side-dock-fab {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #ddd;
    cursor: pointer;
}

.side-dock-close {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    flex-shrink: 0;
}

.side-dock-fab {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 41;
    pointer-events: auto;
    border-radius: 14px 0 0 14px;
    padding: 12px 10px;
    writing-mode: vertical-rl;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    border-color: rgba(0, 210, 255, 0.4);
    background: rgba(10, 14, 22, 0.94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.side-tab-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 10px;
}

.side-tab-panel[hidden] {
    display: none !important;
}

.users-grid {
    align-content: flex-start;
    overflow-y: auto;
    min-height: 0;
    flex: 1;
}

.side-dock .user-tag {
    width: 100%;
}

.user-tag.me {
    border-color: rgba(0, 210, 255, 0.55);
}

.user-tag.talking {
    background: rgba(255, 62, 62, 0.16);
    border-color: var(--danger);
    animation: pulse 1s infinite;
}

.user-tag.talking .dot {
    background: var(--danger);
    box-shadow: 0 0 12px var(--danger);
}

.talking-label {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--danger);
}

.user-tag.typing {
    border-color: rgba(0, 210, 255, 0.5);
}

.typing-label {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--primary);
}

.empty-hint {
    color: #777;
    font-size: 0.8rem;
    padding: 8px 4px;
}

.user-tag.ios::after,
.user-tag.android::after,
.user-tag.desktop::after {
    content: none;
}

.audio-msg-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.audio-msg-label {
    font-size: 0.75rem;
    color: #9aa4b2;
}

.text-message-audio.mine {
    align-self: flex-end;
    background: var(--bubble-mine-bg);
    border-color: var(--bubble-mine-border);
    color: var(--bubble-mine-text);
}

.text-message {
    max-width: min(640px, 92%);
}

@media (max-width: 860px) {
    .side-dock {
        top: var(--dock-top, 148px);
        bottom: auto;
        right: 10px;
        width: min(280px, calc(100vw - 20px));
        height: var(--dock-max-h, 220px);
        max-height: var(--dock-max-h, 220px);
    }

    .side-dock-panel {
        width: 100%;
        height: 100%;
    }

    .side-dock-fab {
        top: var(--dock-top, 148px);
        bottom: auto;
        transform: none;
        writing-mode: horizontal-tb;
        border-radius: 999px;
        padding: 10px 14px;
    }

    .chat-panel {
        min-height: 220px;
    }
}
