/* AI Model Tracker. Uses the site's tokens from site.css. */
.tracker { padding-bottom: 4rem; }
.tracker [hidden] { display: none; }
.mt-updated { margin: -.4rem 0 1.2rem; color: var(--muted); font: 500 .82rem/1.5 var(--sans); }
.mt-updated a { color: var(--ink-soft); }
.mt-section { margin-top: clamp(2.4rem, 5vw, 3.8rem); }
.mt-section:first-of-type { margin-top: 1rem; }
.mt-intro { max-width: 780px; margin: .7rem 0 1.2rem; color: var(--ink-soft); }
.mt-note { max-width: 860px; margin-top: 1rem; color: var(--muted); font-size: .88rem; }

.mt-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.mt-filters button { padding: .42rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); font: 600 .82rem/1.2 var(--sans); cursor: pointer; }
.mt-filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

.mt-frame { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; -webkit-overflow-scrolling: touch; }
.mt-table { width: 100%; min-width: 1080px; border-collapse: separate; border-spacing: 0; font-size: .84rem; font-variant-numeric: tabular-nums; }
.mt-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mt-table th, .mt-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; white-space: nowrap; }
.mt-table thead th { position: sticky; top: 0; z-index: 2; background: var(--panel); vertical-align: bottom; }
.mt-table thead button { padding: 0; border: 0; background: none; color: var(--ink-soft); font: 600 .74rem/1.25 var(--sans); white-space: normal; text-align: right; cursor: pointer; }
.mt-table thead button[aria-sort]::after { content: " ↓"; color: var(--accent); }
.mt-table thead button[aria-sort="ascending"]::after { content: " ↑"; }
.mt-table .mt-model-h, .mt-table .mt-model { position: sticky; left: 0; z-index: 1; text-align: left; background: #fff; white-space: normal; min-width: 210px; max-width: 240px; box-shadow: 1px 0 0 var(--line); }
.mt-table .mt-model-h { z-index: 3; background: var(--panel); }
.mt-table .mt-model-h button { text-align: left; }
.mt-model strong { display: block; font-size: .88rem; }
.mt-model span { display: block; margin-top: .1rem; color: var(--muted); font-size: .74rem; font-weight: 500; line-height: 1.35; }
.mt-tags { display: flex !important; flex-wrap: wrap; gap: .25rem; margin-top: .3rem !important; }
.mt-tag { padding: .05rem .45rem; border-radius: 999px; font: 600 .66rem/1.5 var(--sans); font-style: normal; }
.mt-tag.is-closed { background: var(--panel-2); color: var(--ink-soft); }
.mt-tag.is-open { background: #ecebfb; color: #4b3cc0; }
.mt-tag.is-premium { background: var(--accent-soft); color: var(--accent); }
.mt-tag.is-local { background: #e7f6ef; color: #12805a; }
.mt-eci { font-weight: 700; }
.mt-s { background: color-mix(in srgb, var(--accent) calc(var(--s) * var(--s) * 34%), #fff); color: var(--ink); }
.mt-s.is-top { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 700; }
.mt-na { color: var(--line-strong); }
.mt-table tbody tr:last-child > * { border-bottom: 0; }
.mt-table tbody tr[hidden] { display: none; }

.mt-about { margin-top: 1rem; }
.mt-about summary { cursor: pointer; color: var(--ink-soft); font: 600 .86rem/1.4 var(--sans); }
.mt-about dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.4rem; margin: .8rem 0 0; }
.mt-about dt { font-weight: 650; font-size: .88rem; }
.mt-about dd { margin: .1rem 0 0; color: var(--ink-soft); font-size: .84rem; }
@media (max-width: 680px) { .mt-about dl { grid-template-columns: 1fr; } }

.mt-figure { margin: 0; padding: clamp(1rem, 2.4vw, 1.6rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.mt-plot { overflow-x: auto; }
.mt-svg { display: block; width: 100%; min-width: 760px; height: auto; font-family: var(--sans); }
.mt-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0 0 .7rem; padding: 0; list-style: none; color: var(--ink-soft); font: 500 .82rem/1.4 var(--sans); }
.mt-legend li { display: inline-flex; align-items: center; gap: .45rem; }
.mt-legend li::before { content: ""; width: 11px; height: 11px; border-radius: 50%; }
.mt-legend .is-closed::before { background: var(--ink); }
.mt-legend .is-open::before { background: #b7aef0; }
.mt-legend .is-premium::before { background: #fff; box-shadow: 0 0 0 2px var(--accent); }
.mt-grid { stroke: var(--line); stroke-dasharray: 2 4; }
.mt-lane { stroke: var(--panel-2); stroke-width: 1; }
.mt-tick { fill: var(--muted); font-size: 12px; }
.mt-org { fill: var(--ink); font-size: 12.5px; font-weight: 600; }
.mt-last { fill: var(--ink-soft); font-size: 11.5px; }
.mt-last-date { fill: var(--muted); }
.mt-head { fill: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.mt-dot { stroke: #fff; stroke-width: 1.5; cursor: pointer; outline: none; }
.mt-dot.is-closed { fill: var(--ink); }
.mt-dot.is-open { fill: #b7aef0; }
.mt-dot.is-premium { fill: #fff; stroke: var(--accent); stroke-width: 2.4; }
.mt-dot:hover, .mt-dot:focus-visible { r: 8; }
.mt-figure figcaption { margin-top: .8rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.mt-figure figcaption a, .mt-sources a { color: var(--ink-soft); }
.mt-sources ul { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }
.mt-sources li { margin: .3rem 0; }
.mt-tip { position: fixed; z-index: 70; max-width: 320px; padding: .55rem .75rem; border-radius: 10px; background: var(--dark); color: var(--dark-text); font: 500 .8rem/1.45 var(--sans); pointer-events: none; box-shadow: var(--shadow); }
@media (max-width: 560px) { .mt-table .mt-model-h, .mt-table .mt-model { min-width: 138px; max-width: 150px; } .mt-model span { font-size: .7rem; } .mt-table th, .mt-table td { padding: .5rem .45rem; } }
.mt-mem { text-align: left !important; }
.mt-chips { display: inline-flex; gap: .2rem; }
.mt-chip { display: inline-flex; flex-direction: column; align-items: center; min-width: 2.35rem; padding: .15rem .25rem; border-radius: 6px; background: #e7f6ef; color: #0f6e4d; font: 600 .68rem/1.25 var(--sans); }
.mt-chip b { color: var(--muted); font-size: .6rem; font-weight: 600; }
.mt-chip.is-tight { background: #f3f8e9; color: #6a7f2e; }
.mt-chip.is-off { background: var(--panel); color: var(--line-strong); }
.mt-mem-na { color: var(--muted); font-size: .76rem; }
.mt-mem-h button { text-align: left !important; }
