/* kOS Search (/web): K-Search Web's page. Self-contained: no outside fonts, images or
   scripts; the CSP forbids inline script and style, so everything lives in this file and
   search.js (ADR-0027). Tokens follow the kOS app (index.html). */
:root {
  --thumb-bg: #ffffff;
  --bg: #f6f5f1; --surface: #ffffff; --surface-2: #efede7; --line: #dedbd2; --line-2: #cfcbc0;
  --text: #1c1b18; --muted: #6b675d; --faint: #8d897e; --accent: #2f4a3a; --accent-ink: #ffffff;
  --accent-soft: #e3ebe5; --link: #1f4f8a; --visited: #5b3d86; --site: #1f6b45;
  --warn: #7a5410; --warn-bg: #f6ecd6; --bad: #9b2c2c; --bad-bg: #f6e1e1; --ok: #1f6b45; --focus: #3b6ea8;
  --radius: 10px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.04);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --thumb-bg: #ecebe6;
    --bg: #131412; --surface: #1b1c1a; --surface-2: #232521; --line: #2f322d; --line-2: #3d413a;
    --text: #ecebe6; --muted: #9c9a92; --faint: #7d7b74; --accent: #9cc3a8; --accent-ink: #10150f;
    --accent-soft: #223029; --link: #8db8f0; --visited: #c3a6ee; --site: #8fd1a8;
    --warn: #f0cf8a; --warn-bg: #3a2f17; --bad: #f0a0a0; --bad-bg: #3d1f1f; --ok: #8fd1a8; --focus: #86b2e8;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --thumb-bg: #ecebe6;
  --bg: #131412; --surface: #1b1c1a; --surface-2: #232521; --line: #2f322d; --line-2: #3d413a;
  --text: #ecebe6; --muted: #9c9a92; --faint: #7d7b74; --accent: #9cc3a8; --accent-ink: #10150f;
  --accent-soft: #223029; --link: #8db8f0; --visited: #c3a6ee; --site: #8fd1a8;
  --warn: #f0cf8a; --warn-bg: #3a2f17; --bad: #f0a0a0; --bad-bg: #3d1f1f; --ok: #8fd1a8; --focus: #86b2e8;
  --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); }
body { min-height: 100vh; overflow-x: hidden; }
a { color: var(--link); }
a:visited { color: var(--visited); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header and search box */
header { position: sticky; top: 0; z-index: 3; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { max-width: 1160px; margin: 0 auto; padding: 12px 16px; display: flex; gap: 14px; align-items: center; }
.brand { font-weight: 650; letter-spacing: -.01em; text-decoration: none; color: var(--text); white-space: nowrap; }
.brand:visited { color: var(--text); }
.brand span { color: var(--muted); font-weight: 500; }
form.q { flex: 1; display: flex; align-items: center; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow); overflow: hidden; }
form.q:focus-within { border-color: var(--focus); }
form.q input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 6px 10px 18px; }
form.q input:focus { outline: none; }
form.q input::-webkit-search-cancel-button { display: none; }
form.q .clear { border: 0; background: transparent; color: var(--muted); padding: 0 10px; cursor: pointer; font-size: 18px; line-height: 1; }
form.q .go { border: 0; align-self: stretch; background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 0 20px; cursor: pointer; }
.iconbtn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 14px; white-space: nowrap; }
.filters { max-width: 1160px; margin: 0 auto; padding: 0 16px 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; }
.filters select, .filters input[type="text"] { font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; min-width: 0; }
.toggle { font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; background: var(--surface-2); }

/* layout */
main { max-width: 1160px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 1fr);
  grid-template-areas: "col kp" "col side"; grid-template-rows: auto 1fr; column-gap: 40px; row-gap: 0; align-items: start; }
main > .col { grid-area: col; min-width: 0; }
main > .kp { grid-area: kp; }
main > aside { grid-area: side; min-width: 0; }
/* narrow screens: the knowledge panel comes before the results, the notes after them */
@media (max-width: 900px) { main { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kp" "col" "side"; grid-template-rows: auto; row-gap: 18px; }
  .bar { gap: 8px; } .brand span { display: none; } }
@media (max-width: 520px) {
  form.q .go { padding: 0 14px; } main { padding: 12px; } .filters { padding: 0 12px 10px; }
  .bar { padding: 10px 12px; flex-wrap: wrap; justify-content: space-between; }
  .bar form.q { order: 3; flex-basis: 100%; }
  .brand span { display: inline; }
}

/* answer panel */
.answer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin: 0 0 24px; }
.answer h2 { font-size: 15px; margin: 0; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.answer h2 .label { display: inline-flex; gap: 8px; align-items: center; }
.answer .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; }
.answer[aria-busy="true"] .dot { background: var(--accent); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .3; } }
.answer .ask { margin: 10px 0 0; }
.answer .ask button, .answer .stop { font-size: 14px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 6px 14px; cursor: pointer; font-weight: 600; }
.answer .stop { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; padding: 2px 10px; }
.sources { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; margin: 0; list-style: none; scrollbar-width: thin; }
.sources li { flex: 0 0 188px; }
.src { display: block; height: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; text-decoration: none; background: var(--bg); font-size: 13px; color: var(--text); }
.src:visited { color: var(--text); }
.src .n { font-weight: 650; color: var(--accent); margin-right: 4px; }
.src .s { color: var(--site); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.src .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.src .c { color: var(--muted); font-size: 12px; margin-top: 4px; display: block; }
.src.lit { border-color: var(--accent); background: var(--accent-soft); }
.src.q { opacity: .6; text-decoration: line-through; }
.text { margin: 12px 0 0; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.text .pending { color: var(--muted); }
.text .kept { color: var(--text); }
.cite { display: inline-block; font-size: 11px; line-height: 1; vertical-align: super; margin: 0 1px; padding: 3px 5px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); cursor: pointer; font-weight: 650; }
.cite[aria-expanded="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.quote { display: block; margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--bg); font-size: 14px; color: var(--text); border-radius: 0 8px 8px 0; }
.quote .from { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.quote mark { background: var(--accent-soft); color: var(--text); padding: 0 2px; border-radius: 3px; }
.notes { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 13px; }
.notes li { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.notes li.warn { background: var(--warn-bg); color: var(--warn); }
.notes li.bad { background: var(--bad-bg); color: var(--bad); }
.timing { margin: 10px 0 0; color: var(--faint); font-size: 12px; }
details.removed { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
details.removed summary { cursor: pointer; }
details.removed li { margin: 4px 0; }
details.removed s { color: var(--faint); }

/* views (ADR-0030) */
.tabs { max-width: 1160px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 8px 12px 9px; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:visited { color: var(--muted); }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
body.wide main { grid-template-columns: minmax(0, 1fr); grid-template-areas: "col"; }
body.wide main > .kp { display: none; }
body.wide main aside { display: none; }

/* results */
.stats { color: var(--muted); font-size: 14px; margin: 0 0 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.result { margin: 0 0 24px; padding: 4px 8px; margin-left: -8px; margin-right: -8px; border-radius: 8px; }
.result.sel { background: var(--surface-2); }
.result.has-thumb { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.result .main { min-width: 0; }
.where { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--site); overflow: hidden; white-space: nowrap; min-width: 0; }
.where .names { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.where .sitename { color: var(--text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.where .path { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fav { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); object-fit: contain; padding: 4px; }
.fav.letter { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 650; color: var(--muted); padding: 0; }
.from .fav, .lb-site .fav { width: 16px; height: 16px; flex-basis: 16px; padding: 1px; font-size: 9px; vertical-align: -3px; }
.thumb { display: block; position: relative; width: 128px; height: 80px; flex: 0 0 auto; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); margin-top: 26px; }
.thumb img, .pic img, .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* a picture shows only once it has loaded and is a picture (search.js watch); until then the box is a quiet placeholder */
.thumb > img, .pic > img, .tile > img { opacity: 0; transition: opacity .18s ease; }
.thumb > img.ok, .pic > img.ok, .tile > img.ok { opacity: 1; }
.thumb.fit-contain { background: var(--thumb-bg); }
.thumb.fit-contain img { object-fit: contain; padding: 3px; }
.dur { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.78); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 5px; border-radius: 4px; }
.rich { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 13px; color: var(--muted); margin: 0 0 3px; }
.rich .by { color: var(--text); }
.stars { display: inline-flex; gap: 0; align-items: center; color: var(--text); }
.stars .on { color: #c98a12; letter-spacing: 1px; }
.stars .off { color: var(--line-2); letter-spacing: 1px; }
.price { color: var(--text); font-weight: 600; }
.price .avail { color: var(--muted); font-weight: 400; }
.faq { margin: 6px 0 0; border-left: 2px solid var(--line); padding-left: 10px; font-size: 14px; }
.faq details { margin: 2px 0; }
.faq summary { cursor: pointer; color: var(--text); }
.faq p { color: var(--muted); margin: 2px 0 6px; }

/* rows in the All view */
.row { margin: 0 0 26px; padding: 12px 0 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.row h2 { font-size: 16px; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
.row .more { font-size: 13px; font-weight: 500; }
.carousel { display: flex; gap: 12px; overflow-x: auto; list-style: none; margin: 0; padding: 0 0 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.carousel li { flex: 0 0 220px; scroll-snap-align: start; }
.carousel.videos li { flex-basis: 240px; }
.ncard, .vcard { display: flex; flex-direction: column; gap: 4px; height: 100%; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 10px; }
.ncard:visited, .vcard:visited { color: var(--visited); }
.ncard .pic, .vcard .pic { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); }
.ncard .from, .vcard .from { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); padding: 6px 10px 0; overflow: hidden; white-space: nowrap; }
.ncard > *, .vcard > * { flex-shrink: 0; }
.ncard .t, .vcard .t { padding: 0 10px; font-size: 14px; font-weight: 550; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard .when { padding: 0 10px; font-size: 12px; color: var(--muted); margin-top: auto; }
.discuss { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.discuss li { display: flex; flex-direction: column; }
.discuss .from { font-size: 12px; color: var(--muted); }
.vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.vlist .vcard { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 4px 14px; padding: 0; border: 0; background: transparent; }
.vlist .vcard .pic { grid-row: 1 / 3; border-radius: var(--radius); overflow: hidden; }
.vlist .vcard .t { font-size: 17px; padding: 0; }
.vlist .vcard .from { padding: 0; align-self: start; }

/* the Images view and viewer */
/* A justified grid, like Google Images: every row the same height, each tile as wide as its
   picture's shape (--ar, set by search.js), rows filled edge to edge; the last row is not
   stretched (the ::after takes the rest). */
.jgrid { --row: 190px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jgrid::after { content: ""; flex: 1000000 1 0; }
.jt { --ar: 1.333; flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--row)); aspect-ratio: var(--ar); align-self: flex-start;
  min-width: 0; max-height: calc(var(--row) * 1.6); position: relative; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.jgrid.row-grid { --row: 130px; }
.tile { display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; border-radius: inherit; background: transparent; cursor: zoom-in; text-align: left; position: relative; color: #fff; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 1px; padding: 22px 8px 7px; min-width: 0; font-size: 12px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.78)); opacity: 0; transition: opacity .15s ease; }
.tile .cap .t { color: #fff; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .cap .s { color: rgba(255,255,255,.82); display: flex; gap: 5px; align-items: center; overflow: hidden; white-space: nowrap; }
.tile .cap .s > span { overflow: hidden; text-overflow: ellipsis; }
.tile .cap .fav { width: 14px; height: 14px; flex-basis: 14px; padding: 1px; font-size: 8px; border: 0; }
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; }
.tile:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.jt:hover { box-shadow: 0 0 0 2px var(--accent); }
@media (hover: none) { .tile .cap { opacity: 1; padding-top: 16px; } .tile .cap .t { display: none; } }
dialog.lightbox { border: 0; padding: 0; border-radius: 14px; background: var(--surface); color: var(--text); max-width: min(1100px, calc(100vw - 32px)); width: 100%; max-height: calc(100vh - 32px); }
dialog.lightbox::backdrop { background: rgba(0,0,0,.72); }
.lb { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 360px; }
.lb-pic { background: #111; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.lb-pic img { max-width: 100%; max-height: calc(100vh - 64px); object-fit: contain; display: block; }
.lb-info { padding: 18px; display: flex; flex-direction: column; gap: 8px; position: relative; font-size: 14px; }
.lb-info h2 { font-size: 17px; margin: 0 28px 0 0; overflow-wrap: anywhere; }
.lb-site { margin: 0; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.lb-dims, .lb-from { margin: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.lb-alt { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.lb-alt:empty, .lb-dims:empty, .lb-from:empty { display: none; }
.lb-count { align-self: center; color: var(--muted); font-size: 13px; min-width: 64px; text-align: center; }
.lb-visit { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; align-self: flex-start; }
.lb-visit:visited { color: var(--accent-ink); }
.lb-note { margin: auto 0 0; color: var(--faint); font-size: 12px; }
.lb-nav { display: flex; gap: 8px; }
.lb-nav button, .lb-close { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 4px 14px; cursor: pointer; font-size: 18px; }
.lb-close { position: absolute; top: 12px; right: 12px; padding: 0 10px; }
@media (max-width: 720px) {
  .lb { grid-template-columns: minmax(0, 1fr); }
  .thumb { width: 96px; height: 60px; }
  .jgrid { --row: 88px; gap: 6px; }
  .jgrid.row-grid { --row: 80px; }
  .vlist .vcard { grid-template-columns: 140px minmax(0, 1fr); }
  .carousel li { flex-basis: 70vw; }
}
.result h3 { font-size: 19px; line-height: 1.3; font-weight: 500; margin: 2px 0 4px; overflow-wrap: anywhere; }
.result h3 a { text-decoration: none; }
.result h3 a:hover, .result h3 a:focus-visible { text-decoration: underline; }
.result p { margin: 0; overflow-wrap: anywhere; }
.result p b { font-weight: 650; }
.meta { margin-top: 4px; font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.badge { font-size: 12px; border-radius: 999px; padding: 0 8px; border: 1px solid var(--line); color: var(--muted); }
.badge.fresh { border-color: var(--ok); color: var(--ok); }
.badge.first { border-color: var(--accent); color: var(--accent); }
.pager { display: flex; gap: 6px; margin: 8px 0 40px; flex-wrap: wrap; }
.pager button { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; min-width: 40px; }
.pager button[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pager button[disabled] { opacity: .4; cursor: default; }

/* aside */
aside .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); font-size: 14px; color: var(--muted); margin-bottom: 16px; }
aside .card h2 { margin: 0 0 8px; font-size: 15px; color: var(--text); }
aside dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
aside dt { color: var(--faint); }
aside dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
kbd { font: 12px var(--mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--surface-2); color: var(--text); }
.keys { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.error { background: var(--bad-bg); color: var(--bad); border-radius: var(--radius); padding: 12px 14px; }
.empty { color: var(--muted); }

/* knowledge panel (ADR-0033) */
.kp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px; font-size: 14px; overflow-wrap: anywhere; }
.kp h2 { font-size: 22px; line-height: 1.25; margin: 0 0 2px; letter-spacing: -.01em; }
.kp-img { margin: -16px -18px 12px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--surface-2); display: flex; justify-content: center; max-height: 240px; }
.kp-img img { display: block; max-width: 100%; max-height: 240px; object-fit: contain; }
.kp-desc { margin: 0 0 10px; color: var(--muted); }
.kp-lead { margin: 0 0 10px; line-height: 1.55; }
.kp-site { margin: 0 0 10px; }
.kp-site a { color: var(--site); font-weight: 600; text-decoration: none; }
.kp-site a:hover { text-decoration: underline; }
.kp-at { color: var(--faint); font-weight: 400; }
.kp-facts { margin: 0 0 10px; display: grid; grid-template-columns: minmax(84px, 40%) 1fr; gap: 6px 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.kp-facts dt { color: var(--muted); font-weight: 600; }
.kp-facts dd { margin: 0; color: var(--text); }
.kp-facts a { text-decoration: none; }
.kp-facts a:hover { text-decoration: underline; }
.kp-links { margin: 8px 0 0; color: var(--faint); }
.kp-about { margin: 10px 0 0; color: var(--faint); font-size: 12px; }
.kp-about summary { cursor: pointer; }
.kp-credits { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 2px; }
.kp-credits a { color: var(--muted); }
@media (max-width: 900px) { .kp { margin-bottom: 0; } .kp-img { max-height: 180px; } .kp-img img { max-height: 180px; } }

/* home */
.home { max-width: 680px; margin: 16vh auto 0; padding: 0 16px; text-align: center; }
.home h1 { font-size: 36px; letter-spacing: -.02em; margin: 0 0 6px; }
.home p { color: var(--muted); margin: 0 0 22px; }
.home form.q input { padding: 14px 8px 14px 22px; }
.home .corner { position: fixed; top: 12px; right: 12px; }
.skel { height: 72px; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sh 1.2s infinite; margin-bottom: 20px; }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel, .answer[aria-busy="true"] .dot { animation: none; } }
