/* DifficultResearch workspace — product layer over RIDS.
   Tokens, components, focus states, and themes come from rids.css
   (design/rocketserve-intelligence-design-system.md). This file holds
   product layout and the epistemic mapping only. */

main { max-width: 1000px; margin: 0 auto; padding: var(--rs-space-5) var(--rs-space-4) var(--rs-space-8); }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--rs-space-2);
  padding: var(--rs-space-3) var(--rs-space-4);
  border-bottom: 1px solid var(--rs-line);
}
.topbar .brand { display: inline-flex; align-items: center; color: var(--rs-ink); text-decoration: none; }
.topbar .brand:hover { text-decoration: none; }
.topbar nav { display: flex; gap: var(--rs-space-3); align-items: center; min-width: 0; }
.topbar nav .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }

.site-footer {
  border-top: 1px solid var(--rs-line);
  padding: var(--rs-space-4); text-align: center;
}

.narrow { max-width: 460px; }
.cardlist { list-style: none; padding: 0; }
.cardlist .rs-card { display: flex; gap: var(--rs-space-3); align-items: baseline; }
.items { list-style: none; padding: 0; margin: 0 0 var(--rs-space-3); }
.items li { padding: var(--rs-space-2) 0; border-bottom: 1px solid var(--rs-line); }
/* A claim's stated reasoning, indented under its statement (Case Framework). */
.claim-reasoning { margin-top: var(--rs-space-1); padding-left: var(--rs-space-3);
  border-left: 2px solid var(--rs-line-strong); font-size: var(--rs-text-sm); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--rs-space-4); }
@media (max-width: 768px) { .grid2 { grid-template-columns: 1fr; } }

label { display: block; margin: var(--rs-space-3) 0; font-size: var(--rs-text-sm); color: var(--rs-muted); }
input, textarea, select {
  width: 100%; margin-top: var(--rs-space-1);
  padding: var(--rs-space-2) var(--rs-space-3);
  background: var(--rs-bg); color: var(--rs-ink);
  border: 1px solid var(--rs-line-strong); border-radius: var(--rs-radius-sm); font: inherit;
}
button {
  margin-top: var(--rs-space-2); padding: var(--rs-space-2) var(--rs-space-4);
  background: var(--rs-accent); color: var(--rs-accent-ink);
  border: 0; border-radius: var(--rs-radius-sm); font: 500 var(--rs-text-sm) var(--rs-font-ui);
  cursor: pointer;
}
button.linklike {
  background: none; color: var(--rs-muted); margin: 0;
  min-height: var(--rs-target-min); padding: var(--rs-space-2);
  font-weight: 400; text-decoration: underline;
}
.inline { display: inline; }
.breadcrumb { margin: var(--rs-space-3) 0 0; font-size: var(--rs-text-sm); }
.breadcrumb a { color: var(--rs-muted); display: inline-flex; align-items: center;
  min-height: var(--rs-target-min); }
.breadcrumb a:hover { color: var(--rs-ink); }
.rs-field small { display: block; margin-top: var(--rs-space-1); }
.rs-table caption { caption-side: bottom; text-align: left;
  padding-top: var(--rs-space-2); font-size: var(--rs-text-xs); }
.muted { color: var(--rs-muted); }
.error { color: var(--rs-danger); }
.prose { white-space: pre-wrap; font: inherit; }

/* Legacy aliases used by templates (map onto RIDS components). */
.card { background: var(--rs-surface); background-image: var(--rs-surface-sheen);
  border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-md); box-shadow: var(--rs-elevation-1);
  padding: var(--rs-space-4) var(--rs-space-5); margin: var(--rs-space-4) 0;
  transition: box-shadow var(--rs-dur) var(--rs-ease),
              transform var(--rs-dur) var(--rs-ease),
              border-color var(--rs-dur) var(--rs-ease); }
.badge { display: inline-block; padding: 1px var(--rs-space-2);
  border: 1px solid var(--rs-line); border-radius: var(--rs-radius-full);
  font-size: var(--rs-text-xs); color: var(--rs-muted); white-space: nowrap; }
.badge-public { border-color: var(--rs-accent); color: var(--rs-accent); }
.badge-restricted { border-color: var(--rs-warning); color: var(--rs-warning); }
.badge-private { border-color: var(--rs-danger); color: var(--rs-danger); }
.badge-ai { border-color: var(--rs-intel); color: var(--rs-intel); }
/* Warn-only ceiling flag: the claimed strength exceeds what the record supports. */
.badge-ceiling { border-color: var(--rs-danger); color: var(--rs-danger); }
/* Inline work-this-item tools (claims, timeline events) — quiet until opened. */
.claim-tools { margin-top: var(--rs-space-2); }
.claim-tools summary { cursor: pointer; font-size: var(--rs-text-sm); }
.claim-tools[open] { padding: var(--rs-space-2) var(--rs-space-3);
  border-left: 2px solid var(--rs-line-strong); }
.claim-tools form { margin: var(--rs-space-2) 0; }
/* Timeline — chronology by the world's clock. */
.tl-year { margin: var(--rs-space-4) 0 var(--rs-space-2); color: var(--rs-muted);
  font-size: var(--rs-text-sm); letter-spacing: 0.06em; }
.tl-list { list-style: none; padding: 0; margin: 0; }
.tl-event { display: flex; gap: var(--rs-space-3); padding: var(--rs-space-2) 0;
  border-bottom: 1px solid var(--rs-line); align-items: baseline; }
.tl-when { flex: 0 0 9.5rem; color: var(--rs-muted); font-family: var(--rs-font-mono);
  font-size: var(--rs-text-sm); font-variant-numeric: tabular-nums; }
.tl-body { flex: 1; min-width: 0; }
.tl-event--lead .tl-when { border-left: 2px solid var(--rs-warning); padding-left: var(--rs-space-2); }
.tl-entities { margin-top: var(--rs-space-1); }
/* Report: text that flags what cuts against or exceeds the record. */
.report__warn { color: var(--rs-danger); }
/* Athena's five-category briefing on the Overview rail. */
.athena-briefing__item { margin: var(--rs-space-1) 0 var(--rs-space-2);
  padding-left: var(--rs-space-3); border-left: 2px solid var(--rs-line);
  font-size: var(--rs-text-sm); }
.athena-briefing__act { margin: var(--rs-space-1) 0 0; }
.athena-briefing__act .rs-btn { font-size: var(--rs-text-xs); padding: 1px var(--rs-space-2); }

/* Login/error cards center within main; declared after .card so the
   auto margins win the cascade. */
.login-card, .error-card { margin-left: auto; margin-right: auto; }
.login-card { margin-top: var(--rs-space-8); text-align: center; }
.login-card form { text-align: left; }

/* Epistemic classes -> RIDS semantics. Verified reads calm/affirmative,
   speculative reads visibly provisional, disputed reads danger.
   A hypothesis can never look like a fact. */
.epistemic-adjudicated_fact, .epistemic-documented_evidence,
.epistemic-verified_timeline, .epistemic-primary_source {
  border-color: var(--rs-success); color: var(--rs-success); }
.epistemic-working_hypothesis, .epistemic-connection_under_review,
.epistemic-research_lead, .epistemic-open_question, .epistemic-unknown {
  border-color: var(--rs-warning); color: var(--rs-warning); font-style: italic; }
.epistemic-disputed_claim { border-color: var(--rs-danger); color: var(--rs-danger); }

/* ═══════════════════════════════════════════════════════════════
   Premium polish — milestones 2-5. The mockup's depth/glow language
   carried into the real components as reusable rules. Elevation
   composes the family shadow tokens (--rs-elevation-*); accent glows
   derive from --rs-accent via color-mix() so they track the active
   theme. Focus rings stay visible (WCAG 2.4.7). Motion is frozen under
   prefers-reduced-motion by the global rule in rids.css.
   ═══════════════════════════════════════════════════════════════ */

/* — M5: family signature strip + sticky, frosted top chrome — */
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1000;
  background: linear-gradient(90deg, var(--rsb-red) 0%, var(--rsb-navy) 55%, var(--rs-accent) 100%);
}
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--rs-bg) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  box-shadow: 0 1px 0 var(--rs-line), 0 10px 24px -20px rgba(0, 0, 0, .7);
}

/* — M2: buttons lift; primary carries a soft, theme-tracking accent glow — */
button:not(.rs-btn):not(.linklike),
.rs-btn-primary {
  box-shadow: 0 4px 14px -5px color-mix(in srgb, var(--rs-accent) 50%, transparent);
  transition: box-shadow var(--rs-dur) var(--rs-ease),
              transform var(--rs-dur) var(--rs-ease),
              filter var(--rs-dur) var(--rs-ease);
}
button:not(.rs-btn):not(.linklike):hover,
.rs-btn-primary:hover {
  filter: brightness(1.04); transform: translateY(-1px);
  box-shadow: 0 9px 24px -7px color-mix(in srgb, var(--rs-accent) 60%, transparent);
}
button:not(.rs-btn):not(.linklike):active,
.rs-btn-primary:active { transform: translateY(1px); }
.rs-btn-secondary {
  box-shadow: var(--rs-elevation-1);
  transition: box-shadow var(--rs-dur) var(--rs-ease),
              transform var(--rs-dur) var(--rs-ease),
              border-color var(--rs-dur) var(--rs-ease);
}
.rs-btn-secondary:hover { transform: translateY(-1px); border-color: var(--rs-line-strong); }
button.linklike { box-shadow: none; }

/* — M3: field focus ring — visible, accent-derived, both themes — */
input:focus, textarea:focus, select:focus, .rs-input:focus,
.rs-field input:focus, .rs-field textarea:focus, .rs-field select:focus {
  outline: none;
  border-color: var(--rs-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rs-accent) 22%, transparent);
}
input, textarea, select {
  transition: border-color var(--rs-dur-fast) var(--rs-ease),
              box-shadow var(--rs-dur-fast) var(--rs-ease);
}

/* — M4: status chips read as chips — a faint wash of their own color — */
.badge, .rs-badge {
  background-color: color-mix(in srgb, currentColor 9%, transparent);
}

/* — M6: content surfaces — tables, lists, phase-gates, empty states — */
.rs-table thead th {
  background: var(--rs-surface-2);
  border-bottom-color: var(--rs-line-strong);
}
.rs-table tbody tr { transition: background-color var(--rs-dur-fast) var(--rs-ease); }
.rs-table tbody tr:hover { background: color-mix(in srgb, var(--rs-accent) 6%, transparent); }

/* list rows get breathing room + a quiet hover, keeping their separators */
.items li { padding: var(--rs-space-2) var(--rs-space-3);
  transition: background-color var(--rs-dur-fast) var(--rs-ease); }
.items li:hover { background: color-mix(in srgb, var(--rs-ink) 4%, transparent); }
/* nested check lists (the lifecycle phase gates) read as an inset rail */
.items .items { margin-top: var(--rs-space-2);
  border-left: 2px solid var(--rs-line); padding-left: var(--rs-space-3); }
.items .items li { border-bottom: none; }

/* an empty state is a soft surface, not a dashed void */
.rs-empty {
  background: var(--rs-surface); background-image: var(--rs-surface-sheen);
  box-shadow: var(--rs-elevation-1);
}

/* — M7: phones — the top-bar lockup shows the name only, gutters tighten.
   Everything else is already fluid (main max-width, flex-wrap chrome,
   grid2 -> 1col at 768px, tables scroll in their own box). */
@media (max-width: 480px) {
  .rs-lockup--sm .rs-lockup__desc { display: none; }
  main { padding-left: var(--rs-space-3); padding-right: var(--rs-space-3); }
}

/* — Review Workspace: readiness | decision queue | Athena.
   The workspace needs more width than the reading column; three regions at
   desk width, stacked in reading order (readiness → queue → Athena) below. */
main:has(.review-grid) { max-width: 1280px; }
.review-grid { display: grid; grid-template-columns: 1fr; gap: 0 var(--rs-space-5); align-items: start; }
@media (min-width: 1200px) {
  .review-grid { grid-template-columns: 280px minmax(0, 1fr) 300px; }
}
.review-grid .rs-athena-rail { margin-top: var(--rs-space-4); }

.review-indicators { list-style: none; padding: 0; margin: 0; }
.review-indicator {
  display: flex; align-items: center; gap: var(--rs-space-2); flex-wrap: wrap;
  padding: var(--rs-space-2) 0; border-bottom: 1px solid var(--rs-line);
}
.review-indicator:last-child { border-bottom: none; }
.review-indicator .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-ok { background: var(--rs-success); }
.dot-attention {
  background: var(--rs-warning);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rs-warning) 20%, transparent);
}
.dot-planned { background: transparent; border: 1px dashed var(--rs-line-strong); }
.review-indicator__label { flex: 1; font-size: var(--rs-text-sm); }
.review-indicator__value {
  font-family: var(--rs-font-mono); font-variant-numeric: tabular-nums;
}
.review-indicator small { flex-basis: 100%; padding-left: calc(8px + var(--rs-space-2)); }
.planned-chip {
  font-family: var(--rs-font-mono); font-size: var(--rs-text-xs); color: var(--rs-muted);
  border: 1px dashed var(--rs-line-strong); border-radius: var(--rs-radius-sm);
  padding: 0 var(--rs-space-2); white-space: nowrap;
}
.review-workflow { display: flex; gap: var(--rs-space-2); align-items: center; flex-wrap: wrap; }

.review-item {
  border: 1px solid var(--rs-line); border-radius: var(--rs-radius-md);
  background: var(--rs-bg); background-image: var(--rs-surface-sheen);
  padding: var(--rs-space-3) var(--rs-space-4); margin: var(--rs-space-3) 0;
}
.review-item__head { display: flex; gap: var(--rs-space-2); align-items: center; flex-wrap: wrap; margin: 0 0 var(--rs-space-2); }
.review-actions { display: flex; gap: var(--rs-space-2); align-items: center; flex-wrap: wrap; margin-top: var(--rs-space-3); }
.review-actions input[name="note"] { flex: 1; min-width: 200px; width: auto; margin-top: 0; }
.review-actions .rs-btn { margin-top: 0; }

/* — Evidence Detail: the auditable evidence object.
   Main column (preview, facts, relationships, history) beside the custody
   & tools rail at desk width; stacked in reading order below. */
main:has(.evidence-detail-grid) { max-width: 1280px; }
.evidence-detail-grid { display: grid; grid-template-columns: 1fr; gap: 0 var(--rs-space-5); align-items: start; }
@media (min-width: 1024px) {
  .evidence-detail-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}
.evidence-head h2 { margin-bottom: var(--rs-space-1); overflow-wrap: anywhere; }
.evidence-preview { max-width: 100%; max-height: 420px; border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-md); box-shadow: var(--rs-elevation-1); }
.facts-table th { width: 11em; white-space: nowrap; }
.sha-full { overflow-wrap: anywhere; }

/* custody: a quiet vertical rail — every dot is an immutable event */
.custody-timeline { list-style: none; margin: 0; padding: 0 0 0 var(--rs-space-3);
  border-left: 2px solid var(--rs-line-strong); }
.custody-timeline li { position: relative; padding: var(--rs-space-2) 0 var(--rs-space-2) var(--rs-space-3);
  font-size: var(--rs-text-sm); }
.custody-timeline li::before { content: ""; position: absolute;
  left: calc(-1 * var(--rs-space-3) - 5px); top: 1.05em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rs-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rs-accent) 18%, transparent); }
.custody-event { font-weight: 600; }

/* — At-a-glance strip: the case's operational numbers, each a doorway
   into the workflow that resolves it. */
.glance { display: flex; flex-wrap: wrap; gap: var(--rs-space-2); margin: 0 0 var(--rs-space-3); }
.glance a {
  display: inline-flex; align-items: center; gap: var(--rs-space-2);
  border: 1px solid var(--rs-line); border-radius: var(--rs-radius-full);
  padding: var(--rs-space-1) var(--rs-space-3);
  color: var(--rs-ink); text-decoration: none; font-size: var(--rs-text-sm);
  background: var(--rs-surface); box-shadow: var(--rs-elevation-1);
  transition: border-color var(--rs-dur-fast) var(--rs-ease),
              transform var(--rs-dur-fast) var(--rs-ease);
}
.glance a:hover { border-color: var(--rs-accent); transform: translateY(-1px); text-decoration: none; }
.glance .n { font-family: var(--rs-font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ─────────────────────────────────────────────────────────────────────────
   Trust & Confidence sprint — a calm first-run.
   Tokens carry the light/dark palette, so these read correctly in both.
   ───────────────────────────────────────────────────────────────────────── */

/* Getting-started welcome: the warm capture-first orientation on a new case. */
.rs-welcome { border-left: 3px solid var(--rs-intel);
  background: color-mix(in srgb, var(--rs-intel) 6%, var(--rs-surface));
  background-image: var(--rs-surface-sheen); box-shadow: var(--rs-elevation-1); }
.rs-welcome h2 { color: var(--rs-ink); }
.rs-welcome .rs-btn { margin-top: var(--rs-space-2); }
.rs-capture-list { margin: var(--rs-space-2) 0 var(--rs-space-3); padding-left: var(--rs-space-4);
  display: grid; gap: var(--rs-space-1); }
.rs-capture-list li { color: var(--rs-ink); }
.rs-capture-list strong { color: var(--rs-intel); }

/* The four reassurances — quiet, evenly weighted, checkmark-led. */
.rs-trust-points { list-style: none; margin: var(--rs-space-4) 0 0; padding: var(--rs-space-3) 0 0;
  border-top: 1px solid var(--rs-line); display: grid; gap: var(--rs-space-2); }
.rs-trust-points li { position: relative; padding-left: var(--rs-space-5);
  color: var(--rs-muted); font-size: var(--rs-text-sm); line-height: var(--rs-leading); }
.rs-trust-points li::before { content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--rs-success); font-weight: 700; }
.rs-trust-points strong { color: var(--rs-ink); font-weight: 600; }

.rs-access-note { font-size: var(--rs-text-sm); margin-top: var(--rs-space-3);
  padding-top: var(--rs-space-3); border-top: 1px solid var(--rs-line); }

/* Preserve Pending — status at a glance, worded to reduce anxiety. */
.preserve-summary { display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--rs-space-2); margin: var(--rs-space-3) 0; }
.preserve-count { font-size: var(--rs-text-sm); font-weight: 600;
  padding: 1px var(--rs-space-2); border-radius: var(--rs-radius-full);
  border: 1px solid var(--rs-line); }
.preserve-count--ok { color: var(--rs-success);
  border-color: color-mix(in srgb, var(--rs-success) 40%, transparent); }
.preserve-count--working, .preserve-count--review { color: var(--rs-warning);
  border-color: color-mix(in srgb, var(--rs-warning) 40%, transparent); }
.preserve-count--fail { color: var(--rs-danger);
  border-color: color-mix(in srgb, var(--rs-danger) 40%, transparent); }
.preserve-reassure { flex-basis: 100%; color: var(--rs-muted); font-size: var(--rs-text-sm); }
.preserve-list .badge { min-width: 7.5rem; text-align: center; }
.preserve-hint { font-style: italic; }

/* Submit buttons show a busy state the instant they're pressed. */
.rs-btn[aria-busy="true"], .rs-btn:disabled { opacity: .7; cursor: progress; }

/* ─────────────────────────────────────────────────────────────────────────
   Guided intake (Intake I-1) — a focused, one-question-at-a-time flow that
   feels like sitting with a patient investigator. Athena-purple accents.
   ───────────────────────────────────────────────────────────────────────── */
.intake { max-width: 62rem; margin: 0 auto; }
.intake-grid { display: grid; grid-template-columns: 1fr; gap: var(--rs-space-5); }
@media (min-width: 900px) { .intake-grid { grid-template-columns: 1fr 15rem; } }

.intake-main { min-width: 0; }
.intake-meta { display: flex; align-items: center; justify-content: space-between;
  gap: var(--rs-space-3); margin: 0 0 var(--rs-space-2); }
.intake-move { font-size: var(--rs-text-xs); text-transform: uppercase;
  letter-spacing: .08em; color: var(--rs-intel); font-weight: 700; }

/* Segmented progress — no inline widths (CSP-safe). */
.intake-bar { list-style: none; display: flex; gap: 4px; padding: 0;
  margin: 0 0 var(--rs-space-5); }
.intake-bar li { height: 4px; flex: 1; border-radius: 2px; background: var(--rs-line); }
.intake-bar li.on { background: var(--rs-intel); }

.intake-h { font-size: var(--rs-text-xl); margin: 0 0 var(--rs-space-2); }
.intake-athena { font-size: var(--rs-text-md); color: var(--rs-ink);
  border-left: 3px solid var(--rs-intel); padding-left: var(--rs-space-3);
  margin: 0 0 var(--rs-space-4); line-height: var(--rs-leading); }
.intake-hint { margin-top: calc(-1 * var(--rs-space-2)); }
.intake-reassure { margin-top: var(--rs-space-5); padding-top: var(--rs-space-3);
  border-top: 1px solid var(--rs-line); font-size: var(--rs-text-sm); }

.intake-nav { display: flex; flex-wrap: wrap; gap: var(--rs-space-2);
  align-items: center; margin-top: var(--rs-space-4); }
.intake-nav .rs-btn-primary { margin-left: auto; }
.intake-skip { margin-top: var(--rs-space-2); font-size: var(--rs-text-sm); }
.intake-skip .linklike { color: var(--rs-intel); }

.intake-summary { list-style: none; padding: 0; margin: 0 0 var(--rs-space-3);
  display: grid; gap: var(--rs-space-1); }
.intake-summary li { padding: var(--rs-space-1) 0; border-bottom: 1px solid var(--rs-line); }
.intake-summary .ok { color: var(--rs-success); font-weight: 700; }
.intake-summary .todo { color: var(--rs-muted); }

/* The running tally — the case visibly building up as the person talks. */
.intake-aside { align-self: start; }
.intake-aside h2 { font-size: var(--rs-text-xs); text-transform: uppercase;
  letter-spacing: .08em; color: var(--rs-muted); margin: 0 0 var(--rs-space-2); }
.intake-tally { list-style: none; padding: 0; margin: 0 0 var(--rs-space-3);
  border: 1px solid var(--rs-line); border-radius: var(--rs-radius-md);
  overflow: hidden; background: var(--rs-surface); }
.intake-tally li { display: flex; justify-content: space-between; gap: var(--rs-space-2);
  padding: var(--rs-space-2) var(--rs-space-3); font-size: var(--rs-text-sm);
  color: var(--rs-muted); border-top: 1px solid var(--rs-line); }
.intake-tally li:first-child { border-top: none; }
.intake-tally li.on { color: var(--rs-ink); }
.intake-tally li.on span:last-child { color: var(--rs-intel); font-weight: 700;
  font-variant-numeric: tabular-nums; }

/* ─────────────────────────────────────────────────────────────────────────
   RocketServe shared icons — line glyphs that inherit the current text color
   (so one set serves light, dark, and every app). See brand_system/design/.
   ───────────────────────────────────────────────────────────────────────── */
.rs-icon { display: inline-block; vertical-align: -0.18em; flex: none; color: inherit; }
.rs-icon path, .rs-icon rect, .rs-icon circle, .rs-icon ellipse { vector-effect: non-scaling-stroke; }
.rs-icon--spin { animation: rs-spin .8s linear infinite; transform-origin: center; }
@keyframes rs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rs-icon--spin { animation-duration: 2.4s; } }

/* Tabs, glance chips, and buttons align their icon to the label with a gap. */
.rs-tabs a, .glance a, .rs-btn { display: inline-flex; align-items: center; gap: var(--rs-space-2); }
.glance .planned-chip { display: inline-flex; align-items: center; gap: var(--rs-space-2); }
.rs-athena-rail h2 .rs-icon, .card h3 .rs-icon, h2 .rs-icon { color: var(--rs-intel); }

/* Illustrated empty state — the line illustration sits beside the reassurance. */
.rs-empty--illustrated { display: flex; align-items: center; gap: var(--rs-space-4);
  text-align: left; }
.rs-empty__art { color: var(--rs-intel); opacity: .9; flex: none; }
@media (max-width: 520px) {
  .rs-empty--illustrated { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   WORKSPACE SHELL — a persistent left navigation turns a set of pages into a
   professional investigation workspace. Global nav on top, the open
   investigation's sections below, account controls at the foot.
   ═══════════════════════════════════════════════════════════════════════════ */
:root { --sidenav-w: 244px; }
.app-shell { display: grid; grid-template-columns: var(--sidenav-w) 1fr; align-items: start; min-height: 100vh; }
.app-shell--plain { grid-template-columns: 1fr; }
.app-body { display: flex; flex-direction: column; min-height: 100vh; min-width: 0; }
.app-body > #main { flex: 1 0 auto; }
/* With the shell, content breathes in a comfortable measure rather than a
   hard-centered narrow column. */
.app-shell:not(.app-shell--plain) #main { max-width: 1120px; margin: 0; padding: var(--rs-space-6) var(--rs-space-6) var(--rs-space-8); }

.sidenav {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--rs-space-1);
  padding: var(--rs-space-4) var(--rs-space-3);
  border-right: 1px solid var(--rs-line);
  background: var(--rs-surface); background-image: var(--rs-surface-sheen);
}
.sidenav__brand { display: block; padding: var(--rs-space-2) var(--rs-space-2) var(--rs-space-4); text-decoration: none; }
.sidenav__brand:hover { text-decoration: none; }
.sidenav__group { display: flex; flex-direction: column; gap: 2px; margin: 0 0 var(--rs-space-2); }
.sidenav__group a, .sidenav__soon {
  display: flex; align-items: center; gap: var(--rs-space-3);
  padding: var(--rs-space-2) var(--rs-space-3); border-radius: var(--rs-radius-md);
  color: var(--rs-muted); text-decoration: none; font-size: var(--rs-text-sm);
  font-weight: 500; line-height: 1.2; border-left: 2px solid transparent;
  transition: background var(--rs-dur-fast) var(--rs-ease),
              color var(--rs-dur-fast) var(--rs-ease);
}
.sidenav__group a:hover { background: color-mix(in srgb, var(--rs-ink) 6%, transparent);
  color: var(--rs-ink); text-decoration: none; }
.sidenav__group a[aria-current="page"] {
  background: color-mix(in srgb, var(--rs-accent) 12%, transparent);
  color: var(--rs-ink); border-left-color: var(--rs-accent); font-weight: 640;
}
.sidenav__group a[aria-current="page"] .rs-icon { color: var(--rs-accent); }
.sidenav__soon { color: color-mix(in srgb, var(--rs-muted) 70%, transparent); cursor: default; }
.sidenav__soon em { margin-left: auto; font-style: normal; font-size: var(--rs-text-xs);
  padding: 0 6px; border: 1px solid var(--rs-line); border-radius: var(--rs-radius-full); }
.sidenav__ctx { border-top: 1px solid var(--rs-line); padding-top: var(--rs-space-3); margin-top: var(--rs-space-1); }
.sidenav__head { font-size: var(--rs-text-xs); text-transform: uppercase; letter-spacing: .08em;
  color: var(--rs-muted); margin: 0 0 var(--rs-space-2); padding-left: var(--rs-space-3); }
.sidenav__spacer { flex: 1 0 var(--rs-space-4); }
.sidenav__foot { border-top: 1px solid var(--rs-line); padding-top: var(--rs-space-3);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--rs-space-2); }
.sidenav__user { font-size: var(--rs-text-sm); color: var(--rs-ink); font-weight: 600;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Mobile: the rail becomes a wrapping strip on top so nothing is lost. */
@media (max-width: 860px) {
  .app-shell:not(.app-shell--plain) { grid-template-columns: 1fr; }
  .app-shell:not(.app-shell--plain) #main { padding: var(--rs-space-4) var(--rs-space-3) var(--rs-space-7); }
  .sidenav { position: static; height: auto; flex-direction: row; flex-wrap: wrap;
    align-items: center; gap: var(--rs-space-2); }
  .sidenav__brand { padding: var(--rs-space-1) var(--rs-space-2); }
  .sidenav__group, .sidenav__ctx nav { flex-direction: row; flex-wrap: wrap; margin: 0; }
  .sidenav__ctx { border-top: none; padding-top: 0; flex-basis: 100%; }
  .sidenav__head { display: none; }
  .sidenav__spacer { display: none; }
  .sidenav__foot { border-top: none; margin-left: auto; }
}

/* ── Microinteractions — quiet motion that reinforces confidence. ──────────── */
.card, .glance a, .rs-btn, .sidenav__group a { transition:
  border-color var(--rs-dur-fast) var(--rs-ease),
  background var(--rs-dur-fast) var(--rs-ease),
  transform var(--rs-dur-fast) var(--rs-ease),
  box-shadow var(--rs-dur-fast) var(--rs-ease); }
.rs-banner--success { border-left: 3px solid var(--rs-success); }
.rs-banner--success .rs-icon { color: var(--rs-success); }
.rs-banner--demo { border-left: 3px solid var(--rs-intel);
  color: var(--rs-muted); font-size: var(--rs-text-sm); }
.rs-banner--demo strong { color: var(--rs-ink); }
.rs-banner--demo .rs-icon { color: var(--rs-intel); flex: none; }
@keyframes rs-pop { 0% { transform: scale(.96); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.rs-banner[role="status"] { animation: rs-pop var(--rs-dur) var(--rs-ease); }
@media (prefers-reduced-motion: reduce) {
  .card, .glance a, .rs-btn, .sidenav__group a { transition: none; }
  .rs-banner[role="status"] { animation: none; }
}

/* ── Command center (dashboard) ─────────────────────────────────────────────
   The operational home: portfolio totals, per-investigation cards, Athena's
   suggestions, and recent activity — everything actionable. */
.cc-head { display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--rs-space-4); flex-wrap: wrap; margin-bottom: var(--rs-space-5); }
.cc-head h1 { margin: 0 0 var(--rs-space-1); }
/* The investigation title is the one piece of editorial type in the workspace,
   so it carries the brand display face (--rs-font-display / Merriweather). This
   is what makes that token real rather than declared-and-unused. */
.case-head h1 { font-family: var(--rs-font-display); font-weight: 700;
  letter-spacing: -0.01em; }

.cc-portfolio { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--rs-space-3); margin-bottom: var(--rs-space-6); }
.cc-stat { display: flex; flex-direction: column; gap: 2px; padding: var(--rs-space-3) var(--rs-space-4);
  border: 1px solid var(--rs-line); border-radius: var(--rs-radius-md);
  background: var(--rs-surface); box-shadow: var(--rs-elevation-1);
  color: var(--rs-ink); text-decoration: none; }
a.cc-stat:hover { border-color: var(--rs-accent); transform: translateY(-1px); text-decoration: none; }
.cc-stat .rs-icon { color: var(--rs-muted); }
.cc-stat__n { font-size: var(--rs-text-xl); font-weight: 720; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cc-stat__l { font-size: var(--rs-text-xs); color: var(--rs-muted); text-transform: uppercase; letter-spacing: .05em; }
.cc-stat--attention .rs-icon, .cc-stat--attention .cc-stat__n { color: var(--rs-warning); }

.cc-grid { display: grid; grid-template-columns: 1fr; gap: var(--rs-space-5); }
@media (min-width: 1000px) { .cc-grid { grid-template-columns: 1fr 320px; align-items: start; } }
.cc-main h2, .cc-aside h2 { font-size: var(--rs-text-sm); text-transform: uppercase;
  letter-spacing: .06em; color: var(--rs-muted); margin: 0 0 var(--rs-space-3); }

.cc-cases { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--rs-space-3); }
.cc-case { display: grid; gap: var(--rs-space-2); }
.cc-case__top { display: flex; align-items: center; justify-content: space-between; gap: var(--rs-space-3); }
.cc-case__title { font-size: var(--rs-text-lg); }
.cc-case__meta { display: flex; align-items: center; gap: var(--rs-space-3); flex-wrap: wrap; margin: 0; }
.cc-case__next { display: flex; gap: var(--rs-space-2); align-items: flex-start; margin: 0;
  color: var(--rs-ink); font-size: var(--rs-text-sm); }
.cc-case__next .rs-icon { color: var(--rs-intel); flex: none; margin-top: 2px; }
.cc-case__counts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--rs-space-3); }
.cc-case__counts a { display: inline-flex; align-items: center; gap: 6px; font-size: var(--rs-text-sm);
  color: var(--rs-muted); }
.cc-case__counts a:hover { color: var(--rs-ink); }
.cc-flag { display: inline-flex; align-items: center; gap: 5px; font-size: var(--rs-text-xs);
  font-weight: 600; padding: 2px 8px; border-radius: var(--rs-radius-full); white-space: nowrap; flex: none; }
.cc-flag--attention { color: var(--rs-warning); border: 1px solid color-mix(in srgb, var(--rs-warning) 40%, transparent); }
.cc-flag--ok { color: var(--rs-success); border: 1px solid color-mix(in srgb, var(--rs-success) 35%, transparent); }

.cc-aside { display: grid; gap: var(--rs-space-4); }
.cc-sugg__case { display: block; font-weight: 600; font-size: var(--rs-text-sm); }
.cc-activity .items li { display: flex; gap: var(--rs-space-2); flex-wrap: wrap; align-items: baseline; }

/* ── Athena companion panel — persistent, contextual, never a chatbot. ─────── */
.athena-next { background: color-mix(in srgb, var(--rs-intel) 8%, var(--rs-surface));
  border: 1px solid color-mix(in srgb, var(--rs-intel) 22%, transparent);
  border-radius: var(--rs-radius-md); padding: var(--rs-space-3); margin: var(--rs-space-3) 0; }
.athena-next__label { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--rs-space-1);
  font-size: var(--rs-text-xs); text-transform: uppercase; letter-spacing: .06em;
  color: var(--rs-intel); font-weight: 700; }
.athena-next__label .rs-icon { color: var(--rs-intel); }
.athena-next__body { margin: 0; font-size: var(--rs-text-sm); color: var(--rs-ink); }
.athena-sec { font-size: var(--rs-text-xs); text-transform: uppercase; letter-spacing: .06em;
  color: var(--rs-muted); font-weight: 700; margin: var(--rs-space-3) 0 var(--rs-space-2); }

/* Contextual Athena presence on Evidence & Knowledge — the companion is
   never absent from where consequential work happens. */
.athena-hint { display: flex; gap: var(--rs-space-3); align-items: flex-start;
  padding: var(--rs-space-3) var(--rs-space-4); margin: 0 0 var(--rs-space-4);
  border: 1px solid color-mix(in srgb, var(--rs-intel) 22%, transparent);
  border-left: 3px solid var(--rs-intel); border-radius: var(--rs-radius-md);
  background: color-mix(in srgb, var(--rs-intel) 7%, var(--rs-surface)); }
.athena-hint .rs-icon { color: var(--rs-intel); flex: none; margin-top: 2px; }
.athena-hint p { margin: 0; font-size: var(--rs-text-sm); color: var(--rs-ink); }
.athena-hint__who { font-weight: 700; color: var(--rs-intel); }

/* Athena names herself at the intake front door; the evidence-detail lead
   orients the defensibility-minded reader before the forensic detail. */
.intake-id { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--rs-space-4);
  font-size: var(--rs-text-sm); }
.intake-id .rs-icon { color: var(--rs-intel); }
.intake-id strong { color: var(--rs-intel); }
.evidence-head__lead { max-width: 60ch; margin-top: var(--rs-space-2);
  font-size: var(--rs-text-sm); line-height: var(--rs-leading); }

/* ── Investigation health card — documentation completeness, never strength. ── */
.ih-card h2 .rs-icon { color: var(--rs-intel); }
.ih-grid { list-style: none; padding: 0; margin: var(--rs-space-2) 0 0;
  display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 640px) { .ih-grid { grid-template-columns: 1fr 1fr; column-gap: var(--rs-space-5); } }
.ih-dim { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline;
  gap: 4px var(--rs-space-2); padding: var(--rs-space-2) 0; border-top: 1px solid var(--rs-line); }
.ih-dim .dot { align-self: center; }
.ih-dim__label { font-weight: 600; font-size: var(--rs-text-sm); }
.ih-dim__val { font-variant-numeric: tabular-nums; font-weight: 700;
  color: var(--rs-muted); font-size: var(--rs-text-sm); white-space: nowrap; }
.ih-dim__note { grid-column: 2 / -1; font-size: var(--rs-text-xs); line-height: 1.4; }

/* ── Micro polish ──────────────────────────────────────────────────────────── */
/* Loading-skeleton utility (for future async surfaces); calm shimmer. */
.skeleton { position: relative; overflow: hidden; background: var(--rs-line);
  border-radius: var(--rs-radius-sm); color: transparent !important; }
.skeleton::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rs-surface) 60%, transparent), transparent);
  transform: translateX(-100%); animation: rs-shimmer 1.4s infinite; }
@keyframes rs-shimmer { 100% { transform: translateX(100%); } }
/* Keyboard focus is always unmistakable. */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible { outline: 2px solid var(--rs-focus); outline-offset: 2px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }

/* Keyboard-shortcut hint in the sidebar foot — quiet, discoverable. */
.sidenav__kbd { flex-basis: 100%; margin: var(--rs-space-2) 0 0; font-size: var(--rs-text-xs);
  color: var(--rs-muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sidenav__kbd kbd { font-family: var(--rs-font-mono); font-size: 10px; line-height: 1;
  padding: 2px 5px; border: 1px solid var(--rs-line); border-bottom-width: 2px;
  border-radius: 4px; color: var(--rs-ink); background: var(--rs-surface-2, var(--rs-surface)); }
@media (max-width: 860px) { .sidenav__kbd { display: none; } }

/* ── Project Atlas — relationship workspace (R9, Phase 2) ─────────────── */
/* Entity-kind palette. Calm, desaturated; nodes are neutral with a coloured
   ring so meaning stays with the epistemic edges. Read by graph.js too. */
:root {
  --atlas-people: #6f9fd6; --atlas-org: #c39a5a; --atlas-financial: #5fb094;
  --atlas-geo: #5aa7b0; --atlas-comms: #8793a8; --atlas-legal: #b083a0;
  --atlas-misc: #868d97;
}
:root[data-theme="light"] {
  --atlas-people: #3a6ea5; --atlas-org: #8a6a2f; --atlas-financial: #2f7d63;
  --atlas-geo: #2f7d86; --atlas-comms: #566175; --atlas-legal: #7d4f70;
  --atlas-misc: #5b626c;
}
.atlas { display: flex; flex-direction: column; gap: var(--rs-space-3); }

.atlas__toolbar { display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--rs-space-2); }
.atlas__lenses { display: flex; flex-wrap: wrap; gap: 6px; }
.atlas__lens { display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: var(--rs-text-sm); color: var(--rs-muted);
  background: transparent; border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-full, 999px); padding: 5px 12px; cursor: pointer;
  transition: color var(--rs-dur-fast) var(--rs-ease),
    border-color var(--rs-dur-fast) var(--rs-ease),
    background var(--rs-dur-fast) var(--rs-ease); }
.atlas__lens:hover { color: var(--rs-ink); border-color: var(--rs-line-strong, var(--rs-muted)); }
.atlas__lens.is-active { color: var(--rs-accent-ink, #1A1408); background: var(--rs-accent);
  border-color: var(--rs-accent); font-weight: 600; }
.atlas__lens:focus-visible { outline: var(--rs-focus-width, 2px) solid var(--rs-focus);
  outline-offset: 2px; }
.atlas__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--atlas-misc); }
.atlas__dot[data-grp="people"] { background: var(--atlas-people); }
.atlas__dot[data-grp="comms"] { background: var(--atlas-comms); }
.atlas__dot[data-grp="financial"] { background: var(--atlas-financial); }
.atlas__dot[data-grp="geo"] { background: var(--atlas-geo); }
.atlas__soon { font-size: 9px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--rs-muted); border: 1px solid var(--rs-line); border-radius: 4px;
  padding: 0 4px; margin-left: 2px; }
.atlas__count { font-size: var(--rs-text-sm); color: var(--rs-muted); margin: 0; }
.atlas__count strong { color: var(--rs-ink); }

/* Investigation boards bar (P6) — saved lenses over the one graph. */
.atlas__boards { display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding-bottom: var(--rs-space-2); border-bottom: 1px solid var(--rs-line); }
.atlas__boards-label { display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--rs-text-xs); text-transform: uppercase; letter-spacing: .05em;
  color: var(--rs-muted); margin-right: 4px; }
.atlas__board { font-size: var(--rs-text-sm); color: var(--rs-muted);
  text-decoration: none; border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-sm, 6px); padding: 4px 10px;
  transition: color var(--rs-dur-fast) var(--rs-ease),
    border-color var(--rs-dur-fast) var(--rs-ease); }
.atlas__board:hover { color: var(--rs-ink); border-color: var(--rs-muted); }
.atlas__board.is-active { color: var(--rs-ink); border-color: var(--rs-accent);
  border-bottom-width: 2px; font-weight: 600; }
.atlas__board-new, .atlas__board-save, .atlas__board-del { font-size: var(--rs-text-sm); }
.atlas__board-del { color: var(--rs-danger); }
.atlas__board-form { display: inline-flex; gap: 6px; align-items: center; }
.atlas__board-form input { font: inherit; font-size: var(--rs-text-sm);
  color: var(--rs-ink); background: var(--rs-bg); border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-sm, 6px); padding: 4px 8px; }
.atlas__board-form[hidden] { display: none; }

/* Three-pane workspace: attention rail + canvas stage + Investigation Inspector.
   One selection lights up all three — the Atlas operating-system layout. */
.atlas__workspace { display: grid; grid-template-columns: 232px minmax(0, 1fr) 340px;
  gap: var(--rs-space-3); align-items: stretch; }
.atlas__stage { position: relative; min-width: 0; }

/* ── the attention rail — "what deserves attention next?" ── */
.atlas__rail { display: flex; flex-direction: column; gap: var(--rs-space-2);
  min-width: 0; overflow-y: auto; max-height: min(70vh, 660px); }
.atlas__rail-title { margin: 0 0 2px; font-size: var(--rs-text-xs);
  text-transform: uppercase; letter-spacing: .05em; color: var(--rs-muted); font-weight: 600; }
.atlas__rail-card { border: 1px solid var(--rs-line); border-radius: var(--rs-radius-md);
  background: var(--rs-surface); padding: 10px 12px; display: flex;
  flex-direction: column; gap: 6px; }
.atlas__rail-card h3 { margin: 0; font-size: var(--rs-text-xs); color: var(--rs-muted);
  font-weight: 600; display: flex; align-items: center; gap: 6px; text-transform: uppercase;
  letter-spacing: .04em; }
.atlas__rail-card h3 .rs-icon { color: var(--rs-muted); flex: none; }
.atlas__rail-reco { margin: 0; font-size: var(--rs-text-sm); color: var(--rs-ink);
  line-height: 1.4; }
.atlas__rail-athena { margin: 0; font-size: var(--rs-text-xs); color: var(--rs-intel);
  line-height: 1.4; }
.atlas__rail-list { list-style: none; margin: 0; padding: 0; display: flex;
  flex-direction: column; gap: 2px; }
.atlas__rail-link { display: flex; align-items: center; justify-content: space-between;
  gap: 8px; width: 100%; font: inherit; font-size: var(--rs-text-sm); color: var(--rs-ink);
  background: transparent; border: 0; border-radius: var(--rs-radius-sm, 6px);
  padding: 4px 6px; cursor: pointer; text-align: left; }
.atlas__rail-link:hover { background: color-mix(in srgb, var(--rs-accent) 12%, transparent); }
.atlas__rail-link:focus-visible { outline: var(--rs-focus-width, 2px) solid var(--rs-focus);
  outline-offset: 1px; }
.atlas__rail-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atlas__rail-deg { flex: none; font-size: var(--rs-text-xs); color: var(--rs-muted);
  font-variant-numeric: tabular-nums; }
.atlas__rail-muted { margin: 0; font-size: var(--rs-text-xs); color: var(--rs-muted);
  line-height: 1.4; }
.atlas__rail-stats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.atlas__rail-stats div { display: flex; flex-direction: column; gap: 1px; }
.atlas__rail-stats dt { margin: 0; font-size: 10px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--rs-muted); }
.atlas__rail-stats dd { margin: 0; font-size: var(--rs-text-lg, 18px); color: var(--rs-ink);
  font-weight: 600; font-variant-numeric: tabular-nums; }
.atlas__rail-card--focus { border-left: 3px solid var(--rs-accent); }
.atlas__rail-hint { margin: 0; font-size: var(--rs-text-xs); color: var(--rs-muted); line-height: 1.4; }
.atlas__rail-focuskind { margin: 0; font-size: var(--rs-text-sm); color: var(--rs-ink); font-weight: 600; }
.atlas__rail-focuscounts { margin: 0; display: flex; flex-wrap: wrap; gap: 8px;
  font-size: var(--rs-text-xs); color: var(--rs-muted); font-variant-numeric: tabular-nums; }
.atlas__rail-back { font-size: var(--rs-text-xs); color: var(--rs-accent); padding: 0; }

/* ── the breathing-crest load moment (fades once the graph lays out) ── */
.atlas__loading { position: absolute; inset: 0; z-index: 5; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: var(--rs-space-3);
  background: color-mix(in srgb, var(--rs-bg) 88%, transparent);
  border-radius: var(--rs-radius-md); backdrop-filter: blur(2px);
  transition: opacity var(--rs-dur, .32s) var(--rs-ease, ease); }
/* `visibility: hidden` (not just opacity) so the blur layer and the breathing
   crest's infinite animation leave the compositor once the graph is up — a
   zero-opacity backdrop-filter still costs a full-stage blur pass every frame,
   directly over the canvas the investigator is dragging. */
.atlas__loading.is-done { opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity var(--rs-dur, .32s) var(--rs-ease, ease), visibility 0s linear var(--rs-dur, .32s); }
.atlas__loading-note { margin: 0; font-size: var(--rs-text-sm); color: var(--rs-muted);
  letter-spacing: .01em; }

/* ── the activity strip (default: case-wide; filters to the selection) ── */
.atlas__activity { position: absolute; right: 12px; bottom: 12px; width: min(340px, 46%);
  max-height: 168px; overflow-y: auto; background: color-mix(in srgb, var(--rs-surface) 92%, transparent);
  border: 1px solid var(--rs-line); border-radius: var(--rs-radius-sm, 6px);
  padding: 8px 10px; backdrop-filter: blur(2px); }
.atlas__activity-head { margin: 0 0 5px; font-size: var(--rs-text-xs); color: var(--rs-muted);
  display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .04em; }
.atlas__activity-head em { text-transform: none; letter-spacing: 0; font-style: italic;
  color: var(--rs-muted); opacity: .8; }
.atlas__activity-list { list-style: none; margin: 0; padding: 0; display: flex;
  flex-direction: column; gap: 3px; }
.atlas__activity__item { display: flex; gap: 8px; font-size: var(--rs-text-xs);
  color: var(--rs-ink); line-height: 1.35; }
.atlas__activity__when { flex: none; color: var(--rs-muted); font-variant-numeric: tabular-nums; }
.atlas__activity__what { min-width: 0; }
.atlas__activity__item--evidence .atlas__activity__when { color: var(--atlas-financial); }
.atlas__activity__item--relationship .atlas__activity__when { color: var(--atlas-people); }
.atlas__activity__empty { font-size: var(--rs-text-xs); color: var(--rs-muted); }
.atlas__canvas { height: min(70vh, 660px); width: 100%; background: var(--rs-bg);
  border: 1px solid var(--rs-line); border-radius: var(--rs-radius-md); }
.atlas__canvas:focus-visible { outline: var(--rs-focus-width, 2px) solid var(--rs-focus);
  outline-offset: 2px; }
/* Capped so the legend wraps within the left half instead of running under the
   activity strip (which is `right: 12px; width: min(340px, 46%)`). */
.atlas__legend { position: absolute; left: 12px; bottom: 12px; display: flex;
  max-width: calc(100% - min(340px, 46%) - 32px);
  flex-wrap: wrap; gap: var(--rs-space-2) var(--rs-space-3); font-size: var(--rs-text-xs);
  color: var(--rs-muted); background: color-mix(in srgb, var(--rs-bg) 82%, transparent);
  padding: 5px 10px; border-radius: var(--rs-radius-sm, 6px);
  border: 1px solid var(--rs-line); backdrop-filter: blur(2px); }
.atlas__leg { display: inline-flex; align-items: center; gap: 6px; }
.atlas__leg::before { content: ""; width: 22px; border-top: 2px solid var(--rs-muted); }
.atlas__leg--documented::before { border-top-width: 3px; }
.atlas__leg--hypothesis::before { border-top-style: dashed; }
.atlas__leg--disputed::before { border-top-style: dashed; border-color: var(--rs-danger); }
.atlas__leg--lead::before { border-top-width: 1px; border-color: var(--rs-line); }
/* Confidence overlay (doc 34) — mirrors the cytoscape edge[conf=…] rules. */
.atlas__leg--warning::before { border-top-width: 3px; border-color: var(--rs-danger); }
.atlas__leg--review::before { border-top-style: dotted; border-color: var(--rs-warning); }

/* The Investigation Inspector. */
.atlas__inspector { border: 1px solid var(--rs-line); border-radius: var(--rs-radius-md);
  background: var(--rs-surface); padding: var(--rs-space-4); overflow-y: auto;
  max-height: min(70vh, 660px); }
.atlas__inspector-empty { display: flex; flex-direction: column; gap: var(--rs-space-2);
  align-items: flex-start; color: var(--rs-muted); font-size: var(--rs-text-sm); }
.atlas__inspector-empty .rs-icon { color: var(--rs-line-strong, var(--rs-muted)); }
.atlas-insp { display: flex; flex-direction: column; gap: var(--rs-space-2); }
.atlas-insp__kind { align-self: flex-start; font-size: var(--rs-text-xs);
  text-transform: uppercase; letter-spacing: .05em; color: var(--rs-muted);
  border-left: 3px solid var(--atlas-misc); padding-left: 7px; }
.atlas-insp__kind--people { border-color: var(--atlas-people); }
.atlas-insp__kind--org { border-color: var(--atlas-org); }
.atlas-insp__kind--financial { border-color: var(--atlas-financial); }
.atlas-insp__kind--geo { border-color: var(--atlas-geo); }
.atlas-insp__kind--comms { border-color: var(--atlas-comms); }
.atlas-insp__kind--legal { border-color: var(--atlas-legal); }
.atlas-insp__kind--rel { border-color: var(--rs-accent); }
.atlas-insp__title { font-size: var(--rs-text-lg); margin: 0; color: var(--rs-ink); }
.atlas-insp__stat { font-size: var(--rs-text-sm); color: var(--rs-ink); margin: 0; font-weight: 600; }
.atlas-insp__desc { font-size: var(--rs-text-sm); color: var(--rs-ink); margin: 0; }
.atlas-insp__muted { font-size: var(--rs-text-sm); color: var(--rs-muted); margin: 0; }
.atlas-insp__conn { font-size: var(--rs-text-md); color: var(--rs-ink); margin: 0; line-height: 1.5; }
.atlas-insp__nature { color: var(--rs-muted); font-style: italic; }
.atlas-insp__sub { font-size: var(--rs-text-xs); text-transform: uppercase;
  letter-spacing: .05em; color: var(--rs-muted); margin: var(--rs-space-2) 0 2px; }
.atlas-insp__rels { list-style: none; margin: 0; padding: 0; display: flex;
  flex-direction: column; gap: 4px; }
.atlas-insp__rel { display: flex; flex-direction: column; gap: 4px;
  padding: 8px; border: 1px solid var(--rs-line); border-radius: var(--rs-radius-sm, 6px);
  cursor: pointer; transition: border-color var(--rs-dur-fast) var(--rs-ease); }
.atlas-insp__rel:hover { border-color: var(--rs-accent); }
.atlas-insp__rel-line { margin: 0; font-size: var(--rs-text-sm); display: flex;
  flex-wrap: wrap; gap: 4px; align-items: baseline; }
.atlas-insp__rel-nature { color: var(--rs-muted); }
.atlas-insp__rel-other { color: var(--rs-ink); font-weight: 600; }
.atlas-insp__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.atlas-insp__actions { display: flex; flex-wrap: wrap; gap: var(--rs-space-2);
  align-items: center; margin-top: var(--rs-space-2); }
.atlas-insp__link { font-size: var(--rs-text-sm); }
.atlas-insp__foot { font-size: var(--rs-text-xs); color: var(--rs-muted);
  border-top: 1px solid var(--rs-line); padding-top: var(--rs-space-2); margin: var(--rs-space-2) 0 0; }

/* Epistemic badges — style/weight cues, colour only for disputed. */
.atlas-badge { display: inline-block; font-size: 11px; padding: 2px 8px;
  border-radius: 999px; border: 1px solid var(--rs-line); color: var(--rs-muted); }
.atlas-badge--documented { border-color: var(--rs-muted); color: var(--rs-ink); font-weight: 600; }
.atlas-badge--hypothesis { border-style: dashed; border-color: var(--rs-muted); color: var(--rs-muted); }
.atlas-badge--disputed { border-style: dashed; border-color: var(--rs-danger); color: var(--rs-danger); }
.atlas-badge--lead { border-color: var(--rs-line); color: var(--rs-muted); }

/* Confidence chips + summary (Evidence Confidence Framework, doc 34). Qualitative
   bands only — colour is a cue, never a numeric/opaque score. */
.atlas-conf { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--rs-line); color: var(--rs-muted); text-transform: uppercase;
  letter-spacing: .04em; font-weight: 600; }
.atlas-conf--strong { border-color: var(--rs-success); color: var(--rs-success); }
.atlas-conf--moderate { border-color: var(--rs-muted); color: var(--rs-ink); }
.atlas-conf--limited { border-style: dashed; border-color: var(--rs-warning); color: var(--rs-warning); }
.atlas-conf--conflicted { border-style: dashed; border-color: var(--rs-danger); color: var(--rs-danger); }
.atlas-conf--unknown { border-color: var(--rs-line); color: var(--rs-muted); }
.atlas-conf--planned { border-style: dotted; border-color: var(--rs-line); color: var(--rs-muted); }
.atlas-conf__head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 2px; }
.atlas-conf__why { font-size: var(--rs-text-sm); color: var(--rs-muted); }
.atlas-conf__dim { display: flex; flex-direction: column; gap: 3px; padding: 6px 0;
  border-top: 1px solid var(--rs-line); }
.atlas-conf__dim-top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.atlas-conf__val { font-size: var(--rs-text-sm); color: var(--rs-ink); }
.atlas-conf__basis { display: flex; gap: 4px; flex-wrap: wrap; }
.atlas-conf__gap { font-size: var(--rs-text-sm); color: var(--rs-warning); margin: 0; }
.atlas-conf__step { font-size: var(--rs-text-sm); color: var(--rs-muted); margin: 0; }

/* Edge evidence receipts + attach control (P3). */
.atlas-insp__evidence { display: flex; flex-direction: column; gap: var(--rs-space-2); }
.atlas-insp__receipts { list-style: none; margin: 0; padding: 0; display: flex;
  flex-direction: column; gap: 4px; }
.atlas-insp__receipt { display: flex; justify-content: space-between; align-items: center;
  gap: 8px; padding: 6px 8px; border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-sm, 6px); }
.atlas-insp__receipt-name { font-size: var(--rs-text-sm); color: var(--rs-ink);
  font-family: var(--rs-font-mono); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.atlas-insp__receipt-kind { font-size: 10px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--rs-muted); border: 1px solid var(--rs-line); border-radius: 4px;
  padding: 1px 5px; white-space: nowrap; }
.atlas-insp__receipt-kind.is-cooc { border-style: dashed; }
.atlas-insp__warn { font-size: var(--rs-text-sm); color: var(--rs-warning, var(--rs-danger));
  border-left: 3px solid var(--rs-warning, var(--rs-danger)); padding-left: 8px; margin: 0; }
.atlas-insp__attach { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.atlas-insp__select { font: inherit; font-size: var(--rs-text-sm); color: var(--rs-ink);
  background: var(--rs-bg); border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-sm, 6px); padding: 5px 8px; max-width: 100%; }
.atlas-insp__detail { display: flex; flex-direction: column; gap: 4px; }

/* Edge hover read-out (polish). */
.atlas-tip { position: absolute; z-index: 40; pointer-events: none; max-width: 240px;
  background: var(--rs-surface); border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-sm, 6px); padding: 8px 10px;
  box-shadow: var(--rs-shadow-2, 0 6px 20px rgba(0, 0, 0, .4));
  display: flex; flex-direction: column; gap: 4px; }
.atlas-tip[hidden] { display: none; }
.atlas-tip__nature { margin: 0; font-size: var(--rs-text-sm); color: var(--rs-ink); font-weight: 600; }
.atlas-tip__meta { margin: 0; font-size: var(--rs-text-xs); color: var(--rs-muted); }
.atlas-tip__hint { margin: 0; font-size: 10px; color: var(--rs-muted); font-style: italic; }

/* Board sharing + node/edge discussion (P7). */
.atlas__boards-shared { font-size: var(--rs-text-xs); color: var(--rs-muted);
  font-style: italic; margin-left: 2px; }
.atlas-disc { display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--rs-line); margin-top: var(--rs-space-3);
  padding-top: var(--rs-space-2); }
.atlas-disc__firewall { margin: 0; font-size: var(--rs-text-xs); color: var(--rs-muted);
  border-left: 3px solid var(--rs-line); padding-left: 8px; }
.atlas-disc__list { display: flex; flex-direction: column; gap: 8px; }
.atlas-disc__item { display: flex; flex-direction: column; gap: 2px;
  padding: 8px; border: 1px solid var(--rs-line); border-radius: var(--rs-radius-sm, 6px); }
.atlas-disc__meta { margin: 0; display: flex; justify-content: space-between;
  align-items: baseline; gap: 8px; }
.atlas-disc__author { font-size: var(--rs-text-sm); color: var(--rs-ink); font-weight: 600; }
.atlas-disc__time { font-size: 10px; color: var(--rs-muted); font-variant-numeric: tabular-nums; }
.atlas-disc__body { margin: 0; font-size: var(--rs-text-sm); color: var(--rs-ink);
  white-space: pre-wrap; word-break: break-word; }
.atlas-disc__del { align-self: flex-end; font-size: var(--rs-text-xs); color: var(--rs-danger); }
.atlas-disc__form { display: flex; flex-direction: column; gap: 6px; }
.atlas-disc__input { font: inherit; font-size: var(--rs-text-sm); color: var(--rs-ink);
  background: var(--rs-bg); border: 1px solid var(--rs-line);
  border-radius: var(--rs-radius-sm, 6px); padding: 8px; resize: vertical; min-height: 48px; }
.atlas-disc__form .rs-btn { align-self: flex-start; }

/* Athena's graph intelligence panel (P5) — the assistant's purple voice. */
.atlas-notices { display: flex; flex-direction: column; gap: var(--rs-space-2);
  margin-bottom: var(--rs-space-4); }
.atlas-notices__head { display: flex; align-items: center; gap: 8px; }
.atlas-notices__who { font-size: var(--rs-text-sm); font-weight: 600;
  color: var(--rs-intel); }
.atlas-notices__count { font-size: 11px; color: var(--rs-accent-ink, #100C22);
  background: var(--rs-intel); border-radius: 999px; padding: 0 7px; font-weight: 600; }
.atlas-notice { border: 1px solid var(--rs-line); border-left: 3px solid var(--rs-intel);
  border-radius: var(--rs-radius-sm, 6px); padding: 10px; display: flex;
  flex-direction: column; gap: 6px; }
/* One rule per observation type emitted by graph_intel.observations() — a type
   without a rule renders as an unstyled card. Keep in step with that service. */
.atlas-notice--gap { border-left-color: var(--rs-warning, var(--rs-muted)); }
.atlas-notice--isolated { border-left-color: var(--rs-muted); }
.atlas-notice--duplicate { border-left-color: var(--rs-danger); }
.atlas-notice--suggest_link { border-left-color: var(--rs-intel, var(--rs-accent)); }
.atlas-notice__title { margin: 0; font-size: var(--rs-text-sm); color: var(--rs-ink);
  font-weight: 600; }
.atlas-notice__why { margin: 0; font-size: var(--rs-text-xs); color: var(--rs-muted);
  line-height: 1.45; }
.atlas-notice__btn { align-self: flex-start; }
.atlas-notice__done { align-self: flex-start; font-size: var(--rs-text-xs);
  color: var(--rs-success, #5fb094); font-weight: 600; }

@media (max-width: 1080px) {
  .atlas__workspace { grid-template-columns: minmax(0, 1fr) 320px; }
  .atlas__rail { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap;
    max-height: none; }
  .atlas__rail-title { flex: 1 0 100%; }
  .atlas__rail-card { flex: 1 1 180px; }
}
@media (max-width: 920px) {
  .atlas__workspace { grid-template-columns: 1fr; }
  .atlas__inspector { max-height: none; }
  .atlas__activity { position: static; width: auto; margin-top: var(--rs-space-2); }
}

/* ── Universal Inspector dossier + Command Palette (Sprint 003) ────────── */
.atlas-insp__dhead { display: flex; gap: 10px; align-items: flex-start; }
.atlas-insp__dhead > .rs-icon { color: var(--rs-muted); margin-top: 3px; flex: none; }
.atlas-insp__dhtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.atlas-insp__over { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.atlas-insp__over-row { display: grid; grid-template-columns: 96px 1fr; gap: 8px;
  font-size: var(--rs-text-sm); }
.atlas-insp__over-row dt { color: var(--rs-muted); margin: 0; }
.atlas-insp__over-row dd { color: var(--rs-ink); margin: 0; word-break: break-word; }
.atlas-insp__mono { font-family: var(--rs-font-mono); }
.atlas-insp__hist { list-style: none; margin: 0; padding: 0; display: flex;
  flex-direction: column; gap: 3px; font-size: var(--rs-text-sm); color: var(--rs-ink); }
.atlas-insp__hist .atlas-disc__time { margin-right: 6px; }
.atlas-athena-obj { border: 1px solid var(--rs-line); border-left: 3px solid var(--rs-intel);
  border-radius: var(--rs-radius-sm, 6px); padding: 8px 10px; display: flex;
  flex-direction: column; gap: 4px; }
.atlas-athena-gap { margin: 0; font-size: var(--rs-text-sm); color: var(--rs-warning, var(--rs-muted)); }
.atlas-athena-opp { margin: 0; font-size: var(--rs-text-sm); color: var(--rs-intel); }

.atlas-cmd { font-size: var(--rs-text-xs); color: var(--rs-muted);
  border: 1px solid var(--rs-line); border-radius: var(--rs-radius-sm, 6px);
  padding: 3px 8px; background: transparent; cursor: pointer; }
.atlas-cmd kbd { font-family: var(--rs-font-mono); font-size: 10px; }
.atlas-cmd:hover { color: var(--rs-ink); border-color: var(--rs-muted); }

.atlas-palette { position: fixed; inset: 0; z-index: 2000;
  background: color-mix(in srgb, var(--rs-bg) 70%, transparent);
  display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; }
.atlas-palette[hidden] { display: none; }
.atlas-palette__box { width: min(560px, 92vw); background: var(--rs-surface);
  border: 1px solid var(--rs-line-strong, var(--rs-line)); border-radius: var(--rs-radius-md);
  box-shadow: var(--rs-shadow-2, 0 20px 60px rgba(0, 0, 0, .5)); overflow: hidden; }
.atlas-palette__input { width: 100%; border: none; border-bottom: 1px solid var(--rs-line);
  background: var(--rs-surface); color: var(--rs-ink); font: inherit;
  font-size: var(--rs-text-lg); padding: 14px 16px; outline: none; }
.atlas-palette__results { max-height: 50vh; overflow-y: auto; }
.atlas-palette__row { display: flex; align-items: center; gap: 10px; padding: 9px 16px; cursor: pointer; }
.atlas-palette__row.is-active { background: color-mix(in srgb, var(--rs-accent) 12%, transparent); }
.atlas-palette__row .rs-icon { color: var(--rs-muted); flex: none; }
.atlas-palette__rowtext { display: flex; flex-direction: column; min-width: 0; }
.atlas-palette__rowtitle { color: var(--rs-ink); font-size: var(--rs-text-sm);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atlas-palette__rowsub { color: var(--rs-muted); font-size: var(--rs-text-xs); }

/* ── Case report — documentation write-up, print-friendly (Sprint 4-2 rev) ── */
.report { display: flex; flex-direction: column; gap: var(--rs-space-4); max-width: 78ch; }
.report__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--rs-space-3); }
.report__kind { margin: 0; font-size: var(--rs-text-sm); color: var(--rs-muted);
  display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .04em; }
.report__note { margin: 0; font-size: var(--rs-text-sm); color: var(--rs-muted); line-height: 1.5; }
.report__summary { margin: 0; font-size: var(--rs-text-lg, 18px); color: var(--rs-ink); line-height: 1.5; }
.report__sec { border-top: 1px solid var(--rs-line); padding-top: var(--rs-space-3);
  display: flex; flex-direction: column; gap: var(--rs-space-2); }
.report__sec h2 { margin: 0; font-size: var(--rs-text-lg, 18px); display: flex; align-items: center; gap: 8px; }
.report__sec h3 { margin: var(--rs-space-2) 0 0; font-size: var(--rs-text-xs); color: var(--rs-muted);
  text-transform: uppercase; letter-spacing: .04em; }
.report__count { font-size: var(--rs-text-sm); color: var(--rs-muted); font-weight: 400; }
.report__list { margin: 0; padding-left: var(--rs-space-4); display: flex; flex-direction: column;
  gap: 4px; font-size: var(--rs-text-sm); line-height: 1.5; }
.report__reco { margin: 0; font-size: var(--rs-text-sm); }
.report__inds { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; font-size: var(--rs-text-sm); }
.report__inds li { display: flex; align-items: center; gap: 8px; }
.report__inds strong { margin-left: auto; font-variant-numeric: tabular-nums; }
.report__ind-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--rs-muted); flex: none; }
.report__ind-dot--ok { background: var(--rs-success); }
.report__ind-dot--attention { background: var(--rs-warning); }
/* health.compute() also emits "planned" — without this the dot rendered bare. */
.report__ind-dot--planned { background: transparent; border: 1px dotted var(--rs-muted); }
.report__epi { font-size: var(--rs-text-xs); color: var(--rs-muted); font-style: italic; }
.report__inline { margin: 0; display: flex; flex-wrap: wrap; gap: var(--rs-space-3); font-size: var(--rs-text-sm); }
.report__table { width: 100%; }
.report__mono { font-family: var(--rs-font-mono); font-size: var(--rs-text-xs); }
.report__when { color: var(--rs-muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.report__pre { white-space: pre-wrap; font-family: var(--rs-font-mono); font-size: var(--rs-text-xs);
  background: var(--rs-surface); border: 1px solid var(--rs-line); border-radius: var(--rs-radius-sm, 6px);
  padding: var(--rs-space-3); overflow-x: auto; }
@media print {
  .sidenav, .report__bar, body::before, .rs-banner--demo { display: none !important; }
  .report { max-width: none; }
  .report__sec { break-inside: avoid; }
}

/* ── Evidence detail: video player + timestamped observations (v2.0) ── */
.evidence-player { width: 100%; max-height: 60vh; background: #000;
  border: 1px solid var(--rs-line); border-radius: var(--rs-radius-md); display: block; }
.obs-list { list-style: none; margin: 0 0 var(--rs-space-3); padding: 0;
  display: flex; flex-direction: column; gap: 4px; }
.obs-item { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  padding: 6px 8px; border: 1px solid var(--rs-line); border-radius: var(--rs-radius-sm, 6px);
  font-size: var(--rs-text-sm); }
.obs-time { font-family: var(--rs-font-mono); font-size: var(--rs-text-xs);
  color: var(--rs-accent); flex: none; }
.obs-body { color: var(--rs-ink); min-width: 0; flex: 1 1 12ch; }
.obs-actions { display: inline-flex; gap: 10px; margin-left: auto; }
.obs-del { color: var(--rs-danger); }
.obs-form { display: flex; flex-direction: column; gap: var(--rs-space-2);
  border-top: 1px solid var(--rs-line); padding-top: var(--rs-space-3); }
.obs-form__row { display: flex; align-items: flex-end; gap: var(--rs-space-2); flex-wrap: wrap; }
.obs-form__time { max-width: 12ch; }

/* The icon-sprite symbol sheet: visually collapsed without an inline style
   attribute (the strict CSP has no style-src, so style="" is blocked). */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── The public landing page (the one indexable surface) ─────────────── */
.landing { max-width: 920px; margin: 0 auto; padding: var(--rs-space-6) var(--rs-space-3);
  display: flex; flex-direction: column; gap: var(--rs-space-6); }
.landing__hero { text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: var(--rs-space-3); padding-top: var(--rs-space-5); }
.landing__headline { font-family: var(--rs-font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; text-wrap: balance; margin: 0; }
.landing__lede { max-width: 58ch; font-size: 1.05rem; line-height: 1.6;
  color: var(--rs-muted); margin: 0; }
.landing__cta { margin: var(--rs-space-2) 0 0; }
.landing__points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--rs-space-3); }
.landing__point h2 { display: flex; align-items: center; gap: 0.5ch;
  font-size: 1.05rem; margin-top: 0; }
.landing__point p { color: var(--rs-muted); line-height: 1.55; margin-bottom: 0; }
.landing__access { text-align: center; max-width: 60ch; margin: 0 auto; }

/* ── Family motion primitives (components v1.1.0 — product copies) ────── */
.rs-loading-block { display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: var(--rs-space-3); text-align: center; }
.rs-loading-block__note { margin: 0; color: var(--rs-muted); font-size: var(--rs-text-sm);
  letter-spacing: .02em; }
@media (prefers-reduced-motion: no-preference) {
  .rs-enter > * { animation: rs-enter .55s var(--rs-ease) both; }
  .rs-enter > :nth-child(2) { animation-delay: .09s; }
  .rs-enter > :nth-child(3) { animation-delay: .18s; }
  .rs-enter > :nth-child(4) { animation-delay: .27s; }
  .rs-enter > :nth-child(5) { animation-delay: .36s; }
}
@keyframes rs-enter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Landing hero carries the crest at true hero scale. */
.landing__hero .rs-emblem { width: 88px; height: 88px; }

/* ── Athena panel (V1 reasoning results) ─────────────────────────────── */
.athena-hint .athena-ask { margin-left: auto; flex: none; }
.athena-results { display: flex; flex-direction: column; gap: var(--rs-space-2);
  border: 1px solid var(--rs-line); border-radius: var(--rs-radius);
  padding: var(--rs-space-3); margin: var(--rs-space-2) 0 var(--rs-space-3); }
.athena-item { border-bottom: 1px solid var(--rs-line); padding-bottom: var(--rs-space-2); }
.athena-item:last-of-type { border-bottom: 0; }
.athena-item__head { margin: 0 0 .25rem; }
.athena-item__text { margin: 0; }
.athena-item__basis { margin: .2rem 0 0; font-size: var(--rs-text-sm); }
.athena-item__refs { margin: .2rem 0 0; font-size: var(--rs-text-sm); }
.athena-item__proposal { margin: .4rem 0 0; }
.athena-results__note { margin: 0; font-size: var(--rs-text-sm); }
