/* Styles for Trial Endpoint Atlas showcase (/cf/trials/) */

.trials-wrap {
  width: min(100% - 3rem, var(--wide));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

/* Dignity Boundary Card & NLM Disclaimer */
.trials-dignity-card {
  background: rgba(237, 189, 69, 0.06);
  border: 1px solid rgba(237, 189, 69, 0.38);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.trials-dignity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.trials-dignity-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lime);
  font-weight: 600;
}

.badge-tier-t2 {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(0, 243, 255, 0.12);
  border: 1px solid rgba(0, 243, 255, 0.4);
  color: var(--neon-cyan);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.nlm-disclaimer-box {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.nlm-disclaimer-box strong {
  color: var(--ink-primary);
}

/* Page Hero */
.trials-hero {
  margin-bottom: 2rem;
}

.trials-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0.6rem 0 0.85rem;
  color: var(--ink-primary);
  font-weight: 600;
}

.trials-lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 54rem;
  margin-bottom: 1rem;
}

.trials-dignity-card .trials-lede {
  font-size: 0.96rem;
  color: var(--ink-primary);
  margin-bottom: 0.5rem;
}

.trials-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.trials-meta a {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Section Headings */
.trials-section {
  margin-bottom: 3.5rem;
}

.trials-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
  color: var(--ink-primary);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
}

.trials-section-desc {
  font-size: 0.96rem;
  color: var(--ink-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.55;
  max-width: 52rem;
}

/* PRISMA 2020 Flow Visualizer */
.prisma-diagram-container {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.prisma-svg {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.prisma-node {
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.prisma-node:hover rect {
  stroke: var(--neon-cyan);
  stroke-width: 2px;
}

.prisma-stage-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  fill: var(--ink-primary);
}

.prisma-stage-stat {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  fill: var(--neon-cyan);
}

.prisma-stage-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--muted);
}

.prisma-flow-arrow {
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 2;
  fill: none;
}

.prisma-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.prisma-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.85rem 1rem;
}

.prisma-stat-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 0.25rem;
}

.prisma-stat-label {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  line-height: 1.35;
}

/* Phase Transition Matrix & Visual Bars */
.transition-matrix-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.phase-row {
  margin-bottom: 1.75rem;
}

.phase-row:last-child {
  margin-bottom: 0;
}

.phase-row-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.phase-row-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.phase-row-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.stacked-bar-track {
  width: 100%;
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}

.stacked-segment {
  height: 100%;
  transition: width 0.3s ease;
  position: relative;
}

/* 8 Canonical Class Colors */
.class-fev1 { background: var(--neon-cyan); color: #050505; }
.class-sweat { background: #00e676; color: #050505; }
.class-exac { background: #ff5252; color: #fff; }
.class-qol { background: var(--lime); color: #050505; }
.class-cfu { background: #b388ff; color: #050505; }
.class-bmi { background: var(--coral); color: #050505; }
.class-safety { background: var(--rose-pink); color: #050505; }
.class-other { background: #78909c; color: #fff; }

.legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/* Interactive Filter & Registry Controls */
.filter-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.filter-row {
  margin-bottom: 1rem;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.filter-pills-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink-secondary);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink-primary);
}

.filter-pill[aria-pressed="true"] {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  color: #050505;
  font-weight: 600;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.trials-search-input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.trials-search-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 2px rgba(0, 243, 255, 0.22);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.results-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.results-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.results-count strong {
  color: var(--neon-cyan);
}

/* Study Cards */
.studies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.study-card {
  background: rgba(12, 14, 20, 0.82);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.study-card:hover {
  border-color: rgba(0, 243, 255, 0.35);
  background: rgba(16, 19, 28, 0.9);
}

.study-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.study-nct-link {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--neon-cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  gap: 0.3rem;
}

.study-nct-link:hover {
  text-decoration: underline;
}

.study-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge-phase {
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-primary);
}

.badge-status {
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.badge-status-completed { background: rgba(0, 230, 118, 0.15); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.3); }
.badge-status-recruiting { background: rgba(0, 243, 255, 0.15); color: var(--neon-cyan); border: 1px solid rgba(0, 243, 255, 0.3); }
.badge-status-terminated { background: rgba(255, 82, 82, 0.15); color: #ff5252; border: 1px solid rgba(255, 82, 82, 0.3); }
.badge-status-active { background: rgba(237, 189, 69, 0.15); color: var(--lime); border: 1px solid rgba(237, 189, 69, 0.35); }
.badge-status-other { background: rgba(120, 144, 156, 0.15); color: var(--ink-secondary); border: 1px solid rgba(120, 144, 156, 0.3); }

.study-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-primary);
  margin-bottom: 0.5rem;
}

.study-subinfo {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.study-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.class-chip {
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.outcomes-box {
  background: rgba(0, 0, 0, 0.32);
  border-left: 2px solid var(--neon-cyan);
  padding: 0.75rem 1rem;
  border-radius: 0 4px 4px 0;
}

.outcome-item {
  margin-bottom: 0.65rem;
}

.outcome-item:last-child {
  margin-bottom: 0;
}

.outcome-quote {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-primary);
  font-style: italic;
  margin-bottom: 0.25rem;
}

.outcome-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* Pagination Controls */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink-secondary);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
}

.page-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink-primary);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-info {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0 0.5rem;
}

/* Methodology & Literature Section */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.methodology-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.methodology-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink-primary);
  margin-bottom: 0.45rem;
}

.methodology-card p {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.methodology-card a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
}

.methodology-card a:hover {
  text-decoration: underline;
}

/* PRISMA SVG Flow Line Animation */
.prisma-flow-line {
  stroke: rgba(0, 229, 255, 0.5);
  stroke-width: 2;
  fill: none;
}

@media (prefers-reduced-motion: no-preference) {
  .prisma-flow-line {
    stroke-dasharray: 0.1 0.05;
    animation: prismaDashFlow 3s linear infinite;
  }
}

@keyframes prismaDashFlow {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Unified Trial Atlas Top Navigation Bar */
.atlas-unified-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.atlas-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid var(--neon-cyan);
  border-radius: 999px;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
}

.atlas-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
}

.atlas-mode-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.atlas-mode-link:hover {
  color: var(--ink-primary);
  border-color: var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
}

/* Longitudinal 33-Year Era Matrix */
.atlas-era-matrix-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
}

.atlas-era-matrix-svg {
  width: 100%;
  max-width: 940px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.era-col-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  fill: var(--ink-primary);
}

.era-col-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--muted);
}

.era-grid-vline {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.era-grid-hline {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

.era-matrix-row-bg {
  fill: transparent;
  transition: fill 0.2s ease;
}

.era-matrix-row-bg:hover,
.era-matrix-row-bg.active {
  fill: rgba(255, 255, 255, 0.04);
}

.era-row-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.era-cell-group {
  cursor: pointer;
  outline: none;
}

.era-cell-group:focus-visible circle {
  stroke: #ffffff;
  stroke-width: 2px;
}

.era-bubble-unlit {
  fill: rgba(255, 255, 255, 0.15);
}

.era-bubble-lit {
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.era-cell-group:hover .era-bubble-lit {
  opacity: 1;
  stroke: #ffffff;
  stroke-width: 1.5px;
}

.era-bubble-count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  fill: #050505;
  pointer-events: none;
}

.era-matrix-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.era-legend-title {
  color: var(--ink-secondary);
  font-weight: 600;
}

/* 25 Published Trial Endpoint Classes Directory */
.atlas-directory-wrap {
  margin: 3.5rem auto;
}

.atlas-directory-head {
  margin-bottom: 1.5rem;
}

.atlas-class-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}

.atlas-class-chip {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm, 6px);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.atlas-class-chip:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.04);
  transform: translateY(-2px);
}

.atlas-class-chip .chip-slug {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-cyan);
  margin-bottom: 0.25rem;
}

.atlas-class-chip .chip-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.35;
}

/* ECFSPR 10-Year Demographic Trajectory SVG Chart */
.ecfspr-chart-wrap {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  margin: 1.25rem auto 1.5rem;
  overflow-x: auto;
}

#ecfspr-trajectory-svg {
  width: 100%;
  max-width: 860px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.ecfspr-chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.ecfspr-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ecfspr-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.leg-registered { background: #00e676; }
.leg-adult { background: #00e5ff; }
.leg-death { background: #ffd700; }

.ecfspr-grid-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.ecfspr-grid-vline {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.ecfspr-axis-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--muted);
  cursor: pointer;
}

.ecfspr-axis-label.active {
  fill: var(--neon-cyan);
  font-weight: 700;
}

.ecfspr-trajectory-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ecfspr-line-registered {
  stroke: #00e676;
}

.ecfspr-line-adult {
  stroke: #00e5ff;
}

.ecfspr-line-death {
  stroke: #ffd700;
}

@media (prefers-reduced-motion: no-preference) {
  .ecfspr-trajectory-line {
    stroke-dasharray: 1;
    animation: ecfsprDrawLine 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

@keyframes ecfsprDrawLine {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.ecfspr-node-circle {
  cursor: pointer;
  transition: transform 0.2s ease, r 0.2s ease;
}

.ecfspr-node-circle:hover {
  r: 6;
}

.ecfspr-cursor-vline {
  stroke: rgba(0, 229, 255, 0.65);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}

.ecfspr-pulse-ring {
  fill: none;
  stroke: var(--neon-cyan);
  stroke-width: 1.5;
  opacity: 0.8;
}

@media (prefers-reduced-motion: no-preference) {
  .ecfspr-pulse-ring {
    animation: ecfsprRingPulse 2s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
  }
}

@keyframes ecfsprRingPulse {
  0% { r: 5; opacity: 0.9; }
  100% { r: 12; opacity: 0; }
}

.ecfspr-year-col-target {
  cursor: pointer;
  outline: none;
}

@media (max-width: 768px) {
  .trials-wrap {
    width: min(100% - 2rem, var(--wide));
    padding: 1.25rem 0 3rem;
  }
  .prisma-diagram-container {
    padding: 1rem 0.5rem;
  }
  .stacked-bar-track {
    height: 22px;
  }
  .filter-pill,
  .page-btn {
    min-height: 2.75rem;
  }
  .atlas-class-chips-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Visual Sitemap & Biological Scale Constellation (/tools/#visual-sitemap)
   ========================================================================== */

.sitemap-section {
  margin: 3.5rem auto 2.5rem;
  padding: 0 0 2rem;
}

.sitemap-head {
  margin-bottom: 2rem;
}

.sitemap-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0.6rem 0 0.5rem;
}

.sitemap-lede {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 54rem;
  margin: 0;
}

.sitemap-svg-card {
  background: var(--surface-subtle, rgba(14, 21, 36, 0.6));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 12px);
  padding: 1.5rem 1rem 1rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.sitemap-constellation-svg {
  display: block;
  width: 100%;
  min-width: 720px;
  height: auto;
}

.constellation-node circle {
  transition: transform 0.2s ease, stroke-width 0.2s ease;
}

.constellation-node:hover circle {
  stroke-width: 3.5;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.sitemap-col {
  background: var(--surface-card, rgba(14, 21, 36, 0.45));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  padding: 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
}

.sitemap-col-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neon-cyan, #00f3ff);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sitemap-list li {
  margin: 0;
  padding: 0;
}

.sitemap-list a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.35rem 0.45rem;
  margin: -0.35rem -0.45rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.sitemap-list a:hover,
.sitemap-list a:focus-visible {
  background: rgba(0, 243, 255, 0.08);
  outline: none;
}

.sitemap-list strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.35;
}

.sitemap-list a:hover strong {
  color: var(--neon-cyan, #00f3ff);
}

.sitemap-list span {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 960px) {
  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
}



/* ==========================================================================
   Global Registry Equity & Theratyping Explorer (T-0257)
   ========================================================================== */

.registry-equity-section {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.equity-container {
  background: var(--surface-1, #0f172a);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.equity-header {
  margin-bottom: 1.5rem;
}

.equity-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink-primary, #f8fafc);
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.equity-sub {
  font-size: 0.92rem;
  color: var(--ink-secondary, #94a3b8);
  line-height: 1.5;
  margin: 0;
}

.equity-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.equity-control-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.equity-control-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-cyan, #38bdf8);
}

.equity-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.equity-select-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #cbd5e1;
  font-family: var(--font-sans, inherit);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.equity-select-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.equity-select-btn.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 600;
}

.equity-sliders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 1.1rem;
}

.equity-slider-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.equity-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.equity-slider-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.equity-slider-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.equity-range {
  width: 100%;
  accent-color: #38bdf8;
  cursor: pointer;
}

.equity-slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-family: var(--font-mono, monospace);
  color: #64748b;
}

.equity-viz-wrap {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.equity-viz-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.equity-viz-status {
  font-size: 0.82rem;
  font-family: var(--font-mono, monospace);
  color: #94a3b8;
  line-height: 1.4;
}

.equity-anim-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: #e2e8f0;
  font-size: 0.75rem;
  font-family: var(--font-mono, monospace);
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.equity-anim-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.registry-equity-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.equity-readout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.equity-readout-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.equity-card-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
}

.equity-card-val {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: #38bdf8;
}

.equity-card-sub {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
}

.equity-plain-words {
  background: rgba(56, 189, 248, 0.04);
  border-left: 3px solid #38bdf8;
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.equity-plain-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #38bdf8;
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.equity-plain-copy {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

.equity-disclaimer {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
}

@media (max-width: 860px) {
  .equity-controls-grid,
  .equity-sliders-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .equity-select-btn,
  .equity-anim-btn {
    transition: none;
  }
}


/* ==========================================================================
   Care-Team Recruiting Trials & Bilingual Visit Prep Explorer (T-0389)
   ========================================================================== */

.care-trials-section {
  margin: 3.5rem auto 2.5rem;
}

.care-trials-card {
  background: var(--surface-card, #101622);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  padding: 2.25rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.care-trials-header {
  margin-bottom: 1.5rem;
}

.care-trials-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-heading, #f1f5f9);
  margin: 0.6rem 0 0.5rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.care-trials-lead {
  font-size: 0.96rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.6;
  margin: 0;
  max-width: 820px;
}

.care-trials-boundary {
  background: rgba(56, 189, 248, 0.05);
  border-left: 3px solid #38bdf8;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.care-trials-boundary p {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

.care-trials-sheet-panel {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 1.75rem;
  margin-bottom: 2.25rem;
}

.care-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.care-sheet-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #38bdf8;
  margin: 0;
}

.care-sheet-lang-toggles {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 2px;
}

.care-sheet-lang-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.care-sheet-lang-btn:hover {
  color: #f1f5f9;
}

.care-sheet-lang-btn.active {
  background: #38bdf8;
  color: #0b1120;
}

.care-sheet-sub {
  font-size: 0.86rem;
  color: #94a3b8;
  margin: 0 0 1.25rem;
}

.care-sheet-urgent {
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid #ef4444;
  border-radius: 0 6px 6px 0;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #fca5a5;
}

.care-sheet-urgent strong {
  color: #ef4444;
  display: block;
  margin-bottom: 0.25rem;
}

.care-sheet-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.75rem;
  margin-bottom: 1.5rem;
}

.care-sheet-col-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 0.85rem;
}

.care-sheet-list,
.care-sheet-checklist {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.care-sheet-list li,
.care-sheet-checklist li {
  margin-bottom: 0.65rem;
}

.care-sheet-privacy-box {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #fde68a;
}

.care-sheet-privacy-box strong {
  color: #f59e0b;
  display: block;
  margin-bottom: 0.2rem;
}

.care-sheet-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.care-copy-sheet-btn {
  background: #38bdf8;
  color: #0b1120;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.care-copy-sheet-btn:hover {
  background: #7dd3fc;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
}

.care-download-sheet-btn,
.care-print-sheet-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-primary);
  border: 1px solid var(--border-glass);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.care-download-sheet-btn:hover,
.care-print-sheet-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.care-copy-status {
  font-size: 0.84rem;
  font-weight: 500;
}

.care-copy-status.status-success {
  color: #34d399;
}

.care-copy-status.status-fail {
  color: #f87171;
}

/* Controls */
.care-trials-controls {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.care-control-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 0.65rem;
}

.care-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.care-choice-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.care-choice-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.2);
}

.care-choice-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.care-search-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  align-items: flex-end;
}

.care-search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  color: #f1f5f9;
  font-size: 0.88rem;
  box-sizing: border-box;
}

.care-search-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.care-select {
  width: 100%;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  color: #f1f5f9;
  font-size: 0.88rem;
  cursor: pointer;
}

.care-select:focus {
  outline: none;
  border-color: #38bdf8;
}

/* KPIs */
.care-trials-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.care-kpi-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-align: center;
}

.care-kpi-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  margin-bottom: 0.25rem;
}

.care-kpi-label {
  font-size: 0.76rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Results & Cards */
.care-trials-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.care-trial-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
  transition: border-color 0.15s ease;
}

.care-trial-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.care-trial-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.care-trial-nct-link {
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: #38bdf8;
  text-decoration: none;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.care-trial-nct-link:hover {
  background: rgba(56, 189, 248, 0.2);
  text-decoration: underline;
}

.care-trial-status-badge {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.care-trial-phase-badge {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.care-trial-mod-badge {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.care-trial-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.care-trial-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.95rem;
  font-size: 0.84rem;
  color: #cbd5e1;
}

.care-trial-meta-row strong {
  color: #94a3b8;
}

.care-trial-outcome-box {
  background: rgba(0, 0, 0, 0.25);
  border-left: 2px solid #a855f7;
  border-radius: 0 4px 4px 0;
  padding: 0.65rem 0.95rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.care-trial-outcome-lbl {
  color: #c084fc;
}

.care-trial-timeframe {
  color: #94a3b8;
  font-style: italic;
}

.care-trials-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.care-page-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.care-page-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.care-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.care-page-info {
  font-size: 0.84rem;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
}

.care-trials-empty {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .care-sheet-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .care-search-row {
    grid-template-columns: 1fr;
  }
  .care-trials-kpis {
    grid-template-columns: 1fr;
  }
  .care-trial-meta-grid {
    grid-template-columns: 1fr;
  }
}


/* Pinned Trials & Download Sheet Controls */
.care-sheet-pinned-box {
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.15rem;
}

.care-sheet-pinned-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.care-sheet-pinned-head strong {
  color: #7dd3fc;
  font-size: 0.86rem;
}

.care-clear-pins-btn {
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}

.care-sheet-pinned-empty {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.care-sheet-pinned-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.83rem;
  color: #e2e8f0;
}

.care-pinned-item {
  margin-bottom: 0.35rem;
}

.care-unpin-chip-btn {
  margin-left: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
}

.care-download-sheet-btn {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.62rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.care-download-sheet-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
}

.care-pin-trial-btn {
  margin-left: auto;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.care-pin-trial-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #ffffff;
}

.care-pin-trial-btn.active {
  background: rgba(52, 211, 153, 0.18);
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

/* Cross-Scale Endpoint Co-Occurrence Bridge (/cf/trials/) */
.cooccurrence-bridge-section {
  margin: 0 auto 3.5rem;
}

.cooccurrence-bridge-card {
  background: rgba(10, 16, 28, 0.78);
  border: 1px solid rgba(0, 243, 255, 0.25);
  border-radius: 12px;
  padding: 1.75rem 1.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}

.cooccurrence-synthesis-grid {
  margin-bottom: 1.75rem;
}

.cooccurrence-synthesis-grid .methodology-card .badge-tier-t2 {
  margin-bottom: 0.65rem;
}

.cooccurrence-top-pairs-wrap {
  background: rgba(5, 10, 20, 0.68);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
}

.cooccurrence-subhead {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--neon-cyan);
  margin: 0 0 1rem;
}

.cooccurrence-bars-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.35rem;
}

.cooccurrence-bar-row {
  display: grid;
  grid-template-columns: minmax(14rem, 1.3fr) minmax(6rem, 2fr) auto;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.86rem;
}

.cooccurrence-pair-label {
  color: var(--ink-primary);
  font-weight: 500;
}

.cooccurrence-pair-label a {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cooccurrence-bar-track {
  display: block;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.cooccurrence-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), rgba(56, 189, 248, 0.65));
  border-radius: 999px;
}

.bar-w-100 { width: 100%; }
.bar-w-75 { width: 75%; }
.bar-w-69 { width: 69%; }
.bar-w-25 { width: 25%; }
.bar-w-22 { width: 22%; }
.bar-w-19 { width: 19%; }
.bar-w-16 { width: 16%; }
.bar-w-13 { width: 13%; }
.bar-w-9 { width: 9%; }

.cooccurrence-pair-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-secondary);
  min-width: 5.5rem;
  text-align: right;
}

.cooccurrence-bridge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 680px) {
  .cooccurrence-bar-row {
    grid-template-columns: 1fr auto;
  }
  .cooccurrence-bar-track {
    grid-column: 1 / -1;
  }
}

/* Modernized Observatory Styling for /atlas/* (body.atlas) */
body.atlas .draft-banner {
  background: rgba(8, 15, 28, 0.88);
  border-block: 1px solid rgba(0, 243, 255, 0.22);
  padding: 0.5rem 0;
}

body.atlas .draft-banner p {
  font-size: 0.84rem;
  color: var(--ink-secondary);
  max-width: 68rem;
}

body.atlas nav.atlas-nav {
  margin: 0 0 1.25rem;
  padding: 0.65rem 0;
  background: rgba(10, 16, 28, 0.72);
  border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

body.atlas nav.atlas-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

body.atlas nav.atlas-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
}

body.atlas nav.atlas-nav a:hover {
  color: var(--ink-primary);
  border-color: rgba(0, 243, 255, 0.45);
  background: rgba(0, 243, 255, 0.08);
}

body.atlas nav.atlas-nav a[aria-current="page"] {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  background: rgba(0, 243, 255, 0.14);
  font-weight: 600;
}

body.atlas .page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.65rem;
}

body.atlas .counts > div {
  background: rgba(12, 20, 34, 0.82);
  border: 1px solid rgba(0, 243, 255, 0.26);
  border-radius: 10px;
  padding: 0.9rem 1.15rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
}

body.atlas .not-say,
body.atlas .not-shown,
body.atlas .sorted-check {
  margin: 0.75rem 0;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(237, 189, 69, 0.32);
  border-left: 3px solid var(--lime);
  border-radius: 8px;
  background: rgba(14, 21, 35, 0.75);
  font-size: 0.85rem;
  line-height: 1.45;
  max-width: 100%;
}

body.atlas .not-say h2,
body.atlas .not-shown h2,
body.atlas .sorted-check h2 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lime);
  margin: 0 0 0.4rem;
}

@media (min-width: 60rem) {
  body.atlas .not-say ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 1.5rem;
  }
}

body.atlas .pair-table {
  max-width: 100%;
  background: rgba(10, 16, 28, 0.78);
  border: 1px solid rgba(0, 243, 255, 0.22);
  border-radius: 10px;
  overflow: hidden;
}

body.atlas .pair-table caption {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

body.atlas .pair-table th,
body.atlas .pair-table td {
  padding: 0.45rem 0.85rem;
}

body.atlas .pair-table tbody tr:hover {
  background: rgba(0, 243, 255, 0.06);
}

body.atlas .atlas-live-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.85rem 0 1rem;
  padding: 0.95rem 1.15rem;
  background: rgba(10, 18, 32, 0.82);
  border: 1px solid rgba(0, 243, 255, 0.26);
  border-radius: 10px;
}

body.atlas .atlas-toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

body.atlas .atlas-pair-filter-input {
  flex: 1 1 14rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 8, 16, 0.85);
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

body.atlas .atlas-filter-btn {
  min-height: 2.15rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  cursor: pointer;
}

body.atlas .atlas-filter-btn.is-active,
body.atlas .atlas-filter-btn:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  background: rgba(0, 243, 255, 0.12);
}

body.atlas .atlas-synthesis-callout {
  font-size: 0.85rem;
  line-height: 1.48;
  color: var(--ink-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.65rem;
  margin: 0;
}

body.atlas .atlas-synthesis-callout strong {
  color: var(--neon-cyan);
}

body.atlas .atlas-synthesis-callout a {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}



/* 3-Engine Cross-Scale Discovery Synthesis & Cross-Discipline Bridge */
.cross-scale-engines-wrap {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cross-scale-engines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.engine-card {
  border-top: 3px solid #38bdf8;
}

.trials-cross-discipline-bridge {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trials-cross-discipline-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.trials-cross-discipline-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.cross-scale-link-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  transition: all 0.2s ease;
}

.cross-scale-link-card:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.cross-scale-link-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.cross-scale-link-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink-primary);
  margin-bottom: 0.5rem;
}

.cross-scale-link-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Print optimization for CF clinic visit-prep sheet */
@media print {
  header, footer, nav, .site-header, .cf-banner, #rose-field,
  .skip-link, .trials-nav, .care-trials-controls, .care-sheet-actions,
  .care-sheet-lang-toggles, .care-clear-pins-btn, .care-pin-btn, .care-unpin-chip-btn,
  .trials-section, .cooccurrence-bridge-section, .care-trials-boundary,
  .trials-pagination, .proof-receipt, .brand-wrap, .subnav-rail,
  .care-trials-list, .care-search-row, .care-filter-block, .trials-summary-box {
    display: none !important;
  }

  body, main, .wrap, .care-trials-section, .care-trials-card, .care-trials-sheet-panel {
    background: #ffffff !important;
    color: #111827 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
  }

  .care-trials-sheet-panel {
    border: 2px solid #374151 !important;
    padding: 1.25rem !important;
    border-radius: 6px !important;
  }

  .care-sheet-header {
    border-bottom: 2px solid #e5e7eb !important;
    padding-bottom: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  .care-sheet-title {
    color: #111827 !important;
    font-size: 1.4rem !important;
  }

  .care-sheet-sub {
    color: #4b5563 !important;
  }

  .care-sheet-urgent {
    background: #fef2f2 !important;
    border: 1px solid #dc2626 !important;
    color: #991b1b !important;
    padding: 0.75rem !important;
    border-radius: 4px !important;
    margin: 0.75rem 0 !important;
  }

  .care-sheet-urgent strong {
    color: #b91c1c !important;
  }

  .care-sheet-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.25rem !important;
    margin-top: 1rem !important;
  }

  .care-sheet-col-title {
    color: #1f2937 !important;
    border-bottom: 1px solid #d1d5db !important;
    padding-bottom: 0.35rem !important;
  }

  .care-sheet-list li,
  .care-sheet-checklist li {
    color: #374151 !important;
  }

  .care-sheet-privacy-box {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    color: #4b5563 !important;
    padding: 0.5rem 0.75rem !important;
  }

  .care-sheet-pinned-box {
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    margin-top: 1rem !important;
    padding: 0.75rem !important;
  }

  .care-sheet-pinned-head strong {
    color: #111827 !important;
  }

  .care-sheet-pinned-empty {
    color: #6b7280 !important;
  }

  .care-pinned-item {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #1f2937 !important;
    padding: 0.5rem !important;
    margin-bottom: 0.35rem !important;
  }
}


/* Genetic Trial Visit-Prep Synthesis Styles (T-0443) */
.prep-genotype-selector-wrap {
  margin: 1.5rem 0 1rem;
}
.prep-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  display: block;
  margin-bottom: 0.5rem;
}
.prep-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.prep-btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}
.prep-btn:hover {
  border-color: #38bdf8;
  color: #ffffff;
  background: rgba(56, 189, 248, 0.12);
}
.prep-btn.is-active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}
.visit-prep-sheet {
  background: var(--surface-1, #0f172a);
  border: 1px solid var(--border-color, rgba(56, 189, 248, 0.25));
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.prep-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}
.prep-sheet-eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38bdf8;
  display: block;
  margin-bottom: 0.25rem;
}
.prep-sheet-genotype {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}
.prep-print-btn {
  white-space: nowrap;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #38bdf8;
  border-radius: 6px;
  cursor: pointer;
}
.prep-print-btn:hover {
  background: #0369a1;
}
.prep-section-block {
  margin-bottom: 1.5rem;
}
.prep-block-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: var(--font-mono, monospace);
}
.prep-block-body {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #e2e8f0;
  margin: 0;
}
.prep-trials-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}
.prep-trial-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
.prep-trial-header {
  margin-bottom: 0.35rem;
}
.prep-trial-nct {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  color: #38bdf8;
  text-decoration: underline;
}
.prep-trial-title {
  color: #f1f5f9;
  font-size: 0.88rem;
}
.prep-trial-vector {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}
.prep-trial-focus {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.4;
}
.prep-biomarkers-box {
  background: rgba(56, 189, 248, 0.08);
  border-left: 4px solid #38bdf8;
  border-radius: 6px;
  padding: 0.85rem 1.15rem;
}
.prep-biomarkers-box p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e2e8f0;
}
.prep-biomarker-endpoints {
  margin: 0 !important;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem !important;
  color: #38bdf8 !important;
  font-weight: 600;
}
.prep-questions-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.prep-question-item {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
}
.prep-question-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}
.prep-question-num {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 700;
  background: #0284c7;
  color: #ffffff;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.prep-question-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
}
.prep-question-prompt {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 0.35rem;
  line-height: 1.4;
}
.prep-question-context {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}
.prep-sheet-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 0.85rem;
  margin-top: 1.25rem;
}
.prep-disclaimer-text {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

@media print {
  #genetic-trial-visit-prep .prep-genotype-selector-wrap,
  #genetic-trial-visit-prep .prep-print-btn,
  #genetic-trial-visit-prep .care-questions-header {
    display: none !important;
  }
  #genetic-trial-visit-prep,
  .visit-prep-sheet {
    display: block !important;
    background: #ffffff !important;
    color: #111827 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .prep-sheet-header {
    border-bottom: 2px solid #111827 !important;
  }
  .prep-sheet-genotype {
    color: #111827 !important;
  }
  .prep-block-title {
    color: #1f2937 !important;
    border-bottom: 1px solid #e5e7eb !important;
  }
  .prep-block-body,
  .prep-biomarkers-box p,
  .prep-question-prompt {
    color: #111827 !important;
  }
  .prep-trial-card,
  .prep-question-item {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .prep-trial-title,
  .prep-trial-focus,
  .prep-question-context,
  .prep-disclaimer-text {
    color: #374151 !important;
  }
}

/* ==========================================================================
   Pulmonary vs Systemic Biomarker Decoupling Explorer (T-0436)
   ========================================================================== */
.decouple-submodule-card {
  background: linear-gradient(135deg, rgba(13, 23, 42, 0.95), rgba(15, 23, 42, 0.88));
  border: 1px solid rgba(0, 243, 255, 0.32);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.decouple-presets-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 1.5rem;
  align-items: center;
}

.decouple-presets-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-right: 0.25rem;
}

.decouple-preset-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.decouple-preset-btn:hover {
  border-color: #00f3ff;
  color: #00f3ff;
  background: rgba(0, 243, 255, 0.1);
}

.decouple-preset-btn.is-active {
  background: rgba(0, 243, 255, 0.18);
  border-color: #00f3ff;
  color: #00f3ff;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.25);
}

.decouple-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.decouple-control-item label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.decouple-control-item input[type="range"] {
  width: 100%;
  accent-color: #00f3ff;
}

.decouple-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.decouple-kpi-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.decouple-kpi-card .kpi-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.decouple-kpi-card .kpi-val {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: monospace;
  color: #00f3ff;
  margin-bottom: 0.25rem;
}

.decouple-kpi-card .kpi-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

.decouple-kpi-card.verdict-card {
  grid-column: 1 / -1;
  border-color: rgba(192, 132, 252, 0.35);
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.4), rgba(15, 23, 42, 0.7));
}

.decouple-kpi-card.verdict-card .kpi-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e2e8f0;
  margin: 0.35rem 0 0;
}

.decouple-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.badge-coupled {
  background: rgba(0, 243, 255, 0.15);
  color: #00f3ff;
  border: 1px solid rgba(0, 243, 255, 0.35);
}

.badge-decoupled {
  background: rgba(192, 132, 252, 0.18);
  color: #e879f9;
  border: 1px solid rgba(192, 132, 252, 0.4);
}

.decouple-chart-container {
  background: rgba(10, 15, 29, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.decouple-chart-title {
  font-size: 1.05rem;
  color: #f1f5f9;
  margin: 0 0 1rem;
}

.decouple-svg-wrap {
  position: relative;
  width: 100%;
}

.decouple-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.decouple-tooltip {
  position: absolute;
  top: 10px;
  right: 15px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #00f3ff;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-family: monospace;
  color: #f8fafc;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.decouple-guidance-card {
  background: rgba(15, 23, 42, 0.75);
  border-left: 4px solid #00f3ff;
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.decouple-guidance-card h4 {
  color: #00f3ff;
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.decouple-guidance-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0 0 0.65rem;
}

.decouple-guidance-card p:last-child {
  margin-bottom: 0;
}

.decouple-evidence-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

.decouple-evidence-box h4 {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0 0 0.5rem;
}

.decouple-evidence-box p {
  line-height: 1.5;
  margin: 0 0 0.4rem;
}

.decouple-evidence-box .nl-disclaimer {
  color: #a78bfa;
  font-style: italic;
  margin-bottom: 0;
}
