﻿/* Global styles for the markup rendered by the shared components in Vesta.Web.Components.
   Served at _content/Vesta.Web.Components/css/components.css and linked by every host app
   (Vesta.Web, Vesta.Retail.Web) before the app's own stylesheet. Rules here were moved
   byte-for-byte out of Vesta.Web/wwwroot/css/app.css (Retail R1). Do not add rules that
   name a class only one host renders. */

.flex-spacer {
    flex: 1;
}

.icon {
    display: block;
    flex: none;
}

.viz-filter-note {
    flex: none;
    padding: 3px 10px;
    font-size: 11.5px;
    color: var(--text-3, var(--text-4));
    background: color-mix(in srgb, var(--text-4) 8%, transparent);
    border-bottom: 1px solid var(--line);
}

.viz-table__error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-3);
}

.viz-table__skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

.skeleton {
    display: inline-block;
    height: 10px;
    border-radius: 5px;
    background: var(--skeleton);
}

/* --------------------------------------------------------- loading state */

.app-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1;
    color: var(--text-2);
}

.app-loading__spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid var(--skeleton);
    border-top-color: var(--workspace-accent);
    animation: app-loading-spin 0.9s linear infinite;
}

.app-loading__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-loading__reload {
    padding: 6px 14px;
    border: 1px solid var(--workspace-accent);
    border-radius: 6px;
    background: transparent;
    color: var(--workspace-accent);
    font: inherit;
    cursor: pointer;
}

.app-loading__signin {
    color: var(--workspace-accent);
}

@keyframes app-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Arctic plot chrome (recon §0.1): white chart area, proportional title sizing via
   container queries (3.5% of panel width, clamped), Calibri with sans-serif fallback.
   SciChart injects its own wrapper div with no intrinsic size, so the direct child of
   .viz-chart__surface is forced to fill (the DisableAspect sizing fix). */

.viz-chart {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: var(--plot-bg);
    container-type: size;
}

.viz-chart__title {
    margin-top: 5px;
    padding: 0 8px;
    text-align: center;
    overflow-wrap: break-word;
    color: var(--plot-title);
    font-family: Calibri, "Segoe UI", sans-serif;
    font-size: clamp(11px, 3.5cqw, 24px);
    line-height: 1.2;
}

.viz-chart__note {
    padding: 1px 8px;
    text-align: center;
    color: var(--plot-axis);
    font-family: Calibri, "Segoe UI", sans-serif;
    font-size: 10px;
}

/* C3 spec-kind chrome: refusal panels, the correlogram/periodogram verdict strip, and the
   mono footer stat line shared by the temporal figures. Chart-internal ink stays the fixed
   Arctic values the rest of this block uses (charts are deliberately not shell-themed). */
.viz-chart__note--refusal {
    padding: 14px 16px;
    font-size: 11px;
    line-height: 1.5;
    max-width: 52ch;
    margin: auto;
}

.viz-chart__verdict {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: baseline;
    justify-content: center;
    padding: 2px 8px;
    color: var(--plot-axis);
    font-family: Calibri, "Segoe UI", sans-serif;
    font-size: 11px;
}

.viz-chart__verdict-stat {
    font-family: Consolas, "Cascadia Code", monospace;
    font-size: 10px;
}

.viz-chart__footer-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    justify-content: center;
    padding: 2px 8px 4px;
    color: var(--plot-axis);
    font-family: Consolas, "Cascadia Code", monospace;
    font-size: 10px;
}

.viz-correlogram__panels {
    display: flex;
    flex-direction: column;
    background: none;
}

.viz-correlogram__panel {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.viz-correlogram__panel-header {
    padding: 0 8px;
    font-family: Calibri, "Segoe UI", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--plot-axis);
}

.viz-correlogram__panel > :last-child {
    flex: 1 1 0;
    min-height: 0;
}

.viz-chart__surface {
    flex: 1 1 0;
    min-height: 0;
    position: relative;
    background: var(--plot-bg);
}

/* Double-buffered surface layers: the outgoing chart stays visible while the incoming
   surface initializes BEHIND it (z-index — NOT opacity: SciChart never completes its
   first draw inside an opacity:0 subtree), then stacks above once its first frame
   rendered — so the un-drawn WebGL canvas (which compositors paint BLACK) is never
   shown. Layers have opaque white backgrounds, so the top ready layer fully covers
   retired ones until they are trimmed. */
.viz-chart__layer {
    position: absolute;
    inset: 0;
    background: var(--plot-bg);
    z-index: 1;
}

.viz-chart__layer--pending {
    z-index: 0;
}

    /* SciChart.Blazor renders TWO sibling wrapper divs (placeholder + chart), both
       sizeless, above the scichart root div (position:relative, NO height of its own).
       Overlay the siblings absolutely — stacking them in flow pushes the chart below
       the clipped panel — and force the inner chain to fill so DisableAspect surfaces
       don't collapse to 0 height.
       WHITE-OUT RULE: backgrounds may only go on elements BEHIND the canvas (the layer,
       the two wrappers, and the canvas's own CSS background). Painting the deeper
       scichart divs white covers the chart — the front div-root overlays the canvas. */
    .viz-chart__layer > div {
        position: absolute;
        inset: 0;
        background: var(--plot-bg);
    }

    .viz-chart__layer > div > div,
    .viz-chart__layer > div > div > div {
        width: 100% !important;
        height: 100% !important;
    }

    .viz-chart__layer canvas {
        background-color: var(--plot-bg);
    }

.viz-chart__error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-3);
}

/* In-panel chart controls (joinpoint "Show:" / "Results:" dropdowns — desktop
   JoinpointPlot.xaml's LayoutGroup row above the surface). */
.viz-chart__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 8px;
    color: var(--plot-axis);
    font-family: Calibri, "Segoe UI", sans-serif;
    font-size: 11px;
}

    .viz-chart__controls:empty {
        display: none;
    }

.viz-chart__control {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .viz-chart__control select {
        max-width: 160px;
        padding: 1px 4px;
        border: 1px solid var(--plot-grid);
        border-radius: 3px;
        background: var(--plot-bg);
        color: var(--plot-title);
        font: inherit;
    }

/* HTML stand-in for the desktop SciChart bottom legend (horizontal, series markers). */
.viz-chart__legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 12px;
    padding: 2px 8px 4px;
    color: var(--plot-axis);
    font-family: Calibri, "Segoe UI", sans-serif;
    font-size: 11px;
}

.viz-chart__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.viz-chart__legend-chip {
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 2px;
    /* Outlined in the series' own stroke (--chip-outline, set inline): a white category such as
       "Not Significant" would otherwise vanish into the white legend strip. */
    border: 1px solid var(--chip-outline, transparent);
}

.viz-chart__legend-chip--round {
    border-radius: 50%;
}

/* Dashed reference-line legend entry: a hollow chip whose color rides on border-color. */
.viz-chart__legend-chip--dashed {
    height: 0;
    border: 0;
    border-top: 2px dashed;
    border-radius: 0;
}

.viz-chart__skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

/* Mirrors 3DScatterPlot.xaml: surface left, stats column right (Count + Mean/σ per
   axis). The surface is a plain host div driven by vestaScatter3d.js (direct
   scichart.js 3D interop — the Blazor wrapper has no 3D engine); scichart scales its
   canvas to the host, so the host just fills the panel. The hint line mirrors the
   desktop's "Shift + Left Click to Rotate" overlay. */

.viz-scatter3d__body {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
}

.viz-scatter3d__body > .viz-chart__surface {
    flex: 1 1 0;
    min-width: 0;
}

.viz-scatter3d__canvas {
    position: absolute;
    inset: 0;
    background: var(--plot-bg);
}

.viz-scatter3d__hint {
    position: absolute;
    left: 10px;
    bottom: 6px;
    z-index: 1;
    pointer-events: none;
    color: var(--plot-axis);
    font-family: Calibri, "Segoe UI", sans-serif;
    font-size: 10px;
}

.viz-scatter3d__stats {
    flex: 0 0 auto;
    max-width: 40%;
    padding: 6px 10px;
    overflow-y: auto;
    overflow-wrap: break-word;
    color: var(--plot-title);
    font-family: Calibri, "Segoe UI", sans-serif;
    font-size: 11px;
    line-height: 1.5;
}

.viz-scatter3d__stats-var {
    margin-top: 5px;
    font-weight: 600;
}

/* ---- rose diagram (SVG polar histogram) ---- */

.viz-rose__canvas {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    justify-content: center;
}

    .viz-rose__canvas svg {
        width: 100%;
        height: 100%;
    }

.viz-rose__cardinal {
    font-family: Calibri, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 600;
    fill: var(--plot-axis);
}

.viz-rose__stats {
    padding: 4px 8px 8px;
    text-align: center;
    font-family: Calibri, "Segoe UI", sans-serif;
    font-size: 11px;
    color: var(--plot-axis);
}

/* ---- sensitivity heatmap (labeled cell grid + legend) ---- */

.viz-heatmap__scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;              /* last resort only, once cells hit the floor */
    padding: 8px 12px;
    container-type: size;
    font-family: Calibri, "Segoe UI", sans-serif;
}

/* Cell size solves to FIT the tile on both axes: available container space minus the
   chrome budget (y-label column, row title, legend horizontally; x-labels + column
   title vertically), divided by the matrix dimensions — floored at --hm-cell-min
   (default 14px; below that the scroll container takes over) and capped at the desktop
   GridHeatmap default 52px. A tile whose matrix cannot fit at the shared floor may
   lower --hm-cell-min for itself (CorrelationMatrixGrid does this in Fit mode only).
   --hm-cols/--hm-rows are set inline per tile by the Razor components. */
.viz-heatmap__layout {
    --hm-xlab-h: 22px;
    --hm-ylab-w: clamp(30px, 18cqw, 110px);
    --hm-cell: clamp(var(--hm-cell-min, 14px),
        min((100cqw - 126px - var(--hm-ylab-w)) / var(--hm-cols, 1),
            (100cqh - 42px - var(--hm-xlab-h)) / var(--hm-rows, 1)),
        52px);
    display: grid;
    grid-template-areas:
        "rtitle ylabels grid  legend"
        ".      .       xlabels ."
        ".      .       ctitle .";
    grid-template-columns: auto auto auto auto;
    align-content: start;
    /* Safe centering: auto margins collapse to 0 when the layout overflows the
       scroll container (justify-content:center would clip the leading y labels);
       max-content (NOT fit-content) so a squeezed layout never crushes the
       auto-sized label column to slivers. */
    width: max-content;
    margin-inline: auto;
}

/* Rotated (categorical / correlation) x labels need diagonal room below the grid.
   --hm-xlab-w mirrors the desktop columnLabelMaxWidth cap (GridHeatmap
   ComputeLayoutMetrics: min of the row-label budget and ~35% of the available
   height); --hm-xlab-est is the component's inline estimate of the longest
   label's width at the 12px cap font (the web stand-in for the desktop's
   MeasureText pass). Slot height = width·sin45° + line box (desktop
   MeasureColumnLabelHeight). Kept independent of --hm-cell — the cell size
   formula reads --hm-xlab-h, so a font-derived height would be a var cycle. */
.viz-heatmap__layout--rotated-x {
    --hm-xlab-w: min(var(--hm-xlab-est, 80px), 30cqh, 160px);
    --hm-xlab-h: calc(var(--hm-xlab-w) * 0.7071 + 18px);
}

.viz-heatmap__row-title {
    grid-area: rtitle;
    align-self: center;
    margin-right: 6px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 600;
    font-size: 12px;
    color: var(--plot-axis);
}

.viz-heatmap__y-labels {
    grid-area: ylabels;
    display: grid;
    grid-auto-rows: var(--hm-cell, 52px);
}

.viz-heatmap__y-label {
    /* A block with text-align (not a flex row pushed to flex-end): a label wider than the column then
       ellipsizes at its END and keeps its start, where flex-end overflowed to the left and the
       container clipped the first characters ("erty rate (% of people)"). Centered on the row by
       line-height. */
    display: block;
    text-align: right;
    line-height: var(--hm-cell, 52px);
    max-width: var(--hm-ylab-w, 200px);
    padding: 0 8px 0 4px;
    font-weight: 600;
    /* Desktop auto-size header font: scales with the cell, clamped 6-12px, so
       labels stay one-per-row instead of overlapping when cells shrink. */
    font-size: clamp(6px, calc(var(--hm-cell, 52px) * 0.6), 12px);
    color: var(--plot-axis);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.viz-heatmap__grid {
    grid-area: grid;
    display: grid;
    grid-template-columns: repeat(var(--hm-cols, 1), var(--hm-cell, 52px));
    grid-auto-rows: var(--hm-cell, 52px);
}

.viz-heatmap__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid var(--plot-grid);
    overflow: hidden;
    /* Desktop AutoSizeCells behavior: value text scales with the cell and vanishes
       below a ~27px cell (the steep ramp term); tooltips keep the exact value. */
    font-size: clamp(0px, min((var(--hm-cell, 52px) - 26px) * 11, var(--hm-cell, 52px) * 0.21), 11px);
    text-align: center;
}

.viz-heatmap__legend {
    grid-area: legend;
    display: flex;
    gap: 4px;
    margin-left: 10px;
}

.viz-heatmap__legend-bar {
    width: 24px;
    height: 100%;
    border: 0.5px solid var(--plot-grid);
}

.viz-heatmap__legend-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 11px;
    color: var(--plot-axis);
}

.viz-heatmap__x-labels {
    grid-area: xlabels;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--hm-cell, 52px);
}

/* Reserve the diagonal room below the grid so rotated labels don't create
   scrollable overflow (same idea as the contingency table's 72px slot row). */
.viz-heatmap__layout--rotated-x .viz-heatmap__x-labels {
    height: var(--hm-xlab-h);
    align-items: start;
}

.viz-heatmap__x-label {
    padding-top: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: var(--plot-axis);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Categorical/correlation X labels rotate -45° (desktop BuildRotatedXAxisLabels):
   full text on the diagonal, the RIGHT end of the rotated box anchored at the
   column center (top-right transform origin, like the contingency table slots),
   ellipsis only past --hm-xlab-w (the desktop columnLabelMaxWidth), and the font
   scaling with the cell like the desktop's auto-size header font. */
.viz-heatmap__x-label-slot {
    position: relative;
}

    .viz-heatmap__x-label-slot span {
        position: absolute;
        top: 4px;
        right: 50%;
        max-width: var(--hm-xlab-w, 160px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        transform: rotate(-45deg);
        transform-origin: 100% 0;
        font-weight: 600;
        font-size: clamp(6px, calc(var(--hm-cell, 52px) * 0.6), 12px);
        line-height: 1.1;
        color: var(--plot-axis);
    }

.viz-heatmap__column-title {
    grid-area: ctitle;
    padding-top: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: var(--plot-axis);
}

/* Unlike the labeled 52px-cell grids above, this is a dense 64×64 image-like surface:
   1fr cells inside a square box that fits the tile, no cell text, ±extent tick labels
   on both axes and a vertical gamma legend labeled G3 max (top) / min (bottom) —
   mirroring the desktop VariogramChartControl heatmap view + HeatmapColorMap. */

.viz-vgmap__body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-areas:
        "ytitle yticks grid   legend"
        ".      .      xticks ."
        ".      .      xtitle .";
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-rows: minmax(0, 1fr) auto auto;
    padding: 8px 12px;
    font-family: Calibri, "Segoe UI", sans-serif;
}

.viz-vgmap__y-title {
    grid-area: ytitle;
    align-self: center;
    margin-right: 4px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 600;
    font-size: 12px;
    color: var(--plot-axis);
}

.viz-vgmap__y-ticks {
    grid-area: yticks;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding-right: 6px;
    font-size: 11px;
    color: var(--plot-axis);
}

.viz-vgmap__grid-box {
    grid-area: grid;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    container-type: size;
}

/* One square scaled to fit BOTH tile dimensions (cqw/cqh resolve against the
   grid-box container) — height:100% + max-width:100% distorted the square in
   width-constrained tiles because aspect-ratio only applies to an auto dimension. */
.viz-vgmap__grid {
    display: grid;
    width: min(100cqw, 100cqh);
    aspect-ratio: 1;
    border: 0.5px solid var(--plot-grid);
}

.viz-vgmap__cell {
    min-width: 0;
    min-height: 0;
}

.viz-vgmap__legend {
    grid-area: legend;
    display: flex;
    gap: 4px;
    margin-left: 10px;
}

.viz-vgmap__legend-bar {
    width: 24px;
    height: 100%;
    border: 0.5px solid var(--plot-grid);
}

.viz-vgmap__legend-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 11px;
    color: var(--plot-axis);
}

.viz-vgmap__x-ticks {
    grid-area: xticks;
    display: flex;
    justify-content: space-between;
    padding-top: 2px;
    font-size: 11px;
    color: var(--plot-axis);
}

.viz-vgmap__x-title {
    grid-area: xtitle;
    padding-top: 2px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: var(--plot-axis);
}

/* ---- variogram fit-summary card (VisualizationTab.xaml variogramFitSummaryTemplate) ---- */

.viz-fitcard__scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 8px 12px;
    font-family: Calibri, "Segoe UI", sans-serif;
}

.viz-fitcard__card {
    max-width: 420px;
    margin: 0 auto;
    padding: 16px;
    border: 1px solid var(--plot-grid);
    border-radius: 10px;
    background: var(--plot-bg);
}

.viz-fitcard__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.viz-fitcard__accent {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--plot-primary);
}

/* CV badge slot — desktop parity: never shown (the saved model carries no CV results). */
.viz-fitcard__badge {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--plot-primary);
    color: var(--plot-bg);
    font-size: 11px;
    font-weight: 600;
}

.viz-fitcard__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}

.viz-fitcard__label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--plot-axis);
}

.viz-fitcard__value {
    margin-top: 2px;
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--plot-title);
    overflow-wrap: break-word;
}

/* Wrapper the payload-driven correlation grid renders into (controls + scroll). */
.viz-heatmap__grid-root {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
}

/* ---- Hub / wizard buttons (September 14, 2026) ----
   The web twins of the desktop's AdvisorGhostButtonStyle, AdvisorPrimaryButtonStyle and
   AdvisorCloseButtonStyle (Vesta/Styles/AdvisorTokens.xaml), bound to the SAME palette values via
   the generated --advisor-* tokens: ghost = transparent + accent outline + accent ink, hover fills
   with the soft accent; primary = accent fill + accent ink, hover .92 / pressed .78 opacity; both
   fade to .45 when disabled. Global on purpose — PanelModal's footer, the Projects hub, and the
   step bodies' own action buttons all wear them, so every wizard looks like one product. The old
   per-component buttons read --accent, which is the TITLE-BAR chrome accent, not the hub accent. */
.hub-button {
    min-height: var(--target-dialog);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--advisor-accent);
    border-radius: var(--r-md);
    background: transparent;
    color: var(--advisor-accent);
    font-family: var(--font-ui);
    font-size: var(--fs-comfortable);
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-standard),
                opacity var(--dur-fast) var(--ease-standard);
}

    .hub-button:hover:not(:disabled) {
        background: var(--advisor-accent-soft);
    }

    .hub-button:active:not(:disabled) {
        opacity: .85;
    }

    .hub-button:disabled {
        opacity: .45;
        cursor: default;
    }

    .hub-button:focus-visible {
        outline: none;
        box-shadow: var(--shadow-focus);
    }

/* Filled destructive: --status-err is split by polarity and ships its own derived ink. */
.hub-button--danger {
    border-color: var(--status-err);
    background: var(--status-err);
    color: var(--status-err-ink);
}

    .hub-button--danger:hover:not(:disabled) {
        background: var(--status-err);
        opacity: .92;
    }

/* The fitted model rides over the EXPERIMENTAL cells as an SVG in lag coordinates (desktop
   HeatmapContourSeries); the badge says which of the desktop's two maps this is. */

.viz-vgmap__grid-box {
    position: relative;
}

.viz-vgmap__contours {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.viz-vgmap__badge {
    position: absolute;
    left: 6px;
    bottom: 4px;
    padding: 1px 6px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--plot-bg) 78%, transparent);
    color: var(--plot-axis);
    font-family: Calibri, "Segoe UI", sans-serif;
    font-size: 10px;
    pointer-events: none;
}

/* Desktop VariogramST3DChartControl: sample surface left, fitted model right, one color scale.
   Each pane is a scichart.js 3D host (the same interop the 3D scatter uses). */

.viz-st3d {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.viz-st3d__pair {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    gap: 8px;
}

.viz-st3d__pane {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.viz-st3d__pane > .viz-chart__surface {
    flex: 1 1 0;
    min-height: 0;
    position: relative;
}

.viz-st3d__pane-title {
    padding: 2px 8px;
    color: var(--plot-title);
    font-family: Calibri, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.viz-st3d__empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--plot-axis);
    font-family: Calibri, "Segoe UI", sans-serif;
    font-size: 11px;
    pointer-events: none;
}

.viz-st3d__legend {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    color: var(--plot-axis);
    font-family: Calibri, "Segoe UI", sans-serif;
    font-size: 11px;
}

.viz-st3d__legend-bar {
    flex: 0 0 140px;
    height: 8px;
    border-radius: 2px;
}

.viz-st3d__hint {
    margin-left: auto;
    font-size: 10px;
}
