/* Application Rationalization Intelligence — module styles (v5.02).
 *
 * SCOPE RULE: this file authors ONLY what DESIGN_EXTRACT §0.7 could not find an
 * existing class for. Everything the `.ini-*` family already emits (head, tabs,
 * body, notes, KPI cards, widget cards, tree head/rows, the slide-over, chips'
 * geometry, presets, buttons) is REUSED by putting the `.ini-*` class on the
 * element alongside the `.rat-*` one. No existing class is redefined here; where
 * the mockup diverges the divergence lives on the `.rat-*` twin, which wins by
 * source order (this file loads after initiatives.css).
 *
 * The module root carries BOTH `.ini` and `.rat`. `.ini` is what declares the
 * --ini-* custom properties every reused rule consumes, and it is already exactly
 * the shell §0.2 asks for: height:100%, flex column, min-height:0,
 * position:relative, overflow:hidden. Re-authoring it would be a second copy to
 * keep in step.
 *
 * Tokens come from app.css block-2 (the second :root, --teal #00857C, --ink,
 * --bg-cream, --line, --mono, Invention via --sans) with literal fallbacks so the
 * file degrades gracefully if loaded before app.css.
 */

/* The documented full-height-view fix (v2.87 / v2.86 pattern; initiatives.css:17
 * and app.css `.view#viewGraph` are the precedents). `.view` carries padding:24px,
 * which stacks on a 100%-height inner shell and pushes the bottom below the fold —
 * AND the closed slide-over at translateX(102%) extends the scrollable width, so
 * the whole screen renders shifted left with its first column clipped. Never a
 * bare `.view` rule: ID-scoped only. */
.view#viewRationalization { padding: 0; overflow: hidden; }

.rat {
  --rat-mono: var(--mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
  --rat-teal: var(--teal, #00857C);
  --rat-teal-dark: var(--teal-dark, #006A5F);
  --rat-warn: #A06D39;
  --rat-private: #5450E4;
  --rat-line: var(--line, #E1E1DF);
  --rat-line-soft: var(--line-soft, #ECECEA);
  --rat-ink: var(--ink, #1b2027);
  --rat-ink-2: var(--ink-2, #4b5560);
  --rat-ink-3: var(--ink-3, #7d8690);
  --rat-bg: var(--bg-cream, #F7F7F7);
  --rat-bg-2: var(--bg-cream-2, #EEEEEC);
  --rat-soft: #FBFAF8;
  --rat-elev: var(--bg-elev, #FFFFFF);
}
.rat-mono { font-family: var(--rat-mono); }
.rat-id { font-size: 11px; color: var(--rat-ink-3); }
.rat-dash { font-size: 11px; color: var(--rat-ink-3); }
.rat-nums { font-variant-numeric: tabular-nums; }
.rat-empty-sub { margin-top: 6px; font-size: 12px; color: var(--rat-ink-3); }
.rat-errstrip {
  margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; font-size: 12.5px;
  color: #8B3A3A; background: rgba(200, 16, 46, .06); border: 1px solid rgba(200, 16, 46, .3);
}

/* ── §0.4 banner ─────────────────────────────────────────────────────────── */
.rat-banner { margin-bottom: 18px; }
.rat-banner-ids .rat-mono { font-size: 12px; }

/* ── §0.5 sidebar module-flag note (lives in the SPA nav, outside .rat) ───── */
.rat-flagnote {
  margin: 16px 10px 4px; padding: 8px 10px; background: #F7F7F7;
  border: 1px dashed #E1E1DF; border-radius: 8px;
  font-size: 10.5px; line-height: 1.45; color: #7d8690;
}

/* ── §0.8 chips — one shared helper, rendered as CSS not inline styles ───── */
.rat-chip {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  border-radius: 4px; padding: 1px 6px; white-space: nowrap; border: 1px solid transparent;
  display: inline-block; line-height: 1.5;
}
.rat-chip-teal { background: rgba(0, 133, 124, .10); color: #006A5F; border-color: rgba(0, 133, 124, .4); }
.rat-chip-teal-soft { background: rgba(0, 133, 124, .06); color: #006A5F; border-color: rgba(0, 133, 124, .35); }
.rat-chip-warn { background: rgba(160, 109, 57, .08); color: #A06D39; border-color: rgba(160, 109, 57, .3); }
.rat-chip-periwinkle { background: rgba(84, 80, 228, .08); color: #5450E4; border-color: rgba(84, 80, 228, .4); }
.rat-chip-neutral { background: #F7F7F7; color: #4b5560; border-color: #E1E1DF; }
.rat-chip-muted { background: #EEEEEC; color: #4b5560; border-color: #E1E1DF; }
.rat-chip-dashed { background: #F7F7F7; color: #7d8690; border: 1px dashed #E1E1DF; }

/* ── dashboard widgets ───────────────────────────────────────────────────── */
.rat-w-title { font-size: 15px; font-weight: 700; color: var(--rat-ink); margin: 0; }
.rat-w-cap { font-size: 11px; color: var(--rat-ink-3); white-space: nowrap; }

.rat-funnel-row {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--rat-line-soft);
}
.rat-funnel-label { font-size: 12px; font-weight: 600; color: var(--rat-ink-2); }
.rat-funnel-n { font-size: 12px; font-weight: 700; color: var(--rat-ink); font-variant-numeric: tabular-nums; }
.rat-bar { margin: 0; }
/* The Rejected row is inert: a flat grey fill, no gradient — it is not progress. */
.rat-bar-fill.rat-bar-inert { background: #CFCFCB; }

.rat-renewal-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 4px 12px; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid var(--rat-line-soft);
}
.rat-renewal-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rat-renewal-date { font-size: 12px; color: var(--rat-ink-2); font-variant-numeric: tabular-nums; }

.rat-cluster-row {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline;
  width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--rat-line-soft); padding: 8px 0; font: inherit; color: inherit;
  cursor: pointer; transition: background .14s ease;
}
.rat-cluster-row:hover { background: var(--rat-soft); }
.rat-cluster-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rat-cluster-cap { font-size: 12.5px; font-weight: 600; }
.rat-cluster-detail { font-size: 11px; color: var(--rat-ink-3); }
.rat-cluster-n { font-size: 12px; font-weight: 700; color: #006A5F; font-variant-numeric: tabular-nums; }

.rat-fresh-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 4px 12px; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid var(--rat-line-soft);
}
.rat-fresh-name { font-size: 12.5px; font-weight: 600; }
.rat-fresh-rows { font-size: 12px; color: var(--rat-ink-2); font-variant-numeric: tabular-nums; }
.rat-fresh-age { font-size: 11px; color: var(--rat-ink-3); }

/* ── §2.4 / §6.1 responsive: the wrapper, NOT column-dropping. The rightmost
 * column is Review state — the one cell a reviewer acts on — so it must stay
 * reachable at any width. */
.rat-tablewrap { overflow-x: auto; }
.rat-tablemin { min-width: 1024px; }
.rat-tablemin-src { min-width: 920px; }

.rat-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.rat-filter { transition: background .14s ease, border-color .14s ease, color .14s ease; }

/* §2.3 — the seven-column template overrides .ini-treehead/.ini-row's own six. */
.rat-thead, .rat-row {
  grid-template-columns: minmax(240px, 1fr) 156px 58px 92px 88px 96px 142px;
  gap: 12px; align-items: center;
}
.rat-row {
  display: grid; width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--rat-line-soft); padding: 9px 10px; cursor: pointer;
  font: inherit; font-size: 13px; color: inherit;
  transition: background .14s ease, box-shadow .14s ease;
}
.rat-cell-cand { min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.rat-cand-title { font-size: 13px; font-weight: 600; color: var(--rat-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rat-cand-apps { font-size: 11px; color: var(--rat-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rat-cell-score { font-size: 14px; font-weight: 700; color: var(--rat-ink); font-variant-numeric: tabular-nums; text-align: left; }
.rat-cell-ev { font-size: 12px; color: var(--rat-ink-2); font-variant-numeric: tabular-nums; text-align: left; }
.rat-snap-plain { font-size: 12px; color: var(--rat-ink-3); }

/* ── §2.5 evidence slide-over. The container `.rat`/.ini overflow:hidden is
 * LOAD-BEARING: without it the closed panel at translateX(102%) extends the
 * scrollable width. The extra 60px over .ini-panel is what the source-row field
 * lines need; the drawer shadow deliberately stays .ini-panel's. */
.rat-panel { width: min(620px, 94%); }
.rat-panel-title { font-size: 19px; }
.rat-twonum-v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rat-h4 { margin: 0 0 8px; }

.rat-applist { margin-bottom: 20px; }
.rat-appline {
  display: flex; align-items: baseline; gap: 8px; font-size: 12.5px;
  padding: 6px 0; border-bottom: 1px solid var(--rat-line-soft);
}
.rat-appline-name { font-weight: 600; }
.rat-appline-links { margin-left: auto; font-size: 11px; color: var(--rat-ink-2); white-space: nowrap; }

.rat-verdict-card {
  background: var(--rat-elev); border: 1px solid var(--rat-line); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 20px;
}
.rat-verdict-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.rat-verdict-rationale { font-size: 12.5px; color: var(--rat-ink-2); line-height: 1.55; }
.rat-verdict-note { margin-top: 8px; font-size: 11px; color: var(--rat-warn); }
.rat-verdict-prov { margin-top: 8px; font-size: 11px; color: var(--rat-ink-3); }

.rat-srcrows { margin-bottom: 20px; }
.rat-srcrow-ev {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px;
  padding: 8px 0; border-bottom: 1px solid var(--rat-line-soft);
}
.rat-srcrow-sys { font-size: 12.5px; font-weight: 600; }
.rat-srcrow-ref { font-size: 11px; color: var(--rat-ink-3); text-align: right; }
.rat-srcrow-fields { grid-column: 1 / -1; font-size: 11.5px; color: var(--rat-ink-2); line-height: 1.45; }

.rat-ruleinputs { margin-bottom: 16px; }
.rat-ruleinput {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid var(--rat-line-soft); font-size: 12.5px;
}
.rat-ruleinput-k { color: var(--rat-ink-2); }
.rat-ruleinput-v { font-weight: 700; font-variant-numeric: tabular-nums; }

.rat-freshness { font-size: 12.5px; line-height: 1.5; margin-bottom: 20px; }

.rat-state-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rat-state-btn {
  font: inherit; font-size: 12px; font-weight: 700; border-radius: 8px; padding: 8px 14px;
  background: var(--rat-elev); color: var(--rat-ink-2); border: 1px solid var(--rat-line);
  cursor: pointer; transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.rat-state-btn:hover:not(:disabled) { border-color: var(--rat-teal); color: var(--rat-teal-dark); background: var(--rat-bg-2); }
.rat-state-btn.active { background: var(--rat-teal); color: #fff; border-color: var(--rat-teal); }
.rat-state-btn:disabled { opacity: .55; cursor: default; }
.rat-state-note { font-size: 11.5px; color: var(--rat-ink-3); line-height: 1.5; margin-bottom: 16px; }

/* The append-only log. Nothing in this block ever removes or edits a row. */
.rat-log { background: var(--rat-soft); border: 1px solid var(--rat-line); border-radius: 10px; padding: 12px 14px; }
.rat-log-head {
  font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--rat-ink-3);
  font-weight: 700; margin-bottom: 8px;
}
.rat-log-row {
  display: grid; grid-template-columns: 96px 1fr; gap: 2px 10px; font-size: 12px;
  padding: 6px 0; border-bottom: 1px solid var(--rat-line-soft);
}
.rat-log-row:last-child { border-bottom: 0; }
.rat-log-when { font-size: 11px; color: var(--rat-ink-3); font-variant-numeric: tabular-nums; }
.rat-log-what { font-weight: 600; }
.rat-log-who { grid-column: 2; font-size: 11px; color: var(--rat-ink-3); }
.rat-log-empty { font-size: 12px; color: var(--rat-ink-3); }

.rat-panel-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.rat-outline-btn {
  font: inherit; font-size: 12px; border-radius: 8px; padding: 8px 14px;
  background: var(--rat-elev); color: var(--rat-ink); border: 1px solid var(--rat-line);
  cursor: pointer; transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.rat-outline-btn:hover { border-color: var(--rat-teal); color: var(--rat-teal-dark); background: var(--rat-bg-2); }

/* ── §3 applications & links ─────────────────────────────────────────────── */
.rat-h3-spaced { margin: 26px 0 12px; }
.rat-linkcards { display: flex; flex-direction: column; gap: 10px; }
/* The 3px periwinkle left edge IS the "unconfirmed — not yet the durable asset"
 * state. These cards are not `.ini-card` and must NOT lift on hover: the card is
 * not clickable, its two buttons are. */
.rat-linkcard {
  background: var(--rat-elev); border: 1px solid var(--rat-line);
  border-left: 3px solid var(--rat-private); border-radius: 12px; padding: 14px 16px;
}
.rat-linkcard-decided { border-left-color: var(--rat-line); }
.rat-linkcard-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.rat-linkcard-name { font-size: 15px; font-weight: 700; line-height: 1.35; }
.rat-linkcard-body { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.rat-linkcard-text { min-width: 0; }
.rat-linkcard-src { font-size: 12.5px; color: var(--rat-ink-2); }
.rat-linkcard-src b { font-weight: 600; color: var(--rat-ink); }
.rat-linkcard-snap { color: var(--rat-ink-3); }
.rat-linkcard-rationale { font-size: 11.5px; color: var(--rat-ink-3); margin-top: 4px; line-height: 1.45; }
.rat-linkcard-btns { display: flex; gap: 8px; flex-shrink: 0; }
.rat-linkbtn {
  font: inherit; font-size: 12px; font-weight: 700; border-radius: 8px; padding: 6px 14px;
  background: var(--rat-elev); border: 1px solid var(--rat-line); cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.rat-linkbtn-confirm { color: var(--rat-teal-dark); }
.rat-linkbtn-reject { color: var(--rat-ink-3); }
.rat-linkbtn:hover:not(:disabled) { border-color: var(--rat-teal); background: var(--rat-bg-2); }
.rat-linkbtn-confirm.decided { background: var(--rat-teal); color: #fff; border-color: var(--rat-teal); }
.rat-linkbtn-reject.decided { background: #EEEEEC; color: var(--rat-ink-2); border-color: var(--rat-line); }
.rat-linkbtn:disabled { cursor: default; }
.rat-linkcard-foot {
  margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--rat-line-soft);
  display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--rat-ink-3);
  font-variant-numeric: tabular-nums;
}
.rat-closing { margin-top: 16px; font-size: 12px; color: var(--rat-ink-3); line-height: 1.5; max-width: 760px; }

/* ── §4 sources & snapshots ──────────────────────────────────────────────── */
.rat-upload { margin-bottom: 20px; }
.rat-upload-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rat-upload-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.rat-upload-sub { font-size: 12px; color: var(--rat-ink-3); margin: 0; line-height: 1.5; max-width: 640px; }
/* Nothing existing matches: .ini-btn is outline-only. */
.rat-btn-primary {
  background: var(--rat-teal); border: 1px solid var(--rat-teal); color: #fff;
  font: inherit; font-size: 12px; font-weight: 700; border-radius: 8px; padding: 8px 16px;
  cursor: pointer; transition: background .14s ease, border-color .14s ease;
}
.rat-btn-primary:hover { background: var(--rat-teal-dark); border-color: var(--rat-teal-dark); }

.rat-srchead, .rat-srcrow {
  display: grid; grid-template-columns: minmax(200px, 1fr) 170px 140px 120px 110px 120px; gap: 12px;
}
.rat-srchead { align-items: end; }
.rat-srcrow {
  align-items: center; padding: 9px 10px; border-bottom: 1px solid var(--rat-line-soft); font-size: 13px;
}
.rat-srcrow-label { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rat-srcrow-name { font-weight: 600; }
.rat-srccell { font-size: 12.5px; color: var(--rat-ink-2); }
.rat-srccell.rat-mono { font-size: 11.5px; }

.rat-lineage { background: var(--rat-elev); border: 1px solid var(--rat-line); border-radius: 12px; overflow: hidden; }
.rat-lineage-row {
  display: grid; grid-template-columns: 150px 1fr 130px 110px; gap: 12px; align-items: baseline;
  padding: 11px 16px; border-bottom: 1px solid var(--rat-line-soft); font-size: 12.5px;
}
.rat-lineage-row:last-child { border-bottom: 0; }
.rat-lineage-id { font-family: var(--rat-mono); font-size: 11.5px; color: #006A5F; }
.rat-lineage-src { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rat-lineage-name { font-weight: 600; }
.rat-lineage-file { font-size: 11px; color: var(--rat-ink-3); }
.rat-lineage-date, .rat-lineage-rows { color: var(--rat-ink-2); }

/* ── §5 overlap graph — the SPA's own .graph-* shell, re-contextualized ──── */
/* .graph-shell is height:calc(100vh - 60px) in app.css; inside this module the
 * body already owns the scroll, so the shell must flex instead. `.ini-body` is a
 * plain block, so `flex:1` only bites once the body itself is a flex column —
 * hence the graph-only body modifier rather than a second height calculation to
 * keep in step with the topbar. */
.rat-body-graph { display: flex; flex-direction: column; }
.rat-body-graph .rat-banner { flex-shrink: 0; }
.rat .graph-shell { height: auto; flex: 1; min-height: 520px; }
.rat-graph-shell { border: 1px solid var(--rat-line); border-radius: 12px; }
.rat-graph-h2 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.rat-graph-desc { font-size: 12px; color: var(--rat-ink-3); line-height: 1.4; }
.rat-graph-listmsg { padding: 16px; color: var(--rat-ink-3); font-size: 12.5px; }
.rat-graph-glyph { font-size: 48px; opacity: .18; line-height: 1; }
.rat-graph-ph1 { margin-top: 8px; font-weight: 600; }
.rat-graph-ph2 { margin-top: 4px; font-size: 12px; color: var(--rat-ink-3); }
.rat-graph-fail { color: #8B3A3A; font-weight: 600; font-size: 13px; }
.rat-graph-status { font-size: 11px; color: var(--rat-ink-3); }
.rat-graph-readout .rat-mono { font-size: 12px; }
/* The ◈ mark on a validated application, and the capability dot that carries the
 * node's stroke colour into the rail so the list and the canvas read as one set. */
.rat-gxp { font-size: 10px; color: var(--rat-ink-2); flex-shrink: 0; }
.rat-comp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
/* app.css's `.graph-comp-row.selected` is a PRE-RESKIN green (rgba(29,158,117,.18))
 * with a left border. Scoped to this module only, the selected row is the MSD teal
 * 6% wash the rest of the module uses. The class and its mechanics are untouched. */
.rat .graph-comp-row.selected { background: rgba(0, 133, 124, .06); border-left-color: transparent; font-weight: 400; }
.rat-grt-status { color: var(--rat-ink-3); font-style: normal; }

/* Group-by swatches — V2's pre-reskin #EC4899/#06B6D4/#10B981/#F59E0B must not
 * carry over. Same 12px .grt-shape box, MSD tokens, one shape per grouping:
 * capability rounded square · owner hexagon · lifecycle diamond · review star. */
.rat-grt-capability { background: var(--rat-teal); border-radius: 6px; }
.rat-grt-owner { background: var(--rat-private); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.rat-grt-lifecycle { background: var(--rat-warn); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.rat-grt-review { background: #6ECEB2; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

/* Legend swatches — the pale .graph-legend card is reused verbatim; only the
 * fills are re-authored (V2's #7B68EE/#20B2AA/#4169E1/#DA8B0A are pre-reskin).
 * Each swatch mirrors the mark it stands for on the canvas. */
.rat-gl-app { background: #fff; border: 2px solid var(--rat-teal); border-radius: 50%; }
.rat-gl-hub { background: rgba(0, 133, 124, .06); border: 2px solid var(--rat-teal); border-radius: 4px; }
.rat-gl-contract {
  width: 9px; height: 9px; margin: 1px; transform: rotate(45deg);
  background: rgba(160, 109, 57, .10); border: 2px solid var(--rat-warn);
}
.rat-gl-source { background: #fff; border: 1px solid var(--rat-ink-3); }
.rat-gl-ring {
  width: 12px; height: 12px; border-radius: 50%; background: transparent;
  border: 2px solid var(--rat-warn); display: inline-block; flex-shrink: 0;
}

.rat-edge-tip {
  position: absolute; transform: translate(-50%, -140%); pointer-events: none; z-index: 6;
  background: #fff; border: 1px solid var(--rat-line); border-radius: 4px;
  padding: 2px 7px; font-family: var(--rat-mono); font-size: 12px; color: var(--rat-ink-2);
  white-space: nowrap; box-shadow: var(--shadow-sm, 0 1px 4px rgba(0, 0, 0, .06));
}

.rat-gnd-owner { color: var(--rat-ink-3); }
.rat-gnd-id { font-family: var(--rat-mono); font-size: 11.5px; color: var(--rat-ink-3); margin-bottom: 8px; }
.rat-gnd-cap { margin-bottom: 2px; }
.rat-gnd-keys { font-family: var(--rat-mono); font-size: 11px; color: var(--rat-ink-3); margin-top: 2px; }
.rat-gnd-cand { display: flex; align-items: center; gap: 8px; padding: 5px 0; flex-wrap: wrap; }
.rat-gnd-score { font-size: 12px; color: var(--rat-ink-2); font-variant-numeric: tabular-nums; }
.rat-gnd-none { font-size: 11.5px; color: var(--rat-ink-3); line-height: 1.45; margin-top: 6px; }
.rat-gnd-note { font-size: 10.5px; color: var(--rat-ink-3); line-height: 1.5; margin-top: 10px; }
.rat-gnd-pair { line-height: 1.4; margin-bottom: 6px; }
.rat-gnd-verdictrow { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.rat-gnd-rationale { font-size: 13px; color: var(--rat-ink-2); line-height: 1.5; margin-top: 8px; }
.rat-gnd-ev { font-family: var(--rat-mono); font-size: 11px; color: var(--rat-ink-2); }
.rat-gnd-ev-foot { color: var(--rat-ink-3); margin-top: 10px; }
.rat-gnd-append { margin-top: 10px; font-size: 10.5px; color: var(--rat-ink-3); line-height: 1.45; }
/* Full-width, per the mockup — it is the panel's one action. */
.rat-gnd-open { display: block; width: 100%; margin-top: 12px; padding: 9px 14px; }

/* ── §6.1 responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .rat-wgrid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .rat-panel { width: 100%; }
  .rat-linkcard-body { grid-template-columns: 1fr; }
  .rat-linkcard-btns { justify-content: flex-start; }
}

/* ── §6.2 motion. The only transitions are the slide-over's transform .22s ease
 * (inherited from .ini-panel) and 120–160ms colour/border/shadow. The cose layout
 * already runs animate:false, so the graph settles instantly for everyone; the
 * one thing left to guard is the double-click cy.animate, handled in JS. */
@media (prefers-reduced-motion: reduce) {
  .rat-panel, .rat-row, .rat-filter, .rat-cluster-row, .rat-state-btn, .rat-linkbtn,
  .rat-outline-btn, .rat-btn-primary, .graph-rail, .graph-side, .graph-panel-toggle {
    transition: none;
  }
}
