/* comp: flat-warm (no borders, radius 0, tints for hierarchy, teal links only). Dark for everyone;
   light only when the visitor picks it with the button in the bar (theme.js remembers it). */
@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap; src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("fonts/manrope-600.woff2") format("woff2"); }

:root {
  --bg: #0a0703; --bg-high: #15110a; --fg: #d5d0c6; --fg-title: #f6f1e7; --fg-dim: #9c988e; --fg-faint: #8f8a80;
  --accent: #6fc0c7; --accent-hover: #7ccdd4; --chip: #231f17; --chip-fg: #e9e4da;
  --rubric: #b5442f; --gold: #a98c4b; --star: #ffb81c;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
/* light: chosen with the button in the bar (theme.js); pure white ground, neutral greys for the
   tinted blocks that separate things (no beige) */
[data-theme="light"] {
  --bg: #ffffff; --bg-high: #f4f4f4; --fg: #181611; --fg-title: #070603; --fg-dim: #5f5f5f; --fg-faint: #7c7c7c;
  --accent: #0d5257; --accent-hover: #2a686d; --chip: #e9e9e9; --chip-fg: #181611;
  --rubric: #8e2418; --gold: #7e6326; --star: #e8a20a;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.55 var(--font-ui); }
a { color: var(--accent); text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; }
a:hover { color: var(--accent-hover); background-size: 100% 2px; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 2px; }

.nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.1rem; padding: 0.6rem 1rem; background: var(--bg-high); }
.brand { font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; color: var(--fg-title); background: none; letter-spacing: -0.01em; }
.nav a:not(.brand) { font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; }
.spacer { flex: 1; }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; padding: 0;
  border: none; background: var(--chip); color: var(--chip-fg); cursor: pointer; align-self: center; }
.theme-btn:hover { color: var(--accent); }
.theme-btn svg { width: 1rem; height: 1rem; }
.theme-btn .moon { display: none; }
[data-theme="light"] .theme-btn .sun { display: none; }
[data-theme="light"] .theme-btn .moon { display: block; }
main { max-width: 100rem; margin: 0 auto; padding: 0.9rem 0.75rem 3rem; }
h1 { font-family: var(--font-heading); font-weight: 600; font-size: 1.3rem; line-height: 1.3; color: var(--fg-title); margin: 0 0 0.3rem; }
.intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.9rem; margin: 0.2rem 0 0.8rem; }
.intro h1 { margin: 0; }
.lede { color: var(--fg-dim); margin: 0 0 0.8rem; font-size: 0.9rem; }
.intro .lede { margin: 0; }
.lede b { color: var(--gold); font-family: var(--font-heading); font-variant-numeric: tabular-nums; }
.empty { color: var(--fg-dim); }

/* the grid: as many columns as fit, big releases two columns wide, gaps filled */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 0.5rem; grid-auto-flow: dense; }
@media (min-width: 900px) { .grid .imp-major, .grid .imp-seismic { grid-column: span 2; } }

.card { display: flex; flex-direction: column; min-width: 0; background: var(--bg-high); --tc: var(--fg-faint); }
.t-model { --tc: var(--accent); } .t-tool, .t-repo { --tc: var(--gold); } .t-paper, .t-dataset, .t-benchmark { --tc: #7b93ad; }
.t-security { --tc: var(--rubric); } .t-article, .t-video { --tc: var(--fg-dim); }
.pic { display: block; height: 10.5rem; overflow: hidden; background: var(--chip); background-image: none; }
.pic:hover { background-size: 0; }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph { display: flex; align-items: flex-end; height: 100%; padding: 0.8rem 0.9rem;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 34%, var(--bg-high)), color-mix(in srgb, var(--tc) 8%, var(--bg-high))); }
.ph span { font-family: var(--font-heading); font-weight: 600; font-size: 1.35rem; line-height: 1.15; color: var(--fg-title); overflow-wrap: anywhere; }
.body { flex: 1; padding: 0.65rem 0.85rem 0.55rem; }
.cmeta { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-family: var(--font-heading);
  font-size: 0.75rem; color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 0.3rem; }
.chip { display: inline-block; padding: 0.05rem 0.4rem; background: var(--chip); color: var(--chip-fg); font-family: var(--font-heading);
  font-weight: 600; font-size: 0.75rem; background-image: none; }
a.chip:hover { color: var(--accent); }
.cmeta .chip:first-child { color: var(--tc); }
.chip.imp { text-transform: uppercase; letter-spacing: 0.04em; }
.imp-seismic .chip.imp { background: color-mix(in srgb, var(--rubric) 70%, var(--chip)); color: #fff; }
.imp-major .chip.imp { background: color-mix(in srgb, var(--gold) 40%, var(--chip)); }
.card h2, .card h1 { font-family: var(--font-heading); font-weight: 600; font-size: 1.02rem; line-height: 1.3; margin: 0.4rem 0 0.3rem; }
.card h2 a, .card h1 a { color: var(--fg-title); background: none; }
.card h2 a:hover, .card h1 a:hover { color: var(--accent); }
.imp-major h2, .imp-seismic h2 { font-size: 1.2rem; }
.sum { margin: 0 0 0.45rem; font-size: 0.875rem; line-height: 1.5; color: var(--fg);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.foot { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.85rem; min-height: 2.1rem;
  background: color-mix(in srgb, var(--fg) 5%, var(--bg-high)); font-family: var(--font-heading); font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-dim); }
.foot .maker { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.foot .n { font-weight: 400; white-space: nowrap; }
.foot .sp { flex: 1; }
.foot a { white-space: nowrap; }

/* a release's own page: one wide card, its picture larger, the full summary */
.detail { max-width: 46rem; margin: 0 auto; }
.card-detail .pic { height: auto; max-height: 22rem; }
.card-detail .pic img { height: auto; max-height: 22rem; }
.card-detail .ph { height: 12rem; }
.card-detail h1 { font-size: 1.45rem; }
.card-detail .sum { font-size: 1rem; -webkit-line-clamp: unset; display: block; }
.card-detail .body { padding: 0.9rem 1.1rem 0.7rem; }
.card-detail .foot { padding: 0.55rem 1.1rem; text-transform: none; letter-spacing: 0; }
.also { margin: 0.4rem 0 0; padding: 0; list-style: none; }
.also li { padding: 0.35rem 0; font-size: 0.9rem; }
.also .meta { margin-left: 0.4rem; font-family: var(--font-heading); font-size: 0.75rem; color: var(--fg-faint); }
h3 { font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; color: var(--rubric); margin: 1.4rem 0 0.3rem; }
.prose { max-width: 46rem; }
.prose p, .prose li { color: var(--fg); }
footer { max-width: 100rem; margin: 0 auto; padding: 1rem 0.75rem 2.5rem; color: var(--fg-faint); font-size: 0.8rem; font-family: var(--font-heading); }
.pager { display: flex; justify-content: space-between; margin-top: 1.2rem; font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; }
@media (max-width: 600px) { main { padding: 0.7rem 0.5rem 2.5rem; } .grid { grid-template-columns: 1fr; } }

/* ---- a release in full: on its own page, and in the overlay (comp.js) ---- */
.release-page { max-width: 80rem; margin: 0 auto; }
.release { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: var(--bg); --tc: var(--fg-faint); }
.release.t-model { --tc: var(--accent); } .release.t-tool, .release.t-repo { --tc: var(--gold); }
.release.t-paper, .release.t-dataset, .release.t-benchmark { --tc: #7b93ad; } .release.t-security { --tc: var(--rubric); }
.rl { background: var(--bg-high); min-width: 0; }
.rl .pic { height: auto; max-height: 20rem; }
.rl .pic img { height: auto; max-height: 20rem; }
.rl .ph { height: 12rem; }
.oh { margin: 0; padding: 0.55rem 0.9rem; background: color-mix(in srgb, var(--tc) 22%, var(--bg-high)); color: var(--fg-title);
  font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.outlets { list-style: none; margin: 0; padding: 0; }
.outlets li { display: flex; gap: 0.6rem; padding: 0.55rem 0.9rem; }
.outlets li:nth-child(even) { background: color-mix(in srgb, var(--fg) 3.5%, transparent); }
.outlets .i { font-family: var(--font-heading); font-weight: 600; font-size: 0.8rem; color: var(--tc); font-variant-numeric: tabular-nums; min-width: 1.1rem; }
.outlets .o { display: flex; flex-direction: column; min-width: 0; gap: 0.1rem; }
.outlets a { font-size: 0.875rem; overflow-wrap: anywhere; }
.outlets .dom { font-family: var(--font-heading); font-size: 0.75rem; color: var(--fg-faint); }
.rr { padding: 0.9rem 1.2rem 1.2rem; min-width: 0; }
.release h1 { font-size: 1.5rem; line-height: 1.25; margin: 0.45rem 0 0.15rem; }
.by { font-family: var(--font-heading); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-dim); }
.lead { font-size: 1.02rem; line-height: 1.55; color: var(--fg-title); margin: 0.7rem 0 0.9rem; padding: 0.6rem 0.8rem;
  background: color-mix(in srgb, var(--tc) 12%, var(--bg-high)); }
.panel { background: var(--bg-high); padding: 0.6rem 0.85rem 0.7rem; margin: 0 0 0.5rem; }
.panel h3 { margin: 0 0 0.35rem; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tc); }
.panel p { margin: 0; font-size: 0.92rem; line-height: 1.55; }
.facts { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.facts th { text-align: left; font-family: var(--font-heading); font-weight: 600; color: var(--fg-dim); padding: 0.25rem 1rem 0.25rem 0; width: 34%; vertical-align: top; }
.facts td { padding: 0.25rem 0; font-variant-numeric: tabular-nums; }
.facts tr:nth-child(even) { background: color-mix(in srgb, var(--fg) 3%, transparent); }
.release .tags { margin-top: 0.7rem; }
@media (max-width: 760px) { .release { grid-template-columns: 1fr; } .rr { padding: 0.8rem 0.85rem 1rem; } }

/* ---- overlay ---- */
html.ov-on { overflow: hidden; }
.ov { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 2.5vh 2.5vw;
  background: color-mix(in srgb, #000 66%, transparent); }
.ov[hidden] { display: none; }
.ov-box { display: flex; flex-direction: column; width: min(80rem, 100%); max-height: 95vh; background: var(--bg); outline: none; }
.ov-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.5rem 0.35rem 0.9rem; background: var(--bg-high);
  font-family: var(--font-heading); font-size: 0.8rem; color: var(--fg-dim); font-variant-numeric: tabular-nums; }
.ov-bar .sp { flex: 1; }
.ov-btn { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 1.9rem; padding: 0 0.65rem; border: none; background: var(--chip);
  color: var(--chip-fg); font: 600 0.8rem var(--font-heading); background-image: none; cursor: pointer; }
.ov-btn:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--chip)); }
.ov-body { overflow: auto; overscroll-behavior: contain; }
.ov-load { padding: 2rem; color: var(--fg-dim); font-family: var(--font-heading); }
.keys { padding: 1rem 1.2rem; }
.keys th { text-align: left; padding: 0.3rem 1.2rem 0.3rem 0; white-space: nowrap; }
.keys td { color: var(--fg); }
kbd { display: inline-block; min-width: 1.2rem; padding: 0 0.3rem; background: var(--chip); color: var(--chip-fg); font: 600 0.75rem var(--font-heading); text-align: center; }
@media (max-width: 760px) { .ov { padding: 0; } .ov-box { max-height: 100vh; height: 100%; } }
@media (prefers-reduced-motion: no-preference) { .card { transition: background-color 70ms; } }

/* the card selected with j / k */
.card.is-sel { background: color-mix(in srgb, var(--accent) 9%, var(--bg-high)); outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: -2px; }
.card { cursor: pointer; }
.card h2 a:focus-visible { outline: none; }

/* ---- tabs in the bar ---- */
.nav a[aria-current="page"] { color: var(--fg-title); background-image: linear-gradient(var(--fg-title), var(--fg-title)); background-size: 100% 2px; }
.typerow { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.8rem; }
.typerow .chip { padding: 0.2rem 0.55rem; font-size: 0.8rem; }
.typerow .n, .lcard .n { font-weight: 400; color: var(--fg-faint); margin-left: 0.15rem; font-variant-numeric: tabular-nums; }
.dom { font-family: var(--font-heading); font-size: 0.75rem; color: var(--fg-faint); }
h2.sect { font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--fg-title); margin: 1.6rem 0 0.6rem; }

/* ---- Trending: ranked boards side by side ---- */
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 0.5rem; }
.boards.two { grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr)); }
.board { background: var(--bg-high); }
.board h2 { margin: 0; padding: 0.55rem 0.85rem; font-family: var(--font-heading); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--fg-title); background: color-mix(in srgb, var(--accent) 16%, var(--bg-high)); }
.board ol { list-style: none; margin: 0; padding: 0; }
.board li { display: flex; gap: 0.6rem; padding: 0.45rem 0.85rem; }
.board li:nth-child(even) { background: color-mix(in srgb, var(--fg) 3.5%, transparent); }
.rk { font-family: var(--font-heading); font-weight: 600; font-size: 0.8rem; color: var(--gold); min-width: 1.3rem; font-variant-numeric: tabular-nums; }
.nm { display: flex; flex-direction: column; min-width: 0; gap: 0.1rem; }
.nm a:not(.chip) { font-size: 0.875rem; overflow-wrap: anywhere; }
.nm .chip { align-self: flex-start; margin-top: 0.1rem; }

/* ---- LLMs: the registry table ---- */
.tablewrap { overflow-x: auto; background: var(--bg-high); }
.reg { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.reg th { text-align: left; font-family: var(--font-heading); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--fg-dim); padding: 0.55rem 0.7rem; background: color-mix(in srgb, var(--fg) 5%, var(--bg-high)); white-space: nowrap; }
.reg td { padding: 0.4rem 0.7rem; vertical-align: top; }
.reg tbody tr:nth-child(even) { background: color-mix(in srgb, var(--fg) 3.5%, transparent); }
.reg td.num { font-family: var(--font-heading); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reg td .chip { margin-left: 0.3rem; }

/* ---- Stats ---- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.5rem; margin: 0 0 0.5rem; }
.kpis div { background: var(--bg-high); padding: 0.7rem 0.85rem; font-family: var(--font-heading); font-size: 0.8rem; color: var(--fg-dim); }
.kpis b { display: block; font-size: 1.6rem; line-height: 1.2; color: var(--fg-title); font-variant-numeric: tabular-nums; }
.chart { display: block; width: 100%; height: auto; }
.chart rect { fill: var(--accent); }
.chart text { fill: var(--fg-dim); font-family: var(--font-heading); font-size: 12px; }
.chart text.v { fill: var(--fg); }

/* ---- Learn ---- */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.5rem; }
.lcard { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.75rem 0.85rem; background: var(--bg-high); background-image: none; color: var(--fg); }
.lcard b { font-family: var(--font-heading); font-weight: 600; color: var(--fg-title); }
.lcard:hover b { color: var(--accent); }
.lcard span { font-size: 0.875rem; }
.learn { max-width: 46rem; --tc: var(--accent); }
.learn h1 { font-size: 1.6rem; margin: 0.5rem 0 0; }
.learn .tags { align-items: center; margin-top: 0.6rem; }

/* ---- search in the bar ---- */
.search { position: relative; align-self: center; flex: 0 1 22rem; min-width: 9rem; margin-left: 0.4rem; }
.search[hidden] { display: none; }
.q { width: 100%; height: 1.9rem; padding: 0 0.6rem; border: none; background: var(--chip); color: var(--fg); font: 0.875rem var(--font-ui); }
.q::placeholder { color: var(--fg-faint); }
.q:focus { outline: none; background: color-mix(in srgb, var(--accent) 12%, var(--chip)); }
.sr { position: absolute; left: 0; top: calc(100% + 0.25rem); z-index: 40; width: min(34rem, 92vw); max-height: 70vh; overflow: auto;
  display: flex; flex-direction: column; background: var(--bg-high); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 8%, transparent); }
.sr[hidden] { display: none; }
.sg { padding: 0.45rem 0.8rem 0.2rem; font-family: var(--font-heading); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--fg-faint); }
.si { display: flex; flex-direction: column; gap: 0.05rem; padding: 0.4rem 0.8rem; background-image: none; color: var(--fg); }
.si .st { color: var(--fg-title); font-size: 0.9rem; }
.si .sm { font-family: var(--font-heading); font-size: 0.75rem; color: var(--fg-faint); }
.si.on, .si:hover { background: color-mix(in srgb, var(--accent) 14%, var(--bg-high)); }
.si.on .st, .si:hover .st { color: var(--accent); }
@media (max-width: 760px) { .search { order: 9; flex: 1 1 100%; margin: 0.3rem 0 0; } .sr { width: 100%; } }

/* ---- product line chip, maker link, maker index ---- */
.chip.ent { background: color-mix(in srgb, var(--tc, var(--accent)) 16%, var(--chip)); color: var(--fg-title); }
.foot a.maker { color: var(--fg); background-image: none; }
.foot a.maker:hover { color: var(--accent); }
.by { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.by a:not(.chip) { color: var(--fg-dim); background-image: none; }
.by a:not(.chip):hover { color: var(--accent); }
.by .chip { text-transform: none; letter-spacing: 0; }
.cols { columns: 16rem; column-gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.cols li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.3rem 0.2rem; break-inside: avoid; }

/* ---- card buttons: save and share, over the picture ---- */
.card { position: relative; }
.acts { position: absolute; top: 0.45rem; right: 0.45rem; display: flex; flex-direction: column; gap: 0.3rem; opacity: 0; transition: opacity 70ms; }
.card:hover .acts, .card.is-sel .acts, .card:focus-within .acts, .acts:has(.on) { opacity: 1; }
@media (hover: none) { .acts { opacity: 1; } }
.act { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border: none; cursor: pointer;
  background: color-mix(in srgb, #000 58%, transparent); color: #fff; }
.act:hover { background: color-mix(in srgb, #000 78%, transparent); }
.act svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.act.save.on { color: var(--star); }
.act.save.on svg { fill: currentColor; }
.act.share.done { color: var(--accent); }
.saved-tab[hidden] { display: none; }

/* ---- Learn roadmap ---- */
.steps { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.5rem; }
.step { position: relative; background: var(--bg-high); padding: 0.85rem 0.9rem 0.8rem; display: flex; flex-direction: column; gap: 0.4rem; }
.sn { font-family: var(--font-heading); font-weight: 600; font-size: 1.6rem; line-height: 1; color: color-mix(in srgb, var(--accent) 70%, var(--fg-faint)); }
.step h3 { margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--fg-title); }
.step p { margin: 0; font-size: 0.875rem; color: var(--fg); }
.nl { list-style: none; margin: 0.1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.85rem; }
.chip.off { background: none; color: var(--fg-faint); padding-left: 0; padding-right: 0.5rem; }

/* ---- LLM registry ---- */
.reglay { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 0.5rem; align-items: start; }
.mside { background: var(--bg-high); position: sticky; top: 0.5rem; max-height: calc(100vh - 1rem); overflow: auto; }
.mside h2 { margin: 0; padding: 0.55rem 0.85rem; font-family: var(--font-heading); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--fg-title); background: color-mix(in srgb, var(--accent) 16%, var(--bg-high)); }
.mside ul { list-style: none; margin: 0; padding: 0; }
.mside li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0.85rem; }
.mside li.on { background: color-mix(in srgb, var(--accent) 14%, var(--bg-high)); }
.mside li a { font-size: 0.875rem; background-image: none; color: var(--fg); }
.mside li a:hover, .mside li.on a { color: var(--accent); }
.reglay > div > .sect:first-child, .mline:first-child .sect { margin-top: 0; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 0.5rem; }
.mcard { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.7rem 0.8rem; background: var(--bg-high); background-image: none; color: var(--fg); }
.mcard:hover { background: color-mix(in srgb, var(--accent) 8%, var(--bg-high)); }
.mcard b { font-family: var(--font-heading); font-weight: 600; color: var(--fg-title); font-size: 0.95rem; }
.mcard:hover b { color: var(--accent); }
.mcard .sum { font-size: 0.84rem; -webkit-line-clamp: 3; margin: 0; }
.mcard .tags .chip { font-size: 0.75rem; }
.model .facts th { width: 40%; }
@media (max-width: 760px) {
  .reglay { grid-template-columns: 1fr; }
  .mside { position: static; max-height: none; }
  .mside ul { display: flex; overflow-x: auto; gap: 0; }
  .mside li { flex: none; }
}

/* ---- Saved: the text for an agent ---- */
.brief { margin: 0 0 0.8rem; }
.brief textarea { width: 100%; margin: 0.45rem 0; padding: 0.6rem 0.7rem; border: none; resize: vertical; background: var(--bg);
  color: var(--fg); font: 0.82rem/1.5 var(--font-ui); }
.brief textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.brief-bar { display: flex; align-items: center; gap: 0.7rem; }

/* ---- maker logos (self-hosted), or a tile with the initial ---- */
.mlogo { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; margin-right: 0.5rem;
  vertical-align: -3px; object-fit: contain; background: #fff; }
.mlogo.mono { background: var(--chip); color: var(--fg-title); font: 600 12px/1 var(--font-heading); }
.mlogo.mono.c0 { background: color-mix(in srgb, var(--accent) 45%, var(--chip)); }
.mlogo.mono.c1 { background: color-mix(in srgb, var(--gold) 50%, var(--chip)); }
.mlogo.mono.c2 { background: color-mix(in srgb, #7b93ad 50%, var(--chip)); }
.mlogo.mono.c3 { background: color-mix(in srgb, var(--rubric) 50%, var(--chip)); }
.mside li a, .cols li a { display: inline-flex; align-items: center; min-width: 0; }
h1 .mlogo { width: 26px; height: 26px; vertical-align: -4px; font-size: 14px; }
