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

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --success: #16a34a;
    --warning: #f59e0b;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Navbar === */
.navbar {
    background: var(--primary);
    color: white;
    padding: 0 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-brand {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.nav-links { display: flex; gap: 8px; }

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    transition: background 0.2s;
}

.nav-links a:hover { background: rgba(255,255,255,0.15); }

/* === Main Layout === */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    flex: 1;
    width: 100%;
}

.footer {
    text-align: center;
    padding: 16px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* === Page Header === */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.page-header h1 { font-size: 24px; }

.header-actions { display: flex; gap: 8px; }

/* === Cards === */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card h2 {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

/* === Stem content (question text with preserved line breaks) === */
.stem-content {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.8;
    font-size: 15px;
}

/* === Stats Grid === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* === Home Grid === */
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 16px; margin-bottom: 24px; }

.home-card { background: var(--card-bg); border-radius: var(--radius); padding: 20px 24px; border: 1px solid var(--border); }

.home-card h2 { font-size: 18px; margin-bottom: 12px; }

.action-links { display: flex; flex-wrap: wrap; gap: 8px; }

.subject-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.subject-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #eef2ff;
    color: var(--primary);
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.subject-tag:hover { background: #e0e7ff; }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.5;
}

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

.btn-secondary { background: white; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: #f1f5f9; }

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

.btn-small { padding: 4px 12px; font-size: 13px; }

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

/* === Forms === */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: border-color 0.15s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.form-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.form-row .form-group { flex: 1; }

.form-hint { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.required { color: var(--danger); }

.form-actions { display: flex; gap: 8px; margin-top: 16px; }

/* === Data Table === */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; padding: 10px 12px; background: #f8fafc; font-weight: 600; border-bottom: 2px solid var(--border); }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: #fafbfd; }

.stem-preview { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); }

/* === Filter Form === */
.filter-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-form select, .filter-form input { padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; }

/* === Sub Questions === */
.sub-questions-list { display: flex; flex-direction: column; gap: 16px; }

.sub-question-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    background: #fafbfd;
}

.sub-question-detail {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: #fafbfd;
}

.sub-question-detail h3 { font-size: 16px; margin-bottom: 8px; color: var(--primary); }

.sq-content { margin-bottom: 8px; }

.sq-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.sq-field { font-size: 14px; }
.sq-field.full-width { grid-column: 1 / -1; }

.sq-label { font-weight: 600; color: var(--text-muted); }

.correct-answer { color: var(--success); }
.wrong-answer { color: var(--danger); }

.sq-actions { margin-top: 12px; display: flex; gap: 8px; }

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-error { background: #fef2f2; color: var(--danger); }

.edit-form { margin-top: 12px; padding: 12px; background: white; border: 1px solid var(--border); border-radius: var(--radius); }

/* === Image === */
.question-image { max-width: 100%; max-height: 600px; border-radius: var(--radius); border: 1px solid var(--border); }

.image-preview { max-width: 300px; max-height: 300px; margin-top: 8px; border-radius: var(--radius); border: 1px solid var(--border); }

/* === Analysis === */
.analysis-section { display: flex; flex-direction: column; gap: 12px; }

.field-item { font-size: 14px; }

.analysis-text { background: #f8fafc; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--border); font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

.steps-list { display: flex; flex-direction: column; gap: 12px; }

.step-item { padding: 12px; background: #f8fafc; border-radius: var(--radius); border-left: 3px solid var(--primary); }

.step-item h3 { font-size: 15px; margin-bottom: 6px; }

.warning-note { background: #fffbeb; color: #92400e; padding: 8px 14px; border-radius: var(--radius); font-size: 14px; border: 1px solid #fde68a; }

.analysis-date { color: var(--text-muted); font-size: 13px; }

/* === Practice === */
.practice-question {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    background: #fafbfd;
}

.practice-question h3 { font-size: 16px; margin-bottom: 8px; }

.practice-content { font-size: 14px; margin-bottom: 8px; white-space: pre-wrap; word-break: break-word; }

details { margin-top: 8px; }

details summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    padding: 6px 0;
    color: var(--primary);
}

details summary:hover { color: var(--primary-hover); }

.solution-details .practice-hint,
.answer-details .practice-answer {
    padding: 10px 14px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 14px;
    margin-top: 4px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* === Flash Messages === */
.flash-messages { margin-bottom: 16px; }

.flash {
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 8px;
    border: 1px solid;
}

.flash-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.flash-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* === Empty State === */
.empty-state { color: var(--text-muted); font-size: 14px; padding: 24px; text-align: center; }

/* === Paper Import === */
.paper-upload-form { max-width: 600px; }

.paper-review-toolbar {
    position: sticky;
    top: 56px;
    background: var(--bg);
    padding: 12px 0;
    z-index: 10;
}

.paper-questions-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.paper-question-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pq-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.pq-checkbox input { width: 18px; height: 18px; cursor: pointer; }

.pq-number {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.pq-number-input {
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.pq-image {
    background: #fafafa;
    padding: 12px;
    display: flex;
    justify-content: center;
}

.pq-image img {
    max-width: 100%;
    max-height: 500px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.pq-content { padding: 12px 16px; }

.pq-stem-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    line-height: 1.6;
}

.pq-stem-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

/* === Tabs === */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.tab-nav {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.15s, border-color 0.15s;
}

.tab-nav:hover { color: var(--text); }

.tab-nav.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-panel { display: none; }

.tab-panel.active { display: block; }

/* === Subject Prompt Input === */
.subject-prompt-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    line-height: 1.6;
    background: #fafbfd;
    transition: border-color 0.15s;
}

.subject-prompt-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
    background: white;
}

/* === Responsive === */
/* === Auth Pages === */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 400px;
}

.auth-card h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.btn-block {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* === Navbar User Info === */
.nav-user {
    color: rgba(255,255,255,0.9);
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    border-left: 1px solid rgba(255,255,255,0.2);
    margin-left: 8px;
}

.nav-logout {
    color: rgba(255,255,255,0.7) !important;
}

.nav-logout:hover {
    color: rgba(255,255,255,1) !important;
}

/* === Adjust Layout (Paper Review) === */
.adjust-page-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.adjust-page-tab {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.15s;
}

.adjust-page-tab:hover { border-color: var(--primary); color: var(--primary); }

.adjust-page-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.adjust-main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.adjust-page-area {
    flex: 0 0 55%;
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.adjust-page-wrapper {
    position: relative;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.adjust-page-img {
    display: block;
    width: 100%;
    height: auto;
}

.adjust-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.adjust-q-zone {
    position: absolute;
    background: rgba(79, 70, 229, 0.10);
    border: 1px solid rgba(79, 70, 229, 0.25);
    cursor: move;
    transition: background 0.15s, border-color 0.15s;
    min-width: 10px;
    min-height: 14px;
}

.adjust-q-zone:hover {
    background: rgba(79, 70, 229, 0.18);
    border-color: rgba(79, 70, 229, 0.5);
}

.adjust-q-zone.active {
    background: rgba(79, 70, 229, 0.15);
    border: 2px solid var(--primary);
    z-index: 2;
}

/* Corner resize handles on active zone */
.adjust-q-zone.active::before,
.adjust-q-zone.active::after {
    content: '';
    position: absolute;
    width: 10px; height: 10px;
    background: white;
    border: 2px solid var(--primary);
    pointer-events: none;
    z-index: 3;
}

.adjust-q-zone.active::before { top: -5px; left: -5px; }
.adjust-q-zone.active::after { top: -5px; right: -5px; }

/* Additional corner dots for bottom corners */
.adjust-q-corner {
    display: none;
    position: absolute;
    width: 10px; height: 10px;
    background: white;
    border: 2px solid var(--primary);
    pointer-events: none;
    z-index: 3;
}

.adjust-q-zone.active .adjust-q-corner { display: block; }

.adjust-q-label {
    position: absolute;
    left: 4px;
    top: 2px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(255,255,255,0.85);
    padding: 0 4px;
    border-radius: 3px;
    line-height: 1.4;
    pointer-events: none;
}

/* Detail list (right side) */
.adjust-detail-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding-right: 4px;
}

.adjust-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.adjust-detail-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.adc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.adc-checkbox input { width: 16px; height: 16px; cursor: pointer; }

.adc-number {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.adc-page-tag {
    color: var(--text-muted);
    font-size: 12px;
}

.adc-number-input {
    width: 56px;
    padding: 3px 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    font-family: inherit;
}

.adc-content {
    padding: 10px 12px 4px;
}

.adc-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.adc-stem-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    line-height: 1.7;
    background: #fafbfd;
}

.adc-stem-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
    background: white;
}

.adc-preview {
    background: #fafafa;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    border-top: 1px dashed var(--border);
}

.adc-preview-label {
    font-size: 11px;
    color: var(--text-muted);
}

.adc-canvas {
    border: 1px solid var(--border);
    border-radius: 3px;
    max-width: 100%;
    height: auto;
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; height: auto; padding: 12px 0; gap: 8px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .main-container { padding: 16px; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .sq-info-grid { grid-template-columns: 1fr; }
    .home-grid { grid-template-columns: 1fr; }
    .filter-form { flex-direction: column; }
    .adjust-main { flex-direction: column; }
    .adjust-page-area { flex: none; position: static; max-height: none; }
    .adjust-detail-list { max-height: none; }
}

/* === Analysis Two-Column Layout === */
.analysis-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.analysis-main {
    flex: 1;
    min-width: 0;
}

.analysis-chat {
    width: 360px;
    flex-shrink: 0;
    position: sticky;
    top: 76px;
    height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

/* === Chat Panel === */
.chat-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

.chat-panel-header {
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-model-badge {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-empty {
    color: var(--text-muted);
    font-size: 13px;
    padding: 8px 4px;
}

.chat-empty p { margin-bottom: 6px; }

.chat-empty ul {
    list-style: disc;
    padding-left: 18px;
    line-height: 2;
}

.chat-msg { display: flex; }

.chat-msg-user { justify-content: flex-end; }

.chat-msg-user .chat-msg-content {
    background: var(--primary);
    color: white;
    padding: 8px 12px;
    border-radius: 14px 14px 4px 14px;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 90%;
}

.chat-msg-assistant { justify-content: flex-start; }

.chat-msg-assistant .chat-msg-content {
    background: #f1f5f9;
    color: var(--text);
    padding: 8px 12px;
    border-radius: 14px 14px 14px 4px;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.7;
    max-width: 98%;
}

.chat-msg-error .chat-msg-content {
    background: #fef2f2;
    color: var(--danger);
    padding: 6px 10px;
    border-radius: var(--radius);
    font-size: 13px;
}

.chat-loading {
    display: flex;
    gap: 4px;
    padding: 10px 12px;
    align-items: center;
}

.chat-loading span {
    width: 7px;
    height: 7px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: chatDot 1.2s infinite;
}

.chat-loading span:nth-child(2) { animation-delay: 0.2s; }
.chat-loading span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatDot {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

.chat-input-area {
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
}

.chat-input-area textarea {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
    resize: none;
    line-height: 1.5;
    max-height: 100px;
}

.chat-input-area textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

@media (max-width: 900px) {
    .analysis-layout { flex-direction: column; }
    .analysis-chat { width: 100%; position: static; height: 480px; }
}
