:root {
  /* FPT palette */
  --fpt-green:  #51b848;
  --fpt-orange: #f37021;
  --fpt-blue:   #034ea2;
  --fpt-navy:   #162670;
  --fpt-teal:   #0092b3;

  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --ink: #0b0b0f;
  --ink-2: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: #e5e5ea;
  --line-2: #d2d2d7;

  --accent: var(--fpt-blue);
  --accent-deep: var(--fpt-navy);
  --accent-soft: #e7effa;
  --accent-ink: #ffffff;

  --good: var(--fpt-green);
  --warn: var(--fpt-orange);
  --bad:  #c42847;

  --callout-bg-from: #fff6ef;
  --callout-bg-to:   #ffe7d4;
  --callout-border:  #ffd6bb;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.02);
  --shadow-2: 0 8px 30px rgba(0,0,0,.08);
  --sidebar-w: 260px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-feature-settings: "cv11","ss01","ss03"; -webkit-font-smoothing: antialiased; }
body { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; transition: grid-template-columns .22s cubic-bezier(.4,0,.2,1); }
body.sidebar-collapsed { grid-template-columns: 0 1fr; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }

.hidden { display: none !important; }

/* Sidebar */
.sidebar {
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}
body.sidebar-collapsed .sidebar { transform: translateX(-100%); pointer-events: none; }
.sidebar-head { padding: 18px 16px 10px; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--fpt-teal), var(--fpt-blue) 60%, var(--fpt-navy));
}
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; flex: 1; }
.icon-btn { background: transparent; border: none; padding: 6px; border-radius: 8px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

.sidebar-floating-toggle {
  position: fixed; top: 22px; left: 14px; z-index: 50;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-1);
}
.sidebar-floating-toggle:hover { color: var(--ink); background: var(--surface-2); }

.btn-new { width: 100%; }
.sidebar-search { padding: 6px 16px 10px; }
.sidebar-search input {
  width: 100%; padding: 8px 12px; font-size: 13px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2);
  color: var(--ink);
}
.history { flex: 1; overflow-y: auto; padding: 4px 8px 16px; }
.history-item {
  display: block; padding: 10px 12px; border-radius: 10px; cursor: pointer;
  color: var(--ink-2); font-size: 13px; margin-bottom: 2px;
  transition: background .12s ease;
}
.history-item:hover { background: var(--surface-2); }
.history-item.active { background: var(--surface-2); }
.history-name { font-weight: 500; display: flex; align-items: center; gap: 6px; }
.history-meta { font-size: 11px; color: var(--muted); margin-top: 2px; display: flex; gap: 6px; }
.history-empty { padding: 24px 16px; color: var(--muted); font-size: 12px; text-align: center; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--fpt-teal); display: inline-block;
  box-shadow: 0 0 0 0 rgba(0,146,179,.5);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,146,179,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(0,146,179,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,146,179,0); }
}
.sidebar-foot { padding: 10px 16px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); }

/* Main */
.main { padding: 28px 36px 80px; max-width: 1120px; margin: 0 auto; width: 100%; }

.empty { min-height: calc(100vh - 80px); display: flex; flex-direction: column; align-items: center; padding-top: 12vh; gap: 48px; }
.empty-card { max-width: 560px; width: 100%; text-align: center; padding: 20px; }
.landing-history { width: 100%; max-width: 960px; margin: 0 auto; }
.landing-history.hidden { display: none; }
.landing-history-head { display: flex; align-items: baseline; gap: 10px; margin: 0 4px 14px; }
.landing-history-head h2 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.landing-card {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; text-align: left; cursor: pointer; font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.landing-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.landing-card .lc-logo {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--fpt-teal), var(--fpt-blue) 60%, var(--fpt-navy));
  color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px;
  letter-spacing: 0.02em;
}
.landing-card .lc-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.landing-card .lc-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.landing-card .lc-foot { font-size: 11px; color: var(--muted-2); margin-top: 4px; }
.empty-card h1 { font-size: 34px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.02em; }
.empty-card p { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.search-form { display: flex; gap: 8px; }
.search-form input {
  flex: 1; padding: 14px 16px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface);
  color: var(--ink); box-shadow: var(--shadow-1);
}
.search-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(3,78,162,0.14); }
.empty-hint { margin-top: 18px; color: var(--muted-2); font-size: 12px; }

/* Loading with progress list */
.loading-view { padding-top: 30px; }
.loading-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-1); max-width: 680px; margin: 0 auto;
}
.loading-head { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.loading-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.loading-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; flex: none; }
.spinner-sm { width: 18px; height: 18px; border-width: 2px; }
.tier-skeleton {
  display: flex; gap: 12px; align-items: center;
  padding: 16px 18px; border-radius: 12px;
  background: var(--surface-2); color: var(--muted);
  border: 1px dashed var(--line-2);
}
.tier-skeleton .ts-text { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.tier-skeleton .ts-sub  { font-size: 12px; color: var(--muted); margin-top: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.progress-list {
  list-style: none; margin: 0; padding: 14px 0 0;
  max-height: 420px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.progress-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13px; color: var(--ink-2);
  animation: fadeSlide .22s ease-out;
}
.progress-list li.done { color: var(--muted); }
.progress-list li.current { background: var(--accent-soft); color: var(--ink); }
.progress-list .p-icon {
  flex: none; width: 16px; height: 16px; margin-top: 2px;
  display: grid; place-items: center; color: var(--muted);
}
.progress-list li.current .p-icon { color: var(--accent); }
.progress-list li.done .p-icon { color: var(--good); }
.progress-list .p-label { flex: 1; line-height: 1.45; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* Research view */
.research { display: flex; flex-direction: column; gap: 16px; }

/* Right-side table of contents (Notion-style — dashes that expand on hover) */
.toc {
  position: fixed;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  max-height: 80vh;
  padding: 10px 6px 10px 14px;
  z-index: 15;
  pointer-events: auto;
}
.toc-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 6px 8px;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
  white-space: nowrap;
}
.toc-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 3px;
  align-items: flex-end;
}
.toc-list li { width: 100%; display: flex; justify-content: flex-end; }
.toc-list a {
  display: inline-flex; align-items: center; justify-content: flex-end;
  text-decoration: none;
  color: transparent;
  font-size: 12.5px;
  line-height: 1.35;
  padding: 4px 10px 4px 14px;
  border-radius: 6px;
  white-space: nowrap;
  position: relative;
  transition: color .18s ease, background .18s ease;
}
/* The dash itself — a short horizontal line that represents the item. */
.toc-list a::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-left: 10px;
  background: rgba(3, 78, 162, 0.28);
  border-radius: 2px;
  transition: width .18s ease, background .18s ease;
}
.toc-list a.active::after { width: 28px; background: var(--accent); }

/* Hover-to-expand: reveal the labels across the whole panel. */
.toc:hover .toc-label { opacity: 1; transform: translateX(0); }
.toc:hover .toc-list a { color: var(--muted); background: transparent; }
.toc:hover .toc-list a:hover { color: var(--accent); background: var(--accent-soft); }
.toc:hover .toc-list a.active {
  color: var(--accent-deep); font-weight: 600;
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--fpt-orange);
}
.toc:hover .toc-list a::after { display: none; }

.toc.hidden { display: none; }
@media (max-width: 1180px) { .toc { display: none; } }
.company-head {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 12px 4px;
  margin: -12px -4px 0;
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.company-head.stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 14px rgba(0,0,0,.04);
}
.company-head .company-title h1 { font-size: 22px; }
.company-head .company-meta { font-size: 12px; }
.company-head .logo { width: 40px; height: 40px; border-radius: 10px; font-size: 15px; }
.company-title { display: flex; gap: 14px; align-items: center; }
.logo { width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--fpt-navy), var(--fpt-blue));
  color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 18px;
}
.company-head h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.company-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.company-actions { display: flex; gap: 8px; align-items: center; }

.version-picker {
  height: 36px; padding: 0 30px 0 12px; font-size: 13px; font-family: inherit;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface);
  color: var(--ink);
}

.btn {
  height: 36px; padding: 0 14px; font-size: 13px; font-family: inherit; font-weight: 500;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface);
  color: var(--ink); cursor: pointer; transition: all .12s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  line-height: 1; white-space: nowrap;
}
.btn svg { display: block; }
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost { background: transparent; border-color: transparent; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-1);
}
.card h2 { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }

/* Diff strip */
.diff-strip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid #c7d8ee; color: var(--accent-deep);
  font-size: 13px;
}
.diff-strip .diff-summary strong { font-weight: 600; }
.diff-strip .diff-chip { display: inline-flex; gap: 6px; align-items: center; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.7); margin-left: 8px; font-size: 12px; }
.diff-strip button { background: transparent; border: none; color: var(--accent-deep); font-weight: 500; cursor: pointer; padding: 4px 8px; font-size: 12px; }

/* Brief */
.brief { font-size: 15px; line-height: 1.65; color: var(--ink-2); }

/* Overview — grouped with icons */
.overview-groups { display: flex; flex-direction: column; gap: 22px; }
.ov-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 720px) { .ov-row-2 { grid-template-columns: 1fr; } }
.ov-group-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.ov-icon {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; flex: none;
}
.ov-icon svg { width: 18px; height: 18px; }
.ov-group-title { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.ov-group-sub { font-size: 11px; color: var(--muted); }

.ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.kv {
  position: relative;
  padding: 12px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid transparent;
  transition: border-color .12s ease;
}
.kv:hover { border-color: var(--line); }
.kv .k { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; font-weight: 600; }
.kv .v { font-size: 13.5px; color: var(--ink); font-weight: 500; line-height: 1.5; }
.kv .v strong { font-weight: 600; color: var(--ink); }
.kv .kv-detail { color: var(--muted); font-weight: 400; }

.kv-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kv-bullets li {
  position: relative; padding-left: 14px;
  font-size: 13.5px; line-height: 1.5; color: var(--ink);
}
.kv-bullets li::before {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2);
}

/* Collapsible values — clamp to ~3 lines with fade, expand on click */
.kv.collapsible .v {
  max-height: 4.6em; overflow: hidden; position: relative;
}
.kv.collapsible .v::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1.8em;
  background: linear-gradient(to bottom, rgba(245,245,247,0), var(--surface-2));
  pointer-events: none;
}
.kv.collapsible.expanded .v { max-height: none; }
.kv.collapsible.expanded .v::after { display: none; }
.kv-more-btn {
  margin-top: 8px; padding: 0;
  background: transparent; border: none;
  color: var(--accent); font-family: inherit;
  font-size: 11.5px; font-weight: 500; cursor: pointer;
}
.kv-more-btn:hover { text-decoration: underline; }

/* Callout (sales action) */
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--callout-bg-from), var(--callout-bg-to));
  border: 1px solid var(--callout-border);
}
.callout .ci-icon {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--fpt-orange); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(243,112,33,.22);
}
.callout .ci-icon svg { width: 18px; height: 18px; }
.callout .ci-body { flex: 1; }
.callout .ci-tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; color: var(--fpt-orange);
}
.callout .ci-insight {
  font-size: 14px; font-weight: 600; color: var(--ink);
  margin-top: 4px; line-height: 1.5; letter-spacing: -0.005em;
}
.callout .ci-action {
  font-size: 13px; color: var(--ink-2); margin-top: 6px; line-height: 1.5;
}
.callout .ci-action::before {
  content: "▸ "; color: var(--fpt-orange); font-weight: 700;
}

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--line);
}
.timeline li { position: relative; padding: 4px 0 22px 34px; }
.timeline li::before {
  content: ""; position: absolute; left: 5px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.timeline .t-date { font-size: 12px; color: var(--muted); font-weight: 500; }
.timeline .t-head { font-size: 15px; font-weight: 600; margin-top: 2px; }
.timeline .t-detail { font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }

/* Products (redesigned) */
.products-layout { display: flex; flex-direction: column; gap: 16px; }
.hub-card {
  display: flex; gap: 16px; align-items: center;
  padding: 18px 20px; border-radius: 14px;
  background: linear-gradient(135deg, var(--fpt-navy), var(--fpt-blue));
  color: #fff;
  box-shadow: 0 10px 30px rgba(3,78,162,.18);
}
.hub-badge {
  width: 56px; height: 56px; border-radius: 14px; flex: none;
  background: rgba(255,255,255,.16);
  display: grid; place-items: center;
}
.hub-badge svg { width: 24px; height: 24px; }
.hub-body { flex: 1; }
.hub-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,.72); font-weight: 600;
}
.hub-name { font-size: 22px; font-weight: 700; margin-top: 2px; letter-spacing: -0.015em; }
.hub-tagline { font-size: 13px; color: rgba(255,255,255,.82); margin-top: 6px; line-height: 1.55; max-width: 780px; }
.hub-stats { display: flex; gap: 20px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.2); }
.hub-stat .hs-value { font-size: 22px; font-weight: 700; }
.hub-stat .hs-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,.72); font-weight: 600; }

.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.module-card {
  padding: 14px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid transparent;
  transition: all .14s ease;
}
.module-card:hover { background: #eef3fa; border-color: #c7d8ee; }
.module-card .mc-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.module-card .mc-desc { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }

.products-side-v2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 4px; }
.products-side-v2 h3 {
  font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px;
}
.products-side-v2 ul { margin: 0; padding: 0; list-style: none; }
.products-side-v2 li {
  padding: 8px 0 8px 20px; position: relative;
  font-size: 13px; color: var(--ink-2); line-height: 1.55;
  border-bottom: 1px solid var(--line);
}
.products-side-v2 li:last-child { border-bottom: none; }
.products-side-v2 li::before {
  content: ""; position: absolute; left: 4px; top: 15px;
  width: 6px; height: 6px; border-radius: 50%;
}
.products-side-v2 .target li::before { background: var(--fpt-green); }
.products-side-v2 .advantage li::before { background: var(--fpt-orange); }

/* Two col (IT) */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.two-col h3 { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; }
.two-col ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.two-col li { margin-bottom: 8px; }
.two-col li.muted { color: var(--muted-2); list-style: none; margin-left: -12px; }

/* Key-word bolding (from **markdown** in model output) */
.two-col li strong, .fpt td strong, .brief strong, .callout .ci-insight strong {
  font-weight: 700; color: var(--ink); letter-spacing: -0.005em;
}

/* Collapsible list / table — hide .extra items until .expanded */
.collapsible-list li.extra,
.collapsible-list tr.extra { display: none; }
.collapsible-list.expanded li.extra,
.collapsible-list.expanded tr.extra { display: list-item; }
.collapsible-list.expanded tr.extra { display: table-row; }
.collapsible-list li.extra-toggle { list-style: none; margin-left: -12px; margin-top: 4px; }
.list-more-btn {
  padding: 4px 10px; border-radius: 6px; border: 1px dashed var(--line-2);
  background: transparent; color: var(--accent); font-family: inherit;
  font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.list-more-btn:hover { background: var(--accent-soft); border-color: var(--accent); }

/* FPT table */
.fpt { width: 100%; border-collapse: collapse; font-size: 13px; }
.fpt th, .fpt td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fpt th { font-weight: 600; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.fpt td.need { font-weight: 600; color: var(--ink); width: 22%; }
.fpt td.why { color: var(--ink-2); width: 42%; }
.fpt td.offer { color: var(--accent); font-weight: 500; }

/* Bottom grid — sources + cost side by side */
.bottom-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .bottom-grid { grid-template-columns: 1fr; } }

/* Sources */
.sources-card h2 { margin-bottom: 10px; justify-content: space-between; }
.sources-card h2 .title-left { display: flex; align-items: center; gap: 10px; }
.sources-card h2 .title-actions { display: flex; gap: 6px; align-items: center; }
.sources-card.collapsed .sources-list,
.sources-card.collapsed .rubric-panel { display: none; }
.count-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* Cost panel */
.cost-card h2 { margin-bottom: 10px; }
.cost-panel { display: flex; flex-direction: column; gap: 10px; }
.cp-empty { color: var(--muted); font-size: 12.5px; padding: 6px 0; }
.cp-total {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 10px 12px; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid #c7d8ee;
}
.cp-total-right { text-align: right; }
.cp-total-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.cp-total-value { font-size: 16px; font-weight: 700; color: var(--accent-deep); font-variant-numeric: tabular-nums; margin-top: 2px; }
.cp-rows { display: flex; flex-direction: column; gap: 6px; }
.cp-row { padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.cp-row-head {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: baseline;
  font-size: 12px;
}
.cp-tier { font-weight: 600; color: var(--ink); }
.cp-model { color: var(--muted); font-family: ui-monospace, SFMono-Regular, monospace; font-size: 11px; }
.cp-cost { color: var(--accent-deep); font-weight: 600; font-variant-numeric: tabular-nums; }
.cp-row-body {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
  font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.cp-foot {
  font-size: 10.5px; color: var(--muted-2); line-height: 1.5;
  padding: 6px 4px 0; border-top: 1px dashed var(--line);
}
.help-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 500;
  text-transform: none; letter-spacing: 0;
}
.help-btn:hover { color: var(--accent); border-color: var(--accent); }
.help-btn svg { width: 12px; height: 12px; }

.rubric-panel {
  margin: 0 0 14px; padding: 14px 16px;
  background: var(--accent-soft); border: 1px solid #c7d8ee;
  border-radius: 10px; font-size: 12px; color: var(--ink-2); line-height: 1.6;
}
.rubric-panel .rubric-title { font-weight: 600; color: var(--accent-deep); margin-bottom: 6px; font-size: 12.5px; text-transform: none; letter-spacing: 0; }
.rubric-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px; margin-top: 8px;
}
.rubric-row { display: grid; grid-template-columns: 60px 1fr; gap: 10px; align-items: baseline; }
.rubric-range {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
  background: rgba(255,255,255,.6);
}

.sources-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sources-list li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: start; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
.src-id { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.src-body a { color: var(--ink); text-decoration: none; font-weight: 500; }
.src-body a:hover { text-decoration: underline; }
.src-why { font-size: 12px; color: var(--muted); margin-top: 2px; }
.src-score-wrap { display: flex; align-items: center; gap: 8px; }
.src-tier {
  font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted);
}
.src-score { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; padding: 4px 8px; border-radius: 8px; }
.src-score.hi { background: rgba(81,184,72,.14); color: var(--good); }
.src-score.mid { background: rgba(243,112,33,.14); color: var(--warn); }
.src-score.lo { background: rgba(196,40,71,.12); color: var(--bad); }

/* Sourced spans */
.sourced { border-bottom: 1px dashed var(--line-2); cursor: help; }
.sourced:hover { border-bottom-color: var(--accent); }

/* Review-needed pill — clickable (opens triage popover) */
.review-pill {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 600;
  padding: 1px 7px; margin-left: 4px;
  border-radius: 999px;
  background: rgba(243,112,33,.12);
  color: var(--fpt-orange);
  border: 1px solid rgba(243,112,33,.28);
  letter-spacing: 0.02em;
  vertical-align: baseline;
  cursor: pointer;
  user-select: none;
  transition: background .18s ease, box-shadow .18s ease, transform .12s ease;
}
.review-pill:hover { background: rgba(243,112,33,.2); }
.review-pill:active { transform: translateY(0.5px); }
.review-pill.flash {
  background: var(--fpt-orange); color: #fff;
  box-shadow: 0 0 0 6px rgba(243,112,33,.22);
}
/* Accepted — green */
.review-pill.reviewed {
  background: rgba(81,184,72,.12);
  color: var(--fpt-green);
  border-color: rgba(81,184,72,.35);
}
.review-pill.reviewed:hover { background: rgba(81,184,72,.22); }
/* Note-only (unflagged fact with a note) — neutral */
.review-pill.noted {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
}
/* Note indicator (small dot when a flagged pill also has a note) */
.review-pill.has-note::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  margin-left: 5px;
  opacity: 0.7;
}

.review-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(243,112,33,.08);
  border: 1px solid rgba(243,112,33,.25);
  color: var(--ink-2);
  font-size: 13px;
}
.review-banner .rb-icon {
  color: var(--fpt-orange); font-size: 14px; font-weight: 700;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(243,112,33,.18);
  display: grid; place-items: center;
  flex: none;
}
.review-banner .rb-text { flex: 1; }
.review-banner .rb-jump {
  padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(243,112,33,.35);
  background: transparent; color: var(--fpt-orange); font-weight: 600;
  font-family: inherit; font-size: 12px; cursor: pointer;
}
.review-banner .rb-jump:hover { background: rgba(243,112,33,.14); }

/* Source tooltip — interactable */
.src-tip {
  position: fixed; z-index: 1000; max-width: 340px;
  background: #1d1d1f; color: #fff; border-radius: 12px; padding: 14px 16px;
  font-size: 12.5px; line-height: 1.55; box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(4px);
  transition: opacity .14s ease, transform .14s ease;
}
.src-tip.visible { opacity: 1; transform: none; }
.src-tip .tip-name { font-weight: 600; font-size: 13.5px; margin-bottom: 6px; letter-spacing: -0.01em; }
.src-tip .tip-score { display: inline-block; padding: 2px 8px; border-radius: 5px; background: rgba(255,255,255,.14); font-weight: 600; font-size: 11px; margin-bottom: 8px; }
.src-tip .tip-why { color: rgba(255,255,255,.78); margin-bottom: 8px; }
.src-tip .tip-url {
  display: block; color: #7ab3ff; word-break: break-all;
  padding: 6px 8px; border-radius: 6px; background: rgba(255,255,255,.06);
  text-decoration: none; font-size: 11.5px;
}
.src-tip .tip-url:hover { background: rgba(122,179,255,.12); text-decoration: underline; }
.src-tip .tip-more { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; color: rgba(255,255,255,.65); }
.src-tip .tip-more-row { display: flex; flex-direction: column; gap: 4px; }
.src-tip .tip-more a { color: #7ab3ff; text-decoration: none; }
.src-tip .tip-more a:hover { text-decoration: underline; }

.src-tip .tip-quote {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-left: 2px solid rgba(122,179,255,.55);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.88);
  font-size: 11.5px; font-style: italic; line-height: 1.5;
  border-radius: 0 6px 6px 0;
}
.src-tip .tip-quote::before { content: "\201C"; margin-right: 2px; }
.src-tip .tip-quote::after  { content: "\201D"; margin-left: 2px; }
.src-tip .tip-quote.tip-quote-sm { font-size: 11px; padding: 6px 8px; margin: 0; }

.src-quote {
  margin: 6px 0 0;
  padding: 6px 10px;
  border-left: 2px solid var(--line-2);
  color: var(--ink-2);
  font-size: 12px; font-style: italic; line-height: 1.5;
  background: rgba(0,0,0,0.02);
  border-radius: 0 6px 6px 0;
}
.src-quote::before { content: "\201C"; margin-right: 2px; color: var(--muted); }
.src-quote::after  { content: "\201D"; margin-left: 2px; color: var(--muted); }

.src-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Citation-kind label — subtle text under the quote, no color-coding. */
.src-tip .tip-kind {
  font-size: 10.5px; color: rgba(255,255,255,.55);
  margin-top: 4px; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.src-tip .tip-kind.tip-kind-sm { font-size: 10px; margin-top: 2px; }

/* Triage popover — uses the same dark card as the source tooltip */
.src-tip .tip-muted { color: rgba(255,255,255,.5); }
.src-tip .tip-srcs {
  display: flex; flex-direction: column; gap: 6px;
  margin: 8px 0 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,.04);
  border-radius: 8px;
}
.src-tip .tip-src-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 11.5px;
}
.src-tip .tip-src-row a { color: #7ab3ff; text-decoration: none; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-tip .tip-src-row a:hover { text-decoration: underline; }
.src-tip .tip-src-meta { color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; font-size: 11px; white-space: nowrap; }

.src-tip .tip-note {
  margin: 8px 0 10px;
  padding: 8px 10px;
  border-left: 2px solid var(--fpt-orange);
  background: rgba(243,112,33,.08);
  border-radius: 0 6px 6px 0;
}
.src-tip .tip-note-label {
  font-size: 9.5px; font-weight: 700; color: var(--fpt-orange);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px;
}
.src-tip .tip-note-body { color: rgba(255,255,255,.88); font-size: 12px; line-height: 1.5; white-space: pre-wrap; }

.src-tip .tip-actions {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.src-tip .tip-btn {
  padding: 5px 10px; border-radius: 7px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff;
  font-family: inherit; font-size: 11.5px; font-weight: 500;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.src-tip .tip-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.src-tip .tip-btn-accept { background: rgba(81,184,72,.2); border-color: rgba(81,184,72,.5); color: #b6ebab; }
.src-tip .tip-btn-accept:hover { background: rgba(81,184,72,.32); color: #fff; }
.src-tip .tip-btn-undo { background: rgba(255,255,255,.08); color: rgba(255,255,255,.78); }
.src-tip .tip-btn-save { background: var(--fpt-blue); border-color: var(--fpt-blue); color: #fff; }
.src-tip .tip-btn-save:hover { background: var(--fpt-navy); border-color: var(--fpt-navy); }
.src-tip .tip-btn-del { color: #ffb4a8; border-color: rgba(196,40,71,.45); background: rgba(196,40,71,.14); }
.src-tip .tip-btn-del:hover { background: rgba(196,40,71,.28); color: #fff; }

.src-tip .tip-note-editor { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.src-tip .tip-note-editor.hidden { display: none; }
.src-tip .tip-note-input {
  width: 100%; min-height: 72px; max-height: 160px;
  padding: 8px 10px; border-radius: 8px;
  background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  font-family: inherit; font-size: 12px; line-height: 1.45;
  resize: vertical;
}
.src-tip .tip-note-input:focus { outline: none; border-color: #7ab3ff; background: rgba(255,255,255,.1); }
.src-tip .tip-note-btns { display: flex; gap: 6px; }

/* Mode picker */
.mode-modal { width: 780px; max-width: 94vw; }
.mode-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 16px;
}
.mode-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  padding: 18px; border: 1px solid var(--line-2); border-radius: 14px;
  background: var(--surface); color: var(--ink);
  cursor: pointer; text-align: left; font-family: inherit;
  transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease, background .12s ease;
}
.mode-card:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-1px); }
.mode-card.recommended { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,132,255,.12); }
.mode-head {
  display: flex; align-items: center; gap: 8px;
  min-height: 22px;
}
.mode-name {
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink);
}
.mode-eta {
  font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-top: -4px; margin-bottom: 4px;
}
.mode-eta::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted); opacity: 0.5;
  margin-right: 7px; vertical-align: middle;
}
.mode-pill {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  white-space: nowrap; line-height: 1;
}
.mode-strength { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.mode-spec { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mode-spec li { font-size: 12px; color: var(--muted); line-height: 1.45; }
.mode-spec li::before { content: "·"; color: var(--muted); margin-right: 6px; }
@media (max-width: 640px) {
  .mode-grid { grid-template-columns: 1fr; }
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  backdrop-filter: blur(6px);
}
.modal {
  background: var(--surface); border-radius: 16px; padding: 28px 28px 20px;
  width: 560px; max-width: 92vw; box-shadow: var(--shadow-2);
}
.modal h2 { font-size: 20px; font-weight: 600; margin-bottom: 6px; text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
.modal > p { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.candidate-list { display: grid; gap: 10px; margin-bottom: 14px; }
.candidate {
  padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: all .12s ease; background: var(--surface);
}
.candidate:hover { border-color: var(--accent); background: var(--accent-soft); }
.candidate .c-name { font-weight: 600; font-size: 14px; }
.candidate .c-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.candidate .c-one { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.candidate .c-score { float: right; font-size: 11px; color: var(--muted); }

/* ---------- Toasts ---------- */
#toast-host {
  position: fixed; right: 18px; bottom: 18px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 9999; pointer-events: none;
  max-width: 420px;
}
.toast {
  pointer-events: auto;
  background: rgba(20,20,20,0.92);
  color: #fafafa;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  white-space: pre-wrap;
}
.toast.in { opacity: 1; transform: translateY(0); }
.toast-error { background: rgba(170, 40, 40, 0.95); }
.toast-info  { background: rgba(20,20,20,0.92); }

/* ---------- Shared view (read-only deep link) ---------- */
body.shared { grid-template-columns: 1fr !important; }
body.shared #sidebar,
body.shared #sidebar-open,
body.shared #new-research,
body.shared #refresh-btn,
body.shared #review-btn,
body.shared #share-btn,
body.shared #export-btn,
body.shared #version-picker,
body.shared .cost-card,
body.shared #diff-strip,
body.shared #search-form,
body.shared .empty-hint {
  display: none !important;
}
body.shared .main {
  margin: 0 auto !important;
  max-width: 900px !important;
  padding: 28px 24px 80px !important;
}
body.shared .bottom-grid { grid-template-columns: 1fr !important; }
body.shared .company-head { padding-left: 0; padding-right: 0; }

/* ---------- Access gate ---------- */
.gate-backdrop {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(20,20,20,0.78);
  display: grid; place-items: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.gate-card {
  background: var(--surface); border-radius: 14px; padding: 28px 26px;
  width: 380px; max-width: 92vw; box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
}
.gate-card h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.gate-card p  { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.gate-card input {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface);
  color: var(--ink); box-sizing: border-box;
}
.gate-card .gate-actions { margin-top: 14px; display: flex; justify-content: flex-end; }
.gate-error { color: #b4322a; font-size: 12px; margin-top: 8px; min-height: 16px; }

/* ---------- Comments ---------- */
.comments-card { margin-top: 18px; }
.comment-form { display: flex; flex-direction: column; gap: 8px; }
.comment-form textarea {
  width: 100%; min-height: 80px; padding: 10px 12px; font-size: 13px;
  font-family: inherit; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); color: var(--ink); resize: vertical; box-sizing: border-box;
}
.comment-form .cf-row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
}
.comment-form .cf-row input {
  padding: 8px 10px; font-size: 13px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface-2); color: var(--ink);
}
.comments-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.comments-list li {
  background: var(--surface-2); padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line);
}
.comment-meta { font-size: 11px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 8px; }
.comment-body { font-size: 13px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.5; }
.comments-empty { color: var(--muted); font-size: 12px; }

/* ---------- Review modal ---------- */
.review-modal { width: 780px; max-width: 94vw; max-height: 88vh; overflow-y: auto; }
.review-modal h2 { margin: 0 0 6px; }
.review-sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.review-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.review-picker label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.review-picker select {
  padding: 8px 10px; font-size: 13px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink);
}
.review-actions { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 10px; }
.review-result { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; }
.review-result h3 { font-size: 13px; margin: 18px 0 8px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.review-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.review-error { color: var(--bad); padding: 12px; background: rgba(196,40,71,.08); border-radius: 8px; }

.rv-verdict { padding: 14px 16px; border-radius: 10px; margin-bottom: 10px; }
.rv-verdict-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; color: var(--muted); }
.rv-summary { font-size: 14px; line-height: 1.55; color: var(--ink); }
.rv-v-a_better { background: rgba(81,184,72,.08); }
.rv-v-b_better { background: rgba(81,184,72,.08); }
.rv-v-similar  { background: rgba(0,146,179,.06); }
.rv-v-different { background: rgba(243,112,33,.08); }

.rv-meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0; }
.rv-meta-grid > div { background: var(--surface-2); padding: 8px 10px; border-radius: 8px; display: flex; flex-direction: column; gap: 2px; }
.rv-k { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.rv-v { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rv-notes { font-size: 12px; color: var(--muted); margin: 6px 0 0; font-style: italic; }

.rv-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rv-table th, .rv-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rv-table th { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.rv-sec-name { font-weight: 600; color: var(--ink); }
.rv-winner { text-align: center; font-weight: 600; }
.rv-w-a, .rv-w-b { color: var(--good); }
.rv-w-tie { color: var(--muted); }

.rv-sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; font-size: 12.5px; }
.rv-sources > div { background: var(--surface-2); padding: 8px 10px; border-radius: 8px; }

.rv-imps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rv-imp { padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border-left: 3px solid var(--line-2); }
.rv-imp.rv-c-high { border-left-color: var(--good); }
.rv-imp.rv-c-medium { border-left-color: var(--fpt-blue); }
.rv-imp.rv-c-low { border-left-color: var(--muted); }
.rv-imp-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.rv-conf { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.rv-imp-body { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }
.rv-imp-rat { font-size: 11.5px; color: var(--muted); margin-top: 4px; font-style: italic; }

.rv-rec { background: rgba(3,78,162,.06); border: 1px solid rgba(3,78,162,.18); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; }
.rv-rec > div:not(.rv-rec-rat) { display: flex; justify-content: space-between; font-size: 13px; }
.rv-rec-rat { font-size: 12px; color: var(--muted); margin-top: 6px; border-top: 1px solid rgba(3,78,162,.12); padding-top: 6px; }

.rv-foot { margin-top: 14px; font-size: 11px; color: var(--muted-2); text-align: right; }
.rv-empty { color: var(--muted); font-style: italic; font-size: 12px; text-align: center; padding: 14px; }
