/* home.netunicorn.org — Clean-Room Stylesheet (OLED Graphit + Eisblau, 2026-10-23).
   Einheitliches Token-System über alle netunicorn-Webprojekte:
   Reines Schwarz (#000000), Kacheln (#070708), Akzent Eisblau (#4f8fcc / #64b5ff),
   keine Blur-Filter, klare 1px-Konturen, System-Typografie + Tabular-Nums. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #000000;
  --surface: #070708;
  --surface-hi: #0d0e11;
  --well: #000000;
  --well-ring: inset 0 0 0 1px rgba(255, 255, 255, .05);
  --pill: rgba(255, 255, 255, .04);
  --border: rgba(255, 255, 255, .065);
  --border-soft: rgba(255, 255, 255, .045);
  --border-hi: rgba(255, 255, 255, .13);

  --text: #c4c8ce;
  --text-mid: #c9cdd3;
  --text-hi: #d2d5da;
  --text-dim: #8a9099;
  --text-faint: #7b828c;
  --muted-bar: #3d4047;

  --accent: #4f8fcc;
  --accent-hi: #64b5ff;
  --accent-soft: #7ab3e8;
  --primary: #15273a;
  --primary-border: rgba(79, 143, 204, .42);

  --green: #4cd97b;
  --yellow: #ffd866;
  --orange: #ffa94d;
  --red: #ff6961;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-disp: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;

  --radius: 20px;
  --radius-s: 12px;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  interpolate-size: allow-keywords;
}

html {
  background: var(--bg);
  scrollbar-color: var(--muted-bar) transparent;
  scrollbar-gutter: stable;
}

/* Opt-in Fuchs-Hintergrund (Body bewusst transparent, damit z-index -2/-1 sichtbar bleibt) */
#bg {
  position: fixed; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s ease;
  &.on { opacity: 1; }
}
#bg-dim { position: fixed; inset: 0; z-index: -1; background: rgba(0, 0, 0, .5); }

body {
  min-height: 100dvh;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.006em;
  color: var(--text);
  overflow-x: hidden;
  padding-top: max(clamp(10px, 2vw, 22px), env(safe-area-inset-top));
  padding-bottom: max(clamp(10px, 2vw, 22px), env(safe-area-inset-bottom));
  padding-left: max(clamp(10px, 2vw, 22px), env(safe-area-inset-left));
  padding-right: max(clamp(10px, 2vw, 22px), env(safe-area-inset-right));
  -webkit-font-smoothing: antialiased;
}

kbd, code, pre { font-family: var(--font-mono); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.wrap { max-width: 1400px; margin: 0 auto; display: grid; gap: 12px; }

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── Kopf: Uhr+Blob (linksbündig) · Dienste (Icons) · Wetter (rechts) ── */
.head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.clockbox { position: relative; padding: 2px 0; display: flex; align-items: center; }
.clocktext { display: flex; flex-direction: column; justify-content: center; min-width: 0; white-space: nowrap; }
#clock {
  font-family: var(--font-disp);
  font-size: clamp(36px, 4.8vw, 46px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text-hi);
  font-variant-numeric: tabular-nums;
}
#date { margin-top: 5px; font-size: 13px; color: var(--text-dim); }

#kugel {
  position: absolute;
  left: 132px;
  top: -18px;
  flex: none;
  cursor: grab;
  display: block;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  user-select: none;
  &:active { cursor: grabbing; }
  &:focus-visible { box-shadow: var(--focus); }
}

.f1chip {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 7px; width: fit-content;
  padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 500;
  color: var(--text-mid); text-decoration: none;
  background: var(--pill); border: 1px solid var(--border);
  i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
  &:hover, &:focus-visible { background: rgba(255, 255, 255, .10); color: var(--text-hi); }
  &.live i { box-shadow: 0 0 0 0 rgba(255, 105, 97, .6); animation: f1puls 1.6s ease-out infinite; }
}
@keyframes f1puls { to { box-shadow: 0 0 0 7px rgba(255, 105, 97, 0); } }

/* Dienste-Leiste: runde Icons ohne Text und ohne Status-Dots */
.services {
  justify-self: center;
  display: flex; flex-wrap: nowrap; gap: 4px; align-items: center; justify-content: center;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 100%;
}
.svc {
  position: relative; flex: none;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: none; background: transparent;
  text-decoration: none; color: var(--text-dim);
  transition: color .15s ease, background .15s ease, transform .15s ease;
  &:hover, &:focus-visible { color: var(--text-hi); background: rgba(255, 255, 255, .09); }
  &:active { transform: scale(.94); }
  .ico { display: flex; svg { width: 19px; height: 19px; } }
  &::after {
    content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% -3px;
    white-space: nowrap; pointer-events: none; opacity: 0; z-index: 30;
    padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--text-hi);
    background: #09090a; border: 1px solid rgba(255, 255, 255, .08);
    transition: opacity .15s ease, translate .15s ease;
  }
  &:hover::after, &:focus-visible::after { opacity: 1; translate: -50% 0; }
}

/* Wetter */
.weatherbox { position: relative; padding: 8px 12px; display: flex; align-items: center; gap: 12px; flex: none; }
#w-emoji { flex: none; display: flex; svg { width: 40px; height: 40px; } }
#w-temp {
  font-family: var(--font-disp); font-size: 40px; font-weight: 600; line-height: 1;
  letter-spacing: -0.035em; color: var(--text-hi); font-variant-numeric: tabular-nums; flex: none;
  background: none; border: none; padding: 0 2px; cursor: pointer; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .12s ease;
  &:hover:not(:disabled) { color: var(--accent); }
  &:disabled { cursor: default; }
}
#w-spark { width: 52px; height: 20px; flex: none; display: block; overflow: visible; opacity: .9; }
.w-meta { font-size: 12px; color: var(--text-dim); line-height: 1.45; white-space: nowrap; flex: none; }
.w-locrow { display: flex; align-items: center; gap: 5px; }
#w-place {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em;
  color: #9aa4b2; font-family: var(--font-sans); white-space: nowrap;
  background: none; border: none; padding: 0; cursor: pointer; border-radius: 4px; text-align: left;
  svg { width: 11px; height: 11px; flex: none; }
  &:hover, &:focus-visible { color: var(--accent); }
}
@media (prefers-reduced-motion: no-preference) {
  #w-place svg { transition: transform .3s ease; }
  #w-place:hover svg, #w-place:focus-visible svg { transform: rotate(45deg); }
}
#w-reset {
  flex: none; border: none; background: var(--pill); cursor: pointer;
  color: var(--text-faint); font-size: 13px; padding: 1px 6px; line-height: 1; border-radius: 999px;
  &:hover, &:focus-visible { color: var(--red); background: rgba(255, 105, 97, .12); }
}
#w-search {
  display: flex; align-items: center; margin-top: 4px;
  input {
    flex: 1; min-width: 0; width: 150px;
    background: var(--well); border: 1px solid var(--border-soft); box-shadow: var(--well-ring);
    border-radius: 8px; padding: 4px 8px; font-size: 12px; color: var(--text-hi); outline: none;
    &:focus { border-color: var(--accent); }
    &::placeholder { color: var(--text-faint); }
    &.w-nope::placeholder { color: var(--yellow); }
  }
}
#w-sun {
  display: flex; align-items: center; gap: 5px; margin-top: 3px;
  font-size: 11.5px; letter-spacing: 0.05em;
  color: var(--text-faint); font-variant-numeric: tabular-nums;
  svg { width: 11px; height: 11px; flex: none; }
  .di { display: inline-flex; align-items: center; gap: 3px; }
  .sep { color: var(--muted-bar); }
}
.w-days { display: flex; gap: 2px; margin-left: 4px; padding-left: 14px; border-left: 1px solid var(--border); }
.w-day {
  text-align: center; min-width: 46px; padding: 3px 2px; border-radius: 6px;
  font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em;
  &:hover { background: var(--pill); }
  .d-emoji { margin: 3px 0; line-height: 0; svg { width: 24px; height: 24px; } }
  .d-t { color: var(--text); font-variant-numeric: tabular-nums; }
  .d-n { color: var(--text-faint); font-size: 10px; font-variant-numeric: tabular-nums; }
}

.hourly {
  inset: auto; margin: 0; position: fixed; top: 84px; left: 50%; translate: -50% 0;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-hi); border-radius: 22px;
  padding: 10px 12px;
  display: none; grid-auto-flow: column; gap: 2px; max-width: calc(100vw - 24px); overflow-x: auto;
  &:popover-open { display: grid; }
  &::backdrop { background: transparent; }
  .hr {
    display: grid; justify-items: center; gap: 2px; min-width: 44px; padding: 4px 2px;
    font-size: 11.5px; color: var(--text-faint); font-variant-numeric: tabular-nums;
    svg { width: 22px; height: 22px; }
    .ht { color: var(--text); }
    .hp { font-size: 9.5px; min-height: 12px; &.wet { color: var(--accent-hi); } }
  }
}

/* ── Zentrale Command-/Omnibar ─────────────────────────────────────── */
.cmdbar { display: block; }
.field {
  display: flex; align-items: center; padding: 4px 6px 4px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  > svg { flex: none; color: var(--text-faint); }
  &:has(input:focus) { border-color: rgba(100, 181, 255, .45); box-shadow: 0 0 0 1px rgba(79, 143, 204, .26); }
  input[type="search"] {
    flex: 1; min-width: 0; background: none; border: none; outline: none;
    padding: 9px 10px; font-size: 14.5px; font-family: inherit; color: var(--text-hi);
    &::placeholder { color: var(--text-faint); }
    &:focus-visible { box-shadow: none; }
    &::-webkit-search-cancel-button { appearance: none; }
  }
}
.searchform {
  display: flex; flex: 1; min-width: 0; align-items: center; gap: 6px;
  #websearchBtn {
    flex: none; cursor: pointer; border-radius: 999px;
    background: var(--primary); border: 1px solid var(--primary-border); color: var(--text-hi);
    font-family: var(--font-disp); font-size: 12.5px; font-weight: 600;
    letter-spacing: 0.02em; padding: 7px 15px;
    transition: border-color .14s ease, color .14s ease, background .14s ease;
    &:hover { background: #1a3149; border-color: rgba(100, 181, 255, .65); color: #fff; }
  }
}
#newToggle, #markReadBtn {
  flex: none; border: 1px solid rgba(255, 255, 255, .10); cursor: pointer;
  padding: 7px 13px; border-radius: 999px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text); background: var(--pill);
  transition: background .12s ease, border-color .12s ease, color .12s ease;
  b { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
  &:hover { background: var(--primary); border-color: var(--primary-border); color: var(--text-hi); }
  &[aria-pressed="true"] {
    background: var(--primary); border-color: var(--primary-border); color: var(--text-hi);
    b { color: var(--accent-soft); }
  }
}
#markReadBtn {
  color: var(--accent-soft); border-color: rgba(79, 143, 204, .28);
  &:hover { background: rgba(76, 217, 123, .12); border-color: rgba(76, 217, 123, .4); color: var(--green); }
}
.filter-chip {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--accent-hi); background: rgba(79, 143, 204, .16);
  border: 1px solid rgba(79, 143, 204, .38); border-radius: 999px;
  padding: 4px 10px; cursor: pointer; white-space: nowrap;
  transition: background .12s ease, color .12s ease;
  &:hover { background: rgba(255, 105, 97, .16); border-color: rgba(255, 105, 97, .4); color: #ff8a84; }
}
.cmd-hint {
  flex: none; font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--accent-soft); background: rgba(79, 143, 204, .14);
  border: 1px solid rgba(79, 143, 204, .32); border-radius: 999px;
  padding: 3px 9px; white-space: nowrap;
}
.kbd {
  flex: none; font-family: var(--font-mono); font-size: 10px; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; margin-right: 4px;
}
#clearFilter {
  flex: none; border: none; background: none; cursor: pointer;
  color: var(--text-faint); font-size: 17px; padding: 0 6px; line-height: 1;
  &:hover { color: var(--red); }
}

/* ── News: 3×2-Bento-Raster (6 Kategorien) ─────────────────────────── */
.bento-news { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: start; }
.cat {
  grid-column: span 2;
  min-width: 0; padding: 12px 14px 10px; display: flex; flex-direction: column;
  &[data-cat="presse"]   { --catc: #64b5ff; }
  &[data-cat="tech"]     { --catc: #8e9bb0; }
  &[data-cat="secai"]    { --catc: #7fd4e6; }
  &[data-cat="finanzen"] { --catc: #9aa4b2; }
  &[data-cat="f1"]       { --catc: #ff6961; }
  &[data-cat="emob"]     { --catc: #4cd97b; }
}

.cat-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  h2 {
    font-family: var(--font-sans); font-size: 13.5px; font-weight: 650;
    letter-spacing: -0.01em; white-space: nowrap; color: var(--catc, var(--text-hi));
  }
  &::after {
    content: ""; flex: 1; height: 1px;
    background: linear-gradient(90deg, var(--catc, var(--accent)), transparent);
    opacity: .5; order: 1;
  }
  .cat-more {
    all: unset; cursor: pointer; color: inherit; font: inherit; letter-spacing: inherit;
    border-radius: 4px; padding: 0 2px;
    &:hover, &:focus-visible { color: #fff; }
    &:focus-visible { box-shadow: var(--focus); }
  }
}

.cat-more-pill {
  order: 2; flex: none;
  font-size: 11px; font-weight: 500;
  color: var(--text-dim); font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--border);
  border-radius: 999px; padding: 2px 8px; cursor: pointer; text-decoration: none;
  transition: color .14s ease, background .14s ease, border-color .14s ease;
  &:hover, &:focus-visible {
    color: var(--text-hi);
    background: rgba(79, 143, 204, .14);
    border-color: rgba(79, 143, 204, .35);
  }
  &:empty { display: none; }
}

.fold {
  order: 3; flex: none; width: 24px; height: 24px; border-radius: 6px;
  border: 1px solid transparent; background: none; cursor: pointer; color: var(--text-faint);
  display: grid; place-items: center;
  &::before {
    content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px); transition: transform .18s ease;
  }
  &:hover { color: var(--text-hi); background: var(--pill); border-color: var(--border); }
  &[aria-expanded="false"]::before { transform: rotate(-45deg) translate(-1px, 1px); }
}
.cat.folded {
  .list { height: 0; overflow: hidden; }
  .cat-head { margin-bottom: 0; }
}

.list {
  display: flex; flex-direction: column;
  height: auto; max-height: 380px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--muted-bar) transparent;
  margin: 0 -6px; scroll-padding: 8px;
  transition: height .25s ease;
  &::-webkit-scrollbar { width: 6px; }
  &::-webkit-scrollbar-thumb { background: var(--muted-bar); border-radius: 3px; }
}

.item {
  display: grid; grid-template-columns: 3px 1fr auto; align-items: baseline; gap: 10px;
  padding: 7px 8px 7px 4px; border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: background .1s ease;
  & + .item { border-top: 1px solid rgba(255, 255, 255, .05); }
  &:hover, &.cur { background: rgba(255, 255, 255, .04); }
  &.cur, &:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); border-radius: 10px; }
  .bar { align-self: stretch; border-radius: 2px; background: var(--muted-bar); }
  .t {
    font-size: 13.5px; line-height: 1.45; color: var(--text-mid);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    text-wrap: pretty;
  }
  &:hover .t { color: var(--text-hi); }
  .w { font-size: 11px; color: var(--text-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .src {
    text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer;
    border-radius: 4px; padding: 1px 4px;
    transition: color .12s ease, background .12s ease;
    &:hover { color: var(--accent-hi); background: rgba(79, 143, 204, .14); }
    &.active { color: var(--accent-hi); background: rgba(79, 143, 204, .20); padding: 1px 5px; font-weight: 600; }
  }
  .also {
    font-size: 11.5px; color: var(--text-dim); background: rgba(255, 255, 255, .05);
    padding: 0 4px; border-radius: 4px; margin-left: 3px;
  }
  time { font: inherit; }
  time.recent { color: var(--accent-soft); font-weight: 500; }
  time.old { color: var(--text-faint); }
  &.fresh .t { color: var(--text-hi); }
  &.fresh .w { color: var(--accent); }
  &.fresh .bar { background: var(--accent-hi); box-shadow: 0 0 0 1px var(--accent) inset; }
  &:visited .t { color: var(--text-dim); }
  &:visited .w { color: var(--text-faint); }
}

.empty { color: var(--text-faint); font-size: 11.5px; padding: 12px 6px; }

/* ── Fußzeile ──────────────────────────────────────────────────────── */
footer {
  text-align: center; font-size: 11.5px; letter-spacing: 0.05em;
  color: var(--text-faint); padding: 4px 0 2px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 0;
  .dot { margin: 0 7px; color: var(--muted-bar); &:has(+ b:empty) { display: none; } }
  b { color: var(--text-faint); font-weight: 400; }
}
#updated, #wallcred, #helpBtn {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--text-faint); letter-spacing: inherit;
  text-decoration: underline dotted; text-underline-offset: 3px;
  &:hover, &:focus-visible { color: var(--accent); }
}
#updated {
  &.stale { color: var(--yellow); }
  &.busy { opacity: .5; cursor: progress; }
}
#helpBtn {
  text-decoration: none; background: var(--pill);
  border: 1px solid rgba(255, 255, 255, .10); border-radius: 4px; padding: 0 6px;
}

/* ── Dialoge (#help & #more) ───────────────────────────────────────── */
dialog {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-hi); border-radius: 22px;
  box-shadow: none;
  &::backdrop { background: rgba(0, 0, 0, .65); }
}

dialog#help {
  padding: 20px 22px; min-width: min(400px, 92vw);
  h2 { font-size: 13.5px; font-weight: 650; letter-spacing: -0.01em; color: var(--accent); margin-bottom: 12px; }
  dl { display: grid; gap: 7px; font-size: 13px; }
  dl > div { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
  dt { font-family: var(--font-mono); font-size: 11px; color: var(--text-hi); white-space: nowrap; }
  dd { color: var(--text-dim); text-align: right; }
  kbd {
    display: inline-block; padding: 1px 6px; border-radius: 4px;
    background: var(--well); border: 1px solid var(--border-soft); box-shadow: var(--well-ring);
  }
  form { margin-top: 14px; text-align: right; }
  button {
    border: 1px solid rgba(255, 255, 255, .10); background: var(--pill); color: var(--text);
    cursor: pointer; padding: 5px 12px; border-radius: 999px;
    font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em;
    &:hover { border-color: var(--accent); color: var(--text-hi); }
  }
}
.help-tip {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-soft);
  font-size: 12px; color: var(--text-faint); line-height: 1.45; max-width: 44ch;
}
.help-name {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-soft);
  font-size: 11px; color: var(--text-dim); letter-spacing: .04em;
  input {
    width: 150px; background: var(--well); color: var(--text);
    border: 1px solid var(--border-soft); box-shadow: var(--well-ring);
    border-radius: 999px; padding: 5px 10px; font: inherit;
    &:focus-visible { outline: none; border-color: var(--accent); }
  }
}

dialog#more {
  width: min(820px, calc(100vw - 24px)); max-height: min(86vh, 900px);
  padding: 0; --catc: var(--accent);
  position: fixed; inset: 0; margin: auto;
  &[open] { display: flex; flex-direction: column; }
  &[data-cat="presse"]   { --catc: #64b5ff; }
  &[data-cat="tech"]     { --catc: #8e9bb0; }
  &[data-cat="secai"]    { --catc: #7fd4e6; }
  &[data-cat="finanzen"] { --catc: #9aa4b2; }
  &[data-cat="emob"]     { --catc: #4cd97b; }
}
.more-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 16px 10px; border-bottom: 1px solid var(--border-soft);
  h2 { font-size: 14px; font-weight: 650; letter-spacing: -0.01em; color: var(--catc); }
  form { margin-left: 4px; }
}
.more-meta { font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; margin-right: auto; }
.more-search {
  width: min(230px, 52vw);
  background: var(--well); color: var(--text-hi);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-family: inherit; outline: none;
  &::placeholder { color: var(--text-faint); }
  &:focus { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(79, 143, 204, .28); }
  &::-webkit-search-cancel-button { appearance: none; }
}
.more-close {
  border: 1px solid rgba(255, 255, 255, .10); background: var(--pill); color: var(--text-dim); border-radius: 50%;
  width: 28px; height: 28px; cursor: pointer; font-size: 16px; line-height: 1;
  &:hover { color: var(--text-hi); background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .18); }
}
.more-srcs {
  display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 16px 6px;
  button {
    font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-faint); background: var(--pill); border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 999px; padding: 3px 9px; cursor: pointer;
    b { color: var(--text-dim); font-weight: 500; }
    &:hover { color: var(--text-hi); background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .18); }
    &[aria-pressed="true"] {
      background: var(--primary); border-color: var(--primary-border); color: var(--text-hi);
      b { color: var(--accent-soft); }
    }
  }
}
.more-list { flex: 1; min-height: 120px; max-height: none; margin: 0; padding: 4px 10px 8px; overflow-y: auto; transition: none; }
.more-foot { padding: 8px 16px 10px; border-top: 1px solid var(--border-soft); font-size: 10px; color: var(--text-faint); letter-spacing: .05em; }

/* ── Blob-Freilauf-Overlay ─────────────────────────────────────────── */
.nublob-stage {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 40; touch-action: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  &.hit { pointer-events: auto; cursor: grab; }
  &.hold { cursor: grabbing; }
}

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1150px) {
  .bento-news { grid-template-columns: repeat(2, 1fr); }
  .cat { grid-column: span 1; }
}
@media (max-width: 820px) {
  .head { grid-template-columns: 1fr; }
  .bento-news { grid-template-columns: 1fr; }
  .cat { grid-column: span 1; }
  .weatherbox { flex-wrap: wrap; }
  .w-days { margin-left: 0; padding-left: 0; border-left: none; }
  .hourly { top: auto; bottom: 12px; }
  .field { align-items: flex-start; }
  .field > svg { margin-top: 14px; }
  .searchform { flex-wrap: wrap; }
  .searchform #websearch { flex: 1 1 100%; }
  #newToggle, #markReadBtn, .searchform #websearchBtn { min-height: 44px; }
  .searchform #websearchBtn { margin-left: auto; }
  #clearFilter { min-width: 40px; min-height: 44px; }
  .services { flex-wrap: wrap; gap: 2px; }
  .svc, .fold, .more-close { width: 44px; height: 44px; }
  .list { max-height: none; overflow-y: visible; }
  .more-list { overflow-y: auto; }
  .kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #bg, .fold::before, .svc, .item, .list, .cat-more-pill { transition: none; }
  .f1chip.live i { animation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@media (prefers-contrast: more) {
  :root { --border: #5a5e66; --border-soft: #3d4047; --text-faint: #a8aeb6; --surface: #1c1d21; }
  .tile, .field, .services, .hourly, dialog { background: #1c1d21; border-color: #5a5e66; }
}
