/* Which AI Map — design system: design-system/ai-compass/MASTER.md (UI UX Pro Max)
   Dark-first developer aesthetic · JetBrains Mono + IBM Plex Sans · bento layout · "run green" accent */
:root {
  --bg: #0a0e17; --bg-2: #0d1320; --card: #111827; --card-2: #151f33;
  --line: #1f2a40; --line-2: #2c3a58;
  --fg: #e8ecf4; --muted: #9aa6bd; --dim: #7c89a3;
  --accent: #22c55e; --accent-ink: #04210f; --accent-soft: rgba(34, 197, 94, .12); --accent-line: rgba(34, 197, 94, .35);
  --warn: #f59e0b; --warn-soft: rgba(245, 158, 11, .12);
  --anthropic: #d95926; --openai: #199e70; --google: #3987e5; --open: #c98500; --seq: #3987e5;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px -16px rgba(0, 0, 0, .6);
  --r: 14px; --r-sm: 9px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f7f9; --bg-2: #eef1f5; --card: #ffffff; --card-2: #f8fafc;
  --line: #e2e7ef; --line-2: #cfd7e3;
  --fg: #0b1220; --muted: #475569; --dim: #5b6778;
  --accent: #15803d; --accent-ink: #ffffff; --accent-soft: rgba(21, 128, 61, .09); --accent-line: rgba(21, 128, 61, .35);
  --warn: #b45309; --warn-soft: rgba(180, 83, 9, .08);
  --anthropic: #eb6834; --openai: #1baf7a; --google: #2a78d6; --open: #eda100; --seq: #2a78d6;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .12);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--mono); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.6vw, 4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.02rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; }
code, pre, kbd { font-family: var(--mono); font-size: .86em; }
:not(pre) > code { background: var(--accent-soft); color: var(--fg); padding: .12em .4em; border-radius: 6px; border: 1px solid var(--line); }
kbd { border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: .05em .4em; color: var(--muted); font-size: .75rem; }
img { max-width: 100%; }
svg.i { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 64ch; }
.kicker { font: 600 .78rem/1 var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .12em; display: inline-flex; gap: .5em; align-items: center; margin-bottom: 1rem; }
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.spread h2 { margin: 0; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1.4rem; height: 62px; }
.brand { display: flex; align-items: center; gap: .55rem; font: 700 1rem var(--mono); color: var(--fg); text-decoration: none; letter-spacing: -.03em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; color: var(--accent); }
.nav { display: flex; gap: .2rem; }
.nav a { color: var(--muted); text-decoration: none; font: 500 .9rem var(--sans); padding: .5rem .7rem; border-radius: 8px; transition: color .15s, background .15s; white-space: nowrap; }
.nav a:hover { color: var(--fg); background: var(--card); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--card); box-shadow: inset 0 -2px 0 var(--accent); }
.top-actions { margin-left: auto; display: flex; gap: .4rem; align-items: center; }
.icon-btn { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .6rem; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s; font: 500 .85rem var(--sans); gap: .4rem; grid-auto-flow: column; text-decoration: none; }
.icon-btn:hover { color: var(--fg); border-color: var(--line-2); }
.search-btn { justify-content: start; min-width: 190px; }
.search-btn kbd { margin-left: auto; }
#menuBtn { display: none; }
@media (max-width: 1060px) {
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: .6rem 16px 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .7rem; font-size: 1rem; }
  #menuBtn { display: inline-grid; }
  .search-btn { min-width: 40px; }
  .search-btn span, .search-btn kbd { display: none; }
}

/* ---------- buttons, chips, tags ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 1.2rem; border-radius: 11px; font: 600 .95rem var(--sans); text-decoration: none; border: 1px solid var(--line-2); color: var(--fg); background: var(--card); cursor: pointer; transition: transform .15s var(--ease), border-color .15s, background .15s; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 0 0 1px var(--accent-line), 0 8px 24px -10px var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.sm { min-height: 36px; padding: 0 .8rem; font-size: .85rem; border-radius: 9px; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.4rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 500 .9rem var(--sans); cursor: pointer; transition: all .15s var(--ease); }
.chip:hover { color: var(--fg); border-color: var(--line-2); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { color: var(--fg); border-color: var(--accent-line); background: var(--accent-soft); }
.chip[aria-pressed="true"] svg, .chip[aria-selected="true"] svg { color: var(--accent); }

.tag { display: inline-flex; align-items: center; gap: .3em; font: 600 .68rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: .38em .55em; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.tag.ok { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.tag.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); }
.p-anthropic { --c: var(--anthropic); } .p-openai { --c: var(--openai); } .p-google { --c: var(--google); } .p-open { --c: var(--open); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); display: inline-block; flex: none; }

/* ---------- cards ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; box-shadow: var(--shadow); transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s; min-width: 0; }
.card.link:hover, .card:has(> a.cover:hover) { border-color: var(--line-2); background: var(--card-2); transform: translateY(-2px); }
.card h3 { margin: 0 0 .35rem; }
.card p { color: var(--muted); font-size: .94rem; margin: 0; }
.card .head { display: flex; justify-content: space-between; align-items: start; gap: .8rem; margin-bottom: .5rem; }
.card .foot { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-top: 1rem; font: .8rem var(--mono); color: var(--dim); }
.card a.cover { position: absolute; inset: 0; border-radius: var(--r); z-index: 1; }
.card .above { position: relative; z-index: 2; }
.card.accent-left { border-left: 3px solid var(--c, var(--accent)); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.stars { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); }
.stars svg { color: #eab308; fill: #eab308; width: .95em; height: .95em; }
.delta { color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 64px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 20%, transparent 75%); opacity: .7; pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -260px; background: radial-gradient(circle, var(--accent-soft), transparent 65%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.prompt { font: 500 .88rem var(--mono); color: var(--muted); margin-bottom: 1.4rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.prompt b { color: var(--accent); font-weight: 600; }
.cursor { display: inline-block; width: .55em; height: 1.1em; background: var(--accent); vertical-align: -.2em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.15rem; margin-bottom: 2rem; }
.hero-search { display: flex; align-items: center; gap: .7rem; max-width: 620px; height: 58px; padding: 0 1rem; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--muted); cursor: text; box-shadow: var(--shadow); transition: border-color .15s; width: 100%; font: 1rem var(--sans); text-align: left; }
.hero-search:hover { border-color: var(--accent-line); }
.hero-search kbd { margin-left: auto; }
.status { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 2.2rem; font: .82rem var(--mono); color: var(--muted); }
.status span { display: inline-flex; align-items: center; gap: .45rem; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-line); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* page header (inner pages) */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, #000, transparent 70%); opacity: .8; pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); max-width: 20ch; }

/* ---------- bento (home) ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(12, 1fr); }
.bento > * { grid-column: span 12; }
@media (min-width: 900px) {
  .b-8 { grid-column: span 8; } .b-6 { grid-column: span 6; } .b-5 { grid-column: span 5; } .b-7 { grid-column: span 7; } .b-4 { grid-column: span 4; } .b-rows-2 { grid-row: span 2; }
}
.tile-title { display: flex; align-items: center; gap: .55rem; font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1rem; }
.tile-title svg { color: var(--accent); }
.tile-title a { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; }

/* ---------- picker ---------- */
.picks { display: grid; gap: 10px; }
.pick { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem 1rem; align-items: center; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.pick:first-child { border-color: var(--accent-line); background: var(--accent-soft); }
.pick .rank { font: 700 .72rem var(--mono); color: var(--dim); grid-row: span 2; width: 2.2rem; }
.pick:first-child .rank { color: var(--accent); }
.pick .name { font: 700 1rem var(--mono); display: flex; gap: .5rem; align-items: center; letter-spacing: -.01em; }
.pick .why { grid-column: 2; color: var(--muted); font-size: .92rem; }
.pick .price { grid-row: span 2; font: .78rem var(--mono); color: var(--dim); text-align: right; }
@media (max-width: 560px) { .pick { grid-template-columns: auto 1fr; } .pick .price { grid-row: auto; grid-column: 2; text-align: left; } }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { white-space: nowrap; font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); background: var(--bg-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--mono); white-space: nowrap; text-align: right; }
th.num { text-align: right; }
td .mname { font: 600 .92rem var(--mono); display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
td.why { color: var(--muted); min-width: 260px; }

/* ---------- code / terminal ---------- */
.term { border: 1px solid var(--line); border-radius: var(--r); background: #070a11; overflow: hidden; box-shadow: var(--shadow); }
:root[data-theme="light"] .term { background: #0f172a; }
.term-bar { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border-bottom: 1px solid #1c2538; font: .75rem var(--mono); color: #8b97b0; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3550; display: inline-block; }
.term-bar .copy { margin-left: auto; }
.term pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; color: #d7deea; font-size: .84rem; line-height: 1.65; }
.term .c { color: #6b7894; } .term .k { color: #7ee2a8; } .term .s { color: #f5c07a; }
.copy { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 1px solid #2a3550; color: #a9b4c9; border-radius: 7px; padding: .3rem .55rem; font: .72rem var(--mono); cursor: pointer; min-height: 30px; }
.copy:hover { color: #fff; border-color: #44557a; }

/* ---------- steps, callouts, diagram ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.steps > li { counter-increment: s; position: relative; padding-left: 3.2rem; }
.steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: .05rem; font: 700 .8rem var(--mono); color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 8px; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; }
.steps h3 { margin-bottom: .2rem; }
.steps p { color: var(--muted); margin: 0; }
.callout { display: flex; gap: .9rem; padding: 1rem 1.2rem; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-soft); color: var(--fg); font-size: .95rem; }
.callout svg { color: var(--warn); margin-top: .2rem; }
.callout.ok { border-color: var(--accent-line); background: var(--accent-soft); }
.callout.ok svg { color: var(--accent); }
.diagram { width: 100%; height: auto; }
.diagram text { font-family: var(--mono); fill: var(--fg); }
.diagram .sub { fill: var(--muted); font-size: 11px; }
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.gloss { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 0; }
.gloss div { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; background: var(--card); }
.gloss dt { font: 700 .92rem var(--mono); margin-bottom: .25rem; }
.gloss dd { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- configurator ---------- */
.cfg { display: grid; gap: 14px; grid-template-columns: 300px 1fr; }
@media (max-width: 860px) { .cfg { grid-template-columns: 1fr; } }
.cfg-list { display: grid; gap: 6px; align-content: start; max-height: 520px; overflow: auto; padding-right: 4px; }
.opt { display: flex; gap: .7rem; align-items: center; text-align: left; width: 100%; padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; font: 500 .92rem var(--sans); min-height: 48px; transition: all .15s; }
.opt small { display: block; color: var(--dim); font: .72rem var(--mono); }
.opt:hover { border-color: var(--line-2); }
.opt[aria-selected="true"] { border-color: var(--accent-line); background: var(--accent-soft); }
.field-label { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin: 0 0 .6rem; }

/* ---------- lists: news, leaderboard ---------- */
.feed { display: grid; gap: 10px; }
.story { display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; padding: 1.1rem 1.2rem; }
.story time { font: .78rem var(--mono); color: var(--dim); padding-top: .15rem; }
.story h3 { font: 600 1.02rem/1.35 var(--sans); letter-spacing: 0; }
.story .src { font: 600 .72rem var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 600px) { .story { grid-template-columns: 1fr; gap: .3rem; } }
.mini-feed { display: grid; }
.mini-feed a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.mini-feed a:last-child { border-bottom: 0; }
.mini-feed a:hover b { color: var(--accent); }
.mini-feed b { font-weight: 600; display: block; line-height: 1.35; transition: color .15s; }
.mini-feed small { color: var(--dim); font: .74rem var(--mono); }
.board { display: grid; gap: 8px; }
.entry { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center; padding: .85rem 1.1rem; }
.entry .pos { font: 700 1.05rem var(--mono); color: var(--dim); text-align: center; }
.entry:nth-child(1) .pos { color: #eab308; } .entry:nth-child(2) .pos { color: #cbd5e1; } .entry:nth-child(3) .pos { color: #d97706; }
.entry .who { display: flex; gap: .8rem; align-items: center; min-width: 0; }
.entry .who img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); }
.entry .who b { font: 600 .98rem var(--mono); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry .who small { color: var(--dim); font: .76rem var(--mono); }
.entry .score { font: 700 1.2rem var(--mono); text-align: right; }
.entry .score small { display: block; font: 500 .68rem var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.vote { position: relative; z-index: 2; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 2rem; text-align: center; color: var(--muted); }

/* ---------- command palette ---------- */
dialog.palette { width: min(640px, calc(100vw - 32px)); max-height: min(70vh, 560px); padding: 0; border: 1px solid var(--line-2); border-radius: 16px; background: var(--card); color: var(--fg); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); margin-top: 12vh; overflow: hidden; }
dialog.palette::backdrop { background: rgba(3, 6, 12, .6); backdrop-filter: blur(3px); }
.palette .in { display: flex; align-items: center; gap: .7rem; padding: 0 1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette input { flex: 1; height: 58px; border: 0; background: none; color: var(--fg); font: 1.05rem var(--sans); outline: none; }
.palette ul { list-style: none; margin: 0; padding: .4rem; max-height: calc(min(70vh, 560px) - 60px); overflow: auto; }
.palette li a { display: flex; gap: .8rem; align-items: center; padding: .7rem .8rem; border-radius: 10px; color: var(--fg); text-decoration: none; }
.palette li a small { margin-left: auto; font: .7rem var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.palette li a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette li a em { font-style: normal; color: var(--dim); font-size: .85rem; }
.palette li[aria-selected="true"] a, .palette li a:hover { background: var(--accent-soft); }

/* ---------- footer ---------- */
footer.foot { border-top: 1px solid var(--line); padding: 48px 0; color: var(--muted); font-size: .9rem; margin-top: 40px; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
footer.foot a { color: var(--muted); }
footer.foot a:hover { color: var(--fg); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* grid children must be allowed to shrink below their content (long code, long titles) */
.cfg > *, .story > *, .split > * { min-width: 0; }
.story h3, .mini-feed b { overflow-wrap: anywhere; }
.feed, .board, .picks, .mini-feed { grid-template-columns: minmax(0, 1fr); }
.story p { overflow-wrap: anywhere; }
@media (max-width: 1200px) { .search-btn { min-width: 40px; } .search-btn span, .search-btn kbd { display: none; } }

/* ---------- benchmarks (dataviz: validated categorical slots 1-4, blue sequential) ---------- */
.legend-row { display: flex; gap: 1.1rem; flex-wrap: wrap; font: .82rem var(--mono); color: var(--muted); margin-bottom: 1rem; }
.legend-row span { display: inline-flex; align-items: center; gap: .45rem; }
.legend-row i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); display: inline-block; }
.heat { border-collapse: separate; border-spacing: 2px; font-size: .86rem; }
.heat th, .heat td { border: 0; padding: .55rem .6rem; background: none; position: static; }
.heat thead th { vertical-align: bottom; white-space: normal; min-width: 76px; line-height: 1.25; text-transform: none; letter-spacing: 0; font: 600 .74rem var(--sans); color: var(--muted); }
.heat thead th small { display: block; font: .66rem var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .05em; margin-top: .2rem; }
.heat td.cell { text-align: center; font: 600 .84rem var(--mono); border-radius: 5px; color: var(--fg); cursor: default; }
.heat td.cell.na { color: var(--dim); font-weight: 400; background: transparent; border: 1px dashed var(--line); }
.heat td.cell.top { outline: 2px solid var(--fg); outline-offset: -2px; }
.heat td.cell a { color: inherit; text-decoration: none; display: block; }
.heat tbody th.mcol { white-space: nowrap; font: 600 .86rem var(--mono); text-transform: none; letter-spacing: -.01em; color: var(--fg); background: none; padding-right: 1rem; text-align: left; }
.bars { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; align-items: center; gap: .8rem; font-size: .88rem; }
.bar-row .lbl { font: 600 .84rem var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: .45rem; align-items: center; }
.bar-track { position: relative; height: 26px; margin-right: 4.2rem; }
.bar { height: 100%; border-radius: 0 4px 4px 0; background: var(--c); min-width: 3px; transition: width .45s var(--ease); }
.bar-val { position: absolute; top: 50%; transform: translateY(-50%); font: 600 .8rem var(--mono); color: var(--fg); padding-left: .5rem; white-space: nowrap; }
.bar-row:hover .bar { filter: brightness(1.15); }
a.bar-row { color: inherit; text-decoration: none; }
.scatter { width: 100%; height: auto; overflow: visible; }
.scatter .grid-l { stroke: var(--line); stroke-width: 1; }
.scatter .ax { fill: var(--dim); font: 11px var(--mono); }
.scatter .pt { stroke: var(--card); stroke-width: 2; }
.scatter .pl { fill: var(--fg); font: 600 11px var(--mono); paint-order: stroke; stroke: var(--card); stroke-width: 3px; }
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px; padding: .55rem .75rem; font-size: .82rem; box-shadow: var(--shadow); max-width: 280px; opacity: 0; transition: opacity .12s; }
.tip.on { opacity: 1; }
.tip b { font-family: var(--mono); }
@media (max-width: 600px) { .bar-row { grid-template-columns: 110px 1fr; } }

.nl-layout { grid-template-columns: 260px minmax(0, 1fr); }
@media (max-width: 860px) { .nl-layout { grid-template-columns: 1fr; } }
.mini-feed a[aria-current="true"] b { color: var(--accent); }

/* =========================================================================
   v3: friendlier UI for non-experts
   ========================================================================= */
/* brand marks: single-colour SVGs used as masks so they take the provider colour */
.logo { width: 1.3em; height: 1.3em; display: inline-block; flex: none; background: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.rec-facts .field-label { display: block; }
.logo-badge { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 16%, var(--card)); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); font: 700 1.1rem var(--mono); }
.logo-badge .logo { width: 24px; height: 24px; }
td .mname .logo-badge { width: 30px; height: 30px; border-radius: 8px; }
td .mname .logo-badge .logo { width: 17px; height: 17px; }
.avatar { width: 40px; height: 40px; border-radius: 10px; flex: none; background: var(--bg-2); border: 1px solid var(--line); object-fit: cover; display: inline-grid; place-items: center; color: var(--muted); }

/* nav group */
.nav-group { position: relative; }
.nav-group summary { list-style: none; cursor: pointer; color: var(--muted); font: 500 .9rem var(--sans); padding: .5rem .7rem; border-radius: 8px; display: flex; align-items: center; gap: .25rem; white-space: nowrap; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover, .nav-group[open] summary, .nav-group[data-current] summary { color: var(--fg); background: var(--card); }
.nav-group summary svg { width: .9em; height: .9em; }
.nav-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; padding: .4rem; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); box-shadow: var(--shadow); display: grid; z-index: 60; }
.nav-menu a { padding: .6rem .7rem !important; }
@media (max-width: 1060px) { .nav-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 .8rem; background: none; } .nav-group summary { padding: .8rem .7rem; font-size: 1rem; } }

/* steps + picker */
.step { display: flex; align-items: center; gap: .8rem; margin: 2rem 0 1rem; }
.step:first-child { margin-top: 0; }
.step h3 { margin: 0; font-size: 1.15rem; }
.step-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 .95rem var(--mono); flex: none; }
.goal-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-bottom: 1rem; }
.goal { display: flex; align-items: center; gap: .75rem; min-height: 60px; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: 600 .95rem var(--sans); text-align: left; cursor: pointer; transition: all .15s var(--ease); }
.goal svg { width: 22px; height: 22px; color: var(--muted); }
.goal:hover { border-color: var(--line-2); transform: translateY(-1px); }
.goal[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.goal[aria-pressed="true"] svg { color: var(--accent); }
.seg { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.seg-b { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--fg); text-align: left; cursor: pointer; min-height: 64px; transition: all .15s var(--ease); }
.seg-b svg { width: 20px; height: 20px; color: var(--muted); }
.seg-b b { display: block; font: 600 .95rem var(--sans); }
.seg-b small { color: var(--muted); font-size: .8rem; }
.seg-b[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.seg-b[aria-pressed="true"] svg { color: var(--accent); }
.seg-b:disabled { opacity: .4; cursor: not-allowed; }
.rec-wrap { margin-top: 1.6rem; }
.rec { border-radius: 16px; padding: 1.5rem; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, var(--card)), var(--card) 60%); border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line)); box-shadow: var(--shadow); }
.rec-head { display: flex; gap: 1rem; align-items: center; }
.rec-head .logo-badge { width: 60px; height: 60px; border-radius: 16px; }
.rec-head .logo-badge .logo { width: 32px; height: 32px; }
.rec-head h3 { font-size: 1.5rem; margin: .1rem 0 0; }
.rec-why { font-size: 1.12rem; margin: 1.1rem 0; color: var(--fg); }
.rec-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: .9rem; }
.rec-facts p { margin: .3rem 0 0; color: var(--muted); }
.rec-facts .btn { margin-top: .4rem; }
.alt-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.alt { display: flex; gap: .8rem; align-items: start; padding: 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.alt p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }

/* home goal tiles */
.goal-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.goal-tile { display: grid; grid-template-columns: auto 1fr; gap: .15rem .9rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--fg); text-decoration: none; transition: all .18s var(--ease); }
.goal-tile svg { grid-row: span 2; width: 26px; height: 26px; color: var(--accent); padding: 8px; box-sizing: content-box; border-radius: 10px; background: var(--accent-soft); }
.goal-tile b { font-weight: 600; }
.goal-tile small { color: var(--muted); font-size: .84rem; }
.goal-tile:hover { border-color: var(--accent-line); transform: translateY(-2px); }

/* tool finder */
.goal-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.4rem; }
.goal-chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: 500 .92rem var(--sans); cursor: pointer; transition: all .15s var(--ease); }
.goal-chip svg { color: var(--muted); }
.goal-chip small { font: .72rem var(--mono); color: var(--dim); }
.goal-chip:hover { border-color: var(--line-2); }
.goal-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.goal-chip[aria-pressed="true"] svg { color: var(--accent); }
.filters { display: flex; gap: 1.5rem 2.5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.tool-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tool { display: flex; flex-direction: column; gap: .7rem; text-align: left; padding: 1.1rem 1.15rem; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; font: inherit; transition: all .18s var(--ease); min-width: 0; }
.tool:hover { border-color: var(--line-2); background: var(--card-2); transform: translateY(-2px); }
.tool-head { display: flex; gap: .75rem; align-items: center; min-width: 0; }
.tool-name { min-width: 0; }
.tool-name b { display: block; font: 600 1rem var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-name small { color: var(--dim); font: .75rem var(--mono); }
.tool-plain { color: var(--muted); font-size: .93rem; line-height: 1.5; flex: 1; }
.tool-foot { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.tool-stats { margin-left: auto; font: .75rem var(--mono); color: var(--dim); display: inline-flex; gap: .3rem; align-items: center; }
.tool-stats svg { width: .9em; height: .9em; }
dialog.tool-dlg { width: min(720px, calc(100vw - 24px)); max-height: min(88vh, 900px); padding: 1.6rem; border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); color: var(--fg); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); overflow: auto; }
dialog.tool-dlg::backdrop { background: rgba(3, 6, 12, .65); backdrop-filter: blur(3px); }
.dlg-head { display: flex; gap: 1rem; align-items: center; }
.dlg-head h2 { margin: 0; font-size: 1.5rem; overflow-wrap: anywhere; }
.dlg-head .avatar { width: 52px; height: 52px; border-radius: 12px; }
.dlg-close { margin-left: auto; align-self: start; }
.ticks { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .5rem; }
.ticks li { display: flex; gap: .6rem; align-items: start; }
.ticks svg { color: var(--accent); margin-top: .25rem; }
.steps.compact { gap: 10px; margin-top: .7rem; }
.steps.compact > li { padding-left: 2.7rem; min-height: 2rem; }
.steps.compact > li::before { width: 1.9rem; height: 1.9rem; font-size: .75rem; }
.steps.compact p { color: var(--fg); padding-top: .2rem; }
details.more { margin-top: 1.2rem; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--muted); }
details.more p { color: var(--muted); margin: .7rem 0 0; }
a.tag { text-decoration: none; }
a.tag:hover { color: var(--fg); border-color: var(--muted); }
.hero .btn { min-height: 52px; }


footer.foot p { line-height: 2.1; }
footer.foot p a { display: inline-block; padding: .15rem 0; min-height: 24px; }


.entry { grid-template-columns: 3rem minmax(0, 1fr) auto; }
.entry .who > div { min-width: 0; }
#issue .tag { white-space: normal; text-align: right; }

/* v4: model CTA on home, test evidence in the picker */
.cta-band { display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center; padding: 1.6rem 1.8rem; border-radius: 18px; border: 1px solid var(--accent-line); background: linear-gradient(120deg, var(--accent-soft), var(--card) 55%); color: var(--fg); text-decoration: none; box-shadow: var(--shadow); transition: transform .18s var(--ease), border-color .18s; }
.cta-band:hover { transform: translateY(-2px); border-color: var(--accent); }
.cta-logos { display: flex; }
.cta-logos .logo-badge { margin-left: -10px; box-shadow: 0 0 0 3px var(--card); }
.cta-logos .logo-badge:first-child { margin-left: 0; }
.cta-text b { display: block; font: 700 1.35rem var(--mono); letter-spacing: -.02em; margin-bottom: .25rem; }
.cta-text span { color: var(--muted); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }
.ev-row { display: grid; gap: .5rem; margin: 0 0 1rem; }
.ev-row > div { display: flex; flex-wrap: wrap; gap: 8px; }
.ev { display: inline-flex; align-items: baseline; gap: .45rem; padding: .45rem .7rem; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font: 600 .9rem var(--mono); }
.ev b { font: 500 .82rem var(--sans); color: var(--muted); }
.ev small { font: .72rem var(--mono); color: var(--dim); }

/* v5: community */
.kind-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-bottom: 1.4rem; }
.kind-grid .goal { align-items: start; min-height: 88px; }
.cform { display: grid; gap: 1rem; max-width: 720px; padding: 1.5rem; }
.cform h3 { margin: 0; }
.fld { display: grid; gap: .4rem; font-weight: 500; }
.fld span { font-size: .92rem; }
.fld input, .fld textarea, input.note { width: 100%; padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); font: 1rem var(--sans); }
.fld textarea { resize: vertical; min-height: 120px; }
.fld input:focus, .fld textarea:focus, input.note:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input.note { width: auto; flex: 1; min-width: 200px; padding: .5rem .7rem; font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sub p { margin: .4rem 0 0; }
.tip-q { margin: .6rem 0 0; padding: .8rem 1rem; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 10px 10px 0; }
.tip-q p { margin: 0 0 .3rem; }

/* keep the model name visible while scrolling the heatmap sideways */
.heat tbody th.mcol, .heat thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--card); }
@media (max-width: 600px) { .heat tbody th.mcol { font-size: .78rem; padding-right: .5rem; } }

/* v6: instant answer on the home page, apps */
.hero-ask { display: flex; align-items: center; gap: .7rem; max-width: 720px; min-height: 62px; padding: .4rem .5rem .4rem 1.1rem; border-radius: 16px; border: 1px solid var(--accent-line); background: var(--card); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); color: var(--muted); }
.hero-ask input { flex: 1; min-width: 0; height: 50px; border: 0; background: none; color: var(--fg); font: 1.05rem var(--sans); outline: none; }
.hero-ask:focus-within { border-color: var(--accent); }
.hero-ask .btn { min-height: 46px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 0; max-width: 820px; }
.ask-chips .chip { min-height: 36px; font-size: .86rem; }
#askOut { margin-top: 1.6rem; }
.ask-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.ask-pick { display: grid; gap: .5rem; align-content: start; }
.ask-pick .field-label { margin: 0; color: var(--accent); }
.ask-more { margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 1.2rem; }
.ask-more a { display: inline-flex; gap: .35rem; align-items: center; }
.avatar.letter { font: 700 1.05rem var(--mono); color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.price-line { display: flex; gap: .6rem; align-items: start; padding: .7rem .9rem; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); margin: 0 0 1.2rem; }
.price-line svg { color: var(--accent); margin-top: .2rem; }

/* ---------- v7: news as a magazine, pictures in rankings ---------- */
#feed.feed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-card:has(> a.cover:hover) h3 { color: var(--accent); }
.cover-img { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; color: var(--c, var(--dim));
  background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--fg) 7%, transparent) 1px, transparent 0) 0 0 / 18px 18px, linear-gradient(135deg, color-mix(in srgb, var(--c, var(--accent)) 20%, var(--bg-2)), var(--bg-2)); border-bottom: 1px solid var(--line); }
.cover-img .logo { width: 56px; height: 56px; opacity: .85; }
.cover-img b { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; font: 700 1.9rem var(--mono); color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.cover-img .avatar { width: 72px; height: 72px; border-radius: 18px; }
.cover-img img:not(.avatar) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.cover-img.p-openai { --c: var(--openai); } .cover-img.p-anthropic { --c: var(--anthropic); } .cover-img.p-google { --c: var(--google); } .cover-img.p-open { --c: var(--open); }
.news-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; font: .74rem var(--mono); color: var(--dim); }
.news-meta .src { font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.news-card h3 { font: 600 1.05rem/1.35 var(--sans); letter-spacing: 0; margin: 0; transition: color .15s; }
.news-card p { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-foot { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: auto; padding-top: .3rem; font: .78rem var(--mono); }
.news-card.top-story { grid-column: 1 / -1; flex-direction: row; }
.news-card.top-story .cover-img { flex: 0 0 58%; aspect-ratio: 1200 / 630; align-self: center; border-bottom: 0; border-right: 1px solid var(--line); }
.news-card.top-story .news-body { padding: 1.8rem; justify-content: center; gap: .8rem; }
.news-card.top-story h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.2; }
.news-card.top-story p { font-size: 1.02rem; -webkit-line-clamp: 5; line-clamp: 5; }
.news-card.top-story .news-foot { margin-top: .4rem; }
.news-more { grid-column: 1 / -1; justify-self: center; margin-top: .6rem; }
@media (max-width: 980px) { #feed.feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  #feed.feed { grid-template-columns: minmax(0, 1fr); }
  .news-card.top-story { flex-direction: column; }
  .news-card.top-story .cover-img { flex: none; aspect-ratio: 16 / 9; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .news-card.top-story .news-body { padding: 1.1rem; }
}
.entry .who .avatar { width: 36px; height: 36px; border-radius: 9px; }
.entry .who > div { min-width: 0; }
.entry .who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- v7: compact filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.2rem; }
.toolbar .hero-search { flex: 1 1 260px; max-width: 420px; height: 44px; box-shadow: none; font: inherit; color: var(--fg); }
.sel { display: inline-flex; align-items: center; gap: .5rem; height: 44px; padding: 0 .3rem 0 .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font: .74rem var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.sel:hover, .sel:focus-within { border-color: var(--line-2); }
.sel select { height: 100%; border: 0; background: transparent; color: var(--fg); font: 500 .92rem var(--sans); text-transform: none; letter-spacing: 0; cursor: pointer; padding-right: .4rem; max-width: 46vw; }
.sel select:focus { outline: none; }
.sel option { background: var(--card); color: var(--fg); }
.goal-chip { min-height: 38px; padding: 0 .8rem; font-size: .88rem; }
.goal-chips { gap: 6px; margin-bottom: 1rem; }
@media (max-width: 720px) {
  /* one swipeable line instead of a wall of wrapped chips */
  .chips, .goal-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  .chips::-webkit-scrollbar, .goal-chips::-webkit-scrollbar { display: none; }
  .chips > *, .goal-chips > * { flex: none; }
  .ask-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ask-chips > * { flex: none; }
  .toolbar .hero-search { flex-basis: 100%; max-width: none; }
  .toolbar > span { flex: 1 1 0; min-width: 0; }
  .sel { width: 100%; padding: 0 .1rem 0 .5rem; }
  .sel > span { display: none; }
  .sel select { width: 100%; max-width: none; font-size: .84rem; padding-right: 0; }
  .news-card.top-story .cover-img { align-self: stretch; width: 100%; }
  .entry { grid-template-columns: 1.5rem minmax(0, 1fr) auto; gap: .6rem; padding: .7rem .8rem; }
  .entry .score { font-size: 1rem; }
  .entry .score small { max-width: 10ch; margin-left: auto; white-space: normal; line-height: 1.25; letter-spacing: .04em; }
}
