/* Model reference: a precise, quiet working surface in both reading themes. */
.llm-app {
  --llm-muted: var(--site-default-fg-color--light);
  --llm-soft: color-mix(in srgb, var(--reading-accent) 7%, var(--reading-bg));
  font-size: 1rem;
  line-height: 1.6;
}
.llm-app *,
.llm-app *::before,
.llm-app *::after {
  box-sizing: border-box;
}
.llm-app a {
  color: inherit;
  text-decoration: none;
}
.llm-app a:hover {
  color: var(--reading-accent);
}
.llm-app button,
.llm-app input,
.llm-app select {
  font: inherit;
}
.llm-app button {
  cursor: pointer;
}
.llm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 0 0 1.25rem;
}
.llm-eyebrow {
  margin: 0 0 0.5rem;
  color: var(--llm-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.llm-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.25rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.llm-lead {
  margin: 0.625rem 0 0;
  color: var(--llm-muted);
  font-size: 0.9375rem;
}
.llm-stamp {
  display: grid;
  gap: 0.125rem;
  text-align: right;
  flex-shrink: 0;
  color: var(--llm-muted);
  font-size: 0.8125rem;
}
.llm-stamp time {
  color: var(--site-default-fg-color);
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
}
.llm-views {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid var(--reading-rule);
  margin-bottom: 1.5rem;
}
.llm-views a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 0.25rem 1rem;
  min-height: 48px;
  color: var(--llm-muted);
  font-size: 1rem;
  font-weight: 550;
}
.llm-views a[aria-current] {
  color: var(--reading-accent);
}
.llm-views a[aria-current]::after {
  position: absolute;
  bottom: -1px;
  inset-inline: 0;
  height: 2px;
  content: "";
  background: var(--reading-accent);
}
.llm-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 2rem;
}
.llm-main {
  min-width: 0;
}
.llm-toolbar {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.llm-query {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 160px;
  flex: 1;
  min-height: 46px;
  padding: 0 0.875rem;
  border: 1px solid var(--reading-rule);
  border-radius: var(--site-radius);
  background: var(--reading-bg);
  color: var(--llm-muted);
  transition: border-color 150ms;
}
.llm-query:focus-within {
  border-color: var(--reading-accent);
}
.llm-query input {
  min-width: 0;
  width: 100%;
  height: 44px;
  padding: 0;
  border: 0;
  color: var(--site-default-fg-color);
  background: transparent;
  font-size: 0.875rem;
}
.llm-query input::placeholder {
  color: var(--llm-muted);
  opacity: 1;
}
.llm-query svg {
  flex-shrink: 0;
}
.llm-select {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 125px;
  font-size: 0.875rem;
}
.llm-select > span:not(.viz-select) {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--llm-muted);
  font-size: 0.8125rem;
}
.llm-select select {
  max-width: 100%;
  height: 46px;
  border: 1px solid var(--reading-rule);
  border-radius: var(--site-radius);
  background: var(--reading-bg);
  color: inherit;
  padding: 0.5rem;
  font-size: 0.875rem;
}
.llm-select .viz-select {
  flex: 0 0 auto;
  height: 46px;
  min-height: 46px;
}
.llm-select .viz-select-trigger {
  min-height: 46px;
  font-size: 0.875rem;
  background: var(--reading-bg);
}
.llm-filterline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem 1rem;
  padding-bottom: 1rem;
}
.llm-filterline .llm-select {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.llm-filterline .llm-select .viz-select {
  width: max-content;
  min-width: 11rem;
}
.llm-filterline .llm-select > span:not(.viz-select) {
  font-size: 0.875rem;
}
.llm-filterline .llm-select .viz-select-trigger {
  min-height: 44px;
  border-color: transparent;
  background: var(--reading-surface);
}
.llm-filterline .llm-select select {
  min-height: 44px;
  height: 44px;
}
.llm-unit {
  margin-left: auto;
  color: var(--llm-muted);
  font-size: 0.8125rem;
}
.llm-result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding: 0.5rem 0;
  color: var(--llm-muted);
  font-size: 0.8125rem;
  border-top: 1px solid var(--reading-rule);
}
.llm-result-meta [role="status"] {
  color: var(--site-default-fg-color);
  font-variant-numeric: tabular-nums;
}
.llm-text-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: var(--reading-accent);
  font-size: 0.875rem !important;
}
.llm-text-button svg {
  width: 15px;
}
.llm-table-wrap {
  width: 100%;
  overflow: auto;
}
.llm-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.llm-table th {
  color: var(--llm-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.75rem 0.75rem;
  background: var(--reading-surface);
  white-space: nowrap;
  border: 0;
}
.llm-table td {
  padding: 1rem 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--reading-rule);
  font-size: 1rem;
  vertical-align: middle;
}
.llm-table th:first-child {
  border-radius: var(--site-radius-sm) 0 0 var(--site-radius-sm);
}
.llm-table th:last-child {
  border-radius: 0 var(--site-radius-sm) var(--site-radius-sm) 0;
}
.llm-table tbody tr {
  transition: background 140ms ease;
}
.llm-table tbody tr:hover {
  background: var(--nav-hover);
}
.llm-table tr.is-selected {
  background: var(--llm-soft);
}
.llm-table td:first-child {
  min-width: 220px;
}
.llm-table td > small {
  display: block;
  color: var(--llm-muted);
  font-size: 0.8125rem;
}
.llm-table time {
  color: var(--llm-muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}
.llm-model-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
}
.llm-model-link > span:last-child {
  min-width: 0;
}
.llm-model-link strong {
  display: block;
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.llm-model-link small {
  display: block;
  color: var(--llm-muted);
  font-size: 0.75rem;
  margin-top: 0.2rem;
}
.llm-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--site-default-fg-color);
}
.llm-numeric {
  white-space: nowrap;
}
.llm-price {
  white-space: nowrap;
}
.llm-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  max-width: 155px;
  color: var(--llm-muted);
  font-size: 0.8125rem;
}
.llm-capabilities span {
  white-space: nowrap;
}
.llm-preview {
  display: inline-block;
  margin: 0.25rem 0 0 48px;
  font-size: 0.75rem;
  color: var(--reading-accent);
}
.llm-footnote,
.llm-note {
  color: var(--llm-muted);
  font-size: 0.8125rem;
  line-height: 1.75;
}
.llm-footnote {
  margin: 0.875rem 0.25rem 0;
}
.llm-board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.25rem 0 1.25rem;
}
.llm-board-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  color: var(--llm-muted);
  font-size: 0.875rem;
  border-radius: var(--site-radius);
}
.llm-board-tabs a[aria-current] {
  color: var(--reading-accent);
  background: var(--llm-soft);
}
.llm-board-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0;
  margin-bottom: 0.625rem;
}
.llm-board-intro h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.llm-board-intro p:not(.llm-eyebrow) {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--llm-muted);
}
.llm-board-intro p span {
  padding: 0 0.5rem;
}
.llm-source-button {
  flex-shrink: 0;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  color: var(--reading-accent) !important;
  min-height: 44px;
}
/* Ranking geometry is shared by every board, regardless of virtualization. */
.llm-ranking-table {
  table-layout: fixed;
}
.llm-ranking-table th:first-child {
  width: 56px;
}
.llm-ranking-table th:nth-child(2) {
  width: 38%;
}
.llm-ranking-table th:nth-child(3) {
  width: 25%;
}
.llm-ranking-table td:first-child {
  min-width: 0;
  width: 56px;
  color: var(--llm-muted);
}
.llm-ranking-table td:nth-child(2) {
  width: 38%;
}
.llm-ranking-table td:nth-child(3) {
  width: 25%;
  min-width: 120px;
}
.llm-score {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 0.75rem;
}
.llm-score strong {
  font-size: 1.0625rem;
  font-weight: 600;
}
.llm-score small {
  font-size: 0.75rem;
  margin-left: 0.15rem;
  color: var(--llm-muted);
}
.llm-bar {
  display: block;
  width: 100%;
  height: 4px;
  background: var(--reading-surface);
}
.llm-bar > span {
  display: block;
  height: 100%;
  background: var(--reading-accent);
}
.llm-method {
  margin: 1rem 0 0;
  font-size: 0.875rem;
}
.llm-method summary {
  cursor: pointer;
  color: var(--llm-muted);
  min-height: 44px;
  padding: 0.625rem 0;
}
.llm-method > div {
  padding: 0.25rem 1rem 1rem;
  border-left: 1px solid var(--reading-rule);
  max-width: 750px;
  color: var(--llm-muted);
}
.llm-method p {
  margin: 0.5rem 0;
}
.llm-method a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.llm-other-sources {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--reading-rule);
}
.llm-other-sources header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.llm-other-sources h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 550;
}
.llm-other-sources p {
  margin: 0;
  color: var(--llm-muted);
  font-size: 0.8125rem;
}
.llm-other-sources > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.llm-source-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 64px;
  padding-right: 1.25rem;
}
.llm-source-link strong {
  font-size: 0.9375rem;
  font-weight: 550;
}
.llm-source-link small {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--llm-muted);
}
.llm-source-link > span {
  position: absolute;
  right: 0;
  top: 0;
  color: var(--reading-accent);
}
.llm-empty {
  text-align: center;
  padding: 4rem 1rem;
}
.llm-empty > svg {
  width: 32px;
  height: 32px;
  color: var(--reading-accent);
}
.llm-empty h2 {
  font-size: 1.25rem;
  font-weight: 550;
  margin: 1rem 0 0.5rem;
}
.llm-empty p {
  color: var(--llm-muted);
}
.llm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--reading-rule);
  border-radius: var(--site-radius);
  color: var(--reading-accent);
  background: var(--reading-bg);
  font-size: 0.875rem;
}
.llm-detail {
  min-width: 0;
  border: 1px solid var(--reading-rule);
  border-radius: var(--site-radius-lg);
  background: var(--reading-bg);
  overflow: hidden;
}
.llm-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem;
  background: var(--reading-surface);
  color: var(--llm-muted);
  font-size: 0.8125rem;
}
.llm-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.llm-detail > header {
  padding: 1.5rem 1.5rem 0;
}
.llm-detail > header .llm-mark {
  float: right;
  width: 44px;
  height: 44px;
  margin: 0 0 0.75rem 0.75rem;
  font-size: 1.25rem;
}
.llm-detail h2 {
  font-size: 1.625rem;
  line-height: 1.35;
  font-weight: 600;
  margin: 0.25rem 0 0.75rem;
  overflow-wrap: anywhere;
  letter-spacing: -0.025em;
}
.llm-detail h2:focus {
  outline: none;
}
.llm-detail-weight {
  font-size: 0.8125rem;
  color: var(--reading-accent);
}
.llm-api-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 1.25rem 1.5rem 0;
  padding: 0.5rem 0.625rem;
  background: var(--reading-surface);
  border-radius: var(--site-radius-sm);
}
.llm-api-id code {
  overflow-wrap: anywhere;
  font-size: 0.8125rem;
  background: transparent;
}
.llm-api-id button {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0;
  color: var(--llm-muted);
  background: transparent;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.llm-copy-status {
  display: block;
  min-height: 1.25rem;
  padding: 0 1.5rem;
  color: var(--llm-muted);
  font-size: 0.75rem;
}
.llm-detail > section {
  margin: 0 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--reading-rule);
}
.llm-detail h3 {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
.llm-context-pair,
.llm-price-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.75rem 0 1rem;
}
.llm-context-pair > div,
.llm-price-pair > div {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.llm-context-pair strong,
.llm-price-pair strong {
  font-size: 1.625rem;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.llm-context-pair span,
.llm-price-pair span {
  font-size: 0.8125rem;
  color: var(--llm-muted);
}
.llm-price-pair strong {
  color: var(--reading-accent);
}
.llm-specs {
  margin: 0;
}
.llm-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.375rem 0;
  font-size: 0.875rem;
}
.llm-specs dt {
  color: var(--llm-muted);
  flex-shrink: 0;
}
.llm-specs dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.llm-detail-caption {
  color: var(--llm-muted);
  font-size: 0.8125rem;
  margin: 0;
}
.llm-detail section > a {
  color: var(--reading-accent);
  font-size: 0.875rem;
  display: inline-block;
  min-height: 44px;
  padding: 0.5rem 0;
}
.llm-sources {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}
.llm-sources a {
  display: inline-block;
  min-height: 44px;
  padding: 0.5rem 0;
  color: var(--reading-accent);
}
.llm-eval {
  margin-top: 1rem;
}
.llm-eval + .llm-eval {
  border-top: 1px solid var(--reading-rule);
  padding-top: 1rem;
}
.llm-eval header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}
.llm-eval header strong {
  color: var(--reading-accent);
  font-variant-numeric: tabular-nums;
}
.llm-eval > p {
  color: var(--llm-muted);
  font-size: 0.8125rem;
  margin: 0.5rem 0;
}
.llm-fallback-detail {
  max-width: 720px;
}
@media (min-width: 1280px) {
  .llm-app.has-detail .llm-workspace {
    grid-template-columns: minmax(0, 1fr) 368px;
    gap: 1.5rem;
  }
  .llm-detail {
    position: sticky;
    top: calc(var(--site-header-height, 56px) + 1rem);
    max-height: calc(100dvh - var(--site-header-height, 56px) - 2rem);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .has-detail .llm-toolbar {
    flex-wrap: wrap;
  }
  .has-detail .llm-query {
    flex-basis: 100%;
  }
  .has-detail .llm-select {
    flex: 1;
  }
  .has-detail .llm-filterline .llm-select {
    flex: initial;
  }
  .has-detail .llm-unit {
    margin-left: 0;
    width: 100%;
  }
  .has-detail .llm-catalog-table th:nth-child(3),
  .has-detail .llm-catalog-table td:nth-child(3),
  .has-detail .llm-catalog-table th:nth-child(6),
  .has-detail .llm-catalog-table td:nth-child(6),
  .has-detail .llm-ranking-table th:last-child,
  .has-detail .llm-ranking-table td:last-child {
    display: none;
  }
  .has-detail .llm-other-sources > div {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .has-detail .llm-other-sources header {
    display: block;
  }
  .has-detail .llm-other-sources header p {
    margin-top: 0.5rem;
  }
}
@media (max-width: 1279px) {
  .has-detail .llm-main {
    display: none;
  }
  .llm-detail {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
  }
  .llm-toolbar {
    flex-wrap: wrap;
  }
  .llm-query {
    flex-basis: 100%;
  }
  .llm-select {
    flex: 1;
  }
  .llm-filterline .llm-select {
    flex: initial;
  }
}
@media (max-width: 768px) {
  .llm-header {
    align-items: start;
    gap: 1rem;
    padding-bottom: 1.25rem;
  }
  .llm-header h1 {
    font-size: 1.75rem;
  }
  .llm-lead {
    font-size: 0.875rem;
    max-width: 16rem;
  }
  .llm-stamp {
    font-size: 0.75rem;
  }
  .llm-stamp time {
    font-size: 0.8125rem;
  }
  .llm-stamp span:last-child {
    display: none;
  }
  .llm-views {
    margin-bottom: 1rem;
  }
  .llm-toolbar {
    gap: 0.75rem 0.5rem;
  }
  .llm-select {
    min-width: 0;
  }
  .llm-select .viz-select-trigger {
    min-width: 0;
    padding-inline: 0.625rem;
  }
  .llm-filterline {
    gap: 0.5rem;
  }
  .llm-filterline .llm-select {
    flex: 1;
  }
  .llm-filterline .llm-select > span:not(.viz-select) {
    display: none;
  }
  .llm-unit {
    flex-basis: 100%;
    margin: 0.25rem 0 0;
  }
  .llm-table-wrap {
    overflow: visible;
  }
  .llm-table {
    display: block;
  }
  .llm-table thead {
    display: none;
  }
  .llm-table tbody {
    display: block;
  }
  .llm-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1.25rem;
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--reading-rule);
  }
  .llm-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: 0;
    padding: 0;
    min-width: 0 !important;
    width: auto !important;
    font-size: 0.9375rem;
  }
  .llm-table td[data-label]::before {
    content: attr(data-label);
    font-size: 0.8125rem;
    color: var(--llm-muted);
  }
  .llm-catalog-table td:first-child {
    grid-column: 1/-1;
    display: block;
  }
  .llm-catalog-table td:nth-child(3) {
    grid-column: 1/-1;
    grid-row: 2;
    justify-content: start;
  }
  .llm-capabilities {
    max-width: none;
    gap: 0.5rem;
  }
  .llm-table time {
    font-size: 0.8125rem;
  }
  .llm-mark {
    width: 24px;
    height: 24px;
  }
  .llm-result-meta > span:last-child:not([role]) {
    display: none;
  }
  .llm-ranking-table tr {
    grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1fr);
  }
  .llm-ranking-table td:first-child {
    justify-content: start;
    grid-row: 1;
  }
  .llm-ranking-table td:first-child::before {
    display: none;
  }
  .llm-ranking-table td:nth-child(2) {
    grid-column: 2/-1;
  }
  .llm-ranking-table td:nth-child(3) {
    grid-column: 2/-1;
  }
  .llm-ranking-table td:nth-child(4) {
    grid-column: 2;
  }
  .llm-ranking-table td:nth-child(5) {
    grid-column: 3;
  }
  .llm-ranking-table td:nth-child(5)::before {
    display: none;
  }
  .llm-score {
    flex: 1;
    max-width: 220px;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding-right: 0;
  }
  .llm-score strong {
    order: 2;
  }
  .llm-bar {
    min-width: 35px;
  }
  .llm-board-intro {
    padding: 1rem;
    align-items: start;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .llm-board-intro h2 {
    font-size: 1.25rem;
  }
  .llm-source-button {
    padding: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .llm-other-sources header {
    display: block;
  }
  .llm-other-sources header p {
    margin-top: 0.35rem;
  }
  .llm-other-sources > div {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .llm-source-link {
    min-height: 52px;
  }
  .llm-detail > section {
    margin-inline: 1.25rem;
  }
  .llm-detail > header {
    padding-inline: 1.25rem;
  }
  .llm-api-id {
    margin-inline: 1.25rem;
  }
  .llm-text-button {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .llm-app * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .llm-toolbar,
  .llm-filterline,
  .llm-views,
  .llm-close,
  .llm-api-id button {
    display: none;
  }
  .llm-detail {
    max-height: none;
    position: static;
    overflow: visible;
  }
  .llm-main {
    display: block !important;
  }
}

/* Relative scores use a shared zero line; negative effects remain signed. */
.llm-board-caption {
  margin: -0.5rem 0 1.25rem;
  color: var(--llm-muted);
  font-size: 0.875rem;
}
.llm-score--relative {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 0.4rem;
  min-width: 142px;
}
.llm-score--relative strong {
  font-size: 1rem;
}
.llm-confidence {
  color: var(--llm-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}
.llm-score .llm-bar--relative {
  grid-column: 1 / -1;
  position: relative;
  height: 5px;
  width: 100%;
  overflow: visible;
}
.llm-bar--relative::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 1px;
  height: 11px;
  background: var(--reading-rule);
}
.llm-bar--relative > span {
  position: absolute;
}
.llm-bar--relative > span.is-negative {
  background: var(--llm-muted);
  opacity: 0.6;
}
@media (max-width: 768px) {
  .llm-header {
    padding-bottom: 0.75rem;
  }
  .llm-views {
    margin-bottom: 0.75rem;
  }
  .llm-board-intro {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
  }
  .llm-board-intro .llm-eyebrow {
    display: none;
  }
  .llm-board-caption {
    margin-bottom: 1rem;
  }
  .llm-filterline .llm-select .viz-select {
    width: 100%;
  }
  .llm-score--relative {
    grid-template-columns: auto auto;
    gap: 0.3rem;
  }
  .llm-score--relative strong {
    order: 0;
  }
  .llm-ranking-table td:nth-child(4),
  .llm-ranking-table td:nth-child(5) {
    grid-column: 2 / -1;
  }
  .llm-ranking-table td:nth-child(5)::before {
    display: block;
  }
}

/* Fixed-height controls: size the control before truncating exceptional long labels. */
.llm-select .viz-select-trigger {
  height: 46px;
  white-space: nowrap;
}
.llm-select .viz-select-value {
  display: block;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.llm-mark svg {
  display: block;
  width: 20px;
  height: 20px;
  overflow: visible;
}
.llm-detail > header .llm-mark {
  width: 36px;
  height: 36px;
}
.llm-detail > header .llm-mark svg {
  width: 32px;
  height: 32px;
}
@media (max-width: 768px) {
  .llm-toolbar,
  .llm-filterline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
    align-items: end;
  }
  .llm-query,
  .llm-unit {
    grid-column: 1 / -1;
  }
  .llm-unit {
    margin-left: 0;
  }
  .llm-toolbar .llm-select:last-child:nth-child(4) {
    grid-column: 1 / -1;
  }
  .llm-filterline .llm-select .viz-select {
    min-width: 0;
  }
  .llm-select .viz-select-trigger {
    gap: 8px;
  }
}

/* Ranking context is a compact toolbar heading, sharing the table's content axis. */
.llm-board-intro > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.375rem 1rem;
}
.llm-board-intro .llm-eyebrow {
  display: none;
}
.llm-board-intro p:not(.llm-eyebrow) {
  margin: 0;
  font-size: 0.8125rem;
}
.llm-board-intro {
  padding: 0;
  margin-bottom: 0.5rem;
}
.llm-board-caption {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
}
.llm-detail-top {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--reading-bg);
  border-bottom: 1px solid var(--reading-rule);
}
.llm-close {
  border-radius: var(--site-radius-sm);
  transition: background 150ms ease;
}
.llm-close:hover {
  background: var(--reading-surface);
}
.llm-app {
  scroll-margin-top: calc(var(--site-header-height, 56px) + 16px);
}

/* Show a stable cold-load shell; the readable SSR remains the no-JS/error path. */
.llm-loading {
  display: none;
}
.js
  [data-llm-root]:not([data-llm-ready]):not([data-llm-load-error])
  > .llm-fallback {
  display: none;
}
.js
  [data-llm-root]:not([data-llm-ready]):not([data-llm-load-error])
  > .llm-loading {
  display: block;
}
.llm-loading__body {
  min-height: 38rem;
}
.llm-loading__boards,
.llm-loading__controls,
.llm-loading__filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.llm-loading__boards i,
.llm-loading__controls i,
.llm-loading__filters i,
.llm-loading__caption {
  display: block;
  background: var(--reading-surface);
  border-radius: var(--site-radius-sm);
}
.llm-loading__boards i {
  width: 8rem;
  max-width: 30%;
  height: 44px;
}
.llm-loading__caption {
  width: 60%;
  height: 40px;
  margin: 1.25rem 0;
}
.llm-loading__controls {
  padding-top: 1rem;
}
.llm-loading__controls i {
  width: 12rem;
  max-width: 25%;
  height: 46px;
}
.llm-loading__controls i:first-child {
  flex: 1;
  max-width: none;
}
.llm-loading__filters i {
  width: 11rem;
  max-width: 45%;
  height: 46px;
}
.llm-loading__row {
  height: 78px;
  border-bottom: 1px solid var(--reading-rule);
}
@media (max-width: 720px) {
  .llm-loading__controls {
    flex-wrap: wrap;
  }
  .llm-loading__controls i:first-child {
    flex: 0 0 100%;
  }
  .llm-loading__controls i:not(:first-child) {
    flex: 1;
    max-width: none;
  }
}

.llm-source-date-link {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.llm-source-date-link:hover,
.llm-source-date-link:focus-visible {
  color: var(--reading-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
