/* ═══════════════════════════════════════════════
   Gemma4 Chat - shadcn/ui inspired design system
   ═══════════════════════════════════════════════ */

/* CSS Variables - shadcn design tokens */
:root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 221 83% 53%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 221 83% 53%;
    --radius: 0.5rem;

    --sidebar-width: 320px;
    --header-height: 56px;
}

/* Dark mode */
[data-theme="dark"] {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 217.2 91.2% 59.8%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 224.3 76.3% 48%;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Layout ─── */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ─── Sidebar ─── */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;
    background: hsl(var(--card));
    border-right: 1px solid hsl(var(--border));
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, width 0.3s ease;
    z-index: 40;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid hsl(var(--border));
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--header-height);
}

.sidebar-header .logo {
    width: 32px;
    height: 32px;
    background: hsl(var(--primary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary-foreground));
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-header h1 {
    font-size: 16px;
    font-weight: 600;
    color: hsl(var(--foreground));
    white-space: nowrap;
}

.sidebar-actions {
    padding: 12px 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    height: 36px;
    padding: 0 16px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}
.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}
.btn-secondary:hover { background: hsl(var(--accent)); }

.btn-ghost {
    background: transparent;
    color: hsl(var(--foreground));
}
.btn-ghost:hover { background: hsl(var(--accent)); }

.btn-destructive {
    background: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}
.btn-destructive:hover { opacity: 0.9; }

.btn-outline {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}
.btn-outline:hover { background: hsl(var(--accent)); }

.btn-full { width: 100%; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-icon { width: 36px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }

/* Model selector */
.model-select {
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    cursor: pointer;
    outline: none;
    transition: all 0.15s;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
}
.model-select:hover { border-color: hsl(var(--ring)); }
.model-select:focus { border-color: hsl(var(--ring)); box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2); }

/* Conversation list */
.conversation-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 8px;
}

.conversation-list::-webkit-scrollbar { width: 4px; }
.conversation-list::-webkit-scrollbar-track { background: transparent; }
.conversation-list::-webkit-scrollbar-thumb {
    background: hsl(var(--muted-foreground) / 0.3);
    border-radius: 4px;
}

.conv-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
    gap: 8px;
    margin-bottom: 2px;
    position: relative;
}

.conv-item:hover { background: hsl(var(--accent)); }
.conv-item.active { background: hsl(var(--accent)); font-weight: 500; }

.conv-item-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: hsl(var(--muted-foreground));
}

.conv-item-content {
    flex: 1;
    min-width: 0;
}

.conv-item-title {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-item-date {
    font-size: 11px;
    color: hsl(var(--muted-foreground));
}

.conv-item-delete {
    opacity: 0;
    transition: opacity 0.15s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    flex-shrink: 0;
}
.conv-item:hover .conv-item-delete { opacity: 1; }
.conv-item-delete:hover { color: hsl(var(--destructive)); background: hsl(var(--destructive) / 0.1); }

/* Sidebar footer */
.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    gap: 8px;
}

/* ─── Main Content ─── */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
}

/* Header */
.chat-header {
    height: var(--header-height);
    min-height: var(--header-height);
    padding: 0 16px;
    border-bottom: 1px solid hsl(var(--border));
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: hsl(var(--card));
    gap: 12px;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.chat-header-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: hsl(var(--destructive));
    flex-shrink: 0;
}
.status-dot.connected { background: #22c55e; }

.mobile-menu-btn { display: none; }

/* ─── Messages Area ─── */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px 0;
    scroll-behavior: smooth;
}

.messages-container::-webkit-scrollbar { width: 6px; }
.messages-container::-webkit-scrollbar-track { background: transparent; }
.messages-container::-webkit-scrollbar-thumb {
    background: hsl(var(--muted-foreground) / 0.2);
    border-radius: 6px;
}

.message-wrapper {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 24px;
}

.message {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid hsl(var(--border) / 0.5);
    animation: fadeIn 0.3s ease;
}

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

.message:last-child { border-bottom: none; }

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
}

.message.user .message-avatar {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.message.assistant .message-avatar {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.message-body {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.message-role {
    font-size: 13px;
    font-weight: 600;
}

.message-time {
    font-size: 11px;
    color: hsl(var(--muted-foreground));
}

.message-content {
    font-size: 14px;
    line-height: 1.7;
    color: hsl(var(--foreground));
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message-content p { margin-bottom: 12px; }
.message-content p:last-child { margin-bottom: 0; }
.message-content ul, .message-content ol { margin: 8px 0; padding-left: 24px; }
.message-content li { margin-bottom: 4px; }
.message-content blockquote {
    border-left: 3px solid hsl(var(--primary));
    padding-left: 16px;
    margin: 12px 0;
    color: hsl(var(--muted-foreground));
}
.message-content strong { font-weight: 600; }

/* Code blocks */
.message-content code {
    font-family: "JetBrains Mono", "Fira Code", "SF Mono", Menlo, monospace;
    font-size: 13px;
    background: hsl(var(--muted));
    padding: 2px 6px;
    border-radius: 4px;
}

.message-content pre {
    background: hsl(var(--muted));
    border-radius: var(--radius);
    padding: 16px;
    margin: 12px 0;
    overflow-x: auto;
    position: relative;
    border: 1px solid hsl(var(--border));
}

.message-content pre code {
    background: none;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: 12px;
    color: hsl(var(--muted-foreground));
}

.code-block-header + pre {
    margin-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
}

.copy-code-btn {
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.15s;
}
.copy-code-btn:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}

/* Message actions */
.message-actions {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.15s;
}
.message:hover .message-actions { opacity: 1; }

/* Streaming cursor */
.streaming-cursor {
    display: inline-block;
    width: 7px;
    height: 18px;
    background: hsl(var(--primary));
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: hsl(var(--primary) / 0.5);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* ─── Empty State ─── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 48px 24px;
    text-align: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: hsl(var(--primary) / 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 36px;
}

.empty-state h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 32px;
    max-width: 400px;
}

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 500px;
    width: 100%;
}

.suggestion-card {
    padding: 12px 16px;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    cursor: pointer;
    text-align: left;
    background: hsl(var(--card));
    transition: all 0.15s;
    font-size: 13px;
    color: hsl(var(--foreground));
    line-height: 1.4;
}

.suggestion-card:hover {
    background: hsl(var(--accent));
    border-color: hsl(var(--primary) / 0.3);
}

.suggestion-card-icon {
    font-size: 16px;
    margin-bottom: 4px;
}

/* ─── Input Area ─── */
.input-area {
    padding: 16px 24px 24px;
    border-top: 1px solid hsl(var(--border));
    background: hsl(var(--card));
}

.input-wrapper {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.input-box {
    display: flex;
    align-items: flex-end;
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    background: hsl(var(--background));
    transition: border-color 0.15s;
    padding: 8px 8px 8px 16px;
}

.input-box:focus-within {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.input-box textarea {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-size: 14px;
    line-height: 1.5;
    max-height: 200px;
    min-height: 24px;
    background: transparent;
    color: hsl(var(--foreground));
    font-family: inherit;
    padding: 4px 0;
}

.input-box textarea::placeholder {
    color: hsl(var(--muted-foreground));
}

.send-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.send-btn:hover { opacity: 0.9; }
.send-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.send-btn.stop-btn { background: hsl(var(--destructive)); }

/* Input action buttons (image, voice) */
.input-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.15s;
    flex-shrink: 0;
}
.input-action-btn:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}

/* Voice recording state */
.input-action-btn.recording {
    color: hsl(var(--destructive));
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Image preview strip */
.image-preview {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    overflow-x: auto;
    flex-wrap: wrap;
}

.image-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    flex-shrink: 0;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.image-preview-remove:hover { background: hsl(var(--destructive)); }

/* Message images */
.message-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.message-image {
    max-width: 300px;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid hsl(var(--border));
    cursor: pointer;
    transition: transform 0.15s;
    object-fit: cover;
}
.message-image:hover { transform: scale(1.02); }

/* Drag & drop highlight */
.input-area.dragover {
    background: hsl(var(--primary) / 0.05);
    border-color: hsl(var(--primary));
}
.input-area.dragover .input-box {
    border-color: hsl(var(--primary));
    border-style: dashed;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 11px;
    color: hsl(var(--muted-foreground));
}

/* ─── Settings Modal ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

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

.modal {
    background: hsl(var(--card));
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid hsl(var(--border));
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Form elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: hsl(var(--foreground));
}

.form-hint {
    font-size: 12px;
    color: hsl(var(--muted-foreground));
    margin-top: 4px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid hsl(var(--input));
    border-radius: var(--radius);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-textarea {
    height: auto;
    min-height: 80px;
    padding: 8px 12px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Slider */
.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-container input[type="range"] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: hsl(var(--border));
    border-radius: 2px;
    outline: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: hsl(var(--primary));
    cursor: pointer;
    border: 2px solid hsl(var(--background));
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.slider-value {
    font-size: 13px;
    font-weight: 500;
    min-width: 36px;
    text-align: right;
    color: hsl(var(--primary));
}

/* Section divider in modal */
.form-section-title {
    font-size: 13px;
    font-weight: 600;
    color: hsl(var(--primary));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    margin-top: 8px;
}

/* Preset chips */
.preset-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.preset-chip {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.15s;
}
.preset-chip:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    border-radius: var(--radius);
    font-size: 13px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 200;
    animation: slideInRight 0.3s ease;
    display: none;
}

.toast.show { display: block; }

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

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        box-shadow: 4px 0 16px rgba(0,0,0,0.1);
    }
    .sidebar.open { transform: translateX(0); }

    .mobile-menu-btn { display: flex; }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 35;
        display: none;
    }
    .mobile-overlay.active { display: block; }

    .suggestion-grid {
        grid-template-columns: 1fr;
    }

    .message-wrapper { padding: 0 16px; }
    .input-area { padding: 12px 16px 16px; }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ─── SVG Icons (inline) ─── */
.icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}
.icon-lg { width: 20px; height: 20px; }
