/* ============================================================
   Variables data dictionary — the merged Variables view (data
   dictionary rows + expanded profiles) and the variable-metadata
   drill-in editor.

   Global (not component-scoped) so it can style the many small
   sibling components without ::deep, mirroring dashboard.css.
   All colors use Fluent / dashboard theme tokens so the view
   tracks light and dark. Each variable's accent is injected per
   row as --measure-color (a token reference from MeasureTaxonomy),
   used for the type spine, icons, chart fills, and tinted tiles.
   ============================================================ */

.vv-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    --vv-cols: 18px minmax(0, 1fr) 120px 172px 200px 132px 72px;
    --vv-row-gap: 16px;
    --vv-pad-left: 23px;
}

/* ---- Toolbar ---- */

.vv-toolbar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 11px 22px;
    background: var(--neutral-layer-1);
    border-bottom: 1px solid var(--neutral-stroke-divider-rest);
}

.vv-pill-count {
    margin-left: 6px;
    font-size: 11px;
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
}

/* The pill / segment base styles from the catalog's dashboard.css, re-expressed scoped to
   `.vv-toolbar` so this stylesheet stands alone in the desktop app (which has no dashboard.css)
   and wins by specificity in the catalog client, where dashboard.css also loads. FluentUI v5
   buttons render as plain elements, so they are styled directly (the v4-era ::part(control)
   overrides no longer take effect). */

.vv-toolbar .toolbar-search {
    width: 280px;
}

.vv-toolbar .toolbar-spacer {
    flex: 1;
}

.vv-toolbar .filter-pills {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.vv-toolbar .filter-pill {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 13px;
    border-radius: 16px;
    border: 1px solid var(--neutral-stroke-rest);
    background: transparent;
    color: var(--neutral-foreground-hint);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.vv-toolbar .filter-pill:hover {
    border-color: var(--neutral-stroke-strong, var(--neutral-stroke-rest));
    color: var(--neutral-foreground-rest);
}

.vv-toolbar .filter-pill.active {
    border-color: var(--accent-fill-rest);
    background: var(--status-info-bg);
    color: var(--accent-foreground-rest, var(--accent-fill-rest));
}

.vv-toolbar .segmented {
    display: inline-flex;
    align-self: flex-start;
    background: var(--neutral-layer-1);
    border: 1px solid var(--neutral-stroke-rest);
    border-radius: 7px;
    padding: 3px;
    gap: 2px;
}

.vv-toolbar .segment {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: var(--neutral-foreground-hint);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.vv-toolbar .segment:hover {
    color: var(--neutral-foreground-rest);
}

.vv-toolbar .segment.active {
    background: var(--accent-fill-rest);
    color: var(--foreground-on-accent-rest, #ffffff);
}

/* Keep the bounded list mounted through profile/editor visits, retaining row components and models. */
.vv-browser {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.vv-browser[hidden] {
    display: none;
}

/* ---- List + header ---- */

.vv-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.vv-list-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: var(--vv-cols);
    gap: var(--vv-row-gap);
    align-items: center;
    padding: 9px 22px 9px var(--vv-pad-left);
    background: var(--neutral-layer-3);
    border-bottom: 1px solid var(--neutral-stroke-rest);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--neutral-foreground-hint);
    white-space: nowrap;
}

/* ---- Variable row ---- */

.vv-row-wrap {
    border-bottom: 1px solid var(--neutral-stroke-divider-rest);
    border-left: 3px solid var(--measure-color);
}

/* Someone else has this variable open for editing: a ring in their colour, and a tag that says who. Both
   are drawn inside the row, whose height the list depends on. */
.vv-row-wrap.vv-row-editing {
    position: relative;
    outline: 2px solid var(--person-accent);
    outline-offset: -2px;
}

.vv-row-tag {
    position: absolute;
    z-index: 1;
    top: 2px;
    right: 44px;
    max-width: 50%;
    padding: 0 8px;
    overflow: hidden;
    border-radius: 0 0 5px 5px;
    background: var(--person-accent);
    color: var(--person-on);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

/* Changed by someone else a moment ago. Not a button here: the mark comes off by itself. */
.vv-row-chip {
    flex: none;
    margin-left: 8px;
    cursor: default;
}

/* The people who have the variable's profile page open, after its name. */
.vv-row-people {
    flex: none;
}

/* The Virtualize placeholder must occupy the same height as a real row (row height + the wrap's bottom
   border) so a fast scroll does not collapse the rendered window and flicker. */
.vv-row-placeholder {
    height: 58px;
    box-sizing: border-box;
}

/* The row is pinned to a fixed height so every virtualized item is exactly ItemSize tall: the height must
   not change when a row's statistics load just-in-time (an empty distribution cell becoming a histogram or
   category bar), or Virtualize's uniform-height assumption breaks and scrolling flickers. */
.vv-row {
    display: grid;
    grid-template-columns: var(--vv-cols);
    gap: var(--vv-row-gap);
    align-items: center;
    height: 58px;
    box-sizing: border-box;
    overflow: hidden;
    padding: 10px 22px 10px calc(var(--vv-pad-left) - 3px);
    cursor: pointer;
}

.vv-row:hover {
    background: color-mix(in srgb, var(--neutral-foreground-rest) 6%, transparent);
}

.vv-row:focus-visible {
    outline: 2px solid var(--accent-fill-rest);
    outline-offset: -2px;
}

.vv-cell-variable {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.vv-type-tile {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--measure-color) 16%, transparent);
}

.vv-var-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vv-var-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--neutral-foreground-rest);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* No fixed max-width: the label fills the flexible variable column (minmax(0,1fr)) and ellipsizes only
   when the text genuinely exceeds the available width. The min-width:0 chain on .vv-cell-variable and
   .vv-var-text lets this cell shrink with the column, and the column's 0 min track keeps a long label
   from forcing the column wider. */
.vv-var-label {
    font-size: 12px;
    color: var(--neutral-foreground-hint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.vv-mono {
    font-family: var(--monospace-font-family, ui-monospace, "Cascadia Code", Consolas, monospace);
}

/* ---- Type tag ---- */

.vv-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.vv-type-dot {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--measure-color);
}

.vv-type-label {
    font-size: 12px;
    color: var(--neutral-foreground-rest);
    white-space: nowrap;
}

/* ---- Distribution / summary cells ---- */

.vv-cell-dist {
    min-width: 0;
}

.vv-cell-summary {
    font-size: 12px;
    color: var(--neutral-foreground-rest);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vv-inline-note {
    font-style: italic;
    font-size: 12px;
    color: var(--neutral-foreground-hint);
}

.vv-cell-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

/* The chevron signals that the row drills into the variable's profile page. */
.vv-chevron {
    color: var(--neutral-foreground-hint);
}

.vv-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--neutral-foreground-hint);
    cursor: pointer;
}

.vv-icon-btn:hover {
    background: var(--neutral-fill-stealth-hover);
    color: var(--neutral-foreground-rest);
}

.vv-icon-btn:focus-visible {
    outline: 2px solid var(--accent-fill-rest);
    outline-offset: -2px;
}

/* ---- Histogram (SVG) ---- */

.vv-hist {
    display: block;
    width: 150px;
}

.vv-hist.vv-hist-fluid {
    width: 100%;
}

.vv-hist rect {
    fill: var(--measure-color);
    fill-opacity: 0.92;
}

/* Transparent full-height hover targets, one per bin, so even empty bins surface a tooltip. */
.vv-hist rect.vv-hist-hit {
    fill: var(--measure-color);
    fill-opacity: 0;
}

.vv-hist rect.vv-hist-hit:hover {
    fill-opacity: 0.12;
}

.vv-hist-tip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-variant-numeric: tabular-nums;
}

.vv-hist-tip-range {
    font-weight: 600;
}

.vv-hist-tip-count {
    color: var(--neutral-foreground-hint);
}

/* ---- Stacked category bar ---- */

.vv-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.vv-stack-bar {
    display: flex;
    width: 150px;
    height: 18px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--neutral-layer-4);
}

.vv-stack-seg {
    height: 100%;
    background: var(--measure-color);
    border-right: 1px solid var(--neutral-layer-1);
}

.vv-stack-legend {
    font-size: 10.5px;
    color: var(--neutral-foreground-hint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

/* ---- Completeness meter ---- */

.vv-meter {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.vv-meter-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--neutral-layer-4);
    overflow: hidden;
}

.vv-meter-fill {
    height: 100%;
    border-radius: inherit;
    transition: width 0.4s ease;
}

.vv-meter-fill-ok {
    background: var(--status-success);
}

.vv-meter-fill-warn {
    background: var(--status-warning);
}

.vv-meter-fill-pending {
    background: var(--neutral-stroke-rest);
    opacity: 0.6;
}

.vv-meter-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
}

.vv-meter-valid {
    color: var(--neutral-foreground-rest);
}

.vv-meter-valid-warn {
    color: var(--status-warning);
}

.vv-meter-missing {
    color: var(--neutral-foreground-hint);
}

.vv-meter-pending-text {
    font-style: italic;
    color: var(--neutral-foreground-hint);
}

/* ---- Empty state ---- */

.vv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 56px 22px;
    text-align: center;
}

.vv-empty-text {
    font-size: 13.5px;
    color: var(--neutral-foreground-hint);
}

/* ============================================================
   Variable profile (the body of the drill-in profile page)
   ============================================================ */

.vv-profile {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vv-profile-page .vv-editor-column {
    animation: vvPop 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes vvPop {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vv-profile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.vv-profile-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--neutral-foreground-rest);
    max-width: 720px;
}

.vv-profile-desc-empty {
    font-style: italic;
    color: var(--neutral-foreground-hint);
}

.vv-card {
    background: var(--neutral-layer-3);
    border: 1px solid var(--neutral-stroke-divider-rest);
    border-radius: 12px;
    padding: 16px 18px;
}

.vv-card-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--neutral-foreground-hint);
    margin-bottom: 12px;
}

.vv-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10.5px;
    color: var(--neutral-foreground-hint);
    font-variant-numeric: tabular-nums;
}

.vv-card-divider {
    height: 1px;
    background: var(--neutral-stroke-divider-rest);
    margin: 14px 0;
}

/* ---- Frequency list (categorical profile) ---- */

/* A categorical variable can have many value labels, so the frequency list is capped and given its own
   nested scroll, keeping the distribution card bounded within the page. `overscroll-behavior: contain`
   stops a scroll at the inner edge from chaining out to the page body. */
.vv-freq {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: min(440px, 50vh);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.vv-freq-row {
    display: grid;
    grid-template-columns: 168px 1fr 134px;
    gap: 12px;
    align-items: center;
}

.vv-freq-label {
    text-align: right;
    font-size: 12px;
    color: var(--neutral-foreground-rest);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vv-freq-bar {
    height: 12px;
    border-radius: 3px;
    background: var(--neutral-layer-4);
    overflow: hidden;
}

.vv-freq-bar > span {
    display: block;
    height: 100%;
    background: var(--measure-color);
    border-radius: inherit;
}

.vv-freq-count {
    font-size: 11.5px;
    color: var(--neutral-foreground-hint);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Missing-value frequencies: grouped after the valid rows under a subheading, rendered in a muted tone
   so they read as a distinct, secondary group (mirrors the data-dictionary report). */

.vv-freq-missing-head {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid var(--neutral-stroke-rest);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--neutral-foreground-hint);
}

.vv-freq-row-missing .vv-freq-label {
    color: var(--neutral-foreground-hint);
}

.vv-freq-row-missing .vv-freq-bar > span {
    background: var(--neutral-foreground-hint);
    opacity: 0.5;
}

/* ---- Statistics + completeness ---- */

.vv-profile-cols {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 14px;
}

@media (max-width: 880px) {
    .vv-profile-cols {
        grid-template-columns: 1fr;
    }
}

.vv-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--neutral-stroke-divider-rest);
    border: 1px solid var(--neutral-stroke-divider-rest);
    border-radius: 8px;
    overflow: hidden;
}

.vv-stat-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    background: var(--neutral-layer-2);
}

.vv-stat-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--neutral-foreground-hint);
}

.vv-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-foreground-rest);
    font-variant-numeric: tabular-nums;
}

.vv-stats-empty {
    font-size: 12px;
    font-style: italic;
    color: var(--neutral-foreground-hint);
}

.vv-legend {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.vv-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--neutral-foreground-hint);
}

.vv-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 2px;
}

.vv-legend-dot-ok {
    background: var(--status-success);
}

.vv-legend-dot-missing {
    background: var(--neutral-stroke-rest);
}

.vv-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.vv-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
}

.vv-badge-warning {
    background: var(--status-warning-bg);
    color: var(--status-warning);
}

.vv-badge-info {
    background: var(--status-info-bg);
    color: var(--status-info);
}

.vv-badge-neutral {
    background: var(--status-neutral-bg);
    color: var(--neutral-foreground-rest);
}

/* ---- Value labels table ---- */

.vv-vl {
    display: flex;
    flex-direction: column;
}

.vv-vl-head,
.vv-vl-row {
    display: grid;
    grid-template-columns: 70px 1fr 120px;
    gap: 12px;
    align-items: center;
    padding: 7px 4px;
}

.vv-vl-head {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--neutral-foreground-hint);
    border-bottom: 1px solid var(--neutral-stroke-divider-rest);
}

.vv-vl-row {
    border-bottom: 1px solid var(--neutral-stroke-divider-rest);
    font-size: 12.5px;
    color: var(--neutral-foreground-rest);
}

.vv-vl-code {
    text-align: center;
}

.vv-vl-records {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    font-variant-numeric: tabular-nums;
}

.vv-vl-bar {
    flex: 1;
    height: 8px;
    border-radius: 3px;
    background: var(--neutral-layer-4);
    overflow: hidden;
}

.vv-vl-bar > span {
    display: block;
    height: 100%;
    background: var(--measure-color);
}

.vv-vl-count {
    flex: none;
    min-width: 48px;
    text-align: right;
    color: var(--neutral-foreground-hint);
}

/* ---- Box / quantile strip ---- */

.vv-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.vv-box-info {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    opacity: 0.55;
    cursor: help;
}

.vv-box-info:hover {
    opacity: 1;
}

.vv-box-track {
    position: relative;
    height: 22px;
}

.vv-box-track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background: var(--neutral-stroke-rest);
}

.vv-box-range {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 14px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--measure-color) 32%, transparent);
    border: 1px solid var(--measure-color);
}

.vv-box-range:hover {
    background: color-mix(in srgb, var(--measure-color) 45%, transparent);
}

.vv-box-tip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-variant-numeric: tabular-nums;
}

.vv-box-tip-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.vv-box-median {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 16px;
    background: var(--measure-color);
}

.vv-box-labels {
    position: relative;
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    color: var(--neutral-foreground-hint);
    font-variant-numeric: tabular-nums;
}

/* The median label tracks its tick along the range rather than sitting at the row center. */
.vv-box-label-median {
    position: absolute;
    transform: translateX(-50%);
    color: var(--measure-color);
}

/* ============================================================
   Drill-in sub-views: the variable profile page and the metadata editor share this chrome
   ============================================================ */

.vv-editor {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vv-editor-crumbs {
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 22px;
    background: var(--neutral-layer-1);
    border-bottom: 1px solid var(--neutral-stroke-divider-rest);
}

.vv-editor-crumbs-sep {
    width: 1px;
    height: 24px;
    background: var(--neutral-stroke-rest);
}

.vv-editor-path {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.vv-editor-path-file {
    font-size: 12.5px;
    color: var(--neutral-foreground-rest);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.vv-editor-path-slash,
.vv-editor-path-mid {
    font-size: 12px;
    color: var(--neutral-foreground-hint);
}

.vv-editor-path-var {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--neutral-foreground-rest);
}

.vv-editor-crumbs-spacer {
    flex: 1;
}

.vv-editor-crumbs-hint {
    font-size: 12px;
    color: var(--neutral-foreground-hint);
}

.vv-editor-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 22px;
}

.vv-editor-column {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vv-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

@media (max-width: 880px) {
    .vv-editor-grid {
        grid-template-columns: 1fr;
    }
}

/* The shared metadata form, embedded in the editor's form card. The form's own column chrome is
   built for a full-height page pane, so neutralize its scrolling and heavy padding here and let
   the editor's body do the scrolling. */

.vv-card-form {
    padding: 0;
    overflow: hidden;
}

.vv-card-form .metaform-header {
    background: transparent;
    padding: 14px 18px;
}

.vv-card-form .metaform-scroll {
    flex: none;
    overflow-y: visible;
    padding: 4px 18px 18px;
}

/* ---- Context preview ---- */

.vv-preview {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vv-preview-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.vv-preview-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--neutral-foreground-rest);
}

.vv-preview-label {
    font-size: 12.5px;
    color: var(--neutral-foreground-hint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vv-preview-type {
    flex: none;
}

.vv-preview-meter {
    width: 220px;
    flex: none;
}

/* ---- Form fields ---- */

.vv-field-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.vv-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 12px;
}

.vv-field-name {
    width: 180px;
    flex: none;
}

.vv-field-grow {
    flex: 1;
    margin-bottom: 0;
}

.vv-field-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--neutral-foreground-hint);
}

.vv-input {
    background: var(--neutral-layer-1);
    border: 1px solid var(--neutral-stroke-rest);
    border-radius: 7px;
    padding: 9px 11px;
    color: var(--neutral-foreground-rest);
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    width: 100%;
}

.vv-input:focus {
    border-color: var(--accent-fill-rest);
}

.vv-textarea {
    resize: vertical;
    min-height: 90px;
}

.vv-select {
    appearance: none;
}

.vv-inset {
    display: flex;
    gap: 22px;
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--neutral-layer-1);
    border-radius: 8px;
}

.vv-inset-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.vv-inset-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--neutral-foreground-hint);
}

.vv-inset-value {
    font-size: 13px;
    color: var(--neutral-foreground-rest);
    font-variant-numeric: tabular-nums;
}

.vv-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--neutral-foreground-hint);
}

/* ---- Footer ---- */

.vv-editor-footer {
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 26px;
    background: var(--neutral-layer-1);
    border-top: 1px solid var(--neutral-stroke-divider-rest);
}

.vv-editor-footer-hint {
    font-size: 12px;
    color: var(--neutral-foreground-hint);
}

.vv-editor-footer-spacer {
    flex: 1;
}

/* ============================================================
   Variable editor: section nav, value label set cards, picker
   ============================================================ */

/* ---- Sticky section nav ---- */

/* Pulled up into the body's top padding and padded back down, so at rest it sits where the first
   card used to start and, once the body scrolls, it sticks flush with the body's top edge. */
.vv-section-nav {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: -22px 0 0;
    padding: 22px 0 10px;
    background: var(--surface-canvas);
}

.vv-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 13px;
    color: var(--neutral-foreground-hint);
    text-decoration: none;
    white-space: nowrap;
}

.vv-section-link:hover {
    background: var(--neutral-fill-stealth-hover);
    color: var(--neutral-foreground-rest);
}

.vv-section-link:focus-visible {
    outline: 2px solid var(--accent-fill-rest);
    outline-offset: -2px;
}

.vv-section-count {
    font-size: 11px;
    color: var(--neutral-foreground-hint);
    font-variant-numeric: tabular-nums;
}

.vv-section-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--status-warning);
}

/* Sections scroll to sit just under the sticky nav. */
#vv-section-description,
#vv-section-value-labels,
#vv-section-missing-values {
    scroll-margin-top: 64px;
}

/* ---- Small outline buttons in the set bar and lock notice ---- */

.vv-btn-sm {
    min-height: 28px;
    font-size: 12.5px;
}

.vv-link-btn {
    border: none;
    background: none;
    padding: 0;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    color: var(--accent-foreground-rest);
    cursor: pointer;
}

.vv-link-btn:hover {
    text-decoration: underline;
}

.vv-link-btn:disabled {
    color: var(--neutral-foreground-hint);
    cursor: default;
    text-decoration: none;
}

/* ---- Set card ---- */

.vv-set {
    display: flex;
    flex-direction: column;
}

.vv-set-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 6px 4px 10px;
}

.vv-set-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--neutral-foreground-rest);
}

.vv-set-source {
    font-size: 11.5px;
    color: var(--neutral-foreground-hint);
}

.vv-set-spacer {
    flex: 1;
}

.vv-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--status-neutral-bg);
    color: var(--neutral-foreground-hint);
}

.vv-pill-shared {
    background: var(--status-info-bg);
    color: var(--accent-foreground-rest);
}

.vv-pill-editing {
    background: var(--status-warning-bg);
    color: var(--status-warning);
}

.vv-pill-ok {
    background: var(--status-success-bg);
    color: var(--status-success);
}

.vv-pill-warn {
    background: var(--status-warning-bg);
    color: var(--status-warning);
}

.vv-set-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    background: var(--status-info-bg);
    font-size: 12.5px;
    color: var(--neutral-foreground-rest);
}

.vv-set-notice-text {
    flex: 1;
    min-width: 220px;
}

.vv-set-error {
    margin-bottom: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    background: var(--status-danger-bg);
    font-size: 12.5px;
    color: var(--status-danger);
}

/* Codes found in the data that the set does not label, each a one-click add. */
.vv-set-unlabeled {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--status-warning-bg);
    font-size: 12.5px;
    color: var(--neutral-foreground-rest);
}

.vv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vv-chip,
.vv-chip-btn {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid var(--neutral-stroke-divider-rest);
    background: var(--neutral-layer-2);
    font-size: 12px;
    font-family: inherit;
    color: var(--neutral-foreground-rest);
    font-variant-numeric: tabular-nums;
}

.vv-chip-btn {
    cursor: pointer;
}

.vv-chip-btn:hover {
    border-color: var(--neutral-stroke-rest);
}

.vv-chip-btn:focus-visible {
    outline: 2px solid var(--accent-fill-rest);
    outline-offset: -2px;
}

.vv-chip-code {
    color: var(--brand-accent-soft);
}

.vv-chip-sub {
    color: var(--neutral-foreground-hint);
}

.vv-chip-more {
    color: var(--neutral-foreground-hint);
    border-style: dashed;
}

/* ---- Empty states ---- */

.vv-set-empty {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.vv-set-empty-icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--status-neutral-bg);
    color: var(--neutral-foreground-hint);
}

.vv-set-empty-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.vv-set-empty-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--neutral-foreground-rest);
}

.vv-set-empty-text {
    font-size: 12.5px;
    color: var(--neutral-foreground-hint);
}

.vv-set-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--neutral-stroke-divider-rest);
}

/* The one-line form for a variable that usually needs no labels (continuous) or no missing set yet. */
/* A set action waiting on the host (creating or copying a set). */
.vv-set-pending,
.vv-picker-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.vv-set-pending {
    margin-bottom: 10px;
}

.vv-picker-loading {
    flex: none;
    padding: 12px 14px;
}

.vv-set-quiet {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---- Missing values subsection ---- */

.vv-set-section-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 12px;
    padding-top: 12px;
    border-top: 1px solid var(--neutral-stroke-rest);
}

.vv-set-section-sub {
    font-size: 12px;
    color: var(--neutral-foreground-hint);
}

/* ---- Set picker dialog ---- */

/* A definite height, not flex: 1. The dialog body's height is indefinite, so a flex basis would size
   the picker to its content and a long list would stretch the dialog past the screen instead of
   scrolling inside the list pane. The cap keeps the header and footer on screen on short displays. */
.vv-picker {
    flex: none;
    display: flex;
    height: min(520px, calc(100vh - 220px));
    min-height: 260px;
}

.vv-picker-list {
    width: 330px;
    flex: none;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 12px 0;
    border-right: 1px solid var(--border-subtle);
    overflow-y: auto;
}

/* Rows keep their height inside the scrolling column; only the pane scrolls. */
.vv-picker-list > .lib-item,
.vv-picker-list > .lib-list-group,
.vv-picker-list > .lib-list-empty,
.vv-picker-list > .vv-picker-search,
.vv-picker-list > .vv-picker-hint {
    flex: none;
}

.vv-picker-search {
    padding: 0 12px;
}

.vv-picker-hint {
    margin: 8px 14px 0;
    font-size: 11.5px;
    color: var(--text-muted);
}

.vv-picker-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.vv-picker-item-sub {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
}

.vv-picker-preview {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    overflow-y: auto;
}

.vv-picker-preview-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vv-picker-preview-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.vv-picker-usage {
    font-size: 12px;
    color: var(--text-muted);
}

.vv-picker-footer {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: var(--surface-app);
    border-top: 1px solid var(--border-subtle);
}

.vv-picker-footer-hint {
    flex: 1;
    min-width: 240px;
    font-size: 12px;
    color: var(--text-muted);
}

/* The set card's overflow menu sizes to its items, whatever the width of the icon button that opens it. */
.vv-set-menu {
    min-width: 240px;
    width: max-content;
}

/* ==== Explore rail ==== */

/* The list (toolbar + rows) and the rail share the view's height; the splitter holds both when the
   rail is open. The main column keeps the list's own scrolling. */
.vv-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.vv-view .vv-split {
    flex: 1;
    min-height: 0;
}

/* FluentMultiSplitter pins every pane (flex-shrink: 0) and lets only its last pane flex, which would
   leave the unsized list pane at its 100% basis and squeeze the rail to nothing. The list pane is the
   one that gives way; the rail keeps the width its pane was given (and the width the user drags to). */
.vv-view .vv-split > .fluent-multi-splitter-pane[data-index="0"] {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.vv-view .vv-split > .fluent-multi-splitter-pane[data-index="1"] {
    flex: 0 0 auto;
    overflow: hidden;
}

/* The toolbar's Explore toggle: an outline button that lights up while the rail is shown. */
.vv-toolbar .explore-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 12px;
    border-radius: 7px;
    border: 1px solid var(--neutral-stroke-rest);
    background: transparent;
    color: var(--neutral-foreground-rest);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.vv-toolbar .explore-toggle:hover {
    border-color: var(--neutral-stroke-strong, var(--neutral-stroke-rest));
}

.vv-toolbar .explore-toggle.active {
    border-color: var(--accent-fill-rest);
    background: var(--status-info-bg);
    color: var(--accent-foreground-rest, var(--accent-fill-rest));
}

/* The badge is light-DOM content inside the FluentUI button, so the button's gap does not reach it:
   it carries its own margin from the label. */
.vv-explore-badge {
    display: inline-grid;
    place-items: center;
    margin-left: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--accent-fill-rest);
    color: var(--foreground-on-accent-rest, #ffffff);
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* The selection column and the header's selection summary. The column is a label for its box and
   stretches over the row's full height and into the row's left padding and the gap after it, so the
   hit area is a comfortable strip rather than a 16 px square. */
.vv-cell-select {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    box-sizing: content-box;
    margin: -10px -7px -10px -20px;
    padding: 0 7px 0 20px;
    cursor: pointer;
}

.vv-cell-select:has(.vv-select-box:disabled) {
    cursor: not-allowed;
}

.vv-select-box {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent-fill-rest);
    cursor: pointer;
}

.vv-select-box:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.vv-row-selected .vv-row {
    background: color-mix(in srgb, var(--accent-fill-rest) 9%, transparent);
}

.vv-row-selected .vv-row:hover {
    background: color-mix(in srgb, var(--accent-fill-rest) 14%, transparent);
}

.vv-list-header-variable {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.vv-header-selection {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

/* ---- The rail itself ---- */

.vv-explore {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: var(--neutral-layer-2);
    border-left: 1px solid var(--neutral-stroke-rest);
    font-size: 13px;
    color: var(--neutral-foreground-rest);
}

.vv-explore-head {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 8px 0 14px;
    background: var(--neutral-layer-1);
    border-bottom: 1px solid var(--neutral-stroke-divider-rest);
}

.vv-explore-title {
    font-size: 14px;
    font-weight: 700;
}

.vv-explore-count {
    font-size: 12px;
    color: var(--neutral-foreground-hint);
}

.vv-explore-spacer {
    flex: 1;
}

/* A text-only action, used for Clear, Add weight, and the full-profile link. */
.vv-explore-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 6px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--accent-foreground-rest, var(--accent-fill-rest));
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.vv-explore-link:hover {
    background: color-mix(in srgb, var(--accent-fill-rest) 10%, transparent);
}

/* Selection chips: one per checked variable, in role order. */
.vv-explore-selection {
    flex: none;
    padding: 10px 14px 8px;
    border-bottom: 1px solid var(--neutral-stroke-divider-rest);
}

.vv-explore-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vv-explore-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 4px 0 6px;
    border-radius: 6px;
    border: 1px solid var(--neutral-stroke-rest);
    background: var(--neutral-layer-1);
    cursor: grab;
    max-width: 100%;
}

.vv-explore-chip.dragging {
    opacity: 0.5;
}

.vv-explore-chip.drop-target {
    border-color: var(--accent-fill-rest);
    box-shadow: 0 0 0 1px var(--accent-fill-rest);
}

.vv-explore-chip-grip {
    width: 6px;
    height: 12px;
    flex: none;
    background-image: radial-gradient(circle, var(--neutral-foreground-hint) 1px, transparent 1.2px);
    background-size: 3px 4px;
    opacity: 0.8;
}

.vv-explore-chip-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--neutral-foreground-rest);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.vv-explore-chip-role {
    font-size: 11px;
    color: var(--neutral-foreground-hint);
    white-space: nowrap;
}

.vv-explore-chip-x {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--neutral-foreground-hint);
    cursor: pointer;
    padding: 0;
}

.vv-explore-chip-x:hover {
    background: color-mix(in srgb, var(--neutral-foreground-rest) 10%, transparent);
    color: var(--neutral-foreground-rest);
}

.vv-explore-hint {
    margin-top: 7px;
    font-size: 11.5px;
    color: var(--neutral-foreground-hint);
    line-height: 1.4;
}

.vv-explore-note {
    margin: 8px 0 0;
    padding: 7px 10px;
    border-radius: 6px;
    background: var(--neutral-layer-3);
    border: 1px solid var(--neutral-stroke-divider-rest);
    font-size: 12px;
    line-height: 1.45;
    color: var(--neutral-foreground-rest);
}

/* Lens tabs: the figures offered for this selection. They wrap when the rail is narrow. */
.vv-explore-tabs {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 0 8px;
    border-bottom: 1px solid var(--neutral-stroke-divider-rest);
}

.vv-explore-tab {
    height: 32px;
    padding: 0 10px;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    color: var(--neutral-foreground-hint);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.vv-explore-tab:hover {
    color: var(--neutral-foreground-rest);
}

.vv-explore-tab.active {
    color: var(--neutral-foreground-rest);
    border-bottom-color: var(--accent-fill-rest);
}

/* The body scrolls; the figure paper scales to the rail's width. */
.vv-explore-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 14px 14px;
}

.vv-explore-figure-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    margin-bottom: 8px;
}

.vv-explore-figure-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.vv-explore-paper {
    background: #e9eef4;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
}

.vv-explore-paper svg {
    display: block;
    width: 100%;
    height: auto;
}

/* At 100% the SVG keeps the size it was drawn at and the paper scrolls sideways. */
.vv-explore-paper.actual {
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.vv-explore-paper.actual svg {
    width: auto;
    height: auto;
    max-width: none;
}

/* Fit / 100% zoom toggle in the figure head. */
.vv-explore-zoom {
    display: inline-flex;
    padding: 2px;
    gap: 2px;
    border-radius: 6px;
    background: var(--neutral-layer-3);
    border: 1px solid var(--neutral-stroke-divider-rest);
}

.vv-explore-zoom-btn {
    height: 22px;
    padding: 0 8px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--neutral-foreground-hint);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}

.vv-explore-zoom-btn:hover {
    color: var(--neutral-foreground-rest);
}

.vv-explore-zoom-btn.active {
    background: var(--neutral-layer-1);
    color: var(--neutral-foreground-rest);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.vv-explore-placeholder {
    padding: 28px 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--neutral-foreground-hint);
}

/* The embedded profile: the same component as the profile page, laid out in one column. */
.vv-explore-profile .vv-profile-cols {
    grid-template-columns: 1fr;
}

.vv-explore-profile .vv-stats-grid {
    grid-template-columns: repeat(2, 1fr);
}

.vv-explore-profile .vv-freq-row {
    grid-template-columns: minmax(80px, 120px) 1fr 104px;
    gap: 8px;
}

.vv-explore-profile .vv-profile-desc {
    max-width: none;
}

.vv-explore-open-profile {
    margin-top: 10px;
}

/* Footer actions: weight, open in the builder, more. */
.vv-explore-actions {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 8px 10px 8px 14px;
    background: var(--neutral-layer-1);
    border-top: 1px solid var(--neutral-stroke-divider-rest);
}

.vv-explore-weight {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.vv-explore-weight-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 2px 0 8px;
    border-radius: 6px;
    border: 1px solid var(--accent-fill-rest);
    background: var(--status-info-bg);
    font-size: 12px;
    font-weight: 600;
}

.vv-explore-weight-note {
    font-size: 11px;
    color: var(--neutral-foreground-hint);
    white-space: nowrap;
}

.vv-explore-more {
    position: relative;
}

.vv-explore-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
}

.vv-explore-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    z-index: 51;
    width: 260px;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid var(--neutral-stroke-rest);
    background: var(--neutral-layer-1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.vv-explore-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--neutral-foreground-rest);
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.vv-explore-menu-item > span:first-of-type {
    flex: 1;
}

.vv-explore-menu-item:hover:not(:disabled) {
    background: var(--neutral-layer-3);
}

.vv-explore-menu-item:disabled {
    opacity: 0.45;
    cursor: default;
}

.vv-explore-menu-hint {
    font-size: 11px;
    color: var(--neutral-foreground-hint);
}

.vv-explore-menu-sep {
    height: 1px;
    margin: 4px 0;
    background: var(--neutral-stroke-divider-rest);
}

/* Empty state: what to do, and what each selection produces. */
.vv-explore-empty {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 28px 22px 16px;
}

.vv-explore-empty-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 14px;
    background: var(--neutral-layer-3);
}

.vv-explore-empty-title {
    margin-top: 14px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
}

.vv-explore-empty-text {
    margin: 6px auto 0;
    max-width: 320px;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--neutral-foreground-hint);
}

.vv-explore-guide {
    margin-top: 18px;
}

.vv-explore-guide-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 0;
    border-bottom: 1px solid var(--neutral-stroke-divider-rest);
}

.vv-explore-guide-title {
    font-size: 13px;
    font-weight: 700;
}

.vv-explore-guide-text {
    font-size: 12px;
    line-height: 1.4;
    color: var(--neutral-foreground-hint);
}

.vv-explore-empty-foot {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--neutral-foreground-hint);
}
