/* Analysis Showcase block, plus the product-view mocks it renders (.vbm-*).
 * Mock colours that are not brand tokens (the app's indigo #201C8B, chart series)
 * are the VibeOne product UI as drawn in the design, kept literal on purpose. */

.analysisshowcase-block.is-bordered {
    border-top: 1px solid var(--vb-hair);
    border-bottom: 1px solid var(--vb-hair);
}

.analysisshowcase-block .vb-eyebrow {
    color: var(--tone-label);
}

.analysisshowcase-block.vb-dark .vb-eyebrow {
    color: var(--vb-magenta-soft);
}

.analysisshowcase-intro {
    max-width: 700px;
    --lead-size: 17px;
}

.analysisshowcase-intro .vb-lead {
    margin-top: 14px;
}

/* No product view yet (Asset Triage): the intro stands alone. */
.analysisshowcase-block.no-view .analysisshowcase-intro {
    margin-bottom: 0;
}

/* Pulled up over the block above (Platform). Sits on white, hairline below only. */
.analysisshowcase-block.is-overlap {
    padding-top: 0;
    padding-bottom: 80px;
    border-top: 0;
}

.analysisshowcase-block.is-overlap .analysisshowcase-frame {
    margin-top: -64px;
}

/* The card every product view sits in. */
.analysisshowcase-frame {
    position: relative;
    border: 1px solid #DEDEE8;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--vb-white);
    box-shadow: 0 26px 60px -34px rgba(26, 26, 46, 0.36);
}

.vbm-frame-asset-detail {
    border-color: var(--vb-hair);
    box-shadow: var(--shadow-pop);
}

.vbm-frame-landscape-dashboard,
.vbm-frame-diligence-overview,
.vbm-frame-commercial-model {
    background: #F7F7FA;
}

.analysisshowcase-media {
    display: block;
    width: 100%;
    height: auto;
}

/* -----------------------------------------------------------------------------
 * Shared mock parts
 * -------------------------------------------------------------------------- */
.vbm {
    font-family: var(--font1);
    color: var(--vb-ink);
    text-align: left;
}

.vbm-label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vb-magenta-label);
}

/* App tab bar: icon, tabs, Export */
.vbm-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 20px;
    background: var(--vb-white);
    border-bottom: 1px solid var(--vb-hair);
}

.vbm-tabs img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    object-fit: contain;
}

.vbm-tabs span {
    padding: 6px 14px;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.2;
    color: #4A4A57;
    white-space: nowrap;
}

.vbm-tabs .is-active {
    background: #EEEDFB;
    font-weight: 600;
    color: #201C8B;
}

.vbm-tabs .vbm-tabs__export {
    margin-left: auto;
    background: #201C8B;
    font-size: 13px;
    font-weight: 600;
    color: var(--vb-white);
}

.vbm-panel {
    background: var(--vb-white);
    border: 1px solid #E4E4EE;
    border-radius: 12px;
    padding: 20px 22px;
    min-width: 0;
}

.vbm-panel__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--vb-navy);
}

/* Small status chip in app tables */
.vbm-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(4, 120, 87, 0.2);
    background: #ECFDF5;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--vb-green-text);
    white-space: nowrap;
}

.vbm-chip.is-amber { border-color: rgba(180, 83, 9, 0.2); background: #FFFBEB; color: var(--vb-amber-text); }
.vbm-chip.is-slate { border-color: rgba(71, 85, 105, 0.2); background: #F1F5F9; color: var(--vb-slate-text); }
.vbm-chip.is-red { border-color: rgba(185, 28, 28, 0.2); background: #FEF2F2; color: #B91C1C; }

/* Progress bar */
.vbm-bar {
    height: 6px;
    border-radius: 3px;
    background: #E4E4EC;
    overflow: hidden;
}

.vbm-bar span {
    display: block;
    height: 100%;
    background: var(--vb-purple);
}

.vbm-bar.is-score {
    height: 7px;
    border-radius: 4px;
}

/* Rows that ease in and out on a 9s loop, as in the design */
.vbm-row-in {
    animation: vbmRowIn 9s var(--ease-out) infinite;
}

@keyframes vbmRowIn {
    0%, 4% { opacity: 0; transform: translateY(9px); }
    12%, 92% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(9px); }
}

@keyframes vbmFadeSeg {
    0%, 4% { opacity: 0; }
    14%, 90% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes vbmGrowY {
    0%, 4% { transform: scaleY(0); }
    18%, 90% { transform: scaleY(1); }
    100% { transform: scaleY(0); }
}

/* Wide tables scroll inside their own box rather than the page. */
.vbm-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* -----------------------------------------------------------------------------
 * Asset detail (Platform)
 * -------------------------------------------------------------------------- */
.vbm-asset-detail__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 18px;
    background: var(--vb-surface);
    border-bottom: 1px solid var(--vb-hair);
}

.vbm-asset-detail__bar img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.vbm-asset-detail__bar span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vb-midnight);
}

.vbm-asset-detail__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
}

.vbm-asset-detail__main {
    padding: 32px 34px;
    border-right: 1px solid var(--vb-hair);
}

.vbm-asset-detail__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.vbm-asset-detail__name {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--vb-navy);
}

.vbm-asset-detail__phase,
.vbm-asset-detail__conf {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.vbm-asset-detail__phase {
    border-radius: 999px;
    background: var(--vb-surface);
    border: 1px solid var(--vb-border);
    color: var(--vb-text-secondary);
}

.vbm-asset-detail__conf {
    border-radius: var(--radius-sm);
    background: var(--vb-slate-bg);
    border: 1px solid #CBD5E1;
    color: var(--vb-slate-text);
}

.vbm-asset-detail__summary {
    max-width: 520px;
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--vb-ink);
}

.vbm-asset-detail__label {
    margin-top: 26px;
}

.vbm-asset-detail__evidence {
    margin-top: 12px;
}

.vbm-asset-detail__row {
    display: grid;
    grid-template-columns: minmax(120px, 0.42fr) 1fr;
    gap: 16px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid var(--vb-border);
    font-size: 13px;
    line-height: 1.4;
}

.vbm-asset-detail__key {
    font-weight: 600;
    color: var(--vb-navy);
}

.vbm-asset-detail__side {
    padding: 32px 30px;
    background: var(--vb-surface);
}

.vbm-asset-detail__checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.vbm-asset-detail__check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--vb-white);
    border: 1px solid var(--vb-hair);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--vb-navy);
}

/* The larger outlined status chip of the asset view */
.vbm-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid currentColor;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.vbm-status.is-green { background: var(--vb-green-bg); color: var(--vb-green-text); }
.vbm-status.is-amber { background: var(--vb-amber-bg); color: var(--vb-amber-text); }
.vbm-status.is-slate { background: var(--vb-slate-bg); color: var(--vb-slate-text); }

.vbm-asset-detail__rule {
    height: 10px;
}

/* -----------------------------------------------------------------------------
 * Indication tiers
 * -------------------------------------------------------------------------- */
.vbm-indication-tiers__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 28px;
    background: var(--vb-surface);
    border-bottom: 1px solid var(--vb-hair);
}

.vbm-indication-tiers__head img {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.vbm-indication-tiers__title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--vb-navy);
}

.vbm-indication-tiers__sub {
    margin-top: 3px;
    font-size: 14px;
    color: #4A4A57;
}

.vbm-indication-tiers__tiers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--vb-hair);
}

.vbm-indication-tiers__tier {
    padding: 20px 24px 22px;
    background: var(--vb-white);
    border-top: 3px solid #B8B8C6;
}

.vbm-indication-tiers__tier.is-tier-1 {
    background: rgba(85, 27, 144, 0.06);
    border-top-color: var(--vb-purple);
}

.vbm-indication-tiers__tier.is-tier-2 {
    border-top-color: var(--vb-blue);
}

.vbm-indication-tiers__tier-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.vbm-indication-tiers__tier-name {
    font-size: 15px;
    font-weight: 700;
    color: #4A4A57;
}

.is-tier-1 .vbm-indication-tiers__tier-name { color: var(--vb-purple-label); }
.is-tier-2 .vbm-indication-tiers__tier-name { color: var(--vb-blue-label); }

.vbm-indication-tiers__tier-pct {
    font-size: 14px;
    font-weight: 700;
    color: #4A4A57;
}

.vbm-indication-tiers__tier .vbm-bar {
    margin-top: 12px;
}

.is-tier-2 .vbm-bar span { background: var(--vb-blue); }
.is-tier-3 .vbm-bar span { background: #B8B8C6; }

.vbm-indication-tiers__tier-count {
    margin-top: 10px;
    font-size: 14px;
    color: #4A4A57;
}

.vbm-indication-tiers__list {
    padding: 26px 28px 8px;
}

.vbm-indication-tiers__list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.vbm-indication-tiers__list-title {
    margin-top: 7px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--vb-navy);
}

.vbm-indication-tiers__note {
    max-width: 340px;
    font-size: 14px;
    line-height: 1.5;
    color: #4A4A57;
    text-align: right;
}

.vbm-indication-tiers__tr {
    display: grid;
    grid-template-columns: 44px minmax(0, 1.5fr) 120px 74px minmax(0, 1.2fr);
    gap: 14px;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid var(--vb-hair);
}

.vbm-indication-tiers__tr.is-head {
    padding: 16px 0 10px;
    border-top: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4A4A57;
}

.vbm-indication-tiers__rank {
    font-size: 15px;
    font-weight: 700;
    color: var(--vb-navy);
}

.vbm-indication-tiers__name {
    overflow: hidden;
    font-size: 15px;
    color: var(--vb-ink);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vbm-indication-tiers__tierchip {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 5px;
    background: rgba(85, 27, 144, 0.1);
    font-size: 13px;
    font-weight: 700;
    color: var(--vb-purple-label);
}

.vbm-indication-tiers__drivers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vbm-indication-tiers__drivers span {
    padding: 3px 9px;
    border-radius: 5px;
    background: rgba(5, 150, 105, 0.1);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #046C4E;
    white-space: nowrap;
}

.vbm-indication-tiers__rule {
    height: 5px;
}

/* -----------------------------------------------------------------------------
 * Landscape dashboard
 * -------------------------------------------------------------------------- */
.vbm-landscape-dashboard__body {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
}

.vbm-landscape-dashboard__panel {
    padding: 22px 24px;
}

.vbm-landscape-dashboard__chart {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 18px;
}

.is-status .vbm-landscape-dashboard__chart {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

.vbm-donut {
    display: block;
    flex: 0 0 auto;
    width: 170px;
    height: 170px;
}

.is-status .vbm-donut {
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.vbm-donut text {
    font-size: 7.5px;
    font-weight: 600;
    fill: var(--vb-navy);
}

.vbm-donut__seg {
    animation: vbmFadeSeg 9s ease-in-out infinite;
}

.vbm-legend {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.vbm-legend__row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) 34px 38px;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    line-height: 1.3;
}

.vbm-legend__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.vbm-legend__name {
    color: var(--vb-ink);
}

.vbm-legend__count {
    font-weight: 700;
    color: var(--vb-navy);
    text-align: right;
}

.vbm-legend__pct {
    color: #6B6B8A;
    text-align: right;
}

/* -----------------------------------------------------------------------------
 * Diligence overview
 * -------------------------------------------------------------------------- */
.vbm-diligence-overview__body {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
}

.vbm-diligence-overview__main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.vbm-diligence-overview__summary {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
}

.vbm-diligence-overview__risk {
    padding: 16px 18px;
    background: #F0FBF5;
    border: 1px solid #BFE8D2;
    border-left: 4px solid #059669;
    border-radius: 10px;
    color: var(--vb-green-text);
}

.vbm-diligence-overview__risk-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vbm-diligence-overview__risk-value {
    margin-top: 4px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.vbm-diligence-overview__about {
    padding: 14px 18px;
    background: #F4F3FD;
    border: 1px solid #D9D6F5;
    border-left: 4px solid #201C8B;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--vb-ink);
}

.vbm-diligence-overview__dims {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.vbm-diligence-overview__dim {
    padding: 14px 16px;
    border: 1px solid #E4E4EE;
    border-radius: 10px;
}

.vbm-diligence-overview__dim-top,
.vbm-diligence-overview__diff-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--vb-navy);
}

.vbm-diligence-overview__dim-top > span:first-child {
    font-weight: 700;
}

.vbm-diligence-overview__dim-note {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #4A4A57;
}

.vbm-diligence-overview__vs {
    margin-top: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #201C8B;
}

.vbm-diligence-overview__diff-rows {
    margin-top: 6px;
}

.vbm-diligence-overview__diff-row {
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #EEEEF4;
}

/* -----------------------------------------------------------------------------
 * Commercial model
 * -------------------------------------------------------------------------- */
.vbm-commercial-model__body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
}

.vbm-commercial-model__kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.vbm-commercial-model__kpi {
    padding: 14px 16px;
    background: var(--vb-white);
    border: 1px solid #E4E4EE;
    border-top: 3px solid #201C8B;
    border-radius: 10px;
}

.vbm-commercial-model__kpi.is-magenta { border-top-color: #EC0B80; }
.vbm-commercial-model__kpi.is-orange { border-top-color: #C44D00; }

.vbm-commercial-model__kpi-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B6B8A;
}

.vbm-commercial-model__kpi-value {
    margin-top: 4px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--vb-navy);
}

.vbm-commercial-model__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 18px;
}

.vbm-commercial-model__revenue {
    display: flex;
    flex-direction: column;
}

.vbm-commercial-model__caption {
    margin-top: 4px;
    font-size: 13px;
    color: #6B6B8A;
}

.vbm-commercial-model__bars {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
    height: 200px;
    margin-top: 18px;
}

.vbm-commercial-model__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    height: 100%;
}

.vbm-commercial-model__bar {
    display: block;
    width: 100%;
    max-width: 34px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(var(--vb-purple), #201C8B);
    transform-origin: center bottom;
    animation: vbmGrowY 9s var(--ease-out) infinite;
}

.vbm-commercial-model__year {
    font-size: 12px;
    color: #6B6B8A;
    font-variant-numeric: tabular-nums;
}

.vbm-commercial-model__tr {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 64px minmax(0, 1fr) 92px;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-top: 1px solid #EEEEF4;
}

.vbm-commercial-model__tr.is-head {
    margin-top: 10px;
    padding: 8px 0;
    border-top: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B6B8A;
}

.vbm-commercial-model__name {
    font-size: 14px;
    line-height: 1.35;
    color: var(--vb-navy);
}

.vbm-commercial-model__value {
    font-size: 14px;
    font-weight: 700;
    color: var(--vb-navy);
}

.vbm-commercial-model__source {
    font-size: 13px;
    line-height: 1.35;
    color: #201C8B;
    text-decoration: underline;
    text-decoration-color: #C9C6F0;
    text-underline-offset: 3px;
}

/* -----------------------------------------------------------------------------
 * Due Diligence: Differentiation tab (conclusion, comparison table, references)
 * -------------------------------------------------------------------------- */
.vbm-diligence-diff__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 26px 26px;
}

.vbm-diligence-diff__conclusion {
    padding: 16px 20px;
    border: 1px solid #D9D6F5;
    border-radius: 10px;
    background: #F4F3FD;
}

.vbm-diligence-diff__conclusion-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #201C8B;
}

.vbm-diligence-diff__conclusion-text {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--vb-navy);
    text-wrap: pretty;
}

/* The table keeps its columns and scrolls inside this box when the frame is narrow. */
.vbm-diligence-diff__scroll {
    overflow-x: auto;
    border: 1px solid #E4E4EE;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

.vbm-diligence-diff__scroll:focus-visible {
    outline: 2px solid var(--vb-magenta);
    outline-offset: 2px;
}

.vbm-diligence-diff__table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    line-height: 1.45;
    color: var(--vb-ink);
    font-variant-numeric: tabular-nums;
}

.vbm-diligence-diff__table th:first-child {
    width: 18%;
}

.vbm-diligence-diff__table th,
.vbm-diligence-diff__table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #EEEEF4;
}

.vbm-diligence-diff__table thead th {
    vertical-align: top;
    background: var(--vb-surface);
    border-bottom-color: #E4E4EE;
}

.vbm-diligence-diff__table thead th:first-child {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #4A4A57;
}

.vbm-diligence-diff__head-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--vb-navy);
}

.vbm-diligence-diff__head-sub {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 400;
    color: #4A4A57;
}

.vbm-diligence-diff__table th.is-hl .vbm-diligence-diff__head-name {
    color: var(--vb-magenta-label);
}

.vbm-diligence-diff__table tbody th {
    font-weight: 600;
    color: var(--vb-navy);
}

.vbm-diligence-diff__table .is-hl,
.vbm-diligence-diff__table thead th.is-hl {
    background: #FFF0F7;
}

.vbm-diligence-diff__table td.is-strong {
    font-weight: 700;
    color: var(--vb-navy);
}

.vbm-diligence-diff__table td.is-muted {
    color: #4A4A57;
}

.vbm-diligence-diff__table sup {
    font-weight: 400;
    color: #4A4A57;
}

.vbm-diligence-diff__table tr.is-verdict th,
.vbm-diligence-diff__table tr.is-verdict td {
    border-bottom: 0;
}

.vbm-diligence-diff__refs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 24px;
    font-size: 12px;
    font-style: italic;
    line-height: 1.5;
    color: #4A4A57;
}

/* -----------------------------------------------------------------------------
 * Tablet
 * -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .vbm-asset-detail__body {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .vbm-asset-detail__main {
        padding: 28px 28px;
    }

    .vbm-asset-detail__side {
        padding: 28px 24px;
    }

    .vbm-landscape-dashboard__body,
    .vbm-diligence-overview__body,
    .vbm-commercial-model__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .is-status .vbm-landscape-dashboard__chart {
        flex-direction: row;
        align-items: center;
        gap: 32px;
    }

    .is-status .vbm-donut {
        width: 170px;
        height: 170px;
        margin: 0;
    }
}

/* -----------------------------------------------------------------------------
 * Mobile
 * -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .analysisshowcase-block.is-overlap {
        padding-bottom: 56px;
    }

    .analysisshowcase-block.is-overlap .analysisshowcase-frame {
        margin-top: -32px;
    }

    .analysisshowcase-intro {
        --lead-size: 16px;
    }

    .analysisshowcase-frame {
        border-radius: 16px;
    }

    /* A recording shrunk to phone width is unreadable: keep it at its own size and
       let the frame scroll sideways, as the coded tables do. */
    .analysisshowcase-frame.is-media {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .analysisshowcase-frame.is-media .analysisshowcase-media {
        width: auto;
        max-width: none;
    }

    .vbm-tabs {
        padding: 10px 14px;
        gap: 4px;
    }

    .vbm-tabs span {
        padding: 6px 10px;
        font-size: 13px;
    }

    .vbm-panel {
        padding: 18px 16px;
    }

    /* Asset detail: stack the assessment under the evidence */
    .vbm-asset-detail__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .vbm-asset-detail__main {
        padding: 22px 18px;
        border-right: 0;
        border-bottom: 1px solid var(--vb-hair);
    }

    .vbm-asset-detail__side {
        padding: 22px 18px;
    }

    .vbm-asset-detail__head {
        gap: 8px;
    }

    .vbm-asset-detail__name {
        flex: 1 0 100%;
        font-size: 20px;
    }

    .vbm-asset-detail__summary {
        font-size: 15px;
        line-height: 1.6;
    }

    .vbm-asset-detail__row {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
        gap: 12px;
    }

    /* Indication tiers: tiers stack, each shortlist row becomes a small card */
    .vbm-indication-tiers__head {
        padding: 18px 18px;
        align-items: flex-start;
    }

    .vbm-indication-tiers__title {
        font-size: 17px;
    }

    .vbm-indication-tiers__tiers {
        grid-template-columns: minmax(0, 1fr);
    }

    .vbm-indication-tiers__tier {
        padding: 16px 18px 18px;
    }

    .vbm-indication-tiers__list {
        padding: 22px 18px 10px;
    }

    .vbm-indication-tiers__note {
        text-align: left;
    }

    .vbm-indication-tiers__tr.is-head {
        display: none;
    }

    .vbm-indication-tiers__tr {
        grid-template-columns: 28px minmax(0, 1fr) 64px;
        grid-template-areas:
            "rank name name"
            ". score tier"
            ". drivers drivers";
        gap: 10px 10px;
        padding: 16px 0;
    }

    .vbm-indication-tiers__tr > :nth-child(1) { grid-area: rank; }
    .vbm-indication-tiers__tr > :nth-child(2) { grid-area: name; white-space: normal; }
    .vbm-indication-tiers__tr > :nth-child(3) { grid-area: score; }
    .vbm-indication-tiers__tr > :nth-child(4) { grid-area: tier; justify-self: end; }
    .vbm-indication-tiers__tr > :nth-child(5) { grid-area: drivers; }

    /* Landscape: donut above its legend */
    .vbm-landscape-dashboard__body,
    .vbm-diligence-overview__body,
    .vbm-commercial-model__body {
        padding: 14px;
        gap: 14px;
    }

    .vbm-landscape-dashboard__chart,
    .is-status .vbm-landscape-dashboard__chart {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .vbm-donut,
    .is-status .vbm-donut {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    /* Diligence: single column */
    .vbm-diligence-overview__summary,
    .vbm-diligence-overview__dims {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Commercial: KPI cards stack, each assumption becomes a two-line row */
    .vbm-commercial-model__kpis {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .vbm-commercial-model__kpi {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
    }

    .vbm-commercial-model__kpi-value {
        margin-top: 0;
        font-size: 22px;
    }

    .vbm-commercial-model__bars {
        gap: 5px;
        height: 160px;
    }

    .vbm-commercial-model__year {
        font-size: 10px;
    }

    .vbm-commercial-model__tr.is-head {
        display: none;
    }

    .vbm-commercial-model__tr {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "name value"
            "source chip";
        gap: 6px 12px;
        padding: 12px 0;
    }

    .vbm-commercial-model__tr > :nth-child(1) { grid-area: name; }
    .vbm-commercial-model__tr > :nth-child(2) { grid-area: value; justify-self: end; }
    .vbm-commercial-model__tr > :nth-child(3) { grid-area: source; }
    .vbm-commercial-model__tr > :nth-child(4) { grid-area: chip; justify-self: end; }
}

/* Due Diligence differentiation, phone: tighter padding, references in one column. */
@media (max-width: 767px) {
    .vbm-diligence-diff__body {
        gap: 16px;
        padding: 16px 14px 18px;
    }

    .vbm-diligence-diff__conclusion {
        padding: 14px 16px;
    }

    .vbm-diligence-diff__table {
        min-width: 640px;
    }

    .vbm-diligence-diff__table th,
    .vbm-diligence-diff__table td {
        padding: 11px 12px;
    }

    .vbm-diligence-diff__refs {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vbm-row-in,
    .vbm-donut__seg,
    .vbm-commercial-model__bar {
        animation: none;
    }
}
