@font-face {                       /* Outfit (OFL), self-hosted: no third party */
  font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/outfit-latin.woff2) format('woff2');
}
[hidden] { display: none !important; }   /* author display rules (.mode, dialog label) otherwise beat the UA [hidden] */
/* Themes — the start page's four (apps/start-api/public/style.css + theme.js), on this page's tokens.
   theme.js sets <html data-theme>; ⚙ chooses. Dark is the page unless the visitor says otherwise — also with
   no script and before theme.js has run. --rs scales every corner: Dark and Light are hard-cornered. */
:root, :root[data-theme=custom][data-scheme=dark] {                 /* Dark: ink, hairlines, no colour */
  --bg: #0b0b0b; --fg: #ffffff; --muted: #9a9a9a; --line: #2a2a2a; --card: #131313;
  --accent: #ffffff; --on-accent: #0b0b0b; --url: #9a9a9a; --mode: #ffffff; --hl: #1e1e1e; --warn: #f5a524;
  --rs: 0; color-scheme: dark;
}
:root[data-theme=light], :root[data-theme=custom][data-scheme=light] {   /* Light: paper */
  --bg: #ffffff; --fg: #0b0b0b; --muted: #55554f; --line: #dcdcd6; --card: #f3f3f0;
  --accent: #0b0b0b; --on-accent: #ffffff; --url: #55554f; --mode: #0b0b0b; --hl: #e9e9e3;
  --rs: 0; color-scheme: light;
}
:root[data-theme=chill] {                                            /* Chill: periwinkle on deep navy, soft corners */
  --bg: #10141b; --fg: #e8eaef; --muted: #aab1c0; --line: #2c3543; --card: #1a2029;
  --accent: #7fb2f0; --on-accent: #0d1a2b; --url: #6fcf9b; --mode: #5fd4b2; --hl: #232b37;
  --rs: 1; color-scheme: dark;
}
/* Custom: a scheme (above, read off the background) with the visitor's four colours and corner size laid over it
   inline by theme.js; the quiet text, the rules and the highlight are walked from those, as on the start page. */
:root[data-theme=custom] {
  --muted: color-mix(in srgb, var(--fg) 68%, var(--bg));
  --url: var(--muted); --mode: var(--accent);
  --line: color-mix(in srgb, var(--fg) 15%, var(--card));
  --hl: color-mix(in srgb, var(--fg) 8%, var(--card));
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 720px; margin: 0 auto; padding: 0 16px 48px; }
main.home { padding-top: 18vh; }
.brand { display: flex; align-items: center; gap: .4rem; margin: 1.2rem 0 .8rem; }
.home-link { display: inline-flex; color: var(--fg); text-decoration: none; }
.wordmark { height: 2.8rem; width: auto; fill: currentColor; font-family: 'Outfit', system-ui, sans-serif; font-size: 54px; font-weight: 800; overflow: visible; }
.grow { flex: 1; }                                   /* everything after it in the header sits at the right edge */
.mode { white-space: nowrap; display: inline-flex; align-items: center; font-size: .75rem; line-height: 1;
        padding: .3rem .7rem; color: var(--mode); background: color-mix(in srgb, currentColor 12%, transparent);
        border: 1px solid color-mix(in srgb, currentColor 55%, transparent); border-radius: calc(99px * var(--rs)); cursor: help; }
.mode.pub { color: var(--accent); }
.mode { cursor: pointer; }
.mode.connecting { opacity: .55; }
.mode-pop { position: fixed; z-index: 50; display: grid; gap: .35rem; padding: .7rem .85rem; font-size: .8rem; line-height: 1.35;
            color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: calc(10px * var(--rs));
            box-shadow: 0 6px 24px color-mix(in srgb, var(--fg) 14%, transparent); }
.mode-pop div:first-child { font-weight: 600; }
.silo { display: inline-flex; align-items: baseline; gap: .25em; white-space: nowrap; font-family: 'Outfit', system-ui, sans-serif;
        font-size: .8rem; line-height: 1; padding: .3rem .7rem; color: var(--on-accent); background: var(--accent);
        border: 1px solid var(--accent); border-radius: calc(99px * var(--rs)); text-decoration: none; }
.silo:hover { filter: brightness(1.1); }
.silo-mark { font-weight: 800; letter-spacing: -.01em; }                 /* the wordmark's way: grounded, then italic */
@media (max-width: 480px) { .silo { font-size: .74rem; padding: .3rem .5rem; } .mode { padding: .3rem .5rem; } }
.hdr-btn { display: inline-flex; align-items: center; white-space: nowrap; font-size: .8rem; line-height: 1; padding: .3rem .7rem; color: var(--accent);
           border: 1px solid var(--line); border-radius: calc(99px * var(--rs)); text-decoration: none; }
.hdr-btn:hover { border-color: var(--accent); }
/* said once: at the foot of the home page, by the pills on the results page (a phone's header has no room, so there it stays at the foot) */
main.home .hdr-btn { display: none; }
main:not(.home) .setup-foot { display: none; }
@media (max-width: 560px) { .hdr-btn { display: none; } main:not(.home) .setup-foot { display: block; } }
/* already this browser's search engine (boot.js): nothing asks */
html.is-default .hdr-btn, html.is-default .setup-foot { display: none !important; }
@media (max-width: 480px) { .brand { flex-wrap: wrap; row-gap: .35rem; } .gear { margin-left: auto; } }   /* pill, pairing and SearchSilo may take a second row */
dialog.setup { max-width: 560px; }
dialog.setup h2 { font-size: 1.1rem; }
dialog.setup .set-buttons { align-items: center; justify-content: space-between; }
dialog.setup .setup-all { margin-right: auto; }
dialog.setup .setup-all { font-size: .85rem; }
#pairslot:empty { display: none; }
#pairslot button { white-space: nowrap; }
.pair-long { pointer-events: none; }                 /* a click on the words is a click on the button (the handler reads the target's id) */
@media (max-width: 480px) { .pair-long { display: none; } }
form { position: relative; }
#f { margin-bottom: 1.2rem; }   /* the room the hint line under the box used to give */
input[type=search] { width: 100%; font-family: inherit; font-size: 1.1rem; padding: .75rem 1rem; color: var(--fg);
       background: var(--card); border: 1px solid var(--line); border-radius: calc(12px * var(--rs)); outline: none; }
input[type=search]:focus { border-color: var(--accent); }
form input[type=search] { padding-right: 7rem; }
#go { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); padding: .45rem 1rem;
      font: inherit; font-size: .95rem; font-weight: 600; color: var(--on-accent); background: var(--accent);
      border: 0; border-radius: calc(9px * var(--rs)); cursor: pointer; }
#go[data-mode=logout] { font-family: 'Outfit', system-ui, sans-serif; font-size: 1.1rem; font-weight: 800; padding: .35rem 1rem; }
#go[data-mode=pass] { color: #1b1d22; background: var(--warn); max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
form:has(#go[data-mode=pass]) input[type=search] { padding-right: 10rem; }
#go:hover { filter: brightness(1.1); }
#go .go-i { display: none; }
#go:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.sug { position: absolute; z-index: 2; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px;
       list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: calc(12px * var(--rs));
       box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.sug li { padding: .45rem .7rem; border-radius: calc(8px * var(--rs)); cursor: pointer; display: flex; gap: .6rem; }
.sug li .d { color: var(--muted); font-size: .85rem; margin-left: auto; white-space: nowrap;
             overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.sug li.on, .sug li:hover { background: var(--hl); }
.hint { color: var(--muted); font-size: .85rem; margin: .5rem .2rem 1.2rem; }
kbd { font: inherit; border: 1px solid var(--line); border-radius: calc(4px * var(--rs)); padding: 0 .3rem; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: calc(12px * var(--rs)); padding: .9rem 1rem;
       margin: 0 0 1rem; }
.box h2 { font-size: 1.15rem; margin: 0 0 .3rem; }
.box h2 a { color: var(--fg); text-decoration: none; }
.box p { margin: .2rem 0 .5rem; color: var(--muted); font-size: .95rem; }
.answer .big { font-size: 1.5rem; font-weight: 600; }
.links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.links a { font-size: .85rem; padding: .15rem .6rem; border: 1px solid var(--line); border-radius: calc(99px * var(--rs));
           color: var(--fg); text-decoration: none; }
.links a:hover { border-color: var(--accent); }
.rel { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
/* the card (owner 2026-11-06): identity row, one button to its own site, the site's sections as tiles, accounts as marks */
.card .card-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.card .card-head .piclink { flex-shrink: 0; }
.card .card-head .pic { max-height: 64px; max-width: 112px; margin: 0; }
.card .card-id { min-width: 0; }
.card .card-id h2 { font-size: 1.35rem; line-height: 1.2; margin: 0; }
.card .card-id .what { margin: .15rem 0 0; font-size: .9rem; color: var(--muted); }
.card .cta { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 1rem;
             background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none;
             border-radius: calc(8px * var(--rs)); margin: 0 0 .6rem; }
.card .cta:hover { filter: brightness(.92); }
.card .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0 0 .8rem; }
.card .tile { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 .75rem; border: 1px solid var(--line);
              color: var(--fg); text-decoration: none; font-size: .95rem; border-radius: calc(8px * var(--rs)); min-width: 0; }
.card .tile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .tile svg { flex-shrink: 0; width: 18px; height: 18px; }
.card .tile:hover, .card .acct:hover { border-color: var(--accent); }
.card .wp { font-size: .85rem; margin: -.2rem 0 .6rem; }
.card .wp a { color: var(--muted); }
.card .accts { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 .4rem; }
.card .acct { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
              border: 1px solid var(--line); color: var(--fg); border-radius: calc(8px * var(--rs)); }
.card .accts > a:not(.acct) { font-size: .85rem; padding: 0 .7rem; min-height: 44px; display: inline-flex; align-items: center;
                              border: 1px solid var(--line); color: var(--fg); text-decoration: none; border-radius: calc(8px * var(--rs)); }
.card .rel { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.card .rel .chip { font-size: .82rem; padding: .2rem .6rem; border: 1px solid var(--line); color: var(--fg); text-decoration: none;
                   border-radius: calc(99px * var(--rs)); }
.rel a { color: var(--muted); }
/* card picture: scaled to fit (never cropped — see apps/search/importer/card_images.py), on top of
   the card so the sidebar's text keeps its width; up to 220 px tall (stored 250 px box: slightly
   soft on high-DPI screens, by choice — seke 2026-09-30) */
.card .pic { display: block; max-width: 100%; height: auto; object-fit: contain;
             margin: 0 0 .6rem; border-radius: calc(8px * var(--rs)); }
.card .piclink { display: block; width: fit-content; max-width: 100%; }
/* a see-through logo gets a plate that contrasts with its ink (app.js inkPlate, owner 2026-11-04): fixed
   colours, not theme tokens — the plate answers the logo's ink, whatever the theme */
.card .pic.plate { box-sizing: border-box; padding: .5rem .7rem; }
.card .pic.plate-light { background: #f4f4f1; }
.card .pic.plate-dark { background: #1c1c1c; }
/* the card heads the results in the wide column, not a narrow side one: its picture is a logo's size, not a banner */
.card .pic { width: auto; max-height: 140px; }
/* the title reads as a link, like a result's (owner 2026-10-08) */
.card h2 a { color: var(--accent); }
.card h2 a:hover { text-decoration: underline; }
.card .credit { font-size: .72rem; margin: .5rem 0 0; }
/* phones: the card must not fill the first screen (card UI audit, 2026-09-30) */
@media (max-width: 600px) {
  .card .pic { width: auto; max-height: 160px; }
  .card .lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
.news a { color: var(--accent); }   /* was the browser default: dark blue on the dark theme */
.card .credit a { color: var(--muted); }
ol.res { list-style: none; margin: 0; padding: 0; }
ol.res li { margin: 0 0 1.1rem; padding: .2rem .3rem; border-radius: calc(8px * var(--rs)); }
ol.res li.on { background: var(--hl); }
ol.res .u { color: var(--url); font-size: .82rem; overflow-wrap: anywhere; }
ol.res a.t { color: var(--accent); font-size: 1.05rem; text-decoration: none; }
ol.res a.t:hover { text-decoration: underline; }
ol.res p { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
ol.res p.cred { font-size: .82rem; }
ol.res p.cred a { color: var(--muted); }
ol.res p.cred b { font-weight: 600; color: var(--fg); }
.more { display: block; text-align: center; padding: .7rem; border: 1px dashed var(--line);
        border-radius: calc(12px * var(--rs)); color: var(--accent); text-decoration: none; }
.note { color: var(--muted); font-size: .9rem; }
/* waiting for the engine: placeholder lines where the results will be — a site line, a title, two
   lines of text, repeated. Drawn here (no markup) so boot.js can show them before app.js loads. */
#out.loading:empty::before {
  content: ""; display: block; height: 34rem; max-width: 760px; margin: 2.2rem .3rem 0; color: var(--line);
  background:
    linear-gradient(currentColor .7rem, transparent 0) 0 0 / 28% 6.2rem repeat-y,
    linear-gradient(currentColor 1.05rem, transparent 0) 0 1.15rem / 62% 6.2rem repeat-y,
    linear-gradient(currentColor .7rem, transparent 0) 0 2.75rem / 96% 6.2rem repeat-y,
    linear-gradient(currentColor .7rem, transparent 0) 0 3.85rem / 80% 6.2rem repeat-y;
  border-radius: calc(4px * var(--rs)); animation: loading 1.1s ease-in-out infinite alternate;
}
@keyframes loading { from { opacity: 1; } to { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { #out.loading:empty::before { animation: none; } }
.note.area { margin: 0 .2rem .9rem; font-size: .85rem; }
.area-btn { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }
.area-btn:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: .85rem; margin: 0 .2rem .9rem; font-variant-numeric: tabular-nums; }
footer { margin-top: 2.5rem; color: var(--muted); font-size: .85rem; }
footer summary { cursor: pointer; }
footer a { color: var(--muted); }
.pairline { color: var(--fg); }
.pairline input { font: inherit; width: 5.5rem; padding: .1rem .4rem; letter-spacing: .12em; color: var(--fg);
                  background: var(--card); border: 1px solid var(--line); border-radius: calc(8px * var(--rs)); outline: none; }
.pairline input:focus { border-color: var(--accent); }
.pairline button, #engine-list button, #pairslot button { font: inherit; font-size: .8rem; color: var(--accent); background: none;
  border: 1px solid var(--line); border-radius: calc(99px * var(--rs)); padding: .05rem .6rem; cursor: pointer; }
#engine-list { padding-left: 1.1rem; }
.how-origin { margin: 0 0 .8rem; padding: .6rem .75rem; font-size: .85rem; line-height: 1.4; border-left: 3px solid var(--accent); background: var(--hl); }
#engine-list .pair-seen { color: var(--muted); font-size: .78rem; }   /* when each saved engine last answered */
.gear { margin-left: .4rem; background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 0 .2rem; }
dialog { border: 1px solid var(--line); border-radius: calc(14px * var(--rs)); background: var(--card); color: var(--fg); max-width: 420px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog h2 { margin: 0 0 .8rem; font-size: 1.1rem; }
dialog label { display: block; margin: .6rem 0; font-size: .95rem; }
dialog select, dialog input[type=url] { display: block; width: 100%; margin-top: .3rem; padding: .45rem .6rem; font: inherit;
  color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: calc(8px * var(--rs)); }
dialog fieldset { border: 1px solid var(--line); border-radius: calc(8px * var(--rs)); margin: .8rem 0; }
dialog fieldset label { margin: .3rem 0; }
.set-theme-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.set-theme-custom label { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.set-theme-custom input[type=color] { width: 2.6rem; height: 1.8rem; padding: 0; border: 1px solid var(--line); border-radius: calc(6px * var(--rs)); background: none; cursor: pointer; }
.set-theme-custom button { grid-column: 1 / -1; justify-self: start; font: inherit; font-size: .85rem; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }
.set-theme-custom label.set-range { grid-column: 1 / -1; }
.set-theme-custom input[type=range] { flex: 1; accent-color: var(--accent); }
.set-reach input { width: 100%; }
.set-buttons { display: flex; gap: .5rem; justify-content: flex-end; }
.set-buttons button { font: inherit; padding: .35rem .9rem; border-radius: calc(8px * var(--rs)); border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; }
#set-save { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
dialog textarea { display: block; width: 100%; margin-top: .3rem; padding: .45rem .6rem; font: .85rem ui-monospace, monospace;
  color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: calc(8px * var(--rs)); }
dialog { max-height: 90vh; overflow: auto; }
/* how this was ranked (2026-10-08): the steps of one search as a tabbed card — sources, then one tab per reordering */
.how-btn { padding: 0; font: inherit; color: var(--accent); background: none; border: 0; cursor: pointer; }
.how-btn:hover { text-decoration: underline; }
#how { max-width: 560px; padding: 0; overflow: hidden; }
#how[open] { display: flex; flex-direction: column; }
.how-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem .6rem; }
.how-top h2 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
#how-close { flex: none; width: 2rem; height: 2rem; font: inherit; color: var(--muted); background: none; border: 0; border-radius: calc(8px * var(--rs)); cursor: pointer; }
#how-close:hover { background: var(--hl); color: var(--fg); }
#how-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#how-body > .note { margin: 0; padding: .4rem 1rem 1.2rem; }
.how-tabs, .how-foot, .how-fine { flex: none; }
.how-tabs { display: flex; gap: .25rem; padding: 0 1rem; overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--line); }
.how-tab { flex: none; padding: .5rem .7rem; font: inherit; font-size: .88rem; color: var(--muted); white-space: nowrap; cursor: pointer;
           background: none; border: 0; border-bottom: 2px solid transparent; }
.how-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: calc(6px * var(--rs)); }
.how-tab:hover { color: var(--fg); }
.how-tab[aria-selected=true] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.how-panel { flex: 1; min-height: 0; height: 26rem; max-height: 56vh; overflow-y: auto; padding: .8rem 1rem .4rem; scrollbar-color: var(--muted) transparent; }
.how-say { margin: 0 0 .7rem; font-size: .92rem; }
.how-note { margin: .6rem 0 0; color: var(--muted); font-size: .8rem; }
.how-say + .how-note { margin: 0 0 .7rem; }
.how-n { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.how-srcs, .how-list { list-style: none; margin: 0; padding: 0; }
.how-src { padding: .5rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.how-src:first-child { border-top: 0; padding-top: 0; }
.how-src-top { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.how-src.exact b { color: var(--accent); }
.how-src.none { opacity: .55; }
.how-eg { color: var(--muted); font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.how-list li { margin: 0 0 .3rem; }
.how-r { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .4rem .6rem; font: inherit; color: var(--fg); text-align: left; cursor: pointer;
         background: none; border: 1px solid var(--line); border-left-width: 3px; border-radius: calc(8px * var(--rs)); }
.how-r:hover { background: var(--hl); }
.how-r.on { background: var(--hl); border-color: var(--accent); }
.how-r.how-s-site { border-left-color: var(--accent); }
.how-r.how-s-wikipedia { border-left-color: var(--muted); }
.how-r.how-s-place { border-left-color: var(--url); }
.how-i { flex: none; width: 1.2rem; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; text-align: right; }
.how-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.how-tt, .how-h { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.how-tt { font-size: .9rem; }
.how-h { color: var(--url); font-size: .75rem; }
.how-v, .how-mv { flex: none; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.how-mv.up { color: var(--url); }
.how-why { margin: .25rem 0 .5rem; padding: 0 .6rem 0 2.5rem; color: var(--muted); font-size: .8rem; }
.how-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem 1rem; border-top: 1px solid var(--line); }
.how-step { font: inherit; font-size: .9rem; padding: .4rem .9rem; border-radius: calc(8px * var(--rs)); border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; }
.how-step:disabled { opacity: .4; cursor: default; }
.how-fine { margin: 0; padding: 0 1rem .8rem; color: var(--muted); font-size: .72rem; }
/* phones: a sheet from the bottom edge, as wide as the screen */
@media (max-width: 600px) {
  #how { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: calc(14px * var(--rs)) calc(14px * var(--rs)) 0 0; border-width: 1px 0 0; max-height: 92dvh; }
  .how-panel { height: auto; max-height: none; }
}
.status { list-style: none; padding: 0; margin: .2rem 0; font-size: .8rem; color: var(--muted); }
.status .bad { color: #d9534f; }
.src-row { margin: .5rem 0; }
.src-row input { display: block; width: 100%; margin-top: .2rem; padding: .4rem .6rem; font: .85rem ui-monospace, monospace;
  color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: calc(8px * var(--rs)); }
.news h3, .games h3, .kinds h3, .nearby h3 { margin: 0 0 .4rem; font-size: .95rem; }
/* "Nearby" (2026-10-02): one row per place — name + distance, address, what/hours, links */
.nearby .nb-site { display: flex; align-items: center; gap: .6rem; padding-bottom: .7rem; margin-bottom: .7rem; border-bottom: 1px solid var(--line); }
.nearby .nb-site .ico { width: 2.2rem; height: 2.2rem; margin: 0; font-size: 1.15rem; border-radius: 6px; flex: none; }
.nearby .nb-site-t { display: grid; min-width: 0; }
.nearby .nb-site-t a { font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.nearby .nb-site-t .src { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.nearby .places { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.nearby .place { min-width: 0; }
.nearby .pl-head { display: flex; align-items: baseline; gap: .6rem; justify-content: space-between; }
.nearby .pl-name { font-weight: 600; color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.nearby .pl-name:hover { color: var(--accent); text-decoration: underline; }
.nearby .pl-dist { flex: none; font-size: .85rem; color: var(--mode); font-variant-numeric: tabular-nums; }
.nearby .pl-addr, .nearby .pl-meta { font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.nearby .pl-meta::first-letter { text-transform: uppercase; }
.nearby .pl-links { display: flex; gap: .5rem; margin-top: .45rem; }
/* Map, Website, Phone: icon buttons */
.nearby .pl-ib { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.3rem; padding: 0;
                 font: inherit; color: var(--accent); background: none; border: 1px solid var(--line);
                 border-radius: calc(8px * var(--rs)); cursor: pointer; text-decoration: none; }
.nearby .pl-ib:hover, .nearby .pl-ib:focus-visible { border-color: var(--accent); }
.nearby .pl-ib svg { display: block; }
/* the phone number: a modal with Call and Copy */
dialog.phone-dlg { max-width: 340px; text-align: center; }
.phone-dlg .ph-name { margin: 0 0 .3rem; color: var(--muted); font-size: .9rem; }
.phone-dlg .ph-num { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.phone-dlg .ph-btns { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.phone-dlg .ph-btns a, .phone-dlg .ph-btns button { font: inherit; padding: .5rem 1rem; border-radius: calc(8px * var(--rs));
                 border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; text-decoration: none; }
.phone-dlg .ph-call { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.nearby .pl-src { font-size: .75rem; margin: .7rem 0 0; }
.nearby .pl-hours { display: flex; flex-wrap: wrap; gap: .1rem .6rem; font-size: .86rem; color: var(--muted); margin-top: .1rem; }
.nearby .pl-open { font-weight: 600; color: var(--fg); }
.nearby .pl-open.is-open { color: var(--mode); }
.nearby .pl-week { overflow-wrap: anywhere; }
.nearby .pl-hsrc { flex-basis: 100%; font-size: .78rem; }
.nearby .pl-hsrc a { color: var(--accent); }
.nearby .pl-fix { font: inherit; font-size: .78rem; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; }
.nearby .pl-fix-form { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .3rem; }
.nearby .pl-fix-form input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: .85rem; padding: .3rem .5rem;
  border: 1px solid var(--line); border-radius: calc(8px * var(--rs)); background: var(--bg); color: var(--fg); }
.nearby .pl-fix-form button { font: inherit; font-size: .82rem; padding: .3rem .7rem; border-radius: calc(8px * var(--rs));
  border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; }
.nearby .pl-fix-form p { flex-basis: 100%; margin: 0; font-size: .75rem; }
.news ul, .games ul, .kinds ul { margin: 0; padding-left: 1.1rem; }
.news li, .games li, .kinds li { margin: .25rem 0; }
.news .src, .kinds .src { color: var(--muted); font-size: .8rem; }
/* news box (2026-10-01 polish): story rows, one continuous list, day labels when expanded */
.news ul.stories { list-style: none; margin: 0; padding: 0; }
.news .story { padding: .55rem 0; border-top: 1px solid var(--line); }
.news .story:first-child, .news .day-label + .story { border-top: 0; }
.news .story .st-title { color: var(--fg); text-decoration: none; font-size: .95rem; line-height: 1.35;
                         display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news .story .st-title:hover { color: var(--accent); text-decoration: underline; }
.news .story .st-meta { margin-top: .15rem; color: var(--muted); font-size: .78rem; }
.news .day-label { padding: .9rem 0 .1rem; color: var(--muted); font-size: .7rem; font-weight: 600;
                   letter-spacing: .06em; text-transform: uppercase; border-top: 1px solid var(--line); }
.news .stories.collapsed .more-item { display: none; }
.news-foot { margin-top: .5rem; }
.news-status { margin: .2rem 0 .5rem; color: var(--muted); font-size: .8rem; }
.news-more-btn { padding: 0; font: inherit; font-size: .85rem; font-weight: 600; color: var(--accent);
                 background: none; border: 0; cursor: pointer; }
.news-more-btn:hover { text-decoration: underline; }
.games .live { color: #d9534f; font-weight: 600; }
.games .game + .game { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.games .g-foot { margin-top: .7rem; padding-top: .5rem; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.games .g-foot a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
/* league tables (2026-10-05) */
.standings h3 { margin: 0 0 .4rem; font-size: .95rem; }
.standings .st-wrap { overflow-x: auto; }
.standings .st-wrap + .st-wrap { margin-top: .8rem; }
.st-table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.st-table caption { text-align: left; font-weight: 600; padding: 0 0 .2rem; }
.st-table th { color: var(--muted); font-weight: 400; font-size: .78rem; text-align: right; padding: .15rem .35rem; border-bottom: 1px solid var(--line); }
.st-table td { text-align: right; padding: .2rem .35rem; border-bottom: 1px solid var(--line); }
.st-table tr:last-child td { border-bottom: 0; }
.st-table .st-team { text-align: left; width: 100%; white-space: nowrap; }
.st-table td.st-rank { color: var(--muted); width: 1.6rem; padding-right: 0; }
.st-table td.st-pts { font-weight: 600; }
.standings .g-meta { color: var(--muted); font-size: .8rem; margin-top: .5rem; }
.games .g-meta { color: var(--muted); font-size: .8rem; }
.games .g-match { margin: .15rem 0; font-weight: 600; }
.games .g-match a { color: inherit; text-decoration: none; }
.games .g-match a:hover { text-decoration: underline; }
.games .g-team { display: flex; justify-content: space-between; gap: 1rem; margin: .15rem 0; }
.games .g-team .sc { font-variant-numeric: tabular-nums; font-weight: 600; }
.games .g-team.won { font-weight: 600; }
.games .g-team:not(.won) .sc { font-weight: 400; }
/* weather card (2026-10-01); icons: Lucide (ISC), see wx-icons.js */
.weather .wx-alert { display: flex; align-items: center; gap: .45rem; margin: -.2rem 0 .5rem; padding: .35rem .6rem; border-radius: calc(8px * var(--rs));
                     font-size: .85rem; font-weight: 600; color: #fff; background: #b8860b; }
.weather .wx-severe, .weather .wx-extreme { background: #c0392b; }
.weather .wx-alert svg { flex: none; }
.weather .wx-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.weather .wx-big { display: inline-flex; }
.weather .wx-temp { font-size: 2.4rem; font-weight: 600; line-height: 1.1; }
.weather .wx-text { font-size: 1rem; align-self: flex-end; padding-bottom: .35rem; }
.weather .wx-line { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .9rem; color: var(--muted); font-size: .85rem; margin: .3rem 0 .6rem; }
.weather .wx-bit { display: inline-flex; align-items: center; gap: .3rem; }
.weather .wx-lead { margin: 0 0 .5rem; font-size: .95rem; }
.weather .wx-strip { display: flex; gap: .3rem; margin: .4rem 0; }
.weather .wx-cell { flex: 1 1 0; min-width: 0; text-align: center; font-size: .72rem; line-height: 1.35; padding: .3rem .1rem;
                    border: 1px solid var(--line); border-radius: calc(8px * var(--rs)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.weather .wx-ico { display: inline-flex; margin: .1rem 0; }
.weather .wx-cell .lo { color: var(--muted); }
.weather .wx-src { color: var(--muted); font-size: .72rem; margin-top: .5rem; }
.weather .wx-src a { color: var(--muted); }
/* the buy section (#599): store buttons at the foot of the card, or a box of its own */
.buy { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.box.buy-only .buy { margin-top: 0; padding-top: 0; border-top: 0; }
.buy-l { font-size: .8rem; color: var(--muted); margin-bottom: .45rem; }
.buy-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .5rem; }
.buy-b { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: calc(10px * var(--rs));
  color: var(--fg); text-decoration: none; background: var(--bg); min-width: 0; }
.buy-b:hover, .buy-b:focus-visible { border-color: var(--fg); }
.buy-b svg { flex: none; color: var(--muted); }
.buy-b.alt svg { color: var(--mode); }
.buy-b span { min-width: 0; }
.buy-b b { display: block; font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-b small { display: block; font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nearby.buy-near h3 small { font-weight: 400; color: var(--muted); }
.nearby .pl-brand { display: block; margin-top: .25rem; font-size: .82rem; font-weight: 600; color: var(--accent); }   /* the shop that sells the brand searched for */
.nearby.buy-near { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.nearby .pl-find { display: inline-flex; align-items: center; gap: .45rem; height: 2.3rem; padding: 0 .8rem; border: 1px solid var(--line);
  border-radius: calc(8px * var(--rs)); color: var(--fg); text-decoration: none; font-size: .92rem; font-weight: 600; background: var(--bg); }
.nearby .pl-find:hover, .nearby .pl-find:focus-visible { border-color: var(--accent); }
.nearby .pl-links { flex-wrap: wrap; }
.nearby .pl-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .5rem; margin-top: .5rem; }
.nearby .pl-wide { display: flex; align-items: center; justify-content: center; gap: .5rem; min-width: 0; height: 2.6rem; padding: 0 .7rem; border: 1px solid var(--line);
  border-radius: calc(8px * var(--rs)); color: var(--fg); text-decoration: none; font-size: .95rem; font-weight: 600; background: var(--bg); }
.nearby .pl-wide:hover, .nearby .pl-wide:focus-visible { border-color: var(--accent); }
.nearby .pl-wide svg { flex: none; color: var(--muted); }
.nearby .pl-wide span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nearby .pl-more { display: block; width: 100%; margin-top: .8rem; padding: .5rem; border: 1px solid var(--line); border-radius: calc(8px * var(--rs));
  background: transparent; color: var(--fg); font: inherit; font-size: .9rem; cursor: pointer; }
/* radar (#600): the nearest station's loop, under the day strip */
.weather .wx-radar { margin: .7rem 0 .2rem; }
.weather .wx-radar-top { display: flex; align-items: baseline; gap: .5rem; font-size: .85rem; margin-bottom: .35rem; }
.weather .wx-radar-top b { font-weight: 600; }
.weather .wx-radar-top .st { color: var(--muted); }
.weather .wx-radar-top .when { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.weather .wx-radar img { display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 600 / 550; margin: 0 auto;
  border: 1px solid var(--line); border-radius: calc(8px * var(--rs)); background: #fff; cursor: pointer; }
.weather .wx-radar-ctl { display: flex; align-items: center; gap: .6rem; max-width: 600px; margin: .4rem auto 0; }
.weather .wx-radar-ctl button { flex: none; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--fg); font-size: .8rem; cursor: pointer; }
.weather .wx-radar-ticks { flex: 1; display: flex; gap: 3px; }
.weather .wx-radar-ticks i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); cursor: pointer; }
.weather .wx-radar-ticks i.on { background: var(--fg); }
/* icon colours: restrained, readable on both themes */
.wxi { vertical-align: middle; }
.wxi-sun { color: #e8a317; }
.wxi-moon, .wxi-cloud-moon { color: #9aa8e6; }
.wxi-cloud-sun { color: #d9a52a; }
.wxi-cloud-rain, .wxi-cloud-drizzle, .wxi-cloud-sun-rain, .wxi-cloud-moon-rain, .wxi-droplets, .wxi-umbrella { color: var(--accent); }
.wxi-cloud-snow, .wxi-snowflake { color: #6cb7d6; }
.wxi-cloud-lightning { color: #e0a82e; }
.wxi-cloud, .wxi-cloud-fog, .wxi-wind { color: var(--muted); }
.wxi-thermometer { color: var(--muted); }

/* ---- wide / landscape: use the width (seke 2026-09-27) ---- */
@media (min-width: 980px) {
  main { max-width: 1240px; padding: 0 32px 48px; }
  main:not(.home) .brand, main:not(.home) form, main:not(.home) .hint, main:not(.home) .pairline { max-width: 760px; }
  #out.has-side { display: grid; grid-template-columns: minmax(0, 760px) minmax(300px, 380px); column-gap: 40px;
                  grid-template-areas: "meta meta" "main side"; align-items: start; }
  #out.has-side > .above { grid-area: meta; }
  /* beside a card the header runs the width of both columns: the badge and the gear end where the card ends */
  main:has(#out.has-side) .brand { max-width: 1180px; }
  #out.has-side .main { grid-area: main; }
  #out.has-side .side { grid-area: side; }   /* flows with the page: one scroll bar (seke 2026-10-01) */
  main.home { max-width: 720px; }
}
@media (min-width: 1500px) {
  main { max-width: 1400px; }
  #out.has-side { grid-template-columns: minmax(0, 820px) minmax(320px, 440px); column-gap: 56px; }
  main:not(.home) .brand, main:not(.home) form, main:not(.home) .hint, main:not(.home) .pairline { max-width: 820px; }
  main:has(#out.has-side) .brand { max-width: 1316px; }
}
/* landscape phones: little height — no big empty space above the box */
@media (orientation: landscape) and (max-height: 520px) {
  main.home { padding-top: 3vh; }
  .brand { margin: .5rem 0 .4rem; }
  .wordmark { height: 2rem; }
  input[type=search] { padding: .5rem .8rem; }
  .hint { margin-bottom: .6rem; }
}
/* landscape phones / small tablets that are wide but not 980px: two columns too */
@media (min-width: 720px) and (max-width: 979px) and (orientation: landscape) {
  main { max-width: 100%; padding: 0 20px 32px; }
  #out.has-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 34%); column-gap: 24px;
                  grid-template-areas: "meta meta" "main side"; align-items: start; }
  #out.has-side > .above { grid-area: meta; }
  #out.has-side .main { grid-area: main; }
  #out.has-side .side { grid-area: side; }
}
.meta a { color: var(--accent); text-decoration: none; }
.meta a:hover { text-decoration: underline; }
@media (orientation: landscape) and (max-height: 520px) {
  main:not(.home) .hint:not(.pairline) { display: none; }   /* results showing: the hint is known by now */
  .pairline { font-size: .8rem; margin: .2rem .2rem .5rem; }
  .brand { margin: .3rem 0 .3rem; }
}
.credits { font-size: .75rem; margin-top: 1.2rem; }
.credits a { color: var(--muted); }
details .credits { margin-top: .5rem; }   /* the sources, folded like Privacy (the Nearby box and the card keep their own credit in view) */

/* ---- UI pass 2026-10-10 ---- */
/* a site's mark beside its address: a letter on a tint (app.js siteMark); nothing is fetched */
.ico { display: inline-flex; align-items: center; justify-content: center; width: 1.15rem; height: 1.15rem; margin-right: .4rem;
       border-radius: calc(5px * var(--rs)); font-size: .68rem; font-weight: 700; line-height: 1; color: #fff; vertical-align: -.2rem; }
.ico-0 { background: #3d63e6; } .ico-1 { background: #1f7a4d; } .ico-2 { background: #b4532a; } .ico-3 { background: #7a4bc2; }
.ico-4 { background: #0f7f8c; } .ico-5 { background: #b23a6f; } .ico-6 { background: #5c6470; } .ico-7 { background: #8a6d12; }
/* with no box beside them the results keep a readable line, not the window's width */
@media (min-width: 980px) { #out:not(.has-side) .main { max-width: 760px; } }
@media (min-width: 1500px) { #out:not(.has-side) .main { max-width: 820px; } }
/* a phone: the card, then the results, then the news — the first result is on the first screen */
@media (max-width: 719px) {
  #out.has-side { display: flex; flex-direction: column; }
  #out.has-side .side { display: contents; }
  #out.has-side > .above { order: 0; }
  #out.has-side .side > * { order: 1; }
  #out.has-side .main { order: 2; }
  #out.has-side .side > .news { order: 3; }
  .card .lead { -webkit-line-clamp: 2; }
}
/* the card's footer: the latest news about what the card is about */
.card .card-news { border-top: 1px solid var(--line); margin-top: .9rem; padding-top: .7rem; }
/* a title or address with no spaces in it wraps inside its column instead of running under the card (2026-10-10) */
#out .main { min-width: 0; }
ol.res li { overflow-wrap: anywhere; }
ol.res a.t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* the places near you head the page, in the row above the card and the results (2026-10-11) */
#out > .above .nearby { max-width: 760px; margin-bottom: 1.1rem; }
/* with a card the places are part of it: straight under the name, set off by rules */
.card .nearby.in-card { margin: .5rem 0 .8rem; padding: .6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* location not set up yet: the ask leads the results (2026-10-10) */
.locate { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; border-color: var(--accent); background: var(--hl); margin-bottom: 1.1rem; }
.locate-text { flex: 1 1 18rem; display: flex; flex-direction: column; gap: .15rem; }
.locate-text b { font-size: 1.05rem; }
.locate-text span { color: var(--muted); font-size: .88rem; }
.locate-btns { display: flex; gap: .6rem; align-items: center; }
.locate-go { font: inherit; font-weight: 600; color: var(--on-accent); background: var(--accent); border: 0; border-radius: calc(10px * var(--rs)); padding: .55rem 1.1rem; cursor: pointer; }
.locate-go:hover { filter: brightness(1.1); }
.locate-go:disabled { opacity: .6; cursor: default; }
.locate-no { font: inherit; font-size: .88rem; color: var(--muted); background: none; border: 0; padding: .3rem; cursor: pointer; }
.locate-no:hover { text-decoration: underline; }
.locate-why { flex: 1; font-size: .88rem; }
.nearby .pl-hsrc a { color: var(--accent); }

/* /default.html — "Make logout your search engine" */
.setup h1 { font-size: 1.35rem; margin: 1.6rem 0 .6rem; }
.setup details { background: var(--card); border: 1px solid var(--line); border-radius: calc(8px * var(--rs)); padding: .55rem .9rem; margin: .5rem 0; }
.setup details.mine { border-color: var(--accent); }
.setup details.mine > summary::after { content: " — this browser"; color: var(--muted); font-weight: 400; }
.setup summary { cursor: pointer; font-weight: 600; }
.setup ol, .setup ul { margin: .6rem 0 .4rem; padding-left: 1.3rem; }
.setup li { margin: .3rem 0; }
.setup code { font-size: .9em; background: var(--hl); border-radius: calc(4px * var(--rs)); padding: .05rem .3rem; overflow-wrap: anywhere; }
.setup a { color: var(--accent); }
.setup footer a { color: var(--muted); }
.setup .home-link { color: var(--fg); }
.setup-ext { margin: 1rem 0; color: var(--muted); font-size: .9rem; }
.setup-go { display: inline-block; margin-right: .6rem; padding: .45rem .9rem; border-radius: calc(8px * var(--rs)); background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600; }
.setup .setup-go { color: var(--on-accent); }

/* numbers.html — the public numbers (2026-10-10). One hue: every chart is a single series, so the
   title names it and there is no legend; text stays in the text colours, never the bar colour. */
.nm-h1 { font-size: 1.6rem; margin: 1.2rem 0 .3rem; }
.nm-h2 { font-size: 1.05rem; margin: 2rem 0 .6rem; }
.nm-lead { color: var(--muted); margin: 0 0 1rem; }
.nm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: 0; }
.nm-tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; }
.nm-tile dt { color: var(--muted); font-size: .8rem; line-height: 1.3; min-height: 2.6em; }
.nm-tile dd { margin: .2rem 0 0; font-size: 1.7rem; font-weight: 600; line-height: 1.2; }
.nm-days { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem .6rem; }
.nm-days > .nm-fig, .nm-x { width: 100%; }
.nm-fig { margin: 0 0 .9rem; }
.nm-fig figcaption { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; margin-bottom: .2rem; }
.nm-max, .nm-x { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.nm-chart { display: block; max-width: 100%; overflow: visible; }
#numbers { --nm-bar: #6384f5; }                      /* the themes' accents are ink or near-white: a filled bar keeps one blue of its own */
:root[data-theme=light] #numbers, :root[data-theme=custom][data-scheme=light] #numbers { --nm-bar: #3b5bdb; }
.nm-bar { fill: var(--nm-bar); }
.nm-days:hover .nm-bar { opacity: .55; }
.nm-days:hover .nm-bar.on { opacity: 1; }
.nm-grid, .nm-axis { stroke: var(--line); stroke-width: 1; }
.nm-hit { fill: transparent; }
.nm-x { display: flex; justify-content: space-between; }
.nm-tip { position: absolute; z-index: 5; max-width: min(22rem, calc(100vw - 16px)); padding: .35rem .6rem; font-size: .8rem;
          color: var(--bg); background: var(--fg); border-radius: 8px; pointer-events: none; }
.nm-table { margin-top: .6rem; color: var(--muted); font-size: .85rem; }
.nm-table summary { cursor: pointer; }
.nm-table table { width: 100%; margin-top: .5rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.nm-table th, .nm-table td { padding: .25rem .4rem; border-top: 1px solid var(--line); text-align: right; font-weight: 400; }
.nm-table th:first-child { text-align: left; }
.nm-table thead th { border-top: 0; color: var(--fg); font-weight: 600; }
.nm-pos { list-style: none; margin: 0; padding: .8rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.nm-pos li { display: grid; grid-template-columns: 8.5rem 1fr 5.5rem; align-items: center; gap: .6rem; padding: .2rem 0; font-size: .85rem; }
.nm-ptrack { display: block; height: 14px; }
.nm-pbar { display: block; height: 100%; min-width: 0; background: var(--nm-bar); border-radius: 0 4px 4px 0; }
.nm-pval { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
#numbers footer p { margin: 0 0 .7rem; }
#numbers footer b { color: var(--fg); font-weight: 600; }
@media (max-width: 600px) {
  .nm-tiles { grid-template-columns: repeat(2, 1fr); }
  .nm-pos li { grid-template-columns: 6.6rem 1fr 4.6rem; gap: .4rem; }
}

/* the results page (owner 2026-11-06, "prime real estate"): a small header, the box stuck to the top while you scroll;
   which engine answers and the SearchSilo live in settings (the gear carries a dot when your own engine answers) */
main:not(.home) .brand { margin: .5rem 0 .35rem; }
main:not(.home) .wordmark { height: 1.7rem; }
main:not(.home) #mode, main:not(.home) #silo, main:not(.home) #setupbtn { display: none !important; }
main:not(.home) #f { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg);
                     margin: 0 -.5rem .6rem; padding: .4rem .5rem; }
main:not(.home) #go { right: .9rem; }   /* the stuck bar pads .5rem round the box: keep the button inside it */
main:not(.home) .meta { font-size: .8rem; margin: 0 0 .5rem; }
.gear { position: relative; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--fg); }
.gear svg { width: 22px; height: 22px; overflow: visible; }
.gear .d { fill: currentColor; transform-box: fill-box; transform-origin: center; }
@keyframes gear-dot { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px); } }
.gear.pulse .d { animation: gear-dot .5s ease-in-out 2; }
.gear.pulse .d:nth-child(2) { animation-delay: .08s; }
.gear.pulse .d:nth-child(3) { animation-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .gear.pulse .d { animation: none; } }
main:not(.home) #out .meta { display: none; }   /* the count, time and "How this was ranked" are in the menu */
/* no dot on the menu button (owner 2026-11-06): the pill names the engine */
.set-top { display: flex; flex-direction: column; gap: .6rem; margin: 0 0 1rem; padding: 0 0 .9rem; border-bottom: 1px solid var(--line); }
.set-top .set-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.set-top .silo { align-self: flex-start; }
@media (max-width: 600px) {
  /* "Try on <engine>" is the results' last line ("Search Brave for ..."); Enter twice still goes there */
  /* on a phone the pass-through button is its arrow alone (owner 2026-11-06); its label is still read out */
  main:not(.home) #go[data-mode=pass] { display: inline-flex; align-items: center; justify-content: center; padding: 0;
                                        width: 2.6rem; height: 2.6rem; max-width: none; }
  main:not(.home) #go[data-mode=pass] .go-t { display: none; }
  main:not(.home) #go[data-mode=pass] .go-i { display: block; }
  main:not(.home) form:has(#go[data-mode=pass]) input[type=search] { padding-right: 3.6rem; }
}

/* the menu (owner 2026-11-06, Fable's design): a sheet; one row grammar — label (+ a small line) left, the value right,
   then › (opens), ⌄ (picks) or ↗ (leaves); hairlines; nothing to save. Tokens only, corners through --rs. */
dialog.sheet { padding: 0; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; margin: auto auto 0;
               border: 0; border-top: 1px solid var(--line); border-radius: calc(16px * var(--rs)) calc(16px * var(--rs)) 0 0;
               padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (min-width: 600px) { dialog.sheet { margin: auto; border: 1px solid var(--line); border-radius: calc(14px * var(--rs)); } }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .55); }
/* while a menu or dialog is open the page behind it stays put (owner 2026-11-06); the sheet's own scroll stops at its ends */
html:has(dialog[open]), html:has(dialog[open]) body { overflow: hidden; }
dialog { overscroll-behavior: contain; }
dialog.sheet form { display: block; padding: 0 0 1rem; }
.sheet-grab { width: 40px; height: 4px; background: var(--line); margin: .5rem auto .25rem; border-radius: 2px; }
.sheet-hd { display: flex; align-items: center; justify-content: space-between; padding: 0 .5rem 0 1rem; }
.sheet-hd h2 { margin: 0; font-size: 1.15rem; }
.sheet-x { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0;
           color: var(--fg); cursor: pointer; }
.sheet-x svg, dialog.sheet .chev { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
dialog.sheet .chev { color: var(--muted); }
dialog.sheet .grp { display: flex; justify-content: space-between; gap: .5rem; padding: 1.1rem 1rem .4rem; font-size: .75rem;
                    letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
dialog.sheet .grp-note { text-transform: none; letter-spacing: 0; }
dialog.sheet .row { display: flex; align-items: center; gap: .75rem; min-height: 52px; width: 100%; margin: 0; padding: .55rem 1rem;
                    border: 0; border-top: 1px solid var(--line); background: none; color: var(--fg); font: inherit; font-size: 1rem;
                    text-align: left; text-decoration: none; cursor: pointer; box-sizing: border-box; }
dialog.sheet .row:hover { background: var(--hl); }
dialog.sheet .row-l { flex: 1; min-width: 0; display: flex; flex-direction: column; }
dialog.sheet .row-l small { font-size: .78rem; color: var(--muted); margin-top: .1rem; }
dialog.sheet .row-v { color: var(--fg); display: inline-flex; align-items: center; gap: .4rem; text-align: right; }
dialog.sheet .row.on .row-v { color: var(--accent); font-weight: 700; }   /* the engine chosen in Settings */
dialog.sheet .own-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--mode); }
dialog.sheet .row select { width: auto; max-width: 8.5rem; margin: 0 -.4rem 0 0; padding: .4rem 0; border: 0; background: none; color: var(--fg);
                           font: inherit; text-align: right; text-align-last: right; -webkit-appearance: none; appearance: none; cursor: pointer; }
dialog.sheet .row select option { background: var(--card); color: var(--fg); }
/* a dropdown's focus ring is the whole row, not a box around the bare select that misses the value and the arrow (2026-11-06) */
dialog.sheet .row select:focus { outline: none; }
dialog.sheet label.row:has(> select) { position: relative; }
dialog.sheet label.row > select { position: absolute; inset: 0; width: 100%; max-width: none; margin: 0; opacity: 0; }
dialog.sheet .sel-v { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
dialog.sheet .row:has(select:focus-visible) { box-shadow: inset 0 0 0 2px var(--accent); }
dialog.sheet .row-static { cursor: default; }
dialog.sheet .row-static:hover { background: none; }
dialog.sheet .row-col { flex-direction: column; align-items: stretch; }
dialog.sheet .row-col input[type=url] { margin-top: .4rem; }
dialog.sheet .set-reach .row-l { flex-direction: row; justify-content: space-between; }
dialog.sheet .set-reach output { color: var(--fg); }
dialog.sheet .range { display: flex; align-items: center; gap: .75rem; }
dialog.sheet .range input { flex: 1; height: 44px; accent-color: var(--accent); margin: 0; }
dialog.sheet .ends { font-size: .8rem; color: var(--muted); }
dialog.sheet .set-theme-custom { padding: .4rem 1rem .8rem; gap: .2rem 1rem; }
dialog.sheet #set-theme-warn { padding: 0 1rem; }
dialog.sheet .row-details summary { list-style: none; }
dialog.sheet .row-details summary::-webkit-details-marker { display: none; }
dialog.sheet .row-details[open] summary .chev { transform: rotate(90deg); }
dialog.sheet .row-body { padding: .2rem 1rem 1rem; }
dialog.sheet .row-body textarea { width: 100%; box-sizing: border-box; font: .82rem/1.4 ui-monospace, monospace; }
dialog.sheet .silo-mark { font-family: 'Outfit', system-ui, sans-serif; font-weight: 800; font-size: 1.05rem; }
dialog.sheet .set-foot { padding: .6rem 1rem 0; margin: 0; font-size: .8rem; }
main:not(.home) #pairslot { display: none; }     /* Pair is a row in the menu on the results page */

/* landscape phones (owner 2026-11-06, "not using the full landscape space"): a phone on its side that is 980px or wider
   (Pixel Pro, Galaxy Ultra) got the desktop reading column, 760px with the rest empty; on a short screen the width is
   all there is, so the box, the card and the results take all of it */
@media (orientation: landscape) and (max-height: 520px) {
  main { max-width: 100%; padding-left: 20px; padding-right: 20px; }
  main:not(.home) .brand, main:not(.home) form, main:not(.home) .hint, main:not(.home) .pairline,
  #out:not(.has-side) .main, #out > .above .nearby { max-width: none; }
}
/* desktop, no side column: the location ask is as wide as the column under it, not the whole page */
@media (min-width: 980px) and (min-height: 521px) { #out:not(.has-side) > .above { max-width: 760px; } }
@media (min-width: 1500px) and (min-height: 521px) { #out:not(.has-side) > .above { max-width: 820px; } }

/* the pills (which engine answers, Set as default, get a SearchSilo) and the count line are back on wide screens:
   desktop, tablets, a phone on its side; a phone held upright has them at the end of the results; the menu keeps
   them everywhere (owner 2026-11-06) */
.pillfoot { display: none; }
@media (min-width: 640px), (orientation: landscape) {
  main:not(.home) #mode:not([hidden]), main:not(.home) #silo, main:not(.home) #setupbtn { display: inline-flex !important; }
  main:not(.home) #out .meta { display: block; }
}
@media (max-width: 639px) and (orientation: portrait) {
  main:not(.home) .pillfoot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.1rem 0 .4rem; }
  main:not(.home) .pillfoot .hdr-btn { display: inline-flex; }
  main:not(.home) .setup-foot { display: none; }
}

/* your own engine answers (home network, paired, this computer): they have a SearchSilo, nothing offers one;
   the pill shows a mark for the kind of connection and the engine's name (owner 2026-11-06) */
main.own-engine #silo, main.own-engine .pillfoot .silo, main.own-engine .silo-row { display: none !important; }
main.engine-near #silo, main.engine-near .pillfoot .silo, main.engine-near .silo-row { display: none !important; }   /* a Silo is starting or being looked for */
.mode svg { width: 1em; height: 1em; margin-right: .3em; flex-shrink: 0; }

/* a photo or painting on the card at its stored size (owner 2026-11-06, mockup approved): beside the name and the
   article's opening on a wide screen (up to 250 x 220), above them on a phone (card width, up to 200 px tall);
   a logo stays in the head at 112 x 64 */
.card .card-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: start; margin-bottom: .2rem; }
.card .card-top .card-head { margin-bottom: .6rem; }
.card .card-photo .piclink { width: auto; }
.card .card-photo .pic { width: auto; height: auto; max-width: 250px; max-height: 220px; margin: 0; }
@media (max-width: 600px) {
  .card .card-top { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .card .card-photo { order: -1; }
  .card .card-photo .piclink { width: 100%; }
  .card .card-photo .pic { width: 100%; max-width: 100%; max-height: 200px; object-fit: contain; margin: 0 auto; }
}
@media (max-width: 600px) {   /* a tall picture (a portrait) beside the name on a phone, not over the whole first screen */
  .card .card-top.tall { grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; }
  .card .card-top.tall .card-photo { order: 0; }
  .card .card-top.tall .card-photo .piclink { width: auto; }
  .card .card-top.tall .card-photo .pic { width: auto; max-width: 110px; max-height: 160px; }
}

/* "More links": the topic's other links from Wikidata, folded under the account marks (owner 2026-11-06) */
.card .morelinks { margin-top: .5rem; font-size: .85rem; }
.card .morelinks summary { cursor: pointer; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: .3rem;
                           min-height: 32px; }
.card .morelinks summary::-webkit-details-marker { display: none; }
.card .morelinks summary::after { content: "▾"; }
.card .morelinks[open] summary::after { content: "▴"; }
.card .morelinks-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.card .morelinks-list .chip { font-size: .82rem; padding: .2rem .6rem; border: 1px solid var(--line); color: var(--fg); text-decoration: none;
                              border-radius: calc(99px * var(--rs)); }
.card .morelinks-list .chip:hover { border-color: var(--accent); }

/* the menu's devices, sources and scores (2026-11-13): a row per thing, its state under its name, one button */
dialog.sheet .rows { list-style: none; margin: 0; padding: 0; }
dialog.sheet .rowline { display: flex; align-items: center; gap: .75rem; padding: .55rem 1rem; border-top: 1px solid var(--line); min-width: 0; }
dialog.sheet .row-body .rowline { padding-left: 0; padding-right: 0; }
dialog.sheet .rowline .row-l { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
dialog.sheet .rowline small { color: var(--muted); font-size: .78rem; }
dialog.sheet .rowline small.bad { color: #d9534f; }
dialog.sheet .rm { font: inherit; font-size: .8rem; color: var(--muted); background: none; border: 1px solid var(--line);
  border-radius: calc(8px * var(--rs)); padding: .25rem .6rem; cursor: pointer; white-space: nowrap; }
dialog.sheet .rm:hover { color: var(--fg); border-color: var(--accent); }
dialog.sheet .addrow { display: flex; gap: .5rem; margin: .3rem 0 .4rem; }
dialog.sheet .addrow input { flex: 1; min-width: 0; font: inherit; padding: .45rem .6rem; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: calc(8px * var(--rs)); }
dialog.sheet .addrow button, dialog.sheet .filebtn { font: inherit; font-size: .9rem; padding: .4rem .9rem; color: var(--accent); background: none;
  border: 1px solid var(--line); border-radius: calc(8px * var(--rs)); cursor: pointer; }
dialog.sheet .filebtn { display: inline-block; margin-top: .6rem; }
dialog.sheet input.sw { width: 2.2rem; height: 1.25rem; accent-color: var(--accent); flex: none; }
dialog.sheet details.src-row summary { list-style: none; cursor: pointer; }
dialog.sheet details.src-row summary::-webkit-details-marker { display: none; }
dialog.sheet .invite { padding: .6rem 1rem; text-align: center; }
dialog.sheet .invite .qr { width: 11rem; max-width: 70%; height: auto; border-radius: 6px; }
dialog.sheet .invite .code { font: 600 1.9rem/1.3 ui-monospace, monospace; letter-spacing: .15em; }
.qr-bg { fill: #fff; }
.qr-fg { fill: #000; }
dialog.sheet .rowpad { padding-left: 1rem; padding-right: 1rem; }
dialog.sheet .rowline small.newdev { color: var(--accent); }
