/* ============================================================
   MENU / PAGE
============================================================ */

.page-section {
    width: min(
        1100px,
        calc(100% - 60px)
    );

    margin: 0 auto;

    padding: 40px 0 20px;
}


/* ============================================================
   PAGE HEADER
============================================================ */

.page-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    margin-bottom: 28px;
}


.page-kicker {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #2563eb;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .06em;
}


.page-header h1 {
    margin: 7px 0 6px;

    color: #172033;

    font-size: 27px;

    font-weight: 800;

    letter-spacing: -.03em;
}


.page-header p {
    margin: 0;

    color: #64748b;

    font-size: 11px;

    line-height: 1.7;
}


.page-header-icon {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #2563eb;

    background: #eff6ff;

    border-radius: 13px;

    font-size: 18px;
}


/* ============================================================
   DASHBOARD STATS
============================================================ */

.dashboard-stats {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin-bottom: 20px;
}


.dashboard-stat-card {
    padding: 18px;

    display: flex;

    align-items: center;

    gap: 13px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 13px;

    box-shadow:
        0 5px 20px
        rgba(15, 23, 42, .035);
}


.stat-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-size: 13px;
}


.stat-icon.blue {
    color: #2563eb;
    background: #eff6ff;
}


.stat-icon.green {
    color: #16a34a;
    background: #f0fdf4;
}


.stat-icon.purple {
    color: #7c3aed;
    background: #f5f3ff;
}


.stat-icon.orange {
    color: #d97706;
    background: #fffbeb;
}


.stat-content {
    display: flex;

    flex-direction: column;

    gap: 3px;
}


.stat-content span {
    color: #94a3b8;

    font-size: 8px;

    font-weight: 600;
}


.stat-content strong {
    color: #1e293b;

    font-size: 15px;

    font-weight: 800;
}


/* ============================================================
   WELCOME
============================================================ */

.dashboard-welcome {
    padding: 22px;

    display: flex;

    align-items: center;

    gap: 16px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #ffffff
        );

    border: 1px solid #dbeafe;

    border-radius: 15px;
}


.welcome-icon {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #ffffff;

    background: #2563eb;

    border-radius: 11px;

    font-size: 16px;
}


.dashboard-welcome h2 {
    margin: 0 0 5px;

    color: #1e293b;

    font-size: 14px;
}


.dashboard-welcome p {
    margin: 0;

    color: #64748b;

    font-size: 10px;

    line-height: 1.6;
}


.dashboard-action {
    margin-left: auto;

    padding: 10px 14px;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    border: 0;

    border-radius: 8px;

    color: #ffffff;

    background: #2563eb;

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;
}


/* ============================================================
   ANALYSIS
============================================================ */

.analysis-query-card,
.card {
    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 15px;

    box-shadow:
        0 7px 25px
        rgba(15, 23, 42, .04);
}


.analysis-query-card {
    padding: 23px;
}


.analysis-card-header {
    display: flex;

    justify-content: space-between;

    margin-bottom: 17px;
}


.analysis-card-kicker {
    color: #2563eb;

    font-size: 8px;

    font-weight: 800;
}


.analysis-card-header h2 {
    margin: 6px 0 0;

    color: #172033;

    font-size: 16px;
}


.analysis-card-icon {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #2563eb;

    background: #eff6ff;

    border-radius: 9px;
}


.analysis-query-input {
    width: 100%;

    min-height: 150px;

    padding: 15px;

    box-sizing: border-box;

    resize: vertical;

    border: 1px solid #dbe3ec;

    border-radius: 11px;

    outline: none;

    color: #334155;

    background: #fbfcfe;

    font-family: inherit;

    font-size: 11px;

    line-height: 1.7;

    transition: .2s ease;
}


.analysis-query-input:focus {
    border-color: #93c5fd;

    background: #ffffff;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, .07);
}


.analysis-input-footer {
    margin-top: 7px;

    display: flex;

    justify-content: space-between;

    color: #94a3b8;

    font-size: 8px;
}


.analysis-actions {
    margin-top: 18px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;
}


.analysis-actions label {
    display: block;

    margin-bottom: 6px;

    color: #64748b;

    font-size: 9px;

    font-weight: 600;
}


.analysis-topk {
    height: 36px;

    padding: 0 30px 0 10px;

    border: 1px solid #dbe3ec;

    border-radius: 8px;

    background: #ffffff;

    color: #334155;

    font-size: 10px;
}


.analysis-buttons {
    display: flex;

    gap: 8px;
}


.btn {
    min-height: 36px;

    padding: 0 14px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    border-radius: 8px;

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;
}


.btn-primary {
    color: #ffffff;

    border: 0;

    background: #2563eb;
}


.btn-secondary {
    color: #475569;

    border: 1px solid #dbe3ec;

    background: #ffffff;
}


/* ============================================================
   DOCUMENT
============================================================ */

.document-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}


.document-card {
    padding: 22px;

    display: flex;

    flex-direction: column;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    box-shadow:
        0 7px 25px
        rgba(15, 23, 42, .035);
}


.document-card-icon {
    width: 43px;
    height: 43px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #dc2626;

    background: #fef2f2;

    border-radius: 10px;

    font-size: 16px;

    margin-bottom: 16px;
}


.document-type {
    color: #2563eb;

    font-size: 8px;

    font-weight: 800;
}


.document-card h2 {
    margin: 5px 0;

    color: #1e293b;

    font-size: 18px;
}


.document-card p {
    color: #64748b;

    font-size: 10px;

    line-height: 1.6;
}


.document-file {
    margin-top: 10px;

    padding: 9px;

    color: #64748b;

    background: #f8fafc;

    border-radius: 7px;

    font-size: 9px;
}


.document-open-btn {
    margin-top: 17px;

    padding: 10px;

    display: flex;

    justify-content: center;

    gap: 7px;

    border: 0;

    border-radius: 8px;

    color: #2563eb;

    background: #eff6ff;

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;
}


.document-information {
    margin-top: 18px;

    padding: 15px;

    display: flex;

    gap: 10px;

    color: #2563eb;

    background: #eff6ff;

    border: 1px solid #dbeafe;

    border-radius: 10px;
}


.document-information p {
    margin: 4px 0 0;

    color: #64748b;

    font-size: 9px;
}


/* ============================================================
   TECHNOLOGY
============================================================ */

.technology-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}


.technology-card {
    padding: 20px;

    display: flex;

    gap: 14px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 13px;
}


.technology-card-icon {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #2563eb;

    background: #eff6ff;

    border-radius: 9px;
}


.technology-card span {
    color: #94a3b8;

    font-size: 7px;

    font-weight: 800;
}


.technology-card h2 {
    margin: 4px 0;

    color: #1e293b;

    font-size: 13px;
}


.technology-card p {
    margin: 0;

    color: #64748b;

    font-size: 9px;

    line-height: 1.6;
}


/* ============================================================
   ABOUT
============================================================ */

.about-main-card {
    padding: 25px;

    display: flex;

    align-items: center;

    gap: 18px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #ffffff
        );

    border: 1px solid #dbeafe;

    border-radius: 15px;
}


.about-logo {
    width: 60px;
    height: 60px;

    flex: 0 0 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #ffffff;

    background: #2563eb;

    border-radius: 14px;

    font-size: 21px;
}


.about-label {
    color: #2563eb;

    font-size: 8px;

    font-weight: 800;
}


.about-content h2 {
    margin: 5px 0;

    color: #172033;

    font-size: 20px;
}


.about-content p {
    margin: 0;

    max-width: 750px;

    color: #64748b;

    font-size: 10px;

    line-height: 1.7;
}


.about-grid {
    margin-top: 18px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}


.about-info-card {
    padding: 19px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 12px;
}


.about-info-icon {
    width: 35px;
    height: 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #2563eb;

    background: #eff6ff;

    border-radius: 8px;
}


.about-info-card h3 {
    margin: 12px 0 5px;

    color: #1e293b;

    font-size: 12px;
}


.about-info-card p {
    margin: 0;

    color: #64748b;

    font-size: 9px;

    line-height: 1.7;
}


.about-version {
    margin-top: 18px;

    padding: 13px 15px;

    display: flex;

    justify-content: space-between;

    color: #94a3b8;

    background: #f8fafc;

    border-radius: 9px;

    font-size: 9px;
}


.about-version strong {
    color: #2563eb;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 900px) {

    .page-section {
        width: calc(100% - 30px);

        padding-top: 28px;
    }


    .dashboard-stats {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .document-grid,
    .technology-grid {
        grid-template-columns: 1fr;
    }


    .about-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .page-header {
        align-items: flex-start;
    }


    .page-header h1 {
        font-size: 22px;
    }


    .page-header-icon {
        display: none;
    }


    .dashboard-stats {
        grid-template-columns: 1fr;
    }


    .dashboard-welcome {
        align-items: flex-start;

        flex-direction: column;
    }


    .dashboard-action {
        margin-left: 0;
    }


    .analysis-actions {
        align-items: stretch;

        flex-direction: column;

        gap: 15px;
    }


    .analysis-buttons {
        justify-content: flex-end;
    }


    .about-main-card {
        align-items: flex-start;

        flex-direction: column;
    }

}

/* ============================================================
   PAGE LOADING
============================================================ */

.page-loading {
    min-height: 350px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 12px;

    color: #64748b;

    font-size: 10px;
}


.page-loading-spinner {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #2563eb;

    font-size: 20px;

    animation:
        pageSpinner 1s linear infinite;
}


@keyframes pageSpinner {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* ============================================================
   PAGE ERROR
============================================================ */

.page-error {

    min-height: 350px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    text-align: center;

    padding: 30px;
}


.page-error-icon {

    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    color: #dc2626;

    background: #fef2f2;

    border-radius: 12px;

    font-size: 20px;
}


.page-error h2 {

    margin: 0 0 6px;

    color: #1e293b;

    font-size: 16px;
}


.page-error p {

    max-width: 400px;

    margin: 0 0 18px;

    color: #64748b;

    font-size: 10px;

    line-height: 1.6;
}


/* ============================================================
   DATASET
============================================================ */

.dataset-section {
    padding-bottom: 40px;
}


/* ============================================================
   SUMMARY
============================================================ */

.dataset-summary {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;

    margin-bottom: 20px;

}


.dataset-summary-card {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 16px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

}


.dataset-summary-icon {

    width: 38px;

    height: 38px;

    flex: 0 0 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #2563eb;

    background: #eff6ff;

    border-radius: 9px;

    font-size: 13px;

}


.dataset-summary-content {

    display: flex;

    flex-direction: column;

    min-width: 0;

}


.dataset-summary-content span {

    color: #94a3b8;

    font-size: 9px;

    font-weight: 600;

}


.dataset-summary-content strong {

    margin-top: 3px;

    color: #1e293b;

    font-size: 18px;

    font-weight: 800;

}


/* ============================================================
   DATASET CARD
============================================================ */

.dataset-card {

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    overflow: hidden;

}


.dataset-card-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 20px;

    border-bottom: 1px solid #eef2f7;

}


.dataset-card-header h2 {

    margin: 0;

    color: #1e293b;

    font-size: 14px;

    font-weight: 800;

}


.dataset-card-header p {

    margin: 5px 0 0;

    color: #94a3b8;

    font-size: 9px;

}


/* ============================================================
   REFRESH BUTTON
============================================================ */

.dataset-refresh-btn {

    height: 34px;

    padding: 0 13px;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #475569;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 8px;

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;

}


.dataset-refresh-btn:hover {

    color: #2563eb;

    border-color: #bfdbfe;

    background: #eff6ff;

}


/* ============================================================
   FILTER
============================================================ */

.dataset-filter {

    display: grid;

    grid-template-columns:
        minmax(200px, 1.5fr)
        repeat(4, minmax(130px, 1fr));

    gap: 10px;

    padding: 15px 20px;

    background: #f8fafc;

    border-bottom: 1px solid #eef2f7;

}


.dataset-search {

    position: relative;

    height: 36px;

}


.dataset-search i {

    position: absolute;

    top: 50%;

    left: 12px;

    transform: translateY(-50%);

    color: #94a3b8;

    font-size: 10px;

}


.dataset-search input {

    width: 100%;

    height: 100%;

    padding: 0 12px 0 32px;

    color: #334155;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 8px;

    outline: none;

    font-family: inherit;

    font-size: 9px;

    box-sizing: border-box;

}


.dataset-search input:focus {

    border-color: #93c5fd;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.06);

}


.dataset-filter-item {

    display: flex;

    flex-direction: column;

    gap: 5px;

}


.dataset-filter-item label {

    color: #64748b;

    font-size: 8px;

    font-weight: 700;

}


.dataset-filter-item select {

    width: 100%;

    height: 36px;

    padding: 0 9px;

    color: #475569;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 8px;

    outline: none;

    font-family: inherit;

    font-size: 9px;

}


.dataset-filter-item select:focus {

    border-color: #93c5fd;

}


/* ============================================================
   TABLE
============================================================ */

.dataset-table-wrapper {

    width: 100%;

    overflow-x: auto;

}


.dataset-table {

    width: 100%;

    min-width: 1050px;

    border-collapse: collapse;

}


.dataset-table th {

    padding: 11px 12px;

    color: #64748b;

    background: #f8fafc;

    border-bottom: 1px solid #e5e7eb;

    font-size: 8px;

    font-weight: 800;

    text-align: left;

    white-space: nowrap;

}


.dataset-table td {

    padding: 12px;

    color: #475569;

    border-bottom: 1px solid #f1f5f9;

    font-size: 9px;

    vertical-align: top;

}


.dataset-table tbody tr:hover {

    background: #f8fafc;

}


.dataset-table .comment-column {

    min-width: 280px;

}


.dataset-table td.comment-cell {

    max-width: 380px;

    color: #334155;

    line-height: 1.55;

}


/* ============================================================
   BADGES
============================================================ */

.dataset-badge {

    display: inline-flex;

    align-items: center;

    padding: 4px 8px;

    border-radius: 999px;

    font-size: 8px;

    font-weight: 700;

    white-space: nowrap;

}


.dataset-badge-positive {

    color: #15803d;

    background: #f0fdf4;

}


.dataset-badge-neutral {

    color: #64748b;

    background: #f1f5f9;

}


.dataset-badge-negative {

    color: #dc2626;

    background: #fef2f2;

}


.dataset-badge-valid {

    color: #15803d;

    background: #f0fdf4;

}


.dataset-badge-pending {

    color: #b45309;

    background: #fffbeb;

}


.dataset-badge-review {

    color: #7c3aed;

    background: #f5f3ff;

}


/* ============================================================
   CONFIDENCE
============================================================ */

.dataset-confidence {

    min-width: 75px;

}


.dataset-confidence-value {

    display: block;

    margin-bottom: 5px;

    color: #334155;

    font-size: 8px;

    font-weight: 700;

}


.dataset-confidence-bar {

    width: 70px;

    height: 4px;

    overflow: hidden;

    background: #e2e8f0;

    border-radius: 999px;

}


.dataset-confidence-fill {

    height: 100%;

    background: #2563eb;

    border-radius: inherit;

}


/* ============================================================
   EMPTY STATE
============================================================ */

.dataset-empty {

    height: 230px;

    text-align: center !important;

}


.dataset-empty-icon {

    width: 44px;

    height: 44px;

    margin: 0 auto 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #94a3b8;

    background: #f1f5f9;

    border-radius: 10px;

    font-size: 16px;

}


.dataset-empty strong {

    display: block;

    color: #475569;

    font-size: 11px;

}


.dataset-empty span {

    display: block;

    margin-top: 4px;

    color: #94a3b8;

    font-size: 9px;

}


/* ============================================================
   TABLE FOOTER
============================================================ */

.dataset-table-footer {

    min-height: 54px;

    padding: 0 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

}


.dataset-result-info {

    color: #94a3b8;

    font-size: 9px;

}


.dataset-pagination {

    display: flex;

    align-items: center;

    gap: 8px;

}


.dataset-page-btn {

    width: 30px;

    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #64748b;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 7px;

    cursor: pointer;

    font-size: 9px;

}


.dataset-page-btn:hover:not(:disabled) {

    color: #2563eb;

    border-color: #bfdbfe;

    background: #eff6ff;

}


.dataset-page-btn:disabled {

    opacity: 0.4;

    cursor: not-allowed;

}


.dataset-page-info {

    color: #64748b;

    font-size: 9px;

    font-weight: 700;

}


/* ============================================================
   INFORMATION
============================================================ */

.dataset-information {

    margin-top: 15px;

    padding: 15px;

    display: flex;

    align-items: flex-start;

    gap: 11px;

    background: #eff6ff;

    border: 1px solid #dbeafe;

    border-radius: 11px;

}


.dataset-information-icon {

    color: #2563eb;

    font-size: 13px;

}


.dataset-information strong {

    color: #1e40af;

    font-size: 9px;

}


.dataset-information p {

    margin: 4px 0 0;

    color: #64748b;

    font-size: 9px;

    line-height: 1.6;

}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1100px) {

    .dataset-summary {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .dataset-filter {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .dataset-search {

        grid-column: 1 / -1;

    }

}


@media (max-width: 600px) {

    .dataset-summary {

        grid-template-columns: 1fr;

    }


    .dataset-filter {

        grid-template-columns: 1fr;

    }


    .dataset-search {

        grid-column: auto;

    }


    .dataset-card-header {

        align-items: flex-start;

        flex-direction: column;

    }


    .dataset-table-footer {

        align-items: flex-start;

        flex-direction: column;

        padding: 14px 15px;

    }

}

/* ============================================================
   EVALUATION
============================================================ */

.evaluation-section {
    padding-bottom: 40px;
}


/* ============================================================
   OVERVIEW
============================================================ */

.evaluation-overview {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;

    margin-bottom: 20px;

}


.evaluation-overview-card {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 16px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

}


.evaluation-overview-icon {

    width: 38px;

    height: 38px;

    flex: 0 0 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #2563eb;

    background: #eff6ff;

    border-radius: 9px;

    font-size: 13px;

}


.evaluation-overview-content {

    display: flex;

    flex-direction: column;

}


.evaluation-overview-content span {

    color: #94a3b8;

    font-size: 9px;

    font-weight: 600;

}


.evaluation-overview-content strong {

    margin-top: 3px;

    color: #1e293b;

    font-size: 15px;

    font-weight: 800;

}


/* ============================================================
   EVALUATION GRID
============================================================ */

.evaluation-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;

}


/* ============================================================
   EVALUATION CARD
============================================================ */

.evaluation-card {

    display: flex;

    flex-direction: column;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    overflow: hidden;

    transition:

        transform 0.2s ease,

        box-shadow 0.2s ease;

}


.evaluation-card:hover {

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px
        rgba(15, 23, 42, 0.06);

}


/* ============================================================
   CARD HEADER
============================================================ */

.evaluation-card-header {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 18px;

    border-bottom: 1px solid #eef2f7;

}


.evaluation-card-icon {

    width: 40px;

    height: 40px;

    flex: 0 0 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    font-size: 14px;

}


.absa-icon {

    color: #2563eb;

    background: #eff6ff;

}


.retrieval-icon {

    color: #7c3aed;

    background: #f5f3ff;

}


.reasoning-icon {

    color: #d97706;

    background: #fffbeb;

}


.evaluation-card-header h2 {

    margin: 0;

    color: #1e293b;

    font-size: 13px;

    font-weight: 800;

}


.evaluation-card-header span {

    display: block;

    margin-top: 3px;

    color: #94a3b8;

    font-size: 8px;

}


/* ============================================================
   CARD BODY
============================================================ */

.evaluation-card-body {

    flex: 1;

    padding: 18px;

}


.evaluation-card-body > p {

    margin: 0 0 17px;

    color: #64748b;

    font-size: 9px;

    line-height: 1.65;

}


/* ============================================================
   METRICS
============================================================ */

.evaluation-metrics {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 8px;

}


.evaluation-metric {

    padding: 10px;

    background: #f8fafc;

    border: 1px solid #eef2f7;

    border-radius: 8px;

}


.evaluation-metric span {

    display: block;

    color: #94a3b8;

    font-size: 8px;

    font-weight: 600;

}


.evaluation-metric strong {

    display: block;

    margin-top: 4px;

    color: #1e293b;

    font-size: 14px;

    font-weight: 800;

}


/* ============================================================
   CARD FOOTER
============================================================ */

.evaluation-card-footer {

    padding: 14px 18px;

    border-top: 1px solid #eef2f7;

}


.evaluation-action-btn {

    width: 100%;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    color: #2563eb;

    background: #eff6ff;

    border: 1px solid #dbeafe;

    border-radius: 8px;

    font-family: inherit;

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;

}


.evaluation-action-btn:hover {

    color: #ffffff;

    background: #2563eb;

    border-color: #2563eb;

}


/* ============================================================
   INFORMATION
============================================================ */

.evaluation-information {

    margin-top: 16px;

    padding: 15px;

    display: flex;

    align-items: flex-start;

    gap: 11px;

    background: #eff6ff;

    border: 1px solid #dbeafe;

    border-radius: 11px;

}


.evaluation-information-icon {

    color: #2563eb;

    font-size: 13px;

}


.evaluation-information strong {

    color: #1e40af;

    font-size: 9px;

}


.evaluation-information p {

    margin: 4px 0 0;

    color: #64748b;

    font-size: 9px;

    line-height: 1.6;

}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1100px) {

    .evaluation-overview {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .evaluation-grid {

        grid-template-columns:
            1fr;

    }

}


@media (max-width: 600px) {

    .evaluation-overview {

        grid-template-columns:
            1fr;

    }

}

/* ============================================================
   DASHBOARD — RESEARCH STATISTICS
   ============================================================ */

.dashboard-section {
    width: 100%;
}


/* ============================================================
   DASHBOARD STATISTICS
   ============================================================ */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-stat-card {
    min-height: 104px;
    padding: 18px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    gap: 14px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;

    box-shadow:
        0 4px 16px rgba(15, 23, 42, 0.035);
}

.stat-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    font-size: 16px;
}

.stat-icon.blue {
    color: #2563eb;
    background: #eff6ff;
}

.stat-icon.green {
    color: #16a34a;
    background: #f0fdf4;
}

.stat-icon.purple {
    color: #7c3aed;
    background: #f5f3ff;
}

.stat-icon.orange {
    color: #d97706;
    background: #fffbeb;
}

.stat-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.stat-content span {
    color: #7c8aa0;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.stat-content strong {
    margin-top: 4px;

    color: #172033;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.stat-content small {
    margin-top: 4px;

    color: #94a3b8;
    font-size: 9px;
    line-height: 1.4;
}


/* ============================================================
   DASHBOARD INFORMATION
   ============================================================ */

.dashboard-info-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    margin-bottom: 18px;
    padding: 16px 18px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
}

.dashboard-info-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #2563eb;
    background: #eff6ff;

    border-radius: 9px;

    font-size: 13px;
}

.dashboard-info-content {
    min-width: 0;
}

.dashboard-info-content strong {
    display: block;

    margin-bottom: 5px;

    color: #172033;
    font-size: 12px;
    font-weight: 800;
}

.dashboard-info-content p {
    margin: 0;

    color: #64748b;
    font-size: 11px;
    line-height: 1.7;
}

.dashboard-info-content p strong {
    display: inline;

    margin: 0;

    color: #334155;
    font-size: inherit;
}


/* ============================================================
   DASHBOARD GRID
   ============================================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;

    margin-bottom: 18px;
}


/* ============================================================
   CHART CARD
   ============================================================ */

.dashboard-chart-card {
    padding: 18px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;

    box-shadow:
        0 4px 16px rgba(15, 23, 42, 0.035);

    box-sizing: border-box;
}

.dashboard-wide-card {
    margin-bottom: 18px;
}

.dashboard-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 14px;
}

.dashboard-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #2563eb;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dashboard-card-header h2 {
    margin: 6px 0 4px;

    color: #172033;

    font-size: 15px;
    font-weight: 800;

    line-height: 1.35;
}

.dashboard-card-header p {
    margin: 0;

    color: #7c8aa0;

    font-size: 10px;
    line-height: 1.5;
}


/* ============================================================
   CHART CONTAINER
   ============================================================ */

.dashboard-chart-container {
    width: 100%;
    min-height: 230px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}

.dashboard-chart-large {
    min-height: 280px;
}

.dashboard-chart-placeholder {
    width: 100%;
    min-height: 180px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    color: #94a3b8;

    background: #f8fafc;
    border: 1px dashed #dbe3ee;
    border-radius: 11px;

    box-sizing: border-box;
}

.dashboard-chart-placeholder i {
    color: #94a3b8;
    font-size: 22px;
}

.dashboard-chart-placeholder span {
    max-width: 300px;

    text-align: center;

    color: #94a3b8;

    font-size: 10px;
    line-height: 1.5;
}


/* ============================================================
   RESEARCH PIPELINE
   ============================================================ */

.dashboard-pipeline-card {
    margin-bottom: 18px;
    padding: 18px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    box-shadow:
        0 4px 16px rgba(15, 23, 42, 0.035);
}

.dashboard-pipeline {
    display: flex;
    align-items: stretch;
    gap: 8px;

    overflow-x: auto;

    padding-bottom: 4px;
}

.pipeline-step {
    flex: 1;
    min-width: 145px;

    padding: 13px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 11px;

    box-sizing: border-box;
}

.pipeline-number {
    margin-bottom: 9px;

    color: #94a3b8;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.pipeline-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 9px;

    color: #2563eb;
    background: #eff6ff;

    border-radius: 9px;

    font-size: 13px;
}

.pipeline-content {
    display: flex;
    flex-direction: column;
}

.pipeline-content strong {
    color: #172033;

    font-size: 10px;
    font-weight: 800;

    line-height: 1.4;
}

.pipeline-content span {
    margin-top: 3px;

    color: #7c8aa0;

    font-size: 8px;
    line-height: 1.4;
}

.pipeline-arrow {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #cbd5e1;

    font-size: 10px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {

    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-info-card {
        padding: 14px;
    }

    .dashboard-chart-card,
    .dashboard-pipeline-card {
        padding: 14px;
    }

    .dashboard-pipeline {
        align-items: stretch;
    }

    .pipeline-step {
        min-width: 135px;
    }

}


@media (max-width: 520px) {

    .dashboard-stat-card {
        min-height: 90px;
        padding: 14px;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .stat-content strong {
        font-size: 18px;
    }

}

/* ============================================================
   STAGE 5 — ANALISIS KOMENTAR
   ============================================================ */


/* ============================================================
   ANALYSIS SECTION
   ============================================================ */

.analysis-section {
    width: 100%;
}


/* ============================================================
   INPUT CARD
   ============================================================ */

.analysis-input-card {
    width: 100%;
    padding: 20px;
    margin-bottom: 18px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;

    box-sizing: border-box;

    box-shadow:
        0 5px 20px rgba(15, 23, 42, 0.035);
}


.analysis-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 14px;
}


.analysis-card-kicker {
    display: block;

    color: #2563eb;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.04em;
}


.analysis-card-header h2 {
    margin: 6px 0 0;

    color: #172033;

    font-size: 16px;
    font-weight: 800;

    line-height: 1.35;
}


.analysis-card-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #2563eb;
    background: #eff6ff;

    border-radius: 10px;

    font-size: 14px;
}


/* ============================================================
   QUERY INPUT
   ============================================================ */

.query-wrapper {
    width: 100%;
}


.query-input {
    width: 100%;
    min-height: 145px;

    padding: 15px;

    box-sizing: border-box;

    resize: vertical;

    color: #172033;
    background: #fcfdff;

    border: 1px solid #dbe3ee;
    border-radius: 10px;

    outline: none;

    font-family: inherit;
    font-size: 11px;
    line-height: 1.7;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.query-input::placeholder {
    color: #94a3b8;
}


.query-input:focus {
    background: #ffffff;

    border-color: #93c5fd;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.07);
}


.query-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 7px;

    color: #94a3b8;

    font-size: 8px;
}


.query-hint {
    text-align: right;
}


/* ============================================================
   INPUT FOOTER
   ============================================================ */

.analysis-input-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 15px;

    margin-top: 14px;
}


.top-k-control {
    display: flex;
    flex-direction: column;

    gap: 6px;
}


.input-label {
    color: #64748b;

    font-size: 9px;
    font-weight: 700;
}


.top-k-select {
    min-width: 105px;
    height: 35px;

    padding: 0 10px;

    color: #334155;
    background: #ffffff;

    border: 1px solid #dbe3ee;
    border-radius: 8px;

    outline: none;

    font-family: inherit;
    font-size: 9px;

    cursor: pointer;
}


.top-k-select:focus {
    border-color: #93c5fd;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.07);
}


.analysis-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}


.analysis-clear-button,
.analysis-button {
    height: 35px;

    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border-radius: 8px;

    font-family: inherit;
    font-size: 9px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        border-color .2s ease;
}


.analysis-clear-button {
    color: #475569;

    background: #ffffff;

    border: 1px solid #dbe3ee;
}


.analysis-clear-button:hover {
    background: #f8fafc;

    border-color: #cbd5e1;
}


.analysis-button {
    color: #ffffff;

    background: #2563eb;

    border: 1px solid #2563eb;

    box-shadow:
        0 7px 16px rgba(37, 99, 235, 0.18);
}


.analysis-button:hover {
    background: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 9px 20px rgba(37, 99, 235, 0.22);
}


.analysis-button:disabled,
.analysis-clear-button:disabled {
    opacity: .6;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* ============================================================
   LOADING
   ============================================================ */

.analysis-loading-card {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 16px 18px;

    margin-bottom: 18px;

    background: #eff6ff;

    border: 1px solid #bfdbfe;
    border-radius: 12px;
}


.analysis-loading-icon {
    width: 35px;
    height: 35px;

    min-width: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #2563eb;
    background: #ffffff;

    border-radius: 9px;
}


.analysis-loading-card strong,
.analysis-loading-card span {
    display: block;
}


.analysis-loading-card strong {
    color: #1e3a8a;

    font-size: 11px;
}


.analysis-loading-card span {
    margin-top: 3px;

    color: #64748b;

    font-size: 9px;
}


/* ============================================================
   ERROR
   ============================================================ */

.analysis-error-card {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 16px 18px;

    margin-bottom: 18px;

    background: #fef2f2;

    border: 1px solid #fecaca;
    border-radius: 12px;
}


.analysis-error-icon {
    width: 35px;
    height: 35px;

    min-width: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #dc2626;
    background: #ffffff;

    border-radius: 9px;
}


.analysis-error-card strong,
.analysis-error-card span {
    display: block;
}


.analysis-error-card strong {
    color: #991b1b;

    font-size: 11px;
}


.analysis-error-card span {
    margin-top: 3px;

    color: #7f1d1d;

    font-size: 9px;
    line-height: 1.5;
}


/* ============================================================
   RESULT SECTION
   ============================================================ */

.analysis-result-section {
    width: 100%;
}


.result-card {
    width: 100%;

    padding: 18px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 15px;

    box-sizing: border-box;

    box-shadow:
        0 5px 20px rgba(15, 23, 42, 0.035);
}


/* ============================================================
   RESULT ANSWER
   ============================================================ */

.result-answer-card {
    padding: 16px;

    margin-bottom: 14px;

    background: #f8fafc;

    border: 1px solid #dbe3ee;
    border-radius: 11px;
}


.result-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 11px;
}


.result-kicker {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: #2563eb;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.03em;
}


.result-section-header h2 {
    margin: 5px 0 0;

    color: #172033;

    font-size: 14px;
    font-weight: 800;
}


.answer-content {
    color: #334155;

    font-size: 11px;
    line-height: 1.8;

    white-space: pre-wrap;
}


/* ============================================================
   RESULT SUMMARY
   ============================================================ */

.result-summary-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 14px;
}


.result-summary-card {
    min-height: 72px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 11px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    box-sizing: border-box;
}


.result-summary-icon {
    width: 34px;
    height: 34px;

    min-width: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-size: 12px;
}


.result-summary-icon.blue {
    color: #2563eb;
    background: #eff6ff;
}


.result-summary-icon.green {
    color: #16a34a;
    background: #f0fdf4;
}


.result-summary-icon.purple {
    color: #7c3aed;
    background: #f5f3ff;
}


.result-summary-icon.orange {
    color: #d97706;
    background: #fffbeb;
}


.result-summary-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.result-summary-content span {
    color: #94a3b8;

    font-size: 8px;
    font-weight: 600;
}


.result-summary-content strong {
    margin-top: 3px;

    color: #172033;

    font-size: 12px;
    font-weight: 800;

    line-height: 1.3;
}


/* ============================================================
   CONFIDENCE
   ============================================================ */

.confidence-card {
    padding: 14px 15px;

    margin-bottom: 14px;

    background: #faf8ff;

    border: 1px solid #ddd6fe;
    border-radius: 11px;
}


.confidence-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 10px;
}


.confidence-header span {
    display: block;

    color: #7c3aed;

    font-size: 9px;
    font-weight: 800;
}


.confidence-header small {
    display: block;

    margin-top: 3px;

    color: #8b82a5;

    font-size: 8px;
}


.confidence-header strong {
    color: #7c3aed;

    font-size: 16px;
    font-weight: 800;
}


.confidence-track {
    width: 100%;
    height: 6px;

    overflow: hidden;

    background: #ede9fe;

    border-radius: 999px;
}


.confidence-progress {
    height: 100%;

    width: 0%;

    background: #8b5cf6;

    border-radius: inherit;

    transition: width .5s ease;
}


/* ============================================================
   KEYWORDS
   ============================================================ */

.keyword-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 20px;
}


.keyword-card {
    min-height: 82px;

    padding: 13px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    box-sizing: border-box;
}


.keyword-card-header span {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: #64748b;

    font-size: 8px;
    font-weight: 800;
}


.keyword-card-header i {
    color: #2563eb;
}


.keyword-content {
    margin-top: 10px;

    color: #334155;

    font-size: 11px;
    line-height: 1.5;

    word-break: break-word;
}


/* ============================================================
   RETRIEVAL HEADER
   ============================================================ */

.retrieval-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    padding-top: 17px;
    margin-top: 4px;

    border-top: 1px solid #e2e8f0;
}


.retrieval-header h2 {
    margin: 5px 0 4px;

    color: #172033;

    font-size: 14px;
    font-weight: 800;
}


.retrieval-header p {
    margin: 0;

    color: #7c8aa0;

    font-size: 9px;
    line-height: 1.5;
}


.retrieval-topk {
    min-width: 110px;

    padding: 9px 11px;

    text-align: right;

    background: #eff6ff;

    border: 1px solid #dbeafe;
    border-radius: 9px;
}


.retrieval-topk span {
    display: block;

    color: #64748b;

    font-size: 8px;
}


.retrieval-topk strong {
    display: block;

    margin-top: 3px;

    color: #2563eb;

    font-size: 11px;
    font-weight: 800;
}


/* ============================================================
   EVIDENCE
   ============================================================ */

.evidence-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 15px;
    margin-bottom: 9px;
}


.evidence-header > div:first-child span {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: #172033;

    font-size: 10px;
    font-weight: 800;
}


.evidence-header > div:first-child i {
    color: #2563eb;
}


.evidence-count {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #2563eb;
    background: #eff6ff;

    border-radius: 50%;

    font-size: 8px;
    font-weight: 800;
}


.evidence-list {
    display: flex;
    flex-direction: column;

    gap: 9px;
}


/*
 * Card evidence yang akan dibuat oleh app.js
 */

.evidence-item {
    padding: 13px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.evidence-item:hover {
    border-color: #bfdbfe;

    box-shadow:
        0 4px 14px rgba(37, 99, 235, 0.05);
}


.evidence-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 8px;
}


.evidence-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 26px;
    height: 26px;

    color: #2563eb;
    background: #eff6ff;

    border-radius: 7px;

    font-size: 8px;
    font-weight: 800;
}


.evidence-document {
    flex: 1;

    color: #172033;

    font-size: 10px;
    font-weight: 800;
}


.evidence-similarity {
    padding: 4px 7px;

    color: #2563eb;
    background: #eff6ff;

    border-radius: 6px;

    font-size: 8px;
    font-weight: 800;
}


.evidence-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 6px 12px;

    margin-bottom: 9px;
}


.evidence-meta-item {
    color: #7c8aa0;

    font-size: 8px;
}


.evidence-meta-item strong {
    color: #475569;

    font-weight: 700;
}


.evidence-text {
    padding: 10px;

    color: #475569;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 7px;

    font-size: 9px;
    line-height: 1.7;
}


/* ============================================================
   REASONING
   ============================================================ */

.reasoning-section {
    margin-top: 20px;
}


.reasoning-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-top: 12px;
}


.reasoning-card {
    padding: 14px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 10px;
}


.reasoning-card-header {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 10px;
}


.reasoning-icon {
    width: 31px;
    height: 31px;

    min-width: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-size: 11px;
}


.reasoning-icon.blue {
    color: #2563eb;
    background: #eff6ff;
}


.reasoning-icon.orange {
    color: #d97706;
    background: #fffbeb;
}


.reasoning-icon.green {
    color: #16a34a;
    background: #f0fdf4;
}


.reasoning-icon.purple {
    color: #7c3aed;
    background: #f5f3ff;
}


.reasoning-card-header span {
    display: block;

    color: #172033;

    font-size: 9px;
    font-weight: 800;
}


.reasoning-card-header small {
    display: block;

    margin-top: 2px;

    color: #94a3b8;

    font-size: 7px;
}


.reasoning-content {
    min-height: 45px;

    color: #475569;

    font-size: 9px;
    line-height: 1.7;
}


/* ============================================================
   PROCESSING TIME
   ============================================================ */

.processing-time-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 9px;

    margin-top: 18px;
    padding-top: 14px;

    border-top: 1px solid #e2e8f0;
}


.processing-time-item {
    padding: 10px;

    background: #f8fafc;

    border-radius: 8px;
}


.processing-time-item span {
    display: block;

    color: #94a3b8;

    font-size: 8px;
}


.processing-time-item strong {
    display: block;

    margin-top: 4px;

    color: #172033;

    font-size: 10px;
    font-weight: 800;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {

    .result-summary-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 800px) {

    .keyword-grid {
        grid-template-columns:
            1fr;
    }


    .reasoning-grid {
        grid-template-columns:
            1fr;
    }


    .processing-time-grid {
        grid-template-columns:
            1fr;
    }


    .retrieval-header {
        flex-direction: column;
    }


    .retrieval-topk {
        width: 100%;

        text-align: left;

        box-sizing: border-box;
    }

}


@media (max-width: 600px) {

    .analysis-input-card,
    .result-card {
        padding: 13px;
    }


    .analysis-input-footer {
        flex-direction: column;
        align-items: stretch;
    }


    .top-k-select {
        width: 100%;
    }


    .analysis-actions {
        width: 100%;
    }


    .analysis-clear-button,
    .analysis-button {
        flex: 1;
    }


    .result-summary-grid {
        grid-template-columns:
            1fr;
    }


    .query-meta {
        flex-direction: column;
        align-items: flex-start;

        gap: 3px;
    }


    .query-hint {
        text-align: left;
    }

}

/* ============================================================
   STAGE 6 — EVIDENCE TEXT
   ============================================================ */

.evidence-text-label {
    display: flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 7px;

    color: #2563eb;

    font-size: 8px;
    font-weight: 800;
}


.evidence-text-label i {
    font-size: 8px;
}


.evidence-text p {
    margin: 0;

    color: #475569;

    font-size: 9px;
    line-height: 1.7;
}


.evidence-empty-text {
    color: #94a3b8 !important;

    font-style: italic;
}


.evidence-actions {
    display: flex;

    justify-content: flex-end;

    margin-top: 10px;
}


.evidence-actions .source-open {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 6px 9px;

    color: #2563eb;

    background: #eff6ff;

    border: 1px solid #dbeafe;
    border-radius: 7px;

    font-family: inherit;

    font-size: 8px;
    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;
}


.evidence-actions .source-open:hover {
    background: #dbeafe;

    border-color: #bfdbfe;
}