/* RuntimeAI model efficiency leaderboard */

.rai-lb {
  font-family: var(--v-font, Inter, system-ui, sans-serif);
  color: var(--v-ink, #0f172a);
}

.rai-lb--compact {
  margin: 0.5rem 0 0;
  padding: 0 0.35rem 0.75rem;
}

.rai-lb__banner {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--v-brand-teal, #1375d9) 22%, transparent);
  background: color-mix(in srgb, var(--v-brand-teal, #1375d9) 6%, #fff);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--v-ink-muted, #475569);
}

.rai-lb__head,
.rai-lb__table-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.rai-lb__title,
.rai-lb__table-title {
  margin: 0;
  font-family: var(--v-font-display, Spectral, Georgia, serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--v-ink, #0f172a);
}

.rai-lb__table-section {
  margin-bottom: 1.25rem;
}

.rai-lb__table-section .rai-lb__table-toolbar {
  margin-bottom: 0.55rem;
}

.rai-lb__meta {
  font-size: 0.68rem;
  color: var(--v-ink-muted, #64748b);
  white-space: nowrap;
}

.rai-lb__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--lp-border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.rai-lb__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.rai-lb__table th,
.rai-lb__table td {
  padding: 0.45rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--lp-border, #e2e8f0);
  vertical-align: middle;
}

.rai-lb__table th {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v-ink-muted, #64748b);
  background: var(--lp-band, #f8fafc);
}

.rai-lb__table tr:last-child td {
  border-bottom: none;
}

.rai-lb__table tbody tr:hover {
  background: color-mix(in srgb, var(--v-brand-teal, #1375d9) 4%, #fff);
}

.rai-lb__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.68rem;
  color: #334155;
  background: #f1f5f9;
}

.rai-lb__rank--best {
  color: #fff;
  background: linear-gradient(145deg, #93c5fd, #1375d9);
  box-shadow: 0 0 0 1px rgba(12, 74, 158, 0.25);
}

.rai-lb__rank--average {
  color: #713f12;
  background: linear-gradient(145deg, #fef08a, #eab308);
  box-shadow: 0 0 0 1px rgba(161, 98, 7, 0.25);
}

.rai-lb__rank--weak {
  color: #fff;
  background: linear-gradient(145deg, #fca5a5, #dc2626);
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.25);
}

.rai-lb__rank--projected {
  color: #475569;
  background: repeating-linear-gradient(
    145deg,
    #f1f5f9,
    #f1f5f9 3px,
    #e2e8f0 3px,
    #e2e8f0 6px
  );
  box-shadow: 0 0 0 1px rgba(100, 116, 139, 0.2);
}

.rai-lb__model {
  font-weight: 500;
  color: var(--v-ink, #0f172a);
  word-break: break-word;
}

.rai-lb__model code {
  font-size: 0.7rem;
  font-weight: 500;
}

.rai-lb__metric {
  font-weight: 500;
}

.rai-lb__metric--stack {
  line-height: 1.25;
}

.rai-lb__metric-main {
  display: block;
  font-weight: 600;
}

.rai-lb__metric-sub {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__metric--n {
  font-weight: 700;
  text-align: center;
}

.rai-lb__dim {
  color: var(--v-ink-muted, #94a3b8);
}

.rai-lb__proj {
  font-style: italic;
  text-transform: lowercase;
}

.rai-lb__table--stats .rai-lb__th--n,
.rai-lb__table--stats .rai-lb__metric--n {
  text-align: center;
  min-width: 2rem;
}

.rai-lb__stats-note {
  margin-top: 0.25rem;
}

.rai-lb__footnotes {
  margin-top: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: var(--lp-band, #f8fafc);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--v-ink-muted, #475569);
}

.rai-lb__footnotes-title {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--v-ink, #0f172a);
}

.rai-lb__footnotes-list {
  margin: 0;
  padding-left: 1.15rem;
}

.rai-lb__footnotes-list li {
  margin: 0.25rem 0;
}

.rai-lb__footnotes-assump {
  margin: 0.55rem 0 0;
  padding-top: 0.45rem;
  border-top: 1px solid var(--lp-border, #e2e8f0);
  font-size: 0.68rem;
}

.rai-lb__footnotes-assump code {
  font-size: 0.65rem;
  word-break: break-word;
}

.rai-lb__cost-forecast {
  color: var(--v-brand-teal, #1375d9) !important;
  font-weight: 600;
}

.rai-lb__cost-var {
  font-style: italic;
}

body[data-theme="dark"] .rai-lb__footnotes {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

body[data-theme="dark"] .rai-lb__footnotes-title {
  color: #f1f5f9;
}

.rai-lb--panel .rai-lb__table--stats {
  font-size: 0.78rem;
}

.rai-lb__badge {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rai-lb__badge--low {
  color: #065f46;
  background: #d1fae5;
}

.rai-lb__badge--medium {
  color: #92400e;
  background: #fef3c7;
}

.rai-lb__badge--high {
  color: #7f1d1d;
  background: #fee2e2;
}

.rai-lb__eff {
  font-weight: 700;
  color: var(--v-brand-teal, #1375d9);
}

.rai-lb__baseline {
  margin-top: 0.55rem;
  font-size: 0.68rem;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__baseline strong {
  color: var(--v-ink, #0f172a);
}

.rai-lb__empty,
.rai-lb__error {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.78rem;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__loading {
  margin: 0;
  padding: 1.5rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--v-ink, #0f172a);
  background: var(--lp-band, #f8fafc);
  border: 1px solid var(--lp-border, #e2e8f0);
  border-radius: 10px;
}

.rai-lb__loading--panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 2.25rem 1.25rem;
}

.rai-lb__loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--lp-border, #e2e8f0);
  border-top-color: var(--v-brand-teal, #1375d9);
  border-radius: 50%;
  animation: rai-lb-spin 0.85s linear infinite;
}

.rai-lb__loading-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.rai-lb__loading-hint {
  margin: 0;
  max-width: 28rem;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--v-ink-muted, #64748b);
}

@keyframes rai-lb-spin {
  to {
    transform: rotate(360deg);
  }
}

.rai-lb--panel {
  max-width: 56rem;
}

/* Efficiency explainer */
.rai-lb__eff-help {
  margin: 0 0 0.85rem;
  border: 1px solid color-mix(in srgb, var(--v-brand-teal, #1375d9) 20%, var(--lp-border, #e2e8f0));
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.rai-lb__eff-help-summary {
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--v-brand-teal, #1375d9);
  list-style: none;
}

.rai-lb__eff-help-summary::-webkit-details-marker {
  display: none;
}

.rai-lb__eff-help-body {
  padding: 0 0.75rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--v-ink-muted, #475569);
}

.rai-lb__eff-help-body p {
  margin: 0.45rem 0 0;
}

.rai-lb__formula {
  margin-top: 0.55rem !important;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: var(--lp-band, #f8fafc);
  border: 1px solid var(--lp-border, #e2e8f0);
}

.rai-lb__formula code {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--v-ink, #0f172a);
}

.rai-lb__eff-help-list {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

.rai-lb__eff-help-note {
  font-size: 0.72rem;
  font-style: italic;
}

/* Visual bar charts */
.rai-lb__viz {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.rai-lb__viz-panel {
  border: 1px solid var(--lp-border, #e2e8f0);
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.rai-lb__viz-title,
.rai-lb__quad-index-title {
  margin: 0;
  font-family: var(--v-font-display, Spectral, Georgia, serif);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--v-ink, #0f172a);
  line-height: 1.25;
}

.rai-lb__viz-title--quad {
  font-weight: 600;
}

.rai-lb--table-simple .rai-lb__metric-sub,
.rai-lb--table-simple .rai-lb__expect-hint,
.rai-lb--table-simple .rai-lb__strength-label,
.rai-lb--table-simple .rai-lb__cost-tier,
.rai-lb--table-simple .rai-lb__cost-forecast {
  display: none !important;
}

.rai-lb--table-simple .rai-lb__metric--stack {
  line-height: 1.35;
}

.rai-lb__viz-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.35rem;
}

.rai-lb__viz-hwm {
  font-size: 0.65rem;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__viz-hwm strong {
  color: var(--v-ink, #0f172a);
}

.rai-lb__viz-caption {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__viz-caption code {
  font-size: 0.65rem;
}

.rai-lb__bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 22rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.rai-lb__bar-row {
  display: grid;
  grid-template-columns: minmax(9rem, 42%) 1fr minmax(5rem, auto);
  gap: 0.4rem 0.5rem;
  align-items: center;
}

.rai-lb__bar-label {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
  font-size: 0.62rem;
}

.rai-lb__bar-label code {
  font-size: 0.62rem;
}

.rai-lb__bar-track {
  position: relative;
  height: 0.55rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: visible;
}

.rai-lb__bar-fill {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #93c5fd, var(--v-brand-teal, #1375d9));
  min-width: 2px;
  transition: width 0.35s ease;
}

.rai-lb__bar-marker {
  position: absolute;
  top: -0.2rem;
  bottom: -0.2rem;
  width: 2px;
  margin-left: -1px;
  z-index: 2;
  pointer-events: none;
  border-radius: 1px;
}

.rai-lb__bar-marker--baseline {
  background: #dc2626;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.25);
}

.rai-lb__bar-marker--top-decile {
  background: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3);
}

.rai-lb__viz-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 0.45rem;
  font-size: 0.62rem;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__marker-key {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rai-lb__marker-key::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 2px;
  border-radius: 1px;
}

.rai-lb__marker-key--baseline::before {
  background: #dc2626;
}

.rai-lb__marker-key--top::before {
  background: #f59e0b;
}

.rai-lb__perf-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin: 0.35rem 0 0.85rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: var(--lp-band, #f8fafc);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--v-ink, #334155);
}

.rai-lb__perf-legend--bar {
  margin-bottom: 0.75rem;
}

.rai-lb__table-section .rai-lb__perf-legend {
  margin: 0 0 0.55rem;
}

.rai-lb__table-section .rai-lb__perf-legend--bar {
  margin-bottom: 0.55rem;
}

.rai-lb__perf-legend-title {
  font-weight: 600;
  color: var(--v-ink, #0f172a);
  margin-right: 0.1rem;
}

.rai-lb__perf-key {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.rai-lb__perf-key::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.rai-lb__perf-key--best::before {
  background: linear-gradient(145deg, #93c5fd, #1375d9);
}

.rai-lb__perf-key--average::before {
  background: linear-gradient(145deg, #fef08a, #eab308);
}

.rai-lb__perf-key--weak::before {
  background: linear-gradient(145deg, #fca5a5, #dc2626);
}

.rai-lb__perf-legend-note {
  flex: 1 1 100%;
  color: var(--v-ink-muted, #64748b);
  font-size: 0.64rem;
  line-height: 1.35;
}

.rai-lb__metric-main--heat {
  display: inline-block;
  font-weight: 650;
  line-height: 1.25;
  padding: 0.14rem 0.45rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.rai-lb__metric-main--heat-best {
  color: #1375d9;
  background: color-mix(in srgb, #1375d9 11%, transparent);
  border-color: color-mix(in srgb, #1375d9 24%, transparent);
}

.rai-lb__metric-main--heat-average {
  color: #a16207;
  background: color-mix(in srgb, #eab308 12%, transparent);
  border-color: color-mix(in srgb, #eab308 26%, transparent);
}

.rai-lb__metric-main--heat-weak {
  color: #dc2626;
  background: color-mix(in srgb, #dc2626 10%, transparent);
  border-color: color-mix(in srgb, #dc2626 22%, transparent);
}

body[data-theme="dark"] .rai-lb__metric-main--heat-best,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__metric-main--heat-best {
  color: #60a5fa;
  background: color-mix(in srgb, #60a5fa 14%, transparent);
  border-color: color-mix(in srgb, #60a5fa 28%, transparent);
}

body[data-theme="dark"] .rai-lb__metric-main--heat-average,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__metric-main--heat-average {
  color: #fbbf24;
  background: color-mix(in srgb, #fbbf24 12%, transparent);
  border-color: color-mix(in srgb, #fbbf24 26%, transparent);
}

body[data-theme="dark"] .rai-lb__metric-main--heat-weak,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__metric-main--heat-weak {
  color: #f87171;
  background: color-mix(in srgb, #f87171 12%, transparent);
  border-color: color-mix(in srgb, #f87171 26%, transparent);
}

.rai-lb--table-simple .rai-lb__strength-row,
.rai-lb--table-simple .rai-lb__strength {
  display: none !important;
}

.rai-lb__perf-key--projected::before {
  background: repeating-linear-gradient(45deg, #e2e8f0, #e2e8f0 2px, #cbd5e1 2px, #cbd5e1 4px);
}

.rai-lb__perf-key--note {
  flex: 1 1 100%;
  font-size: 0.62rem;
  font-style: italic;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__perf-key--note::before {
  display: none;
}

.rai-lb__assessment {
  margin: 0 0 1rem;
  padding: 1rem 1.15rem 1.05rem;
  border-radius: 10px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: var(--lp-band, #f8fafc);
}

.rai-lb__assessment-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v-brand-teal, #1375d9);
}

.rai-lb__assessment-exec {
  margin: 0.15rem 0 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--v-brand-teal, #1375d9) 18%, var(--lp-border, #e2e8f0));
  background: color-mix(in srgb, var(--v-brand-teal, #1375d9) 5%, var(--v-white, #fff));
}

.rai-lb__assessment-exec-title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__assessment-exec-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  line-height: 1.48;
  color: var(--v-ink, #0f172a);
}

.rai-lb__assessment-exec-list li {
  margin: 0 0 0.35rem;
}

.rai-lb__assessment-exec-list li:last-child {
  margin-bottom: 0;
}

.rai-lb__assessment-details {
  margin-top: 0.15rem;
}

.rai-lb__assessment-details-summary {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--v-brand-teal, #1375d9);
  cursor: pointer;
  list-style: none;
}

.rai-lb__assessment-details-summary::-webkit-details-marker {
  display: none;
}

.rai-lb__assessment-details-body {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--lp-border, #e2e8f0);
}

.rai-lb__assessment-headline {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--v-ink, #0f172a);
}

.rai-lb__assessment-lede {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--v-ink-muted, #475569);
}

.rai-lb__assessment-list {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--v-ink, #334155);
}

.rai-lb__assessment-list li {
  margin: 0 0 0.35rem;
}

.rai-lb__assessment-list li:last-child {
  margin-bottom: 0;
}

.rai-lb__assessment-subhead {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__assessment-list--obs li {
  color: var(--v-ink-muted, #475569);
}

.rai-lb--public-page .rai-lb__assessment {
  margin-top: 0.5rem;
}

body[data-theme="dark"] .rai-lb__assessment,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__assessment {
  background: #1e293b;
  border-color: #334155;
}

body[data-theme="dark"] .rai-lb__assessment-kicker,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__assessment-kicker {
  color: #93c5fd;
}

body[data-theme="dark"] .rai-lb__assessment-exec,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__assessment-exec {
  background: #0f172a;
  border-color: #475569;
}

body[data-theme="dark"] .rai-lb__assessment-exec-title,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__assessment-exec-title {
  color: #94a3b8;
}

body[data-theme="dark"] .rai-lb__assessment-exec-list,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__assessment-exec-list {
  color: #e2e8f0;
}

body[data-theme="dark"] .rai-lb__assessment-details-summary,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__assessment-details-summary {
  color: #93c5fd;
}

body[data-theme="dark"] .rai-lb__assessment-details-body,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__assessment-details-body {
  border-top-color: #334155;
}

body[data-theme="dark"] .rai-lb__assessment-headline,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__assessment-headline {
  color: #f1f5f9;
}

body[data-theme="dark"] .rai-lb__assessment-lede,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__assessment-lede {
  color: #94a3b8;
}

body[data-theme="dark"] .rai-lb__assessment-list,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__assessment-list {
  color: #cbd5e1;
}

body[data-theme="dark"] .rai-lb__assessment-subhead,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__assessment-subhead {
  color: #94a3b8;
}

body[data-theme="dark"] .rai-lb__assessment-list--obs li,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__assessment-list--obs li {
  color: #94a3b8;
}

.rai-lb__bar-fill--perf-best {
  background: linear-gradient(90deg, #93c5fd, #1375d9);
}

.rai-lb__bar-fill--perf-average {
  background: linear-gradient(90deg, #fef08a, #eab308);
}

.rai-lb__bar-fill--perf-weak {
  background: linear-gradient(90deg, #fca5a5, #dc2626);
}

.rai-lb__bar-fill--perf-projected {
  background: repeating-linear-gradient(
    90deg,
    #e2e8f0,
    #e2e8f0 4px,
    #cbd5e1 4px,
    #cbd5e1 8px
  );
  opacity: 0.85;
}

.rai-lb__quad-index-item--perf-best .rai-lb__quad-index-rank {
  background: linear-gradient(145deg, #93c5fd, #1375d9);
  color: #fff;
  border-radius: 4px;
  padding: 0 0.2rem;
}

.rai-lb__quad-index-item--perf-average .rai-lb__quad-index-rank {
  background: linear-gradient(145deg, #fef08a, #eab308);
  color: #713f12;
  border-radius: 4px;
  padding: 0 0.2rem;
}

.rai-lb__quad-index-item--perf-weak .rai-lb__quad-index-rank {
  background: linear-gradient(145deg, #fca5a5, #dc2626);
  color: #fff;
  border-radius: 4px;
  padding: 0 0.2rem;
}

.rai-lb__quad-index-item--perf-projected .rai-lb__quad-index-rank {
  background: #94a3b8;
  color: #fff;
}

.rai-lb__cost-forecast--scale {
  font-weight: 600;
  color: var(--v-ink, #334155);
}

.rai-lb__scale-table {
  width: 100%;
  margin: 0.5rem 0 0.65rem;
  border-collapse: collapse;
  font-size: 0.68rem;
}

.rai-lb__scale-table th,
.rai-lb__scale-table td {
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--lp-border, #e2e8f0);
  text-align: left;
}

.rai-lb__scale-table th {
  background: var(--lp-band, #f8fafc);
  font-weight: 600;
}

.rai-lb__medal-key {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rai-lb__medal-key::before {
  content: "";
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.rai-lb__medal-key--gold::before {
  background: linear-gradient(145deg, #fde68a, #f59e0b);
}

.rai-lb__medal-key--silver::before {
  background: linear-gradient(145deg, #f1f5f9, #94a3b8);
}

.rai-lb__medal-key--bronze::before {
  background: linear-gradient(145deg, #fed7aa, #ea580c);
}

.rai-lb__medal-key--field::before {
  background: #64748b;
}

.rai-lb__medal-key--projected::before {
  background: repeating-linear-gradient(45deg, #e2e8f0, #e2e8f0 2px, #cbd5e1 2px, #cbd5e1 4px);
}

.rai-lb__sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.rai-lb__sort-btn:hover {
  color: var(--v-ink, #0f172a);
}

.rai-lb__sort-btn--active {
  color: var(--v-brand-teal, #1375d9);
}

.rai-lb__export-section {
  margin: 0 0 0.85rem;
}

.rai-lb__table-viewbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0.65rem 0 0.35rem;
}

.rai-lb__table-viewbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 0.75rem;
  margin-left: auto;
}

.rai-lb__export-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.55rem 0.85rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--v-border, #e2e8f0);
  border-radius: 12px;
  background: var(--v-surface, #fff);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.rai-lb__export-label {
  flex: 1 1 100%;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--v-ink-muted, #64748b);
}

@media (min-width: 640px) {
  .rai-lb__export-bar {
    align-items: center;
  }

  .rai-lb__export-label {
    flex: 0 0 auto;
    margin-right: 0.25rem;
  }
}

.rai-lb__export-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  flex: 1 1 auto;
}

.rai-lb__export-divider {
  flex: 0 0 1px;
  align-self: stretch;
  min-height: 1.5rem;
  margin: 0 0.15rem;
  background: var(--v-border, #e2e8f0);
}

.rai-lb__export-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.34rem 0.8rem;
  border: 1px solid var(--v-brand-teal, #1375d9);
  border-radius: 8px;
  background: var(--v-brand-teal, #1375d9);
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.rai-lb__export-btn:hover {
  filter: brightness(1.05);
  color: #fff;
}

.rai-lb__export-btn--ghost {
  background: var(--v-surface, #fff);
  color: var(--v-brand-teal, #1375d9);
}

.rai-lb__export-btn--send {
  min-width: 4.25rem;
}

.rai-lb__export-email {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.rai-lb__export-email-field {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.rai-lb__export-email-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--v-ink-muted, #64748b);
  white-space: nowrap;
}

.rai-lb__export-email-field input {
  width: 100%;
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--v-border, #e2e8f0);
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
  background: var(--v-surface, #fff);
  color: var(--v-ink, #0f172a);
}

@media (min-width: 640px) {
  .rai-lb__export-email-field input {
    width: 12rem;
  }
}

@media (max-width: 639px) {
  .rai-lb__export-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .rai-lb__export-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .rai-lb__export-divider {
    display: none;
  }

  .rai-lb__export-email {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .rai-lb__export-email-field {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .rai-lb__export-btn,
  .rai-lb__export-btn--send {
    width: 100%;
    justify-content: center;
  }

  .rai-lb__table-viewbar {
    flex-direction: column;
    align-items: stretch;
  }

  .rai-lb__view-toggle {
    align-self: flex-start;
  }
}

.rai-lb__export-status {
  flex: 1 1 100%;
  font-size: 0.72rem;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__export-status--ok {
  color: #15803d;
}

.rai-lb__export-status--err {
  color: #b91c1c;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rai-lb__ref-badge {
  display: inline-block;
  margin-left: 0.2rem;
  padding: 0.06rem 0.38rem;
  border-radius: 4px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
  vertical-align: middle;
  background: #f8fafc;
  border: 1px solid #64748b;
  color: #475569;
  cursor: help;
}

.rai-lb__ref-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #334155;
}

.rai-lb__ref-strip-label {
  font-weight: 600;
  color: #475569;
}

.rai-lb__ref-strip-note {
  flex: 1 1 12rem;
  color: #64748b;
  font-size: 0.74rem;
}

.rai-lb__ref-strip--unverified {
  border-color: #fbbf24;
  background: #fffbeb;
}

.rai-lb__ref-strip--unverified .rai-lb__ref-strip-label {
  color: #92400e;
}

.rai-lb__rel--good {
  color: #15803d;
}

.rai-lb__rel--mid {
  color: #a16207;
}

.rai-lb__rel--low {
  color: #b91c1c;
}

.rai-lb__gr {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.35rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
}

.rai-lb__model .rai-lb__gr {
  margin-left: 0.25rem;
}

.rai-lb__gr--held {
  background: color-mix(in srgb, #15803d 12%, transparent);
  color: #15803d;
}

.rai-lb__gr--partial-hold {
  background: color-mix(in srgb, #0369a1 10%, transparent);
  color: #0369a1;
}

.rai-lb__gr--early-erosion {
  background: color-mix(in srgb, #a16207 12%, transparent);
  color: #92400e;
}

.rai-lb__gr--repetition-lock {
  background: color-mix(in srgb, #b91c1c 12%, transparent);
  color: #b91c1c;
}

.rai-lb__gr--weak {
  background: color-mix(in srgb, #7c2d12 10%, transparent);
  color: #7c2d12;
}

.rai-lb__gr--unknown {
  color: var(--v-muted, #64748b);
}

.rai-lb__gr-mark {
  font-weight: 800;
}

.rai-lb__gr-callout {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.45;
  border: 1px solid var(--v-border, #e2e8f0);
}

.rai-lb__gr-callout--warn {
  background: color-mix(in srgb, #b91c1c 6%, #fff);
  border-color: color-mix(in srgb, #b91c1c 22%, #e2e8f0);
}

.rai-lb__gr-callout--ok {
  background: color-mix(in srgb, #15803d 6%, #fff);
  border-color: color-mix(in srgb, #15803d 18%, #e2e8f0);
}

.rai-lb__gr-callout a {
  font-weight: 650;
}

.rai-lb__quad-index-name .rai-lb__ref-badge {
  margin-left: 0.15rem;
  vertical-align: text-top;
}

.rai-lb__quad-legend .rai-lb__ref-badge {
  font-size: 0.58rem;
  padding: 0.04rem 0.32rem;
  vertical-align: baseline;
}

.rai-lb__table-toolbar-hint {
  margin: 0;
  font-size: 0.72rem;
}

.rai-lb__view-toggle {
  display: inline-flex;
  border: 1px solid var(--v-border, #e2e8f0);
  border-radius: 999px;
  overflow: hidden;
  background: var(--v-surface, #fff);
}

.rai-lb__view-btn {
  margin: 0;
  padding: 0.28rem 0.75rem;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--v-ink-muted, #64748b);
  cursor: pointer;
}

.rai-lb__view-btn:hover {
  color: var(--v-ink, #0f172a);
}

.rai-lb__view-btn--active {
  background: var(--v-brand-teal, #1375d9);
  color: #fff;
}

.rai-lb__th--hint .rai-lb__sort-btn {
  cursor: help;
  border-bottom: 1px dotted var(--v-ink-muted, #94a3b8);
}

.rai-lb--table-simple .rai-lb__table td {
  vertical-align: middle;
}

.rai-lb--table-simple .rai-lb__table--stats .rai-lb__metric--stack {
  line-height: 1.35;
}

.rai-lb--table-simple .rai-lb__metric-main[data-lb-tip],
.rai-lb--table-simple .rai-lb__metric-sub[data-lb-tip],
.rai-lb__th--hint .rai-lb__sort-btn[data-lb-tip] {
  cursor: help;
  border-bottom: 1px dotted rgba(100, 116, 139, 0.45);
}

.rai-lb__cell-tip {
  position: fixed;
  z-index: 10050;
  max-width: min(22rem, calc(100vw - 24px));
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--v-border, #cbd5e1);
  background: var(--v-surface, #fff);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--v-ink, #0f172a);
  pointer-events: none;
}

.rai-lb__cell-tip.hidden {
  display: none;
}

.rai-lb__metric-sub--scale {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.62rem;
  color: var(--v-ink-muted, #64748b);
}

body[data-theme="dark"] .rai-lb__cell-tip {
  background: #1e293b;
  border-color: #475569;
  color: #f1f5f9;
}

.rai-lb__viz-panel--drivers {
  grid-column: 1 / -1;
}

.rai-lb__driver-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: 0 0 0.45rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__driver-key {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rai-lb__driver-key::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
}

.rai-lb__driver-key--quality::before {
  background: #1375d9;
}

.rai-lb__driver-key--speed::before {
  background: #0d9488;
}

.rai-lb__driver-key--cost::before {
  background: #d97706;
}

.rai-lb__driver-key--factor::before {
  background: #94a3b8;
  border-radius: 999px;
}

.rai-lb__driver-key--outcome::before {
  background: linear-gradient(90deg, #1375d9 33%, #eab308 33%, #eab308 66%, #dc2626 66%);
}

.rai-lb__driver-grid {
  display: grid;
  grid-template-columns: minmax(7.5rem, 1.05fr) repeat(3, minmax(4.5rem, 1fr)) 2.25rem minmax(4.75rem, 0.9fr);
  gap: 0.3rem 0.45rem;
  align-items: center;
}

.rai-lb__driver-head {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--v-ink-muted, #64748b);
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--lp-border, #e2e8f0);
}

.rai-lb__driver-head--model {
  text-align: left;
}

.rai-lb__driver-row {
  display: contents;
}

.rai-lb__driver-model {
  min-width: 0;
  font-size: 0.62rem;
}

.rai-lb__driver-model code {
  display: block;
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
}

.rai-lb__driver-cell {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.rai-lb__driver-bar {
  width: 100%;
}

.rai-lb__driver-track {
  position: relative;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--lp-band, #f1f5f9);
  overflow: hidden;
}

.rai-lb__driver-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
}

.rai-lb__driver-fill--quality {
  background: #1375d9;
}

.rai-lb__driver-fill--speed {
  background: #0d9488;
}

.rai-lb__driver-fill--cost {
  background: #d97706;
}

.rai-lb__driver-val {
  font-size: 0.58rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--v-ink-muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rai-lb__driver-val--cost {
  color: #b45309;
}

.rai-lb__driver-val--eff {
  text-align: right;
}

.rai-lb__driver-factor {
  font-size: 0.62rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--v-ink-muted, #64748b);
  padding: 0.15rem 0;
  border-radius: 4px;
  background: var(--lp-band, #f8fafc);
}

.rai-lb__driver-outcome-track {
  height: 0.45rem;
}

.rai-lb__driver-cell--outcome {
  align-items: stretch;
}

.rai-lb__viz-panel--quad {
  margin-top: 0.75rem;
  grid-column: 1 / -1;
}

.rai-lb__viz-note {
  margin-top: 0.35rem;
}

.rai-lb__quad-wrap {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
}

.rai-lb__quad-plot {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.rai-lb__quad-chart-shell {
  position: relative;
  width: 100%;
}

.rai-lb__quad-guide {
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--lp-border, #e2e8f0);
}

.rai-lb__quad-zones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.65rem;
  margin-bottom: 0.45rem;
  font-size: 0.66rem;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__quad-zone--tr {
  color: var(--v-brand-teal, #1375d9);
  font-weight: 600;
}

.rai-lb__quad-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__quad-legend li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.rai-lb__quad-legend-swatch {
  flex: 0 0 0.75rem;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.12rem;
  border-radius: 2px;
  border: 1px solid #cbd5e1;
}

.rai-lb__quad-legend-swatch--cross {
  background: linear-gradient(#94a3b8 0 0) center/1px 100% no-repeat,
    linear-gradient(90deg, #94a3b8 0 0) center/100% 1px no-repeat;
  background-color: #f8fafc;
}

.rai-lb__quad-legend-swatch--best {
  background: #1375d9;
  border-color: #0c4a9e;
}

.rai-lb__quad-legend-swatch--base {
  border-radius: 50%;
  background: #fff;
  border: 2px solid #64748b;
}

.rai-lb__viz .rai-lb__pending-section {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  margin-bottom: 0;
}

body[data-theme="dark"] .rai-lb__quad-guide {
  border-top-color: #334155;
}

body[data-theme="dark"] .rai-lb__quad-legend-swatch--cross {
  background-color: #1e293b;
  border-color: #475569;
}

.rai-lb__quad-corners {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.rai-lb__quad-corner {
  position: absolute;
  display: block;
  max-width: 46%;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: rgba(248, 250, 252, 0.9);
  font-size: 0.58rem;
  line-height: 1.25;
  color: #64748b;
  box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.8);
}

.rai-lb__quad-corner--tl {
  top: 7%;
  left: 7.5%;
  text-align: left;
}

.rai-lb__quad-corner--tr {
  top: 7%;
  right: 3.5%;
  text-align: right;
  color: #047857;
  font-weight: 600;
  background: rgba(236, 253, 245, 0.92);
  box-shadow: 0 0 0 1px rgba(167, 243, 208, 0.9);
}

.rai-lb__quad-corner--bl {
  bottom: 14%;
  left: 7.5%;
  text-align: left;
}

.rai-lb__quad-corner--br {
  bottom: 14%;
  right: 3.5%;
  text-align: right;
}

.rai-lb__quad-canvas {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  border: 1px solid var(--lp-border, #e2e8f0);
  border-radius: 8px;
  background: #fff;
}

.rai-lb__quad-tooltip {
  position: absolute;
  z-index: 6;
  max-width: 14rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 0.62rem;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.rai-lb__quad-tooltip.hidden {
  display: none;
}

.rai-lb__quad-index {
  flex: 0 0 14.5rem;
  width: 14.5rem;
  min-width: 12rem;
  max-width: min(22rem, 40vw);
  border: 1px solid var(--lp-border, #e2e8f0);
  border-radius: 8px;
  background: #fff;
  padding: 0.45rem 0.4rem;
  max-height: min(22rem, 50vh);
  overflow-y: auto;
  position: sticky;
  top: 0.35rem;
  align-self: flex-start;
}

.rai-lb__quad-index-title {
  margin: 0 0 0.4rem;
  padding: 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--v-ink, #0f172a);
}

.rai-lb__quad-index-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rai-lb__quad-index-item {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  grid-template-areas:
    "rank name"
    "rank meta";
  column-gap: 0.4rem;
  row-gap: 0.1rem;
  padding: 0.32rem 0.28rem;
  border-radius: 6px;
  cursor: default;
  font-size: 0.62rem;
}

.rai-lb__quad-index-item:hover,
.rai-lb__quad-index-item--active {
  background: color-mix(in srgb, var(--v-brand-teal, #1375d9) 10%, #fff);
}

.rai-lb__quad-index-item--base {
  border-left: 2px solid #64748b;
  padding-left: 0.38rem;
}

.rai-lb__quad-index-item--base .rai-lb__quad-index-name code {
  color: inherit;
  font-weight: 600;
}

.rai-lb__quad-index-rank {
  grid-area: rank;
  align-self: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--v-ink-muted, #64748b);
  text-align: center;
}

.rai-lb__quad-index-name {
  grid-area: name;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
}

.rai-lb__quad-index-name code {
  font-size: 0.6rem;
}

.rai-lb__quad-index-meta {
  grid-area: meta;
  color: var(--v-ink-muted, #64748b);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

@media (max-width: 480px) {
  .rai-lb__quad-wrap {
    flex-direction: column;
  }

  .rai-lb__quad-index {
    width: 100%;
    flex: none;
    max-height: 14rem;
    position: static;
  }
}

.rai-lb__quad-legend--top {
  color: #059669;
  font-weight: 600;
}

.rai-lb__quad-legend--base {
  color: #dc2626;
  font-weight: 600;
}

.rai-lb__starter-hint {
  margin: 0 0 0.65rem;
}

.scoreboard-starter-status {
  margin: 0.35rem 0 0;
  max-width: 42rem;
}

.scoreboard-starter-status.is-ok {
  color: #047857;
}

.scoreboard-starter-status.is-error {
  color: #b91c1c;
}

.rai-lb__bar-fill--leader {
  background: linear-gradient(90deg, #fde68a, #f59e0b);
}

.rai-lb__bar-fill--tier-elite {
  background: linear-gradient(90deg, #6ee7b7, #059669);
}

.rai-lb__bar-fill--tier-strong {
  background: linear-gradient(90deg, #93c5fd, #1375d9);
}

.rai-lb__bar-fill--tier-moderate {
  background: linear-gradient(90deg, #c7d2fe, #6366f1);
}

.rai-lb__bar-fill--tier-weak {
  background: linear-gradient(90deg, #fcd34d, #d97706);
}

.rai-lb__bar-fill--tier-poor {
  background: linear-gradient(90deg, #e2e8f0, #94a3b8);
}

.rai-lb__bar-fill--tier-projected {
  background: repeating-linear-gradient(
    90deg,
    #e2e8f0,
    #e2e8f0 4px,
    #cbd5e1 4px,
    #cbd5e1 8px
  );
  opacity: 0.85;
}

.rai-lb__tier-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin: 0 0 0.55rem;
  font-size: 0.62rem;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__tier-legend-note {
  flex: 1 1 100%;
  font-weight: 600;
  color: var(--v-ink, #334155);
  margin-bottom: 0.15rem;
}

.rai-lb__tier-key {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.rai-lb__tier-key::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
}

.rai-lb__tier-key--elite::before {
  background: #059669;
}

.rai-lb__tier-key--strong::before {
  background: #1375d9;
}

.rai-lb__tier-key--moderate::before {
  background: #6366f1;
}

.rai-lb__tier-key--weak::before {
  background: #d97706;
}

.rai-lb__tier-key--poor::before {
  background: #94a3b8;
}

.rai-lb__tier-key--projected::before {
  background: repeating-linear-gradient(45deg, #e2e8f0, #e2e8f0 2px, #cbd5e1 2px, #cbd5e1 4px);
}

.rai-lb__viz-head-actions,
.rai-lb__quad-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.rai-lb__viz-enlarge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--v-brand-teal, #1375d9);
  background: #fff;
  color: var(--v-brand-teal, #1375d9);
  cursor: pointer;
}

.rai-lb__viz-enlarge:hover {
  background: color-mix(in srgb, var(--v-brand-teal, #1375d9) 8%, #fff);
}

.rai-lb__learn-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin: 0 0 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--lp-border, #e2e8f0);
}

.rai-lb__learn-jump {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--v-brand-teal, #1375d9);
  text-decoration: none;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--v-brand-teal, #1375d9) 8%, #fff);
}

.rai-lb__learn-jump:hover {
  background: color-mix(in srgb, var(--v-brand-teal, #1375d9) 14%, #fff);
  text-decoration: underline;
}

.rai-lb__table-foot {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__learn-foot {
  margin-top: 1.5rem;
}

.rai-lb__learn-foot-details {
  border-top: 2px solid var(--lp-border, #e2e8f0);
  padding-top: 0.65rem;
}

.rai-lb__learn-foot-details > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.rai-lb__learn-foot-details > summary::-webkit-details-marker {
  display: none;
}

.rai-lb__learn-foot-details > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 0.75rem;
  color: var(--v-ink-muted, #64748b);
  transition: transform 0.15s ease;
}

.rai-lb__learn-foot-details[open] > summary::before {
  transform: rotate(90deg);
}

.rai-lb__learn-foot-body {
  padding-top: 0.85rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--v-ink-muted, #475569);
}

.rai-lb__learn-foot-title {
  margin: 0;
  display: inline;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--v-ink, #0f172a);
}

.rai-lb__learn-prose {
  margin: 0 0 0.65rem;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.rai-lb__learn-note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__learn-formula {
  margin: 0 0 0.65rem;
}

.rai-lb__learn-formula code,
.rai-lb__learn-dl code {
  font-size: 0.78rem;
}

.rai-lb__learn-callout {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: var(--lp-band, #f8fafc);
  font-size: inherit;
  line-height: inherit;
}

.rai-lb__learn-callout--example {
  margin-top: 0.75rem;
}

.rai-lb__learn-dl {
  margin: 0 0 0.75rem;
  display: grid;
  gap: 0.35rem 0.75rem;
  grid-template-columns: minmax(5.5rem, 7.5rem) 1fr;
}

.rai-lb__learn-dl dt {
  margin: 0;
  font-weight: 600;
  color: var(--v-ink, #0f172a);
}

.rai-lb__learn-dl dd {
  margin: 0;
}

.rai-lb__learn-list {
  margin: 0 0 0.65rem;
  padding-left: 1.15rem;
}

.rai-lb__learn-list li {
  margin-bottom: 0.25rem;
}

.rai-lb__learn-block-summary {
  cursor: pointer;
  padding: 0.65rem 0.85rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--v-ink, #0f172a);
  list-style: none;
}

.rai-lb__baseline-badge--unverified {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
}

.rai-lb__learn-foot-lede {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: var(--v-ink-muted, #64748b);
  max-width: 42rem;
}

.rai-lb--public-page .rai-lb__perf-legend {
  margin-bottom: 0.55rem;
}

.rai-lb__learn-section {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: #fff;
}

.rai-lb__learn-section-title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.rai-lb__learn-section-lede {
  margin: 0 0 0.75rem;
  font-size: 0.74rem;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__learn-block {
  margin: 0 0 0.55rem;
  border: 1px solid var(--lp-border, #e2e8f0);
  border-radius: 10px;
  background: var(--lp-band, #f8fafc);
  overflow: hidden;
}

.rai-lb__learn-block-summary::-webkit-details-marker {
  display: none;
}

.rai-lb__learn-block-body,
.rai-lb__learn-block .rai-lb__baseline-card-body,
.rai-lb__learn-block .rai-lb__eff-help-body {
  padding: 0 0.85rem 0.85rem;
}

.rai-lb__learn-block--admin {
  opacity: 0.92;
}

.rai-lb__reading-guide {
  padding: 0 0.85rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--v-ink-muted, #475569);
}

.rai-lb__reading-guide > p {
  margin: 0 0 0.65rem;
}

.rai-lb__reading-dl {
  margin: 0 0 0.75rem;
  display: grid;
  gap: 0.35rem 0.75rem;
  grid-template-columns: minmax(5.5rem, 7rem) 1fr;
}

.rai-lb__reading-dl dt {
  margin: 0;
  font-weight: 700;
  color: var(--v-ink, #0f172a);
}

.rai-lb__reading-dl dd {
  margin: 0;
}

.rai-lb__reading-example {
  margin: 0.75rem 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: var(--lp-band, #f8fafc);
}

.rai-lb__reading-example p {
  margin: 0 0 0.5rem;
}

.rai-lb__reading-example p:last-child {
  margin-bottom: 0;
}

.rai-lb__reading-trial {
  margin: 0.65rem 0 0 !important;
  font-size: 0.72rem;
  font-style: italic;
}

.rai-lb__col-hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.58rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__th--latency .rai-lb__col-hint {
  max-width: 11rem;
}

.rai-lb__metric-sub--range {
  color: var(--v-ink-muted, #64748b);
  font-style: italic;
}

.rai-lb__closure--good {
  color: #1375d9;
}

.rai-lb__closure--mid {
  color: #b45309;
}

.rai-lb__closure--weak {
  color: #dc2626;
}

.rai-lb__expect-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.58rem;
  font-weight: 500;
  line-height: 1.4;
  color: #b45309;
}

.rai-lb__metric--latency {
  min-width: 9.5rem;
  max-width: 14rem;
}

.rai-lb__pdf-feature {
  margin-bottom: 0.85rem;
  border: 1px solid var(--lp-border, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.rai-lb__pdf-feature-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.74rem;
  background: var(--lp-band, #f8fafc);
  border-bottom: 1px solid var(--lp-border, #e2e8f0);
}

.rai-lb__pdf-open {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
}

.rai-lb__pdf-frame {
  display: block;
  width: 100%;
  height: min(520px, 70vh);
  border: none;
  background: #f1f5f9;
}

.rai-lb__pdf-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rai-lb__pdf-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding: 0.45rem 0;
  border-top: 1px solid var(--lp-border, #e2e8f0);
  font-size: 0.72rem;
}

.rai-lb__pdf-item:first-child {
  border-top: none;
}

.rai-lb__pdf-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  justify-content: flex-end;
}

.rai-lb__pdf-item-actions a,
.rai-lb__pdf-item-actions button {
  font-size: 0.68rem;
}

.rai-lb__viz-note {
  margin-top: 0.45rem;
  font-size: 0.68rem;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__hero {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--v-brand-teal, #1375d9) 28%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--v-brand-teal, #1375d9) 10%, #fff) 0%,
    #fff 55%,
    color-mix(in srgb, #059669 6%, #fff) 100%
  );
}

.rai-lb__hero-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v-brand-teal, #1375d9);
}

.rai-lb__hero-headline {
  margin: 0;
  font-family: var(--v-font-display, Spectral, Georgia, serif);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--v-ink, #0f172a);
}

.rai-lb__hero-stat {
  color: #1375d9;
  font-weight: 700;
}

.rai-lb__hero-sub {
  margin: 0.35rem 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--v-ink-muted, #475569);
}

.rai-lb__admin-hint {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
}

.rai-lb__admin-hint summary {
  cursor: pointer;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__baseline-card {
  margin: 0 0 0.85rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, #dc2626 22%, var(--lp-border, #e2e8f0));
  background: color-mix(in srgb, #dc2626 4%, #fff);
}

.rai-lb__baseline-card-summary {
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--v-ink, #0f172a);
  list-style: none;
}

.rai-lb__baseline-card-summary::-webkit-details-marker {
  display: none;
}

.rai-lb__baseline-card-body {
  padding: 0 0.75rem 0.75rem;
}

.rai-lb__baseline-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rai-lb__baseline-badge--measured {
  color: #065f46;
  background: #d1fae5;
}

.rai-lb__baseline-badge--projected {
  color: #92400e;
  background: #fef3c7;
}

.rai-lb__baseline-badge--partial {
  color: #1e40af;
  background: #dbeafe;
}

.rai-lb__baseline-alert {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #78350f;
}

.rai-lb__live-refresh {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--v-brand-teal, #1375d9) 28%, #cbd5e1);
  background: color-mix(in srgb, var(--v-brand-teal, #1375d9) 6%, #f8fafc);
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--v-ink-muted, #475569);
}

.rai-lb__live-refresh-dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.28rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--v-brand-teal, #1375d9);
  animation: rai-lb-live-pulse 1.4s ease-in-out infinite;
}

@keyframes rai-lb-live-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.rai-lb--refreshing {
  opacity: 0.92;
  transition: opacity 0.15s ease;
}

.rai-lb__baseline-cred {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: var(--v-ink-muted, #475569);
}
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--v-ink-muted, #475569);
}

.rai-lb__baseline-dl {
  display: grid;
  grid-template-columns: minmax(6rem, 28%) 1fr;
  gap: 0.35rem 0.65rem;
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
}

.rai-lb__baseline-dl dt {
  margin: 0;
  font-weight: 600;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__baseline-dl dd {
  margin: 0;
  color: var(--v-ink, #0f172a);
}

.rai-lb__baseline-uses {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--v-ink-muted, #475569);
}

.rai-lb__baseline-uses li {
  margin: 0.2rem 0;
}

.rai-lb__baseline-card-action {
  margin: 0.55rem 0 0;
  padding-top: 0.45rem;
  border-top: 1px solid var(--lp-border, #e2e8f0);
  font-size: 0.72rem;
  color: var(--v-ink-muted, #475569);
}

.rai-lb__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.rai-lb__modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--lp-border, #e2e8f0);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  padding: 0.85rem 1rem 1rem;
}

.rai-lb__modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.rai-lb__modal-head h3 {
  margin: 0;
  font-size: 1rem;
}

.rai-lb__modal-close {
  border: none;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__modal-panel--quad {
  width: min(1100px, 98vw);
}

.rai-lb__modal-panel--chart {
  width: min(920px, 96vw);
}

.rai-lb__modal-quad--lg .rai-lb__quad-wrap {
  min-height: 36rem;
}

.rai-lb__modal-quad--lg .rai-lb__quad-chart-shell {
  min-height: 480px;
  width: 100%;
}

.rai-lb__modal-quad--lg .rai-lb__quad-plot {
  flex: 1 1 68%;
}

.rai-lb__modal-quad--lg .rai-lb__quad-index {
  flex: 0 0 280px;
  max-height: 36rem;
  overflow-y: auto;
}

.rai-lb__bar-chart--enlarged {
  max-height: none !important;
  gap: 0.5rem;
}

.rai-lb__bar-chart--enlarged .rai-lb__bar-row {
  grid-template-columns: minmax(10rem, 45%) 1fr minmax(5rem, auto);
}

.rai-lb__quad-index-item--tier-projected .rai-lb__quad-index-rank {
  background: #94a3b8;
  color: #fff;
}

.rai-lb__metric--n-low {
  color: #b45309;
  font-weight: 800;
}

.rai-lb__cred-note {
  font-style: italic;
}

.rai-lb__modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

body.rai-lb-modal-open {
  overflow: hidden;
}

.rai-lb__modal .rai-lb__viz-enlarge {
  display: none;
}

.rai-lb__baseline-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.rai-lb__modal-body .rai-lb__bar-chart {
  max-height: none;
}

.rai-lb__samples {
  margin-top: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--lp-border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
}

.rai-lb__samples-title {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
}

.rai-lb__sample-card {
  margin: 0.45rem 0;
  border: 1px solid var(--lp-border, #e2e8f0);
  border-radius: 8px;
  background: var(--lp-band, #f8fafc);
}

.rai-lb__sample-summary {
  cursor: pointer;
  padding: 0.5rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
}

.rai-lb__sample-body {
  padding: 0 0.65rem 0.65rem;
  font-size: 0.72rem;
}

.rai-lb__sample-dims {
  margin: 0.35rem 0;
  padding-left: 1.1rem;
}

.rai-lb__sample-excerpt {
  margin: 0.45rem 0;
  padding: 0.45rem 0.55rem;
  border-left: 3px solid var(--v-brand-teal, #1375d9);
  background: #fff;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--v-ink-muted, #475569);
}

.rai-lb__bar-fill--gold {
  background: linear-gradient(90deg, #fde68a, #f59e0b);
}

.rai-lb__bar-fill--silver {
  background: linear-gradient(90deg, #e2e8f0, #94a3b8);
}

.rai-lb__bar-fill--bronze {
  background: linear-gradient(90deg, #fed7aa, #ea580c);
}

.rai-lb__bar-fill--field {
  background: linear-gradient(90deg, #cbd5e1, #64748b);
}

.rai-lb__bar-fill--projected {
  background: repeating-linear-gradient(
    90deg,
    #e2e8f0,
    #e2e8f0 4px,
    #cbd5e1 4px,
    #cbd5e1 8px
  );
  opacity: 0.85;
}

.rai-lb__quad-index-item--tier-gold .rai-lb__quad-index-rank {
  background: linear-gradient(145deg, #fde68a, #fbbf24);
  color: #78350f;
  border-radius: 4px;
  padding: 0 0.2rem;
}

.rai-lb__quad-index-item--tier-silver .rai-lb__quad-index-rank {
  background: linear-gradient(145deg, #f1f5f9, #cbd5e1);
  color: #1e293b;
  border-radius: 4px;
  padding: 0 0.2rem;
}

.rai-lb__quad-index-item--tier-bronze .rai-lb__quad-index-rank {
  background: linear-gradient(145deg, #fed7aa, #fb923c);
  color: #431407;
  border-radius: 4px;
  padding: 0 0.2rem;
}

.rai-lb__bar-val {
  font-size: 0.6rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--v-ink-muted, #64748b);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .rai-lb__viz {
    grid-template-columns: 1fr;
  }

  .rai-lb__viz-panel--drivers {
    overflow-x: auto;
  }

  .rai-lb__driver-grid {
    min-width: 36rem;
  }

  .rai-lb__bar-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .rai-lb__bar-val {
    text-align: left;
  }
}

body[data-theme="dark"] .rai-lb__eff-help,
body[data-theme="dark"] .rai-lb__viz-panel {
  background: #0f172a;
  border-color: #334155;
}

body[data-theme="dark"] .rai-lb__formula {
  background: #1e293b;
  border-color: #334155;
}

body[data-theme="dark"] .rai-lb__bar-track {
  background: #334155;
}

.rai-lb--panel .rai-lb__title {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
}

.rai-lb--panel .rai-lb__table {
  font-size: 0.82rem;
}

.rai-lb--panel .rai-lb__banner {
  font-size: 0.88rem;
}

body[data-theme="dark"] .rai-lb__table-wrap {
  background: #0f172a;
  border-color: #334155;
}

body[data-theme="dark"] .rai-lb__table th {
  background: #1e293b;
  color: #94a3b8;
}

body[data-theme="dark"] .rai-lb__banner {
  background: color-mix(in srgb, var(--v-brand-teal, #1375d9) 12%, #0f172a);
  border-color: #334155;
  color: #cbd5e1;
}

body[data-theme="dark"] .rai-lb__table td {
  border-color: #334155;
  color: #e2e8f0;
}

body[data-theme="dark"] .rai-lb__table tbody tr:hover {
  background: rgba(19, 117, 217, 0.12);
}

.slack-nav-section--leaderboard {
  margin-top: 0.25rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.slack-nav-section--leaderboard .slack-nav-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rai-lb__refresh {
  border: none;
  background: transparent;
  color: var(--v-brand-teal, #1375d9);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
}

.rai-lb__refresh:hover {
  text-decoration: underline;
}

/* Scoreboard scenario card — secondary operational pathways */
.scoreboard-pathways {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.45rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid color-mix(in srgb, rgba(82, 154, 255, 0.35) 100%, transparent);
}

.scoreboard-pathway-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--v-font, Inter, system-ui, sans-serif);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.42rem 0.72rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--v-brand-teal, #1375d9) 28%, var(--border, #cbd5e1));
  background: color-mix(in srgb, #fff 92%, var(--v-brand-teal, #1375d9) 8%);
  color: var(--v-ink, #0f172a);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.scoreboard-pathway-btn:hover {
  border-color: color-mix(in srgb, var(--v-brand-teal, #1375d9) 55%, var(--border, #cbd5e1));
  background: color-mix(in srgb, #fff 85%, var(--v-brand-teal, #1375d9) 15%);
  box-shadow: 0 2px 6px rgba(19, 117, 217, 0.12);
}

.scoreboard-pathway-btn:focus-visible {
  outline: 2px solid var(--v-brand-teal, #1375d9);
  outline-offset: 2px;
}

.scoreboard-pathway-btn__icon {
  font-size: 0.82rem;
  line-height: 1;
}

.scoreboard-pathway-modal {
  max-width: 560px;
  font-family: var(--v-font, Inter, system-ui, sans-serif);
}

.scoreboard-pathway-modal--enterprise {
  border-color: color-mix(in srgb, var(--v-brand-teal, #1375d9) 35%, var(--border));
  box-shadow:
    0 18px 60px var(--shadow),
    0 0 0 1px color-mix(in srgb, var(--v-brand-teal, #1375d9) 12%, transparent);
}

.scoreboard-enterprise-lead {
  max-width: 36rem;
}

.scoreboard-pathway-field-row {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.scoreboard-pathway-optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85em;
}

.scoreboard-pathway-status {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}

.scoreboard-pathway-status.is-success {
  color: #047857;
}

.scoreboard-pathway-status.is-error {
  color: #b91c1c;
}

.scoreboard-pathway-modal-actions--split {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.scoreboard-pathway-modal-actions__right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.scoreboard-pathway-modal textarea,
.scoreboard-pathway-modal input[type="text"],
.scoreboard-pathway-modal input[type="email"],
.scoreboard-pathway-modal input[type="number"] {
  font-family: var(--v-font, Inter, system-ui, sans-serif);
  border-radius: 8px;
}

.modal-card--create-scenario,
.scoreboard-pathway-modal.modal-card--create-scenario {
  max-width: 640px;
  width: min(640px, calc(100vw - 2rem));
}

.modal-card--create-scenario textarea,
.scoreboard-pathway-modal textarea {
  width: 100%;
  min-height: 5rem;
  resize: vertical;
  font: inherit;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border, #d5deeb);
  background: var(--surface, #fff);
  color: inherit;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .scoreboard-pathway-field-row {
    grid-template-columns: 1fr;
  }

  .scoreboard-pathways {
    flex-direction: column;
  }

  .scoreboard-pathway-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .scoreboard-pathway-modal-actions--split {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

body[data-theme="dark"] .scoreboard-pathway-btn {
  background: color-mix(in srgb, #0f172a 88%, var(--v-brand-teal, #1375d9) 12%);
  color: #e2e8f0;
  border-color: #334155;
}

body[data-theme="dark"] .scoreboard-pathway-btn:hover {
  background: color-mix(in srgb, #0f172a 78%, var(--v-brand-teal, #1375d9) 22%);
  border-color: #475569;
}

.rai-lb__metric-with-strength {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.rai-lb__strength-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.rai-lb__strength {
  flex: 1 1 5.5rem;
  min-width: 3.5rem;
  max-width: 100%;
}

.rai-lb__strength-track {
  height: 0.32rem;
  border-radius: 999px;
  background: var(--lp-band, #f1f5f9);
  overflow: hidden;
  width: 100%;
}

.rai-lb__strength-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
}

.rai-lb__strength-label {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__strength-label--best {
  color: #1375d9;
}

.rai-lb__strength-label--average {
  color: #ca8a04;
}

.rai-lb__strength-label--weak {
  color: #dc2626;
}

body[data-theme="dark"] .rai-lb__strength-track {
  background: #1e293b;
}

body[data-theme="dark"] .rai-lb__strength-label--best {
  color: #60a5fa;
}

body[data-theme="dark"] .rai-lb__strength-label--average {
  color: #fbbf24;
}

body[data-theme="dark"] .rai-lb__strength-label--weak {
  color: #f87171;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb {
  color: var(--v-ink);
}

/* Pending / lead-gen — models not yet team-tested on this scenario */
.rai-lb__pending-section {
  margin: 1.35rem 0 1.5rem;
  padding: 1.15rem 1.1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: var(--lp-band, #f8fafc);
}

.rai-lb__pending-title {
  margin: 0 0 0.35rem;
  font-family: var(--v-font-display, Spectral, Georgia, serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.rai-lb__pending-lede,
.rai-lb__pending-empty {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__pending-group {
  margin-top: 0.85rem;
}

.rai-lb__pending-subtitle {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--v-ink, #0f172a);
}

.rai-lb__pending-group-note {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__pending-list--catalog {
  margin-top: 0.35rem;
}

.rai-lb__pending-item--catalog .rai-lb__pending-note {
  display: none;
}

.rai-lb__pending-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
}

.rai-lb__pending-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: var(--v-white, #fff);
  font-size: 0.72rem;
}

.rai-lb__pending-item code {
  font-size: 0.72rem;
  font-weight: 600;
}

.rai-lb__pending-note {
  color: var(--v-ink-muted, #64748b);
  font-size: 0.68rem;
}

.rai-lb__pending-cta h3 {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.rai-lb__pending-cta > p {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__pending-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.55rem 0.75rem;
  align-items: end;
  max-width: 42rem;
}

.rai-lb__pending-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--v-ink-muted, #475569);
}

.rai-lb__pending-field input,
.rai-lb__pending-field select {
  font: inherit;
  font-weight: 400;
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--lp-border, #cbd5e1);
  background: var(--v-white, #fff);
  color: var(--v-ink, #0f172a);
}

.rai-lb__catalog-browser {
  margin: 0 0 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: var(--v-white, #fff);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.rai-lb__catalog-browser--highlight {
  border-color: var(--v-brand-teal, #1375d9);
  box-shadow: 0 0 0 3px rgba(19, 117, 217, 0.15);
}

.rai-lb__catalog-browser-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.rai-lb__catalog-browser-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--v-ink, #0f172a);
}

.rai-lb__catalog-browser-note {
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__catalog-search {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--v-ink-muted, #475569);
}

.rai-lb__catalog-search input {
  display: block;
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--lp-border, #cbd5e1);
  background: var(--v-white, #fff);
  color: var(--v-ink, #0f172a);
  font: inherit;
  font-weight: 400;
}

.rai-lb__catalog-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 14rem;
  overflow: auto;
  border: 1px solid var(--lp-border, #e2e8f0);
  border-radius: 8px;
  background: var(--lp-band, #f8fafc);
  -webkit-overflow-scrolling: touch;
}

.rai-lb__catalog-item {
  border-bottom: 1px solid var(--lp-border, #e2e8f0);
}

.rai-lb__catalog-item:last-child {
  border-bottom: none;
}

.rai-lb__catalog-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  width: 100%;
  padding: 0.42rem 0.55rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.rai-lb__catalog-pick-main code {
  font-size: 0.74rem;
  font-weight: 600;
  word-break: break-all;
}

.rai-lb__catalog-pick-metrics {
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__catalog-pick:hover,
.rai-lb__catalog-pick:focus-visible {
  background: rgba(19, 117, 217, 0.08);
  outline: none;
}

.rai-lb__catalog-empty {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__catalog-visible-count {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
}

.rai-lb__pending-submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.15rem;
  padding: 0.48rem 0.95rem;
  border: none;
  border-radius: 8px;
  background: var(--v-brand-teal, #1375d9);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.rai-lb__pending-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.rai-lb__pending-form-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.75rem;
}

.rai-lb__pending-form-status--ok {
  color: #047857;
}

.rai-lb__pending-form-status--err {
  color: #b91c1c;
}

.rai-lb__pending-form-status--warn {
  color: #b45309;
}

.rai-lb__pending-form-success {
  max-width: 42rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(19, 117, 217, 0.22);
  background: rgba(19, 117, 217, 0.06);
  color: var(--v-ink, #0f172a);
}

.rai-lb__pending-form-success p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.rai-lb__pending-form-success-note {
  margin-top: 0.55rem !important;
  color: #b45309;
  font-size: 0.76rem !important;
}

body[data-theme="dark"] .rai-lb__pending-section {
  background: #1e293b;
  border-color: #334155;
}

body[data-theme="dark"] .rai-lb__pending-item {
  background: #0f172a;
  border-color: #475569;
}

body[data-theme="dark"] .rai-lb__catalog-browser {
  background: #0f172a;
  border-color: #334155;
}

body[data-theme="dark"] .rai-lb__catalog-list {
  background: #1e293b;
  border-color: #334155;
}

body[data-theme="dark"] .rai-lb__catalog-item {
  border-color: #334155;
}

body[data-theme="dark"] .rai-lb__catalog-search input {
  background: #0f172a;
  border-color: #475569;
  color: #e2e8f0;
}

body[data-theme="dark"] .rai-lb__pending-field input,
body[data-theme="dark"] .rai-lb__pending-field select {
  background: #0f172a;
  border-color: #475569;
  color: #e2e8f0;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__title,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__hero-headline {
  color: #f1f5f9;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__hero {
  border-color: #334155;
  background: color-mix(in srgb, #1375d9 8%, #0f172a);
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__banner {
  background: color-mix(in srgb, #1375d9 10%, #0f172a);
  border-color: #334155;
  color: #cbd5e1;
}

/* Public leaderboard — night theme polish (hardcoded light surfaces) */
body.rai-lb-site-page[data-theme="dark"] .rai-lb__assessment {
  background: #111827;
  border-color: #475569;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__assessment-exec {
  background: #0f172a;
  border-color: #334155;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__ref-strip {
  background: #111827;
  border-color: #475569;
  color: #cbd5e1;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__ref-strip-label {
  color: #e2e8f0;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__ref-strip-note {
  color: #94a3b8;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__ref-strip--unverified {
  background: color-mix(in srgb, #f59e0b 12%, #111827);
  border-color: #b45309;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__ref-strip--unverified .rai-lb__ref-strip-label {
  color: #fcd34d;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__export-bar {
  background: #111827;
  border-color: #475569;
  box-shadow: none;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__export-label {
  color: #94a3b8;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__export-email-field input {
  background: #0f172a;
  border-color: #475569;
  color: #e2e8f0;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__export-divider {
  background: #475569;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__perf-legend {
  background: #111827;
  border-color: #475569;
  color: #cbd5e1;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__perf-legend-title {
  color: #f1f5f9;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__learn-strip {
  border-color: #334155;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__learn-jump {
  background: color-mix(in srgb, #1375d9 16%, #111827);
  color: #93c5fd;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__learn-jump:hover {
  background: color-mix(in srgb, #1375d9 24%, #111827);
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__learn-foot-details {
  border-color: #475569;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__learn-foot-title {
  color: #f1f5f9;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__learn-foot-body,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__learn-foot-lede {
  color: #94a3b8;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__learn-block {
  background: #111827;
  border-color: #475569;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__learn-block-summary {
  color: #f1f5f9;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__learn-section {
  background: #0f172a;
  border-color: #475569;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__learn-section-title {
  color: #f1f5f9;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__learn-callout {
  background: #0f172a;
  border-color: #475569;
  color: #cbd5e1;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__learn-dl dt {
  color: #e2e8f0;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__view-toggle {
  background: #111827;
  border-color: #475569;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__view-btn {
  color: #94a3b8;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__view-btn:hover {
  color: #f1f5f9;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__table-toolbar-hint {
  color: #94a3b8;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__pending-section {
  background: #111827;
  border-color: #475569;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__pending-title,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__pending-subtitle {
  color: #f1f5f9;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__pending-lede,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__pending-group-note,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__pending-empty {
  color: #94a3b8;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__pending-item {
  background: #0f172a;
  border-color: #475569;
  color: #cbd5e1;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__pending-note {
  color: #94a3b8;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__pending-field input,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__pending-field select {
  background: #0f172a;
  border-color: #475569;
  color: #e2e8f0;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__pending-field label {
  color: #94a3b8;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__loading {
  background: #111827;
  border-color: #475569;
  color: #e2e8f0;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__empty,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__error {
  color: #94a3b8;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__table-foot {
  color: #94a3b8;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__viz-note,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__dim {
  color: #94a3b8;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__baseline-card {
  background: #111827;
  border-color: #475569;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__baseline-card-summary {
  color: #f1f5f9;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__baseline-dl dt {
  color: #e2e8f0;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__baseline-dl dd,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__baseline-uses {
  color: #94a3b8;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__eff-help {
  background: #111827;
  border-color: #475569;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__eff-help-body {
  color: #94a3b8;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__cred-note {
  color: #94a3b8;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__table-title {
  color: #f1f5f9;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__viz-panel-title {
  color: #f1f5f9;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__viz-panel-lede {
  color: #94a3b8;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__quad-index-name,
body.rai-lb-site-page[data-theme="dark"] .rai-lb__bar-label {
  color: #cbd5e1;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__driver-row-label {
  color: #e2e8f0;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__driver-axis-label {
  color: #94a3b8;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__learn-foot-details > summary::before {
  color: #94a3b8;
}

/* Localhost rankings Q&A widget */
.rai-lb__ask-widget {
  position: fixed;
  left: clamp(0.75rem, 2vw, 1.25rem);
  bottom: clamp(0.75rem, 2vw, 1.25rem);
  z-index: 10040;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: min(22rem, calc(100vw - 1.5rem));
}

.rai-lb__ask-widget--inline {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 4;
  max-width: none;
  align-items: flex-end;
}

.rai-lb__ask-widget--inline .rai-lb__ask-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  bottom: auto;
  width: min(22rem, calc(100vw - 1.5rem));
  max-height: min(24rem, 60vh);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.rai-lb__ask-toggle {
  margin: 0;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--v-brand-teal, #1375d9);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(19, 117, 217, 0.35);
}

.rai-lb__ask-toggle:hover {
  filter: brightness(1.05);
}

.rai-lb__ask-panel {
  width: min(22rem, calc(100vw - 1.5rem));
  max-height: min(28rem, 70vh);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--v-border, #e2e8f0);
  background: var(--v-surface, #fff);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.rai-lb__ask-panel.hidden {
  display: none;
}

.rai-lb__ask-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  padding: 0.75rem 0.85rem 0.55rem;
  border-bottom: 1px solid var(--v-border, #e2e8f0);
  background: var(--lp-band, #f8fafc);
}

.rai-lb__ask-head strong {
  flex: 1 1 auto;
  font-size: 0.88rem;
}

.rai-lb__ask-sub {
  flex: 1 1 100%;
  font-size: 0.68rem;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__ask-close {
  margin: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--v-ink-muted, #64748b);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.rai-lb__ask-close:hover {
  background: rgba(100, 116, 139, 0.12);
}

.rai-lb__ask-log {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.rai-lb__ask-empty {
  margin: 0;
  color: var(--v-ink-muted, #64748b);
  font-size: 0.78rem;
}

.rai-lb__ask-msg {
  margin: 0 0 0.65rem;
}

.rai-lb__ask-msg-role {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v-ink-muted, #64748b);
  margin-bottom: 0.15rem;
}

.rai-lb__ask-msg-body {
  white-space: pre-wrap;
  color: var(--v-ink, #0f172a);
}

.rai-lb__ask-msg--assistant .rai-lb__ask-msg-body {
  color: var(--v-ink, #334155);
}

.rai-lb__ask-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem 0.75rem;
  border-top: 1px solid var(--v-border, #e2e8f0);
}

.rai-lb__ask-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rai-lb__ask-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--v-ink-muted, #64748b);
}

.rai-lb__ask-field textarea {
  width: 100%;
  min-height: 3.25rem;
  resize: vertical;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--v-border, #e2e8f0);
  font: inherit;
  font-size: 0.82rem;
  background: var(--v-surface, #fff);
  color: var(--v-ink, #0f172a);
}

.rai-lb__ask-send {
  align-self: flex-end;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border: none;
  border-radius: 8px;
  background: var(--v-brand-teal, #1375d9);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.rai-lb__ask-send:disabled {
  opacity: 0.6;
  cursor: wait;
}

body.rai-lb-ask-open {
  overflow: hidden;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__ask-panel {
  background: #111827;
  border-color: #475569;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__ask-head {
  background: #0f172a;
  border-color: #334155;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__ask-msg-body {
  color: #e2e8f0;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__ask-field textarea {
  background: #0f172a;
  border-color: #475569;
  color: #e2e8f0;
}

body.rai-lb-site-page[data-theme="dark"] .rai-lb__ask-form {
  border-color: #334155;
}
