/* web-design-elements kit: dialog.css v1 */
/* Native <dialog class="kit-dlg"> styled to the site: the browser's default box (thick border, padding, centred
   max sizes) is reset, the backdrop is the site's overlay colour, and motion runs only without a reduced-motion
   preference. Map the --kit-dlg-* custom properties to your tokens on the dialog or an ancestor; do not edit this file.
   Never give a dialog an unconditional display value: author display overrides the browser's closed-state
   display:none. Use .your-class[open]{display:flex} instead. */
dialog.kit-dlg {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  margin: var(--kit-dlg-top, 6vh) auto auto;
  padding: 0;
  width: calc(100% - 2 * var(--kit-dlg-gutter, 1rem));
  max-width: var(--kit-dlg-width, 42rem);
  height: fit-content;
  max-height: var(--kit-dlg-max-h, 86vh);
  overflow: auto;
  overscroll-behavior: contain; /* scrolling inside the dialog never scrolls the page */
  border: 1px solid var(--kit-dlg-border, CanvasText);
  border-radius: var(--kit-dlg-radius, 1rem);
  background: var(--kit-dlg-bg, Canvas);
  color: var(--kit-dlg-fg, CanvasText);
  box-shadow: var(--kit-dlg-shadow, none);
}
dialog.kit-dlg::backdrop {
  background: var(--kit-dlg-backdrop, rgb(0 0 0 / .5));
  overflow: hidden; /* with overscroll-behavior, wheel and touch over the backdrop do not scroll the page */
  overscroll-behavior: contain;
}
dialog.kit-dlg:focus-visible { outline: none; } /* the dialog box itself takes focus only as a fallback */
@media (prefers-reduced-motion: no-preference) {
  dialog.kit-dlg[open] { animation: kit-dlg-pop .2s ease-out; }
  dialog.kit-dlg[open]::backdrop { animation: kit-dlg-fade .2s ease-out; }
}
@keyframes kit-dlg-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes kit-dlg-fade { from { opacity: 0; } }
@media (forced-colors: active) {
  dialog.kit-dlg { border-color: CanvasText; }
}

/* AI Round-ups: site styles. Tokens light on :root, dark under prefers-color-scheme and [data-theme=dark]. */
:root {
  color-scheme: light dark;
  --bg: #f3f5fa; --surface: #ffffff; --surface-2: #e9edf6; --text: #121a2e; --muted: #47506a; --line: #cfd6e4;
  --brand: #0d2a52; --brand-ink: #ffffff; --accent: #c2410c; --link: #1d4fbf; --focus: #c2410c;
  --c-models: #1f4fd1; --c-agents: #c2410c; --c-coding: #047857; --c-media: #a21caf; --c-open: #0e7490;
  --c-cost: #a16207; --c-industry: #4b5563; --c-policy: #be123c; --c-firsts: #6d28d9;
  --v-right: #047857; --v-partly: #a16207; --v-early: #475569; --v-wrong: #be123c;
  --band0: #e6ebf5; --band1: #f6f8fc;
  --shadow: 0 1px 2px rgb(13 42 82 / .06), 0 4px 14px rgb(13 42 82 / .06);
  --kit-dlg-bg: var(--surface); --kit-dlg-fg: var(--text); --kit-dlg-border: var(--line); --kit-dlg-backdrop: rgb(9 18 38 / .55);
  --kit-dlg-radius: 14px; --kit-dlg-shadow: 0 20px 60px rgb(0 0 0 / .25);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1222; --surface: #131c31; --surface-2: #1b2640; --text: #e7ecf6; --muted: #aab4ca; --line: #2c3a58;
    --brand: #8fb4ff; --brand-ink: #0b1222; --accent: #ffb547; --link: #9cc0ff; --focus: #ffb547;
    --c-models: #7fa6ff; --c-agents: #ff9a62; --c-coding: #4fd1a5; --c-media: #e58cf0; --c-open: #5fd0e6;
    --c-cost: #f3c35b; --c-industry: #b4bccb; --c-policy: #ff7f9b; --c-firsts: #b99cff;
    --v-right: #4fd1a5; --v-partly: #f3c35b; --v-early: #b4bccb; --v-wrong: #ff7f9b;
    --band0: #18233b; --band1: #111a2e; --shadow: none; --kit-dlg-backdrop: rgb(0 0 0 / .65);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1222; --surface: #131c31; --surface-2: #1b2640; --text: #e7ecf6; --muted: #aab4ca; --line: #2c3a58;
  --brand: #8fb4ff; --brand-ink: #0b1222; --accent: #ffb547; --link: #9cc0ff; --focus: #ffb547;
  --c-models: #7fa6ff; --c-agents: #ff9a62; --c-coding: #4fd1a5; --c-media: #e58cf0; --c-open: #5fd0e6;
  --c-cost: #f3c35b; --c-industry: #b4bccb; --c-policy: #ff7f9b; --c-firsts: #b99cff;
  --v-right: #4fd1a5; --v-partly: #f3c35b; --v-early: #b4bccb; --v-wrong: #ff7f9b;
  --band0: #18233b; --band1: #111a2e; --shadow: none; --kit-dlg-backdrop: rgb(0 0 0 / .65);
}

* { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.625 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: 2.6rem; letter-spacing: -.02em; }
h2 { font-size: 1.75rem; margin-top: 2.2rem; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p, li { text-wrap: pretty; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
kbd { font: .9rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: .15em .35em; background: var(--surface); color: var(--muted); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); padding: .8rem 1rem; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
html:not(.js) .js-only { display: none !important; }
.ic { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }

/* header */
header.site { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.head-row { display: flex; align-items: center; gap: 1rem 1.5rem; padding: .55rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 750; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: #0d2a52; color: #ffb547; font-size: 1rem; font-weight: 800; }
header nav ul { display: flex; flex-wrap: wrap; gap: .1rem .2rem; list-style: none; margin: 0; padding: 0; }
header nav a { display: block; padding: .3rem .6rem; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 550; }
header nav a:hover { background: var(--surface-2); }
header nav a[aria-current="page"] { background: var(--brand); color: var(--brand-ink); }
.search-btn { margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; background: var(--bg); }
.search-btn:hover { color: var(--text); border-color: var(--muted); }
@media (max-width: 52rem) {
  header.site { position: static; }
  .head-row { gap: .3rem 1rem; padding: .4rem 0; }
  header nav { order: 3; width: 100%; }
  header nav ul { gap: 0; }
  header nav a { padding: .15rem .4rem; font-size: .9rem; white-space: nowrap; }
  .tab-x { display: none; }
  .search-btn kbd { display: none; }
}

main { padding: 1.6rem 0 3rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 44rem; margin: 0 0 1rem; }
.kicker { margin: 0 0 .3rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; }
.subtitle { font-size: 1.3rem; color: var(--muted); margin: -.2rem 0 1rem; max-width: 44rem; }
.note { color: var(--muted); }
.prose { max-width: 38rem; }
.prose h2 { font-size: 1.75rem; }

/* home */
.home-head h1 { margin-bottom: .3rem; }
.chart-sec h2 { margin-top: 1.2rem; }
.chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .8rem .8rem .4rem; box-shadow: var(--shadow); }
.chart-scroll { overflow-x: auto; }
.chart-scroll:focus-visible { outline-offset: 4px; }
svg.lanes { display: block; width: 100%; min-width: 46rem; height: auto; font-family: inherit; }
svg.lanes .lanelab { font-size: 17px; fill: var(--text); font-weight: 550; }
svg.lanes .ylab { font-size: 17px; fill: var(--muted); font-weight: 650; }
svg.lanes .lane { stroke: var(--line); stroke-width: 1; }
svg.lanes .yband0 { fill: var(--band0); } svg.lanes .yband1 { fill: var(--band1); }
svg.lanes .dot { stroke: var(--surface); stroke-width: 1.5; }
svg.lanes a:hover .dot, svg.lanes a:focus .dot { r: 9; stroke: var(--text); }
svg.lanes .rline line { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 5 4; }
svg.lanes .rline text { fill: var(--accent); font-size: 16px; font-weight: 700; }
.chart figcaption { color: var(--muted); padding: .4rem .2rem; }
.dot.c-models { fill: var(--c-models); } .dot.c-agents { fill: var(--c-agents); } .dot.c-coding { fill: var(--c-coding); }
.dot.c-media { fill: var(--c-media); } .dot.c-open { fill: var(--c-open); } .dot.c-cost { fill: var(--c-cost); }
.dot.c-industry { fill: var(--c-industry); } .dot.c-policy { fill: var(--c-policy); } .dot.c-firsts { fill: var(--c-firsts); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem .5rem; list-style: none; padding: 0; margin: .8rem 0 0; }
.legend a { text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); }
.legend .n { font-variant-numeric: tabular-nums; }

.chip { --c: var(--muted); display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; border-radius: 999px; font-weight: 600; font-size: 1rem; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); white-space: nowrap; }
.c-models { --c: var(--c-models); } .c-agents { --c: var(--c-agents); } .c-coding { --c: var(--c-coding); } .c-media { --c: var(--c-media); }
.c-open { --c: var(--c-open); } .c-cost { --c: var(--c-cost); } .c-industry { --c: var(--c-industry); } .c-policy { --c: var(--c-policy); } .c-firsts { --c: var(--c-firsts); }
@media (forced-colors: active) { .chip, .fchip, .verdict { border: 1px solid CanvasText; } }

.years { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 1rem; }
.year-col { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.year-col h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.year-col ol.hl a { grid-template-columns: 1fr; }
.year-col .span { display: block; font-size: 1rem; font-weight: 500; color: var(--muted); margin-top: .2rem; }
ol.hl { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
ol.hl a { display: grid; grid-template-columns: 6.6rem 1fr; gap: 0 .5rem; text-decoration: none; color: var(--text); padding: .15rem 0; }
ol.hl a:hover .hl-title { text-decoration: underline; }
ol.hl time { color: var(--muted); font-variant-numeric: tabular-nums; }
.year-col .more { margin: .8rem 0 .2rem; }
.year-col .ru-link { margin: auto 0 0; padding-top: .7rem; border-top: 1px solid var(--line); }
.ru-link a { display: flex; gap: .45rem; font-weight: 650; text-decoration: none; }
.ru-link a:hover span { text-decoration: underline; }
.runup ol.hl-row { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: .5rem 1.5rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.card img, .card-soon { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-soon { display: grid; place-items: center; align-content: center; gap: .3rem; background: #0d2a52; color: #ffffff; font-weight: 650; }
.card-soon .ic { width: 2rem; height: 2rem; color: #ffb547; }
.card-body { padding: .8rem 1rem 1rem; }
.card-year { margin: 0; color: var(--accent); font-weight: 700; }
.card h3 { margin: .2rem 0 .3rem; font-size: 1.2rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:focus-visible { outline: none; }
.card-meta, .card-status { margin: 0; color: var(--muted); }

/* timeline */
.tabs ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .4rem 0 1rem; }
.tabs a { display: block; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--surface); }
.tabs a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 650; }
.filters { position: sticky; top: var(--header-height, 3.6rem); z-index: 2; background: var(--bg); padding: .6rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .5rem; }
@media (max-width: 52rem) {
  .filters { position: static; }
  .fchips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
  .fchip { white-space: nowrap; }
}
.fchips { display: flex; flex-wrap: wrap; gap: .35rem; }
.fchip { --c: var(--muted); font: inherit; font-size: 1rem; display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line)); background: var(--surface); color: var(--text); cursor: pointer; }
.fchip .ic { color: var(--c); }
.fchip[aria-pressed="true"] { background: var(--c); color: var(--surface); border-color: var(--c); }
.fchip[aria-pressed="true"] .ic { color: var(--surface); }
.fchip[data-filter-cat="all"] { --c: var(--brand); }
.fchip .n { opacity: .8; font-variant-numeric: tabular-nums; }
.fq { display: flex; align-items: center; gap: .4rem; max-width: 26rem; border: 1px solid var(--line); border-radius: 10px; padding: .25rem .6rem; background: var(--surface); color: var(--muted); }
.fq input { font: inherit; border: 0; background: transparent; color: var(--text); width: 100%; outline: none; }
.fq:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.fcount { margin: 0; color: var(--muted); }
.tl-group h2 { font-size: 1.75rem; margin: 1.8rem 0 .6rem; }
details.ev { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin: .35rem 0; scroll-margin-top: 9rem; }
details.ev summary { display: grid; grid-template-columns: 7rem 1fr auto; align-items: baseline; gap: .3rem .8rem; padding: .5rem .8rem; cursor: pointer; list-style: none; }
details.ev summary::-webkit-details-marker { display: none; }
details.ev summary::after { content: "+"; grid-column: 4; color: var(--muted); font-weight: 700; }
details.ev[open] summary::after { content: "–"; }
details.ev summary time { color: var(--muted); font-variant-numeric: tabular-nums; }
details.ev .ev-title { font-weight: 600; }
details.ev:target, details.ev[open] { border-color: var(--muted); }
details.ev:target { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.ev-body { padding: 0 1rem .8rem; max-width: 40rem; margin-left: 7.8rem; }
.ev-body p { margin: .4rem 0; }
.ev-body blockquote { margin: .5rem 0; padding: .4rem .8rem; border-left: 3px solid var(--line); color: var(--muted); }
.ev-body .src { display: flex; gap: .4rem; align-items: baseline; }
@media (max-width: 40rem) {
  details.ev summary { grid-template-columns: 1fr auto; }
  details.ev summary time { grid-column: 1; }
  details.ev summary .ev-title { grid-column: 1; grid-row: 2; }
  details.ev summary .chip { grid-column: 1; grid-row: 3; justify-self: start; }
  details.ev summary::after { grid-column: 2; grid-row: 1; }
  .ev-body { margin-left: 0; }
}
.empty { text-align: center; padding: 2rem; background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; }
.empty button, .cite button, .prose button { font: inherit; padding: .35rem .9rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; }
.next { margin-top: 2rem; font-weight: 650; }

/* round-up pages */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .6rem 1.5rem; margin: 1rem 0; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.facts dt { display: flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--muted); }
.facts dd { margin: .1rem 0 0; }
.pagenav ul { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; padding: 0; margin: .4rem 0 0; }
.summary { max-width: 40rem; font-size: 1.12rem; }
.lessons ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .6rem; padding: 0; list-style: none; counter-reset: l; margin: 0; }
.lessons li { counter-increment: l; background: #0d2a52; color: #ffffff; border-radius: 12px; padding: .8rem 1rem; font-weight: 600; font-size: 1.1rem; }
.lessons li::before { content: counter(l); display: block; color: #ffb547; font-weight: 800; font-size: 1.4rem; }
.claims { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.claim { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.15rem; box-shadow: var(--shadow); }
.verdict { --c: var(--muted); display: inline-flex; align-items: center; gap: .35rem; margin: 0 0 .5rem; padding: .1rem .65rem; border-radius: 999px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.v-right { --c: var(--v-right); } .v-partly { --c: var(--v-partly); } .v-early { --c: var(--v-early); } .v-wrong { --c: var(--v-wrong); }
blockquote.said { margin: 0; }
blockquote.said p { margin: 0; font-size: 1.15rem; font-weight: 600; line-height: 1.45; }
blockquote.said footer { color: var(--muted); margin-top: .3rem; }
.outcome { margin: .7rem 0 .4rem; }
.evidence { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.evidence li { margin: .15rem 0; }
.src-mini { color: var(--muted); }
.slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.2rem; }
.slide { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.slide img { width: 100%; border-bottom: 1px solid var(--line); background: #fff; }
.slide figcaption { padding: .6rem .9rem .8rem; }
.slide .sn { font-weight: 700; color: var(--accent); margin-right: .25rem; }
.more-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.more-list a { display: inline-flex; gap: .45rem; align-items: baseline; }
.covers { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .8rem; }
.covers li { display: flex; gap: .7rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; font-weight: 600; font-size: 1.08rem; box-shadow: var(--shadow); }
.covers .ic { width: 1.6rem; height: 1.6rem; color: var(--accent); }
.sum-grid { display: grid; grid-template-columns: minmax(0, 40rem) minmax(15rem, 20rem); gap: 1.5rem 2.5rem; align-items: start; }
@media (max-width: 52rem) { .sum-grid { grid-template-columns: 1fr; } }
.tally { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.tally-h { margin: 0 0 .6rem; font-weight: 700; }
.tally ul { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; gap: .4rem; }
.tally li { display: flex; justify-content: space-between; align-items: center; }
.tally li strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.tally .verdict { margin: 0; }
.tally p { margin: .3rem 0 0; }
.tally a { display: inline-flex; gap: .4rem; align-items: baseline; }
.facts .full-title { grid-column: 1 / -1; }

/* cite, footer, dialogs, toast */
.cite-wrap { margin-top: 3rem; }
.cite { max-width: 46rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cite h2 { font-size: 1.2rem; margin: 0 0 .4rem; }
.cite p { margin: 0 0 .6rem; color: var(--muted); overflow-wrap: anywhere; }
footer.site { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 1.2rem 0 2rem; }
.foot-row p { margin: 0 0 .8rem; }
.foot-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.theme-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.theme-switch button, .tool { font: inherit; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border: 0; background: var(--surface); color: var(--text); cursor: pointer; }
.theme-switch button + button { border-left: 1px solid var(--line); }
.theme-switch button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.tool { border: 1px solid var(--line); border-radius: 10px; }
.dlg .dialog-head { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.dlg .dialog-head h2 { margin: 0; font-size: 1.3rem; flex: 1; }
.dlg .dialog-head button { font: inherit; margin-left: auto; padding: .25rem .7rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; }
.search-field input { font: inherit; font-size: 1.1rem; flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); outline: none; }
.search-status { margin: .6rem 1rem; color: var(--muted); }
.search-results { padding: 0 .6rem .6rem; }
.search-results h3 { font-size: 1rem; color: var(--muted); margin: .8rem .4rem .3rem; }
.search-results a { display: block; padding: .45rem .6rem; border-radius: 8px; color: var(--text); text-decoration: none; }
.search-results a span { display: block; color: var(--muted); }
.search-results a[aria-selected="true"] { background: var(--surface-2); outline: 2px solid var(--focus); }
.dialog-foot { padding: .6rem 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.dialog-body { padding: .4rem 1.1rem 1rem; }
.keys-switch { display: flex; gap: .5rem; align-items: center; font-weight: 650; }
.key-list { display: grid; gap: .35rem; margin: .8rem 0 0; }
.key-list div { display: grid; grid-template-columns: 9rem 1fr; }
.key-list dd { margin: 0; }
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: .5rem 1rem; border-radius: 10px; opacity: 0; pointer-events: none; }
.toast.show { opacity: 1; }
.toast.error { background: var(--v-wrong); color: #fff; }
@media (prefers-reduced-motion: no-preference) { .toast { transition: opacity .2s; } }

@media (max-width: 40rem) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.75rem; }
  .claims, .slides { grid-template-columns: 1fr; }
  ol.hl a { grid-template-columns: 5.8rem 1fr; }
}
@media print {
  header.site, footer.site, .filters, .search-btn, .pagenav, dialog { display: none !important; }
  details.ev > .ev-body { display: block; }
  body { background: #fff; color: #000; }
}
