/* Upload a variant list. Everything not defined here comes from analysis.css, so
   the badges, ClinVar pills and stat blocks read the same as on /analysis. */

.upload-step {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    background: var(--bs-body-bg);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.upload-step-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.upload-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    font-size: 0.8rem;
}

.upload-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.5rem 1rem;
    border: 2px dashed var(--bs-border-color);
    border-radius: 0.75rem;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}
.upload-drop .material-symbols-outlined { font-size: 2rem; color: var(--bs-primary); }
.upload-drop:hover,
.upload-drop:focus-visible,
.upload-drop.is-over {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.05);
}

/* The raw rows, as the file has them: the reader picks the header here. */
.upload-raw-wrap {
    max-height: 22rem;
    overflow: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
}
.upload-raw { white-space: nowrap; }
.upload-raw th.upload-rownum {
    position: sticky;
    left: 0;
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color);
    font-weight: 400;
    text-align: right;
    width: 2.5rem;
}
.upload-raw tr { cursor: pointer; }
.upload-raw tr:hover td { background: rgba(var(--bs-primary-rgb), 0.06); }
.upload-raw tr.is-skipped td { color: var(--bs-secondary-color); opacity: 0.55; }
.upload-raw tr.is-header td {
    background: rgba(var(--bs-primary-rgb), 0.14);
    font-weight: 700;
}
.upload-raw td { max-width: 18rem; overflow: hidden; text-overflow: ellipsis; }

.upload-samples { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.upload-sample {
    font-family: var(--bs-font-monospace);
    font-size: 0.72rem;
    padding: 0.05rem 0.4rem;
    border-radius: 0.3rem;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
}
.upload-sample.is-ok { border-color: var(--bs-success); }
.upload-sample.is-bad { border-color: var(--bs-danger); }

.upload-preview td.upload-given { color: var(--bs-secondary-color); font-family: var(--bs-font-monospace); }
.upload-check-ok { color: var(--bs-success); font-weight: 600; }
.upload-check-bad { color: var(--bs-danger); font-weight: 600; }
.upload-check-none { color: var(--bs-secondary-color); }

.upload-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.upload-am {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.05rem 0.4rem;
    border-radius: 0.3rem;
}
/* AlphaMissense's class at its published cutoff: the registry's predictor sides, as a tint under the body ink. */
.upload-am-pathogenic { background: color-mix(in srgb, var(--dcv-method-pathogenicity-damaging) 18%, transparent); color: var(--bs-body-color); }
.upload-am-ambiguous { background: rgba(var(--bs-secondary-rgb), 0.18); color: var(--bs-secondary-color); }
.upload-am-benign { background: color-mix(in srgb, var(--dcv-method-pathogenicity-tolerated) 18%, transparent); color: var(--bs-body-color); }
/* A percentile, not a call: ink, no fill, no hue. */
.upload-am-rank { color: var(--bs-secondary-color); font-weight: 500; font-size: 0.7rem; padding: 0; }

/* Everything a pane is set with — the buttons, the switches, the notes and the
   table's own sideways scrollbar — in one block that stays put while the rows
   scroll past. The scrollbar belongs here and not under the last row: it is a
   setting of the view, and it was unreachable without scrolling the page down. */
.upload-toolbar { position: sticky; top: 0; z-index: 6; background: var(--bs-body-bg); padding-top: 0.4rem; }
.upload-actions { padding: 0.4rem 0; }

.upload-scroll-mirror {
    overflow-x: auto;
    overflow-y: hidden;
    height: 0.9rem;
    margin-bottom: 0.35rem;
    overscroll-behavior-x: contain;
    /* Given a colour of its own: the platform default is a pale thin bar on a pale
       background, and a control nobody can see is one nobody will find. `::-webkit-
       scrollbar` is not an option here — Chrome ignores it once `scrollbar-width` is
       set, and the standard properties are what the other browsers read anyway. */
    scrollbar-width: thin;
    scrollbar-color: var(--bs-secondary-color) var(--bs-tertiary-bg);
}

.upload-scroll-mirror > div { height: 1px; }




/* ---------------------------------------------------------------------------
   Reading a wide table.

   The detailed tables are 20+ columns and were unusable: the page itself grew a
   horizontal scrollbar somewhere below the fold, the gene scrolled out of sight
   with everything else, and a single DisProt row could be five lines tall, so two
   rows filled the screen. Four rules fix that, and Simple (nine columns) avoids
   the question altogether.
   --------------------------------------------------------------------------- */
/* The table's own sideways scroller is the one `dcvDataTable` puts around it (`.dcv-dt-scroll`); this box only holds the pane. */
.upload-table-scroll { max-width: 100%; min-width: 0; }
/* Declared widths are the column's whole box (padding included): the layout is fixed (upload_table.js). */
.upload-table { min-width: 100%; }
table.dataTable.upload-table > :is(thead, tbody) > tr > :is(th, td) { box-sizing: border-box; } /* DataTables sets content-box */

/* The gene stays put: scrolling sideways with nothing to say which row you are on
   is what made the wide view useless. The checkbox / expander column beside it is
   pinned too, and `--upload-gene-left` (set on the table) is how far in the gene
   sits — the three tables do not all carry a lead column.

   The offset is measured from the rendered header rather than declared here: the
   lead column was pinned at a nominal 2.1rem while the browser, distributing the
   spare width of a table narrower than its box, drew it wider — and the gene column
   slid underneath it. `upload_table.js` writes `--upload-gene-left` after every draw.
   The classes are put on the columns by that module too; `:first-child` named the
   gene column itself on the tables that have no lead column. */
.upload-table tbody td.upload-lead-col,
.upload-table thead th.upload-lead-col,
.upload-table td.upload-gene-col,
.upload-table th.upload-gene-col {
    position: sticky;
    z-index: 3;
    background: var(--bs-body-bg);
}
.upload-table tbody td.upload-lead-col,
.upload-table thead th.upload-lead-col { left: 0; width: 2.1rem; min-width: 2.1rem; }
.upload-table td.upload-gene-col,
.upload-table th.upload-gene-col {
    left: var(--upload-gene-left, 0px);
    box-shadow: 0.35rem 0 0.4rem -0.35rem rgba(0, 0, 0, 0.25);
}
.upload-table thead th.upload-lead-col,
.upload-table thead th.upload-gene-col { z-index: 4; }
/* DataTables gives a *sortable* header `position: relative` (it positions its sort
   icons inside it), and that selector outranks the class rule above. The pinned title
   then read its `left` as a relative nudge instead of a sticky offset and slid on top
   of the next column — which is what the gene title overlapping "Protein" was. The
   filter row and the body cells were never sortable, so only the title row moved.
   Same declaration as above, spelled loudly enough to win. */
.upload-table thead th.upload-lead-col,
.upload-table thead th.upload-gene-col { position: sticky !important; }

.upload-table tbody tr:hover td.upload-lead-col,
.upload-table tbody tr:hover td.upload-gene-col {
    background-color: color-mix(in srgb, var(--bs-body-bg) 85%, var(--bs-emphasis-color));
}
/* The filter cells of the pinned columns are part of the header, and scroll with it. */
.upload-table thead tr.dt-col-filters th.upload-lead-col,
.upload-table thead tr.dt-col-filters th.upload-gene-col { background: var(--bs-tertiary-bg); }


.upload-table td.upload-lands-in { min-width: 14rem; }
/* The Annotations cells of a regions / proteins table: chips grouped by family. Like the Actions cell, not clamped to one line (a chip is
   never cut across, the "+n" fold must stay visible); at most six chips and the fold, so a row is two or three lines at the most. */
:is(html.dcv-frame, .dcv-tables) td.upload-chips-col > .dcv-cell-clamp { display: block; overflow: visible; max-height: none; width: auto; min-width: 0; }
.upload-chips { display: block; line-height: 1.55; }
.upload-chip-group { display: inline; margin-right: .3rem; }
.upload-chips .analysis-focus-ann { white-space: nowrap; }
.upload-chips .analysis-focus-ann { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.upload-chip-more { display: inline; }
.upload-chip-more > summary { display: inline; cursor: pointer; font-size: .72rem; color: var(--bs-link-color); font-weight: 600; list-style: none; }
.upload-chip-more > summary::-webkit-details-marker { display: none; }
.upload-chip-more[open] { display: block; margin-top: .15rem; }
.upload-chip-rest-row { display: block; line-height: 1.55; }
.upload-chip-family { font-size: .68rem; color: var(--bs-secondary-color); margin-right: .2rem; }
.upload-chip-counts { font-size: .7rem; color: var(--bs-secondary-color); line-height: 1.4; }
.upload-table td.upload-types { min-width: 9rem; }
/* The Flags cell of the cohort table: each flag is the site's own badge(s) in one wrapper that carries the test as its tooltip (the inner badges ignore the
   pointer so the wrapper's title is the one that shows). */
.upload-flags { display: flex; flex-wrap: wrap; gap: .2rem .35rem; line-height: 1.4; }
.upload-flag { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .15rem; max-width: 100%; }
.upload-flag > * { pointer-events: none; font-size: .7rem; }
.upload-flag .summary-region-type-badge, .upload-flag .analysis-dgroup-badge, .upload-flag .dcv-badge { font-size: .7rem !important; }

.upload-pane-foot {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bs-border-color);
}

/* The cells of the Filters row (the bar's toggle) in the upload kinds. */
.upload-table .analysis-col-filter { min-width: 3.2rem; font-size: 0.75rem; }
.upload-table .analysis-col-filter.is-num { text-align: right; min-width: 3.4rem; font-variant-numeric: tabular-nums; }
.upload-expand {
    border: 0;
    background: transparent;
    color: var(--bs-primary);
    padding: 0 0.25rem;
    font-size: 0.9rem;
    line-height: 1;
}
.upload-child { padding: 0.5rem 0.75rem; background: var(--bs-tertiary-bg); }
.upload-child table { font-size: 0.75rem; margin: 0; }
.upload-enriched {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.05rem 0.4rem;
    border-radius: 0.3rem;
    background: var(--bs-secondary-bg);
    color: var(--bs-body-color);
}
/* Variant chips flow along the row rather than stacking into a tall one. */
.upload-table td.upload-which { min-width: 12rem; }
.upload-table td.upload-region-name { min-width: 12rem; }
.upload-table td.upload-regional-infos { min-width: 16rem; }
.upload-regional-info { display: inline-flex; align-items: center; gap: 0.2rem; margin: 0 0.12rem 0 0; }
/* The frequency of a common variant is the one number worth a second look. */
.upload-af-common { font-weight: 600; }
.upload-table thead tr.dt-col-filters select.analysis-col-filter { max-width: 7.5rem; }

/* --- Datasets home (Wave 45): the result pages' look: sections with a title and a muted note, panels and cards on the site's tokens (radius, border,
   spacing scale), kind kickers, segmented small buttons. My sets is a compact list; the three kinds are equal-height cards. ------------------------ */
.dk-home-sec { margin-bottom: var(--dcv-s5); }
.dk-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--dcv-s3); margin-bottom: var(--dcv-s2); }
.dk-sec-head h2 { font-size: var(--dcv-fs-value); font-weight: 650; margin: 0; }
.dk-sec-head span { font-size: var(--dcv-fs-label); color: var(--dcv-ink-muted); }
.dk-panel { border: 1px solid var(--dcv-border); border-radius: var(--dcv-radius); background: var(--dcv-surface); padding: 0 var(--dcv-s4); }
.dk-kicker { font-size: var(--dcv-fs-kicker); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dcv-ink-muted); }
.dk-empty { margin: 0; padding: var(--dcv-s3) 0; font-size: var(--dcv-fs-body); color: var(--dcv-ink-muted); }
.yd-dataset {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 var(--dcv-s4);
    padding: var(--dcv-s3) 0 var(--dcv-s3) var(--dcv-s3);
    border-top: 1px solid var(--dcv-border);
}
.yd-dataset:first-child { border-top: 0; }
.yd-dataset-id { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; gap: 1px; }
.yd-dataset-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--dcv-s2); min-width: 0; }
.yd-dataset-name { font-weight: 650; font-size: var(--dcv-fs-value); overflow-wrap: anywhere; }
.yd-dataset-meta { font-size: var(--dcv-fs-label); color: var(--dcv-ink-muted); overflow-wrap: anywhere; }
.yd-dataset-actions { display: flex; align-items: center; gap: var(--dcv-s2); flex-wrap: wrap; justify-content: flex-end; }
.yd-dataset-actions .btn-group .btn { font-size: .78rem; }
/* My sets: the set whose cohort table is drawn below is marked by a rule in the own-data colour; the active set carries the navbar pill's dot. */
.yd-set { border-left: 3px solid transparent; }
.yd-set.is-open { border-left-color: var(--dcv-own-data); }
/* The three kinds: equal-height cards (head, the site's sets, the ways to make your own pinned to the foot), chips per registry group in the registry's
   own badge colours with a size in each; a group of more than three folds the rest. The Variants card holds a search over the variants the site holds. */
.yd-set-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--dcv-s3); }
.yd-set-cards > [data-yd-col] { display: flex; min-width: 0; }
@media (max-width: 991.98px) { .yd-set-cards { grid-template-columns: minmax(0, 1fr); } }
.yd-set-card { width: 100%; display: flex; flex-direction: column; padding: var(--dcv-s3) var(--dcv-s4); border: 1px solid var(--dcv-border); border-radius: var(--dcv-radius); background: var(--dcv-surface); }
.yd-set-card.is-called { border-color: var(--bs-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--bs-primary) 35%, transparent); }
.yd-set-card-head { margin-bottom: var(--dcv-s2); }
.yd-set-card-head h3 { font-size: var(--dcv-fs-value); font-weight: 650; margin: 2px 0 0; line-height: 1.3; }
.yd-set-card-head p { margin: 2px 0 0; font-size: var(--dcv-fs-label); color: var(--dcv-ink-muted); }
.yd-set-card-body { flex: 1 1 auto; }
.yd-make { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--dcv-s2); margin-top: var(--dcv-s3); padding-top: var(--dcv-s2); border-top: 1px solid var(--dcv-border); }
.yd-make .btn-group .btn { font-size: .78rem; }
.yd-builtin-group { margin: var(--dcv-s2) 0 var(--dcv-s3); }
.yd-builtin-group-name { display: block; margin-bottom: var(--dcv-s1); font-size: var(--dcv-fs-kicker); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dcv-ink-muted); }
.yd-builtin-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.35rem; min-width: 0; }
button.yd-builtin-set { cursor: pointer; font-family: inherit; text-align: left; }
button.yd-builtin-set:hover:not(:disabled), button.yd-builtin-set:focus-visible { outline: 2px solid var(--bs-body-color); outline-offset: 1px; }
button.yd-builtin-set:disabled { cursor: default; opacity: 0.6; }
button.yd-builtin-set.is-busy { opacity: 0.6; cursor: progress; }
.yd-builtin-n { font-weight: 400; font-variant-numeric: tabular-nums; opacity: 0.85; }
.yd-more[open] { flex: 1 1 100%; }
.yd-more > summary { display: inline-block; cursor: pointer; font-size: 0.78rem; color: var(--bs-secondary-color); list-style: none; padding: 0.1rem 0.3rem; }
.yd-more > summary::-webkit-details-marker { display: none; }
.yd-more > summary::before { content: "+ "; }
.yd-more[open] > summary { display: none; }
.yd-vset-source { display: flex; flex-wrap: nowrap; width: 100%; margin-bottom: var(--dcv-s2); }
.yd-vset-source .btn { flex: 1 1 auto; }
.yd-vset-search { position: relative; margin-bottom: 0.4rem; }
.yd-vset-search .ps-suggest { position: absolute; z-index: 5; left: 0; right: 0; box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.12); }
.yd-vset-msg { margin: 0.3rem 0; }
.yd-set-card.is-busy { cursor: progress; }
.yd-vset-foot { margin: var(--dcv-s2) 0 0; font-size: var(--dcv-fs-label); color: var(--dcv-ink-muted); }
.yd-active { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; font-weight: 600; }
/* A built list: the steps above it fold into this one line (name, size, Change mapping). */
.yd-built {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
    margin-bottom: 0.75rem;
}
.yd-built .btn-link { font-size: 0.85rem; }

/* Gene + Map in the first column of the result tables. */
.upload-gene-cell { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.upload-map-btn {
    display: inline-flex; align-items: center; gap: 0.1rem;
    padding: 0 0.35rem; border: 1px solid var(--dcv-own-data); border-radius: 999px;
    background: transparent; color: var(--dcv-own-data); font-size: 0.7rem; line-height: 1.3; font-weight: 600;
}
.upload-map-btn .material-symbols-outlined { font-size: 0.85rem; line-height: 1; height: 0.85rem; width: 0.85rem; overflow: hidden; }
.upload-map-btn:hover, .upload-map-btn:focus-visible { background: var(--dcv-own-data); color: #fff; }


/* --- The motif classes, named, in the Detailed view --------------------------
   One chip per ELM class with its random-match probability beside it. The
   probability is the number that decides whether the change is read as evidence
   (calibration.MOTIF_SPECIFICITY), so it is on the chip and not in a tooltip; a
   class that clears that boundary is marked and drawn at full strength, the rest
   are dimmed because they match often by chance. */
.upload-table td.upload-motif-col { min-width: 14rem; }
.upload-motif {
    display: inline-block;
    font-size: 0.68rem;
    line-height: 1.35;
    padding: 0 0.3rem;
    margin: 0 0.15rem 0.15rem 0;
    border: 1px solid;
    border-radius: 0.3rem;
    opacity: 0.6;
    white-space: nowrap;
}
.upload-motif-specific { opacity: 1; font-weight: 600; }
.upload-motif-p { font-variant-numeric: tabular-nums; opacity: 0.75; }
/* "3/19" — how many substitutions at this residue do the same thing. A separate
   question from the class's own rarity, and highlighted when few of them do. */
.upload-motif-odds {
    display: inline-block;
    font-size: 0.66rem;
    font-variant-numeric: tabular-nums;
    padding: 0 0.3rem;
    border-radius: 0.3rem;
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color);
}
.upload-motif-odds-rare {
    background: var(--bs-secondary-bg);
    color: var(--bs-body-color);
    font-weight: 700;
}
/* An ordered residue keeps its motif list and loses its emphasis: the classes are
   shown, they are simply not read as meaning anything there. */
.upload-motif-unread {
    font-size: 0.66rem;
    font-style: italic;
    color: var(--bs-secondary-color);
    border-bottom: 1px dotted currentColor;
}
.upload-motif-unread-wrap { opacity: 0.5; }

/* Check the rows: what is left out before building, in the results' settings look (.upload-settings: a kicker and a joined control).
   The reader's own frequency threshold is one group: its number, which frequency, the presets and the calculator. */
.upload-prep { margin-bottom: .5rem; }
.upload-prep .upload-settings-group:first-child { padding-left: 0; }
.upload-prep .upload-settings-group.upload-max-af { flex-wrap: wrap; border-right: 0; }
.upload-max-af label.upload-settings-label { font-weight: 700; margin: 0; }
.upload-max-af input { width: 6.5rem; }
.upload-max-af select { width: auto; }
.upload-max-af > .upload-max-af-source:empty { display: none; }
/* The variant step's field labels and the one-choice-of-five: the same kicker, the examples of the chosen format under it. */
.upload-field-narrow { max-width: 14rem; }
.upload-field-wide { max-width: 24rem; }
.upload-format-hints > [data-format-hint] { display: none; }
.upload-format-hints code { font-size: inherit; }
.upload-step:has(#upload-vf-change:checked) .upload-format-hints > [data-format-hint="change"],
.upload-step:has(#upload-vf-split:checked) .upload-format-hints > [data-format-hint="split"],
.upload-step:has(#upload-vf-position:checked) .upload-format-hints > [data-format-hint="position"],
.upload-step:has(#upload-vf-genomic:checked) .upload-format-hints > [data-format-hint="genomic"],
.upload-step:has(#upload-vf-notation:checked) .upload-format-hints > [data-format-hint="notation"] { display: inline; }
.upload-rarity-calc[open] { padding: .5rem .75rem; border: 1px solid var(--bs-border-color); border-radius: var(--dcv-radius, .375rem); max-width: 34rem; }
.upload-rarity-grid { display: grid; grid-template-columns: max-content 9rem; align-items: center; gap: .35rem .75rem; margin: .5rem 0; }
.upload-rarity-result { display: flex; align-items: center; gap: .75rem; margin-bottom: .35rem; }
.upload-rarity-result strong { font-variant-numeric: tabular-nums; }
.upload-rarity-presets { min-width: 25rem; }
.upload-rarity-presets .dropdown-item { white-space: normal; }
.upload-rarity-presets .dropdown-item:disabled .small { color: var(--bs-secondary-color); }

/* The checkbox column needs no more than the box. */
.upload-table th.upload-lead-col, .upload-table td.upload-lead-col { padding-left: 0.3rem; padding-right: 0.1rem; }

/* A header breaks between words only, never inside one ("Conservati-on", "Po-s"): each column is declared at least as wide as its longest
   header word (TITLE_PX in js/upload/upload_table.js), and the table language's `overflow-wrap: break-word` on the header is switched off here. */
.upload-table thead th { overflow-wrap: normal; word-break: normal; }

/* --- Your data: a regions / proteins list is the tab's dataset; the line that says so ------ */
.yd-saved-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; padding: 0.45rem 0.75rem; border-radius: 0.4rem;
    border-left: 4px solid var(--dcv-own-data); background: var(--bs-tertiary-bg); font-size: 0.85rem; }
.yd-saved-line .material-symbols-outlined { font-size: 1.05rem; align-self: center; color: var(--dcv-own-data); }

/* --- "New protein set" dialog (static/mockups/dataset_focus_2026-11, section 4) ----------- */
.ps-dialog { max-width: 40rem; }
.ps-body { display: grid; gap: 0.75rem; font-size: 0.875rem; }
.ps-body label { font-size: 0.75rem; font-weight: 600; display: block; margin-bottom: 0.2rem; }
.ps-seg { display: flex; flex-wrap: wrap; }
.ps-suggest { border: 1px solid var(--bs-border-color); border-radius: 0.35rem; margin-top: 0.25rem; font-size: 0.82rem; max-height: 14rem; overflow-y: auto; background: var(--bs-body-bg); }
.ps-opt { display: block; width: 100%; text-align: left; padding: 0.3rem 0.6rem; border: 0; background: transparent; color: var(--bs-body-color); }
.ps-opt:hover, .ps-opt:focus { background: rgba(var(--bs-primary-rgb), 0.1); outline: 0; }
.ps-opt code, .ps-suggest code { color: var(--bs-body-color); }
.ps-none { padding: 0.3rem 0.6rem; }
.ps-evidence { display: grid; gap: 0.3rem; margin-top: 0.6rem; }
.ps-evidence .ps-clingen { max-width: 22rem; }
.ps-checks { display: flex; flex-wrap: wrap; }
.ps-answer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; padding: 0.55rem 0.75rem; border-radius: 0.4rem;
    border-left: 4px solid var(--dcv-own-data); background: var(--bs-tertiary-bg); min-height: 2.4rem; }
.ps-answer b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.ps-answer.is-refused { border-left-color: var(--bs-border-color); }
.ps-counts { display: flex; flex-wrap: wrap; gap: 0.1rem 0.9rem; width: 100%; font-variant-numeric: tabular-nums; }
.ps-version { width: 100%; font-size: 0.75rem; color: var(--bs-secondary-color); }
.ps-genes { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ps-genes span { padding: 0.05rem 0.45rem; border: 1px solid var(--bs-border-color); border-radius: 999px; font-size: 0.78rem; }
.ps-genes .more { border-style: dashed; color: var(--bs-secondary-color); }
.ps-foot .note { font-size: 0.75rem; color: var(--bs-secondary-color); margin-right: auto; }

/* The open set (docs/DATASETS_BY_KIND_DESIGN_2026-11.md, owner amendment 2026-11-20, js/upload/datasets_kinds.js): the set bar and the three level tabs over a set's table.
   Pieces as the mockup draws them (static/mockups/datasets_by_kind_2026-11): tabs with a rule under the open kind, a quiet bar of name · size · origin
   · two pickers · actions. Colours only from existing tokens; the dot is the own-data colour, as in My sets and the navbar pill. */
.dk-kinds { margin-bottom: 1rem; }
.dk-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--bs-border-color); margin: 0.75rem 0; }
.dk-tabs:empty { display: none; }
.dk-tab { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.55rem 0.9rem; font-weight: 600; background: none; border: 0;
    color: var(--bs-secondary-color); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.dk-tab:hover { color: var(--bs-body-color); }
.dk-tab.is-active { color: var(--bs-primary); border-bottom-color: var(--bs-primary); }
.dk-tab .material-symbols-outlined { font-size: 18px; }
.dk-setbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding: 0.5rem 0.75rem; border-radius: 0.4rem;
    background: var(--bs-tertiary-bg); font-size: 0.85rem; }
.dk-setbar .dk-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--dcv-own-data); flex: none; }
.dk-setbar .dk-name { font-weight: 700; font-size: 0.95rem; }
.dk-setbar .dk-kind { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bs-secondary-color);
    border: 1px solid var(--bs-border-color); border-radius: 999px; padding: 0 0.5rem; }
.dk-setbar .dk-meta { color: var(--bs-secondary-color); }
.dk-setbar .dk-origin { max-width: 20rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-setbar select { width: auto; max-width: 14rem; font-size: 0.8rem; }
.dk-setbar .dk-actions { margin-left: auto; display: flex; gap: 0.35rem; align-items: center; }
.dk-setbar .dk-actions .btn { font-size: 0.78rem; }
/* The slot of the cohort cards (K5 / K7 / K8): empty until they land. */
.dk-cards-slot:empty { display: none; }
.dk-cards-slot { margin-top: 0.75rem; }
/* The cohort cards (cohort_cards.js): the kit's 12-column grid, three cards a row (the two owner cards, top hits 8 + pathogenicity 4, first), two below 1200 px, one below 768 px.
   The slot takes `.stats-dash` for the kit's chart chrome; its own page padding is not wanted here. */
.dk-cards-slot.stats-dash { padding: 0; margin-top: 0.75rem; }
.dk-cards-slot .dk-cards-bar { margin-bottom: 0.5rem; }
.dk-cards-slot .dk-cards-grid > .mk-card { grid-column: span 4 !important; min-width: 0; }
.dk-cards-slot .dk-cards-grid > .mk-card.dk-wide { grid-column: span 8 !important; }
.dk-cards-slot .mk-card.is-filtering { border-color: var(--bs-primary); }
.dk-cards-slot .mk-top td { vertical-align: middle; }
.dk-cards-slot .mk-top td .upload-flags { display: inline-flex; flex-wrap: wrap; gap: 0.15rem; }
@media (max-width: 1199px) {
    .dk-cards-slot .dk-cards-grid > .mk-card, .dk-cards-slot .dk-cards-grid > .mk-card.dk-wide { grid-column: span 6 !important; }
}
@media (max-width: 767px) {
    .dk-cards-slot .dk-cards-grid > .mk-card, .dk-cards-slot .dk-cards-grid > .mk-card.dk-wide { grid-column: span 12 !important; }
}
/* A kind with no set open shows that kind's own card and sets: the home, narrowed. */
.upload-shell[data-kind-view="proteins"] [data-yd-col]:not([data-yd-col="proteins"]),
.upload-shell[data-kind-view="regions"] [data-yd-col]:not([data-yd-col="regions"]),
.upload-shell[data-kind-view="variants"] [data-yd-col]:not([data-yd-col="variants"]),
.upload-shell[data-kind-view="proteins"] #yd-datasets .yd-set:not([data-kind="proteins"]),
.upload-shell[data-kind-view="regions"] #yd-datasets .yd-set:not([data-kind="regions"]),
.upload-shell[data-kind-view="variants"] #yd-datasets .yd-set:not([data-kind="variants"]) { display: none; }
/* A set open in its kind's view: the bar names it, so the saved line keeps only what the bar does not say (the readers' links, a refusal);
   its buttons stay in the DOM and the bar's menu presses them. */
.upload-shell[data-kind-view] #yd-saved .yd-built > :not(.w-100) { display: none !important; }
/* The levels of the open set: the variants results belong to the Variants level only; a level the kind has no table for says so (`data-soon`). The cohort
   cards sit over the Proteins table, so their slot is shown at that level. A regions set's own two-tab card keeps its title only: the level tabs switch. */
.upload-shell[data-level="proteins"] #yd-variant-results,
.upload-shell[data-level="regions"] #yd-variant-results,
.upload-shell[data-level="variants"] #yd-set-results,
.upload-shell[data-level="regions"][data-kind-view="variants"] #yd-set-results,
.upload-shell[data-level="regions"][data-kind-view="proteins"] #yd-set-results,
.upload-shell:not([data-level="regions"]) #yd-regions-level,
.upload-shell:not([data-level="variants"]) #yd-set-variants,
.upload-shell[data-soon="1"] #yd-set-results,
.upload-shell[data-soon="1"] #yd-variant-results,
.upload-shell[data-level="regions"] #yd-kind-cards,
.upload-shell[data-level="variants"] #yd-kind-cards { display: none !important; }
.upload-shell[data-level] #yd-set-results [data-rs-view]:not(.is-active) { display: none; }
.dk-soon { padding: 0.9rem 1rem; border: 1px dashed var(--bs-border-color); border-radius: 0.5rem; color: var(--bs-secondary-color); font-size: 0.9rem; }
/* The Variants level's one rule (set_variants_view.js): one line, the switch for VUS, the rule in full closed. */
.dk-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; padding: 0.5rem 0.75rem; margin-bottom: 0.5rem; border: 1px solid var(--bs-border-color); border-radius: 0.5rem; font-size: 0.85rem; color: var(--bs-secondary-color); }
.dk-rule .dk-rule-line { flex: 1 1 24rem; min-width: 0; }
.dk-rule .dk-rule-line strong { color: var(--bs-body-color); }
.dk-rule .dk-rule-vus { display: inline-flex; align-items: center; gap: 0.4rem; padding-left: 2.5rem; font-size: 0.85rem; color: var(--bs-body-color); }
.dk-rule .dk-rule-more { flex: 1 1 100%; }
.dk-rule .dk-rule-more summary { cursor: pointer; }
.dk-rule .dk-rule-more p { margin: 0.35rem 0 0; }
/* The set bar's way back to the home (Wave 45): the home is the chooser, `/datasets/` always shows it. */
.dk-setbar .dk-back { font-size: var(--dcv-fs-label); font-weight: 600; text-decoration: none; white-space: nowrap; }
.dk-setbar .dk-back:hover { text-decoration: underline; }
/* "Build from DisCanVis data" (Proteins) and "Find variants in DisCanVis data" (Variants): the option row above "Make your own", the same on the cards. */
.yd-from { display: flex; flex-direction: column; gap: var(--dcv-s1); margin-top: var(--dcv-s2); padding-top: var(--dcv-s2); border-top: 1px solid var(--dcv-border); }
.yd-from .btn-group { display: flex; }
.yd-from .btn-group .btn { flex: 1 1 auto; font-size: .78rem; padding-left: .4rem; padding-right: .4rem; }
.yd-from-kicker { display: block; margin-bottom: var(--dcv-s1); }
.yd-set-card-body > .yd-from-kicker { margin-top: 0; }
.yd-make .btn-group .btn-group .btn { font-size: .78rem; }
