/* Scoped Financial Report Analyzer page styles. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Inter:wght@400;600&display=swap');

    .financial-analysis-hero,
    .financial-filter-card,
    .financial-filter-card .card-header,
    .metric-card,
    .chart-card,
    .score-card,
    .insight-card,
    .financial-table-card {
        font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    }

    .chart-debug-card {
        font-family: 'Plus Jakarta Sans', 'Inter', 'JetBrains Mono', monospace;
    }

    .chart-debug-console {
        font-family: 'JetBrains Mono', monospace;
        max-height: 220px;
        overflow-y: auto;
        background: rgba(13, 110, 253, 0.04);
        border-radius: 0.75rem;
        padding: 1rem;
        border: 1px dashed rgba(13, 110, 253, 0.25);
        color: #0d6efd;
    }

    .chart-debug-entry {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(13, 110, 253, 0.12);
        word-break: break-word;
    }

    .chart-debug-entry:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }

    .chart-debug-entry.chart-debug-error {
        color: #dc3545;
    }

    .chart-debug-entry.chart-debug-warn {
        color: #fd7e14;
    }

    .chart-debug-entry.chart-debug-info {
        color: #0d6efd;
    }

    .chart-debug-entry.chart-debug-debug {
        color: #198754;
    }

    .chart-debug-entry .chart-debug-json {
        margin: 0.5rem 0 0;
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
        background: rgba(33, 37, 41, 0.05);
        color: #212529;
        white-space: pre-wrap;
    }

    .export-pdf-button {
        border-radius: 999px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        box-shadow: 0 0.75rem 1.5rem rgba(13, 110, 253, 0.15);
    }

    .export-pdf-button .spinner-border {
        width: 1rem;
        height: 1rem;
    }

    @media print {
        #financialReportContent .card {
            break-inside: avoid;
            page-break-inside: avoid;
        }
    }

    .financial-analysis-hero {
        background: radial-gradient(circle at top right, rgba(13, 110, 253, 0.12), transparent 60%),
                    radial-gradient(circle at bottom left, rgba(111, 66, 193, 0.12), transparent 55%),
                    linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(32, 201, 151, 0.05) 100%);
        position: relative;
        overflow: hidden;
    }

    .financial-analysis-hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: url('https://autoportofolio.canonnimu.net/img/pattern-grid.svg') repeat;
        opacity: 0.12;
        pointer-events: none;
    }

    .pdf-exporting .financial-analysis-hero {
        background: #ffffff !important;
        box-shadow: none !important;
    }

    .pdf-exporting .financial-analysis-hero::after {
        content: none !important;
        background: none !important;
        background-image: none !important;
        opacity: 0 !important;
        display: none !important;
    }

    .pdf-exporting * {
        animation: none !important;
        transition: none !important;
        box-shadow: none !important;
    }

    .financial-analysis-hero .hero-card {
        border-radius: 1.5rem;
        backdrop-filter: blur(12px);
        background: rgba(255, 255, 255, 0.85);
        box-shadow: 0 1.5rem 3rem rgba(13, 110, 253, 0.18);
    }

    .financial-analysis-hero .hero-card h1 {
        font-weight: 700;
        letter-spacing: -0.02em;
    }

    .financial-analysis-hero .hero-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        border-radius: 999px;
        background: rgba(13, 110, 253, 0.1);
        color: #0d6efd;
        padding: 0.35rem 1rem;
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .financial-filter-card {
        border: none;
        border-radius: 1.25rem;
        box-shadow: 0 1.25rem 2.5rem rgba(13, 110, 253, 0.08);
    }

    .financial-filter-card .card-header {
        background: linear-gradient(135deg, rgba(13, 110, 253, 0.95), rgba(32, 201, 151, 0.85));
        color: #fff;
        border-top-left-radius: 1.25rem;
        border-top-right-radius: 1.25rem;
    }

    .period-toggle .btn {
        border-radius: 999px !important;
        font-weight: 600;
    }

    .metric-card {
        border: none;
        border-radius: 1.15rem;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 252, 0.95));
        box-shadow: 0 0.85rem 1.75rem rgba(13, 110, 253, 0.08);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        height: 100%;
    }

    .metric-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 1.25rem 2rem rgba(13, 110, 253, 0.12);
    }

    .metric-label {
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.08em;
        color: rgba(33, 37, 41, 0.65);
    }

    .metric-value {
        font-size: 2.35rem;
        font-weight: 700;
        color: #0d6efd;
    }

    .metric-trend {
        font-size: 0.85rem;
        font-weight: 600;
    }

    .chart-card {
        border: none;
        border-radius: 1.25rem;
        box-shadow: 0 1.25rem 2.5rem rgba(13, 110, 253, 0.08);
        background: #fff;
        height: 100%;
    }

    .chart-card .card-header {
        border-bottom: none;
        background: transparent;
        padding-bottom: 0;
    }

    .chart-card .card-header .subtitle {
        color: rgba(33, 37, 41, 0.65);
        font-size: 0.9rem;
    }

    .chart-container {
        width: 100%;
        min-height: 340px;
        display: block;
    }

    .score-card {
        border-radius: 1.15rem;
        padding: 1.5rem;
        background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(32, 201, 151, 0.08));
        height: 100%;
    }

    .score-card .score-label {
        font-weight: 600;
        color: rgba(33, 37, 41, 0.75);
    }

    .score-bar {
        height: 8px;
        background: rgba(255, 255, 255, 0.45);
        border-radius: 999px;
        overflow: hidden;
        margin-top: 0.85rem;
    }

    .score-bar span {
        display: block;
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(13, 110, 253, 0.9), rgba(32, 201, 151, 0.9));
    }

    .insight-card {
        border: none;
        border-radius: 1.25rem;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 1.1rem 2rem rgba(13, 110, 253, 0.1);
        height: 100%;
    }

    .insight-card .card-header {
        background: transparent;
        border-bottom: none;
        padding-bottom: 0;
    }

    .insight-card ul li {
        margin-bottom: 0.65rem;
        padding-left: 0.35rem;
    }

    .insight-card ul li::marker {
        color: #0d6efd;
    }

    .border-dashed {
        border-style: dashed !important;
    }

    .financial-table-card {
        border: none;
        border-radius: 1.25rem;
        box-shadow: 0 1.1rem 2rem rgba(13, 110, 253, 0.08);
    }

    .financial-table-card .card-header {
        border-bottom: none;
        background: transparent;
    }

    .financial-table-card .table thead th {
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.06em;
        color: rgba(33, 37, 41, 0.65);
    }

    .badge-quality {
        background: rgba(32, 201, 151, 0.12);
        color: #0f5132;
    }

    .hero-gradient-icon {
        width: 56px;
        height: 56px;
        border-radius: 18px;
        background: linear-gradient(135deg, rgba(13, 110, 253, 0.95), rgba(111, 66, 193, 0.8));
        display: grid;
        place-items: center;
        color: #fff;
        font-size: 1.75rem;
        box-shadow: 0 1rem 2rem rgba(13, 110, 253, 0.35);
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        border-radius: 999px !important;
    }

    .infographic-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.35rem 0.85rem;
        border-radius: 999px;
        background: rgba(13, 110, 253, 0.1);
        color: #0d6efd;
        font-weight: 600;
        font-size: 0.85rem;
    }

    .latest-period-label {
        font-size: 0.9rem;
        color: rgba(33, 37, 41, 0.65);
    }

    .valuation-card,
    .meta-ribbon-card,
    .ratio-card,
    .zscore-card {
        border: none;
        border-radius: 1.25rem;
        box-shadow: 0 1.1rem 2rem rgba(13, 110, 253, 0.08);
        background: #fff;
    }

    .valuation-card .card-header,
    .meta-ribbon-card .card-header,
    .ratio-card .card-header,
    .zscore-card .card-header {
        background: transparent;
        border-bottom: none;
        padding: 1.1rem 1.5rem 0.75rem;
    }

    .valuation-card .card-body,
    .meta-ribbon-card .card-body {
        padding: 1.15rem 1.35rem 1.35rem;
    }

    .valuation-highlight-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.9rem;
    }

    .valuation-highlight {
        padding: 0.85rem 1rem;
        border-radius: 0.9rem;
        background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(32, 201, 151, 0.07));
        border: 1px solid rgba(13, 110, 253, 0.12);
    }

    .valuation-highlight-label {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(33, 37, 41, 0.6);
        font-weight: 600;
        margin-bottom: 0.35rem;
    }

    .valuation-highlight-value {
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.15;
        color: #0d6efd;
    }

    .valuation-highlight-value.text-success {
        color: #198754 !important;
    }

    .valuation-highlight-value.text-danger {
        color: #dc3545 !important;
    }

    .valuation-highlight-helper {
        margin-top: 0.25rem;
        font-size: 0.78rem;
        color: rgba(33, 37, 41, 0.6);
    }

    .meta-ribbon-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 0.65rem;
        grid-auto-flow: dense;
    }

    .meta-badge {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.55rem 0.85rem;
        border-radius: 0.9rem;
        background: rgba(13, 110, 253, 0.05);
        border: 1px solid rgba(13, 110, 253, 0.12);
    }

    .meta-badge-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        display: grid;
        place-items: center;
        background: #0d6efd;
        color: #fff;
        font-size: 0.95rem;
    }

    .meta-badge-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: rgba(33, 37, 41, 0.6);
        font-weight: 600;
    }

    .meta-badge-value {
        font-weight: 600;
        color: #212529;
        font-size: 0.9rem;
    }

    @media (min-width: 992px) {
        .meta-ribbon-card .card-body {
            padding: 1.05rem 1.25rem 1.25rem;
        }

        .meta-ribbon-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    .ratio-category-toggle .btn,
    .valuation-toggle .btn {
        border-radius: 999px !important;
        font-weight: 600;
    }

    .ratio-highlight-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .ratio-debug-panel {
        margin-top: 1.5rem;
        font-size: 0.85rem;
    }

    .ratio-debug-panel ul {
        margin-bottom: 0;
    }

    .ratio-item {
        border: 1px solid rgba(13, 110, 253, 0.12);
        border-radius: 1rem;
        padding: 1rem;
        background: rgba(248, 249, 252, 0.8);
    }

    .ratio-item-label {
        font-size: 0.85rem;
        font-weight: 600;
        color: rgba(33, 37, 41, 0.7);
    }

    .ratio-item-value {
        font-size: 1.5rem;
        font-weight: 700;
        margin-top: 0.35rem;
    }

    .ratio-item-trend {
        font-size: 0.8rem;
        margin-top: 0.35rem;
        color: rgba(33, 37, 41, 0.6);
    }

    .ratio-item-helper {
        margin-top: 0.35rem;
        font-size: 0.8rem;
        color: rgba(33, 37, 41, 0.65);
    }

    .ratio-item--summary {
        grid-column: 1 / -1;
        background: rgba(13, 110, 253, 0.05);
        border-style: dashed;
    }

    .ratio-chart-wrapper {
        position: relative;
        min-height: 280px;
    }

    .ratio-chart-wrapper .chart-container {
        min-height: 280px;
    }

    .ratio-chart-wrapper .empty-state,
    .zscore-chart-wrapper .empty-state {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2rem;
    }

    .zscore-chart-wrapper {
        position: relative;
        min-height: 260px;
    }

    .chart-visual {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .chart-visual-canvas {
        position: relative;
        min-height: 260px;
    }

    .chart-visual-canvas .chart-container {
        min-height: inherit;
    }

    .chart-visual-empty {
        font-size: 0.85rem;
        color: rgba(33, 37, 41, 0.65);
    }

    .zscore-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .zscore-summary {
        flex: 1 1 auto;
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(13, 110, 253, 0.1));
        border: 1px solid rgba(124, 58, 237, 0.2);
        border-radius: 1.2rem;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        box-shadow: 0 1.15rem 2.25rem rgba(124, 58, 237, 0.12);
    }

    .zscore-summary-label {
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-size: 0.75rem;
        color: rgba(33, 37, 41, 0.6);
        font-weight: 600;
    }

    .zscore-summary .badge {
        align-self: flex-start;
    }

    .zscore-detail {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .zscore-detail .zscore-chart-wrapper {
        flex: 1 1 auto;
    }

    .zscore-meta-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 0.85rem;
    }

    .zscore-meta-item {
        border-radius: 1rem;
        border: 1px solid rgba(13, 110, 253, 0.12);
        background: rgba(248, 249, 252, 0.9);
        padding: 0.75rem 1rem;
        box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.08);
    }

    .zscore-meta-label {
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-size: 0.7rem;
        color: rgba(33, 37, 41, 0.55);
        font-weight: 600;
    }

    .zscore-meta-value {
        font-size: 1.35rem;
        font-weight: 700;
        margin-top: 0.35rem;
        color: #212529;
    }

    .zscore-meta-note {
        color: rgba(33, 37, 41, 0.55);
    }

    .zscore-zone-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        border-radius: 1rem;
        background: rgba(12, 10, 27, 0.03);
        border: 1px solid rgba(124, 58, 237, 0.12);
    }

    .zscore-zone-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.35rem 0.8rem;
        border-radius: 999px;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        color: #212529;
        background: rgba(124, 58, 237, 0.08);
    }

    .zscore-zone-chip::before {
        content: '';
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: currentColor;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
    }

    .zscore-zone-chip.zone-distress {
        color: #dc3545;
        background: rgba(220, 53, 69, 0.12);
    }

    .zscore-zone-chip.zone-grey {
        color: #ffc107;
        background: rgba(255, 193, 7, 0.15);
    }

    .zscore-zone-chip.zone-safe {
        color: #198754;
        background: rgba(25, 135, 84, 0.14);
    }

    .zscore-summary-subtext {
        font-size: 0.85rem;
        color: rgba(33, 37, 41, 0.58);
    }

    .zscore-trend-note {
        font-size: 0.95rem;
        font-weight: 500;
        margin-top: 0.75rem;
        color: rgba(33, 37, 41, 0.7);
    }

    .zscore-trend-note.text-success {
        color: #0f5132 !important;
    }

    .zscore-trend-note.text-danger {
        color: #842029 !important;
    }

    .zscore-trend-note.text-warning {
        color: #997404 !important;
    }

    .zscore-insight-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .zscore-insight-card {
        border-radius: 1rem;
        border: 1px solid rgba(124, 58, 237, 0.16);
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(13, 110, 253, 0.04));
        padding: 1rem 1.2rem;
        box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.08);
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        min-height: 100%;
    }

    .zscore-insight-title {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-weight: 700;
        color: rgba(33, 37, 41, 0.6);
    }

    .zscore-insight-card .empty-state {
        color: rgba(33, 37, 41, 0.55);
    }

    .zscore-risk-list,
    .zscore-recommendation-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .zscore-risk-item,
    .zscore-recommendation-item {
        border-radius: 0.85rem;
        border: 1px solid rgba(124, 58, 237, 0.14);
        background: #fff;
        padding: 0.75rem 0.9rem;
        box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.08);
    }

    .zscore-risk-item .zscore-risk-title {
        font-weight: 600;
        margin-bottom: 0.35rem;
    }

    .zscore-severity,
    .zscore-priority {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        border-radius: 999px;
        padding: 0.2rem 0.65rem;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .zscore-severity.badge-critical,
    .zscore-priority.priority-critical {
        background: rgba(220, 53, 69, 0.12);
        color: #dc3545;
    }

    .zscore-severity.badge-high,
    .zscore-priority.priority-high {
        background: rgba(255, 193, 7, 0.18);
        color: #a66f00;
    }

    .zscore-severity.badge-medium,
    .zscore-priority.priority-medium {
        background: rgba(13, 110, 253, 0.14);
        color: #0d6efd;
    }

    .zscore-severity.badge-low,
    .zscore-priority.priority-low {
        background: rgba(32, 201, 151, 0.14);
        color: #208f6d;
    }

    .zscore-component-card {
        border-radius: 1.1rem;
        border: 1px solid rgba(124, 58, 237, 0.18);
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(13, 110, 253, 0.03));
        padding: 1.25rem 1.35rem;
        box-shadow: 0 1.25rem 2.5rem rgba(15, 23, 42, 0.08);
        margin-top: 1.5rem;
    }

    .zscore-component-title {
        font-weight: 700;
        font-size: 1.05rem;
    }

    .zscore-component-subtitle {
        font-size: 0.82rem;
        color: rgba(33, 37, 41, 0.6);
    }

    .zscore-component-card .table {
        margin-bottom: 0;
    }

    .zscore-component-card .table thead th {
        border-bottom: 1px solid rgba(124, 58, 237, 0.18);
        font-size: 0.72rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(33, 37, 41, 0.6);
    }

    .zscore-component-card .table tbody td {
        vertical-align: middle;
        font-size: 0.9rem;
        border-color: rgba(124, 58, 237, 0.1);
    }

    .zscore-component-label {
        font-weight: 600;
    }

    .zscore-component-label small {
        display: block;
        color: rgba(33, 37, 41, 0.55);
        font-weight: 500;
    }

    .zscore-progress {
        width: 100%;
        height: 8px;
        border-radius: 999px;
        background: rgba(124, 58, 237, 0.15);
        overflow: hidden;
    }

    .zscore-progress-bar {
        height: 100%;
        border-radius: 999px;
        transition: width 0.35s ease;
    }

    .zscore-progress-bar.positive {
        background: linear-gradient(135deg, rgba(32, 201, 151, 0.95), rgba(13, 110, 253, 0.75));
    }

    .zscore-progress-bar.negative {
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.95), rgba(255, 133, 133, 0.75));
    }

    /* SRF Panel Styles */
    .srf-card {
        border: none;
        border-radius: 1.25rem;
        box-shadow: 0 1.1rem 2rem rgba(13, 110, 253, 0.08);
        background: #fff;
    }

    .srf-card .card-header {
        background: transparent;
        border-bottom: none;
        padding: 1.1rem 1.5rem 0.75rem;
    }

    .srf-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .srf-summary {
        flex: 1 1 auto;
        background: linear-gradient(135deg, rgba(32, 201, 151, 0.12), rgba(13, 110, 253, 0.1));
        border: 1px solid rgba(32, 201, 151, 0.2);
        border-radius: 1.2rem;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        box-shadow: 0 1.15rem 2.25rem rgba(32, 201, 151, 0.12);
    }

    .srf-summary-label {
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-size: 0.75rem;
        color: rgba(33, 37, 41, 0.6);
        font-weight: 600;
    }

    .srf-summary .badge {
        align-self: flex-start;
    }

    .srf-value {
        font-size: 2.5rem;
        font-weight: 700;
        color: #20c997;
    }

    .srf-status {
        font-weight: 600;
        margin-top: 0.5rem;
    }

    .srf-detail {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .srf-chart-wrapper {
        position: relative;
        min-height: 280px;
    }

    .srf-chart-wrapper .chart-container {
        min-height: 280px;
    }

    .srf-chart-wrapper .empty-state {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2rem;
    }

    .srf-meta-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 0.85rem;
    }

    .srf-meta-item {
        border-radius: 1rem;
        border: 1px solid rgba(32, 201, 151, 0.12);
        background: rgba(248, 249, 252, 0.9);
        padding: 0.75rem 1rem;
        box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.08);
    }

    .srf-meta-label {
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-size: 0.7rem;
        color: rgba(33, 37, 41, 0.55);
        font-weight: 600;
    }

    .srf-meta-value {
        font-size: 1.35rem;
        font-weight: 700;
        margin-top: 0.35rem;
        color: #212529;
    }

    .srf-interpretation-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        border-radius: 1rem;
        background: rgba(12, 10, 27, 0.03);
        border: 1px solid rgba(32, 201, 151, 0.12);
    }

    .srf-category-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.35rem 0.8rem;
        border-radius: 999px;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        color: #212529;
        background: rgba(32, 201, 151, 0.08);
    }

    .srf-category-chip::before {
        content: '';
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: currentColor;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
    }

    .srf-category-chip.excellent {
        color: #198754;
        background: rgba(25, 135, 84, 0.14);
    }

    .srf-category-chip.good {
        color: #0d6efd;
        background: rgba(13, 110, 253, 0.14);
    }

    .srf-category-chip.fair {
        color: #0dcaf0;
        background: rgba(13, 202, 240, 0.15);
    }

    .srf-category-chip.weak {
        color: #ffc107;
        background: rgba(255, 193, 7, 0.15);
    }

    .srf-category-chip.poor {
        color: #dc3545;
        background: rgba(220, 53, 69, 0.12);
    }

    .srf-insight-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .srf-insight-card {
        border-radius: 1rem;
        border: 1px solid rgba(32, 201, 151, 0.16);
        background: linear-gradient(135deg, rgba(32, 201, 151, 0.08), rgba(13, 110, 253, 0.04));
        padding: 1rem 1.2rem;
        box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.08);
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        min-height: 100%;
    }

    .srf-insight-title {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-weight: 700;
        color: rgba(33, 37, 41, 0.6);
    }

    .srf-insight-content {
        font-size: 0.9rem;
        color: rgba(33, 37, 41, 0.8);
        line-height: 1.6;
    }

    @media (min-width: 992px) {
        .srf-layout {
            flex-direction: row;
            align-items: stretch;
        }

        .srf-summary {
            flex: 0 0 320px;
        }
    }

    @media (max-width: 991.98px) {
        .zscore-insight-grid {
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        }

        .zscore-component-card {
            padding: 1rem 1.1rem;
        }
    }

    @media (max-width: 575.98px) {
        .zscore-insight-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (min-width: 992px) {
        .zscore-layout {
            flex-direction: row;
            align-items: stretch;
        }

        .zscore-summary {
            flex: 0 0 320px;
        }
    }

    @media (max-width: 991.98px) {
        .zscore-summary {
            flex-basis: 100%;
        }
    }

    .zscore-value {
        font-size: 2.5rem;
        font-weight: 700;
        color: #7c3aed;
    }

    .zscore-status {
        font-weight: 600;
        margin-top: 0.5rem;
    }

    .zscore-chart {
        min-height: 260px;
    }

    .zscore-card .badge {
        font-size: 0.75rem;
        letter-spacing: 0.06em;
    }

    @media (max-width: 991.98px) {
        .meta-ribbon-grid {
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        }

        .ratio-chart-wrapper {
            min-height: 240px;
        }

        .zscore-chart {
            min-height: 220px;
        }
    }

    @media (max-width: 991.98px) {
        .metric-value {
            font-size: 1.9rem;
        }

        .chart-container {
            min-height: 280px;
        }
    }
