/* =====================================================
   BETAMAX™ — Home AI Interface
   Not affiliated with any other inflatable robot.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;900&display=swap');

/* ---- Theme Variables ---- */
[data-theme="dark"] {
    --bg: #0d0d0d;
    --surface: #1a1a1a;
    --surface-raised: #242424;
    --border: #2e2e2e;
    --text: #f0f0f0;
    --text-dim: #888;
    --text-dimmer: #555;
    --accent: #ff4f33;
    --accent-hover: #ff6b52;
    --accent-dim: rgba(255, 79, 51, 0.15);
    --user-bubble: #ff4f33;
    --user-bubble-text: #fff;
    --bot-bubble: #242424;
    --bot-bubble-text: #f0f0f0;
    --sidebar-bg: #111;
    --input-bg: #1e1e1e;
    --scrollbar: #333;
    --face-fill: #e8e8e8;
    --face-stroke: #ccc;
    --eye-fill: #1a1a1a;
    --pupil-fill: #fff;
    --shadow: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    --bg: #f5f5f0;
    --surface: #ffffff;
    --surface-raised: #fafaf8;
    --border: #e0e0d8;
    --text: #1a1a1a;
    --text-dim: #666;
    --text-dimmer: #aaa;
    --accent: #cc2020;
    --accent-hover: #dd3333;
    --accent-dim: rgba(204, 32, 32, 0.1);
    --user-bubble: #cc2020;
    --user-bubble-text: #fff;
    --bot-bubble: #ffffff;
    --bot-bubble-text: #1a1a1a;
    --sidebar-bg: #ececea;
    --input-bg: #ffffff;
    --scrollbar: #ccc;
    --face-fill: #f5f5f5;
    --face-stroke: #ddd;
    --eye-fill: #1a1a1a;
    --pupil-fill: #fff;
    --shadow: rgba(0, 0, 0, 0.12);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.2s, color 0.2s;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 3px; }

/* ---- LOGIN PAGE ---- */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
}

.login-container {
    width: 100%;
    max-width: 380px;
    padding: 48px 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 8px 40px var(--shadow);
    text-align: center;
}

.login-logo {
    margin-bottom: 20px;
}

.betamax-face {
    width: 96px;
    height: 96px;
    filter: drop-shadow(0 4px 12px var(--shadow));
}

.login-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 6px;
}

.tm {
    font-size: 0.5em;
    vertical-align: super;
    color: var(--text-dim);
    font-weight: 600;
}

.login-tagline {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 28px;
    font-style: italic;
}

.login-error {
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.login-form .input-group {
    text-align: left;
    margin-bottom: 16px;
}

.login-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.login-form input:focus {
    border-color: var(--accent);
}

.login-btn {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.login-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.login-btn:active { transform: translateY(0); }

.login-footer {
    margin-top: 24px;
    font-size: 0.72rem;
    color: var(--text-dimmer);
    font-style: italic;
}

.theme-toggle-login {
    position: fixed;
    top: 16px;
    right: 16px;
}

.theme-toggle-login button {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
    transition: background 0.2s;
}

/* ---- APP LAYOUT ---- */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ---- SIDEBAR ---- */
.sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, width 0.25s ease;
}

.sidebar.collapsed {
    transform: translateX(-260px);
    width: 0;
    min-width: 0;
    overflow: hidden;
}

.sidebar-header {
    padding: 20px 16px 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.betamax-face-small {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.new-chat-btn {
    width: 100%;
    padding: 10px;
    background: var(--accent-dim);
    border: 1.5px solid var(--accent);
    border-radius: 10px;
    color: var(--accent);
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.new-chat-btn:hover {
    background: var(--accent);
    color: #fff;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 8px;
}

.conv-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    gap: 8px;
    margin-bottom: 2px;
    position: relative;
}

.conv-item:hover { background: var(--surface-raised); }

.conv-item.active {
    background: var(--accent-dim);
    border: 1px solid var(--accent);
}

.conv-title {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-delete {
    background: none;
    border: none;
    color: var(--text-dimmer);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 4px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
}

.conv-item:hover .conv-delete { opacity: 1; }
.conv-delete:hover { color: var(--accent); }

.conv-menu-btn {
    background: none;
    border: none;
    color: var(--text-dimmer);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s, background 0.15s;
    flex-shrink: 0;
    line-height: 1;
}

.conv-item:hover .conv-menu-btn { opacity: 1; }
.conv-item.active .conv-menu-btn { opacity: 1; }
.conv-menu-btn:hover { color: var(--text); background: var(--surface-raised); }

.conv-dropdown {
    display: none;
    position: absolute;
    right: 8px;
    top: calc(100% - 4px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 16px var(--shadow);
    z-index: 200;
    min-width: 130px;
    overflow: hidden;
}

.conv-dropdown.open { display: block; }

.conv-dropdown-item {
    display: block;
    width: 100%;
    padding: 9px 14px;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s;
}

.conv-dropdown-item:hover { background: var(--surface-raised); }
.conv-dropdown-danger { color: var(--accent) !important; }

.conv-rename-input {
    flex: 1;
    background: var(--input-bg);
    border: 1.5px solid var(--accent);
    border-radius: 6px;
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 2px 6px;
    outline: none;
    width: 100%;
}

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dim);
}

.sidebar-actions {
    display: flex;
    gap: 4px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1rem;
    padding: 6px 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.icon-btn:hover {
    color: var(--accent);
    background: var(--accent-dim);
}

/* ---- MAIN CHAT ---- */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s;
}

.sidebar-toggle:hover { color: var(--accent); }

.chat-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- MESSAGES ---- */
.messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Welcome screen */
.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    gap: 16px;
    padding: 40px 20px;
    opacity: 0.9;
}

.welcome-face {
    width: 120px;
    height: 120px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-screen h2 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text);
}

.welcome-screen p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

.welcome-screen small {
    font-size: 0.78rem;
    color: var(--text-dimmer);
    font-style: italic;
}

/* Message bubbles */
.message {
    display: flex;
    gap: 12px;
    max-width: 820px;
    width: 100%;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.assistant {
    align-self: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.message.assistant .message-avatar {
    background: var(--surface-raised);
    border: 1px solid var(--border);
}

.message.user .message-avatar {
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 900;
}

.message-avatar svg {
    width: 22px;
    height: 22px;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.93rem;
    line-height: 1.65;
    max-width: calc(100% - 50px);
}

.message.user .message-bubble {
    background: var(--user-bubble);
    color: var(--user-bubble-text);
    border-bottom-right-radius: 4px;
}

.message.assistant .message-bubble {
    background: var(--bot-bubble);
    color: var(--bot-bubble-text);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
}

/* Markdown-style rendering */
.message-bubble strong { font-weight: 700; }
.message-bubble em { font-style: italic; }
.message-bubble code {
    background: var(--surface-raised);
    padding: 1px 5px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.88em;
    border: 1px solid var(--border);
}

.message-bubble pre {
    background: var(--surface-raised);
    padding: 12px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 8px 0;
    border: 1px solid var(--border);
}

.message-bubble pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85em;
    line-height: 1.5;
}

.message-bubble hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 10px 0;
}

.message-bubble p { margin-bottom: 8px; }
.message-bubble p:last-child { margin-bottom: 0; }
.message-bubble ul, .message-bubble ol { padding-left: 20px; margin-bottom: 8px; }

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 14px 16px;
    background: var(--bot-bubble);
    border: 1px solid var(--border);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--text-dim);
    border-radius: 50%;
    animation: typing 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* ---- INPUT AREA ---- */
.input-area {
    padding: 12px 20px 16px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    transition: background 0.15s;
}
.input-area.drag-over {
    background: var(--input-bg);
    outline: 2px dashed var(--accent);
    outline-offset: -4px;
}

.input-bar {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 8px 8px 8px 12px;
    transition: border-color 0.2s;
}

.input-bar:focus-within {
    border-color: var(--accent);
}

.image-upload-btn {
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    color: var(--text-dim);
    transition: color 0.2s;
    flex-shrink: 0;
}

.image-upload-btn:hover { color: var(--accent); }

.mic-btn, .tts-btn {
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    color: var(--text-dim);
    background: none;
    border: none;
    transition: color 0.2s, transform 0.15s;
    flex-shrink: 0;
    line-height: 1;
}
.mic-btn:hover, .tts-btn:hover { color: var(--accent); }

.mic-btn.recording {
    color: #ff2222;
    animation: mic-pulse 1s ease-in-out infinite;
}
@keyframes mic-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.25); opacity: 0.7; }
}

.tts-btn.active { color: var(--accent); }

.mic-picker {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    z-index: 200;
    min-width: 220px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.mic-picker-option {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text);
    padding: 7px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mic-picker-option:hover { background: var(--input-bg); }
.mic-picker-option.selected { color: var(--accent); }

.image-preview-wrap {
    position: relative;
    flex-shrink: 0;
}

.image-preview-wrap img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.remove-image-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#messageInput {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    font-size: 0.93rem;
    line-height: 1.5;
    resize: none;
    max-height: 160px;
    overflow-y: auto;
}

#messageInput::placeholder { color: var(--text-dimmer); }

.send-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover { background: var(--accent-hover); transform: scale(1.05); }
.send-btn:disabled { background: var(--text-dimmer); cursor: not-allowed; transform: none; }

.input-disclaimer {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-dimmer);
    font-style: italic;
    margin-top: 8px;
}

/* ---- Voice Chat Button (input bar) ---- */
.voice-chat-btn {
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    color: var(--text-dim);
    background: none;
    border: none;
    transition: color 0.2s, transform 0.15s;
    flex-shrink: 0;
    line-height: 1;
}
.voice-chat-btn:hover { color: var(--accent); }
.voice-chat-btn.active {
    color: var(--accent);
    animation: mic-pulse 2s ease-in-out infinite;
}

/* ---- Voice Chat Overlay ---- */
.voice-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.voice-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 48px 40px;
    text-align: center;
}

/* Face container with rings */
.voice-face-wrap {
    position: relative;
    width: 148px;
    height: 148px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
}

/* Rings animate only in listening state */
.voice-state-listening .voice-ring:nth-child(1) {
    animation: voice-ring 2s ease-out infinite 0s;
}
.voice-state-listening .voice-ring:nth-child(2) {
    animation: voice-ring 2s ease-out infinite 0.65s;
}
.voice-state-listening .voice-ring:nth-child(3) {
    animation: voice-ring 2s ease-out infinite 1.3s;
}

@keyframes voice-ring {
    0%   { transform: scale(1);   opacity: 0.75; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* Face gently pulses while processing */
.voice-state-processing .voice-face-svg {
    animation: voice-face-pulse 1.4s ease-in-out infinite;
}

@keyframes voice-face-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}

.voice-face-svg {
    width: 108px;
    height: 108px;
    position: relative;
    z-index: 1;
}

/* Equalizer bars for speaking state */
.voice-bars {
    display: flex;
    gap: 5px;
    align-items: center;
    height: 36px;
}

.voice-bar {
    width: 5px;
    background: var(--accent);
    border-radius: 3px;
    animation: voice-bar-bounce 0.7s ease-in-out infinite alternate;
}
.voice-bar:nth-child(1) { animation-delay: 0.0s; animation-duration: 0.65s; height: 10px; }
.voice-bar:nth-child(2) { animation-delay: 0.1s; animation-duration: 0.55s; height: 20px; }
.voice-bar:nth-child(3) { animation-delay: 0.2s; animation-duration: 0.75s; height: 30px; }
.voice-bar:nth-child(4) { animation-delay: 0.1s; animation-duration: 0.5s;  height: 20px; }
.voice-bar:nth-child(5) { animation-delay: 0.0s; animation-duration: 0.6s;  height: 10px; }

@keyframes voice-bar-bounce {
    from { transform: scaleY(0.3); opacity: 0.5; }
    to   { transform: scaleY(1);   opacity: 1; }
}

.voice-status {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.voice-transcript {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    max-width: 420px;
    min-height: 1.6em;
    line-height: 1.5;
    font-style: italic;
    opacity: 0.85;
}

.voice-stop-btn {
    margin-top: 12px;
    padding: 13px 32px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.voice-stop-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.04);
}
.voice-stop-btn:active { transform: scale(0.98); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
    /* Sidebar overlays content on mobile */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        height: 100dvh;
        z-index: 100;
    }
    .sidebar.collapsed { transform: translateX(-260px); }

    /* Backdrop behind open sidebar */
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }
    .sidebar-backdrop.visible { display: block; }

    /* More breathing room for messages */
    .messages-area { padding: 12px 10px; gap: 12px; }

    /* Input area — safe area for iPhone home bar */
    .input-area {
        padding: 8px 10px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    /* Prevent iOS from zooming on textarea focus (requires >= 16px) */
    #messageInput { font-size: 16px; }

    /* Bigger touch targets */
    .send-btn { width: 44px; height: 44px; font-size: 1rem; }
    .icon-btn { padding: 8px 10px; font-size: 1.1rem; }
    .image-upload-btn { font-size: 1.4rem; padding: 6px; }

    /* Shrink welcome screen slightly */
    .welcome-face { width: 90px; height: 90px; }
    .welcome-screen h2 { font-size: 1.3rem; }
    .welcome-screen { padding: 24px 16px; }

    /* Header tighter */
    .chat-header { padding: 10px 14px; }
}
