/* Shared styling for protocol detail pages (see plate.js). Kept separate from the
   landing page's CSS so a detail page can also be rendered inside an overlay iframe. */
:root{
  --dark-navy:#3F3E57; --pink:#EC3A94; --white:#fff; --grey:#6b7280; --line:#e5e7eb;
  --buffer:#DFE3EA; --font:'Figtree',sans-serif;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
/* The three rules below are PAGE CHROME, and index.html and designer.html load this file
   for the plate alone -- so they are scoped to .detail-page, the class the detail bodies
   carry. Unscoped, `section` drew every landing-page section as a rounded white card and
   `body` pushed the hero in from the edges. Same trap as `.plate` further down. */
body.detail-page{font-family:var(--font);color:var(--dark-navy);background:#fafafa;line-height:1.5;padding:26px 20px 60px}
.wrap{max-width:1180px;margin:0 auto}
.detail-page h1{font-size:24px;font-weight:700;margin-bottom:2px}
.sub{color:var(--grey);font-size:15px;margin-bottom:20px;max-width:82ch}
.tag{display:inline-block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;
     color:var(--pink);margin-bottom:6px}
.detail-page section{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px 22px;margin-bottom:20px}
.note{font-size:14px;color:var(--grey);max-width:82ch}
/* The eyebrow and the link to this page's own tab, on one line. */
.det-eyebrow{display:flex;align-items:center;gap:8px}
.det-open{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;
  border-radius:7px;color:var(--pink);text-decoration:none;margin-bottom:6px}
.det-open:hover{background:rgba(236,58,148,.10)}
/* WHAT THIS PAGE IS ABOUT, as labelled facts rather than a paragraph with no name on it: the
   protocol being looked at, and what that protocol says it does. */
.det-facts{margin:0 0 20px;max-width:82ch}
.det-facts dt{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;
  color:var(--grey);margin-top:12px}
.det-facts dt:first-of-type{margin-top:4px}
.det-facts dd{margin:3px 0 0;font-size:15px;color:var(--dark-navy)}

/* mode banner — makes it obvious whether this is a design or a real run */
.mode{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;
      padding:5px 11px;border-radius:999px;margin-bottom:14px}
.mode.design{background:#eef2ff;color:#4338ca}
.mode.result{background:#ecfdf5;color:#047857}
/* Between the two: not a simulation, not yet a measurement -- the plate this step laid out. */
.mode.record{background:#fff7ed;color:#b45309}

/* plate */
.plate{display:inline-block;border:2px solid var(--dark-navy);border-radius:10px;padding:10px 12px 12px;
       background:#fff;overflow-x:auto;max-width:100%}
.plate-title{font-size:14px;font-weight:700;margin:0 0 8px}
table.wells{border-collapse:separate;border-spacing:4px}
table.wells th{font-size:11px;font-weight:700;color:var(--grey);width:26px;height:20px;text-align:center}
table.wells td{padding:0}
.well{width:26px;height:26px;border-radius:50%;border:1px solid #cbd2dc;background:#fff;cursor:help}
.well.empty{background:#fff;border-style:dashed;border-color:#e3e7ee;cursor:default}
/* results hooks — honoured by the renderer, unused until run data is wired in */
.well.flag-fail{box-shadow:0 0 0 2px #dc2626}
.well.flag-omitted{opacity:.35}

.plates{display:flex;flex-wrap:wrap;gap:20px}

/* The plate and the data it produced, side by side on a laptop. The plate keeps its natural
   width -- it is a fixed grid of wells and squeezing it helps nobody -- and the traces take
   what is left. Below 1100px they stack, which is also what the estimator's overlay gets. */
.data-section{margin-top:22px}
/* One heading per section, a step below the page title, so the two halves are named rather
   than inferred from what happens to be in them. */
.sec-h{font-size:18px;font-weight:700;color:var(--dark-navy,#2B3445);margin:0 0 14px;
  padding-bottom:9px;border-bottom:1px solid var(--line,#e3e6ec)}
.sec-sub{display:inline;margin-left:9px;font-size:12.5px;font-weight:500;color:#8a919c}
.plate-and-data{display:grid;grid-template-columns:1fr;gap:22px;align-items:start}
@media (min-width:1100px){ .plate-and-data{grid-template-columns:auto minmax(520px,1fr)} }
/* The plate is a fixed grid in a flexible column, so it sits in the middle of its half rather
   than hugging the left edge with the empty gap beside it. */
.plate-side{min-width:0;display:flex;flex-direction:column;align-items:center}
.plate-side .legend,.plate-side .note{align-self:stretch}
.plate-side .legend{margin-top:10px}
.data-col{min-width:0}
.data-col[hidden]{display:none}
.data-col-head{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700;
  color:var(--dark-navy,#1f2937);padding-bottom:8px;border-bottom:1px solid #e5e7eb;margin-bottom:6px}
.data-col-head .material-icons{font-size:17px;color:#2E7D32}
.data-col-sub{margin-left:auto;font-size:11.5px;font-weight:500;color:#6b7280}
/* Inside the column the viewer is a panel, not an overlay: no double scrollbars, and the chart
   takes the height it can rather than the overlay's fixed 340. */
.data-col .raw-chart-wrap{height:300px}
.data-col .raw-run+.raw-run{margin-top:18px;padding-top:16px}

/* A well that produced a trace is worth pointing at; the lit one is the trace under the
   pointer. Outline rather than a fill change, so the well keeps saying what was in it. */
/* A well the loaded file describes but this run never visited: leftover from whatever template
   the bench edited. Shown, so it can be cleaned up, but plainly not part of the run. */
.well.flag-unused{opacity:.28;filter:grayscale(.6)}
.well.has-trace{cursor:pointer}
.well.is-lit{outline:2.5px solid #111827;outline-offset:1px;box-shadow:0 0 0 3px rgba(17,24,39,.12)}
/* The column the pointer is in -- a lighter mark than the row, because the row is the answer
   to "which curve" and the column is the answer to "which part of the run". */
.well.in-col{box-shadow:0 0 0 3px rgba(37,99,235,.18)}

/* The visit strip under the plate grid: which columns are used, in what order, for how long. */
.visits{border-collapse:collapse;margin-top:2px}
.visits th{width:18px}
.visits td{width:26px;text-align:center;padding:2px 0 0;vertical-align:top}
.visits td.on .v-step{display:block;font-size:10px;font-weight:700;color:#2E7D32;line-height:1.1}
.visits td.on .v-secs{display:block;font-size:9.5px;color:#8a919c;line-height:1.2}
.visits td.on{cursor:pointer;border-radius:4px}
.visits td.in-col{background:rgba(37,99,235,.12)}

/* --- assay steps, after the instrument's own table ------------------------------------ */
/* SCROLLS, NOT CLIPS. Six columns come to ~820px and `overflow:hidden` simply cut the last two
   off on a phone -- the step's time and speed vanished with nothing to say they were there. */
.gsteps{border:1px solid var(--line,#e3e6ec);border-radius:10px;overflow-x:auto;
  -webkit-overflow-scrolling:touch;background:#fff}
.gsteps-head,.gsteps-row{min-width:760px}
/* WITHOUT THE ADMIN BOX the probe-plate column is not merely hidden -- its track is removed, or
   the grid keeps a 210px gap where it used to be. */
html:not(.admin-on) .gsteps-head,html:not(.admin-on) .gsteps-row{
  grid-template-columns:44px minmax(210px,1fr) 150px 74px 84px;min-width:540px}
html:not(.admin-on) .gsteps .admin-only{display:none}
/* ...UNLESS THE MEASUREMENT HAPPENED ON THE PROBE PLATE: then its column is the customer's too
   (Xi, 2026-11-09). See stepsTableHTML.
   Its strip sits UNDER the sample plate's in one column, so the table keeps the customer
   table's width whether or not the admin box is ticked. */
html .gsteps--probe .gsteps-head,html .gsteps--probe .gsteps-row{
  grid-template-columns:44px minmax(210px,1fr) 150px 74px 84px;min-width:540px}
.gs-plate-stack{display:flex;flex-direction:column;gap:3px;min-width:0}
/* And where it IS shown, it carries the same green dashed marker as every other admin-only
   block, so nobody mistakes it for something the customer can see. */
html.admin-on .gsteps-row.admin-only{background:#f6fbf7;
  border-left:1.5px dashed var(--admin-green,#1b7a3d);
  border-right:1.5px dashed var(--admin-green,#1b7a3d)}
html.admin-on .gsteps-head .gs-plate.admin-only,
html.admin-on .gsteps-row > .admin-only{color:var(--admin-green,#1b7a3d)}
/* The wrapper around the probe strip has to behave like the cell it replaced. */
.gs-probe-cell{display:block;min-width:0}
html.admin-on .gsteps-head .gs-plate.admin-only{border-left:1.5px dashed var(--admin-green,#1b7a3d);
  border-right:1.5px dashed var(--admin-green,#1b7a3d);padding:0 6px}
.gsteps-head,.gsteps-row{display:grid;
  grid-template-columns:44px minmax(210px,1fr) minmax(210px,1fr) 150px 74px 84px;
  align-items:center;gap:10px;padding:7px 12px}
.gsteps-head{background:#f6f7fb;font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.4px;color:#6b7280;border-bottom:1px solid var(--line,#e3e6ec)}
.gsteps-row{border-bottom:1px solid #f1f3f5;font-size:12.5px}
.gsteps-row:last-child{border-bottom:0}
.gsteps-row:hover,.gsteps-row.is-lit{background:rgba(37,99,235,.08)}
.gs-n{font-weight:700;color:var(--dark-navy,#2B3445)}
.gs-strip{display:inline-flex;gap:2px}
.gs-col{width:17px;height:19px;line-height:19px;text-align:center;font-size:10px;color:#9aa1ac;
  background:#f4f5f8;border-radius:3px}
.gs-col.on{background:#2E7D32;color:#fff;font-weight:700}
.gs-probe .gs-col.on{background:#0f766e}
.gs-type{display:flex;align-items:center;gap:6px;font-weight:600;color:var(--dark-navy,#2B3445)}
.gs-num{text-align:right;color:#4b5563;font-variant-numeric:tabular-nums}
/* The band that separates one pass of the probes from the next. Sticky-free and quiet: it is a
   divider, not a heading competing with the section's own. */
.gsteps-run{position:sticky;left:0;padding:6px 12px;background:#f3f4f8;
  border-top:1px solid var(--line,#e3e6ec);border-bottom:1px solid var(--line,#e3e6ec);
  font-size:10.5px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:#6b7280}
.gsteps-run:first-child{border-top:0}
/* THE LINE BETWEEN CYCLES. One row saying what happened between them -- the probe was stripped
   and the ligand loaded again -- and what the next one is, so a reader can tell 25 nM from
   100 nM without counting. The stripping steps themselves stay admin-only; this is the whole
   of it for everyone else (Xi, 2026-10-12). */
.gsteps-cycle{position:sticky;left:0;display:flex;align-items:baseline;gap:10px;
  justify-content:space-between;padding:5px 12px;background:#fbf5f9;
  border-top:1px dashed rgba(236,58,148,.35);border-bottom:1px solid var(--line,#e3e6ec);
  font-size:10.5px;letter-spacing:.4px}
/* Not uppercased: the label carries a unit, and "60 NM" is not a unit (Xi, 2026-10-24). The
   cycle label sits to the right in every band, so a reader scans one column of concentrations
   down the plate; "Regeneration" keeps the left that space-between gives it. */
.gsteps-cycle .gsc-what{color:#b3457f;font-weight:700}
.gsteps-cycle .gsc-next{color:#6b7280;font-weight:600}
.gsteps-cycle-first{background:#f8f9fb;border-top:0;justify-content:flex-end}
.gsteps-foot{padding:7px 12px;background:#fbfbfc;font-size:11.5px;color:#6b7280}
.steps tr.is-lit{background:rgba(37,99,235,.10)}
.steps tr.is-lit td{font-weight:700}
/* An older .rowmap pair lived here. `.rowmap span` out-specified `.rowmap-label`, so every
   label centred itself inside its own column and the legend read ragged -- the grey entries
   worst of all, because their two lines are the most unequal. The live rules are below. */

.legend{display:flex;flex-wrap:wrap;gap:12px 20px;margin:14px 0 0;font-size:13px;color:var(--grey)}
.legend .k{display:flex;align-items:center;gap:7px}
.legend .sw{width:16px;height:16px;border-radius:50%;border:1px solid #cbd2dc}

table.steps{border-collapse:collapse;width:100%;margin-top:16px;font-size:14px}
table.steps th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--grey);
  font-weight:700;padding:6px 10px;border-bottom:1px solid var(--line)}
table.steps td{padding:7px 10px;border-bottom:1px dashed var(--line);vertical-align:top}
table.steps td.w{font-variant-numeric:tabular-nums;font-weight:700;white-space:nowrap}
.chip{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:6px;vertical-align:-1px;
      border:1px solid #cbd2dc}

.controls{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;margin-bottom:18px}
.field{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:var(--grey)}
.field input{width:104px;padding:7px 9px;border:1px solid var(--line);border-radius:7px;
  font-family:inherit;font-size:14px;font-weight:600;color:var(--dark-navy)}
.summary{font-size:14px;color:var(--grey);margin:4px 0 16px}
.summary b{color:var(--dark-navy)}
@media (max-width:700px){ body.detail-page{padding:16px 12px 40px} .detail-page section{padding:14px 13px} }

/* ---- 3D hero (first plate in projection + step timings) ---- */
.hero-wrap{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px 10px;margin-bottom:18px}
.hero-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:4px}
.hero-title{font-size:15px;font-weight:700}
.hero-hint{font-size:12px;color:var(--grey)}
svg.hero3d{width:100%;height:auto;display:block;overflow:visible}
svg.hero3d .hero-lbl{font-family:var(--font);font-size:12px;font-weight:700;fill:#3F3E57}
svg.hero3d .hero-time{font-family:var(--font);font-size:12px;font-weight:700;fill:#EC3A94;text-anchor:middle}
svg.hero3d .hero-col{font-family:var(--font);font-size:11px;font-weight:700;fill:#9aa3b2}
.hero-total{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:baseline;font-size:14px;color:var(--grey);
  border-top:1px solid var(--line);margin-top:6px;padding-top:10px}
.hero-total b{color:var(--dark-navy)}
.hero-total-eq b{color:var(--pink);font-size:16px}

.rep-note{margin-top:10px;padding:9px 12px;background:#f6f7fb;border:1px dashed var(--line);
  border-radius:9px;font-size:13px}

/* Greyed AND inert. The styling alone said "do not type here" while the boxes still accepted
   typing, which is worse than either -- a reader who ignores the hint gets a redrawn plate that
   never ran. pointer-events keeps the caret out; the JS below also sets `disabled`. */
/* Displayed values, not adjustment knobs. When the page is showing a step that has already
   run, the numbers describe what happened -- so they are drawn as text. Keeping the box, even a
   greyed one, says "you could change this" about something already done. */
.controls.is-readonly input,
.controls.is-readonly select{
  background:transparent;border:none;padding-left:0;color:var(--dark-navy,#2B3445);
  font-weight:700;cursor:default;pointer-events:none;-moz-appearance:textfield}
.controls.is-readonly input::-webkit-outer-spin-button,
.controls.is-readonly input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.controls.is-readonly .field{color:#7b8494}
.embed-note{margin:-4px 0 14px;padding:8px 11px;background:#f6f7fb;border:1px dashed var(--line);
  border-radius:9px;font-size:13px}


/* ── identity numbers ────────────────────────────────────────────────────────────────────
   Colour on a plate says what KIND of thing a well holds; the number says WHICH one. That
   split is what lets a plate with eight species stay readable -- eight hues do not survive
   being shrunk to a 26px circle, and eight numbers do. */
.well { position: relative; }
.well-n {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; line-height: 1; color: #fff;
  /* The wells are shaded by concentration, so a pale one needs the number to hold its own. */
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  pointer-events: none; user-select: none;
}
/* The legend is where the numbers are decoded, so it gets room: a full-size well as its swatch
   rather than a chip, and one item per line-ish rather than a dense run of text. */
/* The legend sits BESIDE the plate, not under it: a 96-well grid is wider than it is tall and
   leaves a column of space to its right, and a key read down a column is easier to scan than one
   read across a line. It drops underneath only when there is no room. */
.plate { display: grid; grid-template-columns: auto minmax(150px, max-content);
         gap: 4px 22px; align-items: start; }
.plate .plate-title { grid-column: 1 / -1; }
.plate .wells { grid-column: 1; }
.plate .rowmap { grid-column: 2; grid-row: 2 / span 3; align-self: center; }
.rowmap { display: flex; flex-direction: column; align-items: flex-start;
          gap: 7px; margin-top: 0;
          /* the plate block is centred on the page; the key is read down a column
             and has to start at the same place on every line */
          text-align: left; }
@media (max-width: 760px) {
  .plate { grid-template-columns: 1fr; }
  .plate .rowmap { grid-column: 1; grid-row: auto; margin-top: 10px; }
}
/* A 12-column plate has a floor below which the wells stop being legible, so under that it
   scrolls in its own box. `.plates` is a flex row whose items must be allowed to shrink. */
.plates > *{min-width:0}
@media (max-width: 480px) {
  .plate{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .plate .wells{min-width:360px}
}
.rowmap-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.rowmap .chip, .rowmap .chip-n {
  width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 800; color: #fff; flex: 0 0 auto;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.rowmap-label { display: inline-flex; flex-direction: column; align-items: flex-start;
                line-height: 1.25; }
.rowmap-role { font-size: 10.5px; color: #7b8494; font-weight: 600; }

/* Row selection: the plate IS the control for what is drawn beside it. Kept narrow and quiet --
   it is a switch, not a column of data. */
.wells th.sel-h { width: 22px; }
.wells td.sel-c { width: 22px; padding: 0 2px 0 0; text-align: center; }
.wells td.sel-c input { width: 14px; height: 14px; margin: 0; cursor: pointer; accent-color: #EC3A94; }

/* An unused well is drawn as an outline, so its key is too. */
.rowmap .chip-empty { background: #fff; border: 1.5px dashed #cbd2dc; }

/* Plate pager. Under the plate, quiet: it is navigation, not a finding. */
.plate-pager { grid-column: 1; display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 10px; }
.plate-nav { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line, #e3e6ec);
  background: #fff; color: var(--dark-navy, #2B3445); font-size: 15px; line-height: 1;
  cursor: pointer; }
.plate-nav:hover:not(:disabled) { border-color: #EC3A94; color: #EC3A94; }
.plate-nav:disabled { opacity: .35; cursor: default; }
.plate-count { font-size: 12px; color: #7b8494; font-variant-numeric: tabular-nums; }

/* Nine columns of mostly numbers. Without nowrap a concentration broke across two lines and the
   row's height doubled; with it the table ran 37px past its container and clipped R2, which is
   the column carrying the poor-fit warning. Narrower gutters buy back more than that. */
.raw-table td, .raw-table th { white-space: nowrap; }
.raw-table td:first-child, .raw-table th:first-child { padding-left: 0; padding-right: 2px; }

/* The no-analyte control well. It holds the same solution as the wash columns, so it keeps that
   colour; the ring says it is the control POSITION. A second fill would have said it was a
   second solution. */
.well.is-control, .chip.is-control { box-shadow: inset 0 0 0 2px #7b8494; }

/* The operator's own name for a species, under the name this database uses for it: lighter and
   smaller than both the molecule above it and the role below it, because it is the one line
   that is here only so somebody holding the Gator file can match a well (Xi, 2026-10-12). */
.rowmap-sub { display: block; font-size: 10.5px; font-weight: 400; color: #9aa1b4;
  letter-spacing: .01em; }
/* THE CATALOGUE NUMBER, quieter than the condition under it: it identifies the product rather
   than describing the experiment (Xi, 2026-11-22). Same metrics as `.rowmap-sub` so the two
   muted lines read as one block beneath the name. */
.rowmap-cat { display: block; font-size: 10.5px; font-weight: 400; color: #b2b8c6;
              letter-spacing: 0.01em; }

/* THE FIT BOX WAITING FOR A PAIR. It takes the place of the equations rather than leaving a
   hole, so a reader with nothing selected can still see that fitting exists and what it wants
   (2026-11-08). `.admin-only` paints the green dashed box around it; this is only the words. */
.cell-fit-wait {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.5;
}

/* THE ERROR SURFACE on a fit card. `.admin-only` paints the green dashed box around it; this
   is the layout only (2026-11-08). */
.raw-fit-surface { margin-top: 10px; }
.raw-fit-surface-h {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--admin-green, #1b7a3d); margin-bottom: 6px;
}
.raw-fit-surface canvas { width: 100%; display: block; }
.raw-fit-surface-say { font-size: 11px; color: #4b5563; line-height: 1.45; margin-top: 4px; }

/* ── STILL LOADING ────────────────────────────────────────────────────────────────────────────
   `templates/details/_loading.html`. Cards that shimmer, so a page that is fetching never looks
   like a page that has nothing (Xi, 2026-11-09). Calm on purpose: a grey sweep, not a spinner,
   and still under prefers-reduced-motion, where the cards simply sit there. */
.bv-loading { margin: 14px 0; }
.bv-loading[hidden] { display: none; }
.bv-loading-label { display: flex; align-items: center; gap: 8px; font-size: 13px;
  color: #6b7280; margin-bottom: 10px; }
.bv-loading-dot { width: 8px; height: 8px; border-radius: 50%; background: #EC3A94;
  animation: bv-loading-pulse 1.1s ease-in-out infinite; }
.bv-loading-card { height: 56px; border-radius: 10px; margin-bottom: 10px;
  background: linear-gradient(90deg, #f1f3f6 0%, #e6e9ee 40%, #f1f3f6 80%);
  background-size: 200% 100%; animation: bv-loading-sweep 1.4s linear infinite; }
.bv-loading-card--short { width: 62%; }
@keyframes bv-loading-sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes bv-loading-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .bv-loading-card, .bv-loading-dot { animation: none; }
}
/* WHAT IS LEFT WHEN THE LOAD FINISHES WITH NOTHING. Said in words, so it cannot be mistaken
   for a page that has not finished. */
.bv-empty { font-size: 13px; color: #6b7280; margin: 10px 0 4px; }
.bv-empty[hidden] { display: none; }

/* The counter beside "Loading measured data…": what the server is on, and for how long. */
.bv-loading-count{margin-left:6px;font-weight:500;color:#8a93a3;font-variant-numeric:tabular-nums}

/* THE DATA SUMMARY (static/data_summary.js): binder, target, fit. Big numbers, small context. */
.dsum { display: flex; flex-direction: column; gap: 14px; }
.dsum-binder { border: 1px solid var(--line, #e3e6ec); border-radius: 10px; padding: 12px 16px; background: #fff; }
.dsum-b-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.dsum-b-name { font-size: 16px; font-weight: 700; color: #1F2937; overflow-wrap: anywhere; }
.dsum-sub { font-size: 12px; color: #6b7280; }
/* The catalogue number is quieter than the condition beside it: it identifies the
   product rather than describing the experiment (Xi, 2026-11-22). */
.dsum-cat { color: #9ca3af; }
.dsum-target { border-top: 1px solid #f1f3f5; padding: 10px 0 2px 14px; }
.dsum-t-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.dsum-t-name { font-size: 14px; font-weight: 600; color: #374151; }
.dsum-call { font-size: 15px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.dsum-call.is-yes { background: #e7f5ea; color: #2e7d32; }
.dsum-call.is-no { background: #fdecec; color: #b71c1c; }
.dsum-call.is-mixed { background: #fff4e5; color: #b45309; }
.dsum-call.is-none { background: #f1f3f5; color: #6b7280; font-weight: 600; }
.dsum-fit { margin: 8px 0 4px 14px; padding: 8px 0 6px; border-top: 1px dashed #eef0f3; }
.dsum-fit:first-of-type { border-top: 0; }
.dsum-big { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.dsum-num { font-size: 20px; font-weight: 700; color: #111827; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dsum-k { font-size: 13px; font-weight: 600; color: #6b7280; margin-right: 6px; }
.dsum-u { font-size: 12px; font-weight: 500; color: #6b7280; margin-left: 4px; }
.dsum-small { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 4px; font-size: 12px; color: #6b7280; }
.dsum-small i { font-style: normal; color: #9ca3af; }
.dsum-tag { font-weight: 700; color: #1B7F4B; }
.dsum-none { font-size: 13px; color: #6b7280; padding: 4px 0 4px 14px; }

/* Every cell centred both ways, the binder name left (Xi, 2026-11-09: "Center align!").
   The Data Summary: ONE table, grouped by merged binder and target cells, scrolling sideways
   with the binder column held in place (Xi, 2026-11-09). */
.dsum-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e3e6ec;
  border-radius: 10px; background: #fff; }
.dsum-tbl { border-collapse: separate; border-spacing: 0; font-size: 12.5px; color: #374151; }
.dsum-tbl th, .dsum-tbl td { white-space: nowrap; padding: 7px 12px; text-align: center;
  border-bottom: 1px solid #f1f3f5; vertical-align: middle; }
.dsum-tbl thead th { font-size: 11px; font-weight: 700; color: #6b7280; background: #f9fafb;
  border-bottom: 1px solid #e3e6ec; }
.dsum-tbl tr.dsum-gstart > * { border-top: 1px solid #e3e6ec; }
.dsum-tbl .dsum-bcell { position: sticky; left: 0; z-index: 1; background: #fff; font-size: 14px;
  font-weight: 700; color: #1F2937; text-align: left; border-right: 1px solid #e3e6ec; }
.dsum-tbl thead .dsum-bcell { background: #f9fafb; font-size: 11px; color: #6b7280; z-index: 2; }
.dsum-tbl .dsum-tcell { font-weight: 600; color: #374151; }
.dsum-tbl .dsum-rcell { color: #374151; white-space: nowrap; }

.dsum-tbl .dsum-call { font-size: 13px; padding: 2px 10px; }
.dsum-tbl td.dsum-num { font-variant-numeric: tabular-nums; }
.dsum-val { font-size: 16px; font-weight: 700; color: #EC3A94; }
.dsum-ci { font-size: 11px; color: #6b7280; margin-top: 2px; }
.dsum-tbl tr.is-trusted > td { background: #f3faf5; }
.dsum-tbl td.dsum-none { color: #6b7280; padding-left: 12px; }
.dsum-trust { text-align: center; }
html.admin-on .dsum-trust-view { display: none; }
.dsum-mark { display: inline-flex; align-items: center; gap: 3px; margin: 0 4px; font-size: 11.5px;
  color: #374151; cursor: pointer; white-space: nowrap; }
.dsum-ref { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px;
  font-weight: 700; background: #fdf3e1; color: #9a5b00; white-space: nowrap; }
.dsum-fine { margin: 8px 2px 0; font-size: 11.5px; color: #6b7280; line-height: 1.45; }
.dsum-del { font: inherit; font-size: 12px; color: #b71c1c; background: none; border: 1px dashed #1B7F4B;
  border-radius: 999px; padding: 2px 10px; cursor: pointer; white-space: nowrap; }
.dsum-modes { display: inline-flex; vertical-align: middle; margin-left: 12px; border: 1px solid #e3e6ec;
  border-radius: 8px; overflow: hidden; font-size: 13px; }
.dsum-mode { font: inherit; font-size: 13px; font-weight: 600; padding: 4px 12px; border: 0;
  background: #fff; color: #1F2937; cursor: pointer; }
.dsum-mode + .dsum-mode { border-left: 1px solid #e3e6ec; }
.dsum-mode.active { background: #EC3A94; color: #fff; }
.cell-fit-admin { margin: 0 0 8px; padding: 6px 10px; border: 1px dashed #1B7F4B; border-radius: 8px;
  background: #f6fbf7; }
.cell-fit-del { font: inherit; font-size: 12.5px; color: #b71c1c; background: #fff; border: 1px solid #f3c4c4;
  border-radius: 999px; padding: 3px 12px; cursor: pointer; }

/* A binder's name (static/binder_name.js): breaks anywhere rather than running over its neighbour. */
.bv-name { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
