/* Wächter live im Browser (Stufe 1, 16.11.2026; WATCH_LIVE=on; public/watch-live.js, docs/WATCH.md „Live im Browser“): the card of a
   new Meldung on every open page of TRACER. Like the page's boxes (graphite head, the title in lime capitals, 1.5 px rule; „Meine
   Coins“, public/waechter.css), colours and fonts only from public/style.css, which app, account and website all load; logical
   properties only (RTL); 44 px targets on touch; no inline styles (CSP).
   Where: bottom right from 641 px, 340 px wide like the report's side column (style.css .row), so on wide screens the report's text
   stays free; on a phone across the bottom. Always above the cookie bar (--consent-h and html.consent-open, public/clarity.js), never
   on it. Light in every state of the page and the browser: the pages keep "only light" (style.css), the card has its own colours. */
.wl-stack{position:fixed;inset-inline-end:max(16px,env(safe-area-inset-right,0px));bottom:max(16px,env(safe-area-inset-bottom,0px));z-index:50;
  display:flex;flex-direction:column;gap:10px;inline-size:min(340px,calc(100vw - 32px));pointer-events:none}
html.consent-open .wl-stack{bottom:calc(max(16px,env(safe-area-inset-bottom,0px)) + var(--consent-h,0px) + 10px)}
.wl-card{pointer-events:auto;border:1.5px solid var(--rule);border-radius:14px;background:var(--surface);color:var(--fg);overflow:hidden;
  box-shadow:0 18px 44px oklch(0.2 0.02 140 / .28);font:15px/1.5 var(--sans);animation:wl-in .22s var(--ease)}
.wl-head{display:flex;align-items:center;gap:8px;min-block-size:38px;padding-block:3px;padding-inline:14px 4px;background:var(--graphite)}
.wl-title{display:inline-flex;align-items:center;gap:7px;margin:0;font:700 12px/1.2 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--lime)}
.wl-title .ph{font-size:15px;letter-spacing:0}
.wl-time{margin-inline-start:auto;font:500 12.5px/1.2 var(--sans);color:var(--on-dark-muted);white-space:nowrap}
.wl-close{display:inline-grid;place-items:center;flex:none;inline-size:32px;block-size:32px;margin-inline-start:auto;padding:0;border:0;border-radius:8px;
  background:none;color:var(--on-dark);font-size:16px;cursor:pointer}
.wl-time+.wl-close{margin-inline-start:2px}
.wl-close:hover{background:var(--graphite-2)}
.wl-close:focus-visible{outline:2px solid var(--lime);outline-offset:-2px}
.wl-body{display:grid;gap:3px;padding-block:11px 2px;padding-inline:14px}
.wl-coin{margin:0;font:700 15px/1.35 var(--sans);overflow-wrap:anywhere;unicode-bidi:isolate}
.wl-text{margin:0;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.wl-card.is-many .wl-text{font-weight:600}
/* The source under a piece of news (Stufe 2): „Quelle“ quiet, the host as the link in the card's link colour. */
.wl-source{display:flex;flex-wrap:wrap;align-items:center;column-gap:6px;margin:0;font-size:13px;line-height:1.4;color:var(--muted)}
.wl-source a{display:inline-flex;align-items:center;gap:4px;min-inline-size:0;min-block-size:28px;font-weight:600;color:var(--accent);
  text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.wl-source a .ph{font-size:13px}
.wl-source a:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
/* The account's test („Einblendung testen“, 16.11.2026): the line when the browser keeps the sound back. */
.wl-note{margin:2px 0 0;font-size:13px;line-height:1.4;color:var(--muted)}
.wl-actions{display:flex;flex-wrap:wrap;align-items:center;gap:2px 12px;padding-block:4px 8px;padding-inline:14px 8px}
.wl-open{display:inline-flex;align-items:center;gap:6px;min-block-size:36px;font-weight:600;font-size:14px;color:var(--accent)}
.wl-open:hover{text-decoration:underline;text-underline-offset:3px}
.wl-open:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
[dir="rtl"] .wl-open .ph-arrow-right{transform:scaleX(-1)}
.wl-sound{display:inline-flex;align-items:center;gap:6px;min-block-size:36px;margin-inline-start:auto;padding-block:0;padding-inline:8px;border:0;border-radius:8px;
  background:none;color:var(--muted);font:500 13px/1.2 var(--sans);cursor:pointer}
.wl-sound:hover{background:var(--surface-2);color:var(--fg)}
.wl-sound:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
@media(pointer:coarse){.wl-close{inline-size:44px;block-size:44px}.wl-open,.wl-sound,.wl-source a{min-block-size:44px}}
/* Phones: across the bottom edge, 8 px from both sides, the newest card nearest the thumb. */
@media(max-width:640px){
  .wl-stack{inset-inline:max(8px,env(safe-area-inset-left,0px)) max(8px,env(safe-area-inset-right,0px));inline-size:auto;bottom:max(8px,env(safe-area-inset-bottom,0px));gap:8px}
  html.consent-open .wl-stack{bottom:calc(var(--consent-h,0px) + 8px)}
}
@keyframes wl-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes wl-out{to{opacity:0;transform:translateY(6px)}}
.wl-card.is-leaving{animation:wl-out .16s var(--ease) forwards}
@media(prefers-reduced-motion:reduce){.wl-card,.wl-card.is-leaving{animation:none}}
html.reduce-motion .wl-card,html.reduce-motion .wl-card.is-leaving{animation:none}
@media print{.wl-stack{display:none!important}}
