/* VodkaChat Sprint 7 — CSS consolidado, orden y especificidad preservados */

            * {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
            }
    
            :root {
                --bg-primary: #060606;
                --bg-secondary: #101113;
                --bg-tertiary: #17191d;
                --bg-sidebar: rgba(13, 14, 17, 0.96);
                --bg-soft: rgba(255, 255, 255, 0.03);
                --text-primary: #eceef2;
                --text-secondary: #9ca3af;
                --text-muted: #727986;
                --accent: #7df7aa;
                --accent-strong: #5be18c;
                --accent-soft: rgba(125, 247, 170, 0.10);
                --accent-softer: rgba(125, 247, 170, 0.06);
                --border-color: rgba(255, 255, 255, 0.08);
                --border-strong: rgba(255, 255, 255, 0.12);
                --input-bg: rgba(255, 255, 255, 0.035);
                --input-border: rgba(255, 255, 255, 0.10);
                --input-focus: rgba(125, 247, 170, 0.40);
                --button-bg: rgba(255, 255, 255, 0.05);
                --button-hover: rgba(255, 255, 255, 0.09);
                --button-active: rgba(255, 255, 255, 0.12);
                --sidebar-hover: rgba(255, 255, 255, 0.045);
                --active-tab: rgba(255, 255, 255, 0.06);
                --own-nick: #7df7aa;
                --danger: #cf4f63;
                --danger-hover: #b34154;
                --danger-soft: rgba(207, 79, 99, 0.10);
                --warning: #ffb347;
                --private: #ffb347;
                --message-own-bg: rgba(125, 247, 170, 0.06);
                --message-highlight-bg: rgba(255, 179, 71, 0.12);
                --message-system-bg: rgba(255, 255, 255, 0.035);
                --shadow-main: 0 24px 60px rgba(0, 0, 0, 0.38);
                --shadow-panel: 0 14px 36px rgba(0, 0, 0, 0.24);
                --radius-xl: 22px;
                --radius-lg: 16px;
                --radius-md: 12px;
                --radius-sm: 10px;
            }
            .audio-modal-box {
                border: 1px solid var(--border-color);
                border-radius: var(--radius-md);
                padding: 16px;
                text-align: center;
                background: rgba(255,255,255,0.02);
            }

            .audio-modal-box.recording {
                border-color: var(--accent);
                background: var(--accent-softer);
            }

            .audio-modal-icon {
                font-size: 34px;
                margin-bottom: 8px;
            }

            .audio-modal-status {
                font-size: 13px;
                color: var(--text-secondary);
                margin-bottom: 8px;
            }

            .audio-modal-timer {
                font-family: monospace;
                font-size: 20px;
                color: var(--accent);
                font-weight: 700;
                margin-bottom: 12px;
            }

            .audio-modal-actions {
                display: flex;
                gap: 10px;
                justify-content: center;
                flex-wrap: wrap;
            }

            .log-audio-card {
                display: block;
                margin-top: 4px;
                max-width: 360px;
                border: 1px solid var(--border-color);
                border-radius: var(--radius-md);
                background: rgba(255,255,255,0.03);
                padding: 12px;
            }

            .log-audio-top {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 10px;
                margin-bottom: 8px;
            }

            .log-audio-title {
                font-size: 13px;
                font-weight: 700;
                color: var(--text-primary);
            }

            .log-audio-meta {
                font-size: 11px;
                color: var(--text-secondary);
            }

            .log-audio-actions {
                display: flex;
                gap: 8px;
                align-items: center;
                margin-top: 8px;
                flex-wrap: wrap;
            }

            .log-audio-actions button {
                padding: 7px 10px;
                font-size: 12px;
            }

            .log-audio-player {
                width: 100%;
                margin-top: 8px;
                display: none;
            }
            .log-video-player {
                width: 100%;
                margin-top: 8px;
                display: none;
                max-height: 320px;
                border-radius: var(--radius-sm);
                background: #000;
                border: 1px solid var(--border-color);
                object-fit: contain;
            }
            body.light {
                --bg-primary: #d9dde3;
                --bg-secondary: #f8fafc;
                --bg-tertiary: #e9edf2;
                --bg-sidebar: rgba(240, 243, 247, 0.96);
                --bg-soft: rgba(22, 28, 36, 0.04);
                --text-primary: #1a1f27;
                --text-secondary: #56606e;
                --text-muted: #77808d;
                --accent: #139a53;
                --accent-strong: #0f8145;
                --accent-soft: rgba(19, 154, 83, 0.10);
                --accent-softer: rgba(19, 154, 83, 0.06);
                --border-color: rgba(22, 28, 36, 0.10);
                --border-strong: rgba(22, 28, 36, 0.14);
                --input-bg: rgba(255, 255, 255, 0.72);
                --input-border: rgba(22, 28, 36, 0.14);
                --input-focus: rgba(19, 154, 83, 0.28);
                --button-bg: rgba(22, 28, 36, 0.05);
                --button-hover: rgba(22, 28, 36, 0.09);
                --button-active: rgba(22, 28, 36, 0.12);
                --sidebar-hover: rgba(22, 28, 36, 0.05);
                --active-tab: rgba(22, 28, 36, 0.07);
                --own-nick: #139a53;
                --danger: #cf4f63;
                --danger-hover: #b34154;
                --danger-soft: rgba(207, 79, 99, 0.08);
                --warning: #b9770e;
                --private: #d68b1f;
                --message-own-bg: rgba(19, 154, 83, 0.07);
                --message-highlight-bg: rgba(214, 139, 31, 0.12);
                --message-system-bg: rgba(22, 28, 36, 0.04);
                --shadow-main: 0 18px 45px rgba(35, 45, 60, 0.12);
                --shadow-panel: 0 12px 28px rgba(35, 45, 60, 0.10);
            }
    
            body {
                font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
                background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.025), transparent 28%),
                            radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.18), transparent 32%),
                            linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-secondary) 48%, var(--bg-tertiary) 100%);
                color: var(--text-primary);
                padding: 20px;
                transition: background 0.3s ease, color 0.3s ease;
                font-weight: 400;
            }
    
            .container {
                max-width: 1600px;
                margin: 0 auto;
            }
    
            .chat-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 18px;
                padding-bottom: 14px;
                border-bottom: 1px solid var(--border-color);
                gap: 12px;
            }
    
            .chat-header h1 {
                font-size: 24px;
                font-weight: 600;
                letter-spacing: -0.4px;
                line-height: 1.15;
            }
    
            .chat-header h1 span {
                color: var(--accent);
            }
    
            .main-layout {
                display: flex;
                gap: 18px;
                height: calc(100vh - 120px);
            }
    
            .sidebar-left,
            .sidebar-right,
            .chat-container,
            .controls,
            .popup-content {
                border: 1px solid var(--border-color);
                box-shadow: var(--shadow-panel);
            }
    
            .sidebar-left {
                width: 250px;
                background: var(--bg-sidebar);
                border-radius: var(--radius-lg);
                display: flex;
                flex-direction: column;
                overflow: hidden;
                flex-shrink: 0;
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
            }
    
            .sidebar-section {
                border-bottom: 1px solid var(--border-color);
                min-height: 0;
                display: flex;
                flex-direction: column;
            }
    
            .sidebar-section:last-child {
                border-bottom: none;
                flex: 1;
            }
    
            .section-title,
            .users-header {
                padding: 12px 15px;
                font-weight: 600;
                font-size: 12px;
                text-transform: uppercase;
                letter-spacing: 0.8px;
                color: var(--accent);
                background: var(--bg-tertiary);
                border-bottom: 1px solid var(--border-color);
            }
    
            .channel-list,
            .private-list {
                list-style: none;
                overflow-y: auto;
            }
    
            .channel-list {
                max-height: 280px;
            }
    
            .private-list {
                flex: 1;
                min-height: 0;
            }
    
            .channel-item,
            .private-item {
                padding: 10px 12px;
                cursor: pointer;
                transition: background 0.2s ease, border-color 0.2s ease;
                display: flex;
                align-items: center;
                gap: 8px;
                border-left: 3px solid transparent;
            }
    
            .channel-item:hover,
            .private-item:hover {
                background: var(--sidebar-hover);
            }
    
            .channel-item.active,
            .private-item.active {
                background: var(--active-tab);
                border-left-color: var(--accent);
            }
    
            .channel-item.has-unread,
            .private-item.has-unread {
                background: var(--accent-softer);
            }
    
            .sidebar-item-main {
                display: flex;
                align-items: center;
                gap: 8px;
                flex: 1;
                min-width: 0;
            }
    
            .sidebar-item-text {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                min-width: 0;
                flex: 1;
            }
    
            .sidebar-close-btn {
                padding: 4px 8px;
                border-radius: 8px;
                background: transparent;
                border: 1px solid transparent;
                color: var(--text-secondary);
                box-shadow: none;
                transform: none !important;
            }
    
            .sidebar-close-btn:hover {
                background: var(--danger-soft);
                border-color: rgba(207, 79, 99, 0.2);
                color: var(--text-primary);
            }
    
            .channel-prefix {
                color: var(--accent);
                font-weight: 600;
            }
    
            .private-prefix {
                color: var(--private);
            }
    
            .chat-container {
                flex: 1;
                display: flex;
                flex-direction: column;
                background: rgba(16, 17, 19, 0.96);
                border-radius: var(--radius-lg);
                overflow: hidden;
                min-width: 0;
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
            }
    
            body.light .chat-container {
                background: rgba(248, 250, 252, 0.96);
            }
    
            .chat-tab-header {
                padding: 12px 15px;
                background: var(--bg-tertiary);
                border-bottom: 1px solid var(--border-color);
                display: flex;
                justify-content: space-between;
                align-items: center;
                gap: 10px;
            }
    
            .tab-header-left,
            .tab-header-right {
                display: flex;
                align-items: center;
                gap: 10px;
                min-width: 0;
            }
    
            .tab-info {
                display: flex;
                flex-direction: column;
                min-width: 0;
            }
    
            .tab-title-line {
                display: flex;
                align-items: center;
                gap: 8px;
                min-width: 0;
            }
    
            .tab-title {
                font-weight: 700;
                font-size: 15px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
    
            .tab-subtitle {
                font-size: 11px;
                color: var(--text-secondary);
                margin-top: 2px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
    
            .tab-chip {
                font-size: 11px;
                color: var(--text-primary);
                background: var(--button-bg);
                border: 1px solid var(--border-color);
                border-radius: 999px;
                padding: 4px 8px;
                white-space: nowrap;
            }
    
            .mobile-toggle,
            .tab-close-btn {
                display: none;
                padding: 8px 10px;
                border-radius: var(--radius-sm);
                background: var(--button-bg);
                border: 1px solid var(--border-color);
                color: var(--text-primary);
                cursor: pointer;
            }
    
            .tab-close-btn {
                background: var(--danger-soft);
                color: var(--text-primary);
                border-color: rgba(207, 79, 99, 0.22);
            }
    
            .tab-close-btn:hover {
                background: rgba(207, 79, 99, 0.18);
            }
    
            #log {
                flex: 1;
                background: var(--bg-tertiary);
                color: var(--text-primary);
                border: none;
                padding: 6px 8px;
                font-family: "Segoe UI", Consolas, monospace;
                font-size: 14px;
                overflow-y: auto;
                line-height: 1.4;
                word-wrap: break-word;
            }
    
            .message-input-area {
                display: flex;
                gap: 10px;
                padding: 15px;
                background: var(--bg-secondary);
                border-top: 1px solid var(--border-color);
                align-items: stretch;
                flex-direction: column;
            }

            .message-tools-row {
                display: flex;
                gap: 8px;
                align-items: center;
            }

            .message-tools-row button {
                flex: 0 0 auto;
                min-width: 48px;
            }

            .message-main-row {
                display: flex;
                gap: 10px;
                align-items: center;
            }

            .message-main-row input {
                flex: 1;
                min-width: 0;
            }
    
            .message-input-area input {
                flex: 1;
                min-width: 0;
                padding: 12px 14px;
                background: var(--input-bg);
                border: 1px solid var(--input-border);
                border-radius: var(--radius-md);
                color: var(--text-primary);
                font-size: 14px;
                font-weight: 400;
                transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
            }
    
            .message-input-area input::placeholder,
            .popup-body input::placeholder,
            input::placeholder {
                color: var(--text-muted);
            }
    
            .message-input-area input:focus,
            .popup-body input:focus,
            .users-search input:focus,
            input:focus,
            select:focus {
                outline: none;
                border-color: var(--input-focus);
                box-shadow: 0 0 0 4px var(--accent-soft);
            }
    
            .sidebar-right {
                width: 245px;
                background: var(--bg-sidebar);
                border-radius: var(--radius-lg);
                display: flex;
                flex-direction: column;
                overflow: hidden;
                flex-shrink: 0;
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
            }
    
            .users-search {
                padding: 10px;
                border-bottom: 1px solid var(--border-color);
                background: var(--bg-secondary);
            }
    
            .users-search input {
                width: 100%;
                padding: 10px 12px;
                background: var(--input-bg);
                border: 1px solid var(--input-border);
                border-radius: var(--radius-sm);
                color: var(--text-primary);
                font-size: 13px;
            }
    
            .users-list {
                flex: 1;
                overflow-y: auto;
                padding: 10px;
            }
    
            .users-group {
                margin-bottom: 14px;
            }
    
            .users-group:last-child {
                margin-bottom: 0;
            }
    
            .users-group-title {
                font-size: 11px;
                color: var(--text-secondary);
                text-transform: uppercase;
                letter-spacing: 0.8px;
                margin: 0 0 6px 4px;
            }
    
            .user-item {
                padding: 8px 12px;
                margin: 4px 0;
                border-radius: var(--radius-sm);
                cursor: pointer;
                transition: background 0.2s ease;
                display: flex;
                align-items: center;
                gap: 8px;
            }
    
            .user-item:hover {
                background: var(--sidebar-hover);
            }
    
            .user-item.own {
                color: var(--own-nick);
                font-weight: 600;
            }
    
            .user-role {
                font-size: 11px;
                color: var(--text-muted);
                margin-left: auto;
            }
    
            .controls {
                margin-top: 18px;
                margin-bottom: 18px;
                background: rgba(16, 17, 19, 0.96);
                border-radius: var(--radius-lg);
                padding: 15px;
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
            }
    
            body.light .controls {
                background: rgba(248, 250, 252, 0.96);
            }
    
            .control-row {
                display: flex;
                gap: 12px;
                align-items: center;
                flex-wrap: wrap;
            }
    
            .control-block {
                display: flex;
                gap: 10px;
                align-items: center;
                flex-wrap: wrap;
                padding-right: 12px;
                margin-right: 2px;
                border-right: 1px solid var(--border-color);
            }
    
            .control-block:last-child {
                border-right: none;
                padding-right: 0;
            }
    
            .control-label {
                font-size: 12px;
                color: var(--text-secondary);
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: 0.6px;
            }
    
            input,
            button,
            select {
                padding: 9px 12px;
                background: var(--input-bg);
                border: 1px solid var(--border-color);
                border-radius: var(--radius-sm);
                color: var(--text-primary);
                font-size: 13px;
                font-weight: 400;
            }
    
            select {
                appearance: none;
                -webkit-appearance: none;
                -moz-appearance: none;
            }
    
            button {
                background: var(--button-bg);
                cursor: pointer;
                transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
                font-weight: 500;
            }
    
            button:hover {
                background: var(--button-hover);
                transform: translateY(-1px);
            }
    
            button:active {
                transform: translateY(0);
                background: var(--button-active);
            }
    
            button.primary {
                background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
                color: #07110b;
                border-color: transparent;
                font-weight: 600;
                box-shadow: 0 10px 24px rgba(91, 225, 140, 0.18);
            }
    
            button.primary:hover {
                box-shadow: 0 14px 28px rgba(91, 225, 140, 0.22);
            }
    
            button.danger {
                background: var(--danger-soft);
                color: var(--text-primary);
                border-color: rgba(207, 79, 99, 0.18);
                font-weight: 500;
            }
    
            button.danger:hover {
                background: rgba(207, 79, 99, 0.18);
                border-color: rgba(207, 79, 99, 0.28);
            }
    
            .status {
                display: inline-block;
                width: 10px;
                height: 10px;
                border-radius: 50%;
                margin-right: 8px;
                flex-shrink: 0;
            }
    
            .status.connected {
                background: var(--accent);
                box-shadow: 0 0 8px rgba(125, 247, 170, 0.65);
            }
    
            .status.disconnected {
                background: var(--danger);
                box-shadow: 0 0 8px rgba(207, 79, 99, 0.35);
            }
    
            .log-empty {
                color: var(--text-muted);
                text-align: center;
                padding: 18px;
            }
    
            .log-message {
                margin: 0;
                padding: 0;
                white-space: normal;
                word-wrap: break-word;
            }
    
            .message-row {
                display: flex;
                flex-direction: column;
                gap: 4px;
                padding: 9px 11px;
                border-radius: 12px;
                background: rgba(255, 255, 255, 0.02);
                border: 1px solid transparent;
            }
    
            .message-row.own {
                background: var(--message-own-bg);
                border-color: rgba(125, 247, 170, 0.10);
            }
    
            .message-row.highlight {
                background: var(--message-highlight-bg);
                border-color: rgba(255, 179, 71, 0.16);
            }
    
            .message-row.system {
                background: var(--message-system-bg);
                color: var(--text-secondary);
            }
    
            .message-meta {
                display: flex;
                align-items: center;
                gap: 8px;
                min-width: 0;
                flex-wrap: wrap;
            }
    
            .message-time {
                font-size: 11px;
                color: var(--text-muted);
            }
    
            .message-nick {
                font-weight: 700;
                cursor: pointer;
                border-bottom: 1px dashed var(--border-color);
            }
    
            .message-nick:hover {
                color: var(--accent);
                border-bottom-color: var(--accent);
            }
    
            .message-tag {
                font-size: 10px;
                color: var(--text-secondary);
                background: var(--button-bg);
                border: 1px solid var(--border-color);
                border-radius: 999px;
                padding: 2px 7px;
            }
    
            .message-content {
                white-space: pre-wrap;
                word-break: break-word;
                overflow-wrap: anywhere;
            }
    
            .message-content img {
                display: block;
            }
    
            .mention-text {
                color: var(--warning);
                font-weight: 700;
            }
    
            .popup-overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.72);
                z-index: 2000;
                display: flex;
                align-items: center;
                justify-content: center;
                backdrop-filter: blur(2px);
                -webkit-backdrop-filter: blur(2px);
            }
    
            .popup-content {
                background: var(--bg-secondary);
                border-radius: var(--radius-lg);
                width: 420px;
                max-width: 92%;
                max-height: 80vh;
                display: flex;
                flex-direction: column;
                overflow: hidden;
            }
    
            .popup-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 15px 20px;
                border-bottom: 1px solid var(--border-color);
                background: var(--bg-tertiary);
            }
    
            .popup-header h3 {
                color: var(--accent);
                font-weight: 600;
                font-size: 16px;
            }
    
            .close-btn {
                background: none;
                border: none;
                font-size: 20px;
                cursor: pointer;
                color: var(--text-primary);
                padding: 0;
                margin: 0;
                box-shadow: none;
            }
    
            .close-btn:hover {
                color: var(--danger);
                transform: none;
                background: none;
            }
    
            .popup-body {
                flex: 1;
                padding: 20px;
                overflow-y: auto;
                background: var(--bg-secondary);
            }
    
            .popup-body input {
                width: 100%;
                padding: 10px 12px;
                margin-bottom: 15px;
                background: var(--input-bg);
                border: 1px solid var(--input-border);
                border-radius: var(--radius-sm);
                color: var(--text-primary);
            }
    
            .popup-footer {
                display: flex;
                gap: 10px;
                justify-content: flex-end;
                padding: 15px 20px;
                border-top: 1px solid var(--border-color);
                background: var(--bg-secondary);
            }
    
            .channels-list {
                max-height: 320px;
                overflow-y: auto;
            }
    
            .channels-sort-row {
                display: flex;
                gap: 8px;
                margin-bottom: 12px;
            }
    
            .channels-sort-row button {
                flex: 1;
            }
    
            .channel-option {
                padding: 10px 14px;
                margin: 5px 0;
                cursor: pointer;
                border-radius: var(--radius-sm);
                transition: background 0.2s ease, border-color 0.2s ease;
                display: flex;
                align-items: center;
                gap: 10px;
                border: 1px solid transparent;
            }
    
            .channel-option:hover {
                background: var(--sidebar-hover);
            }
    
            .channel-option.selected {
                background: var(--active-tab);
                border-color: var(--border-strong);
                border-left: 3px solid var(--accent);
            }
    
            .channel-option .channel-hash {
                color: var(--accent);
                font-weight: 600;
            }
    
            .channel-users {
                font-size: 11px;
                color: var(--text-secondary);
                margin-left: auto;
            }
    
            .channel-topic {
                font-size: 10px;
                color: var(--text-muted);
                margin-left: 10px;
                max-width: 140px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
    
            .log-image {
                max-width: 300px;
                max-height: 220px;
                border-radius: var(--radius-sm);
                margin-top: 4px;
                cursor: pointer;
                border: 1px solid var(--border-color);
                box-shadow: var(--shadow-panel);
                pointer-events: auto;
                -webkit-user-drag: none;
                -webkit-touch-callout: none;
                -webkit-user-select: none;
                user-select: none;
            }
    
            .log-image:hover {
                transform: scale(1.02);
                transition: transform 0.2s ease;
            }
    
            .unread-badge {
                animation: pulse 0.5s ease;
                min-width: 22px;
                text-align: center;
                background: var(--accent);
                color: #000;
                border-radius: 999px;
                padding: 2px 8px;
                font-size: 11px;
                font-weight: 700;
            }
    
            .mention-badge {
                background: var(--warning);
            }
    
            .empty-state {
                padding: 15px;
                text-align: center;
                color: var(--text-muted);
            }
    
            .user-modal .popup-content {
                width: 480px;
            }
    
            .user-info-row {
                margin-bottom: 14px;
                border-bottom: 1px solid var(--border-color);
                padding-bottom: 12px;
            }
    
            .user-info-label {
                font-size: 11px;
                color: var(--text-secondary);
                text-transform: uppercase;
                letter-spacing: 0.6px;
                margin-bottom: 6px;
            }
    
            .user-info-value {
                font-family: monospace;
                word-break: break-all;
                font-size: 13px;
            }

            .user-moderation-panel {
                margin-top: 16px;
                padding-top: 14px;
                border-top: 1px solid var(--border-color);
            }

            .user-moderation-title {
                margin: 0 0 10px;
                color: var(--text-secondary);
                font-size: 11px;
                font-weight: 700;
                letter-spacing: 0.65px;
                text-transform: uppercase;
            }

            .user-moderation-actions {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
            }

            .user-moderation-actions button {
                width: 100%;
                min-width: 0;
            }
            .user-moderation-actions .wide { grid-column:1 / -1; }

            .user-rank-pill {
                display: inline-flex;
                align-items: center;
                margin-left: 6px;
                padding: 1px 7px;
                border: 1px solid var(--border-color);
                border-radius: 999px;
                color: var(--text-secondary);
                font-size: 10px;
                font-weight: 700;
                vertical-align: middle;
            }
    
            .user-channels-list {
                display: flex;
                flex-wrap: wrap;
                gap: 6px;
                margin-top: 6px;
            }
    
            .user-channel-badge {
                background: var(--accent-soft);
                border-radius: 20px;
                padding: 3px 10px;
                font-size: 12px;
                font-family: monospace;
                border: 1px solid transparent;
            }
    
            .user-channel-badge.clickable {
                cursor: pointer;
                transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
                color: var(--text-primary);
            }
    
            .user-channel-badge.clickable:hover {
                background: var(--accent-soft);
                border-color: var(--border-strong);
                transform: translateY(-1px);
            }
            @media (max-width: 900px) {
                .sidebar-left, .sidebar-right { width: 190px; }
            }
    
            @media (max-width: 768px) {
                body { padding: 10px; }
                .container { margin-bottom: 10px; }

                .chat-header {
                    flex-wrap: nowrap;
                    gap: 8px;
                    margin-bottom: 10px;
                    padding-bottom: 10px;
                    align-items: center;
                }

                .chat-header h1 {
                    font-size: 18px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }

                #mobileControlsToggle {
                    display: inline-flex !important;
                    align-items: center;
                    justify-content: center;
                }

                .controls {
                    display: none;
                    margin-top: 10px;
                    margin-bottom: 10px;
                    padding: 10px;
                    border-radius: 16px;
                }

                .controls.mobile-open {
                    display: block;
                }

                .control-row {
                    flex-direction: column;
                    align-items: stretch;
                }

                .control-block {
                    width: 100%;
                    border-right: none;
                    padding-right: 0;
                    margin-right: 0;
                    border-bottom: 1px solid var(--border-color);
                    padding-bottom: 10px;
                    margin-bottom: 2px;
                }

                .control-block:last-child {
                    border-bottom: none;
                    padding-bottom: 0;
                }

                .control-block input,
                .control-block button,
                .control-block select {
                    width: 100% !important;
                }

                .main-layout {
                    position: relative;
                    height: calc(100dvh - 120px);
                    gap: 0;
                }

                .chat-container {
                    width: 100%;
                    min-width: 0;
                    border-radius: 16px;
                }

                .sidebar-left,
                .sidebar-right {
                    display: flex;
                    position: fixed;
                    top: 0;
                    bottom: 0;
                    z-index: 2500;
                    width: 84%;
                    max-width: 340px;
                    border-radius: 0;
                    box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
                    transition: transform 0.25s ease;
                }

                .sidebar-left { left: 0; transform: translateX(-100%); }
                .sidebar-right { right: 0; transform: translateX(100%); }

                .sidebar-left.mobile-open,
                .sidebar-right.mobile-open {
                    transform: translateX(0);
                }

                .mobile-toggle,
                .tab-close-btn {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                }

                .chat-tab-header {
                    padding: 10px 12px;
                }

                .tab-subtitle {
                    display: none;
                }

                .tab-chip {
                    display: none;
                }

                #log {
                    flex: 1;
                    background: var(--bg-tertiary);
                    color: var(--text-primary);
                    border: none;
                    padding: 6px 8px;
                    font-family: "Segoe UI", Consolas, monospace;
                    font-size: 14px;
                    overflow-y: auto;
                    line-height: 1.4;
                    white-space: pre-wrap;
                    word-wrap: break-word;
                }

                .message-input-area {
                    padding: 10px;
                    gap: 8px;
                }

                .message-tools-row {
                    display: flex;
                    gap: 8px;
                }

                .message-tools-row button {
                    flex: 1 1 0;
                    min-width: 0;
                    padding: 10px 0;
                }

                .message-main-row {
                    display: flex;
                    gap: 8px;
                    align-items: center;
                }

                .message-main-row input {
                    min-width: 0;
                    font-size: 16px;
                    padding: 11px 12px;
                }

                .message-main-row button {
                    flex-shrink: 0;
                    padding: 10px 12px;
                }

                .popup-content {
                    width: 95%;
                    max-height: 88vh;
                }

                .popup-footer {
                    flex-direction: column;
                }

                .popup-footer button {
                    width: 100%;
                }

                .channel-list,
                .private-list,
                .users-list {
                    max-height: none;
                    flex: 1;
                }

                .log-image {
                    max-width: 100%;
                    height: auto;
                    max-height: 260px;
                }

                .user-modal .popup-content {
                    width: 92%;
                }

            }



            /* VodkaChat IRC refresh: compact chrome, less permanent UI noise. */
            .chat-header {
                margin-bottom: 10px;
                padding: 8px 10px 10px;
                min-height: 52px;
            }
            .vc-brand { display:flex; align-items:center; gap:10px; min-width:0; }
            .vc-brand-copy { min-width:0; display:flex; flex-direction:column; gap:1px; }
            .vc-brand-title { font-size:18px; font-weight:700; line-height:1.1; letter-spacing:-0.25px; }
            .vc-brand-nick { color:var(--text-secondary); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
            .vc-header-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; min-width:0; }
            .vc-connection-pill {
                display:flex; align-items:center; gap:7px; padding:7px 10px;
                border:1px solid var(--border-color); border-radius:999px;
                color:var(--text-secondary); background:var(--bg-secondary); font-size:12px;
                white-space:nowrap;
            }
            .vc-header-actions button { padding:8px 10px; min-height:34px; }
            .main-layout { gap:10px; height:calc(100vh - 78px); }
            .sidebar-left { width:220px; }
            .sidebar-right { width:220px; }
            .section-title, .users-header { padding:10px 12px; }
            .channel-item, .private-item { padding:8px 10px; }
            .users-list { padding:6px; }
            .user-item { padding:7px 9px; margin:2px 0; }
            .chat-tab-header { min-height:54px; }
            .message-input-area { padding:10px; gap:7px; }
            .message-main-row { gap:7px; }
            .message-tools-row { padding-left:42px; gap:6px; }
            .message-tools-row.collapsed { display:none; }
            .message-tools-row button { min-width:40px; padding:7px 9px; }
            #messageToolsToggle { width:36px; min-width:36px; padding:8px 0; font-size:18px; line-height:1; }
            .irc-action-message { opacity:.92; font-style:italic; }
            .irc-notice-message { color:var(--text-secondary); }
            .irc-event-message { color:var(--text-secondary); font-size:13px; }
            .irc-command-hint { color:var(--text-muted); font-size:12px; }

            /* VodkaChat 2.0: IRC-first interaction layer. */
            .tab-header-right { gap: 6px; }
            .tab-action-btn {
                width: 34px;
                min-width: 34px;
                height: 34px;
                padding: 0;
                border-radius: 9px;
                font-size: 18px;
                line-height: 1;
            }
            .channel-actions-menu {
                position: fixed;
                z-index: 4100;
                width: 250px;
                padding: 7px;
                border: 1px solid var(--border-color);
                border-radius: 12px;
                background: var(--bg-secondary);
                box-shadow: 0 18px 45px rgba(0,0,0,.28);
            }
            .channel-actions-menu button {
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 12px;
                padding: 9px 10px;
                border: 0;
                background: transparent;
                text-align: left;
                border-radius: 8px;
            }
            .channel-actions-menu button:hover { background: var(--button-hover); }
            .channel-actions-menu .menu-section {
                margin: 5px 7px 4px;
                padding-top: 7px;
                border-top: 1px solid var(--border-color);
                color: var(--text-muted);
                font-size: 10px;
                font-weight: 700;
                letter-spacing: .6px;
                text-transform: uppercase;
            }
            .channel-actions-menu .danger { color: var(--danger); }
            .command-palette {
                display: none;
                margin: 0 0 2px 43px;
                padding: 5px;
                border: 1px solid var(--border-color);
                border-radius: 10px;
                background: var(--bg-secondary);
                box-shadow: 0 10px 28px rgba(0,0,0,.2);
                max-height: 230px;
                overflow-y: auto;
            }
            .command-palette.visible { display: block; }
            .command-palette-item {
                display: grid;
                grid-template-columns: 105px minmax(0,1fr);
                gap: 10px;
                width: 100%;
                padding: 8px 9px;
                border: 0;
                border-radius: 7px;
                background: transparent;
                text-align: left;
                cursor: pointer;
            }
            .command-palette-item:hover,
            .command-palette-item.selected { background: var(--button-hover); }
            .command-palette-command { color: var(--accent); font-family: monospace; font-weight: 700; }
            .command-palette-description { color: var(--text-secondary); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
            .command-palette-empty { padding: 8px 9px; color: var(--text-muted); font-size: 12px; }

            /* User details are a non-blocking side sheet, not a modal wall. */
            .user-modal {
                background: rgba(0,0,0,.12);
                align-items: stretch;
                justify-content: flex-end;
                padding: 8px;
            }
            .user-modal .popup-content {
                width: min(390px, calc(100vw - 16px));
                max-width: 390px;
                height: calc(100vh - 16px);
                max-height: none;
                margin: 0;
                border-radius: 14px;
                overflow: hidden;
                box-shadow: -12px 0 45px rgba(0,0,0,.26);
                animation: vc-user-sheet-in .14s ease-out;
            }
            .user-modal .popup-body { overflow-y: auto; }
            @keyframes vc-user-sheet-in {
                from { transform: translateX(18px); opacity: .6; }
                to { transform: translateX(0); opacity: 1; }
            }
            .user-sheet-title { display:flex; align-items:center; gap:8px; min-width:0; }
            .user-sheet-title strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
            .user-sheet-primary { display:grid; grid-template-columns: 1fr 1fr; gap:8px; margin-bottom:14px; }
            .user-sheet-primary button { width:100%; }
            .user-sheet-primary .wide { grid-column: 1 / -1; }
            .user-info-compact {
                display:grid;
                grid-template-columns: 86px minmax(0,1fr);
                gap: 8px 12px;
                padding: 11px 0;
                border-top: 1px solid var(--border-color);
                font-size: 12px;
            }
            .user-info-compact .k { color:var(--text-muted); }
            .user-info-compact .v { min-width:0; overflow-wrap:anywhere; font-family:monospace; }
            .irc-shortcut-hint { color:var(--text-muted); font-size:11px; margin-left:auto; }
            .tab-mode-chip {
                display:inline-flex;
                align-items:center;
                min-height:20px;
                padding:1px 6px;
                border:1px solid var(--border-color);
                border-radius:999px;
                color:var(--text-muted);
                font:600 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
                background:var(--bg-secondary);
            }
            .user-presence {
                width:7px;
                height:7px;
                border-radius:50%;
                flex:0 0 auto;
                background:#4caf73;
                box-shadow:0 0 0 2px color-mix(in srgb, #4caf73 15%, transparent);
            }
            .user-presence.away {
                background:var(--text-muted);
                box-shadow:none;
            }
            .user-item.away .user-nick { opacity:.58; }
            .user-account-mark { color:var(--accent); font-size:10px; font-weight:800; }
            .channel-sheet-topic {
                padding:12px;
                border:1px solid var(--border-color);
                border-radius:10px;
                background:var(--bg-secondary);
                white-space:pre-wrap;
                overflow-wrap:anywhere;
                margin-bottom:12px;
            }
            .channel-sheet-meta {
                display:grid;
                grid-template-columns:90px minmax(0,1fr);
                gap:8px 12px;
                font-size:12px;
                padding:10px 0;
                border-top:1px solid var(--border-color);
            }
            .channel-sheet-meta .k { color:var(--text-muted); }
            .channel-sheet-meta .v { min-width:0; overflow-wrap:anywhere; }
            .channel-ban-list { display:flex; flex-direction:column; gap:6px; margin-top:8px; }
            .channel-ban-item {
                border:1px solid var(--border-color);
                border-radius:8px;
                padding:8px;
                font:11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
                overflow-wrap:anywhere;
                display:flex;
                align-items:flex-start;
                justify-content:space-between;
                gap:10px;
            }
            .channel-ban-item-main { min-width:0; flex:1; }
            .channel-ban-item button { flex:0 0 auto; padding:5px 8px; font:inherit; }
            .channel-mode-editor {
                margin-top:14px;
                padding-top:14px;
                border-top:1px solid var(--border-color);
                display:grid;
                gap:12px;
            }
            .channel-mode-editor-title {
                color:var(--text-secondary);
                font-size:11px;
                font-weight:800;
                letter-spacing:.65px;
                text-transform:uppercase;
            }
            .channel-mode-toggles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
            .channel-mode-toggle {
                display:flex;
                align-items:center;
                justify-content:space-between;
                gap:10px;
                border:1px solid var(--border-color);
                border-radius:9px;
                padding:8px 10px;
                background:var(--bg-secondary);
                font-size:12px;
            }
            .channel-mode-toggle button { padding:5px 9px; min-width:52px; }
            .channel-mode-param-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:7px; align-items:center; }
            .channel-mode-param-row input {
                width:100%; min-width:0; border:1px solid var(--border-color); border-radius:8px;
                background:var(--bg-secondary); color:var(--text-primary); padding:8px 9px; outline:none;
            }
            .user-ban-mask {
                margin-top:10px; padding:8px 10px; border:1px dashed var(--border-color); border-radius:8px;
                font:11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap:anywhere;
                color:var(--text-secondary); display:flex; align-items:center; justify-content:space-between; gap:8px;
            }
            .user-ban-mask code { overflow-wrap:anywhere; min-width:0; }
            .user-ban-mask button { flex:0 0 auto; padding:5px 8px; }

            #currentTabSubtitle.topic-editable { cursor: pointer; }
            #currentTabSubtitle.topic-editable:hover { color: var(--text-primary); }

            @media (max-width: 768px) {
                .chat-header { padding:7px 8px 8px; }
                .vc-brand-title { font-size:16px; }
                .vc-connection-pill #statusText { display:none; }
                .vc-connection-pill { padding:7px; }
                .vc-header-actions button { padding:7px 9px; }
                .main-layout { height:calc(100vh - 68px); }
                .message-tools-row { padding-left:0; }
                .command-palette { margin-left:0; }
            }


            /* VodkaChat 2.2 — app shell: flatter, denser, IRC-first. */
            html, body { width:100%; height:100%; overflow:hidden; }
            body {
                padding:0;
                background:var(--bg-primary);
                font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            }
            .container, .chat-header { display:none !important; }
            .main-layout {
                width:100%;
                height:100dvh;
                max-height:100dvh;
                gap:0;
                margin:0;
                background:var(--bg-primary);
            }
            .sidebar-left, .sidebar-right, .chat-container {
                border-radius:0;
                box-shadow:none;
                backdrop-filter:none;
                -webkit-backdrop-filter:none;
            }
            .sidebar-left {
                width:202px;
                border:0;
                border-right:1px solid var(--border-color);
                background:var(--bg-secondary);
            }
            .sidebar-brand {
                padding:14px 12px 12px;
                border-bottom:1px solid var(--border-color);
            }
            .sidebar-brand-main { display:flex; align-items:center; gap:9px; min-width:0; }
            .sidebar-brand-main strong { font-size:16px; letter-spacing:-.2px; }
            .sidebar-brand-main img { flex:0 0 auto; }
            .sidebar-identity {
                display:flex;
                align-items:center;
                min-width:0;
                gap:5px;
                margin-top:8px;
                color:var(--text-muted);
                font-size:11px;
                line-height:1.2;
                white-space:nowrap;
                overflow:hidden;
            }
            .sidebar-identity #currentNick {
                color:var(--text-secondary);
                min-width:0;
                overflow:hidden;
                text-overflow:ellipsis;
            }
            .sidebar-identity #statusText { overflow:hidden; text-overflow:ellipsis; }
            .sidebar-status-sep { opacity:.55; }
            .sidebar-identity .status { width:7px; height:7px; margin:0 1px 0 0; box-shadow:none; }
            .sidebar-section { border-bottom:0; }
            .channels-section { flex:0 0 auto; max-height:48%; }
            .private-section { flex:1 1 auto; border-top:1px solid var(--border-color); }
            .section-title, .users-header {
                min-height:36px;
                padding:8px 10px 7px;
                display:flex;
                align-items:center;
                justify-content:space-between;
                gap:8px;
                background:transparent;
                border-bottom:0;
                color:var(--text-muted);
                font-size:10px;
                line-height:1;
                letter-spacing:.9px;
                font-weight:700;
            }
            .section-add {
                width:24px; height:24px; min-width:24px;
                padding:0; border:0; border-radius:6px;
                background:transparent; box-shadow:none;
                color:var(--text-secondary); font-size:17px; line-height:1;
            }
            .section-add:hover { background:var(--button-hover); color:var(--text-primary); transform:none; }
            .channel-list { max-height:none; }
            .channel-list, .private-list { padding:0 6px 7px; }
            .channel-item, .private-item {
                min-height:31px;
                padding:5px 7px;
                gap:5px;
                margin:1px 0;
                border-left:0;
                border-radius:6px;
                color:var(--text-secondary);
                font-size:13px;
            }
            .channel-item.active, .private-item.active {
                background:var(--active-tab);
                color:var(--text-primary);
                box-shadow:inset 2px 0 0 var(--accent);
            }
            .channel-item.has-unread, .private-item.has-unread { color:var(--text-primary); font-weight:600; }
            .channel-prefix { color:var(--text-muted); font-weight:500; }
            .private-prefix { font-size:8px; color:var(--private); }
            .sidebar-close-btn {
                width:22px; min-width:22px; height:22px;
                padding:0; opacity:0; border:0; border-radius:5px;
                font-size:10px;
            }
            .channel-item:hover .sidebar-close-btn, .private-item:hover .sidebar-close-btn { opacity:.8; }
            .sidebar-footer {
                display:grid;
                grid-template-columns:1fr auto;
                gap:6px;
                padding:8px;
                border-top:1px solid var(--border-color);
                margin-top:auto;
            }
            .sidebar-footer button {
                min-height:30px;
                padding:6px 8px;
                border-radius:7px;
                background:transparent;
                box-shadow:none;
                color:var(--text-muted);
                font-size:11px;
                border:1px solid transparent;
            }
            .sidebar-footer button:hover { background:var(--button-hover); color:var(--text-primary); transform:none; }
            .sidebar-footer .sidebar-exit:hover { color:var(--danger); background:var(--danger-soft); }

            .chat-container {
                border:0;
                background:var(--bg-tertiary);
                min-width:0;
                position:relative;
            }
            body.light .chat-container { background:var(--bg-tertiary); }
            .chat-tab-header {
                min-height:54px;
                padding:8px 12px;
                background:var(--bg-secondary);
                border-bottom:1px solid var(--border-color);
            }
            .tab-info { gap:0; }
            .tab-title { font-size:15px; font-weight:700; }
            .tab-chip { display:none !important; }
            .tab-subtitle { max-width:min(68vw, 900px); margin-top:1px; font-size:11px; color:var(--text-muted); }
            .tab-mode-chip { min-height:18px; border:0; background:transparent; padding:0 2px; }
            .tab-action-btn {
                width:30px; min-width:30px; height:30px;
                border-radius:7px;
                border:1px solid transparent;
                background:transparent;
                color:var(--text-muted);
                box-shadow:none;
                font-size:17px;
            }
            .tab-action-btn:hover { background:var(--button-hover); border-color:var(--border-color); color:var(--text-primary); transform:none; }
            .tab-close-btn { min-height:30px; padding:5px 8px; font-size:11px; }

            #log {
                padding:12px 18px 18px;
                background:var(--bg-tertiary);
                font-family:inherit;
                font-size:13.5px;
                line-height:1.42;
            }
            .chat-line {
                display:grid;
                grid-template-columns:42px minmax(78px, 132px) minmax(0, 1fr);
                column-gap:8px;
                align-items:baseline;
                min-height:24px;
                padding:2px 4px;
                border-radius:5px;
            }
            .chat-line:hover { background:var(--bg-soft); }
            .chat-line.own { background:transparent; }
            .chat-line.highlight { background:var(--message-highlight-bg); }
            .chat-line .message-time, .irc-system-line .message-time {
                font:10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
                color:var(--text-muted);
                opacity:.62;
            }
            .chat-line .message-nick {
                min-width:0;
                overflow:hidden;
                text-overflow:ellipsis;
                white-space:nowrap;
                border:0;
                font-weight:650;
            }
            .chat-line .message-content { min-width:0; white-space:pre-wrap; overflow-wrap:anywhere; }
            .user-self-inline { color:var(--text-muted); font-size:9px; font-weight:600; }
            .chat-line.action-line .message-content { font-style:italic; color:var(--text-secondary); }
            .chat-line.notice-line { color:var(--text-secondary); }
            .irc-system-line {
                display:grid;
                grid-template-columns:42px 10px minmax(0,1fr);
                column-gap:8px;
                align-items:baseline;
                min-height:20px;
                padding:1px 4px;
                color:var(--text-muted);
                font-size:11.5px;
            }
            .irc-system-line .system-mark { opacity:.5; }
            .irc-system-line.kick-event { color:var(--text-secondary); }
            .new-messages-button {
                position:absolute;
                right:18px;
                bottom:64px;
                z-index:80;
                display:none;
                align-items:center;
                gap:7px;
                min-height:32px;
                padding:6px 11px;
                border:1px solid var(--border-color);
                border-radius:999px;
                background:var(--bg-secondary);
                color:var(--text-primary);
                box-shadow:0 5px 20px rgba(0,0,0,.24);
                font-size:11px;
                font-weight:700;
                cursor:pointer;
            }
            .new-messages-button.visible { display:flex; }
            .new-messages-button:hover { background:var(--button-hover); }
            .new-messages-button .new-count {
                min-width:18px;
                height:18px;
                padding:0 5px;
                display:inline-flex;
                align-items:center;
                justify-content:center;
                border-radius:999px;
                background:var(--accent);
                color:#111;
                font:800 10px/18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            }
            .log-empty { padding:28px 16px; font-size:12px; }
            .log-image, .log-video-player, .log-audio-card { margin-left:50px; }

            .message-input-area {
                padding:8px 12px 10px;
                gap:5px;
                background:var(--bg-secondary);
                border-top:1px solid var(--border-color);
            }
            .message-main-row { gap:6px; }
            .message-input-area input {
                min-height:38px;
                padding:8px 11px;
                border-radius:9px;
                font-size:13px;
                background:var(--input-bg);
            }
            #messageToolsToggle {
                width:34px; min-width:34px; height:34px;
                padding:0; border-radius:8px;
                background:transparent;
                box-shadow:none;
            }
            .send-message-btn {
                width:36px; min-width:36px; height:36px;
                padding:0 !important;
                border-radius:9px;
                font-size:19px;
                line-height:1;
            }
            .message-tools-row { padding-left:40px; }
            .message-tools-row button { padding:6px 8px; font-size:11px; }
            .command-palette { margin-left:40px; }

            .sidebar-right {
                width:210px;
                border:0;
                border-left:1px solid var(--border-color);
                background:var(--bg-secondary);
            }
            .users-header { min-height:38px; padding:9px 10px 6px; }
            .users-count {
                color:var(--text-muted);
                font:600 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            }
            .users-search {
                padding:5px 7px 7px;
                border-bottom:1px solid var(--border-color);
                background:transparent;
            }
            .users-search input {
                padding:7px 8px;
                border-radius:7px;
                border-color:transparent;
                background:var(--input-bg);
                font-size:11px;
            }
            .users-list { padding:5px; }
            .user-item {
                min-height:28px;
                padding:4px 6px;
                margin:1px 0;
                gap:6px;
                border-radius:6px;
                font-size:12px;
            }
            .user-presence { width:6px; height:6px; box-shadow:none; }
            .user-prefix-mark {
                width:12px; flex:0 0 12px;
                color:var(--text-muted);
                text-align:center;
                font:700 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            }
            .user-prefix-mark.op { color:var(--accent); }
            .user-self-mark { margin-left:auto; color:var(--text-muted); font-size:9px; }
            .user-role { display:none !important; }
            body.private-active .sidebar-right, body.users-collapsed .sidebar-right { display:none; }
            body.private-active .users-panel-toggle { display:none !important; }

            @media (max-width: 900px) {
                .sidebar-left { width:190px; }
                .sidebar-right { width:196px; }
            }
            @media (max-width: 768px) {
                body { overflow:hidden; }
                .main-layout { height:100dvh; }
                .sidebar-left, .sidebar-right {
                    position:fixed;
                    top:0; bottom:0;
                    height:100dvh;
                    width:min(86vw, 300px);
                    z-index:2500;
                }
                .sidebar-brand { padding-top:max(12px, env(safe-area-inset-top)); }
                .chat-tab-header { min-height:50px; padding:7px 8px; }
                .tab-subtitle { max-width:58vw; }
                #log { padding:8px 8px 12px; }
                .chat-line {
                    grid-template-columns:36px minmax(66px, 105px) minmax(0,1fr);
                    column-gap:6px;
                    padding:2px;
                }
                .irc-system-line { grid-template-columns:36px 8px minmax(0,1fr); column-gap:6px; padding:1px 2px; }
                .message-input-area { padding:7px 8px max(8px, env(safe-area-inset-bottom)); }
                .new-messages-button { right:10px; bottom:58px; }
                .users-panel-toggle { display:none !important; }
                .log-image, .log-video-player, .log-audio-card { margin-left:42px; }
            }


            /* VodkaChat 2.3 — enlaces del chat */
            .message-content .chat-link {
                text-decoration: underline;
                text-decoration-thickness: 1px;
                text-underline-offset: 2px;
                overflow-wrap: anywhere;
            }
            .message-content .chat-link:hover { opacity:.88; }
            .message-content .chat-link.project-media-link {
                color:#ffd400;
                font-weight:650;
            }
            .message-content .chat-link.external-link {
                color:#d9ccff;
                font-weight:750;
                text-decoration-color:rgba(217, 204, 255, .48);
                -webkit-user-select:none;
                user-select:none;
                -webkit-touch-callout:none;
                cursor:pointer;
            }
            body.light .message-content .chat-link.external-link {
                color:#5a3ec8;
                text-decoration-color:rgba(90, 62, 200, .38);
            }
            .message-content .chat-link.external-link::after {
                content:' ↗';
                font-size:.78em;
                opacity:.55;
                text-decoration:none;
            }

        

            /* VodkaChat 2.7 — mobile-first navigation and composer */
            :root { --vc-app-height: 100dvh; }

            .mobile-drawer-close,
            .mobile-conversation-rail { display:none; }

            .users-header-actions { display:flex; align-items:center; gap:8px; margin-left:auto; }

            .message-main-row textarea {
                flex:1;
                min-width:0;
                min-height:38px;
                max-height:120px;
                padding:9px 11px;
                resize:none;
                overflow-y:auto;
                background:var(--input-bg);
                border:1px solid var(--input-border);
                border-radius:9px;
                color:var(--text-primary);
                font:inherit;
                font-size:13px;
                line-height:1.35;
                transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
            }
            .message-main-row textarea::placeholder { color:var(--text-muted); }
            .message-main-row textarea:focus {
                outline:none;
                border-color:var(--input-focus);
                box-shadow:0 0 0 3px var(--accent-soft);
            }
            .tab-close-btn {
                width:30px;
                min-width:30px;
                height:30px;
                padding:0;
                display:none;
                align-items:center;
                justify-content:center;
                border-radius:7px;
                font-size:17px;
                line-height:1;
            }

            @media (max-width: 768px) {
                html, body { width:100%; height:100%; overscroll-behavior:none; }
                body { padding:0 !important; background:var(--bg-tertiary); }
                .main-layout {
                    height:var(--vc-app-height, 100dvh) !important;
                    min-height:0;
                    width:100%;
                }
                .chat-container {
                    width:100%;
                    height:100%;
                    border:0;
                    border-radius:0 !important;
                    box-shadow:none;
                    backdrop-filter:none;
                    -webkit-backdrop-filter:none;
                }
                .chat-tab-header {
                    min-height:48px;
                    padding:max(6px, env(safe-area-inset-top)) 7px 6px;
                    gap:6px;
                    flex:0 0 auto;
                }
                .tab-header-left { gap:7px; flex:1; min-width:0; }
                .tab-header-right { gap:3px; }
                .tab-title { font-size:14px; }
                .tab-mode-chip { font-size:10px; }
                .tab-subtitle { display:none !important; }
                .mobile-toggle {
                    display:inline-flex !important;
                    min-height:32px;
                    height:32px;
                    padding:0 9px;
                    align-items:center;
                    justify-content:center;
                    border-radius:8px;
                    background:transparent;
                    border:1px solid var(--border-color);
                    color:var(--text-secondary);
                    font-size:11px;
                    font-weight:700;
                    box-shadow:none;
                }
                .mobile-toggle:hover { transform:none; background:var(--button-hover); color:var(--text-primary); }
                .mobile-users-toggle { display:inline-flex !important; }
                body.private-active .mobile-users-toggle { display:none !important; }
                .users-panel-toggle { display:none !important; }
                .tab-close-btn {
                    min-height:30px;
                    display:inline-flex;
                    background:transparent;
                    border-color:transparent;
                    color:var(--text-muted);
                }
                .tab-close-btn:hover { background:var(--danger-soft); color:var(--text-primary); }

                .mobile-conversation-rail {
                    display:flex;
                    flex:0 0 38px;
                    min-height:38px;
                    gap:5px;
                    align-items:center;
                    padding:5px 7px;
                    overflow-x:auto;
                    overflow-y:hidden;
                    scrollbar-width:none;
                    border-bottom:1px solid var(--border-color);
                    background:var(--bg-secondary);
                    scroll-behavior:smooth;
                    -webkit-overflow-scrolling:touch;
                }
                .mobile-conversation-rail::-webkit-scrollbar { display:none; }
                .mobile-rail-item {
                    flex:0 0 auto;
                    max-width:150px;
                    height:27px;
                    display:inline-flex;
                    align-items:center;
                    gap:5px;
                    padding:0 8px;
                    border:1px solid transparent;
                    border-radius:8px;
                    background:transparent;
                    color:var(--text-secondary);
                    font-size:11px;
                    font-weight:600;
                    cursor:pointer;
                    white-space:nowrap;
                }
                .mobile-rail-item:hover { background:var(--button-hover); color:var(--text-primary); transform:none; }
                .mobile-rail-item.active {
                    background:var(--active-tab);
                    border-color:var(--border-color);
                    color:var(--text-primary);
                }
                .mobile-rail-name { overflow:hidden; text-overflow:ellipsis; max-width:105px; }
                .mobile-rail-prefix { color:var(--text-muted); font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
                .mobile-rail-item.private .mobile-rail-prefix { color:var(--private); font-size:8px; }
                .mobile-rail-badge {
                    min-width:16px;
                    height:16px;
                    padding:0 4px;
                    display:inline-flex;
                    align-items:center;
                    justify-content:center;
                    border-radius:999px;
                    background:var(--button-bg);
                    color:var(--text-primary);
                    font:800 9px/16px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
                }
                .mobile-rail-badge.mention { background:var(--accent); color:#111; }
                .mobile-rail-add {
                    width:28px;
                    min-width:28px;
                    justify-content:center;
                    padding:0;
                    color:var(--accent);
                    font-size:17px;
                }

                .sidebar-left, .sidebar-right {
                    width:min(92vw, 340px) !important;
                    max-width:none;
                    border:0;
                    border-radius:0 !important;
                    box-shadow:0 0 42px rgba(0,0,0,.5);
                }
                .sidebar-left { border-right:1px solid var(--border-color); }
                .sidebar-right { border-left:1px solid var(--border-color); }
                .sidebar-brand {
                    position:relative;
                    min-height:62px;
                    padding:max(12px, env(safe-area-inset-top)) 46px 10px 12px;
                }
                .mobile-drawer-close {
                    display:inline-flex;
                    width:32px;
                    height:32px;
                    min-width:32px;
                    padding:0;
                    align-items:center;
                    justify-content:center;
                    border:0;
                    border-radius:8px;
                    background:transparent;
                    color:var(--text-muted);
                    box-shadow:none;
                    font-size:22px;
                    line-height:1;
                }
                .sidebar-brand > .mobile-drawer-close {
                    position:absolute;
                    top:max(10px, env(safe-area-inset-top));
                    right:9px;
                }
                .mobile-drawer-close:hover { background:var(--button-hover); color:var(--text-primary); transform:none; }
                .users-header { min-height:48px; padding:max(8px, env(safe-area-inset-top)) 9px 7px 12px; }
                .section-title { position:sticky; top:0; z-index:2; background:var(--bg-secondary); }
                .channel-item, .private-item { min-height:42px; padding:8px 10px; }
                .user-item { min-height:38px; padding:6px 8px; }
                .users-search input { min-height:38px; font-size:16px; }

                #log {
                    min-height:0;
                    padding:8px 7px 12px;
                    font-size:13.5px;
                    overscroll-behavior:contain;
                }
                .chat-line {
                    grid-template-columns:33px minmax(62px, 96px) minmax(0, 1fr);
                    column-gap:5px;
                    min-height:23px;
                    padding:2px 1px;
                }
                .irc-system-line {
                    grid-template-columns:33px 7px minmax(0,1fr);
                    column-gap:5px;
                    padding:1px;
                }
                .log-image, .log-video-player, .log-audio-card { margin-left:38px; }

                .message-input-area {
                    flex:0 0 auto;
                    padding:6px 7px max(7px, env(safe-area-inset-bottom));
                    gap:4px;
                    background:var(--bg-secondary);
                }
                .message-main-row { align-items:flex-end; gap:5px; }
                .message-main-row textarea {
                    min-height:38px;
                    max-height:96px;
                    padding:9px 10px;
                    border-radius:11px;
                    font-size:16px;
                    line-height:1.25;
                }
                #messageToolsToggle, .send-message-btn {
                    width:38px;
                    min-width:38px;
                    height:38px;
                    border-radius:10px;
                }
                #messageToolsToggle { font-size:19px; }
                .send-message-btn { font-size:19px; }
                .message-tools-row {
                    padding:2px 0 0 43px;
                    gap:5px;
                }
                .message-tools-row button {
                    min-height:34px;
                    padding:6px 8px;
                    font-size:11px;
                }
                .command-palette {
                    margin-left:43px;
                    max-height:min(38vh, 260px);
                    overflow-y:auto;
                }
                .new-messages-button { right:9px; bottom:55px; }
            }

            @media (max-width: 430px) {
                .mobile-users-toggle { width:34px; min-width:34px; padding:0; font-size:0; }
                .mobile-users-toggle::before { content:'☷'; font-size:17px; }
                .mobile-chats-toggle { width:42px; min-width:42px; padding:0; font-size:0; }
                .mobile-chats-toggle::before { content:'☰'; font-size:16px; }
                .tab-title-line { gap:4px; }
                .tab-mode-chip { display:none !important; }
                .tab-action-btn { width:28px; min-width:28px; height:28px; }
                .tab-close-btn { width:28px; min-width:28px; height:28px; }
                .mobile-conversation-rail { flex-basis:36px; min-height:36px; padding-top:4px; padding-bottom:4px; }
                .mobile-rail-item { height:26px; max-width:132px; }
            }


/* Sprint 4.1: buscador rápido de conversaciones; usa los colores del tema existente. */
.vc-quicknav-panel .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.vc-quicknav-trigger { width:32px; min-width:32px; height:32px; padding:0; display:inline-flex; align-items:center; justify-content:center; background:transparent; color:var(--text-secondary); border-color:var(--border-color); font-size:16px; }
.vc-quicknav-trigger:hover, .vc-quicknav-trigger:focus-visible { color:var(--accent); border-color:var(--accent); }
.vc-quicknav-overlay[hidden] { display:none !important; }
.vc-quicknav-overlay { position:fixed; inset:0; z-index:6000; display:flex; align-items:flex-start; justify-content:center; padding: min(13vh, 95px) 16px 18px; background:rgba(0,0,0,.70); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px); }
.vc-quicknav-panel { width:min(100%, 590px); max-height: min(75vh, 700px); display:flex; flex-direction:column; background:var(--bg-secondary); color:var(--text-primary); border:1px solid var(--border-strong); border-radius:var(--radius-lg); box-shadow:var(--shadow-main); overflow:hidden; }
.vc-quicknav-header { display:flex; gap:9px; align-items:center; border-bottom:1px solid var(--border-color); padding:13px; }
.vc-quicknav-search { flex:1; min-width:0; border-radius:var(--radius-sm); padding:12px; font-size:16px; background:var(--input-bg); color:var(--text-primary); }
.vc-quicknav-dismiss { flex:0 0 auto; padding:9px 11px; color:var(--text-secondary); }
.vc-quicknav-results { overflow-y:auto; min-height:0; padding:7px; overscroll-behavior:contain; }
.vc-quicknav-heading { color:var(--text-muted); padding:11px 9px 5px; font-size:11px; letter-spacing:.06em; font-weight:700; text-transform:uppercase; }
.vc-quicknav-option { width:100%; display:flex; align-items:center; gap:11px; border:1px solid transparent; padding:10px; text-align:left; margin:1px 0; min-height:45px; background:transparent; border-radius:var(--radius-sm); transform:none !important; }
.vc-quicknav-option[aria-selected="true"] { background:var(--accent-soft); border-color:var(--input-focus); }
.vc-quicknav-glyph { flex:0 0 28px; width:28px; text-align:center; font-size:16px; font-weight:700; color:var(--accent); }
.vc-quicknav-option[data-kind="private"] .vc-quicknav-glyph { color:var(--private); }
.vc-quicknav-option[data-kind="user"] .vc-quicknav-glyph { color:var(--text-secondary); }
.vc-quicknav-copy { min-width:0; flex:1; display:flex; flex-direction:column; gap:3px; }
.vc-quicknav-name { color:var(--text-primary); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; font-weight:600; }
.vc-quicknav-detail { color:var(--text-secondary); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.vc-quicknav-unread { flex:0 0 auto; padding:3px 7px; border-radius:999px; background:var(--accent-soft); color:var(--accent); font-size:11px; font-weight:700; }
.vc-quicknav-empty { padding:30px 15px; text-align:center; color:var(--text-secondary); }
.vc-quicknav-footer { border-top:1px solid var(--border-color); padding:9px 13px; font-size:11px; color:var(--text-muted); }
body.vc-quicknav-open { overflow:hidden; }
@media (max-width:768px) {
  .vc-quicknav-overlay { padding:max(12px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); }
  .vc-quicknav-panel { max-height:min(85dvh, 720px); border-radius:12px; }
  .vc-quicknav-footer { display:none; }
  .vc-quicknav-trigger { width:30px; min-width:30px; height:30px; }
}


/* Sprint 4.2 — panels: keyboard access, role cues, responsive tabs. */
.vc-tab-row .vc-tab-open {
    width:100%; border:0; min-width:0; margin:0; padding:0;
    text-align:left; background:transparent; color:inherit; box-shadow:none;
    font:inherit; transform:none !important; border-radius:4px; cursor:pointer;
}
.vc-tab-row .vc-tab-open:hover { color:var(--text-primary); }
.vc-tab-row .vc-tab-open:focus-visible, .vc-user-row:focus-visible,
.mobile-rail-item:focus-visible, #vcUsersOpsOnly:focus-visible {
    outline:2px solid var(--accent); outline-offset:1px;
}
.vc-tab-row .sidebar-close-btn[hidden], .vc-user-row [hidden],
.vc-tab-row .unread-badge[hidden], .mobile-rail-badge[hidden] { display:none !important; }
.vc-tab-row .sidebar-close-btn { opacity:.55; }
.vc-tab-row .private-prefix.online { color:var(--accent); }
.vc-tab-row .private-prefix.offline { color:var(--text-muted); }
.vc-users-filters { display:flex; align-items:center; justify-content:space-between; gap:5px; min-width:0; padding:7px 1px 0; }
#vcUserRoleSummary { color:var(--text-muted); font-size:10px; white-space:nowrap; }
#vcUsersOpsOnly { font-size:10px; padding:5px 8px; min-height:26px; background:transparent;
    color:var(--text-secondary); border:1px solid var(--border-color); border-radius:7px; box-shadow:none; transform:none !important; }
#vcUsersOpsOnly[aria-pressed="true"] { background:var(--accent-soft); color:var(--accent); border-color:var(--accent); }
.vc-user-row { display:flex; width:100%; border:0; background:transparent; color:var(--text-primary);
    box-shadow:none; text-align:left; font:inherit; transform:none !important; cursor:pointer; }
.vc-user-row:hover { background:var(--sidebar-hover); }
.vc-user-row .user-nick { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1 1 auto; }
.vc-user-row .user-account-mark { margin-left:2px; color:var(--accent); font-size:10px; flex:0 0 auto; }
.vc-user-row .user-self-mark { flex:0 0 auto; }
.vc-user-row .vc-rank-q, .vc-user-row .vc-rank-a { color:var(--accent); }
.vc-user-row .vc-rank-o { color:var(--accent); }
.vc-user-row .vc-rank-h { color:var(--private); }
.vc-user-row .vc-rank-v { color:var(--text-secondary); }
.mobile-rail-item[aria-current="page"] { font-weight:700; }
@media (max-width:768px) {
    .vc-tab-row .sidebar-close-btn { opacity:1; min-width:32px; height:32px; }
    .vc-user-row { min-height:42px; }
    #vcUsersOpsOnly { min-height:34px; }
}


/* Sprint 5 — workspace, per-conversation controls, mobile and compact density */
#vcWorkspaceSettingsBtn { flex:0 0 auto; }
.vc-workspace-overlay {position:fixed;inset:0;z-index:6000;background:rgba(5,8,16,.72);display:grid;place-items:center;padding:16px;}
.vc-workspace-settings {width:min(440px,100%);max-height:min(85vh,620px);overflow:auto;border:1px solid var(--border-color);border-radius:15px;background:var(--sidebar-bg,var(--bg-secondary,#20242a));color:var(--text-primary,#fff);box-shadow:0 20px 70px #0007;padding:18px;}
.vc-workspace-settings-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
.vc-workspace-settings-head strong {font-size:18px;}
.vc-workspace-settings-head button {min-height:36px;padding:6px 12px;}
.vc-workspace-setting {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 5px;border-bottom:1px solid var(--border-color);cursor:pointer;font-size:14px;}
.vc-workspace-setting input {width:18px;height:18px;accent-color:var(--accent);flex-shrink:0;}
.vc-workspace-hint {font-size:12px;color:var(--text-secondary);line-height:1.6;}
.vc-workspace-menu {position:fixed;z-index:6100;min-width:210px;max-width:min(310px,calc(100vw - 16px));padding:5px;background:var(--sidebar-bg,var(--bg-secondary,#20242a));color:var(--text-primary);border:1px solid var(--border-color);box-shadow:0 12px 30px #0008;border-radius:10px;display:flex;flex-direction:column;gap:2px;}
.vc-workspace-menu-name {color:var(--text-secondary);font-size:11px;padding:8px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
.vc-workspace-menu button {display:block;text-align:left;background:transparent;color:inherit;border:0;box-shadow:none;transform:none !important;width:100%;padding:10px;border-radius:6px;cursor:pointer;font:inherit;font-size:13px;}
.vc-workspace-menu button:hover,.vc-workspace-menu button:focus-visible {background:var(--sidebar-hover,rgba(255,255,255,.1));outline:2px solid var(--accent);outline-offset:-2px;}
.vc-tab-row.vc-tab-pinned .vc-tab-open .sidebar-item-text {font-weight:700;}
.vc-tab-row.vc-tab-muted .vc-tab-open,.mobile-rail-item.vc-tab-muted {opacity:.72;}
.vc-tab-state {font-size:11px;flex:0 0 auto;min-width:12px;color:var(--text-secondary);}
.vc-channel-option-name {flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#channelsListPopup .channel-option {width:100%;font:inherit;color:inherit;box-shadow:none;transform:none !important;text-align:left;cursor:pointer;}
#channelsListPopup .channel-option:focus-visible {outline:2px solid var(--accent);outline-offset:-2px;}
body.vc-compact .chat-line {padding-top:1px !important;padding-bottom:1px !important;line-height:1.25 !important;}
body.vc-compact .vc-user-row {min-height:28px;}
body.vc-compact .vc-tab-row .vc-tab-open {min-height:26px;}
@media(max-width:768px) {
  .vc-workspace-overlay {align-items:end;padding:0;}
  .vc-workspace-settings {border-radius:18px 18px 0 0;max-height:85dvh;width:100%;padding:20px;}
  .vc-workspace-menu button {min-height:42px;}
}

/* Sprint 6 — searchable transcript, safe sheets, context actions. */
#vcSearchMessagesBtn { flex:0 0 auto; }
.vc-logsearch-overlay { position:fixed;inset:0;background:rgba(0,0,0,.68);display:flex;justify-content:center;align-items:flex-start;padding:min(12vh,100px) 12px 12px;z-index:7000;backdrop-filter:blur(3px); }
.vc-logsearch-panel { background:var(--bg-secondary);color:var(--text-primary);border:1px solid var(--border-color);border-radius:14px;width:min(100%,620px);max-height:78dvh;display:flex;flex-direction:column;box-shadow:var(--shadow-main);overflow:hidden; }
.vc-logsearch-header,.vc-logsearch-controls { display:flex;align-items:center;gap:8px;padding:12px;border-bottom:1px solid var(--border-color); }
.vc-logsearch-title { flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.vc-logsearch-close { flex:0 0 34px;font-size:20px; }
.vc-logsearch-input { min-width:0;flex:1;padding:10px;color:var(--text-primary);background:var(--input-bg);font-size:16px; }
.vc-logsearch-count { font-size:11px;min-width:40px;text-align:right;color:var(--text-muted); }
.vc-logsearch-controls button { min-width:34px;height:34px;padding:4px; }
.vc-logsearch-results { min-height:60px;overflow:auto;padding:8px;overscroll-behavior:contain; }
.vc-logsearch-result { width:100%;text-align:left;margin:2px 0;padding:10px;background:transparent;color:var(--text-primary);border:1px solid transparent;border-radius:7px;font-size:13px;white-space:normal;overflow-wrap:anywhere;box-shadow:none;transform:none!important; }
.vc-logsearch-result:hover,.vc-logsearch-result.selected { border-color:var(--accent);background:var(--accent-soft); }
.vc-logsearch-empty { text-align:center;padding:20px 7px;color:var(--text-muted); }
.vc-logsearch-hint { font-size:11px;color:var(--text-muted);border-top:1px solid var(--border-color);padding:8px 12px;margin:0; }
.vc-logsearch-hit { background:var(--accent-soft)!important;outline:2px solid var(--accent);outline-offset:2px;border-radius:4px; }
.vc-msg-menu { position:fixed;z-index:6500;display:flex;flex-direction:column;min-width:165px;max-width:min(290px,95vw);padding:5px;background:var(--bg-secondary);border:1px solid var(--border-color);box-shadow:var(--shadow-main);border-radius:9px; }
.vc-msg-menu button { background:transparent;color:var(--text-primary);font:inherit;font-size:13px;text-align:left;box-shadow:none;transform:none!important;padding:9px;border-radius:5px; }
.vc-msg-menu button:hover,.vc-msg-menu button:focus-visible { background:var(--accent-soft);outline:2px solid var(--accent); }
.user-modal .popup-content button:focus-visible { outline:2px solid var(--accent);outline-offset:2px; }
@media(max-width:768px) {
  .vc-logsearch-overlay { padding:max(6px,env(safe-area-inset-top)) 7px max(8px,env(safe-area-inset-bottom)); }
  .vc-logsearch-panel { max-height:90dvh; }
  .vc-logsearch-controls { gap:5px;padding:8px; }
  .vc-logsearch-count { min-width:32px; }
  #vcSearchMessagesBtn { width:29px;min-width:29px; }
}

