.financial-v3-preview-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 11px 16px;
    border: 1px solid #a5b4fc;
    border-radius: 12px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.9rem;
}

.financial-v3-preview-banner strong {
    flex: 0 0 auto;
    padding: 2px 9px;
    border-radius: 999px;
    background: #4338ca;
    color: #fff;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
}

.financial-v3-company-header,
.financial-v3-basis-card,
.financial-v3-section,
.financial-v3-relation-card,
.financial-v3-review-section,
.financial-v3-empty-state {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.financial-v3-company-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
}

.financial-v3-company-header h1,
.financial-v3-section h2,
.financial-v3-basis-card h2,
.financial-v3-review-section h2,
.financial-v3-relation-card h2 {
    margin: 0;
    color: #0f172a;
    line-height: 1.35;
}

.financial-v3-company-header h1 {
    font-size: clamp(1.55rem, 4vw, 2.25rem);
}

.financial-v3-eyebrow {
    margin: 0 0 5px;
    color: #6366f1;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.financial-v3-company-meta,
.financial-v3-basis-note,
.financial-v3-muted {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 0.86rem;
}

.financial-v3-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.financial-v3-header-actions a,
.financial-v3-year-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #334155;
    background: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.financial-v3-header-actions .financial-v3-primary-action,
.financial-v3-year-link.is-active {
    border-color: #4338ca;
    background: #4338ca;
    color: #fff;
}

.financial-v3-year-switcher {
    display: flex;
    gap: 8px;
    margin: 14px 0 22px;
    overflow-x: auto;
    padding: 3px 1px 7px;
}

.financial-v3-year-link {
    flex: 0 0 auto;
}

.financial-v3-alert {
    margin: 0 0 18px;
    padding: 14px 17px;
    border: 1px solid #fde68a;
    border-radius: 12px;
    background: #fffbeb;
    color: #92400e;
}

.financial-v3-shell {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.financial-v3-basis-card,
.financial-v3-section,
.financial-v3-review-section,
.financial-v3-relation-card {
    min-width: 0;
    padding: 24px;
}

.financial-v3-basis-badges {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.financial-v3-basis-badges span {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.financial-v3-basis-badges small {
    display: block;
    margin-bottom: 3px;
    color: #94a3b8;
    font-family: system-ui, sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.financial-v3-basis-badges em {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 0.68rem;
    font-style: normal;
}

.financial-v3-section-heading,
.financial-v3-metric-title,
.financial-v3-relation-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.financial-v3-section-heading {
    margin-bottom: 16px;
}

.financial-v3-section-heading > span {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
}

.financial-v3-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.financial-v3-metric-scroll {
    max-width: 100%;
    min-width: 0;
}

.financial-v3-cf-grid {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
}

.financial-v3-metric-card,
.financial-v3-supplemental-card {
    min-width: 0;
    padding: 17px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}

.financial-v3-metric-card:hover {
    border-color: #a5b4fc;
}

.financial-v3-metric-card.financial-v3-same-fact {
    border-color: #67e8f9;
    background: #ecfeff;
}

.financial-v3-metric-title {
    align-items: flex-start;
}

.financial-v3-metric-title h3 {
    margin: 0;
    color: #334155;
    font-size: 0.87rem;
}

.financial-v3-metric-value {
    margin-top: 14px;
    color: #0f172a;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.financial-v3-metric-value.is-unavailable {
    color: #94a3b8;
}

.financial-v3-review-badge {
    flex: 0 0 auto;
    padding: 2px 7px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 0.65rem;
    font-weight: 800;
}

.financial-v3-relation-note {
    margin: 7px 0 0;
    color: #0e7490;
    font-size: 0.72rem;
}

.financial-v3-provenance,
.financial-v3-document-details,
.financial-v3-compare-provenance {
    margin-top: 13px;
    color: #64748b;
    font-size: 0.74rem;
}

.financial-v3-provenance summary,
.financial-v3-document-details summary,
.financial-v3-compare-provenance summary {
    cursor: pointer;
    font-weight: 700;
}

.financial-v3-provenance dl,
.financial-v3-document-details dl,
.financial-v3-compare-provenance dl,
.financial-v3-supplemental-meta {
    display: grid;
    grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1.3fr);
    gap: 5px 9px;
    margin: 12px 0 0;
}

.financial-v3-provenance dt,
.financial-v3-document-details dt,
.financial-v3-compare-provenance dt,
.financial-v3-supplemental-meta dt {
    color: #94a3b8;
}

.financial-v3-provenance dd,
.financial-v3-document-details dd,
.financial-v3-compare-provenance dd,
.financial-v3-supplemental-meta dd {
    min-width: 0;
    margin: 0;
    color: #334155;
    overflow-wrap: anywhere;
}

.financial-v3-relation-card code {
    padding: 6px 10px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
}

.financial-v3-relation-value {
    display: grid;
    justify-items: end;
    gap: 6px;
    text-align: right;
}

.financial-v3-relation-value strong {
    color: #334155;
    font-size: 0.86rem;
}

.financial-v3-supplemental-section {
    border-color: #fcd34d;
    background: #fffbeb;
}

.financial-v3-supplemental-grid,
.financial-v3-compare-supplemental-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.financial-v3-supplemental-card p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 0.78rem;
}

.financial-v3-review-section ul {
    margin: 12px 0;
    padding-left: 20px;
}

.financial-v3-empty-state {
    padding: 46px 28px;
    text-align: center;
}

.financial-v3-empty-state h2 {
    margin: 12px 0 7px;
}

.financial-v3-empty-state p {
    max-width: 620px;
    margin: 0 auto;
    color: #64748b;
}

.financial-v3-empty-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.5rem;
}

.financial-v3-compare-form {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 12px;
    margin: 16px 0 22px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}

.financial-v3-compare-form label {
    display: grid;
    gap: 5px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
}

.financial-v3-compare-form select,
.financial-v3-compare-form button {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
}

.financial-v3-compare-form button {
    border-color: #4338ca;
    background: #4338ca;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.financial-v3-compare-document-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.financial-v3-cell-empty {
    margin-top: 10px;
    padding: 9px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.76rem;
}

.financial-v3-compare-table-wrap {
    overflow-x: auto;
}

.financial-v3-compare-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

.financial-v3-compare-table th,
.financial-v3-compare-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: right;
    vertical-align: top;
}

.financial-v3-compare-table th:first-child {
    text-align: left;
}

.financial-v3-compare-table th code,
.financial-v3-compare-table th small,
.financial-v3-formal-label {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 500;
}

.financial-v3-compare-cell strong {
    white-space: nowrap;
}

.financial-v3-compare-cell.is-not_applicable strong,
.financial-v3-compare-cell.is-unavailable strong,
.financial-v3-compare-cell.is-missing strong {
    color: #94a3b8;
}

.financial-v3-calculation-note td {
    padding-top: 5px;
    color: #64748b;
    background: #f8fafc;
    font-size: 0.7rem;
    text-align: left;
}

.financial-v3-compare-mobile-list,
.financial-v3-mobile-state-note {
    display: none;
}

.compare-financial-v3-section .financial-v3-compare-supplemental-grid > div,
.compare-financial-v3-section .financial-v3-supplemental-card {
    min-width: 0;
}

@media (max-width: 720px) {
    .financial-v3-preview-banner,
    .financial-v3-company-header,
    .financial-v3-section-heading,
    .financial-v3-relation-card {
        align-items: stretch;
        flex-direction: column;
    }

    .financial-v3-company-header,
    .financial-v3-basis-card,
    .financial-v3-section,
    .financial-v3-review-section,
    .financial-v3-relation-card {
        padding: 18px;
        border-radius: 15px;
    }

    .financial-v3-header-actions {
        justify-content: flex-start;
    }

    .financial-v3-relation-value {
        justify-items: start;
        text-align: left;
    }

    .financial-v3-header-actions a {
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }

    .financial-v3-basis-badges,
    .financial-v3-supplemental-grid,
    .financial-v3-compare-supplemental-grid,
    .financial-v3-compare-document-grid {
        grid-template-columns: 1fr;
    }

    .financial-v3-metric-grid {
        grid-template-columns: 1fr;
    }

    .financial-v3-cf-section .financial-v3-metric-scroll {
        overflow-x: auto;
        padding-bottom: 7px;
    }

    .financial-v3-cf-grid {
        grid-template-columns: repeat(3, minmax(190px, 1fr));
        min-width: 620px;
    }

    .financial-v3-normal-company .financial-v3-cf-section .financial-v3-metric-scroll {
        overflow-x: visible;
        padding-bottom: 0;
    }

    .financial-v3-normal-company .financial-v3-cf-grid {
        grid-template-columns: minmax(0, 1fr);
        min-width: 0;
    }

    .financial-v3-compare-form {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .financial-v3-compare-form > span {
        display: none;
    }

    .compare-financial-v3-section .financial-v3-compare-table-wrap {
        display: none;
    }

    .financial-v3-compare-mobile-list {
        display: grid;
        gap: 14px;
    }

    .financial-v3-compare-mobile-card {
        min-width: 0;
        padding: 16px;
        border: 1px solid #e2e8f0;
        border-radius: 13px;
        background: #fff;
        overflow-wrap: anywhere;
    }

    .financial-v3-compare-mobile-card-header {
        padding-bottom: 12px;
        border-bottom: 1px solid #e2e8f0;
    }

    .financial-v3-compare-mobile-card-header h3,
    .financial-v3-compare-mobile-card-header p,
    .financial-v3-compare-mobile-year h4,
    .financial-v3-compare-mobile-year p {
        margin: 0;
    }

    .financial-v3-compare-mobile-card-header h3 {
        color: #0f172a;
        font-size: 1rem;
    }

    .financial-v3-compare-mobile-card-header p {
        margin-top: 4px;
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 700;
    }

    .financial-v3-compare-mobile-values {
        display: grid;
        gap: 10px;
        margin-top: 12px;
    }

    .financial-v3-compare-mobile-year {
        min-width: 0;
        padding: 12px;
        border-radius: 10px;
        background: #f8fafc;
    }

    .financial-v3-compare-mobile-year h4 {
        margin-bottom: 7px;
        color: #475569;
        font-size: 0.76rem;
    }

    .financial-v3-compare-mobile-year strong {
        display: inline-block;
        color: #0f172a;
        font-size: 1.08rem;
    }

    .financial-v3-compare-mobile-year .financial-v3-formal-label {
        margin: 0 0 4px;
    }

    .financial-v3-mobile-state-note {
        display: block;
        margin-top: 5px !important;
        color: #64748b;
        font-size: 0.72rem;
    }

    .financial-v3-compare-mobile-results {
        display: grid;
        gap: 0;
        margin: 12px 0 0;
        border-top: 1px solid #e2e8f0;
    }

    .financial-v3-compare-mobile-results > div {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        min-width: 0;
        padding: 10px 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .financial-v3-compare-mobile-results dt {
        color: #64748b;
        font-size: 0.74rem;
        font-weight: 700;
    }

    .financial-v3-compare-mobile-results dd {
        min-width: 0;
        margin: 0;
        color: #0f172a;
        font-weight: 800;
        text-align: right;
    }

    .financial-v3-compare-mobile-note {
        margin: 10px 0 0;
        color: #64748b;
        font-size: 0.72rem;
        line-height: 1.65;
    }

    .compare-financial-v3-section .financial-v3-compare-supplemental-grid,
    .compare-financial-v3-section .financial-v3-compare-supplemental-grid > div,
    .compare-financial-v3-section .financial-v3-supplemental-card {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}
