/* ============================================
   SHEETINSIGHT AI — CSS (v2)
   Uses portfolio's CSS variables from style.css
   Dark = green/cyan · Light = orange
   ============================================ */

/* ---- Hero ---- */
.si-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.si-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.si-hero-gradient {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 70% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(0, 212, 255, 0.06) 0%, transparent 60%);
    animation: gradientRotate 40s linear infinite;
}

[data-theme="light"] .si-hero-gradient {
    background:
        radial-gradient(ellipse at 30% 30%, rgba(217, 119, 6, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(234, 88, 12, 0.02) 0%, transparent 50%);
}

.si-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* ---- Particles ---- */
.si-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.si-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    animation: siParticleFloat 8s ease-in-out infinite;
}

@keyframes siParticleFloat {
    0%, 100% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

/* ---- Orbs ---- */
.si-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: orbFloat 25s ease-in-out infinite;
}
.si-orb-1 { width: 400px; height: 400px; background: rgba(0, 255, 136, 0.12); bottom: 5%; right: 15%; }
.si-orb-2 { width: 300px; height: 300px; background: rgba(139, 92, 246, 0.12); bottom: 10%; right: 10%; animation-delay: -10s; }
.si-orb-3 { width: 250px; height: 250px; background: rgba(0, 212, 255, 0.08); top: 50%; right: 30%; animation-delay: -18s; }

[data-theme="light"] .si-orb-1 { background: rgba(217, 119, 6, 0.03); }
[data-theme="light"] .si-orb-2 { background: rgba(234, 88, 12, 0.03); }
[data-theme="light"] .si-orb-3 { background: rgba(217, 119, 6, 0.02); }

/* ---- Hero Layout ---- */
.si-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.si-hero-content { z-index: 1; }

.si-hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.si-hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.si-hero-desc em {
    color: var(--accent-primary);
    font-style: normal;
    font-weight: 600;
}

/* ---- Feature Chips (like ATS Forge) ---- */
.si-hero-chips {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.si-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.si-chip svg {
    color: var(--accent-primary);
}

.si-chip:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ---- Auth Area ---- */
.si-google-btn {
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.si-auth-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.si-privacy-note {
    font-size: 0.72rem;
    opacity: 0.7;
    margin-top: 4px;
}

.si-disconnect-btn {
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}
.si-disconnect-btn:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid #ef4444 !important;
    color: #ef4444 !important;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
    transform: scale(1.02);
}
.si-disconnect-btn:hover svg {
    transform: none !important;
}

.si-pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-glow 2s ease-in-out infinite;
}

.si-pulse-dot-sm {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ---- Architecture Visual Card ---- */
.si-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.si-arch-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 400px;
    transition: all var(--transition-slow);
    text-align: left;
}

.si-arch-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.si-arch-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.si-arch-dots {
    display: flex;
    gap: 6px;
}
.si-arch-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.si-arch-dots span:nth-child(1) { background: #ef4444; }
.si-arch-dots span:nth-child(2) { background: #f59e0b; }
.si-arch-dots span:nth-child(3) { background: var(--accent-primary); }

.si-arch-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-weight: 500;
}

.si-arch-flow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
}

/* Flow step with staggered animation */
.si-flow-step {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    text-align: left;
}

.si-flow-step:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: var(--accent-glow);
}

/* Staggered entrance */
.si-flow-animate {
    opacity: 0;
    transform: translateY(12px);
    animation: siFlowStepIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(0.6s + var(--step-delay, 0) * 0.15s);
}

@keyframes siFlowStepIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Flow step text (label + detail) */
.si-flow-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.si-flow-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}
.si-flow-detail {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    line-height: 1.3;
}

/* Flow icons — theme-aware */
.si-flow-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    color: var(--accent-primary);
    flex-shrink: 0;
    transition: all var(--transition-base);
}
.si-flow-icon svg { width: 18px; height: 18px; }
.si-fi-2 { background: rgba(0, 212, 255, 0.1); color: var(--accent-secondary); }
.si-fi-3 { background: rgba(139, 92, 246, 0.1); color: var(--accent-tertiary); }
.si-fi-4 { background: var(--accent-glow); color: var(--accent-primary); box-shadow: 0 0 20px var(--accent-glow); }

[data-theme="light"] .si-flow-icon { background: rgba(217, 119, 6, 0.1); color: var(--accent-primary); }
[data-theme="light"] .si-fi-2 { background: rgba(234, 88, 12, 0.1); color: var(--accent-secondary); }
[data-theme="light"] .si-fi-3 { background: rgba(194, 65, 12, 0.1); color: var(--accent-tertiary); }
[data-theme="light"] .si-fi-4 { background: var(--accent-glow); color: var(--accent-primary); box-shadow: 0 0 20px var(--accent-glow); }

.si-flow-step:hover .si-flow-icon {
    transform: scale(1.1);
    box-shadow: 0 0 16px var(--accent-glow);
}

.si-flow-arrow {
    color: var(--text-muted);
    opacity: 0.5;
    text-align: center;
    align-self: center;
}

.si-arch-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    background: var(--accent-glow);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    justify-content: center;
}

/* ============================================
   APP LAYOUT (Sidebar + Chat)
   ============================================ */
.si-app-section {
    padding: var(--space-2xl) 0 var(--space-4xl);
    min-height: 80vh;
}

.si-app-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

/* ---- Sidebar ---- */
.si-sidebar { display: flex; flex-direction: column; gap: var(--space-md); position: sticky; top: 100px; }

.si-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
}

.si-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.si-sidebar-header h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.si-icon-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}
.si-icon-btn:hover { color: var(--accent-primary); background: var(--accent-glow); }

.si-file-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.si-file-item {
    padding: var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}
.si-file-item:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.si-file-item.active { border-color: var(--accent-primary); background: var(--accent-glow); }

.si-file-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.si-file-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.si-empty-state {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    justify-content: center;
    padding: var(--space-2xl) 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.si-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: siSpin 0.8s linear infinite;
}
@keyframes siSpin { to { transform: rotate(360deg); } }

/* Auth Status Badge */
.si-auth-status {
    margin-bottom: var(--space-md);
}

.si-badge-ready {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.si-badge-connected {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--accent-glow);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    animation: siBadgePop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes siBadgePop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* AI Assistant Card */
.si-assistant-card {
    overflow: hidden;
}

.si-asst-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

.si-asst-avatar {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    flex-shrink: 0;
}

.si-asst-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.si-asst-status {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-primary);
    padding: 2px 8px;
    background: var(--accent-glow);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

/* Single-message feed — only shows current message */
.si-asst-feed {
    position: relative;
    min-height: 42px;
}

.si-asst-msg {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border-left: 2px solid var(--accent-primary);
    animation: siMsgReplace 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .si-asst-msg {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 2px solid var(--accent-primary);
}

.si-asst-msg.si-asst-thinking {
    border-left-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.si-asst-msg.si-asst-routing {
    border-left-color: var(--accent-tertiary);
    color: var(--accent-tertiary);
}

.si-asst-msg.si-asst-done {
    border-left-color: var(--accent-primary);
    color: var(--accent-primary);
    font-weight: 600;
}

/* Outgoing message fade */
.si-asst-msg.si-asst-exiting {
    animation: siMsgExit 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes siMsgReplace {
    0% { opacity: 0; transform: translateY(6px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes siMsgExit {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-6px) scale(0.98); }
}

/* FREE tag — theme-aware (no hardcoded green) */
.si-tag-free {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: var(--accent-glow);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

.si-tag-cost {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ---- Chat ---- */
.si-chat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    min-height: 600px;
    max-height: 80vh;
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.si-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.si-chat-file {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ---- Badges — theme-aware (no hardcoded green) ---- */
.si-badges { display: flex; gap: var(--space-sm); }
.si-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.si-badge-live {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.si-badge-groq {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-secondary);
    border: 1px solid rgba(0, 212, 255, 0.2);
}
.si-badge-openai {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-tertiary);
    border: 1px solid rgba(139, 92, 246, 0.2);
}
.si-badge-local {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

[data-theme="light"] .si-badge-groq { background: rgba(234, 88, 12, 0.08); color: var(--accent-secondary); border-color: rgba(234, 88, 12, 0.15); }
[data-theme="light"] .si-badge-openai { background: rgba(194, 65, 12, 0.08); color: var(--accent-tertiary); border-color: rgba(194, 65, 12, 0.15); }

/* Tab Bar */
.si-tab-bar {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: var(--bg-tertiary);
}
.si-tab-bar::-webkit-scrollbar { display: none; }

.si-tab {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.si-tab:hover {
    color: var(--text-secondary);
    background: var(--bg-card);
    border-color: var(--border-color);
}
.si-tab.active {
    color: var(--accent-primary);
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    font-weight: 600;
}
.si-tab-rows {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    opacity: 0.7;
}
.si-tab.active .si-tab-rows { color: var(--accent-primary); opacity: 0.8; }

.si-tab-loading {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 4px 0;
}

/* ---- Messages ---- */
.si-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Welcome */
.si-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    gap: var(--space-md);
}
.si-welcome-icon { color: var(--accent-primary); opacity: 0.6; }
.si-welcome h3 { font-size: 1.3rem; font-weight: 700; }
.si-welcome p { color: var(--text-secondary); font-size: 0.95rem; max-width: 400px; line-height: 1.6; }

.si-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    justify-content: center;
}

.si-suggestion {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-base);
    cursor: pointer;
}
.si-suggestion:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-glow);
}

/* Messages */
.si-msg {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    line-height: 1.7;
    animation: fadeUp 0.3s ease forwards;
    width: fit-content;
    max-width: 100%;
}

.si-msg-user {
    align-self: flex-end;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border-bottom-right-radius: var(--radius-sm);
}

.si-msg-ai {
    align-self: flex-start;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-bottom-left-radius: var(--radius-sm);
    white-space: normal;
    word-wrap: break-word;
}

/* Markdown inside AI messages */
.si-msg-ai strong { font-weight: 700; color: var(--accent-primary); }
.si-msg-ai code {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: var(--font-mono);
    font-size: 0.85em;
}

.si-table-wrap {
    overflow-x: auto;
    margin: var(--space-sm) 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.si-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}
.si-table th {
    background: var(--bg-primary);
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--accent-primary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}
.si-table td {
    padding: 6px 12px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.si-table tr:last-child td { border-bottom: none; }
.si-table tr:hover td { background: var(--accent-glow); }

.si-msg-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
    align-self: flex-start;
}

.si-msg-rows {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.si-msg-typing {
    align-self: flex-start;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    gap: 6px;
}
.si-msg-typing span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: siTyping 1.2s ease-in-out infinite;
}
.si-msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.si-msg-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes siTyping { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }

/* Input */
.si-input-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.si-input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-base);
}
.si-input:focus { border-color: var(--accent-primary); box-shadow: 0 0 20px var(--accent-glow); }
.si-input:disabled { opacity: 0.5; cursor: not-allowed; }
.si-input::placeholder { color: var(--text-muted); }

.si-send-btn {
    padding: var(--space-md);
    border-radius: var(--radius-md) !important;
    flex-shrink: 0;
}
.si-send-btn:hover svg {
    transform: scale(1.2) !important;
}
.si-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================
   STRUCTURED RESPONSE SECTIONS
   ============================================ */

/* Bullet squares */
.si-bullet {
    color: var(--accent-primary);
    font-size: 0.55em;
    vertical-align: middle;
    margin-right: 2px;
    line-height: 1;
}

.si-section {
    margin: 8px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-base);
}
.si-section:first-child { margin-top: 0; }

.si-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-mono);
}

.si-section-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.8;
}
.si-section-icon svg {
    color: inherit;
}

.si-section-body {
    padding: 10px 14px 12px;
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Answer section — prominent */
.si-section-answer {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}
.si-section-answer .si-section-header {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border-bottom: 1px solid rgba(0, 255, 136, 0.15);
}
.si-section-answer .si-section-icon { color: var(--accent-primary); }
.si-section-answer .si-section-body { color: var(--text-primary); }
.si-section-answer .si-section-body strong { color: var(--accent-primary); font-size: 1.05em; }

[data-theme="light"] .si-section-answer {
    border-color: var(--accent-primary);
    background: rgba(217, 119, 6, 0.04);
}
[data-theme="light"] .si-section-answer .si-section-header {
    background: rgba(217, 119, 6, 0.06);
    border-bottom: 1px solid rgba(217, 119, 6, 0.1);
}

/* Method section — subtle */
.si-section-method {
    border-color: rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.03);
}
.si-section-method .si-section-header {
    background: rgba(0, 212, 255, 0.06);
    color: var(--accent-secondary);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}
.si-section-method .si-section-icon { color: var(--accent-secondary); }
.si-section-method .si-section-body { color: var(--text-secondary); font-size: 0.88rem; }

[data-theme="light"] .si-section-method {
    border-color: rgba(234, 88, 12, 0.15);
    background: rgba(234, 88, 12, 0.02);
}
[data-theme="light"] .si-section-method .si-section-header {
    background: rgba(234, 88, 12, 0.05);
    color: var(--accent-secondary);
    border-bottom: 1px solid rgba(234, 88, 12, 0.08);
}

/* Data notes — informational */
.si-section-datanotes {
    border-color: rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.03);
}
.si-section-datanotes .si-section-header {
    background: rgba(139, 92, 246, 0.06);
    color: var(--accent-tertiary);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}
.si-section-datanotes .si-section-icon { color: var(--accent-tertiary); }
.si-section-datanotes .si-section-body { color: var(--text-secondary); font-size: 0.88rem; }

[data-theme="light"] .si-section-datanotes {
    border-color: rgba(194, 65, 12, 0.15);
    background: rgba(194, 65, 12, 0.02);
}
[data-theme="light"] .si-section-datanotes .si-section-header {
    background: rgba(194, 65, 12, 0.05);
    color: var(--accent-tertiary);
    border-bottom: 1px solid rgba(194, 65, 12, 0.08);
}

/* Interpretation — insight */
.si-section-interpretation {
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.03);
}
.si-section-interpretation .si-section-header {
    background: rgba(59, 130, 246, 0.06);
    color: #60a5fa;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}
.si-section-interpretation .si-section-icon { color: #60a5fa; }
.si-section-interpretation .si-section-body { color: var(--text-secondary); font-size: 0.88rem; }

[data-theme="light"] .si-section-interpretation {
    border-color: rgba(180, 83, 9, 0.15);
    background: rgba(180, 83, 9, 0.02);
}
[data-theme="light"] .si-section-interpretation .si-section-header {
    background: rgba(180, 83, 9, 0.05);
    color: #b45309;
    border-bottom: 1px solid rgba(180, 83, 9, 0.08);
}
[data-theme="light"] .si-section-interpretation .si-section-icon { color: #b45309; }
[data-theme="light"] .si-section-interpretation .si-section-body { color: var(--text-secondary); }

/* Warning section — alert */
/* Dark mode: coral/rose red */
.si-section-warning {
    border-color: rgba(244, 63, 94, 0.25);
    background: rgba(244, 63, 94, 0.04);
}
.si-section-warning .si-section-header {
    background: rgba(244, 63, 94, 0.07);
    color: #fb7185;
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
}
.si-section-warning .si-section-icon { color: #fb7185; }
.si-section-warning .si-section-body { color: #fda4af; font-size: 0.88rem; }

/* Light mode: warm yellow/amber */
[data-theme="light"] .si-section-warning {
    border-color: rgba(202, 138, 4, 0.2);
    background: rgba(250, 204, 21, 0.04);
}
[data-theme="light"] .si-section-warning .si-section-header {
    background: rgba(250, 204, 21, 0.08);
    color: #a16207;
    border-bottom: 1px solid rgba(202, 138, 4, 0.12);
}
[data-theme="light"] .si-section-warning .si-section-icon { color: #a16207; }
[data-theme="light"] .si-section-warning .si-section-body { color: #854d0e; }

/* Tables inside sections */
.si-section .si-table-wrap {
    margin: 6px -14px 6px -14px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.si-section .si-table-wrap .si-table { font-size: 0.88rem; }
.si-section .si-table-wrap .si-table th { padding: 10px 14px; font-size: 0.8rem; letter-spacing: 0.03em; text-transform: uppercase; }
.si-section .si-table-wrap .si-table td { padding: 8px 14px; }

/* Remove leading empty space in section bodies */
.si-section-body > br:first-child { display: none; }
.si-section-body > br:first-child + br { display: none; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* ---- Tablet (≤1024px) ---- */
@media (max-width: 1024px) {
    .si-hero-inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }
    .si-hero-content { order: 1; }
    .si-hero-visual { order: 2; }
    .si-hero-desc { margin: 0 auto var(--space-xl); }
    .si-hero-chips { justify-content: center; }
    .si-arch-card { max-width: 420px; margin: 0 auto; }

    /* APP LAYOUT — stack */
    .si-app-layout {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .si-app-section { min-height: auto; }

    .si-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    /* CRITICAL: Remove desktop sticky + fixed heights */
    .si-chat {
        position: static;
        max-height: none;
        min-height: 450px;
    }
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 768px) {

    /* HERO */
    .si-hero {
        padding: calc(var(--space-2xl) + 60px) var(--space-md) var(--space-xl);
        min-height: auto;
    }
    .si-hero-inner { gap: var(--space-lg); }
    .si-hero-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }
    .si-hero-desc { font-size: 0.95rem; max-width: 100%; }
    .si-hero-chips { gap: var(--space-sm); flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .si-chip { font-size: 0.78rem; padding: 6px 10px; }

    /* ARCHITECTURE CARD */
    .si-hero-visual { display: flex !important; order: 2; }
    .si-arch-card { padding: var(--space-md); max-width: 100%; }
    .si-arch-header { margin-bottom: var(--space-md); padding-bottom: var(--space-sm); }
    .si-arch-flow { gap: 4px; }
    .si-flow-step { padding: var(--space-xs) var(--space-sm); }
    .si-flow-icon { width: 30px; height: 30px; }
    .si-flow-icon svg { width: 14px; height: 14px; }
    .si-flow-label { font-size: 0.82rem; }
    .si-flow-detail { font-size: 0.68rem; }
    .si-flow-arrow svg { width: 12px; height: 12px; }
    .si-arch-badge { font-size: 0.68rem; padding: 4px var(--space-sm); margin-top: var(--space-md); }
    .si-arch-label { font-size: 0.72rem; }

    /* AUTH BUTTONS */
    .si-google-btn,
    .si-disconnect-btn {
        width: 100%;
        justify-content: center;
        padding: var(--space-md) var(--space-lg) !important;
        font-size: 16px !important;
        min-height: 48px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    .si-auth-note { font-size: 0.72rem; text-align: center; }
    .si-auth-status { text-align: center; }

    /* =========================================
       APP SECTION — STACKED MOBILE LAYOUT
       Files (vertical scroll) → Assistant → Chat
       ========================================= */
    .si-app-section {
        padding: var(--space-md) 0 var(--space-xl);
        min-height: auto;
    }

    /* CRITICAL: contain everything within viewport width */
    .si-app-section .section-container {
        padding: 0 var(--space-sm);
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* CRITICAL: override the desktop grid completely */
    .si-app-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--space-sm);
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* ---- SIDEBAR: full width, single column ---- */
    .si-sidebar {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
        gap: var(--space-sm);
        position: static;
        width: 100%;
        max-width: 100%;
    }

    .si-sidebar-card {
        padding: var(--space-sm) var(--space-md);
        border-radius: var(--radius-md);
        width: 100%;
        box-sizing: border-box;
    }

    .si-sidebar-header {
        margin-bottom: var(--space-sm);
    }

    .si-sidebar-header h3 {
        font-size: 0.88rem;
        gap: 6px;
    }

    .si-sidebar-header h3 svg { width: 15px; height: 15px; }
    .si-icon-btn { width: 30px; height: 30px; }
    .si-icon-btn svg { width: 14px; height: 14px; }

    /* FILE LIST — vertical scroll, just like desktop but capped height */
    .si-file-list {
        display: flex;
        flex-direction: column;
        max-height: 200px;
        overflow-y: auto;
        gap: var(--space-xs);
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .si-file-item {
        padding: var(--space-sm) var(--space-md);
        border-radius: var(--radius-sm);
        width: 100%;
        box-sizing: border-box;
    }

    .si-file-name {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .si-file-meta { font-size: 0.72rem; }

    .si-empty-state {
        padding: var(--space-lg) 0;
        font-size: 0.8rem;
    }

    .si-spinner { width: 14px; height: 14px; }

    /* ---- AI ASSISTANT CARD — compact ---- */
    .si-assistant-card {
        padding: var(--space-sm) var(--space-md) !important;
    }

    .si-asst-header {
        gap: 6px;
        padding-bottom: var(--space-xs);
        margin-bottom: var(--space-sm);
    }

    .si-asst-avatar { width: 24px; height: 24px; }
    .si-asst-avatar svg { width: 12px; height: 12px; }
    .si-asst-name { font-size: 0.8rem; }
    .si-asst-status { font-size: 0.6rem; padding: 2px 6px; }
    .si-asst-feed { min-height: 28px; }

    .si-asst-msg {
        font-size: 0.78rem;
        padding: 6px 10px;
        line-height: 1.5;
        border-left-width: 2px;
    }

    /* ---- CHAT SECTION — full width, proper height ---- */
    .si-chat {
        position: static;
        min-height: 60vh;
        max-height: none;
        border-radius: var(--radius-md);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .si-chat-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-sm);
        padding: var(--space-sm) var(--space-md);
        flex-wrap: nowrap;
    }

    .si-chat-file {
        font-size: 0.84rem;
        min-width: 0;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .si-chat-file svg { width: 14px; height: 14px; flex-shrink: 0; }
    .si-badges { flex-shrink: 0; }
    .si-badge { font-size: 0.6rem; padding: 3px 8px; white-space: nowrap; }

    /* TAB BAR — must scroll horizontally */
    .si-tab-bar {
        display: flex;
        padding: var(--space-xs) var(--space-sm);
        gap: var(--space-xs);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap;
        width: 100%;
        box-sizing: border-box;
    }
    .si-tab-bar::-webkit-scrollbar { display: none; }

    .si-tab {
        padding: 5px 12px;
        font-size: 0.74rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .si-tab-rows { font-size: 0.58rem; }

    /* MESSAGES AREA */
    .si-messages {
        flex: 1;
        padding: var(--space-md);
        gap: var(--space-sm);
        max-height: 55vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    /* WELCOME */
    .si-welcome {
        padding: var(--space-xl) var(--space-md);
    }

    .si-welcome-icon svg { width: 28px; height: 28px; }
    .si-welcome h3 { font-size: 1.05rem; }
    .si-welcome p { font-size: 0.85rem; max-width: 100%; }

    .si-suggestions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }

    .si-suggestion {
        font-size: 0.76rem;
        padding: 8px 14px;
    }

    /* MESSAGES */
    .si-msg {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
        line-height: 1.6;
        max-width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .si-msg-user {
        max-width: 85%;
    }

    .si-msg-ai {
        max-width: 100%;
    }

    /* TYPING */
    .si-msg-typing {
        padding: var(--space-sm) var(--space-md);
    }
    .si-msg-typing span { width: 7px; height: 7px; }

    /* PROVIDER META */
    .si-msg-meta {
        flex-wrap: wrap;
        gap: 4px;
    }
    .si-msg-rows { font-size: 0.65rem; }

    /* INPUT BAR — properly sized text box + compact send button */
    .si-input-bar {
        display: flex;
        align-items: center;
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-sm);
        border-top: 1px solid var(--border-color);
        background: var(--bg-card);
        width: 100%;
        box-sizing: border-box;
    }

    .si-input {
        flex: 1;
        min-width: 0;
        padding: 10px var(--space-md);
        font-size: 16px;       /* prevents iOS zoom */
        min-height: 44px;
        border-radius: var(--radius-md);
        box-sizing: border-box;
    }

    .si-send-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        max-width: 44px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border-radius: var(--radius-md) !important;
    }

    .si-send-btn svg { width: 18px; height: 18px; }

    /* TABLES */
    .si-table-wrap {
        margin: var(--space-xs) calc(-1 * var(--space-md));
        border-radius: 0;
        border-left: none;
        border-right: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .si-table { font-size: 0.76rem; }
    .si-table th { padding: 6px 10px; font-size: 0.7rem; }
    .si-table td { padding: 5px 10px; }

    /* STRUCTURED SECTIONS */
    .si-section {
        margin: 6px 0;
        border-radius: var(--radius-sm);
    }

    .si-section-header {
        padding: 6px 10px;
        font-size: 0.72rem;
        gap: 6px;
    }

    .si-section-icon svg { width: 12px; height: 12px; }

    .si-section-body {
        padding: 8px 10px 10px;
        font-size: 0.86rem;
        line-height: 1.6;
    }

    .si-section-answer .si-section-body strong {
        font-size: 0.95em;
    }

    .si-section .si-table-wrap {
        margin: 4px -10px;
    }

    .si-section .si-table-wrap .si-table { font-size: 0.78rem; }
    .si-section .si-table-wrap .si-table th { padding: 6px 8px; font-size: 0.7rem; }
    .si-section .si-table-wrap .si-table td { padding: 5px 8px; }

    .si-bullet { font-size: 0.5em; }
}

/* ---- Small phone (≤480px) ---- */
@media (max-width: 480px) {

    /* HERO */
    .si-hero { padding: calc(var(--space-xl) + 50px) var(--space-xs) var(--space-lg); }
    .si-hero-title { font-size: clamp(1.5rem, 8vw, 2.2rem); }
    .si-hero-desc { font-size: 0.88rem; line-height: 1.6; }
    .si-hero-chips { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px; }
    .si-chip { font-size: 0.74rem; padding: 5px 8px; }
    .section-tag { font-size: 0.72rem; }

    /* Architecture card */
    .si-arch-card { padding: var(--space-sm) var(--space-md); }
    .si-arch-flow { gap: 2px; }
    .si-flow-step { padding: 4px 6px; gap: var(--space-sm); }
    .si-flow-icon { width: 26px; height: 26px; }
    .si-flow-icon svg { width: 12px; height: 12px; }
    .si-flow-label { font-size: 0.76rem; }
    .si-flow-detail { font-size: 0.62rem; }
    .si-arch-badge { font-size: 0.62rem; }
    .si-flow-arrow svg { width: 10px; height: 10px; }

    /* Auth */
    .si-google-btn span, .si-disconnect-btn span { font-size: 0.88rem; }
    .si-auth-note { font-size: 0.68rem; }

    /* APP — tighter container */
    .si-app-section .section-container {
        padding: 0 4px;
    }

    .si-app-layout {
        gap: 4px;
    }

    /* SIDEBAR — tighter */
    .si-sidebar-card {
        padding: var(--space-xs) var(--space-sm);
        border-radius: var(--radius-sm);
    }
    .si-sidebar-header h3 { font-size: 0.82rem; }
    .si-sidebar-header { margin-bottom: var(--space-xs); }

    /* File list — shorter scroll area */
    .si-file-list { max-height: 160px; }
    .si-file-item { padding: 6px var(--space-sm); }
    .si-file-name { font-size: 0.82rem; }
    .si-file-meta { font-size: 0.68rem; }

    /* AI ASSISTANT — smaller */
    .si-assistant-card { padding: var(--space-xs) var(--space-sm) !important; }
    .si-asst-header { gap: 4px; padding-bottom: 3px; margin-bottom: var(--space-xs); }
    .si-asst-avatar { width: 22px; height: 22px; }
    .si-asst-avatar svg { width: 11px; height: 11px; }
    .si-asst-name { font-size: 0.76rem; }
    .si-asst-status { font-size: 0.55rem; padding: 1px 5px; }
    .si-asst-feed { min-height: 24px; }
    .si-asst-msg { font-size: 0.74rem; padding: 5px 8px; line-height: 1.4; }

    /* CHAT */
    .si-chat {
        border-radius: var(--radius-sm);
        min-height: 55vh;
    }
    .si-chat-header { padding: 6px var(--space-sm); }
    .si-chat-file { font-size: 0.8rem; }
    .si-chat-file svg { width: 13px; height: 13px; }
    .si-badge { font-size: 0.55rem; padding: 2px 6px; }

    /* Tab bar */
    .si-tab-bar { padding: 3px var(--space-xs); gap: 3px; }
    .si-tab { padding: 4px 10px; font-size: 0.7rem; }

    /* Messages */
    .si-messages {
        padding: var(--space-sm);
        max-height: 50vh;
        gap: 6px;
    }

    /* Welcome */
    .si-welcome { padding: var(--space-lg) var(--space-sm); gap: var(--space-sm); }
    .si-welcome-icon svg { width: 24px; height: 24px; }
    .si-welcome h3 { font-size: 0.95rem; }
    .si-welcome p { font-size: 0.8rem; }

    /* Suggestions — 2-col grid */
    .si-suggestions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        width: 100%;
    }
    .si-suggestion {
        width: 100%;
        text-align: center;
        padding: 8px 6px;
        font-size: 0.72rem;
        line-height: 1.3;
    }

    /* Messages */
    .si-msg { font-size: 0.86rem; padding: 8px 10px; }
    .si-msg-user { max-width: 90%; }

    /* Input bar — bigger text box, proportional send */
    .si-input-bar { padding: 6px var(--space-sm); gap: 6px; }
    .si-input { font-size: 16px; padding: 10px; min-height: 42px; }
    .si-send-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        max-width: 42px;
    }
    .si-send-btn svg { width: 16px; height: 16px; }

    /* Response sections */
    .si-section-header { padding: 5px 8px; font-size: 0.68rem; }
    .si-section-body { padding: 6px 8px 8px; font-size: 0.83rem; line-height: 1.55; }
    .si-section .si-table-wrap { margin: 3px -8px; }
    .si-section .si-table-wrap .si-table { font-size: 0.72rem; }

    /* Tables */
    .si-table { font-size: 0.7rem; }
    .si-table th { padding: 5px 6px; font-size: 0.65rem; }
    .si-table td { padding: 4px 6px; }

    /* Typing */
    .si-msg-typing { padding: 6px 8px; }
    .si-msg-typing span { width: 5px; height: 5px; }
}