.model-evaluations {
  --table-band: color-mix(in srgb, var(--bg) 93%, var(--ink));
  --table-accent: var(--fire, light-dark(#8b410c, #ffb47f));
  container: evaluations / inline-size;
  margin-block: clamp(36px, 5vw, 72px);
  min-width: 0;
}
.model-evaluations > h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -.04em;
  font-weight: 500;
}
.model-evaluations > p { margin: 0 0 18px; color: var(--muted); }
.model-evaluations .eval-source { margin: 10px 0 0; font: 12px/1.5 var(--mono); }
.eval-pairs { display: none; }
.catalog-matrix [hidden] { display: none !important; }
.matrix-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-block: 16px; }
.matrix-tools [role=group] {
  display:flex; flex-wrap:wrap; gap:3px; padding:4px; border:1px solid var(--line);
  border-radius:24px; background:color-mix(in srgb,var(--bg) 96%,var(--ink));
}
.matrix-tools button, .catalog-no-match button {
  cursor:pointer; background:transparent; color:var(--muted); border:0; border-radius:20px;
  padding:7px 12px; font:inherit; font-size:13px;
}
.matrix-tools button[aria-pressed=true] { background:var(--ink); color:var(--bg); }
.matrix-tools input[type=search] {
  max-width:100%; margin-inline-start:auto; padding:8px 12px; border:1px solid var(--line);
  border-radius:7px; background:var(--bg); color:var(--ink); font:inherit; font-size:13px;
}
.catalog-units { display:flex; align-items:center; justify-content:space-between; margin:12px 0; color:var(--muted); font:12px/1.5 var(--mono); }
.catalog-units input { vertical-align:middle; }
.catalog-rates {
  width:100%; margin:0; border:1px solid var(--line); border-radius:10px;
  border-collapse:separate; border-spacing:0; overflow:clip; background:var(--bg);
}
.catalog-rates :is(td,th) { text-align:start; padding:14px 10px; border:0; border-bottom:1px solid var(--line); white-space:normal; font:13px/1.45 var(--mono); }
.catalog-rates thead th { background:var(--table-band); color:var(--ink); font-size:12px; }
@container evaluations (width > 48rem) {
  .catalog-rates tr > :not(:last-child) { border-inline-end:1px solid var(--line); }
}
.catalog-rates td[data-price] { font-variant-numeric:tabular-nums; }
.catalog-rates td[data-price="outputMicrosPerMillion"] { color:var(--table-accent); }
.catalog-rates tbody th { background:transparent; }
.catalog-rates .catalog-group th { padding-block:8px; background:var(--table-band); color:var(--muted); font-weight:600; font-size:12px; }
.catalog-rates .catalog-group th::before {
  content:""; display:inline-block; width:3px; height:10px; margin-inline-end:8px;
  border-radius:2px; background:var(--table-accent); vertical-align:baseline;
}
.catalog-rates tbody:last-child tr:last-child > * { border-bottom:0; }
.catalog-rates tr[data-mid]:is(:hover,:focus-within) { background:color-mix(in srgb,var(--bg) 97%,var(--ink)); }
.catalog-rates .catalog-model-link {
  display:inline-flex; align-items:center; gap:10px;
  max-inline-size:100%; color:var(--ink);
}
.catalog-model-link > span { min-inline-size:0; }
.model-mark {
  box-sizing:border-box; display:block; flex:none;
  inline-size:32px; block-size:32px; padding:6px;
  border-radius:8px; background:#f5f5f7; object-fit:contain;
}
.eval-matrix .evaluation-model-link {
  display:grid; grid-template-columns:23px minmax(0,1fr) 11px;
  align-items:start; gap:6px; text-align:start;
}
.evaluation-model-name,
.evaluation-metric-label {
  display:block;
  padding-block-start:4px;
  text-box:trim-both cap alphabetic;
}
.evaluation-source-icon {
  inline-size:11px; block-size:11px; margin-block-start:5px; color:var(--muted);
  fill:none; stroke:currentColor; stroke-width:1.25; stroke-linecap:round; stroke-linejoin:round;
}
.evaluation-model-link:is(:hover,:focus-visible) .evaluation-source-icon {
  color:var(--table-accent);
}
.evaluation-model-link .model-mark {
  inline-size:23px; block-size:23px; padding:4px; border-radius:5px;
}
.catalog-rates a:hover strong { text-decoration:underline; text-underline-offset:3px; }
.catalog-rates strong { display:block; font:550 14px/1.4 Inter,sans-serif; }
.catalog-rates code { display:block; margin-top:3px; color:var(--muted); font:11px/1.5 var(--mono); overflow-wrap:anywhere; }
.input-symbols {
  position:relative; display:inline-flex; align-items:center; gap:9px; min-height:28px;
  padding-inline:2px; vertical-align:middle; color:var(--ink); border-radius:3px;
}
.input-symbols svg {
  width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.65;
  stroke-linecap:round; stroke-linejoin:round;
}
.input-symbols .vision-icon { color:var(--table-accent); }
.input-symbols:focus-visible { outline:1px solid var(--table-accent); outline-offset:3px; }
.input-symbols:is(:hover,:focus)::after {
  content:attr(aria-label); position:absolute; bottom:100%; left:0; z-index:1;
  padding:5px 8px; border:1px solid var(--line); border-radius:5px;
  background:var(--table-band); color:var(--ink); font:12px/1.4 Inter,sans-serif; white-space:nowrap;
}
@container evaluations (max-width:48rem) {
  .matrix-tools [role=group] { border-radius:13px; }
  .matrix-tools button { padding:6px 9px; }
  .catalog-rates, .catalog-rates tbody { display:block; }
  .catalog-rates thead { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
  .catalog-rates tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:12px; border:0; border-bottom:1px solid var(--line); }
  .catalog-rates tr.catalog-group { display:block; padding:0; }
  .catalog-rates .catalog-group th { padding-inline:12px; border:0; }
  .catalog-rates :is(td,th) { display:block; margin:0; padding:0; border:0; }
  .catalog-rates th[scope=row] { grid-column:1/-1; }
  .catalog-rates td[data-price] + td { border-inline-start:1px solid var(--line); padding-inline-start:8px; }
  .catalog-rates td::before { content:attr(data-label); display:block; margin:0 0 2px; color:var(--muted); font:11px/1.5 var(--mono); }
  .catalog-rates .input-types { grid-column:1/3; }
  .catalog-rates td:last-child { grid-column:3; grid-row:2; }
  .catalog-rates .input-types::before { content:none; }
}
.model-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,155px),1fr)); gap: 0 18px; margin: 14px 0; }
.model-stats > div { padding-block: 12px; border-top: 1px solid var(--line); }
.model-stats dt { color: var(--muted); font-size: 13px; }
.model-stats dd { margin: 5px 0 0; color: var(--ink); font: 15px/1.4 var(--mono); }
.detail-benchmark { margin: 28px 0; }
.detail-benchmark p { color: var(--muted); }
.detail-benchmark a, .detail-block#evaluations a { text-decoration: underline; text-underline-offset: 3px; }
.eval-scroll {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.eval-scroll .eval-matrix {
  display: table;
  table-layout: fixed;
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.eval-matrix thead {
  display: table-header-group;
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
}
.eval-matrix tbody { display: table-row-group; }
.eval-matrix tr { display: table-row; }
.eval-matrix :is(th,td) {
  display: table-cell;
  padding: 10px clamp(5px, .6cqi, 12px);
  white-space: normal;
  overflow-wrap: anywhere;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
  color: var(--ink);
  background: var(--bg);
  font: 13px/1.45 var(--mono);
}
.eval-matrix td::before { content: none; }
.eval-matrix small { display: block; color: var(--muted); font: 11px/1.5 var(--mono); }
.eval-matrix small a { color: inherit; text-underline-offset: 2px; }
.eval-matrix small a:hover { text-decoration: underline; }
.eval-matrix thead th {
  vertical-align: top;
  padding-block: 7px;
  background: var(--table-band);
}
.eval-matrix :is(thead th:first-child, th[scope=row]) {
  border-inline-end: 1px solid var(--line);
  text-align: start;
}
.eval-matrix thead th:first-child { width: 14%; }
.eval-matrix th[scope=row] { font-family: inherit; }
.eval-matrix .eval-group th {
  text-align: start;
  padding-block: 7px;
  background: var(--table-band);
  color: var(--muted);
}
.eval-matrix strong { color: var(--table-accent); }
@container evaluations (max-width: 60rem) {
  .eval-wide { display: none; }
  .eval-pairs { display: grid; gap: 16px; }
  .eval-matrix thead th:first-child { width: 31%; }
}
@container evaluations (max-width: 54rem) {
  .matrix-tools input[type=search] { margin-inline-start: 0; }
}


.uncensored-label {
  display:inline-flex;
  align-items:center;
  gap:4px;
  vertical-align:middle;
  padding:2px 7px 2px 6px;
  border-radius:999px;
  background:light-dark(#faeadb,#3a2b23);
  color:light-dark(#783e1b,#f4c399);
  font:600 11px/15px Inter,"Segoe UI",sans-serif;
  letter-spacing:.01em;
  white-space:nowrap;
}
.uncensored-label::before {
  content:"";
  width:12px;
  height:12px;
  flex:none;
  background-color:currentColor;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8V5a3.6 3.6 0 0 1 6.9-1.4'/%3E%3Crect x='3.2' y='8' width='11.6' height='7.7' rx='2'/%3E%3Cpath d='M9 11.1v1.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
@media(forced-colors:active) {
  .uncensored-label { border:1px solid currentColor; }
  .uncensored-label::before { forced-color-adjust:none; }
}
.choice-page .intro { padding-bottom: 0; }
.pricing-page .intro { padding-top: clamp(24px,4vw,60px); }
.pricing-page .budget-tool { margin-top: clamp(18px,2vw,32px); }
.catalog-units label { display: inline-flex; align-items: center; gap: 7px; }
.budget-tool, .model-finder {
  --choice-accent: var(--fire, light-dark(#8b410c,#ffb47f));
  margin-top: clamp(26px,3.4vw,50px);
  padding: clamp(16px,2.4vw,32px);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.budget-tool [hidden], .model-finder [hidden] { display: none !important; }
.budget-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.budget-head h2, .finder-intro h2 { margin: 0; font-size: clamp(25px,2.9vw,38px); line-height: 1.13; letter-spacing: -.045em; }
.budget-head p, .finder-intro p, .budget-assumptions p, .finder-assumption { color: var(--muted); line-height: 1.5; }
.budget-head p, .finder-intro p { margin-top: 6px; }
.budget-tool .inline, .model-finder .inline { margin: 0; font-size: 13px; }
.budget-tool .period-switch { margin: 22px 0 18px; }
.budget-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
.budget-result { padding: clamp(16px,2vw,28px); background: var(--surface); border-radius: 9px; display: flex; flex-direction: column; align-items: flex-start; }
.budget-tool #budget-field { width: min(100%, 14rem); }
.budget-total { margin-block: 22px; display: grid; gap: 4px; }
.budget-total > span, .budget-tool #unit-price { font-size: 13px; color: var(--muted); }
.budget-total output { font: 500 clamp(34px,3.8vw,58px)/1.1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.055em; overflow-wrap: anywhere; }
.budget-tool #cost-help { margin: 0 0 12px; }
.choice-links { margin-top: auto; display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; }
.budget-assumptions { padding: 0 0 0 clamp(18px,3vw,42px); display: grid; align-content: start; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.budget-assumptions select, .model-finder select { text-overflow: ellipsis; }
.budget-assumptions .token-fields, .budget-assumptions p, .budget-assumptions #monthly-fields { grid-column: 1 / -1; margin: 0; }
.token-fields { padding: 0; border: 0; min-width: 0; }
.token-fields legend { font: 12px var(--mono); color: var(--muted); }
.token-fields .fields { margin-top: 8px; }
.budget-assumptions p, .finder-assumption { font-size: 13px; }
.budget-assumptions #monthly-fields label { margin-top: 8px; max-width: 16rem; }
.budget-tool #comparison { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); max-width: none; }
.budget-tool #comparison summary { cursor: pointer; width: fit-content; font-size: 14px; }
.budget-tool #comparison ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 36px; }
.model-finder #finder-controls { margin-block: 20px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
#finder-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-block: 1px solid var(--line); }
#finder-results article { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(12px,1.8vw,24px) 16px clamp(12px,1.8vw,24px) 0; }
#finder-results article + article { border-left: 1px solid var(--line); padding-left: clamp(16px,2vw,28px); }
.match-rank { color: var(--choice-accent); font: 12px var(--mono); }
#finder-results h3 { margin-top: 6px; font: 500 clamp(19px,1.8vw,25px)/1.25 var(--sans); letter-spacing: -.034em; }
.match-model:hover { text-decoration: underline; }
.match-reason { padding-block: 8px 15px; color: var(--muted); font-size: 13px; }
.finder-assumption { margin-top: 12px; }
@media(max-width: 720px) {
  .budget-grid, .model-finder #finder-controls { grid-template-columns: minmax(0,1fr); }
  .budget-assumptions { margin-top: 18px; padding: 0; }
  .budget-tool #comparison ul { grid-template-columns: 1fr; }
}
@media(max-width: 520px) {
  .budget-assumptions, #finder-results { grid-template-columns: minmax(0,1fr); }
  #finder-results article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .token-fields .fields { gap: 6px; }
  .token-fields label { align-content: space-between; }
  .budget-tool .period-switch { max-width: 100%; }
  .budget-tool .period-switch label { padding-inline: 8px; }
}
.model-history { min-width: 0; }
.detail .anchors { flex-wrap: wrap; gap: 0 22px; }
.model-history .note { margin: 0 0 16px; }
.history-event { border-top: 1px solid var(--line); }
.history-event summary { display: flex; gap: 12px; align-items: baseline; padding: 14px 0; cursor: pointer; }
.history-event summary::before { content: "▸"; color: var(--muted); }
.history-event[open] summary::before { content: "▾"; }
.history-event time { margin-inline-start: auto; color: var(--muted); font: 12px/1.5 var(--mono); }
.history-table { max-inline-size: 100%; overflow: auto; }
.history-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.history-table th, .history-table td { text-align: start; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.history-table th { font-weight: 500; }
.history-table thead { position: sticky; inset-block-start: 0; background: var(--surface); }
.history-table td { font-variant-numeric: tabular-nums; }
.history-table td:nth-child(2) { color: var(--muted); }
@media (max-width: 540px) {
  .history-event summary { flex-wrap: wrap; gap: 6px; }
  .history-event time { width: 100%; margin-inline-start: 17px; }
  .history-table th, .history-table td { padding: 8px 5px; font-size: 12px; overflow-wrap: anywhere; }
}
