:root {
  color-scheme: light;
  --canvas: #f5f5f7;
  --surface: #f1f3f5;
  --surface-raised: #ffffff;
  --ink: #0b1220;
  --ink-soft: #5f6972;
  --ink-faint: #646d76;
  --line: #dfe3e6;
  --line-strong: #c7cdd2;
  --blue: var(--sima-blue);
  --blue-soft: color-mix(in srgb, var(--sima-blue) 15%, var(--surface-raised));
  --filter-surface: color-mix(in srgb, var(--surface) 88%, var(--blue-soft));
  --green: var(--sima-green);
  --green-soft: color-mix(in srgb, var(--sima-green) 15%, var(--surface-raised));
  --red: #b6473d;
  --red-soft: #f7e8e4;
  --amber: var(--sima-orange);
  --amber-soft: color-mix(in srgb, var(--sima-orange) 15%, var(--surface-raised));
  --violet: var(--sima-purple);
  --violet-soft: var(--sima-purple);
  --on-blue: #ffffff;
  --brand: var(--sima-green);
  --brand-soft: var(--sima-teal);
  --on-brand: #ffffff;
  --font-body: "Roboto", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 8px 24px rgba(31, 42, 50, 0.10);
  --portal-header-height: 60px;
  --section-nav-height: 3.25rem;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #171a1d;
  --surface: #202428;
  --surface-raised: #252a2e;
  --ink: #edf0ec;
  --ink-soft: #adb7b8;
  --ink-faint: #909b9d;
  --line: #323a3d;
  --line-strong: #4a5558;
  --filter-surface: color-mix(in srgb, var(--surface) 88%, var(--blue-soft));
  --red: #f08e82;
  --red-soft: #472b2a;
  --violet-soft: color-mix(in srgb, var(--sima-purple) 15%, var(--surface-raised));
  --on-blue: #10202e;
  --brand-soft: color-mix(in srgb, var(--sima-teal) 15%, var(--surface-raised));
  --on-brand: #10241a;
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root[data-ui-mode="customer"] .developer-only,
:root[data-ui-mode="customer"] .detail-tag-branch,
:root[data-ui-mode="customer"] .detail-tag-compiler { display: none; }
html { min-height: 100%; background: var(--canvas); }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--font-body); font-size: 1rem; line-height: 1.5; font-kerning: normal; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
select option { color: var(--ink); background-color: var(--surface-raised); }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1100; transform: translateY(-160%); padding: 10px 14px; color: var(--surface); background: var(--ink); text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

.topbar { height: 60px; padding: 0 clamp(22px, 4vw, 70px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--surface-raised); position: sticky; top: 0; z-index: 20; }
.topbar-primary { min-width: 0; display: flex; align-items: center; gap: clamp(22px, 3vw, 42px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 0.88rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark { display: block; width: 25px; height: 26px; object-fit: contain; }
.product-nav { display: flex; align-items: stretch; align-self: stretch; }
.product-nav a { display: flex; align-items: center; padding: 0 0.75rem; color: var(--ink); font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.product-nav span { color: inherit; }
.product-nav a:hover, .product-nav [aria-current="page"] { color: var(--blue); }
.product-nav a:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.developer-center-shell-enabled body { padding-top: var(--portal-header-height); }
.developer-center-shell-enabled .portal-fallback { display: none; }
.portal-fallback { z-index: 30; }
.portal-nav { display: flex; align-items: center; gap: 22px; }
.portal-nav a { color: var(--ink-soft); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.portal-nav a:hover { color: var(--ink); }
.portal-nav [aria-current="page"] { color: var(--blue); }
.portal-menu-toggle { display: none; }
.sectionbar { height: var(--section-nav-height); position: sticky; top: var(--portal-header-height); z-index: 20; border-bottom: 1px solid var(--line); background: var(--surface-raised); }
.sectionbar-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-inline: 1rem; }
.sectionbar .environment { font-size: 10px; }
.environment { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.environment i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; cursor: pointer; transition: background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.icon-button:hover { border-color: var(--line); background: var(--surface); }
.icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.product-nav .nav-short { display: none; }

main { width: min(1240px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 96px; }
.kicker { margin: 0 0 10px; color: var(--ink-faint); font-size: 0.75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.workspace:not([data-view="catalog"]) .catalog-view, .workspace:not([data-view="model"]) .detail-pane, .workspace:not([data-view="compare"]) .compare-pane { display: none; }

.catalog-intro { padding: clamp(32px, 6vw, 56px) 0 24px; }
.catalog-intro h2 { margin: 0; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
.catalog-intro p { margin: 12px 0 0; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.55; }

.toolbar { display: flex; align-items: center; gap: 12px; }
.search-field { min-width: 0; max-width: 640px; flex: 1; height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-raised); transition: border-color 150ms ease, box-shadow 150ms ease; }
.search-field svg { width: 20px; flex: 0 0 auto; fill: none; stroke: var(--ink-faint); stroke-width: 1.7; stroke-linecap: round; }
.search-field input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 1rem; }
.search-field input::placeholder { color: var(--ink-faint); }
.search-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.search-field:focus-within svg { stroke: var(--blue); }
.filter-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-soft); background: var(--surface-raised); font-size: 14px; font-weight: 600; cursor: pointer; }
.filter-toggle:hover, .filter-toggle[aria-expanded="true"] { color: var(--ink); }
.filter-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.filter-toggle svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.filter-count { min-width: 22px; padding: 2px 6px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 12px; line-height: 18px; text-align: center; }

.catalog-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: start; gap: 40px; margin-top: 32px; }
.filter-drawer { position: sticky; top: calc(var(--portal-header-height) + var(--section-nav-height) + 24px); max-height: calc(100vh - var(--portal-header-height) - var(--section-nav-height) - 40px); overflow-y: auto; display: grid; gap: 20px; }
.filter-drawer label:not(.switch-row) { display: grid; gap: 5px; }
.filter-drawer label > span, .toggle-filter > span { color: var(--ink-soft); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.filter-drawer select { width: 100%; padding: 8px 26px 8px 10px; border: 1px solid transparent; border-bottom-color: var(--line-strong); border-radius: 8px; outline: 0; color: var(--ink); background: transparent; font-size: 14px; cursor: pointer; }
.filter-drawer select:focus-visible { outline: 2px solid var(--ink-faint); outline-offset: 3px; }
.filter-drawer select[data-pointer-focus]:focus-visible { outline: none; }
.filter-drawer select:disabled { opacity: .45; cursor: not-allowed; }
.toggle-filter { display: grid; align-content: start; gap: 5px; }
.switch-row { min-height: 33px; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i { width: 36px; height: 20px; flex: 0 0 auto; position: relative; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); transition: border-color 160ms ease, background 160ms ease; }
.switch-row i::after { content: ""; width: 14px; height: 14px; position: absolute; top: 2px; left: 2px; border-radius: 50%; background: var(--ink-faint); transition: background 160ms ease, transform 160ms ease; }
.switch-row input:checked + i { border-color: var(--blue); background: var(--blue-soft); }
.switch-row input:checked + i::after { background: var(--blue); transform: translateX(16px); }
.switch-row input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 3px; }
.switch-row b { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.toggle-filter small { color: var(--ink-soft); font-size: 12px; line-height: 1.4; }
.text-button { justify-self: start; padding: 8px 0; border: 0; color: var(--blue); background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; }
.text-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.results-pane { min-width: 0; }
.results-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.results-summary { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.results-summary .text-button { padding: 0; }
.result-count { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.catalog-layout-toggle { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.catalog-layout-toggle[hidden] { display: none; }
.catalog-layout-toggle button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 5px 11px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink-soft); font: inherit; font-size: 13px; cursor: pointer; }
.catalog-layout-toggle button[aria-pressed="true"] { border-color: var(--line); color: var(--ink); background: var(--surface-raised); box-shadow: 0 1px 3px #0000000a; }
.catalog-layout-toggle button:hover { color: var(--ink); }
.catalog-layout-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.catalog-layout-toggle button:focus-visible, .catalog-model-link:focus-visible, .catalog-table select:focus-visible, .catalog-table-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.catalog-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.catalog-task-group + .catalog-task-group { margin-top: 32px; }
.catalog-task-group h3 { margin: 0 0 14px; color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.catalog-table { width: 100%; min-width: 640px; table-layout: fixed; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.catalog-table th, .catalog-table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.catalog-table thead th { background: var(--surface); color: var(--ink-faint); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.catalog-table thead th:nth-child(1) { width: 36%; }
.catalog-table thead th:nth-child(2) { width: 20%; }
.catalog-table thead th:nth-child(3) { width: 20%; }
.catalog-table thead th:nth-child(4) { width: 24%; }
.catalog-table tbody tr:last-child > * { border-bottom: 0; }
.catalog-table tbody tr:hover { background: var(--surface); }
.catalog-model-link { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.45; text-align: left; cursor: pointer; }
.catalog-model-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.catalog-model-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: 0; }
.catalog-model-link:hover svg, .catalog-model-link:focus-visible svg { opacity: 1; }
.catalog-table select { max-width: 150px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface-raised); font: 12px var(--font-mono); cursor: pointer; }
.catalog-precision { white-space: nowrap; font: 12px var(--font-mono); color: var(--ink-soft); }
.catalog-reading { display: grid; gap: 3px; line-height: 1.4; white-space: nowrap; }
.catalog-reading + .catalog-reading { margin-top: 10px; }
.catalog-reading small { color: var(--ink-soft); font-size: 11px; white-space: normal; }
.catalog-pending, .catalog-unavailable { color: var(--ink-faint); font-size: 12px; }
.result-list[data-layout="cards"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.result-list[data-layout="rows"] { border-top: 1px solid var(--line); }
.model-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface-raised); text-align: left; cursor: pointer; transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.model-card:hover { border-color: color-mix(in srgb, var(--blue) 72%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue) 48%, transparent), 0 0 24px color-mix(in srgb, var(--blue) 36%, transparent); transform: translateY(-1px); }
.model-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.model-card-image { display: block; aspect-ratio: 5 / 2; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface); }
.model-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.model-card-image-empty { display: grid; place-items: center; }
.model-card-image-empty img { width: 40px; height: 40px; object-fit: contain; opacity: .35; }
.model-card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.model-card-body strong { font-size: 1.125rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.model-card-description { color: var(--ink-soft); font-size: 0.875rem; line-height: 1.5; }
.model-card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; padding-top: 6px; }
.model-card-tag { color: var(--blue); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.model-card-variants { color: var(--ink-soft); font-size: 12.5px; }


.run-entry { min-width: 0; border-bottom: 1px solid var(--line); }
.run-row { width: 100%; min-width: 0; min-height: 82px; display: grid; grid-template-columns: minmax(200px, 1.6fr) minmax(155px, 1fr) 98px minmax(145px, .9fr) 22px; align-items: center; gap: 17px; padding: 12px 8px; border: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; transition: background 150ms ease; }
.run-row:hover { background: var(--surface); }
.run-row.selected { background: var(--blue-soft); }
.run-row:focus-visible { position: relative; outline: 2px solid var(--blue); outline-offset: -2px; z-index: 1; }
.run-identity, .run-branch, .run-compiler, .run-date { min-width: 0; display: grid; gap: 6px; font-size: 14px; }
.run-identity strong { overflow: hidden; font-size: 1rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.run-identity small { overflow: hidden; color: var(--ink-soft); text-overflow: ellipsis; white-space: nowrap; }
.run-branch, .run-compiler { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-row small, .run-branch small, .run-compiler small { color: var(--ink-faint); font-size: 13px; }
.run-date { justify-items: end; text-align: right; color: var(--ink-soft); }
.run-date small { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.row-arrow { display: grid; place-items: center; opacity: 0; transform: translateX(-5px); transition: opacity 180ms ease, transform 180ms ease; }
.run-row:hover .row-arrow, .run-row.selected .row-arrow { opacity: 1; transform: none; }
.row-arrow svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.load-more { width: 100%; margin-top: 20px; padding: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.load-more:hover { border-color: var(--blue); color: var(--blue); }
.load-more:disabled { opacity: .5; }



.error-state { min-height: 320px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.error-state h2 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 500; }
.error-state > p:last-of-type { max-width: 360px; margin: 0; color: var(--ink-soft); line-height: 1.6; }

.detail-pane { min-width: 0; padding-top: 24px; }
/* Switching views moves focus to the shown view's start for screen readers; that container is not a control. */
.detail-pane:focus, .compare-pane:focus, #result-title:focus, #compare-title:focus { outline: none; }

/* Compare: task overview, selectable measurements, and exact values. */
.compare-pane { min-width: 0; }
.compare-filters { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.compare-filters label, .compare-chart-controls label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 12px; }
.compare-filters label { min-width: 200px; }
.compare-filters select, .compare-chart-controls select { max-width: 100%; min-width: 0; padding: 10px 34px 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: var(--surface-raised); font: inherit; font-size: 14px; cursor: pointer; }
.compare-filters select:focus-visible, .compare-chart-controls select:focus-visible, .compare-table-wrap:focus-visible, .compare-chart-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.compare-chart-panel { padding: 26px 28px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-raised); }
.compare-chart-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px; }
.compare-chart-header h3, .compare-section-heading h3 { margin: 0; color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.compare-chart-header p { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; }
.compare-chart-controls { display: flex; flex-wrap: wrap; gap: 12px; }
.compare-chart-controls select { max-width: 280px; font-size: 12px; }
.compare-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.compare-legend:not(:empty) { margin-top: 20px; }
.compare-legend button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface); font-size: 12px; cursor: pointer; }
.compare-legend .compare-column-marker { margin: 0; }
.compare-legend button > span:last-child { margin-left: 5px; color: var(--ink-soft); }
.compare-legend button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.compare-chart-scroll { overflow-x: auto; }
.compare-chart { display: block; width: 100%; min-width: 550px; margin: 14px 0 0; overflow: visible; }
.compare-chart-grid line { stroke: var(--line); stroke-dasharray: 3 6; }
.compare-chart-grid text { fill: var(--ink-soft); font-size: 12px; }
.compare-axis-title { fill: var(--ink-soft); font-size: 13px; }
[data-color="0"] { --compare-color: var(--blue); }
[data-color="1"] { --compare-color: var(--green); }
[data-color="2"] { --compare-color: var(--amber); }
.compare-point { cursor: pointer; outline: none; }
.compare-point[aria-disabled="true"] { cursor: default; }
.compare-point-hit { fill: transparent; }
.compare-point-dot { fill: var(--compare-color, var(--ink-faint)); stroke: var(--surface-raised); stroke-width: 3px; }
.compare-point[aria-pressed="false"] .compare-point-dot { opacity: .75; }
.compare-point:hover .compare-point-dot, .compare-point:focus-visible .compare-point-dot { opacity: 1; stroke: var(--ink); stroke-width: 2px; r: 9px; }
.compare-tooltip { position: fixed; z-index: 40; width: 290px; max-width: calc(100vw - 24px); padding: 16px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); background: var(--surface-raised); box-shadow: var(--shadow); pointer-events: none; font-size: 13px; }
.compare-tooltip > strong { display: block; margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.compare-tooltip dl { display: grid; gap: 8px; margin: 0; }
.compare-tooltip dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.compare-tooltip dt { color: var(--ink-soft); }
.compare-tooltip dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.compare-chart-note { margin: 12px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.compare-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 32px 0 16px; }
.compare-section-heading > span { color: var(--ink-soft); font-size: 13px; }
.compare-table-wrap { position: relative; overflow-x: auto; }
.compare-table-wrap { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.compare-table { table-layout: fixed; min-width: 690px; }
.compare-table th, .compare-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.compare-table thead { background: var(--surface); }
.compare-table thead th { color: var(--ink); font-size: 16px; font-weight: 600; vertical-align: top; }
.compare-table thead td { width: 190px; color: var(--ink-soft); font-size: 12px; }
.compare-table thead th small { display: block; margin: 8px 0 0; color: var(--ink-soft); font: 400 12px var(--font-mono); }
.compare-column-heading { display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: start; gap: 8px; }
.compare-remove { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-soft); background: transparent; font: inherit; font-size: 22px; cursor: pointer; }
.compare-remove:hover { color: var(--ink); background: var(--surface-raised); border-color: var(--ink-soft); }
.compare-remove:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.compare-column-marker { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--compare-color); }
.compare-table tbody th[scope="row"] { color: var(--ink-soft); font-weight: 400; }
.compare-table .compare-group th { padding-block: 11px; color: var(--ink-soft); background: var(--surface); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.compare-table .best { display: inline-block; padding: 3px 8px; margin-left: -8px; border-radius: 5px; color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.compare-table tr:last-child > * { border-bottom: 0; }
.compare-loading { display: flex; align-items: center; gap: 10px; }
.compare-add { margin-top: 20px; }
.compare-add label { width: min(100%, 420px); }
.compare-add select { width: 100%; max-width: none; }
.compare-add select:disabled { cursor: default; opacity: .6; }
.compare-table thead .catalog-model-link { font-size: inherit; }
.compare-empty { padding: 52px 24px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--ink-soft); text-align: center; }
.detail-content { min-width: 0; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink-soft); font-size: 14px; }
.crumbs > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.close-detail { padding: 0; border: 0; color: var(--blue); background: transparent; font: inherit; cursor: pointer; }
.close-detail:hover { text-decoration: underline; text-underline-offset: 3px; }
.close-detail:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.detail-title { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 22px 0 28px; }
.detail-title:not(:has(.model-card-hero)) { grid-template-columns: minmax(0, 1fr); }
.detail-title-copy { min-width: 0; }
.detail-title h2 { margin: 0 0 14px; font-size: clamp(2rem, 4.6vw, 2.875rem); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
.lede { margin: 18px 0 0; color: var(--ink); font-size: 1.125rem; line-height: 1.5; }
.detail-title-actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin: 6px 0 26px; }
.download-action { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; transition: filter 150ms ease, border-color 150ms ease, background 150ms ease; }
.download-action { border: 1px solid var(--blue); color: var(--on-blue); background: var(--blue); }
.download-action:hover { filter: brightness(1.08); }
.download-action small { font-size: 13px; font-weight: 500; opacity: .85; }
.download-action:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.download-action:disabled { opacity: .6; cursor: wait; }
.download-action svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.download-unavailable { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-soft); background: none; font-size: 15px; font-weight: 600; cursor: pointer; }
.download-unavailable:hover { color: var(--ink); }
.download-unavailable svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.detail-links { display: flex; align-items: center; gap: 8px; }
.model-source-link, .original-model-link, .mpk-validation-mark { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); background: var(--surface-raised); transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.model-source-link:hover, .original-model-link:hover, .mpk-validation-mark:hover { border-color: var(--ink-soft); background: var(--surface); transform: translateY(-1px); }
.model-source-link:hover { color: var(--ink); }
.model-source-link:focus-visible, .original-model-link:focus-visible, .mpk-validation-mark:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.model-source-link svg { width: 20px; fill: currentColor; }
.original-model-link svg { width: 20px; height: 19px; }
.external-model-link:hover { color: var(--ink); }
.external-model-link svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mpk-validation-mark { color: var(--green); font-size: 17px; font-weight: 800; cursor: help; }
.detail-links > [data-tooltip] { position: relative; }
.detail-links > [data-tooltip]::after { content: attr(data-tooltip); width: max-content; max-width: min(300px, calc(100vw - 44px)); position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; padding: 9px 11px; border: 1px solid var(--line); color: var(--ink); background: var(--surface-raised); box-shadow: var(--shadow); font-size: 12px; font-weight: 500; line-height: 1.45; text-align: left; opacity: 0; pointer-events: none; transform: translateY(-3px); transition: opacity 140ms ease, transform 140ms ease; }
.detail-links > [data-tooltip]:hover::after, .detail-links > [data-tooltip]:focus-visible::after { opacity: 1; transform: none; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-tag { max-width: 100%; min-height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid transparent; border-radius: 999px; color: var(--ink-soft); background: var(--surface); font-size: 12px; }
.detail-tag svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.detail-tag-task { color: var(--blue); background: var(--blue-soft); }
.detail-tag-model-type { color: color-mix(in srgb, var(--sima-purple) 45%, var(--ink)); background: color-mix(in srgb, var(--sima-purple) 25%, var(--surface-raised)); }
.detail-tag-branch svg { stroke: var(--blue); }
.detail-tag-license svg { stroke: var(--amber); }
.detail-tag > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-build-switcher { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.detail-build-switcher > strong { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.detail-variant-help { flex-basis: 100%; margin: 0; color: var(--ink-soft); font-size: 13px; }
.detail-variant-tabs { max-width: 100%; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.detail-variant-tab { min-width: 0; padding: 6px 14px; border: 0; border-radius: 7px; color: var(--ink-soft); background: transparent; font: 500 13px var(--font-mono); cursor: pointer; overflow-wrap: anywhere; transition: color 140ms ease, background 140ms ease; }
.detail-variant-tab:hover { color: var(--ink); }
.detail-variant-tab[aria-selected="true"] { color: var(--ink); background: var(--blue-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 55%, var(--line)); }
.detail-variant-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.detail-variant-single { font: 500 13px var(--font-mono); overflow-wrap: anywhere; }
.subnav { position: sticky; top: calc(var(--portal-header-height) + var(--section-nav-height)); z-index: 10; display: flex; gap: 4px; overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--canvas) 92%, transparent); backdrop-filter: blur(12px); scrollbar-width: none; }
.subnav button { flex: 0 0 auto; padding: 13px 10px; border: 0; color: var(--ink-soft); background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; }
.subnav button:first-child { padding-left: 0; }
.subnav button:hover { color: var(--ink); }
.subnav button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.detail-content > section:not(.detail-build-switcher) { padding: 44px 0 8px; scroll-margin-top: calc(var(--portal-header-height) + var(--section-nav-height) + 50px); }
.detail-content section:focus { outline: none; }
.detail-section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.detail-section-title h3 { margin: 0; font-size: 1.5rem; font-weight: 650; letter-spacing: -.01em; }
.detail-section-title > span { color: var(--ink-soft); font-size: 14px; }
.section-variant { margin-left: 8px; color: var(--ink-soft); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.section-lede { margin: -8px 0 20px; color: var(--ink-soft); font-size: 15px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.kpi { min-width: 0; display: grid; align-content: start; gap: 4px; padding: 20px 22px; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi > span { color: var(--ink-soft); font-size: 13px; }
.kpi strong { font-size: 2rem; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi strong small { margin-left: 4px; color: var(--ink-soft); font-size: 15px; font-weight: 400; letter-spacing: 0; }
.component-performance + .component-performance { margin-top: 32px; }
.component-performance > h4 { margin: 0 0 12px; font: 600 14px var(--font-mono); }
.component-performance > h4.numbered { display: flex; align-items: center; gap: 12px; font: 500 16px var(--font-body); }
.component-number { display: inline-grid; flex: none; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 500 14px var(--font-body); }
.component-section { container-type: inline-size; }
.component-pipeline { display: flex; justify-content: center; align-items: center; margin: 0 0 32px; padding: 22px 20px; border-radius: 14px; background: var(--surface); list-style: none; }
.component-pipeline > li { display: flex; align-items: center; }
.component-pipeline > li + li::before { margin: 0 12px; color: var(--ink-soft); content: "\2192"; content: "\2192" / ""; }
.component-pipeline > .pipeline-end { color: var(--ink-soft); font-size: 14px; }
.pipeline-chip { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 16px; font-weight: 500; white-space: nowrap; }
.pipeline-chip.cpu { gap: 8px; padding: 0 16px; border: 1px dashed var(--line-strong); background: transparent; color: var(--ink-soft); font-size: 15px; font-weight: 400; }
.pipeline-cpu { font-size: 12px; font-weight: 500; letter-spacing: .04em; }
/* The order never wraps partway: it is one row when it fits and one column when it does not. */
@container (max-width: 800px) {
  .component-pipeline { flex-direction: column; }
  .component-pipeline > li { flex-direction: column; }
  .component-pipeline > li + li::before { margin: 6px 0; content: "\2193"; content: "\2193" / ""; }
}
.performance-context { margin: 12px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
/* The commit and workflow that measured a result, at the end of its context line. */
.measurement-link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); text-decoration: none; }
.measurement-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.measurement-link svg { width: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; }
/* The steps a component ran, in order, each tagged with the processor it ran on. */
.execution-graph-row { display: flex; align-items: center; gap: 20px; margin-top: 12px; }
.execution-details { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 4px 8px 4px 12px; border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--ink-soft); font: inherit; font-size: 13px; cursor: pointer; transition: background 140ms ease, color 140ms ease; }
.execution-details:hover, .execution-details[aria-expanded="true"] { background: var(--surface); color: var(--ink); }
.execution-details:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.execution-details .chevron { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms ease; }
.execution-details[aria-expanded="true"] .chevron { transform: rotate(90deg); }
.execution-graph [id^="tensors:"] { margin-top: 18px; }
.execution-graph ol { display: flex; flex: 1; min-width: 0; gap: 36px; margin: 0; padding: 0; list-style: none; }
.execution-graph li { position: relative; display: flex; flex: 1 1 0; min-width: 0; align-items: center; }
.execution-graph li.execution-end { flex-grow: .7; }
.execution-graph li + li::before { position: absolute; left: -28px; width: 20px; color: var(--ink-faint); text-align: center; content: "\2192"; content: "\2192" / ""; }
.execution-step { --accent: var(--line-strong); --accent-soft: var(--surface); flex: 1; min-width: 0; min-height: 52px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; padding: 10px 14px; border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 10px; background: var(--surface-raised); font-size: 15px; font-weight: 500; }
.execution-step { text-align: left; }
.execution-step[data-execution-stage] { cursor: help; }
.execution-step[data-execution-stage]:hover { border-color: var(--ink-soft); border-top-color: var(--accent); }
.execution-step:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.execution-tooltip { position: fixed; z-index: 100; width: 320px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; padding: 16px; border: 1px solid var(--line-strong); border-top: 2px solid var(--accent, var(--line-strong)); border-radius: 10px; color: var(--ink); background: var(--surface-raised); box-shadow: var(--shadow); font-size: 13px; overflow-wrap: anywhere; }
.execution-tooltip > strong { display: block; font-size: 15px; font-weight: 600; }
.execution-tooltip p { margin: 8px 0 0; color: var(--ink-soft); line-height: 1.6; }
.execution-tooltip-processor { --accent: var(--ink-soft); --accent-soft: var(--surface); display: inline-flex; margin-top: 14px; padding: 5px 9px; border-radius: 6px; color: var(--accent); background: var(--accent-soft); font-size: 12px; font-weight: 500; }
.execution-step[data-runs-on="EV74"], .execution-tooltip[data-runs-on="EV74"], .execution-tooltip-processor[data-runs-on="EV74"] { --accent: var(--violet); --accent-soft: var(--violet-soft); }
.execution-step[data-runs-on="EV74"] small, .execution-tooltip-processor[data-runs-on="EV74"] { color: var(--ink); }
.execution-step[data-runs-on="MLA"], .execution-tooltip[data-runs-on="MLA"], .execution-tooltip-processor[data-runs-on="MLA"] { --accent: var(--blue); --accent-soft: var(--blue-soft); }
.execution-step[data-runs-on="A65"], .execution-tooltip[data-runs-on="A65"], .execution-tooltip-processor[data-runs-on="A65"] { --accent: var(--amber); --accent-soft: var(--amber-soft); }
.execution-step small { padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font: 500 11px var(--font-mono); letter-spacing: .04em; }
.execution-end .execution-step { border: 1px dashed var(--line-strong); color: var(--ink-soft); font-weight: 400; }
@container (max-width: 800px) {
  .execution-graph-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .execution-details { align-self: flex-end; }
  .execution-graph ol, .execution-graph li { flex-direction: column; align-items: stretch; }
  .execution-graph ol { gap: 0; }
  .execution-graph li + li::before { position: static; width: auto; margin: 4px 0; content: "\2193"; content: "\2193" / ""; }
}
.tensor-table { overflow-x: auto; }
.tensor-table table { width: 100%; border-collapse: collapse; color: var(--ink-soft); font: 13px var(--font-mono); font-variant-numeric: tabular-nums; }
.tensor-table th, .tensor-table td { padding: 6px 16px 6px 0; border-top: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tensor-table thead th { padding-top: 0; border-top: 0; border-bottom: 1px solid var(--line); color: var(--ink-faint); font: 500 11px var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
/* Uppercase would turn µs into a capital mu, which reads as ms. */
.mla-utilization thead small { font-size: inherit; text-transform: none; }
.tensor-table tbody th { color: var(--ink); font: 400 14px var(--font-body); }
.tensor-table tbody td:first-of-type { color: var(--ink); font-weight: 500; }
.tensor-table tbody tr:first-child > *, .tensor-table tr.continued > * { border-top: 0; }
.tensor-table tr.continued > * { padding-top: 0; }

.artifact-metadata { display: grid; grid-template-columns: minmax(100px, .35fr) minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.artifact-metadata > div { min-width: 0; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.artifact-metadata > div:first-child { margin-right: 15px; }
.artifact-metadata dt { margin-bottom: 6px; color: var(--ink-faint); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.artifact-metadata dd { min-width: 0; margin: 0; color: var(--ink); font-size: 14px; }
.artifact-hash { display: grid; grid-template-columns: minmax(0, 1fr) 25px; align-items: center; gap: 8px; }
.artifact-hash code { overflow: hidden; color: var(--ink-soft); font: 13px/1.4 var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.copy-button { width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border: 0; color: var(--ink-faint); background: transparent; cursor: pointer; }
.copy-button:hover { color: var(--blue); }
.copy-button svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.key-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.key-value { min-width: 0; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); }
.key-value:nth-child(odd) { margin-right: 15px; }
.key-value dt { margin-bottom: 6px; color: var(--ink-faint); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.key-value dd { min-width: 0; display: flex; align-items: center; gap: 5px; margin: 0; font-size: 14px; }
.key-value dd span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-value dd.mono { font-family: var(--font-mono); font-size: 13px; }
.external-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--blue); font-size: 14px; font-weight: 600; text-decoration: none; }
.external-link svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.source-block { padding: 15px; background: var(--surface); }
.source-block strong { font-size: 15px; }
.source-block > p { margin: 8px 0 10px; color: var(--ink-soft); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.source-block > div { display: grid; grid-template-columns: auto minmax(0,1fr) 25px; align-items: center; gap: 8px; }
.source-block span { color: var(--ink-faint); font-size: 13px; }
.source-block code { overflow: hidden; color: var(--ink-faint); font: 13px var(--font-mono); text-overflow: ellipsis; }
.muted-message { color: var(--ink-soft); font-size: 14px; }
.component-list { border-top: 1px solid var(--line); }
.run-identity small.run-components { color: var(--ink-faint); font: 12px var(--font-mono); }
.model-documentation-body { color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.model-documentation-body > :first-child { margin-top: 0; }
/* The README's first section follows the overview text, so its heading keeps the space above it. */
[data-model-card-body] .model-documentation-body > h3:first-child { margin-top: 30px; }
.model-documentation-body > :last-child { margin-bottom: 0; }
.model-documentation-body h3, .model-documentation-body h4, .model-documentation-body h5 { margin: 30px 0 10px; color: var(--ink); font-weight: 650; line-height: 1.25; }
.model-documentation-body h3 { font-size: 20px; }
.model-documentation-body h4 { font-size: 17px; }
.model-documentation-body h5 { font-size: 15px; }
.model-documentation-body p, .model-documentation-body ul, .model-documentation-body ol { margin: 0 0 14px; }
.model-documentation-body ul, .model-documentation-body ol { padding-left: 22px; }
.model-documentation-body a { color: var(--blue); text-underline-offset: 3px; }
.model-documentation-body code { padding: 2px 5px; background: var(--surface); font: 12px/1.5 var(--font-mono); overflow-wrap: anywhere; }
.model-documentation-body pre { overflow: auto; margin: 15px 0; padding: 15px; background: var(--surface); }
.model-documentation-body pre code { padding: 0; background: transparent; white-space: pre; }
.model-card-hero { min-width: 0; aspect-ratio: 5 / 2; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.model-card-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.model-card-table { overflow-x: auto; margin: 15px 0 18px; }
.model-card-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.model-card-table th, .model-card-table td { padding: 9px 11px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.model-card-table th { color: var(--ink); background: var(--surface); font-weight: 650; }
.fidelity-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metric-table { margin-top: 24px; }
.metric-table h4 { margin: 0 0 9px; color: var(--ink-faint); font-size: 11px; letter-spacing: .065em; text-transform: uppercase; }
.metric-table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.metric-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.metric-table th, .metric-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.metric-table thead th { color: var(--ink-faint); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.metric-table tbody th { color: var(--ink); font-weight: 600; }
.metric-table tbody td { color: var(--ink-soft); }
.chart-control { min-width: min(230px, 52%); display: grid; gap: 4px; color: var(--ink-faint); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.chart-control select { width: 100%; padding: 5px 24px 5px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; color: var(--ink); background: transparent; font: 13px var(--font-body); cursor: pointer; text-transform: none; }
.chart-control select:focus-visible { border-bottom-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 3px; }
.accuracy-section { scroll-margin-top: 24px; }
.accuracy-scope { margin: -3px 0 16px; color: var(--ink-soft); font-size: 13px; }
.accuracy-scope strong { color: var(--ink); font-weight: 700; }
.accuracy-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.accuracy-metric { min-width: 0; display: grid; gap: 6px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-raised); }
.accuracy-metric.primary { background: color-mix(in srgb, var(--blue) 6%, var(--surface-raised)); }
.accuracy-metric span { color: var(--ink-faint); font-size: 11px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.accuracy-metric strong { color: var(--ink); font: 600 23px/1.15 var(--font-mono); font-variant-numeric: tabular-nums; }
.accuracy-metric small { color: var(--ink-soft); font-size: 12px; }
.accuracy-section .metric-table table { min-width: 0; }
.accuracy-dataset + .accuracy-dataset { margin-top: 28px; }
.accuracy-dataset-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.accuracy-dataset-title h4 { margin: 0; font-size: 1.1rem; font-weight: 650; }
.published-scores:first-child, .accuracy-scope + .published-scores { margin-top: 0; }

/* One expand control everywhere: a full-width row between thin lines, its name on the left and a chevron
   on the right that turns down when open. */
.disclosure { margin-top: 18px; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.disclosure + .disclosure, .disclosure-list > .disclosure + .disclosure { margin-top: -1px; }
.disclosure > summary { min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 4px; color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary:hover { background: var(--surface); }
.disclosure > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.disclosure-label { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disclosure-meta { min-width: 0; max-width: 60%; overflow: hidden; color: var(--ink-soft); font-size: 13px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.disclosure .chevron { width: 18px; flex: 0 0 auto; fill: none; stroke: var(--ink-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms ease; }
.disclosure[open] > summary > .chevron { transform: rotate(90deg); }
.disclosure-body { min-width: 0; padding: 6px 4px 22px; }
.disclosure-body > .disclosure:first-child { margin-top: 0; }
.disclosure-body pre { max-height: 320px; overflow: auto; margin: 0; padding: 17px; border-radius: 8px; background: var(--surface); font: 13px/1.7 var(--font-mono); }
.disclosure-text { margin: 0 0 10px; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.disclosure-text strong { color: var(--ink); }
.disclosure-list { margin-top: 24px; }
.disclosure-list > .disclosure:first-child { margin-top: 0; }

/* Performance details: cards in two columns, one row per reading. */
.detail-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
/* The last card in each column grows so both columns end on the same line. */
.detail-column { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.detail-column > .detail-card:last-child { flex-grow: 1; }
.detail-card { min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.detail-card h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 14px; font-weight: 650; }
.detail-card h4 small { margin-left: auto; color: var(--ink-faint); font-size: 12px; font-weight: 400; }
.detail-card h4 i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: var(--blue-soft); }
.detail-card h4 svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.detail-card dl { margin: 0; }
.detail-card table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.detail-card thead th { padding: 4px 0 6px 16px; color: var(--ink-faint); font: 500 11px var(--font-body); letter-spacing: .04em; text-align: right; text-transform: uppercase; }
.detail-card tbody th, .detail-card tbody td { padding: 8px 0; border-top: 1px solid var(--line); }
.detail-card tbody th { width: 100%; color: var(--ink-soft); font-weight: 400; text-align: left; }
.detail-card tbody td { padding-left: 16px; color: var(--ink); font-weight: 500; text-align: right; white-space: nowrap; }
.detail-card td small { margin-left: 4px; color: var(--ink-faint); font-size: 12px; font-weight: 400; }
.info-mark { position: relative; width: 15px; height: 15px; display: inline-grid; place-items: center; margin-left: 6px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-faint); font: italic 600 10px/1 Georgia, serif; vertical-align: 1px; cursor: help; }
.info-mark:hover, .info-mark:focus { color: var(--ink); border-color: var(--ink-faint); outline: none; }
.info-mark:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.info-mark::after { content: attr(data-tooltip); width: max-content; max-width: min(280px, calc(100vw - 44px)); position: absolute; z-index: 30; bottom: calc(100% + 8px); left: -8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface-raised); box-shadow: var(--shadow); font: 500 12px/1.45 var(--font-body); font-style: normal; text-align: left; white-space: pre-line; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.info-mark:hover::after, .info-mark:focus::after { opacity: 1; transform: none; }
/* A title's tooltip hangs from the title's left edge, so it never reaches past the page on a narrow screen. */
.detail-section-title h3, .accuracy-dataset-title h4 { position: relative; }
.detail-section-title .info-mark, .accuracy-dataset-title .info-mark { position: static; }
.detail-section-title .info-mark::after, .accuracy-dataset-title .info-mark::after { top: calc(100% + 8px); bottom: auto; left: 0; }
.metric-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.metric-row:last-child { border-bottom: 0; }
.metric-row dt { min-width: 0; color: var(--ink-soft); }
.metric-row dd { margin: 0; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-row dd small { margin-left: 4px; color: var(--ink-faint); font-size: 12px; font-weight: 400; }
.metric-caption { margin: 14px 0 0; color: var(--ink-faint); font-size: 12px; }
/* SoM power split by rail: one segment per rail, in RAILS order, with the SoC rails in one outlined block. */
.rail-split { display: flex; gap: 2px; height: 8px; margin: 12px 0 10px; }
.rail-split span { min-width: 2px; }
.rail-split > :first-child, .rail-soc > :first-child { border-radius: 999px 0 0 999px; }
.rail-split > :last-child, .rail-soc > :last-child { border-radius: 0 999px 999px 0; }
.rail-split > .rail-soc { display: flex; gap: 2px; margin-right: 4px; border-radius: 999px; outline: 1.5px solid var(--red); outline-offset: 2px; }
.core-load { display: grid; grid-template-rows: repeat(var(--core-rows), auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px 20px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--ink-faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.core-load li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 30px; align-items: center; gap: 8px; }
.core-load li > span:last-child { color: var(--ink-soft); text-align: right; }
.core-track { position: relative; height: 6px; border-radius: 999px; background: var(--line); }
.core-track b { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: color-mix(in srgb, var(--blue) 45%, var(--surface-raised)); }
.core-track i { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink-soft); }
.core-load .busiest .core-track b { background: var(--blue); }
.core-load .busiest > span { color: var(--ink); }
.core-legend { display: flex; justify-content: center; gap: 16px; }
.core-legend span { display: inline-flex; align-items: center; gap: 6px; }
.core-legend b { width: 14px; height: 6px; border-radius: 999px; background: var(--blue); }
.core-legend i { width: 2px; height: 10px; border-radius: 1px; background: var(--ink-soft); }
.qualifier { margin-left: 6px; color: var(--ink-faint); font-size: max(11px, .86em); letter-spacing: .01em; }
.rail-dot { width: 8px; height: 8px; display: inline-block; margin-right: 8px; border-radius: 2px; vertical-align: 1px; }
.rail-dot-soc { box-sizing: border-box; border: 1.5px solid var(--red); }
/* A power row that is part of the row above it is indented under it. */
.detail-card tbody tr.depth-1 th { padding-left: 14px; }
.detail-card tbody tr.depth-2 th { padding-left: 28px; }
.performance-footer { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 32px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.performance-provenance { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; flex: 1 1 360px; min-width: 0; margin: 0; font-size: 12px; line-height: 1.5; }
.performance-provenance > div { display: contents; }
.performance-provenance dt { color: var(--ink-faint); }
.performance-provenance dd { min-width: 0; margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.performance-actions { display: flex; flex-shrink: 0; gap: 8px; }
.performance-action { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); color: var(--ink-soft); font: inherit; font-size: 13px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background 140ms ease, border-color 140ms ease, color 140ms ease; }
.performance-action:hover { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.performance-action:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.performance-action svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Actions are buttons with an icon; blue text with an arrow is reserved for links that leave the page. */
.action-button { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); background: var(--surface-raised); font-size: 14px; font-weight: 600; cursor: pointer; }
.action-button:hover { border-color: var(--ink-soft); background: var(--surface); }
.action-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.action-button:disabled { opacity: .6; cursor: wait; }
.action-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.package-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.package-card-copy { display: grid; gap: 3px; }
.package-card-copy strong { font-size: 15px; font-weight: 650; }
.package-card-copy span { color: var(--ink-soft); font-size: 13px; }
.package-facts { grid-column: 1 / -1; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.package-facts dt { margin-bottom: 4px; color: var(--ink-faint); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.package-facts dd { min-width: 0; margin: 0; font-size: 14px; }
.package-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.package-card .package-actions { grid-row: 1; grid-column: 2; }
.group-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.group-title h4 { margin: 0; font-size: 15px; font-weight: 650; }
.fidelity-panel { margin-top: 24px; }
.fidelity-panel .key-grid { margin-top: 10px; }
.fidelity-scope { margin: 0 0 14px; color: var(--ink-soft); font-size: 13px; }
.fidelity-metric { min-width: 0; display: grid; gap: 7px; padding: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fidelity-metric span { color: var(--ink-faint); font-size: 12px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.fidelity-metric strong { overflow: hidden; font: 500 18px/1.25 var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.license-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; font-size: 15px; }
.license-line strong { font-weight: 600; }
.license-line span { color: var(--ink-soft); }
.license-summary { margin: 8px 0 0; font-size: 14px; line-height: 1.55; }
.license-attribution { margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.overview-section .model-documentation-body { margin-bottom: 4px; }
.disclosure-body .model-documentation-body { padding-top: 4px; }

.detail-loading span { height: 10px; background: linear-gradient(90deg, var(--line) 25%, var(--surface) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
.detail-loading { display: grid; gap: 28px; padding-top: 30px; }
.detail-loading span:nth-child(1) { width: 25%; }
.detail-loading span:nth-child(2) { width: 75%; height: 46px; }
.detail-loading span:nth-child(3) { width: 100%; height: 120px; }
.detail-loading span:nth-child(4) { width: 100%; height: 190px; }
.no-results, .error-state { padding: 70px 10px; }
.no-results > span, .error-state > span { font-size: 2rem; color: var(--line-strong); }
.no-results h3 { margin: 3px 0 7px; font-size: 1.25rem; font-weight: 500; }
.no-results p { color: var(--ink-soft); font-size: 16px; }
.no-results button, .error-state button { padding: 0; border: 0; color: var(--blue); background: transparent; font-weight: 600; cursor: pointer; }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: grid; gap: 8px; }
.toast { max-width: 420px; padding: 15px 18px; color: var(--surface-raised); background: var(--ink); box-shadow: var(--shadow); font-size: 14px; animation: toast-in 260ms ease-out; }
:root[data-theme="dark"] .toast { color: var(--canvas); }
.toast.error { color: #fff; background: var(--red); }
.catalog-loading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 70px 10px; color: var(--ink-soft); font-size: 16px; }
.catalog-loading .spinner { width: 22px; height: 22px; border-width: 2px; color: var(--blue); }
.spinner { width: 13px; height: 13px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes filter-reveal { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 1120px) {
  .run-row { grid-template-columns: minmax(180px, 1fr) minmax(120px, .7fr) minmax(115px, .6fr) 18px; }
  .run-compiler { display: none; }
}

@media (max-width: 840px) {
  .environment { display: none; }
  .filter-toggle { display: inline-flex; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 16px; }
  .filter-drawer { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 18px; border-radius: 12px; background: var(--filter-surface); }
  .filter-drawer[data-open="false"] { display: none; }
  .filter-drawer:not([data-open="false"]) { animation: filter-reveal 180ms ease-out; }
  .filter-drawer > .toggle-filter, .filter-drawer > .text-button { grid-column: 1 / -1; }
  .run-row { grid-template-columns: minmax(180px,1fr) minmax(115px,.6fr) 18px; }
  .run-branch { display: none; }
  .detail-title { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 22px; }
  .detail-links > [data-tooltip] { position: static; }
  .detail-links > [data-tooltip]::after { right: auto; left: 0; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .disclosure-meta { display: none; }
}

@media (max-width: 1100px) {
  .portal-menu-toggle { display: grid; }
  .portal-nav { display: none; position: absolute; top: var(--portal-header-height); right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 22px; border-bottom: 1px solid var(--line); background: var(--surface-raised); box-shadow: var(--shadow); }
  .portal-nav a { padding: 10px 0; }
  .portal-fallback:has(.portal-menu-toggle[aria-expanded="true"]) .portal-nav { display: flex; }
  .sectionbar .environment { display: none; }
}

@media (max-width: 610px) {
  .topbar { height: 60px; padding-inline: 16px; }
  .brand span { display: inline; }
  .topbar-primary { gap: 14px; }
  .sectionbar-inner { padding-inline: 0.75rem; }
  .product-nav a { padding-inline: 0.4rem; font-size: 0.92rem; }
  .topbar-actions { gap: 10px; }
  .filter-toggle > span:nth-child(2) { display: none; }
  .filter-toggle { width: 48px; height: 48px; justify-content: center; padding: 0; }
  .filter-drawer { grid-template-columns: minmax(0, 1fr); }
  .result-list[data-layout="cards"] { grid-template-columns: minmax(0, 1fr); }
  .run-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 80px; }
  .run-date { grid-column: 3; }
  .row-arrow { display: none; }
  .kpi { padding: 16px; }
  .kpi strong { font-size: 1.625rem; }
  .key-grid { grid-template-columns: 1fr; }
  .key-value:nth-child(odd) { margin-right: 0; }
  .artifact-metadata { grid-template-columns: 1fr; }
  .artifact-metadata > div:first-child { margin-right: 0; }
  .toast-region { left: 16px; right: 16px; }
  .fidelity-metrics { grid-template-columns: 1fr; }
  .detail-cards { grid-template-columns: 1fr; }
  .compare-filters { gap: 12px; }
  .compare-filters label { flex: 1; min-width: 140px; }
  .compare-chart-panel { padding: 20px 16px 16px; }
  .compare-chart-controls { width: 100%; }
  .compare-chart-controls label { width: 100%; }
  .compare-chart-controls select { width: 100%; max-width: none; }
  .compare-chart-grid text { font-size: 22px; }
  .compare-axis-title { font-size: 23px; }
  .compare-point-dot { r: 11px; }
  .compare-point-hit { r: 28px; }
  .compare-table thead td { width: 140px; }
  .compare-table tbody th[scope="row"] { position: sticky; left: 0; background: var(--surface-raised); z-index: 1; }
  .compare-table th, .compare-table td { padding: 14px 16px; }
  .accuracy-summary { grid-template-columns: 1fr; }
  .package-card { grid-template-columns: minmax(0, 1fr); }
  .package-card .package-actions { grid-row: auto; grid-column: auto; }
  .package-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

@media (max-width: 420px) {
  .product-nav .nav-long { display: none; }
  .product-nav .nav-short { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.download-dialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); color: var(--ink); box-shadow: 0 28px 90px rgba(20, 28, 34, .28); }
.download-dialog::backdrop { background: rgba(16, 22, 27, .58); }
.download-dialog h2 { margin: 0 0 12px; font-size: 1.625rem; font-weight: 500; line-height: 1.2; }
.download-dialog p { overflow-wrap: anywhere; }
#download-description, .download-note { color: var(--ink-soft); line-height: 1.6; }
.download-note { font-size: .875rem; }
.download-package-info { display: grid; grid-template-columns: minmax(108px, 128px) minmax(0, 1fr); margin: 20px 0; overflow: hidden; border: 1px solid var(--line); font-size: .875rem; line-height: 1.5; }
.download-package-info dt, .download-package-info dd { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.download-package-info dt { border-right: 1px solid var(--line); color: var(--ink); background: var(--surface); font-weight: 600; }
.download-package-info dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.download-package-info > :nth-last-child(-n + 2) { border-bottom: 0; }
.download-package-info code { font: inherit; font-variant-numeric: tabular-nums; }
.download-package-summary { grid-template-columns: minmax(0, 1fr); gap: 16px; border: 0; }
.download-package-summary dt, .download-package-summary dd { padding: 0; border: 0; background: transparent; }
.download-filename { display: grid; gap: 8px; padding: 16px; border-radius: 8px; background: var(--surface); }
.download-filename dt { color: var(--ink-soft); font-size: 12px; }
.download-license { display: flex; flex-wrap: wrap; gap: 6px; color: var(--ink-soft); }
.download-list { list-style: none; margin: 24px 0; padding: 0; }
.download-list li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.download-list li:last-child { border-bottom: 1px solid var(--line); }
.download-list li div { min-width: 0; display: grid; gap: 5px; overflow-wrap: anywhere; }
.download-list li span { color: var(--ink-soft); font-size: 13px; }
.download-list li > span { flex-shrink: 0; }
.download-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
#download-status { font-size: 14px; }
.download-actions .download-button, .download-copy-button, .download-cancel-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--blue); border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.download-actions .download-button { color: var(--on-blue); background: var(--blue); }
.download-copy-button { color: var(--ink); background: transparent; }
.download-copy-button:hover { background: var(--blue-soft); }
.download-cancel-button { margin-right: auto; border-color: var(--line); color: var(--ink-soft); background: transparent; }
.download-cancel-button:hover { border-color: var(--ink-soft); background: var(--surface); }
.download-actions button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.download-actions .download-button:hover:not(:disabled) { filter: brightness(1.1); }
.download-actions .download-button:disabled { opacity: .5; cursor: wait; }
.download-actions button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* Layer profiling stays scoped to one model component. */
.layer-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 8px 0 20px; }
.layer-summary > div { display: flex; flex-direction: column; gap: 6px; }
.layer-summary strong { color: var(--ink); font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; }
.layer-summary strong small { font-size: 15px; font-weight: 500; }
.layer-summary span, .layer-explanation, .layer-results { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.layer-explanation { max-width: 850px; margin: 0 0 24px; }
/* MLA utilization reuses the layer summary with one column per tile; w16a16 has no utilization tile. */
.layer-summary.mla-summary { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.mla-summary .info-mark { color: var(--ink-faint); font-size: 10px; line-height: 1; }
/* Tooltips of the right-hand tiles open leftward so they stay on screen. */
.mla-summary > div:nth-last-child(-n+2) .info-mark::after { left: auto; right: -8px; }
.mla-summary-row { display: flex; align-items: center; gap: 20px; }
.mla-summary-row .mla-summary { flex: 1; }
.mla-utilization .tensor-table { margin-bottom: 20px; }
.layer-controls { display: flex; gap: 20px; align-items: end; flex-wrap: wrap; }
.layer-controls label { display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.layer-controls input[type="search"] { box-sizing: border-box; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.layer-search { flex: 1; min-width: 180px; }
.layer-controls :is(input, button):focus-visible, .layer-table-scroll:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.layer-results { margin: 18px 0 12px; }
.layer-table-scroll { box-sizing: border-box; overflow: auto; scrollbar-gutter: stable; padding-inline-end: 16px; max-height: 640px; }
.layer-table { width: 100%; table-layout: fixed; border-collapse: collapse; color: var(--ink); font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.layer-table col { width: 33.333%; }
.layer-table th, .layer-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.layer-table td { vertical-align: top; }
.layer-table thead th { position: sticky; top: 0; z-index: 1; vertical-align: top; background: var(--canvas); color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.layer-table th:first-child { padding-left: 12px; }
.layer-table tbody th { font-weight: 400; }
.layer-table tbody :is(th, td) { border-bottom-color: color-mix(in srgb, var(--line) 60%, transparent); }
@media (hover: hover) {
  .layer-table tbody tr:hover { background: color-mix(in srgb, var(--surface-raised) 65%, transparent); }
}
.layer-timing { display: grid; gap: 7px; max-width: 240px; }
.layer-timing-number { font-weight: 400; }
.layer-axis { position: relative; display: flex; justify-content: space-between; gap: 4px; max-width: 240px; margin-top: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line-strong); font-size: 12px; font-weight: 400; }
.layer-axis span { position: relative; }
.layer-axis span:nth-child(2) { position: absolute; left: 50%; transform: translateX(-50%); }
.layer-axis span::after { content: ""; position: absolute; bottom: -7px; left: 50%; width: 1px; height: 4px; background: var(--line-strong); }
.layer-axis span:first-child::after { left: 0; }
.layer-axis span:last-child::after { left: auto; right: 0; }
.layer-name { overflow-wrap: anywhere; }
.layer-name small { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 2px; }
.layer-bar-track { display: block; height: 8px; border-radius: 999px; overflow: hidden; }
.layer-bar-track > span { display: block; height: 100%; background: var(--layer-color, var(--blue)); border-radius: inherit; }
.layer-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 12px; color: var(--ink-soft); font-size: 12px; }
.layer-legend > span { display: inline-flex; gap: 6px; align-items: center; }
.layer-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--layer-color); }
.layer-legend-label { display: inline-grid; }
.layer-legend-label > span, .layer-legend-label::before, .layer-legend-label::after { grid-area: 1 / 1; }
.layer-legend-label::before, .layer-legend-label::after { content: attr(data-label); visibility: hidden; }
.layer-legend-label::before { font-weight: 400; }
.layer-legend-label::after { font-weight: 600; }
.layer-legend .is-highlighted { color: var(--ink); }
.layer-legend .is-highlighted .layer-legend-label > span { font-weight: 600; }
.layer-legend .is-highlighted i { transform: scale(1.25); }
.layer-family-conv { --layer-color: var(--blue); }
.layer-family-matmul { --layer-color: var(--violet); }
.layer-family-activation { --layer-color: var(--green); }
.layer-family-pool { --layer-color: var(--amber); }
.layer-family-elementwise { --layer-color: var(--sima-lime); }
.layer-family-layout { --layer-color: var(--sima-teal); }
.layer-family-normalization { --layer-color: color-mix(in srgb, var(--violet) 65%, var(--blue)); }
.layer-family-resize { --layer-color: color-mix(in srgb, var(--amber) 65%, var(--blue)); }
.layer-family-reduction { --layer-color: color-mix(in srgb, var(--green) 50%, var(--blue)); }
.layer-family-io { --layer-color: var(--ink-faint); }
.layer-family-other { --layer-color: var(--ink-soft); }
.layer-table .layer-share, .layer-table .layer-timing-number { white-space: nowrap; }
@media (max-width: 600px) {
  .layer-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .layer-summary > div:first-child { grid-column: 1 / -1; }
  .layer-summary strong { font-size: 20px; }
  .layer-summary span { font-size: 12px; }
  .layer-summary.mla-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; }
  .layer-summary.mla-summary > div:first-child { grid-column: auto; }
  .mla-summary-row { flex-direction: column; align-items: stretch; gap: 0; }
  .mla-summary-row .execution-details { align-self: flex-end; margin-bottom: 16px; }
  .mla-summary > div:nth-last-child(-n+2) .info-mark::after { left: -8px; right: auto; }
  .mla-summary > div:nth-child(even) .info-mark::after { left: auto; right: -8px; }
  .layer-controls { gap: 12px; }
  .layer-search { flex-basis: 100%; }
  .layer-threshold { flex: 1; }
  .layer-table-scroll { padding-inline-end: 12px; }
  .layer-table { font-size: 13px; }
  .layer-table th, .layer-table td { padding: 8px; }
  .layer-table col:first-child { width: 40%; }
  .layer-table col:nth-child(2) { width: auto; }
  .layer-table col:last-child { width: 64px; }
  .layer-table th:first-child { padding-left: 0; }
  .layer-table th:last-child, .layer-table .layer-share { text-align: right; padding-right: 0; }
  .layer-table thead th { font-size: 12px; }
  .layer-name small { font-size: 11px; }
  .layer-time-unit { display: block; }
  .layer-axis span:nth-child(2) { display: none; }
  .layer-order-toggle { width: 100%; }
  .layer-order-toggle button { flex: 1; }
}

.layer-threshold { width: 190px; }
.layer-threshold output { display: contents; font-variant-numeric: tabular-nums; }
.layer-threshold input { width: 100%; height: 42px; margin: 0; accent-color: var(--green); }
.layer-order-toggle { display: flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.layer-order-toggle button { min-height: 36px; padding: 8px 14px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-soft); font: inherit; font-size: 14px; cursor: pointer; }
.component-switch { width: fit-content; margin-bottom: 16px; }
.layer-order-toggle button[aria-pressed="true"] { color: var(--ink); background: var(--surface-raised); box-shadow: 0 1px 3px #0002; font-weight: 600; }

:root[data-branches="0"] .branch-filter { display: none; }

/* Staging provenance remains visible in either audience and on small screens. */
.release-notice[hidden] { display: none; }
.release-notice {
  color: #62420c;
  background: #fff4d6;
  border-bottom: 1px solid #e6ca87;
  font-size: 13px;
  line-height: 1.6;
}
.release-notice-inner { max-width: 1440px; margin: 0 auto; padding: 12px 32px; }
.release-notice strong { font-size: 14px; font-weight: 700; }
.release-notice-description { margin-left: 10px; }
.release-notice-meta { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 3px; }
.release-notice-meta > span { overflow-wrap: anywhere; min-width: 0; }
.release-notice-meta b { font-weight: 600; }
.release-notice code { color: inherit; background: transparent; font-size: 12px; }
[data-theme="dark"] .release-notice { color: #f4d79b; background: #31291b; border-color: #625031; }
@media (max-width: 700px) {
  .release-notice-inner { padding: 12px 20px; }
  .release-notice-description { display: block; margin-left: 0; }
  .release-notice-meta { flex-direction: column; gap: 3px; margin-top: 6px; }
}

/* Native generation workloads share the whole-model Performance section. */
[data-generative-benchmark] .benchmark-measurements { margin-top: 24px; }
[data-generative-benchmark] .benchmark-measurements > h4 { margin: 0 0 9px; color: var(--ink-faint); font-size: 12px; }
[data-generative-benchmark] .benchmark-measurements-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
[data-generative-benchmark] .benchmark-measurements table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
[data-generative-benchmark] .benchmark-measurements th, [data-generative-benchmark] .benchmark-measurements td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; }
[data-generative-benchmark] .image-performance table { min-width: 0; }
[data-generative-benchmark] .benchmark-input, [data-generative-benchmark] .benchmark-context { color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.workload-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.workload-picker select { max-width: 100%; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: var(--surface-raised); font-size: 14px; }
.workload-picker select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 700px) {
  [data-generative-benchmark] .info-mark::after { max-width: 180px; }
}
