/* Release data tables inside the audience workspaces (profile, compare,
   crop view). */

.rt-scroll { overflow-x: auto; margin: var(--space-3) 0 var(--space-6); }
.rt {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
}
.rt th, .rt td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border-default);
  text-align: left;
  vertical-align: top;
}
.rt thead th { background: var(--surface-sunken); font-weight: 600; white-space: nowrap; }
.rt tbody tr:last-child td { border-bottom: 0; }
.rt .rt-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt .rt-unit { color: var(--text-muted); white-space: nowrap; }
.rt .rt-group td { background: var(--surface-sunken); font-weight: 600; }
.rt .rt-flag { color: var(--color-warning); font-weight: 700; }
.rt .rt-best { font-weight: 700; }
.rt-note { margin: 0; color: var(--text-muted); font-size: 0.875rem; }
.rt-caveat {
  margin: var(--space-2) 0;
  padding: var(--space-3) var(--space-4);
  background: var(--color-warning-bg);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
}
.rt-caveat__scope { display: block; margin-top: var(--space-1); color: var(--text-muted); font-size: 0.8125rem; }

.rt-picker { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: var(--space-3) 0; }
.rt-picker label { display: inline-flex; gap: var(--space-1); align-items: center; font-size: 0.875rem; }
.rt-picker fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.rt-picker legend { font-weight: 600; font-size: 0.8125rem; margin-bottom: var(--space-1); width: 100%; }

.rt-chart { margin: var(--space-3) 0 var(--space-6); max-width: 44rem; }
.rt-chart svg { width: 100%; height: auto; display: block; }
.rt-chart__legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 0.8125rem; margin-top: var(--space-2); }
.rt-chart__swatch { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 2px; margin-right: var(--space-1); vertical-align: middle; }

/* Proteins identified by SDS-PAGE (profile pages) */
.gelp__title { margin: var(--space-8) 0 var(--space-2); }
.gelp__note { margin: 0 0 var(--space-3); color: var(--text-muted); font-size: 0.875rem; max-width: 44rem; }
.gelp__lane { margin: var(--space-2) 0; border: 1px solid var(--border-default); border-left: 4px solid var(--route, var(--border-strong)); border-radius: var(--radius-md); background: var(--surface-raised); }
.gelp__lane > summary { cursor: pointer; padding: var(--space-2) var(--space-3); font-size: 0.875rem; font-weight: 600; }
.gelp__lane .rt-scroll { margin: 0 var(--space-3) var(--space-3); }
.gelp__count { margin-left: var(--space-2); color: var(--text-muted); font-weight: 400; }

/* Page furniture shared by the public data pages and the workspace */
.rt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); flex-wrap: wrap; margin: 0 0 var(--space-5); }
.rt-head > div:first-child { min-width: 0; max-width: 48rem; }
.rt-eyebrow { margin: 0 0 var(--space-2); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.rt-eyebrow a { color: inherit; }
.rt-title { margin: 0 0 var(--space-2); font-size: 2rem; line-height: 1.15; text-wrap: balance; }
.rt-sub { margin: 0; color: var(--text-muted); line-height: 1.55; }
.rt-sub a, .rt-note a, .rt-empty a { color: var(--text-link); }
.rt-h2 { margin: var(--space-8) 0 var(--space-2); font-size: 1.25rem; }
.rt-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.rt-button { font: inherit; font-size: 0.875rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface-raised); color: var(--text-primary); text-decoration: none; cursor: pointer; display: inline-block; }
.rt-button:hover { border-color: var(--color-brand-primary); }
.rt-button--primary, a.rt-button--primary, a.rt-button--primary:visited, a.rt-button--primary:hover { background: var(--color-brand-primary); border-color: var(--color-brand-primary); color: var(--text-on-brand); text-decoration: none; }
.rt-button--primary:hover { background: var(--color-brand-primary-hover); }
.rt-button:disabled { opacity: 0.45; cursor: not-allowed; }
.rt-button:focus-visible, .rt-input:focus-visible, .rt-select:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.rt-filter { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin: 0 0 var(--space-3); }
.rt-input { font: inherit; font-size: 0.875rem; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface-raised); color: var(--text-primary); min-width: 0; }
input.rt-input[type="search"] { flex: 1 1 14rem; }
.rt-comparebar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin: 0 0 var(--space-2); font-size: 0.875rem; }
.rt--rows tbody tr:hover td { background: var(--surface-sunken); }
.rt-code a { font-family: var(--font-mono); font-weight: 500; color: var(--text-primary); }
.rt-empty { padding: var(--space-5); border: 1px dashed var(--border-strong); border-radius: 10px; color: var(--text-muted); }

/* Compare: a chart per metric, the table folded beneath */
.rt-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 0.8125rem; color: var(--text-muted); margin: var(--space-4) 0 0; }
.rt-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.rt-legend__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--route); display: inline-block; }
.rt-section { margin-top: var(--space-6); }
.rt-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: var(--space-3); margin: var(--space-2) 0 var(--space-3); }
.rt-minichart { margin: 0; padding: var(--space-3); background: var(--surface-raised); border: 1px solid var(--border-default); border-radius: 10px; min-width: 0; }
.rt-minichart figcaption { font-size: 0.8125rem; margin-bottom: var(--space-1); }
.rt-minichart svg { width: 100%; height: auto; display: block; overflow: visible; }
.rt-tablebox > summary { cursor: pointer; font-size: 0.875rem; color: var(--text-link); margin: var(--space-1) 0; }
.rt-tip { position: fixed; z-index: 60; pointer-events: none; max-width: 18rem; padding: 8px 11px; border-radius: 9px;
  background: var(--text-primary); color: var(--surface-raised); font-size: 0.78rem; line-height: 1.4;
  display: flex; flex-direction: column; gap: 2px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.rt-tip[hidden] { display: none; }
.rt-tip b { font-size: 0.82rem; }
.rt-tip__hint { opacity: 0.7; font-size: 0.72rem; margin-top: 2px; }
/* pinned by a click: it stays put and its shortlist button can be pressed */
.rt-tip.is-pinned { pointer-events: auto; }
.rt-tip__add { margin-top: 6px; align-self: flex-start; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--surface-raised); background: var(--surface-raised); color: var(--text-primary);
  font: inherit; font-weight: 600; }
.rt-tip__add.is-on { background: transparent; color: var(--surface-raised); }
.rt-tip__add:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.rt-hit { fill: transparent; cursor: pointer; }
.rt-hit:focus-visible { outline: none; stroke: var(--border-focus); stroke-width: 2; }
.rt-colname { display: block; font-weight: 600; }
.rt-colcode { display: block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; color: var(--text-muted); }
.rt-question { margin: -2px 0 var(--space-2); font-size: 1rem; color: var(--text-muted); font-style: italic; }

/* ── by function: one metric, every ingredient on one axis ── */
.fn-filter fieldset { border: 0; margin: 0; padding: 0; display: inline-flex; gap: var(--space-1); align-items: center; }
fieldset.fn-seg { border: 0; margin: 0; padding: 0; display: inline-flex; flex-wrap: wrap; gap: var(--space-1); align-items: center; }
.rt-filter__row { flex-basis: 100%; }
.rt-detail > .fn-seg { margin: var(--space-2) 0; }
.fn-seg label, .fn-routes label { cursor: pointer; }
.fn-seg input, .fn-routes input { position: absolute; opacity: 0; pointer-events: none; }
.fn-seg span, .fn-routes .route-tag { display: inline-block; padding: 4px 10px; border: 1px solid var(--border-default); border-radius: 999px; font-size: 0.8125rem; }
.fn-seg input:checked + span { background: var(--text-primary); color: var(--surface-raised); border-color: var(--text-primary); }
.fn-routes input:not(:checked) + .route-tag { opacity: 0.35; }
.fn-seg input:focus-visible + span, .fn-routes input:focus-visible + .route-tag { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.fn-table { width: 100%; }
.fn-table td { vertical-align: middle; }
.fn-axis, .fn-strip { width: 55%; min-width: 16rem; }
.fn-axis { position: relative; height: 2.25rem; }
.fn-tick { position: absolute; bottom: 8px; transform: translateX(-50%); font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }
.fn-tick--first { transform: none; }
.fn-tick--last { transform: translateX(-100%); }
.fn-strip { position: relative; }
.fn-strip svg { display: block; width: 100%; height: 30px; }
.fn-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--dot); border: 1.5px solid var(--surface-raised); cursor: pointer; }
.fn-dot--flag { border: 2px dashed var(--text-primary); }
.fn-dot:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
/* Ticks and dots are placed by a share of the cell's width, so the axis
   and strip cells carry no side padding (the svg then spans the same box). */
.rt .fn-axis, .rt .fn-strip { padding-left: 0; padding-right: 0; }
.fn-values { white-space: nowrap; font-size: 0.8125rem; }
.fn-values > span { margin-left: var(--space-2); }
.fn-row--gap td { color: var(--text-muted); }

/* ── shortlist toggle + tray ── */
.sl-toggle { font: inherit; font-size: 0.8125rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-default);
  background: var(--surface-raised); color: var(--text-primary); cursor: pointer; white-space: nowrap; }
.sl-toggle.is-on { background: var(--text-primary); color: var(--surface-raised); border-color: var(--text-primary); }
.sl-toggle:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.sl-tray { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50;
  width: min(56rem, calc(100% - 32px)); box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3);
  padding: 10px 14px; border-radius: 14px; background: var(--surface-raised); border: 1px solid var(--border-default);
  box-shadow: 0 6px 24px rgba(20, 17, 15, 0.14); font-size: 0.875rem; }
.sl-tray[hidden] { display: none; }
.sl-tray__label { font-weight: 600; white-space: nowrap; }
.sl-tray__label span { font-weight: 400; color: var(--text-muted); }
.sl-tray__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 12rem; }
.sl-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--surface-sunken, rgba(20, 17, 15, 0.06)); }
.sl-chip a { color: inherit; text-decoration: none; }
.sl-chip__x { border: 0; background: transparent; font: inherit; font-size: 1rem; line-height: 1; padding: 0 6px; cursor: pointer; color: var(--text-muted); }
.sl-tray__actions { display: inline-flex; gap: var(--space-2); margin-left: auto; }
/* the public /data pages color every link (data.css .data a); the tray
   keeps its own colors there: dark chip names, white on the green button */
#slTray .sl-chip a, #slTray .sl-chip a:visited { color: var(--text-primary); }
#slTray a.rt-button--primary, #slTray a.rt-button--primary:visited, #slTray a.rt-button--primary:hover { color: var(--text-on-brand); }
.data a.rt-button.rt-button--primary, .data a.rt-button.rt-button--primary:visited { color: var(--text-on-brand); }
body.has-shortlist { padding-bottom: 96px; }

/* "Yours": an ingredient the signed-in user supplied. Rendered only on
   signed-in workspace pages for that user (supplier_view.own_codes). */
.rt-yours { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: middle;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1.6;
  background: var(--color-brand-primary); color: var(--text-on-brand); }
h1 .rt-yours { font-size: 0.8125rem; }

/* Numbered caveats: the number beside a value, the same number in the list. */
.rt-cav { margin-left: 2px; padding: 0 4px; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; line-height: 1.4;
  color: var(--text-primary); background: var(--color-warning-bg); border: 1px solid var(--color-warning); cursor: help; vertical-align: super; }
.rt-cav:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 1px; }
.rt-caveats { list-style: none; margin: var(--space-2) 0; padding: 0; }
.rt-caveats .rt-caveat { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-3); }
.rt-caveats .rt-caveat__scope { grid-column: 2; }
.rt-cav-n { grid-row: span 2; align-self: start; min-width: 1.5rem; height: 1.5rem; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 0.8125rem;
  background: var(--surface-raised); border: 1px solid var(--color-warning); }

/* ── curves across pH (curves.html) ── */
.pc { margin: var(--space-4) 0; }
.pc__caption { font-size: 0.875rem; margin-bottom: var(--space-2); }
.pc__panels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: var(--space-3); }
.pc__panels--one { grid-template-columns: minmax(0, 32rem); }
.pc__panel { background: var(--surface-raised); border: 1px solid var(--border-default); border-radius: 10px; padding: var(--space-2) var(--space-3); min-width: 0; }
.pc__head { margin: 0 0 4px; font-size: 0.8125rem; }
.pc__panel svg { width: 100%; height: auto; display: block; overflow: visible; }
.pc-line polyline { stroke: var(--line); stroke-width: 1.75; opacity: 0.8; transition: opacity 0.12s, stroke-width 0.12s; }
.pc-line .pc-dot { fill: var(--line); opacity: 0.85; }
.pc-line .pc-sd { stroke: var(--line); stroke-width: 1.2; opacity: 0.7; }
/* hovering a panel fades the other lines; the hovered line comes forward */
.pc__panel svg:hover .pc-line { opacity: 0.25; }
.pc__panel svg .pc-line:hover, .pc__panel svg .pc-line:focus-within { opacity: 1; }
.pc-line:hover polyline, .pc-line:focus-within polyline { stroke-width: 3.25; opacity: 1; }
/* shortlisted ingredients and the owner's own lines stand out */
.pc-line.is-own polyline { stroke-width: 3.25; opacity: 1; }
.pc-line.is-own .pc-dot { r: 4; opacity: 1; }
.pc-line.is-muted polyline { stroke-width: 1.25; opacity: 0.45; }
.pc-line.is-muted .pc-dot { opacity: 0.45; }
.pc-key { width: 18px; height: 3px; border-radius: 2px; background: var(--route); display: inline-block; }
.pc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: var(--space-3); align-items: start; }
.pc-row .pc__panels--one { grid-template-columns: minmax(0, 1fr); }
.pc__panel--wide { overflow-x: auto; display: inline-block; max-width: 100%; box-sizing: border-box; }
.pc-bar rect:not(.rt-hit) { fill: var(--line); opacity: 0.85; }
.pc-bar .pc-sd { stroke: var(--text-primary); stroke-width: 1.2; opacity: 0.6; }
.pc-bar rect[stroke-dasharray]:not(.rt-hit) { stroke: var(--text-primary); stroke-width: 1.2; }
.pc__panel svg:hover .pc-bar { opacity: 0.35; }
.pc__panel svg .pc-bar:hover, .pc__panel svg .pc-bar:focus-within { opacity: 1; }
.pc-bar.is-own rect:not(.rt-hit) { opacity: 1; stroke: var(--text-primary); stroke-width: 1.2; }
.pc-bar.is-muted rect:not(.rt-hit) { opacity: 0.35; }

/* In a plot that holds shortlisted ingredients, they stand out by the rest fading. */
.pc:has(.is-listed) .pc-line:not(.is-listed):not(.is-own) polyline,
.pc:has(.is-listed) .pc-line:not(.is-listed):not(.is-own) .pc-dot { opacity: 0.25; }
.pc:has(.is-listed) .pc-line.is-listed:not(.is-muted) polyline { stroke-width: 2.75; opacity: 1; }
/* bars: a shortlisted ingredient gets a bold outline; the others keep their
   color (Daniel 2026-10-30: fading them read as a difference in the data) */
.pc-bar.is-listed rect.pc-front { stroke: var(--text-primary); stroke-width: 2.2; opacity: 1; }
/* The overview: curves across the full width, bars at their own size beside each other. */
.pc-row--overview { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-start; }
.pc-row--overview > .pc { margin: 0; }
.pc-row--overview > .pc:not(.pc--bars) { flex: 1 1 100%; }
.pc-row--overview > .pc--bars { flex: 0 1 auto; max-width: 100%; }
.pc--bars svg { max-width: none; height: auto; }
/* paired bars: the partner metric pale behind (foam height initial behind final) */
.pc-bar rect.pc-back { fill: var(--line); opacity: 0.28; stroke: var(--line); stroke-width: 1; stroke-opacity: 0.8; }
.pc-bar.is-muted rect.pc-back { opacity: 0.15; }

/* by function: property buttons (assay row, then that assay's measures) */
.fn-nav { margin: var(--space-3) 0 var(--space-2); display: flex; flex-direction: column; gap: var(--space-2); }
.fn-nav__row { display: flex; flex-wrap: wrap; gap: 6px; }
.fn-nav__btn { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-default);
  background: var(--surface-raised); color: var(--text-primary); text-decoration: none; font-size: 0.875rem; line-height: 1.3; }
.fn-nav__btn:hover { border-color: var(--border-strong); }
.fn-nav__btn.is-on { background: var(--color-brand-primary); border-color: var(--color-brand-primary); color: var(--text-on-brand); }
.fn-nav__btn--sub { padding: 4px 12px; font-size: 0.8125rem; }
.fn-nav__btn--sub.is-on { background: var(--color-brand-subtle, #CCE4BD); border-color: var(--color-brand-primary); color: var(--text-primary); }
/* the workspace's link colors (.portal-home a, a:hover) outrank these; hold the
   button's own colors in every state (W04: dark text on the selected button) */
.fn-nav a.fn-nav__btn, .fn-nav a.fn-nav__btn:hover { color: var(--text-primary); }
.fn-nav a.fn-nav__btn.is-on, .fn-nav a.fn-nav__btn.is-on:hover, .fn-nav a.fn-nav__btn.is-on:visited { color: var(--text-on-brand); }
.fn-nav a.fn-nav__btn--sub.is-on, .fn-nav a.fn-nav__btn--sub.is-on:hover { color: var(--text-primary); }
.fn-nav__btn:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

/* threshold filters (release_filters): chips, then a form of buttons */
.flt { margin: 0 0 var(--space-3); }
.flt__chips { list-style: none; padding: 0; margin: 0 0 var(--space-2); display: flex; flex-wrap: wrap; gap: var(--space-1); align-items: center; }
.flt__chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 6px 4px 12px; border-radius: 999px;
  background: var(--color-brand-subtle, #CCE4BD); font-size: 0.8125rem; }
.flt__chip a { text-decoration: none; color: var(--text-primary); padding: 0 6px; border-radius: 999px; }
.flt__chip a:hover { background: rgba(0, 0, 0, 0.08); }
.flt__clear { font-size: 0.8125rem; }
.flt__add > summary { cursor: pointer; font-size: 0.875rem; color: var(--text-link); }
.flt__form { margin-top: var(--space-2); padding: var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-md, 10px);
  background: var(--surface-raised); display: flex; flex-direction: column; gap: var(--space-2); }
.flt__step { margin: 0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.flt__prop { font-size: 0.8125rem; color: var(--text-muted); min-width: 8.5rem; padding: 0; border: 0; }
.flt__row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.flt__value { width: 7rem; }
.flt__pass .route-tag { margin-right: 3px; }
.fn-seg .flt__prop { padding: 0; border: 0; border-radius: 0; }
.flt__ph[hidden] { display: none; }

/* ask about an ingredient (buyer workflow step 3a) */
.ask { margin: var(--space-4) 0; }
.ask__box > summary { cursor: pointer; list-style: none; display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.ask__box > summary::-webkit-details-marker { display: none; }
.ask__form { margin-top: var(--space-2); padding: var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-md, 10px);
  background: var(--surface-raised); display: flex; flex-direction: column; gap: var(--space-2); max-width: 46rem; }
.ask__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--space-2); }
.ask__grid label, .ask__note { display: flex; flex-direction: column; gap: 4px; font-size: 0.8125rem; color: var(--text-muted); }
.ask__consent { font-size: 0.8125rem; display: flex; gap: 8px; align-items: flex-start; }
.ask__flash { padding: 8px 12px; border-radius: 8px; background: var(--color-brand-subtle, #CCE4BD); font-size: 0.875rem; }
.ask__flash--error { background: #F6D9D2; }
.ask__list { list-style: none; padding: 0; margin: var(--space-2) 0 0; font-size: 0.8125rem; }
.ask__status { font-weight: 600; }
/* a caveat in a chart's card: its number (a link to the list when pinned) and its text */
.rt-tip__cav { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.rt-tip__cavn { font-weight: 700; }
.rt-tip__cavlink { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rt-tip__cavlink:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.pc-cavn { font-size: 9px; font-weight: 700; fill: var(--text-muted); pointer-events: none; }
/* the caveat a chart card jumped to */
.rt-caveat.is-target { animation: rt-cav-flash 2.4s ease-out; border-radius: 6px; }
@keyframes rt-cav-flash { 0%, 40% { background: var(--color-kale-200); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .rt-caveat.is-target { animation: none; background: var(--color-kale-200); } }
/* By crop: the crop index */
.rt-crops { list-style: none; margin: var(--space-6) 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.rt-crop { display: block; padding: 12px 14px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--surface-raised);
  text-decoration: none; color: var(--text-primary); }
.portal-home a.rt-crop, .portal-home a.rt-crop:hover { color: var(--text-primary); }
.rt-crop:hover { border-color: var(--color-brand-primary); }
.rt-crop:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.rt-crop__name { display: block; font-weight: 600; }
.rt-crop__meta { display: block; font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }
/* W03: the extracts' photos on a profile, folded */
.rt-photos { margin: var(--space-6) 0; border: 1px solid var(--border-default); border-radius: 10px; padding: 10px 14px; background: var(--surface-raised); }
.rt-photos > summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.rt-photos > summary:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.rt-photos__h { font-size: 0.95rem; margin: var(--space-4) 0 var(--space-2); }
.rt-photos__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.rt-photos__grid figure { margin: 0; }
.rt-photos__grid img { display: block; width: 100%; height: 11rem; object-fit: cover; border-radius: 8px; background: var(--surface-sunken); }
.rt-photos__grid figcaption { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; line-height: 1.35; }
.rt-photos__grid figcaption b { color: var(--text-primary); font-weight: 600; }
.rt-photos__grid figcaption span { display: block; }
.rt-method-link { font-size: 0.8125rem; font-style: normal; margin-left: 6px; white-space: nowrap; }
/* the scatter (foam capacity by stability): dots like the bars */
.pc-pt circle.pc-front { fill: var(--line); opacity: 0.9; }
.pc-pt circle.rt-hit { fill: transparent; cursor: pointer; }
.pc-pt.is-listed circle.pc-front { stroke: var(--text-primary); stroke-width: 2.2; opacity: 1; }
.pc-pt circle[stroke-dasharray]:not(.rt-hit) { stroke: var(--text-primary); stroke-width: 1.2; }
