/* den-ui: the shared update pill. Over the top bar and see-through: no
   full-width strip; the pill's own fill is the surface at 20% with a blur, so
   the bar shows through it, and the bar beside it stays clickable.
   Tokens it reads: --surface --text --muted --border-strong --accent
   --accent-text, and --upd-shadow (tokens.css, per mode).
   Two knobs, set on .den-upd:
   --upd-pad-y : the pill's vertical padding (8px).
   --upd-top   : where the pill sits; the default centres a 50px pill on a
                 48px bar (top -1px). */
.den-upd { --upd-pad-y: 8px; --upd-top: calc(env(safe-area-inset-top, 0px) + (48px - 50px) / 2);
  position: fixed; z-index: 30; top: var(--upd-top); left: 16px; right: 16px; display: flex; justify-content: center; pointer-events: none; background: none; }
.den-upd[hidden] { display: none; }
.den-upd .upd-pill { pointer-events: auto; display: flex; align-items: center; gap: 16px; width: fit-content; max-width: 100%; box-sizing: border-box;
  padding: var(--upd-pad-y) 12px var(--upd-pad-y) 24px;
  border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text); font-size: 14px; line-height: 1.5;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 20%, transparent);
  background-image: linear-gradient(color-mix(in srgb, var(--text) 7%, transparent), color-mix(in srgb, var(--text) 3%, transparent));
  -webkit-backdrop-filter: blur(3px) saturate(1.4); backdrop-filter: blur(3px) saturate(1.4);
  box-shadow: var(--upd-shadow); }
.den-upd .upd-icon { flex: none; display: flex; color: var(--accent-text); }
.den-upd .upd-msg { flex: 1 1 auto; min-width: 0; text-wrap: balance; }
.den-upd .upd-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.den-upd .upd-go { flex: none; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px; border: 0; background: none; color: var(--accent-text); font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; cursor: pointer; }
.den-upd .upd-dismiss { flex: none; display: flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--muted); font-family: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.den-upd .upd-dismiss.is-text { width: auto; padding: 0 8px; font-weight: 500; font-size: 14px; line-height: 1.2; white-space: nowrap; }
.den-upd .upd-dismiss:hover { background: color-mix(in srgb, var(--border-strong) 50%, transparent); color: var(--text); }
.den-upd .upd-go:focus-visible, .den-upd .upd-dismiss:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.den-upd .upd-pill.card { flex-wrap: wrap; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 20px; }
.den-upd .upd-pill.card .upd-msg { flex: 1 0 100%; line-height: 1.35; }
.den-upd .upd-pill.card .upd-acts { margin-left: auto; }
.den-upd .upd-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
