:root {
  --rf-font: var(--madison-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif);
  --rf-page-bg: #f7f7f7;
  --rf-text: #1f2933;
  --rf-header: #1f2933;
  --rf-muted: #5b6473;
  --rf-card: #ffffff;
  --rf-border: #e0e0e0;
  --rf-card-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  --rf-primary: #2563eb;
  --rf-primary-strong: #1d4ed8;
  --rf-primary-border: rgba(37, 99, 235, 0.3);
  --rf-primary-shadow: rgba(37, 99, 235, 0.22);
  --rf-pill-bg: rgba(37, 99, 235, 0.12);
  --rf-pill-border: rgba(37, 99, 235, 0.2);
  --rf-pill-color: #1d4ed8;
  --rf-secondary-border: rgba(59, 130, 246, 0.35);
  --rf-secondary-hover-bg: rgba(59, 130, 246, 0.08);
  --rf-analysis-bg: #f9fafb;
  --rf-analysis-border: #e5e7eb;
  --rf-section-text: #1f2933;
  --rf-scrollbar-thumb: #d6ddeb;
  --rf-scrollbar-thumb-hover: #b6bdc7;
  --rf-muted-border: rgba(91, 100, 115, 0.3);
  --rf-crs-pill-bg: rgba(16, 185, 129, 0.14);
  --rf-crs-pill-border: rgba(16, 185, 129, 0.35);
  --rf-crs-pill-color: #0f766e;
  --rf-textarea-bg: #ffffff;
  --rf-skeleton-bg: #eef1f7;
  --rf-skeleton-highlight: rgba(255, 255, 255, 0.7);
  color-scheme: light;
}

/* Explicit dark mode */
body[data-theme="dark"],
html[data-theme="dark"],
:root[data-theme="dark"] {
  color-scheme: dark;
  --rf-page-bg: #000000;
  --rf-text: #e5e7eb;
  --rf-header: #e5e7eb;
  --rf-muted: #9ca3af;
  --rf-card: #050505;
  --rf-border: #1a1a1a;
  --rf-card-shadow: 0 14px 28px rgba(0, 0, 0, 0.6);
  --rf-primary: #60a5fa;
  --rf-primary-strong: #3b82f6;
  --rf-primary-border: rgba(96, 165, 250, 0.4);
  --rf-primary-shadow: rgba(96, 165, 250, 0.3);
  --rf-pill-bg: rgba(96, 165, 250, 0.16);
  --rf-pill-border: rgba(96, 165, 250, 0.35);
  --rf-pill-color: #bfdbfe;
  --rf-secondary-border: rgba(96, 165, 250, 0.35);
  --rf-secondary-hover-bg: rgba(96, 165, 250, 0.16);
  --rf-analysis-bg: #000000;
  --rf-analysis-border: #1a1a1a;
  --rf-section-text: #e5e7eb;
  --rf-scrollbar-thumb: #374151;
  --rf-scrollbar-thumb-hover: #4b5563;
  --rf-muted-border: rgba(156, 163, 175, 0.35);
  --rf-crs-pill-bg: rgba(52, 211, 153, 0.18);
  --rf-crs-pill-border: rgba(52, 211, 153, 0.35);
  --rf-crs-pill-color: #a7f3d0;
  --rf-textarea-bg: #1a1a1a;
  --rf-skeleton-bg: #111827;
  --rf-skeleton-highlight: rgba(55, 65, 81, 0.7);
}

/* Auto mode: system prefers dark and not explicitly set to light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]),
  body:not([data-theme="light"]) {
    color-scheme: dark;
    --rf-page-bg: #000000;
    --rf-text: #e5e7eb;
    --rf-header: #e5e7eb;
    --rf-muted: #9ca3af;
    --rf-card: #050505;
    --rf-border: #1a1a1a;
    --rf-card-shadow: 0 14px 28px rgba(0, 0, 0, 0.6);
    --rf-primary: #60a5fa;
    --rf-primary-strong: #3b82f6;
    --rf-primary-border: rgba(96, 165, 250, 0.4);
    --rf-primary-shadow: rgba(96, 165, 250, 0.3);
    --rf-pill-bg: rgba(96, 165, 250, 0.16);
    --rf-pill-border: rgba(96, 165, 250, 0.35);
    --rf-pill-color: #bfdbfe;
    --rf-secondary-border: rgba(96, 165, 250, 0.35);
    --rf-secondary-hover-bg: rgba(96, 165, 250, 0.16);
    --rf-analysis-bg: #000000;
    --rf-analysis-border: #1a1a1a;
    --rf-section-text: #e5e7eb;
    --rf-scrollbar-thumb: #374151;
    --rf-scrollbar-thumb-hover: #4b5563;
    --rf-muted-border: rgba(156, 163, 175, 0.35);
    --rf-crs-pill-bg: rgba(52, 211, 153, 0.18);
    --rf-crs-pill-border: rgba(52, 211, 153, 0.35);
    --rf-crs-pill-color: #a7f3d0;
    --rf-textarea-bg: #1a1a1a;
    --rf-skeleton-bg: #111827;
    --rf-skeleton-highlight: rgba(55, 65, 81, 0.7);
  }
}

body {
  background: var(--rf-page-bg);
  color: var(--rf-text);
  font-family: var(--rf-font);
}
.hidden {
  display: none !important;
}
.research-shell {
  margin: 0 auto;
  padding: 0;
  max-width: 100%;
}
.research-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0;
}
.research-header h1 {
  margin: 0 0 4px;
  font-size: 1.9rem;
  color: var(--rf-header);
  font-weight: 700;
}
.research-header p {
  margin: 0;
  color: var(--rf-muted);
  font-size: 1rem;
}
.research-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.research-nav a {
  color: var(--rf-primary);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--rf-primary-border);
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.research-nav a:hover {
  background: var(--rf-primary);
  color: #fff;
  box-shadow: 0 6px 16px var(--rf-primary-shadow);
}
.research-nav .nav-link-muted {
  color: var(--rf-muted);
  border-color: var(--rf-muted-border);
}
.research-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  min-height: calc(100vh - 80px);
}
.research-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}
.step-card {
  background: var(--rf-card);
  border: 1px solid var(--rf-border);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: var(--rf-card-shadow);
}
.sticky-card {
  position: sticky;
  top: 0;
}
.step-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.step-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.results-display-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.results-display-toggle-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rf-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.results-display-toggle-btn {
  border: 1px solid var(--rf-border);
  background: var(--rf-surface);
  color: var(--rf-text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.results-display-toggle-btn[aria-pressed="true"] {
  background: rgba(31, 74, 140, 0.12);
  border-color: var(--rf-primary);
  color: var(--rf-primary);
}
.results-display-toggle-btn:hover {
  border-color: var(--rf-primary);
}
.comparison-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rf-border);
}
.comparison-section-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--rf-header);
}
.brief-toggle {
  border: 1px solid var(--rf-secondary-border);
  background: var(--rf-card);
  color: var(--rf-primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.brief-toggle:hover,
.brief-toggle:focus-visible {
  opacity: 1;
  color: var(--rf-primary);
  border-color: var(--rf-primary-border);
  box-shadow: 0 8px 20px var(--rf-primary-shadow);
  transform: translateY(-1px);
  outline: none;
}
.brief-toggle.has-content {
  opacity: 0.9;
}
.brief-toggle.is-streaming::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--rf-primary);
  box-shadow: 0 0 8px var(--rf-primary-shadow);
}
.step-card:hover .brief-toggle {
  opacity: 0.9;
}
.research-brief {
  margin-top: 16px;
  border: 1px dashed var(--rf-border);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--rf-analysis-bg);
}
.research-brief.is-hidden {
  display: none;
}
.research-brief-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--rf-muted);
  font-size: 0.85rem;
}
.research-brief-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.research-brief-body {
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--rf-section-text);
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}
.research-brief-body.analysis-rendered {
  white-space: normal;
}
.research-brief-body.analysis-rendered > *:first-child {
  margin-top: 0;
}
.research-brief-body.analysis-rendered > *:last-child {
  margin-bottom: 0;
}
.step-kicker {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rf-primary);
  margin: 0 0 8px 0;
}
.step-header h2 {
  font-size: 1.5rem;
  margin: 0 0 8px 0;
  color: var(--rf-header);
  font-weight: 700;
}
.muted {
  color: var(--rf-muted);
}
.research-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
/* Override style.css form background in dark mode */
body[data-theme="dark"] .research-form,
html[data-theme="dark"] .research-form,
:root[data-theme="dark"] .research-form {
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
@media (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) .research-form,
  html:not([data-theme="light"]) .research-form {
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }
}
.research-label {
  color: var(--rf-muted);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}
.research-congress-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: flex-start;
}
.research-congress-label {
  color: var(--rf-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.research-congress-select {
  min-width: 104px;
  padding: 10px 38px 10px 14px;
  font-size: 0.95rem;
  line-height: 1.3;
  border-radius: 999px;
  border: 1px solid var(--rf-border);
  background-color: var(--rf-textarea-bg, #ffffff);
  color: var(--rf-text);
  font-family: inherit;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.research-congress-select:focus {
  outline: none;
  border-color: var(--rf-primary);
  box-shadow: 0 0 0 3px var(--rf-primary-border);
}
.research-form textarea {
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 10px;
  border: 1px solid var(--rf-border);
  transition: border 0.2s ease, box-shadow 0.2s ease;
  background-color: var(--rf-textarea-bg, #ffffff);
  color: var(--rf-text);
  font-family: inherit;
  resize: vertical;
  min-height: 56px;
  max-height: 120px;
}
.research-form .primary-btn {
  align-self: flex-end;
}
.research-form textarea:focus {
  outline: none;
  border-color: var(--rf-primary);
  box-shadow: 0 0 0 3px var(--rf-primary-border);
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.primary-btn,
.secondary-btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.primary-btn {
  background: var(--rf-primary);
  color: #ffffff;
  box-shadow: 0 12px 24px var(--rf-primary-shadow);
  border: 1px solid var(--rf-primary-border);
}
.primary-btn-lg {
  padding: 16px 28px;
  font-size: 1.05rem;
  min-height: 56px;
  border-radius: 12px;
}
.primary-btn:hover {
  background: var(--rf-primary-strong);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px var(--rf-primary-shadow);
}
.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.card-stack {
  display: grid;
  gap: 10px;
}
.section-group {
  display: grid;
  gap: 10px;
}
.section-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px 0;
}
.section-group-title {
  font-weight: 700;
  color: var(--rf-header);
}
.section-group-list {
  display: grid;
  gap: 10px;
}
.is-loading {
  position: relative;
}
.skeleton-card {
  border: 1px solid var(--rf-border);
  border-radius: 10px;
  padding: 12px;
  background: var(--rf-card);
  box-shadow: var(--rf-card-shadow);
}
.skeleton-card.skeleton-bill {
  min-height: 96px;
}
.skeleton-card.skeleton-section {
  min-height: 76px;
}
.skeleton-card.skeleton-comparison {
  min-height: 160px;
}
.skeleton-lines {
  display: grid;
  gap: 8px;
}
.skeleton-line {
  height: 10px;
  border-radius: 999px;
  background: var(--rf-skeleton-bg);
  position: relative;
  overflow: hidden;
}
.skeleton-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120px;
  width: 120px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--rf-skeleton-highlight), transparent);
  animation: shimmer 1.4s infinite;
}
.skeleton-line.wide {
  width: 100%;
}
.skeleton-line.medium {
  width: 68%;
}
.skeleton-line.short {
  width: 42%;
}
.bill-card,
.section-card-inline {
  border: 1px solid var(--rf-border);
  border-radius: 10px;
  padding: 12px;
  background: var(--rf-card);
}
.section-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.section-card-header .section-view-link {
  flex-shrink: 0;
}
.animate-in {
  animation: fadeUp 0.35s ease both;
}
.bill-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.pill {
  background: var(--rf-pill-bg);
  color: var(--rf-pill-color);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid var(--rf-pill-border);
}
.bill-meta,
.section-preview {
  color: var(--rf-muted);
  font-size: 14px;
}
.bill-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.secondary-btn {
  background: transparent;
  color: var(--rf-primary);
  border: 1px solid var(--rf-secondary-border);
}
.secondary-btn:hover {
  background: var(--rf-secondary-hover-bg);
}
.secondary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.secondary-btn:disabled:hover {
  background: transparent;
}
.export-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 10px;
}
.export-pdf-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.section-option {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: flex-start;
  gap: 8px;
}
.section-option strong {
  display: block;
}
.section-option .match {
  color: var(--rf-primary);
  font-weight: 600;
  font-size: 12px;
}
.section-ai-summary {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--rf-muted);
}
.section-summary-side-by-side {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  align-items: start;
}
.section-summary-pane {
  border: 1px solid var(--rf-analysis-border);
  background: var(--rf-analysis-bg);
  border-radius: 8px;
  padding: 10px;
}
.section-summary-source {
  display: flex;
  flex-direction: column;
}
.section-summary-pane h5 {
  margin: 0 0 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rf-muted);
}
.section-summary-source pre,
.section-summary-translation-body {
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: var(--rf-section-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
}
.section-summary-source pre {
  flex: 1 1 auto;
  min-height: 140px;
  max-height: 240px;
  overflow-y: auto;
  white-space: pre-wrap;
}
.section-summary-translation-body {
  white-space: normal;
}
.section-summary-translation-body p {
  margin: 0 0 8px;
}
.section-summary-translation-body p:last-child {
  margin-bottom: 0;
}
.section-summary-main-copy > *:first-child {
  margin-top: 0;
}
.section-summary-main-copy > *:last-child {
  margin-bottom: 0;
}
.section-summary-translation-body ul {
  margin: 0;
  padding-left: 18px;
}
.section-summary-translation-body li + li {
  margin-top: 6px;
}
.analysis-speculation-block,
.analysis-checklist,
.section-summary-impact-card,
.section-summary-grounding-note {
  border: 1px solid var(--rf-analysis-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--rf-analysis-bg) 88%, transparent);
  padding: 10px;
}
.analysis-speculation-block {
  margin-top: 10px;
}
.analysis-bucket-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.analysis-speculation-label {
  margin: 0 0 6px;
  color: var(--rf-header);
}
.section-summary-impact-card ul {
  margin: 0;
  padding-left: 18px;
}
.section-summary-impact-card li + li {
  margin-top: 6px;
}
.analysis-speculation-block p:last-child,
.analysis-speculation-block ul:last-child {
  margin-bottom: 0;
}
.analysis-checklist {
  margin-top: 8px;
}
.analysis-checklist summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rf-muted);
}
.analysis-checklist-block + .analysis-checklist-block {
  margin-top: 8px;
}
.analysis-checklist-block h6,
.section-summary-impact-card h6,
.section-summary-grounding-note h6 {
  margin: 0 0 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rf-muted);
}
.section-summary-empty {
  margin: 0;
  color: var(--rf-muted);
  font-style: italic;
}
.summary-loading {
  opacity: 0.75;
  animation: pulse 1.2s ease-in-out infinite;
}
.section-view-link {
  font-size: 0.85rem !important;
  padding: 6px 12px !important;
}
.overall-summary-panel {
  border: 1px solid var(--rf-analysis-border);
  background: var(--rf-analysis-bg);
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 96px;
}
.overall-summary-panel.is-loading {
  opacity: 0.75;
}
.overall-summary-content {
  color: var(--rf-section-text);
  font-size: 0.95rem;
  line-height: 1.55;
}
.overall-summary-content > *:first-child {
  margin-top: 0;
}
.overall-summary-content > *:last-child {
  margin-bottom: 0;
}
.overall-summary-content h2,
.overall-summary-content h3,
.overall-summary-content h4 {
  margin: 0 0 8px;
  color: var(--rf-header);
  font-size: 1rem;
}
.overall-summary-content p {
  margin: 0 0 10px;
}
.overall-summary-content ul,
.overall-summary-content ol {
  margin: 0 0 12px;
  padding-left: 20px;
}
.overall-summary-content li {
  margin: 0 0 6px;
}
.overall-summary-streaming {
  margin: 10px 0 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}
.overall-summary-loading {
  display: grid;
  gap: 12px;
}
.overall-summary-loading-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rf-muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.overall-summary-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--rf-secondary-border);
  border-top-color: var(--rf-primary);
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}
.overall-summary-skeleton {
  display: grid;
  gap: 8px;
}
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}
.comparison-card {
  border: 1px solid var(--rf-border);
  border-radius: 10px;
  background: var(--rf-card);
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}
.comparison-card header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rf-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.comparison-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
}
.comparison-col {
  padding: 12px;
  border-right: 1px solid var(--rf-border);
}
.comparison-col:last-child {
  border-right: none;
}
.comparison-col h4 {
  margin: 0 0 6px;
}
.comparison-col pre,
.comparison-col p {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: var(--rf-section-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.comparison-col pre {
  padding: 16px;
  background: var(--rf-analysis-bg);
  border: 1px solid var(--rf-analysis-border);
  border-radius: 6px;
}

.research-disclaimer {
  margin: 8px auto 24px;
  max-width: 960px;
  padding: 0 24px;
  color: var(--rf-muted);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  text-align: center;
}
.research-disclaimer p {
  margin: 8px 0;
}
.research-disclaimer a {
  color: var(--rf-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.research-disclaimer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}
.empty-state {
  text-align: left;
}
@keyframes shimmer {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(240px);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 960px) {
  .research-layout {
    grid-template-columns: 1fr;
  }
  .sticky-card {
    position: static;
  }
}
@media (max-width: 720px) {
  .research-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .research-nav {
    align-self: flex-start;
  }
  .step-header {
    flex-direction: column;
  }
  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .research-form {
    gap: 12px;
  }
  .research-congress-field {
    width: 100%;
    box-sizing: border-box;
  }
  .research-label {
    text-align: left;
  }
  .research-disclaimer {
    padding: 0 16px;
  }
}