/* Visual identity of prompts.sk: Sora, #161319 background, #00ffe3 accent. */
:root {
  --bg: #161319;
  --bg-2: #1f1b23;
  --bg-3: #29242e;
  --line: rgba(255, 255, 255, .14);
  --text: #ffffff;
  --muted: #a8a1ae;
  --accent: #00ffe3;       /* fills, borders */
  --accent-ink: #161319;   /* text on accent */
  --accent-text: #00ffe3;  /* accent used as text */
  --radius: 14px;
  --font: "Sora", "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f6f9; --bg-2: #ffffff; --bg-3: #efedf2; --line: #e2dfe6;
    --text: #161319; --muted: #625b69; --accent-text: #00796d;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f7f6f9; --bg-2: #ffffff; --bg-3: #efedf2; --line: #e2dfe6;
  --text: #161319; --muted: #625b69; --accent-text: #00796d;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- top bar (shared) ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand b { color: var(--accent-text); font-weight: 600; }
.brand small { color: var(--muted); font-weight: 400; font-size: 13px; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.toplink { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 8px; }
.toplink:hover { color: var(--text); }
@media (max-width: 480px) { .vbar .brand b { display: none; } .vbar .brand span { font-size: 20px; padding: 0 4px; } } /* viewer: the arrow alone is the back link (title says where) */
@media (max-width: 520px) { /* small phones: links wrap under the brand instead of widening the page */
  .topbar .wrap { flex-wrap: wrap; gap: 4px 16px; padding-top: 8px; padding-bottom: 8px; }
  .topbar nav { flex-wrap: wrap; gap: 2px; }
  .toplink { padding: 6px 6px; font-size: 13px; }
}
.theme-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2);
  display: grid; place-items: center; font-size: 16px; line-height: 1;
}
.theme-btn:hover, .lang-btn:hover { border-color: var(--accent); }
.lang-btn {
  height: 36px; min-width: 44px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-2); font-size: 13px; font-weight: 600; letter-spacing: .04em;
}

/* ---------- gallery ---------- */
.hero { padding: 48px 0 28px; }
.hero h1 { margin: 0; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.hero h1 span { color: var(--accent-text); }
.hero p { margin: 14px 0 0; color: var(--muted); max-width: 680px; font-size: 16px; }

.filters { display: grid; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters > * { min-width: 0; } /* lets the tab row scroll instead of widening the page */
/* prompt tabs: one row, scrolls sideways when there are many prompts */
.ftabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.ftabs .chip { flex: none; white-space: nowrap; }
.fbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fbtn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; cursor: pointer; }
.fbtn:hover, .fbtn.on { border-color: var(--accent); }
.fbtn b { font-weight: 600; }
.fsort select { font: inherit; color: var(--text); background: transparent; border: 0; padding: 0 2px; cursor: pointer; }
.fsort select option { background: var(--bg-2); color: var(--text); }
.fcheck input { accent-color: var(--accent); margin: 0; }
.fpick { position: relative; }
.fpanel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: 320px; max-width: calc(100vw - 32px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.35); padding: 12px; }
.fp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.fp-search { width: 100%; font: inherit; font-size: 14px; color: var(--text); background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; margin-bottom: 8px; }
.fp-list { max-height: min(60vh, 420px); overflow-y: auto; }
.fp-group { padding: 4px 0; border-top: 1px solid var(--line); }
.fp-group:first-child { border-top: 0; }
.fp-company, .fp-model { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.fp-company { font-weight: 600; }
.fp-model { padding-left: 26px; }
.fp-company:hover, .fp-model:hover { background: var(--bg-3); }
.fp-company span, .fp-model span { flex: 1; min-width: 0; }
.fp-company small, .fp-model small { color: var(--muted); font-variant-numeric: tabular-nums; }
.fp-company input, .fp-model input { accent-color: var(--accent); margin: 0; width: 16px; height: 16px; }
.fp-empty { color: var(--muted); font-size: 13px; }
.fp-foot { display: none; }
.factive[hidden] { display: none; }
.factive { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fa-chip { font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 999px; cursor: pointer; border: 1px solid var(--accent); background: transparent; color: var(--accent-text); }
.fa-chip:hover { background: var(--accent); color: var(--accent-ink); }
.fprompt { display: none; }
.fsort-icon { display: none; color: var(--muted); }
.fbtn select { min-width: 0; text-overflow: ellipsis; }
.fprompt select { font: inherit; font-weight: 600; color: var(--text); background: transparent; border: 0; padding: 0; cursor: pointer; flex: 1; }
.fprompt select option { background: var(--bg-2); color: var(--text); font-weight: 400; }
/* phone: prompt as a native select, two controls per row, the model picker becomes a bottom sheet */
@media (max-width: 640px) {
  .ftabs { display: none; }
  .fbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .fprompt { display: flex; grid-column: 1 / -1; }
  .fbar .fbtn { width: 100%; min-width: 0; padding: 9px 12px; }
  .fpick { min-width: 0; }
  .fbtn > span, .fbtn b { white-space: nowrap; }
  .fbtn b { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .fsort select { flex: 1; }
  .fsort-label { display: none; }
  .fsort-icon { display: inline; }
  .fcheck { grid-column: 1 / -1; width: auto !important; justify-self: start; border: 0 !important; background: transparent !important; padding: 2px 0 !important; }
  .factive .fa-chip { display: none; } /* the Models button already says what is selected */
  .factive { justify-content: flex-end; margin-top: -34px; pointer-events: none; }
  .factive .linkbtn { pointer-events: auto; }
  .fpanel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; border-radius: 16px 16px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .fp-list { max-height: 55vh; }
  .fp-foot { display: block; margin-top: 10px; }
  .fp-foot .btn { width: 100%; text-align: center; }
  body.fp-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 19; }
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.chip {
  border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px;
  padding: 5px 13px; font-size: 14px; white-space: nowrap;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 500; }
.chip small { opacity: .6; margin-left: 5px; }
.chip:disabled { opacity: .35; cursor: default; border-color: var(--line); }

.prompt-box {
  margin: 20px 0 0; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--radius); font-size: 14px;
}
.prompt-box summary { cursor: pointer; font-weight: 600; }
.prompt-box pre { white-space: pre-wrap; font: 13px/1.6 var(--mono); color: var(--muted); margin: 10px 0 0; }

.result-meta { color: var(--muted); font-size: 14px; padding: 18px 0 10px; }
.more { display: flex; justify-content: center; margin: -24px 0 48px; }
.more[hidden] { display: none; }
.btn-more { font: inherit; font-weight: 600; font-size: 15px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 11px 24px; cursor: pointer; }
.btn-more:hover, .btn-more:focus-visible { border-color: var(--accent); color: var(--accent-text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; padding-bottom: 48px; }
.card {
  display: block; text-decoration: none; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.thumb { aspect-ratio: 16 / 10; background: var(--bg-3); position: relative; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-thumb { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
/* card (assets/card.js): prompt → model → 4 numbers in fixed slots → footer */
.card-body { padding: 12px 14px 12px; }
.card-eyebrow { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-head { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; min-width: 0; }
.card-model { font-weight: 600; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-effort { color: var(--muted); font-size: 12px; }
.card-head .card-score { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--accent-text); white-space: nowrap; }
.card-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 12px 0 10px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.card-nums > div { background: var(--bg-3); padding: 7px 8px 6px; min-width: 0; }
.card-nums dt { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.card-nums dd { margin: 1px 0 0; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.card-flag { position: absolute; left: 8px; top: 8px; z-index: 1; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--bg-2) 88%, transparent); border: 1px solid var(--line); color: var(--text); }
.card-flag.broken { background: #e5484d; border-color: #e5484d; color: #fff; }
.badge {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 1px 8px;
  border-radius: 6px; background: var(--bg-3); border: 1px solid var(--line); color: var(--text);
}
.badge.fixed { border-color: #f5a524; color: #f5a524; background: transparent; }
.vbtn-fix { border-color: #f5a524; }
.drawer .fix-box { margin: 16px 0; padding: 12px 14px; border: 1px solid #f5a524; border-radius: 10px; }
.drawer .fix-box h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.badge.broken { border-color: #e5484d; color: #e5484d; background: transparent; }
.badge.effort { border-color: var(--accent-text); color: var(--accent-text); background: transparent; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; grid-column: 1 / -1; }

/* call to action → company website */
.cta {
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  margin: 8px 0 48px; padding: 28px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--accent);
}
.cta h2 { margin: 0 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.cta p { margin: 0; color: var(--muted); max-width: 640px; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-weight: 600; padding: 12px 22px; border-radius: 999px; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }

.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 20px 0 32px; }
.site-foot a { color: var(--accent-text); text-decoration: none; }
.foot-contact { font-style: normal; margin-top: 6px; }
/* footer (ZSLFoot in stats.js): about | AI Lab links | company & contact, then a thin bottom line – as on prompts.sk */
.site-foot { padding: 36px 0 24px; margin-top: 8px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.foot-about .brand { display: inline-flex; margin-bottom: 10px; font-size: 16px; }
.site-foot .foot-about .brand span { color: var(--text); } /* same two-tone logo as the header */
.foot-about p { margin: 0 0 8px; max-width: 460px; line-height: 1.6; }
.foot-about .foot-small { font-size: 12px; opacity: .85; }
.foot-col { display: flex; flex-direction: column; gap: 7px; font-style: normal; }
.foot-col h3 { margin: 0 0 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text); }
.site-foot .foot-col a { color: var(--muted); }
.site-foot .foot-col a:hover { color: var(--accent-text); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; }
.foot-bottom > span + span::before { content: "|"; margin: 0 10px; color: var(--line); }
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .foot-about { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; gap: 6px; }
  .foot-bottom > span + span::before { content: none; }
}

/* readable text about the lab (assets/about.js) – intro card with key numbers, details folded in blocks */
.about { padding: 8px 0 32px; line-height: 1.65; display: grid; gap: 14px; }
.about > * { min-width: 0; }
.about h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.about h3 { margin: 0; font-size: 16px; font-weight: 600; }
.about p, .about li { color: var(--muted); }
.about p { margin: 0 0 12px; max-width: 820px; }
.about ul { margin: 0 0 12px; padding-left: 20px; }
.about li { margin-bottom: 6px; }
.about li strong { color: var(--text); font-weight: 600; }
.about a { color: var(--accent-text); }
.about-intro, .about-block { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.about-intro { padding: 24px 28px 14px; }
.about-intro h2 { margin-bottom: 10px; }
.about .about-lead { color: var(--text); font-size: 17px; }
.about .about-tiles { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.about-tiles li { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--bg-3); display: flex; flex-direction: column; gap: 2px; }
.about-tiles b { color: var(--accent-text); font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.about-tiles span { font-size: 13px; }
.about-block > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; }
.about-block > summary::-webkit-details-marker { display: none; }
.about-block > summary > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.about-block > summary small { color: var(--muted); font-size: 13px; }
.about-block > summary::after { content: "+"; display: inline-block; flex: none; color: var(--accent-text); font-size: 26px; line-height: 1; transition: transform .2s; }
.about-block[open] > summary::after { transform: rotate(45deg); }
.about-block > summary:hover h2 { color: var(--accent-text); }
.about-block > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius); }
.about-body { padding: 0 28px 14px; }
.about-table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; }
.about table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.about th, .about td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.about tbody tr:last-child > * { border-bottom: 0; }
.about thead th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.about tbody th { font-weight: 600; }
@media (max-width: 640px) {
  .about-intro { padding: 20px 18px 10px; }
  .about-block > summary { padding: 16px 18px; }
  .about-body { padding: 0 18px 10px; }
}

/* FAQ collapsed: the answers stay in the HTML (crawlers, FAQPage data), the visitor opens what interests them */
.about-faq { border-top: 1px solid var(--line); }
.about-faq details { border-bottom: 1px solid var(--line); }
.about-faq details:last-child { border-bottom: 0; }
.about-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.about-faq summary::-webkit-details-marker { display: none; }
.about-faq summary::after { content: "+"; display: inline-block; flex: none; color: var(--accent-text); font-size: 22px; line-height: 1; transition: transform .2s; }
.about-faq details[open] summary::after { transform: rotate(45deg); }
.about-faq summary:hover h3 { color: var(--accent-text); }
.about-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.about-faq h3 { margin: 0; }
.about-faq details p { margin: 0 0 16px; }
.about .about-note { font-size: 13px; margin-top: -4px; }
.about th, .about td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.about thead th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.about tbody th { font-weight: 600; }

/* ---------- viewer ---------- */
body.viewer { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.vbar {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 14px;
  background: var(--bg); border-bottom: 1px solid var(--line); font-size: 14px; min-height: 52px;
}
.vbar .brand { font-size: 15px; white-space: nowrap; }
.vinfo { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; }
.vinfo strong { overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.vinfo .sep { color: var(--line); }
.vinfo .muted { color: var(--muted); }
.vactions { display: flex; gap: 6px; flex: none; align-items: center; }
.vbtn {
  border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px; padding: 4px 12px;
  text-decoration: none; font-size: 13px; white-space: nowrap; line-height: 1.6;
}
.vbtn:hover { border-color: var(--accent); }
.vbtn:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.vactions .theme-btn { width: 30px; height: 30px; font-size: 14px; }
.vactions .lang-btn { height: 30px; min-width: 38px; font-size: 12px; }
.vstage { flex: 1; position: relative; background: #000; min-height: 0; overflow: hidden; } /* clips the closed drawer – otherwise phones widen the whole page */
.vstage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vfoot {
  flex: none; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 6px 14px; font-size: 12px; color: var(--muted); background: var(--bg); border-top: 1px solid var(--line);
}
.vfoot a { color: var(--accent-text); text-decoration: none; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--bg-2);
  border-left: 1px solid var(--line); padding: 18px; overflow: auto; z-index: 5;
  transform: translateX(100%); transition: transform .2s, visibility 0s .2s; box-shadow: -10px 0 30px rgba(0,0,0,.3);
  visibility: hidden; /* closed: not focusable, not read out */
}
.drawer.open { transform: none; visibility: visible; transition: transform .2s; }
html:has(body.viewer) { overflow: hidden; }
.drawer h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.drawer pre { white-space: pre-wrap; font: 12.5px/1.6 var(--mono); background: var(--bg); padding: 12px; border-radius: 10px; border: 1px solid var(--line); }
.drawer dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; }
.drawer dt { color: var(--muted); }
.drawer dd { margin: 0; }
.drawer .muted { color: var(--muted); font-size: 13px; }
.drawer .cta-mini { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.drawer .cta-mini .btn { margin-top: 10px; font-size: 14px; padding: 9px 18px; }

@media (max-width: 720px) {
  .frow > label { width: 100%; }
  .vinfo .hide-sm, .vactions .hide-sm, .vbar .brand small { display: none; }
  /* viewer on phones: two rows – back link + actions, then title, model and scores (scrolls sideways if long) */
  .vbar { flex-wrap: wrap; gap: 6px 10px; padding: 6px 10px; }
  .vactions { margin-left: auto; gap: 4px; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
  .vactions .theme-btn { display: none; }
  .vactions .vbtn { padding: 4px 10px; }
  .vinfo { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .vinfo::-webkit-scrollbar { display: none; }
  .vinfo strong { flex: none; }
  .cta { padding: 20px; }
}

/* ---------- compare ---------- */
.hero-sm { padding: 32px 0 16px; }
.hero-sm h1 { font-size: clamp(26px, 3.4vw, 38px); }
.cmp-prompts { margin: 4px 0 20px; }
.cmp-block { margin-bottom: 28px; }
.cmp-block h2 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); padding: 0; white-space: nowrap; }
.cmp th button { all: unset; cursor: pointer; display: block; width: 100%; box-sizing: border-box; padding: 12px 14px; }
.cmp th button:hover { color: var(--text); }
.cmp th.num button { text-align: right; }
.cmp td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp tbody tr { cursor: pointer; transition: background .12s; }
.cmp tbody tr:hover { background: var(--bg-3); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp td.best { color: var(--accent-text); font-weight: 600; }
.cmp small { color: var(--muted); font-weight: 400; }
.c-model a { display: flex; gap: 12px; align-items: center; text-decoration: none; min-width: 230px; }
.c-thumb { width: 96px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--bg-3); flex: none; border: 1px solid var(--line); }
.c-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-fix { color: #f5a524; font-size: 12px; text-decoration: none; }
.badge.ok { border-color: #30a46c; color: #30a46c; background: transparent; }
.cmp-note { color: var(--muted); font-size: 13px; max-width: 820px; margin: 0 0 40px; }

/* gallery: compare entry points */
.cmp-cta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 0; }
.card { position: relative; }
.cmp-toggle {
  position: absolute; top: 8px; right: 8px; z-index: 2; font-size: 12px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 88%, transparent); opacity: 0; transition: opacity .15s;
}
.card:hover .cmp-toggle, .cmp-toggle[aria-pressed="true"], .cmp-toggle:focus-visible { opacity: 1; }
.cmp-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (hover: none) { .cmp-toggle { opacity: 1; } }
.cmp-tray {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20; display: flex; gap: 10px; align-items: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px; box-shadow: 0 8px 30px rgba(0,0,0,.3);
  max-width: calc(100% - 32px);
}
.cmp-tray[hidden] { display: none; }
/* back to top (gallery) – same round control language as the theme / language buttons */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 19; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font: 600 20px/1 var(--font); color: var(--text); cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.3);
  transition: border-color .15s, color .15s, transform .15s, bottom .2s;
}
.to-top:hover, .to-top:focus-visible { border-color: var(--accent); color: var(--accent-text); transform: translateY(-2px); }
.to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.to-top[hidden] { display: none; }
body.tray-on .to-top { bottom: 76px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
.cmp-tray .btn { padding: 9px 18px; }
.linkbtn { background: none; border: 0; color: var(--muted); font-size: 13px; padding: 0; }
.linkbtn:hover { color: var(--text); }

@media (max-width: 760px) {
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp td { display: block; width: 100%; }
  .cmp tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cmp td { border: 0; padding: 4px 14px; text-align: left; display: flex; justify-content: space-between; gap: 12px; }
  .cmp td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12px; }
  .cmp td.num { text-align: right; }
}

/* ---------- live side by side ---------- */
body.duel { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.duel-prompt, .duel-head select {
  font: inherit; font-size: 14px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 8px; max-width: 100%;
}
.duel-hint { flex: none; padding: 6px 14px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.duel-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.duel-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.duel-head { flex: none; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.duel-sp { flex: 1; }
.duel-fix { font-size: 13px; color: #f5a524; display: flex; gap: 4px; align-items: center; cursor: pointer; }
.duel-stage { flex: 1; min-height: 0; position: relative; background: #000; }
.duel-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.duel-cover { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; background: var(--bg-3); }
.duel-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .55; transition: opacity .15s; }
.duel-cover:hover img, .duel-cover:focus-visible img { opacity: .8; }
.duel-cover .btn { position: relative; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.duel-foot { flex: none; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.duel-foot a { color: var(--accent-text); text-decoration: none; }
.cmp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
@media (max-width: 900px) {
  body.duel { height: auto; overflow: auto; }
  .duel-grid { grid-template-columns: 1fr; }
  .duel-pane { height: 75vh; }
}

/* ---------- requirement checklist ---------- */
.badge.score { border-color: var(--accent-text); color: var(--accent-text); background: transparent; text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.drawer .chk-box { margin: 16px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.drawer .chk-box h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.chk-total { font-size: 22px; font-weight: 700; color: var(--accent-text); }
.chk-total small { font-size: 13px; color: var(--muted); font-weight: 500; }
.chk { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; }
.chk li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 13px; line-height: 1.4; }
.chk b { font-weight: 500; }
.chk small { color: var(--muted); }
.chk-sym { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.chk-pass .chk-sym { background: color-mix(in srgb, #30a46c 18%, transparent); color: #30a46c; }
.chk-partial .chk-sym { background: color-mix(in srgb, #f5a524 18%, transparent); color: #f5a524; }
.chk-fail .chk-sym { background: color-mix(in srgb, #e5484d 18%, transparent); color: #e5484d; }

/* ---------- leaderboard & model page ---------- */
.th-static { display: block; padding: 12px 14px; }
.lb-rank { color: var(--muted); width: 1%; }
.lb .c-model a { min-width: 180px; }
/* ---------- model page ---------- */
.mdl-back { margin: 24px 0 0; font-size: 14px; }
.mdl-back a { color: var(--muted); text-decoration: none; }
.mdl-back a:hover { color: var(--text); }
.mdl-h2 { font-size: 19px; font-weight: 600; margin: 0 0 12px; letter-spacing: -.01em; }
.mdl-sec { margin: 0 0 40px; }
.mdl-sec:empty { display: none; }
.mdl-hero { padding: 18px 0 22px; }
.mdl-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 14px; }
.mdl-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--muted); font-size: 13px; }
.pill-co { color: var(--text); font-weight: 600; }
.pill-co::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pill-open { color: #30a46c; border-color: rgba(48, 164, 108, .45); }

/* score strip: three rings + a row of secondary numbers + price line */
.mdl-score { margin: 0 0 40px; }
.score-big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sc { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line); }
.sc small, .score-small small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.sc b { display: block; font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sc b i { font-style: normal; font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.ring { width: 64px; height: 64px; flex: 0 0 64px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: var(--bg-3); }
.ring-fg { stroke-linecap: round; }
.ring.good .ring-fg { stroke: var(--accent); }
.ring.fair .ring-fg { stroke: #f5a524; }
.ring.weak .ring-fg { stroke: #e5484d; }
.rank { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--bg-3); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank.top { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.score-small { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin-top: 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.score-small > div { padding: 14px 20px; border-left: 1px solid var(--line); }
.score-small > div:first-child { border-left: 0; }
.score-small b { display: block; font-size: 20px; font-weight: 600; margin-top: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.score-small .rank { margin-top: 6px; }
.score-price { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.score-price b { color: var(--text); font-weight: 500; }
.score-price a { color: var(--accent-text); margin-left: 6px; }

/* what is it good for: maker's words + facts card */
.mdl-profile { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.mdl-role { margin: 0; font-size: 18px; line-height: 1.6; padding-left: 16px; border-left: 3px solid var(--accent); }
.mdl-src { margin: 10px 0 0 19px; color: var(--muted); font-size: 12px; }
.mdl-src a { color: inherit; }
.mdl-facts { margin: 0; padding: 6px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.mdl-facts div { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mdl-facts div:last-child { border-bottom: 0; }
.mdl-facts dt { color: var(--muted); font-size: 13px; flex: 0 0 auto; }
.mdl-facts dd { margin: 0; text-align: right; font-size: 14px; font-weight: 500; }
.mdl-facts dd .badge { margin: 2px 0 2px 2px; }

/* results in our tests: icon list with rank chips */
.mdl-lab { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.mdl-lab li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); line-height: 1.45; }
.mdl-lab .ico { flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); font-size: 15px; color: var(--accent-text); }
.mdl-lab .txt { flex: 1 1 auto; font-size: 14px; }
.mdl-lab .rank { margin: 0; }
.mdl-lab li.good .ico { background: var(--accent); color: var(--accent-ink); }
.mdl-lab li.weak .ico { background: rgba(229, 72, 77, .14); color: #e5484d; }
.mdl-lab li.low .txt { color: var(--muted); }

/* outputs */
.mdl-runs { margin: 0 0 16px; }
.mdl-runs-intro { color: var(--muted); font-size: 14px; margin: -6px 0 14px; }
.mrun-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.mrun { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding: 14px 18px; border-top: 1px solid var(--line); }
.mrun:first-child { border-top: 0; }
.mrun:hover { background: var(--bg-3); }
.mrun-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); }
.mrun-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mrun.is-broken .mrun-thumb img { opacity: .55; }
.mrun-main h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.mrun-main h3 a { text-decoration: none; }
.mrun-main h3 a:hover { color: var(--accent-text); }
.mrun-main p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mrun-metrics { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(88px, auto); gap: 18px; }
.mm small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.mm b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar { display: block; height: 4px; margin-top: 5px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.bar.fair > i { background: #f5a524; }
.bar.weak > i { background: #e5484d; }
.mrun-cmp { color: var(--accent-text); font-size: 14px; text-decoration: none; white-space: nowrap; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.mrun-cmp:hover { border-color: var(--accent); }
body[data-page="model"] .cmp-note { font-size: 12px; margin-top: 10px; }

@media (max-width: 1080px) {
  .mrun { grid-template-columns: 120px minmax(0, 1fr) auto; }
  .mrun-cmp { grid-column: 2 / -1; justify-self: start; }
}
@media (max-width: 860px) {
  .mdl-profile { grid-template-columns: 1fr; gap: 20px; }
  .mdl-lab { grid-template-columns: 1fr; }
  .score-big { grid-template-columns: 1fr; }
  .sc { padding: 14px 16px; }
}
@media (max-width: 720px) {
  .mrun-list { border: 0; background: none; display: grid; gap: 14px; overflow: visible; }
  .mrun { grid-template-columns: 1fr; gap: 12px; padding: 0 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
  .mrun:first-child { border-top: 1px solid var(--line); }
  .mrun-thumb { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
  .mrun-main, .mrun-metrics, .mrun-cmp { margin: 0 14px; }
  .mrun-metrics { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .mrun-cmp { grid-column: auto; text-align: center; }
  .score-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-small > div { border-left: 0; border-top: 1px solid var(--line); }
  .score-small > div:nth-child(-n+2) { border-top: 0; }
  .score-small > div:nth-child(even) { border-left: 1px solid var(--line); }
  .mdl-role { font-size: 16px; }
  .mdl-facts { padding: 4px 16px; }
}

/* small phones: brand + language + theme on the first line, the links on the second */
@media (max-width: 520px) {
  .topbar nav { display: contents; }
  .topbar .lang-btn, .topbar .theme-btn { order: 2; }
  .topbar .lang-btn { margin-left: auto; }
  .topbar .wrap::after { content: ""; order: 3; flex-basis: 100%; height: 0; }
  .topbar .toplink { order: 4; }
  .topbar .toplink:first-of-type { margin-left: -6px; }
}
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 0 0 28px; }
.tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.tile b { display: block; font-size: clamp(18px, 1.9vw, 24px); font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile b.tile-sm { font-size: 14px; font-weight: 500; white-space: normal; }
.tile-wide { grid-column: span 2; }
@media (max-width: 520px) { .tile-wide { grid-column: auto; } }

.c-profile { display: inline-block; margin: 4px 0 0 108px; font-size: 12px; color: var(--muted); text-decoration: none; }
.c-profile:hover { color: var(--accent-text); }
.vmodel { text-decoration: none; }
.vmodel:hover { color: var(--accent-text); }
@media (max-width: 760px) { .c-profile { margin-left: 0; } }
.tile-src { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--accent-text); text-decoration: none; }

/* ---------- value for money chart ---------- */
/* categorical slots validated with the dataviz palette validator (light: #fff surface, dark: #1f1b23) */
:root { --series-1: #3987e5; --series-2: #d95926; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --series-1: #2a78d6; --series-2: #eb6834; } }
:root[data-theme="light"] { --series-1: #2a78d6; --series-2: #eb6834; }
.vfm { margin: 32px 0 0; }
.vfm[hidden] { display: none; }
.vfm-intro { color: var(--muted); max-width: 760px; margin: 0 0 10px; font-size: 14px; }
.vfm-insight { margin: 0 0 14px; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 10px; font-weight: 500; max-width: 820px; }
.vfm-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.vfm-legend span { display: inline-flex; gap: 6px; align-items: center; }
.vfm-wrap { max-width: 860px; position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.vfm-svg { display: block; width: 100%; height: auto; overflow: visible; }
.vfm-grid { stroke: var(--line); stroke-width: 1; }
.vfm-axis { stroke: var(--muted); stroke-width: 1; opacity: .6; }
.vfm-tick { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.vfm-axis-title { fill: var(--muted); font-size: 12px; }
.vfm-frontier { fill: none; stroke: var(--text); stroke-width: 2; stroke-dasharray: 5 4; opacity: .45; }
.vfm-dot { stroke: var(--bg-2); stroke-width: 2; }
.s1 { fill: var(--series-1); } .s2 { fill: var(--series-2); }
.vfm-label { fill: var(--text); font-size: 12.5px; font-weight: 500; paint-order: stroke; stroke: var(--bg-2); stroke-width: 3px; }
.vfm-hit { fill: transparent; cursor: pointer; outline: none; }
.vfm-hit:focus-visible { stroke: var(--accent); stroke-width: 2; }
.vfm-tip { position: absolute; z-index: 3; min-width: 170px; pointer-events: none; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.5; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.vfm-tip small { color: var(--muted); }

/* ---------- visitor votes ---------- */
.votes { display: inline-flex; gap: 4px; }
.votes[hidden] { display: none; }
.vote-btn { border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px; padding: 3px 10px; font-size: 13px; line-height: 1.6; white-space: nowrap; }
.vote-btn:hover { border-color: var(--accent); }
.vote-btn b { font-weight: 600; font-variant-numeric: tabular-nums; }
.vote-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.card-votes { color: var(--muted); font-size: 12px; }
.card-votes:empty { display: none; }

/* ---------- technical quality ---------- */
.q-list { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.q-list li { display: grid; grid-template-columns: 110px 1fr 34px; gap: 8px; align-items: center; }
.q-list b { text-align: right; font-variant-numeric: tabular-nums; }
.q-list .q-na { grid-column: 2 / -1; }
.q-bar { height: 6px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.q-bar span { display: block; height: 100%; background: var(--accent-text); border-radius: 3px; }

/* ---------- arena ---------- */
.arena-bar { flex: none; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 14px; }
.arena-bar[hidden] { display: none; }
.arena-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.arena-note { color: var(--muted); font-size: 13px; }
.arena-next { padding: 6px 14px; margin-left: auto; font-size: 13px; }
@media (max-width: 720px) {
  /* headline results: three compact columns, ring above the number */
  .score-big { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sc { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 14px 6px; }
  .sc .ring { width: 48px; height: 48px; flex-basis: 48px; }
  .sc small { font-size: 10px; letter-spacing: .04em; min-height: 2.4em; }
  .sc b { font-size: 24px; }
  .sc b i { font-size: 12px; }
  .score-small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .score-small > div { padding: 12px 10px; border-top: 0; border-left: 1px solid var(--line); }
  .score-small > div:first-child, .score-small > div:nth-child(even) { border-left: 1px solid var(--line); }
  .score-small > div:first-child { border-left: 0; }
  .score-small small { font-size: 10px; letter-spacing: .04em; }
  .score-small b { font-size: 15px; }
  /* outputs: small thumbnail beside the title, metrics in one row */
  .mrun { grid-template-columns: 104px minmax(0, 1fr); gap: 10px 12px; padding: 12px; }
  .mrun-thumb { border-radius: 8px; border: 1px solid var(--line); }
  .mrun-main, .mrun-metrics, .mrun-cmp { margin: 0; }
  .mrun-main h3 { font-size: 15px; }
  .mrun-metrics { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .mrun-metrics:has(> :nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mm small { font-size: 10px; letter-spacing: .03em; }
  .mm b { font-size: 13px; }
  .mrun-cmp { grid-column: 1 / -1; padding: 6px 12px; font-size: 13px; }
}
@media (max-width: 520px) {
  .topbar .toplink { padding: 6px 4px; font-size: 13px; }
  .topbar .toplink:first-of-type { margin-left: -4px; }
}
@media (max-width: 720px) { .mm small { overflow: hidden; text-overflow: ellipsis; padding-right: 4px; } }
/* very small phones: prompts.sk is also in the footer – keep the nav on one line */
@media (max-width: 420px) { .topbar .toplink[href*="prompts.sk"] { display: none; } }
