/* ==========================================================================
   LoomScribe — Modern Minimal Design System
   ========================================================================== */

:root {
    /* Base Neutral Palette (Zinc / Dark Slate) */
    --bg-base: #09090b;
    --bg-sidebar: #0f0f12;
    --bg-surface: #141418;
    --bg-surface-elevated: #1a1a20;
    --bg-surface-hover: #22222a;
    --bg-input: #121216;
    --bg-overlay: rgba(0, 0, 0, 0.7);

    /* Border Tokens */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.18);
    --border-active: rgba(255, 255, 255, 0.28);

    /* Text Tokens */
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-dim: #52525b;

    /* Theme Accent Defaults (Cosmic Cyan) */
    --accent: #06b6d4;
    --accent-hover: #22d3ee;
    --accent-muted: rgba(6, 182, 212, 0.15);
    --accent-subtle: rgba(6, 182, 212, 0.08);
    --accent-glow: rgba(6, 182, 212, 0.25);
    --accent-contrast: #041319;

    /* Status Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #f43f5e;
    --danger-bg: rgba(244, 63, 94, 0.1);
    --danger-hover: #fb7185;

    /* User Message Bubble */
    --bg-user-msg: #1a1a22;
    --border-user-msg: rgba(255, 255, 255, 0.08);

    /* Assistant Message */
    --bg-assistant-msg: transparent;
    
    /* Reasoning / Thinking Section */
    --reasoning-bg: rgba(6, 182, 212, 0.04);
    --reasoning-border: rgba(6, 182, 212, 0.15);
    --reasoning-text: #93c5fd;

    /* Dimensions & Spacing */
    --sidebar-width: 270px;
    --inspector-width: 360px;
    --header-height: 56px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-pill: 9999px;

    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Transitions & Shadows */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.15s var(--ease-out);
    --transition-normal: 0.25s var(--ease-out);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   Themes (Accent Palettes)
   ========================================================================== */

html.theme-cyan, body.theme-cyan {
    --accent: #06b6d4;
    --accent-hover: #22d3ee;
    --accent-muted: rgba(6, 182, 212, 0.15);
    --accent-subtle: rgba(6, 182, 212, 0.08);
    --accent-glow: rgba(6, 182, 212, 0.25);
    --accent-contrast: #041319;
    --reasoning-bg: rgba(6, 182, 212, 0.04);
    --reasoning-border: rgba(6, 182, 212, 0.15);
    --reasoning-text: #7dd3fc;
}

html.theme-teal, body.theme-teal {
    --accent: #10b981;
    --accent-hover: #34d399;
    --accent-muted: rgba(16, 185, 129, 0.15);
    --accent-subtle: rgba(16, 185, 129, 0.08);
    --accent-glow: rgba(16, 185, 129, 0.25);
    --accent-contrast: #021a11;
    --reasoning-bg: rgba(16, 185, 129, 0.04);
    --reasoning-border: rgba(16, 185, 129, 0.15);
    --reasoning-text: #6ee7b7;
}

html.theme-purple, body.theme-purple {
    --accent: #a855f7;
    --accent-hover: #c084fc;
    --accent-muted: rgba(168, 85, 247, 0.15);
    --accent-subtle: rgba(168, 85, 247, 0.08);
    --accent-glow: rgba(168, 85, 247, 0.25);
    --accent-contrast: #170426;
    --reasoning-bg: rgba(168, 85, 247, 0.04);
    --reasoning-border: rgba(168, 85, 247, 0.15);
    --reasoning-text: #d8b4fe;
}

html.theme-amber, body.theme-amber {
    --accent: #f59e0b;
    --accent-hover: #fbbf24;
    --accent-muted: rgba(245, 158, 11, 0.15);
    --accent-subtle: rgba(245, 158, 11, 0.08);
    --accent-glow: rgba(245, 158, 11, 0.25);
    --accent-contrast: #201402;
    --reasoning-bg: rgba(245, 158, 11, 0.04);
    --reasoning-border: rgba(245, 158, 11, 0.15);
    --reasoning-text: #fde68a;
}

html.theme-slate, body.theme-slate {
    --accent: #e4e4e7;
    --accent-hover: #ffffff;
    --accent-muted: rgba(255, 255, 255, 0.12);
    --accent-subtle: rgba(255, 255, 255, 0.05);
    --accent-glow: rgba(255, 255, 255, 0.15);
    --accent-contrast: #09090b;
    --reasoning-bg: rgba(255, 255, 255, 0.03);
    --reasoning-border: rgba(255, 255, 255, 0.1);
    --reasoning-text: #cbd5e1;
}

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    user-select: none;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

svg {
    display: block;
    flex-shrink: 0;
}

.hidden {
    display: none !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   App Layout Grid
   ========================================================================== */

.app-root {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

/* Backdrop for Mobile Slide-overs */
.layout-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.layout-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */

.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 100;
    transition: transform var(--transition-normal), width var(--transition-normal);
}

.sidebar-header {
    height: var(--header-height);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 50%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.brand-icon svg {
    width: 16px;
    height: 16px;
}

.brand-name {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.brand-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    background: var(--accent-subtle);
    color: var(--accent);
    border: 1px solid var(--accent-muted);
}

.sidebar-actions {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.new-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 38px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 2px 10px var(--accent-glow);
}

.new-chat-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.new-chat-btn:active {
    transform: scale(0.98);
}

.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.search-icon {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 34px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0 10px 0 32px;
    font-size: 0.8rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition-fast);
}

.search-input:focus {
    border-color: var(--border-hover);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.sidebar-history {
    flex: 1;
    overflow-y: auto;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.group-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    padding: 6px 8px 4px;
}

.conv-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    gap: 6px;
}

.conv-item:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.conv-item.active {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    font-weight: 500;
    border: 1px solid var(--accent);
}

.conv-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.conv-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 2px;
}

.conv-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    line-height: 1.35;
    flex: 1;
    font-size: 0.82rem;
}

.conv-actions {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 2px;
}

.conv-item:hover .conv-actions,
.conv-item.active .conv-actions {
    display: flex;
}

.conv-action-btn {
    padding: 3px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.conv-action-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.conv-action-btn.delete-btn:hover {
    color: var(--danger);
    background: var(--danger-bg);
}
.sidebar-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-sidebar);
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.footer-btn:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.key-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--danger);
    transition: background var(--transition-fast);
}

.key-status-dot.configured {
    background: var(--success);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   Main Chat Viewport
   ========================================================================== */

.main-viewport {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background-color: var(--bg-base);
    overflow: hidden;
}

/* Top Navbar */
.top-header {
    height: var(--header-height);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    z-index: 20;
    flex-shrink: 0;
    gap: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

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

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
    border-color: var(--border-subtle);
}

.icon-btn.active {
    color: var(--accent);
    background: var(--accent-subtle);
    border-color: var(--accent-muted);
}
.active-chat-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 100%;
}

.active-chat-title:hover {
    background: var(--bg-surface);
}

/* Quick Toolbar Chips */
.header-chips {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chip-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.chip-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-surface-elevated);
}

.chip-btn.active {
    color: var(--accent);
    border-color: var(--accent-muted);
    background: var(--accent-subtle);
}

.chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

.chip-btn.active .chip-dot {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent-glow);
}

/* Model Dropdown Menu */
.dropdown-wrapper {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 200;
    backdrop-filter: blur(16px);
    animation: fadeInScale 0.15s var(--ease-out);
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: left;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
}

.dropdown-item.selected {
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-subtle);
}

.dropdown-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface-elevated);
    color: var(--text-muted);
}

.dropdown-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 6px 10px 2px;
}

.pinned-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 3px 8px;
    font-size: 0.74rem;
    font-family: var(--font-mono);
    color: var(--text-primary);
}
.pinned-tag-remove {
    cursor: pointer;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
}
.pinned-tag-remove:hover {
    color: var(--danger);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translateY(-4px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Chat Messages Feed
   ========================================================================== */

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-behavior: smooth;
}

.messages-list {
    width: 100%;
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 12px;
    flex: 1;
    margin: 0 auto;
}

/* Hero / Empty State */
.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto auto;
    padding: 40px 20px;
    width: 100%;
    max-width: 620px;
    align-self: center;
}

.empty-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 50%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.empty-logo svg {
    width: 28px;
    height: 28px;
}

.empty-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.preset-starters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
    width: 100%;
}

.starter-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px;
    text-align: left;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.starter-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-surface-elevated);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.starter-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.starter-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Message Rows */
.msg-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.msg-row.user {
    align-items: flex-end;
}

.msg-row.assistant {
    align-items: flex-start;
}

.msg-bubble {
    max-width: 85%;
    border-radius: var(--radius-lg);
    position: relative;
    word-break: break-word;
}

.msg-row.user .msg-bubble {
    background: var(--bg-user-msg);
    border: 1px solid var(--border-user-msg);
    padding: 8px 14px;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.msg-row.assistant .msg-bubble {
    width: 100%;
    max-width: 100%;
    background: transparent;
    padding: 0;
    color: var(--text-primary);
    font-size: 0.94rem;
    line-height: 1.7;
}

/* Collapsible Reasoning Block */
.reasoning-box {
    margin-bottom: 6px;
    border-radius: var(--radius-md);
    background: var(--reasoning-bg);
    border: 1px solid var(--reasoning-border);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.reasoning-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    cursor: pointer;
    user-select: none;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--reasoning-text);
    transition: background var(--transition-fast);
}
.reasoning-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.reasoning-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reasoning-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
}

.reasoning-chevron {
    transition: transform var(--transition-fast);
    color: var(--reasoning-text);
}

.reasoning-box.collapsed .reasoning-chevron {
    transform: rotate(-90deg);
}

.reasoning-content {
    padding: 10px 14px 14px;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-secondary);
    border-top: 1px solid var(--reasoning-border);
    white-space: pre-wrap;
    font-family: var(--font-sans);
    max-height: 340px;
    overflow-y: auto;
}

.reasoning-box.collapsed .reasoning-content {
    display: none;
}

/* Markdown Rendering & Code Blocks */
.markdown-body {
    color: var(--text-primary);
}

.markdown-body p {
    margin-bottom: 8px;
}
.markdown-body p:last-child {
    margin-bottom: 0;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.markdown-body code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
}

.markdown-body pre {
    background: #0d0d10;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin: 14px 0;
    overflow: hidden;
    position: relative;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.code-copy-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.code-copy-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.markdown-body pre code {
    display: block;
    padding: 12px 14px;
    background: transparent;
    color: #e4e4e7;
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.5;
}

.markdown-body blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 14px;
    margin: 12px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.markdown-body ul, .markdown-body ol {
    margin: 10px 0 10px 22px;
}

.markdown-body li {
    margin-bottom: 4px;
}

/* Message Actions Toolbar */
.msg-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    height: 22px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.msg-row:hover .msg-actions,
.msg-actions.persist {
    opacity: 1;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}
.action-btn:hover {
    color: var(--text-primary);
    background: var(--bg-surface-elevated);
}

.version-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    margin-right: 4px;
}

.version-btn {
    padding: 2px 4px;
    border-radius: 3px;
    color: var(--text-secondary);
}

.version-btn:hover:not(:disabled) {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
}

.version-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Inline Edit Container */
.inline-edit-box {
    width: 100%;
    margin-top: 6px;
}

.inline-edit-textarea {
    width: 100%;
    min-height: 80px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 0.92rem;
    color: var(--text-primary);
    resize: none;
    overflow-y: hidden;
    outline: none;
    line-height: 1.6;
    box-sizing: border-box;
    display: block;
    field-sizing: content;
}
.inline-edit-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.inline-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

/* Continue Story Chip in Input Dock */
.chip-btn.continue-chip {
    background: var(--accent-subtle);
    border-color: var(--accent-muted);
    color: var(--accent);
    font-weight: 600;
}

.chip-btn.continue-chip:hover {
    background: var(--accent-muted);
    border-color: var(--accent);
    color: var(--accent-hover);
}
/* ==========================================================================
   Chat Input Dock
   ========================================================================== */

.chat-input-dock {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px 20px;
    position: relative;
    z-index: 10;
}

.input-card {
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-card:focus-within {
    border-color: var(--border-hover);
    box-shadow: 0 0 0 1px var(--border-hover), var(--shadow-lg);
}

.chat-textarea {
    width: 100%;
    max-height: 200px;
    min-height: 24px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.5;
    resize: none;
    padding: 0;
}

.chat-textarea::placeholder {
    color: var(--text-muted);
}

.input-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 4px;
    min-height: 32px;
}

.input-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.chat-settings-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    padding: 0;
}

.chat-settings-btn:hover {
    color: var(--text-primary);
    background: var(--bg-surface-elevated);
    border-color: var(--border-hover);
}

.chat-settings-btn.active {
    color: var(--accent);
    background: var(--accent-subtle);
    border-color: var(--accent-muted);
    box-shadow: 0 0 8px var(--accent-glow);
}

.input-chips {
    display: contents;
}

.input-chips.collapsed {
    display: none;
}

.input-chips .chip-btn {
    animation: fadeIn 0.15s var(--ease-out);
}

.input-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.send-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--accent-contrast);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.send-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.send-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.stop-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    background: var(--danger);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.stop-btn:hover {
    background: var(--danger-hover);
}

/* ==========================================================================
   Prompt Engine / Inspector Pane
   ========================================================================== */

.inspector-pane {
    width: var(--inspector-width);
    height: 100%;
    background: var(--bg-sidebar);
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 95;
    transition: transform var(--transition-normal);
}

.inspector-pane.collapsed {
    display: none;
}

.inspector-header {
    height: var(--header-height);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
}

.inspector-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.inspector-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inspector-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.preset-card-active {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preset-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preset-title-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.preset-badge-cat {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--accent-subtle);
    color: var(--accent);
    border: 1px solid var(--accent-muted);
}

.preset-desc-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.change-preset-btn {
    width: 100%;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.change-preset-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
}

/* Dynamic Parameter Controls */
.param-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.param-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.param-value-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
}

/* Custom Select Dropdowns */
.custom-select-wrap {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    height: 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.custom-select-trigger:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--border-hover);
}

.custom-select-trigger.open {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
    background: var(--bg-surface-elevated);
}

.custom-select-chevron {
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.custom-select-trigger.open .custom-select-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 300;
    backdrop-filter: blur(16px);
    animation: fadeInScale 0.15s var(--ease-out);
    max-height: 220px;
    overflow-y: auto;
}

.custom-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: left;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
}

.custom-select-option:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.custom-select-option.selected {
    background: var(--accent-subtle);
    color: var(--accent);
    font-weight: 600;
}

/* Category Filter Tabs Bar */
.category-tabs-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 6px;
    margin-bottom: 4px;
    flex-shrink: 0;
    min-height: 40px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-tabs-bar::-webkit-scrollbar {
    display: none;
}

.category-tab-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--transition-fast);
    cursor: pointer;
    flex-shrink: 0;
}
.category-tab-chip:hover {
    color: var(--text-primary);
    background: var(--bg-surface-elevated);
    border-color: var(--border-hover);
}

.category-tab-chip.active {
    color: var(--accent);
    background: var(--accent-subtle);
    border-color: var(--accent-muted);
    font-weight: 600;
}

.tab-badge {
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.category-tab-chip.active .tab-badge {
    background: var(--accent-glow);
    color: var(--accent);
}

/* Category Section Dividers in Preset Picker */
.preset-category-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preset-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 2px;
}

.category-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.category-badge-count {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    background: var(--accent-subtle);
    color: var(--accent);
    border: 1px solid var(--accent-muted);
}

.category-section-divider {
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}
.param-range {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
}

.param-toggle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.param-toggle-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-fast);
}

.param-toggle-card:hover {
    border-color: var(--border-hover);
}

.param-toggle-card.checked {
    background: var(--accent-subtle);
    border-color: var(--accent-muted);
}

.toggle-switch-pill {
    width: 28px;
    height: 16px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    transition: background var(--transition-fast);
}

.toggle-switch-pill::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: transform var(--transition-fast);
}

.param-toggle-card.checked .toggle-switch-pill {
    background: var(--accent);
}

.param-toggle-card.checked .toggle-switch-pill::after {
    transform: translateX(12px);
    background: var(--accent-contrast);
}

/* Disabled / Bypassed Parameter State */
.param-group.bypassed,
.custom-select-wrap.bypassed,
.param-toggle-card.bypassed {
    opacity: 0.42;
    cursor: not-allowed;
}

.custom-select-wrap.bypassed .custom-select-trigger,
.param-toggle-card.bypassed {
    pointer-events: none;
    cursor: not-allowed;
}

.param-range:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.param-value-tag.bypassed {
    color: var(--text-muted);
    font-style: italic;
}

/* Director Note Field */
.director-textarea {
    width: 100%;
    min-height: 70px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    font-size: 0.8rem;
    color: var(--text-primary);
    outline: none;
    resize: vertical;
    transition: border-color var(--transition-fast);
}

.director-textarea:focus {
    border-color: var(--border-hover);
}

.field-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Live Compile Preview */
.preview-tabs {
    display: flex;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 3px;
}

.preview-tab-btn {
    flex: 1;
    height: 28px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.preview-tab-btn.active {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    font-weight: 600;
}

.preview-textarea {
    width: 100%;
    height: 140px;
    background: #09090c;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    outline: none;
    resize: none;
    margin-top: 8px;
}

/* ==========================================================================
   Modals & Popups
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 20px;
    animation: modalFadeIn 0.2s var(--ease-out);
}

.modal-dialog {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalSlideUp 0.2s var(--ease-out);
}

.modal-dialog.large {
    max-width: 860px;
}

/* Two-column Settings Modal Layout */
.settings-modal-dialog {
    max-width: 780px;
    min-height: 480px;
}

.settings-layout-body {
    display: grid;
    grid-template-columns: 190px 1fr;
    flex: 1;
    overflow: hidden;
    min-height: 380px;
}

.settings-sidebar-pane {
    border-right: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.18);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.settings-content-pane {
    padding: 24px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
}

.settings-nav-item:hover {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
}

.settings-nav-item.active {
    background: var(--accent-subtle);
    color: var(--accent);
    font-weight: 600;
    border-color: var(--accent-muted);
}

@media (max-width: 640px) {
    .settings-layout-body {
        grid-template-columns: 1fr;
    }
    .settings-sidebar-pane {
        order: -1;
        border-left: none;
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: row;
        overflow-x: auto;
        padding: 8px 12px;
    }
    .settings-nav-item {
        white-space: nowrap;
        width: auto;
    }
}

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

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(0, 0, 0, 0.15);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Button Variants */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-ghost {
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* Form Controls */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    height: 38px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    border-color: var(--border-hover);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toastIn 0.25s var(--ease-out);
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }

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

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .inspector-pane {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        width: min(var(--inspector-width), 90vw);
        transform: translateX(100%);
        transition: transform var(--transition-normal);
        z-index: 100;
        box-shadow: var(--shadow-xl);
        display: flex;
    }

    .inspector-pane.open {
        transform: translateX(0);
    }

    .inspector-pane.collapsed {
        display: flex;
        transform: translateX(100%);
    }

    /* Always show message action buttons on mobile / touch interfaces */
    .msg-actions {
        opacity: 1;
        height: auto;
        min-height: 22px;
        flex-wrap: wrap;
    }
}

@media (hover: none) {
    .msg-actions {
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .modal-backdrop {
        padding: 12px 8px;
    }

    .modal-body {
        padding: 14px 12px;
        gap: 12px;
    }

    .modal-header {
        padding: 12px 14px;
    }

    .modal-footer {
        padding: 10px 14px;
    }

    .top-header {
        padding: 0 12px;
        gap: 8px;
    }

    .header-left, .header-right {
        gap: 6px;
    }

    .active-chat-title {
        font-size: 0.88rem;
        padding: 2px 6px;
    }

    .chat-input-dock {
        padding: 0 10px 10px;
    }
    .input-card {
        padding: 8px 10px;
        gap: 6px;
    }

    .chat-textarea {
        font-size: 0.88rem;
    }

    .input-footer {
        padding-top: 2px;
        min-height: 28px;
    }

    .chip-btn {
        height: 28px;
        font-size: 0.72rem;
        padding: 0 8px;
        gap: 4px;
    }

    .chat-settings-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }

    .send-btn, .stop-btn {
        width: 28px;
        height: 28px;
    }

    .send-btn svg, .stop-btn svg {
        width: 12px;
        height: 12px;
    }
}
