:root {
  --ink: #102033;
  --muted: #56657a;
  --blue: #246fb2;
  --blue-dark: #06467e;
  --blue-soft: #8dc0df;
  --line: #d6dbe1;
  --panel: #ffffff;
  --page: #f5f7f8;
  --green: #23845f;
  --red: #b84343;
  --amber: #ad7a1a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.visits-shell {
  min-height: 100vh;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.veritas-shell {
  min-height: 100vh;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.veritas-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--panel);
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 18px;
}

.veritas-hero h1 {
  margin: 2px 0 6px;
  font-size: 38px;
  letter-spacing: 0;
}

.veritas-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.veritas-hero a,
.tab-link {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}

.pa-title {
  background: var(--panel);
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 16px 18px;
}

.pa-title h1 {
  margin: 2px 0 6px;
  font-size: 34px;
  letter-spacing: 0;
}

.pa-title p {
  margin: 0;
  color: var(--muted);
}

.pa-party-photo {
  background: #ffffff;
  padding: 8px;
}

.faq-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 18px;
}

.veritas-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.veritas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.veritas-metrics div {
  background: var(--panel);
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 14px;
}

.veritas-metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.veritas-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.veritas-prediction-card {
  border-color: #b8c7d8 !important;
  background: #f8fafc !important;
}

.veritas-prediction-note {
  display: grid;
  gap: 5px;
  background: var(--panel);
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  padding: 14px;
}

.veritas-prediction-note strong {
  color: var(--ink);
  font-size: 16px;
}

.veritas-prediction-note span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.veritas-table {
  display: grid;
  gap: 7px;
}

.veritas-row {
  display: grid;
  grid-template-columns: 34px minmax(150px, 1fr) minmax(160px, 1.2fr) auto auto auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eef1f4;
  padding-bottom: 7px;
  font-size: 13px;
}

.veritas-row strong,
.veritas-row span {
  overflow-wrap: anywhere;
}

.veritasx-status {
  background: var(--panel);
  border: 1px solid #dde2e8;
  border-left: 6px solid var(--amber);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--muted);
  font-weight: 700;
}

.veritasx-status.ready {
  border-left-color: var(--green);
  color: var(--ink);
}

.veritasx-discovery {
  background: #f9fbfc;
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.veritasx-coverage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.veritasx-coverage div {
  border: 1px solid #e0e6ec;
  border-radius: 8px;
  padding: 12px;
}

.veritasx-coverage strong,
.veritasx-coverage span {
  display: block;
}

.veritasx-coverage span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.veritasx-list {
  display: grid;
  gap: 8px;
}

.veritasx-list p {
  color: var(--muted);
  margin: 0;
}

.veritasx-capture-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.veritasx-capture-grid p {
  margin: 0;
  color: var(--muted);
}

.veritasx-capture {
  border: 1px solid #dde4eb;
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  padding: 9px;
  background: #fbfcfd;
  min-width: 0;
}

.veritasx-capture.ready {
  border-left-color: var(--green);
}

.veritasx-capture strong,
.veritasx-capture span,
.veritasx-capture small {
  display: block;
  overflow-wrap: anywhere;
}

.veritasx-capture strong {
  font-size: 13px;
}

.veritasx-capture span,
.veritasx-capture small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.veritasx-territory {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eef1f4;
  padding-bottom: 8px;
  font-size: 13px;
}

.veritasx-territory span {
  color: var(--muted);
}

.veritasx-delta-row {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 1fr) auto;
}

.veritasx-table-row {
  grid-template-columns: 34px minmax(130px, 1fr) auto minmax(160px, 1.2fr) auto auto auto;
}

.visits-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--panel);
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 16px;
}

.visits-header h1 {
  margin: 2px 0 0;
  font-size: 32px;
  letter-spacing: 0;
}

.visits-header a {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}

.visit-metrics,
.visits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.integrity-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
}

.integrity-metrics div {
  background: var(--panel);
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 14px;
}

.integrity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 18px 18px;
}

.integrity-list {
  display: grid;
  gap: 8px;
}

.integrity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eef1f4;
  padding-bottom: 8px;
  font-size: 13px;
}

.integrity-row small {
  color: var(--muted);
  font-size: 11px;
}

.visits-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visits-stack {
  display: grid;
  gap: 12px;
}

.requests-panel .visit-table {
  max-height: 180px;
  overflow: auto;
}

.visit-metrics div {
  background: var(--panel);
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 14px;
}

.visit-metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.visit-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
}

.visit-list,
.visit-table {
  display: grid;
  gap: 8px;
}

.visit-list-row,
.visit-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eef1f4;
  padding-bottom: 8px;
  font-size: 13px;
}

.visit-table-row {
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.9fr) auto;
}

.visit-heavy-row {
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
}

.suggestion-row {
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.6fr) minmax(0, 0.9fr) auto;
  align-items: start;
}

.suggestion-row span:nth-child(3) {
  color: var(--ink);
}

.visit-list-row span,
.visit-table-row span,
.visit-table-row strong {
  overflow-wrap: anywhere;
}

.visit-table-row small {
  color: var(--muted);
}

.visit-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.visit-control label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.visit-control select {
  border: 1px solid #d6dbe2;
  border-radius: 6px;
  padding: 2px 6px;
  background: #fff;
  font-size: 12px;
}

.visit-heavy-alert {
  background: rgba(146, 30, 30, 0.06);
  border-color: rgba(146, 30, 30, 0.25);
}

.visit-alert {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(146, 30, 30, 0.12);
  color: #7a1f1f;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.visit-owner {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 34, 64, 0.1);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.suggestion-admin-list {
  display: grid;
  gap: 10px;
}

.suggestion-admin-card {
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 12px;
  background: #f9fbfc;
}

.suggestion-admin-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 8px;
}

.suggestion-admin-head span,
.suggestion-admin-head small,
.suggestion-admin-meta span {
  color: var(--muted);
  font-size: 12px;
}

.suggestion-admin-head strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.suggestion-admin-card p {
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.4;
}

.suggestion-admin-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.suggestion-admin-meta span {
  border: 1px solid #e0e6ec;
  border-radius: 8px;
  background: #fff;
  padding: 7px;
  overflow-wrap: anywhere;
}

.suggestion-admin-meta b {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #ffffff;
  border-bottom: 1px solid #dfe5eb;
  box-shadow: 0 2px 8px rgba(16, 32, 51, 0.08);
}

.tab-button {
  border: 1px solid #cfd8e2;
  background: #f7f9fb;
  color: var(--ink);
  border-radius: 8px;
  min-height: 38px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}

.tab-button[data-tab="patrons"] {
  background: #8a2f8f;
  color: #ffffff;
  border-color: #7a2780;
}

.tab-link {
  border: 1px solid #cfd8e2;
  background: #f7f9fb;
  border-radius: 8px;
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
}

.tab-button.active {
  background: var(--blue-dark);
  color: #ffffff;
  border-color: var(--blue-dark);
}

.tab-button.oracle-tab {
  background: #ffe08a;
  border-color: #f3c85e;
  color: #5a3d00;
}

.tab-button.oracle-tab:hover {
  background: #ffd46b;
}

.tab-button.oracle-tab.active {
  background: #c98200;
  border-color: #c98200;
  color: #ffffff;
}

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 18px;
}

.tab-panel.active {
  display: flex;
}


.status-band {
  position: relative;
  min-height: 78px;
  background: var(--panel);
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 12px 20px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 18px;
  align-items: start;
}

.eyebrow {
  display: block;
  color: #1f5f9a;
  font-size: 13px;
}

.actas-number {
  color: var(--blue-dark);
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
}

.actas-meta {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #1f5f9a;
  font-size: 13px;
}

.actas-meta strong {
  color: var(--ink);
  font-size: 15px;
}

.legend {
  align-self: end;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #143f70;
  font-size: 14px;
}

.dot {
  width: 17px;
  height: 17px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -3px;
  border: 1px solid var(--blue-dark);
}

.dot.dark {
  background: var(--blue-dark);
}

.dot.mid {
  background: #67afd8;
}

.dot.empty {
  background: white;
}

.progress-track {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 8px;
  height: 8px;
  background: #ececec;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--blue-dark);
  min-width: 2px;
}

.updated {
  position: absolute;
  left: 56px;
  bottom: -17px;
  color: #003a70;
  font-size: 13px;
}

.filters-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 40px 20px 0;
  color: #0f2438;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.pin {
  color: var(--blue-dark);
  font-size: 38px;
  line-height: 0;
}

.chevron {
  color: #1d5d96;
  font-size: 20px;
}

.connection {
  margin-left: auto;
  color: var(--muted);
  letter-spacing: 0;
}

.live-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 18px 0;
  padding: 10px 14px;
  border: 1px solid rgba(17, 92, 170, 0.25);
  background: rgba(17, 92, 170, 0.08);
  border-radius: 8px;
  color: #0f2d4a;
  font-size: 13px;
}

.live-banner.inline {
  margin: 0 0 0 10px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  white-space: nowrap;
  gap: 8px;
  color: #1d2a18;
  font-size: 12px;
}

.live-banner.inline span {
  color: #1d2a18;
}

.live-text {
  font-weight: 800;
  color: #7dff6a;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  letter-spacing: 0;
}

.live-banner strong {
  font-size: 13px;
}

.live-banner span {
  color: var(--muted);
  text-align: right;
}

.live-banner.is-reconnecting {
  border-color: rgba(180, 90, 0, 0.35);
  background: rgba(180, 90, 0, 0.12);
  color: #6d3b00;
}

.live-banner.is-error {
  border-color: rgba(146, 30, 30, 0.35);
  background: rgba(146, 30, 30, 0.12);
  color: #7a1f1f;
}

.onpe-brief {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px;
}

.onpe-brief div {
  background: var(--panel);
  border: 1px solid #dde4eb;
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 0;
}

.onpe-brief span,
.onpe-brief small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.onpe-brief strong {
  display: block;
  margin: 4px 0;
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.histogram-section {
  position: relative;
  min-height: 470px;
  margin: 0 18px;
  padding-left: 72px;
}

.axis {
  position: absolute;
  left: 0;
  top: 50px;
  bottom: 96px;
  width: 72px;
  color: #101a28;
  font-size: 12px;
}

.axis-line {
  position: absolute;
  left: 72px;
  right: 0;
  border-top: 1px dashed #c8c8c8;
}

.axis-label {
  position: absolute;
  right: 4px;
  transform: translateY(-50%);
}

.histogram {
  height: 430px;
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 28px;
  align-items: end;
  padding: 50px 28px 0 28px;
  position: relative;
}

.histogram-nav {
  position: absolute;
  top: 196px;
  z-index: 8;
  width: 40px;
  height: 64px;
  border: 1px solid #c9d4df;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-dark);
  font-size: 38px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 32, 51, 0.12);
}

.histogram-nav.prev {
  left: 82px;
}

.histogram-nav.next {
  right: 8px;
}

.histogram-nav:disabled {
  opacity: 0.32;
  cursor: default;
}

.histogram-pager {
  position: absolute;
  right: 10px;
  top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.visitor-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  padding: 0 20px 14px;
  color: #738194;
  font-size: 12px;
}

.visitor-toggle {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #c8d0da;
  padding: 0;
  cursor: pointer;
}

.visitor-toggle:hover {
  background: var(--blue-dark);
}

.visitor-counter.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

.hist-prediction-curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.prediction-curve-label {
  font-size: 12px;
  font-weight: 700;
  fill: #183f6d;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 4px;
  stroke-linejoin: round;
}


.prediction-curve-legend-line {
  stroke: #183f6d;
  stroke-width: 3px;
  stroke-dasharray: 9 7;
  stroke-linecap: round;
  paint-order: stroke;
}

.prediction-curve-caption {
  font-size: 13px;
  font-weight: 700;
  fill: #183f6d;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.bar-item {
  position: relative;
  height: 380px;
  display: grid;
  grid-template-rows: 1fr 86px;
  justify-items: center;
  min-width: 0;
}

.bar-zone {
  align-self: end;
  position: relative;
  width: 100%;
  height: 310px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.bar {
  width: 100%;
  max-width: 210px;
  min-height: 4px;
  background: var(--blue-soft);
  border-radius: 8px 8px 6px 6px;
  transition: height 400ms ease;
  position: relative;
}

.bar.leading {
  background: var(--blue);
}

.candidate-photo {
  position: absolute;
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  bottom: calc(var(--bar-height) - 34px);
  z-index: 2;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18));
}

.bar-value {
  position: absolute;
  bottom: max(10px, calc(var(--bar-height) / 2 - 10px));
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(10, 48, 84, 0.74);
  padding: 3px 7px;
  border-radius: 4px;
  z-index: 3;
  text-align: center;
  max-width: 92%;
  white-space: nowrap;
}

.party-logo {
  width: 72px;
  height: 66px;
  object-fit: contain;
}

.party-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  gap: 4px;
  width: 100%;
  margin-top: 18px;
}

.trend-detail {
  font-size: 11px;
  color: var(--muted);
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 8px;
  background: #f6f8fa;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.trend-badge b {
  font-size: 20px;
  line-height: 0.85;
  font-weight: 900;
  text-shadow: 0 0 0 currentColor, 0.6px 0 currentColor, -0.6px 0 currentColor;
}

.trend-badge.up {
  color: var(--green);
}

.trend-badge.down {
  color: var(--red);
}

.trend-badge.flat {
  color: var(--amber);
}

.candidate-name {
  width: 100%;
  color: var(--ink);
  font-size: 12px;
  text-align: center;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.analytics-band {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 16px;
  padding: 0 18px;
}

.analysis-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px;
}

.analysis-summary div {
  background: var(--panel);
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 12px;
}

.analysis-summary span,
.analysis-summary small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.analysis-summary strong {
  display: block;
  margin: 5px 0 3px;
  font-size: 20px;
}

.analysis-forecast {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px;
}

.analysis-forecast div {
  background: var(--panel);
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 12px;
}

.analysis-forecast span,
.analysis-forecast small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.analysis-forecast strong {
  display: block;
  margin: 5px 0 3px;
  font-size: 20px;
}

.trend-panel,
.prediction-panel,
.insight-panel,
.model-panel {
  background: var(--panel);
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 14px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 10px;
}

.section-heading span {
  font-weight: 700;
}

.section-heading small {
  color: var(--muted);
}

.trend-scope-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.trend-scope-control select {
  border: 1px solid #cbd5df;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
}

.trend-chart {
  display: block;
  width: 100%;
  height: 250px;
  background:
    linear-gradient(to bottom, transparent 0, transparent 49px, #eef1f4 50px),
    linear-gradient(to right, transparent 0, transparent 59px, #eef1f4 60px);
  background-size: 100% 50px, 60px 100%;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 88px;
  overflow: auto;
  padding-top: 10px;
}

.trend-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #dde2e8;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 6px;
}

.trend-legend-chip b {
  width: 16px;
  height: 3px;
  border-radius: 8px;
}

.trend-tooltip {
  position: fixed;
  z-index: 9999;
  background: rgba(15, 24, 35, 0.95);
  color: #fff;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
  transform: translate(-9999px, -9999px);
  box-shadow: 0 6px 16px rgba(15, 24, 35, 0.24);
}

.prediction-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 230px;
  overflow: auto;
  padding-right: 4px;
}

.prediction-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  border-bottom: 1px solid #eef1f4;
  padding-bottom: 7px;
}

.prediction-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.prediction-row strong {
  overflow-wrap: anywhere;
}

.prediction-candidate small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.trend-up {
  color: var(--green);
}

.trend-down {
  color: var(--red);
}

.trend-flat {
  color: var(--amber);
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.score-strip div {
  border: 1px solid #e0e6ec;
  border-radius: 8px;
  padding: 8px;
}

.score-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.score-strip strong {
  display: block;
  margin-top: 4px;
}

.analysis-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.insight-grid,
.model-layout,
.evaluation-layout,
.dataset-layout,
.oracle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 16px;
  padding: 0 18px 22px;
}

.oracle-control {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) 92px;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.oracle-control label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.oracle-control input[type="range"] {
  width: 100%;
  accent-color: var(--blue-dark);
}

.oracle-control input[type="number"] {
  width: 100%;
  border: 1px solid #cfd8e2;
  border-radius: 8px;
  padding: 8px 9px;
  color: var(--ink);
  font: inherit;
}

.oracle-method {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.oracle-method label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.oracle-method select {
  width: 100%;
  border: 1px solid #cfd8e2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 9px 10px;
}

.oracle-chart {
  display: block;
  width: 100%;
  height: 280px;
  background:
    linear-gradient(to bottom, transparent 0, transparent 55px, #eef1f4 56px),
    linear-gradient(to right, transparent 0, transparent 79px, #eef1f4 80px);
  background-size: 100% 56px, 80px 100%;
}

.oracle-chart-label {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.oracle-chart-value {
  fill: #183f6d;
  font-size: 12px;
  font-weight: 800;
}

.ranking-compare-header {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(260px, 0.9fr) minmax(260px, 0.85fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.ranking-top-card {
  display: grid;
  align-content: start;
  min-height: 178px;
  border: 1px solid #dde2e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 32, 51, 0.04);
  padding: 18px;
}

.ranking-card-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ranking-top-card strong {
  display: block;
  color: var(--blue-dark);
  font-size: 44px;
  line-height: 1;
  margin: 12px 0 12px;
}

.ranking-top-card small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.ranking-launch-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(220px, 1fr);
  gap: 18px;
  align-items: center;
}

.ranking-slider-control {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.ranking-slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ranking-slider-head label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ranking-slider-head small {
  color: var(--ink);
  font-size: 12px;
  text-align: right;
}

.ranking-slider-control input[type="range"] {
  width: 100%;
  accent-color: var(--blue-dark);
}

.ranking-method-card {
  align-content: center;
}

.ranking-method-select-wrap {
  margin: 14px 0 12px;
}

.ranking-method-select-wrap select {
  width: 100%;
  border: 1px solid #cfd8e2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  min-height: 46px;
  padding: 10px 12px;
}

.ranking-infobox {
  width: min(860px, 100%);
  margin: 0 auto 16px;
  border: 1px solid #cdd8e4;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  padding: 14px 18px;
  text-align: center;
}

.ranking-method-control {
  margin-bottom: 0;
}

.ranking-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ranking-chart {
  min-height: 1120px;
}

.oracle-explain {
  margin: 12px 0 0;
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  padding: 10px 12px;
}

.oracle-summary {
  display: grid;
  gap: 4px;
  margin: 10px 0 0;
  border: 1px solid #cad5df;
  border-radius: 8px;
  background: #ffffff;
  color: #34445a;
  line-height: 1.4;
  padding: 9px 11px;
}

.oracle-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.oracle-summary span {
  color: #34445a;
  font-size: 13px;
  font-weight: 700;
}

.oracle-note {
  margin: 10px 0 0;
  border: 1px solid #e0c8c8;
  border-radius: 8px;
  background: #fffafa;
  color: #8b1e1e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  padding: 9px 11px;
}

.oracle-list {
  display: grid;
  gap: 7px;
  max-height: 412px;
  overflow: auto;
  padding-right: 4px;
}

.oracle-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid #eef1f4;
  padding-bottom: 7px;
  font-size: 13px;
}

.oracle-row strong {
  overflow-wrap: anywhere;
}

.movement-list,
.neural-list,
.weights-list,
.evaluation-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.movement-list {
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.movement-row,
.neural-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eef1f4;
  padding-bottom: 8px;
  font-size: 13px;
}

.movement-row strong,
.neural-row strong {
  overflow-wrap: anywhere;
}

.arrow {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #eef3f7;
}

.arrow.up {
  color: var(--green);
}

.arrow.down {
  color: var(--red);
}

.arrow.flat {
  color: var(--amber);
}

.stability-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.stable-candidate {
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
}

.stability-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 32px auto minmax(90px, auto);
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid #eef1f4;
  padding-bottom: 8px;
  font-size: 13px;
}

.stability-row strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.stability-row small {
  color: var(--muted);
}

.model-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.model-metrics div {
  border: 1px solid #e0e6ec;
  border-radius: 8px;
  padding: 9px;
}

.model-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.model-metrics strong {
  display: block;
  margin-top: 4px;
}

.neural-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.weights-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weight-chip {
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  padding: 8px;
  background: #f8fafb;
  font-size: 13px;
}

.weight-chip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.evaluation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eef1f4;
  padding-bottom: 8px;
  font-size: 13px;
}

.evaluation-row strong {
  overflow-wrap: anywhere;
}

.evaluation-empty {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.data-request-form {
  display: grid;
  gap: 12px;
}

.data-request-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.data-request-form input,
.data-request-form textarea {
  width: 100%;
  border: 1px solid #cfd8e2;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.data-request-form button {
  justify-self: start;
  border: 1px solid var(--blue-dark);
  border-radius: 8px;
  background: var(--blue-dark);
  color: #ffffff;
  min-height: 38px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}

.form-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
}

.ranking-status {
  border: 1px solid #dde2e8;
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 16px;
  padding: 14px 16px;
}

.ranking-status.ready {
  border-color: #b8d8c8;
  color: #17623f;
}

.ranking-status.pending {
  border-color: #ead8aa;
  color: #7a5a15;
}

.method-scoreboard {
  display: grid;
  gap: 8px;
}

.method-card {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 10px;
}

.method-card small {
  grid-column: 2 / 4;
  color: var(--muted);
  font-weight: 700;
}

.method-rank {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 800;
}

.ranking-table-header,
.ranking-row {
  display: grid;
  grid-template-columns: 70px 70px minmax(160px, 1fr) 80px 110px 110px;
  gap: 10px;
  align-items: center;
}

.ranking-table-header {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px 8px;
}

.ranking-table {
  display: grid;
  gap: 6px;
}

.ranking-row {
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 9px 10px;
}

.ranking-row.exact {
  border-color: #c7dfd2;
}

.ranking-row span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.projection-row {
  grid-template-columns: 150px 70px minmax(160px, 1fr) 90px 110px minmax(220px, 1.4fr);
}

.faq-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 16px;
  padding: 18px;
}

.faq-hero > div,
.faq-card {
  background: var(--panel);
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 16px;
}

.faq-hero h1 {
  margin: 4px 0 8px;
  font-size: 34px;
  letter-spacing: 0;
}

.faq-hero p,
.faq-warning span {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.faq-warning {
  border-left: 5px solid #8a1f1f;
}

.faq-warning strong,
.faq-warning span {
  display: block;
}

.faq-warning strong {
  margin-bottom: 6px;
  color: #8a1f1f;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 18px 22px;
}

.faq-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.faq-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.faq-card dt {
  color: var(--ink);
  font-weight: 800;
}

.faq-card dd {
  margin: -6px 0 2px;
  color: var(--muted);
  line-height: 1.4;
}

.curiosity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 18px 22px;
}

.curiosity-card p {
  color: var(--muted);
  line-height: 1.48;
  margin: 0 0 12px;
}

.curiosity-card.wide {
  grid-column: 1 / -1;
}

.math-box {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #f7fafc;
  color: var(--blue-dark);
  overflow-x: auto;
}

.math-box code {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.curiosity-note {
  background: #fffafa;
}

.suggestions-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
  padding: 18px;
}

.suggestions-hero > div {
  background: var(--panel);
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 16px;
}

.suggestions-hero h1 {
  margin: 4px 0 8px;
  font-size: 34px;
  letter-spacing: 0;
}

.suggestions-hero p,
.suggestions-guidance span,
.suggestion-tips span {
  color: var(--muted);
  line-height: 1.45;
}

.suggestions-hero p {
  margin: 0;
}

.suggestions-guidance {
  border-left: 5px solid var(--blue-dark);
}

.suggestions-guidance strong,
.suggestions-guidance span {
  display: block;
}

.suggestions-guidance strong {
  margin-bottom: 6px;
  color: var(--blue-dark);
}

.suggestions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  padding: 0 18px 22px;
}

.suggestion-form,
.suggestion-tips {
  display: grid;
  gap: 12px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.suggestion-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.suggestion-form input,
.suggestion-form select,
.suggestion-form textarea {
  width: 100%;
  border: 1px solid #cfd8e2;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.suggestion-form textarea {
  resize: vertical;
}

.checkbox-label {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  align-content: center;
}

.checkbox-label input {
  width: auto;
}

.suggestion-form button {
  justify-self: start;
  border: 0;
  border-radius: 8px;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 800;
  padding: 10px 16px;
  cursor: pointer;
}

.suggestion-tips div {
  border: 1px solid #dde2e8;
  border-radius: 8px;
  background: #f9fbfc;
  padding: 12px;
}

.suggestion-tips strong,
.suggestion-tips span {
  display: block;
}

.suggestion-tips strong {
  margin-bottom: 5px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
  padding: 18px;
}

.about-hero > div,
.about-card,
.support-panel,
.patrons-hero > div,
.patron-card {
  background: var(--panel);
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 16px;
}

.about-hero h1,
.support-copy h2,
.patrons-hero h1 {
  margin: 4px 0 8px;
  font-size: 34px;
  letter-spacing: 0;
}

.about-hero p,
.about-purpose span,
.about-card p,
.about-list,
.support-copy p,
.support-grid span,
.support-placeholder span {
  color: var(--muted);
  line-height: 1.45;
}

.about-hero p,
.about-card p,
.support-copy p {
  margin: 0;
}

.about-purpose {
  border-left: 5px solid var(--blue-dark);
}

.about-purpose strong,
.about-purpose span {
  display: block;
}

.about-purpose strong {
  margin-bottom: 6px;
  color: var(--blue-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 18px 18px;
}

.about-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.about-card p + p {
  margin-top: 10px;
}

.about-list {
  margin: 0;
  padding-left: 18px;
}

.about-list li + li {
  margin-top: 8px;
}

.support-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  margin: 0 18px 22px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.support-grid div,
.support-placeholder {
  border: 1px solid #dde2e8;
  border-radius: 8px;
  padding: 12px;
  background: #f9fbfc;
}

.support-grid strong,
.support-grid span,
.support-placeholder strong,
.support-placeholder span {
  display: block;
}

.support-grid strong,
.support-placeholder strong {
  margin-bottom: 5px;
}

.support-placeholder {
  display: grid;
  align-content: center;
  min-height: 130px;
  border-style: dashed;
}

.support-yape {
  gap: 10px;
  justify-items: start;
}

.yape-qr-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 280px);
  aspect-ratio: 569 / 581;
  border-radius: 8px;
  background: #742093;
  overflow: hidden;
}

.yape-qr-shell img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #742093;
}

.yape-qr-shell img[src=""],
.yape-qr-shell img:not([src]) {
  display: none;
}

.yape-qr-shell img::selection {
  background: transparent;
}

.qr-fallback {
  position: absolute;
  inset: 14px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  color: #fff !important;
  font-weight: 800;
  text-align: center;
}

.patrons-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  padding: 18px;
  align-items: start;
}

.recordings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.recordings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
}

.recordings-shell {
  padding-bottom: 24px;
}

.recordings-player {
  min-height: 320px;
}

.recording-video {
  width: 100%;
  max-height: 520px;
  background: #0f172a;
  border-radius: 8px;
}

.recordings-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
}

.recording-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.recording-item:hover {
  border-color: #9fb3c8;
  background: #f4f7fb;
}

.recording-item.active {
  border-color: #2f6fd0;
  background: #eef5ff;
}

.recording-item strong {
  font-size: 14px;
  color: #1f2a37;
}

.recording-item small {
  color: #617080;
  font-size: 12px;
}

.patrons-hero p,
.patrons-yape span,
.patron-card p {
  color: var(--muted);
  line-height: 1.45;
}

.patrons-hero p,
.patron-card p {
  margin: 0;
}

.patrons-yape {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  position: sticky;
  top: 16px;
  align-self: start;
}

.patrons-yape .yape-qr-shell {
  width: min(100%, 310px);
}

.patron-card {
  min-height: 170px;
}

.patron-card span,
.patron-card strong {
  display: block;
}

.patrons-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.patron-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.patron-card strong {
  margin: 8px 0 10px;
  font-size: 22px;
}

.patron-empty {
  border-left: 5px solid var(--blue-dark);
}

@media (max-width: 980px) {
  .tabs {
    flex-wrap: wrap;
  }

  .connection {
    width: 100%;
    margin-left: 0;
  }

  .status-band {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .legend {
    align-self: start;
  }

  .onpe-brief {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-band {
    grid-template-columns: 1fr;
  }

  .analysis-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analysis-forecast {
    grid-template-columns: 1fr;
  }

  .insight-grid,
  .model-layout,
  .evaluation-layout,
  .dataset-layout,
  .oracle-layout {
    grid-template-columns: 1fr;
  }

  .ranking-compare-header,
  .ranking-compare-grid,
  .faq-hero,
  .faq-grid,
  .curiosity-grid,
  .suggestions-hero,
  .suggestions-layout,
  .about-hero,
  .about-grid,
  .support-panel,
  .patrons-hero,
  .patrons-grid,
  .recordings-grid {
    grid-template-columns: 1fr;
  }

  .ranking-launch-row {
    grid-template-columns: 1fr;
  }

  .model-metrics {
    grid-template-columns: 1fr;
  }

  .oracle-control,
  .oracle-row {
    grid-template-columns: 1fr;
  }

  .visit-metrics,
  .visits-grid,
  .visit-table-row,
  .suggestion-admin-meta,
  .veritas-metrics,
  .veritas-grid,
  .veritas-row,
  .veritasx-coverage,
  .veritasx-capture-grid,
  .veritasx-territory,
  .veritasx-delta-row,
  .veritasx-table-row,
  .method-card,
  .prediction-row,
  .ranking-table-header,
  .ranking-row,
  .stability-row,
  .projection-row {
    grid-template-columns: 1fr;
  }

  .method-card small {
    grid-column: auto;
  }

}

@media (max-width: 560px) {
  .onpe-brief {
    grid-template-columns: 1fr;
  }

  .analysis-summary {
    grid-template-columns: 1fr;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}
