/* A1 only: keep the remaining home application pages on their current palette. */
.app-main.analysis-theme {
    background: #fff;
    color: #17263a;
}

.app-main.analysis-theme > header {
    padding-bottom: 22px;
    border-bottom: 1px solid #d9e7f6;
}

.app-main.analysis-theme #page-title { color: #14243d; letter-spacing: -.02em; }
.app-main.analysis-theme #page-subtitle { color: #596e86; }
.app-main.analysis-theme > header .bg-slate-800 { background: #f2f8ff; border: 1px solid #cfe0f4; }
.app-main.analysis-theme > header .text-slate-300 { color: #305878; }
.app-main.analysis-theme > header .text-green-400 { color: #16885e; }

.app-main.analysis-theme #analysis-page .upload-zone {
    border: 1.5px dashed #9abce6;
    background: #f8fbff;
    box-shadow: 0 6px 22px rgba(37, 91, 156, .04);
}
.app-main.analysis-theme #analysis-page .upload-zone:hover,
.app-main.analysis-theme #analysis-page .upload-zone:focus-within {
    border-color: #367ac9;
    background: #eef6ff;
    box-shadow: 0 10px 28px rgba(37, 91, 156, .09);
}
.app-main.analysis-theme #analysis-page .upload-zone.dragover { border-color: #16885e; background: #edf9f4; }
.app-main.analysis-theme #analysis-page .upload-zone p { overflow-wrap: anywhere; }
.app-main.analysis-theme #analysis-page .upload-zone .bg-green-500\/20 { background: #e5f6ee; }

.app-main.analysis-theme #analysis-page .glass-effect {
    background: #fff;
    border: 1px solid #cfe0f4;
    box-shadow: 0 8px 28px rgba(37, 91, 156, .06);
    backdrop-filter: none;
}

.app-main.analysis-theme #analysis-page .text-white { color: #14243d; }
.app-main.analysis-theme #analysis-page .text-slate-300 { color: #364b63; }
.app-main.analysis-theme #analysis-page .text-slate-400 { color: #596e86; }
.app-main.analysis-theme #analysis-page .text-indigo-400,
.app-main.analysis-theme #analysis-page .text-blue-400 { color: #2369b8; }
.app-main.analysis-theme #analysis-page .text-purple-400 { color: #704bb0; }
.app-main.analysis-theme #analysis-page .text-green-400 { color: #16885e; }
.app-main.analysis-theme #analysis-page .text-yellow-400 { color: #98600c; }
.app-main.analysis-theme #analysis-page .text-red-400 { color: #ba3434; }

.app-main.analysis-theme #analysis-page #ai-model-select {
    background: #fff;
    border-color: #bcd3ed;
    color: #17263a;
}
.app-main.analysis-theme #analysis-page #ai-model-select:focus-visible,
.app-main.analysis-theme #analysis-page button:focus-visible,
.app-main.analysis-theme #analysis-page .upload-zone:focus-within {
    outline: 2px solid #2875ca;
    outline-offset: 2px;
}

.app-main.analysis-theme #analysis-page #btn-ai-analyze,
.app-main.analysis-theme #analysis-page button.bg-gradient-to-r {
    background: #2469bc;
    color: #fff;
    box-shadow: 0 5px 16px rgba(36, 105, 188, .16);
}
.app-main.analysis-theme #analysis-page #btn-ai-analyze:hover:not(:disabled),
.app-main.analysis-theme #analysis-page button.bg-gradient-to-r:hover { background: #1858a4; }
.app-main.analysis-theme #analysis-page #btn-ai-analyze:disabled { background: #a5b9d0; box-shadow: none; }

.app-main.analysis-theme #analysis-page #analysis-progress .bg-slate-700 { background: #e8f0fa; }
.app-main.analysis-theme #analysis-page #progress-bar { background: linear-gradient(90deg, #2a7fd4, #174f9c); }

.app-main.analysis-theme #analysis-page #analysis-result-table { border-collapse: collapse; }
.app-main.analysis-theme #analysis-page #analysis-result-table thead { background: #f3f8ff; }
.app-main.analysis-theme #analysis-page #analysis-result-table th { color: #385471; font-weight: 700; }
.app-main.analysis-theme #analysis-page #analysis-result-table tr { border-color: #dbe7f4; }
.app-main.analysis-theme #analysis-page #analysis-result-table tbody tr:hover { background: #f5f9ff; }
.app-main.analysis-theme #analysis-page #analysis-result-table .bg-slate-700 { background: #eaf2fb; }
.app-main.analysis-theme #analysis-page #analysis-result-table .detail-btn {
    background: #e7f1ff;
    border: 1px solid #bcd5f3;
    color: #195da8;
}
.app-main.analysis-theme #analysis-page #analysis-result-table .detail-btn:hover { background: #d9eaff; }

.app-main.analysis-theme #analysis-page .bg-slate-800\/50 {
    background: #f6faff;
    border: 1px solid #d9e7f6;
}
.app-main.analysis-theme #analysis-page .bg-slate-700 { background: #eaf2fb; }
.app-main.analysis-theme #analysis-page .bg-indigo-500\/10 { background: #eef6ff; border-color: #bbd5f4; }
.app-main.analysis-theme #analysis-page .product-card,
.app-main.analysis-theme #analysis-page .chart-card,
.app-main.analysis-theme #analysis-page .stat-card,
.app-main.analysis-theme #analysis-page .discovery-card { background: #fff; border-color: #cfe0f4; box-shadow: 0 8px 28px rgba(37, 91, 156, .06); }
.app-main.analysis-theme #analysis-page .stat-item,
.app-main.analysis-theme #analysis-page .card-info { background: #f6faff; }
.app-main.analysis-theme #analysis-page .product-name,
.app-main.analysis-theme #analysis-page .stat-num,
.app-main.analysis-theme #analysis-page .card-info p { color: #17263a; }

.analysis-detail-modal > div { background: #fff; border: 1px solid #bfd5ed; box-shadow: 0 24px 70px rgba(17, 51, 90, .22); }
.analysis-detail-modal .border-slate-700 { border-color: #d9e7f6; }
.analysis-detail-modal .text-white { color: #14243d; }
.analysis-detail-modal .text-slate-300 { color: #364b63; }
.analysis-detail-modal .text-slate-400 { color: #59718c; }

@media (max-width: 1100px) {
    .app-main.analysis-theme #analysis-page > .grid-cols-2,
    .app-main.analysis-theme #analysis-page #analysis-result-panel .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .app-main.analysis-theme { padding: 20px; }
    .app-main.analysis-theme #analysis-page > .grid-cols-2,
    .app-main.analysis-theme #analysis-page #analysis-result-panel .grid-cols-4 { grid-template-columns: minmax(0, 1fr); }
    .app-main.analysis-theme #analysis-page > .flex { flex-wrap: wrap; }
}
