/* Web shell additions only. Every card / chip / panel style is the extension's own (base, rows, incoming, options .css). */
body.web-app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; background: var(--bg); }
.preview-strip { flex: none; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; background: #F2A600; color: #1A1200; }
/* the extension's Incoming window, as a centred column on wide screens, full width on phones */
body.web-app .inc-wrap { flex: 1; min-height: 0; height: auto; width: 100%; max-width: 980px; margin: 0 auto; background: var(--panel-solid); }
@media (min-width: 1000px) { body.web-app .inc-wrap { border-left: 1px solid color-mix(in srgb, var(--line) 22%, transparent); border-right: 1px solid color-mix(in srgb, var(--line) 22%, transparent); } }
/* ONE header: the extension's title bar, with page nav + account added (no second app bar) */
.web-head { display: flex; align-items: center; }
.web-head .brand { font-weight: 800; }
.web-nav { display: flex; gap: 2px; margin-left: 8px; flex: none; }
.web-nav a { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 8px; font-size: calc(12px * var(--fs)); font-weight: 650; color: var(--text); text-decoration: none; border: 1px solid transparent; }
.web-nav a:hover { background: color-mix(in srgb, var(--line) 16%, transparent); }
.web-nav a[aria-current="page"] { border: 2px solid var(--text); background: color-mix(in srgb, var(--teal) 16%, transparent); text-decoration: underline; text-underline-offset: 3px; }
.web-nav a:focus-visible, .acct-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.web-account { position: relative; flex: none; }
.acct-btn { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: calc(11px * var(--fs)); font-weight: 800; cursor: pointer; }
.acct-menu { position: absolute; right: 0; top: 34px; z-index: 50; min-width: 250px; padding: 8px; border-radius: 12px; background: var(--panel-solid); border: 1px solid color-mix(in srgb, var(--line) 45%, transparent); box-shadow: 0 16px 40px var(--shadow); display: flex; flex-direction: column; gap: 2px; white-space: normal; }
.acct-menu[hidden] { display: none; }
.acct-who { display: flex; flex-direction: column; padding: 4px 8px 6px; font-size: calc(12.5px * var(--fs)); }
.acct-who span { color: var(--muted); font-size: calc(11.5px * var(--fs)); }
.acct-note { padding: 0 8px 6px; font-size: calc(11px * var(--fs)); color: var(--amber-text); border-bottom: 1px solid color-mix(in srgb, var(--line) 20%, transparent); margin-bottom: 4px; }
.acct-menu a, .acct-menu button { display: block; text-align: left; padding: 7px 8px; border-radius: 8px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: calc(12.5px * var(--fs)); font-weight: 600; text-decoration: none; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: color-mix(in srgb, var(--line) 16%, transparent); }
.sound-line { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 10px; font-size: calc(11.5px * var(--fs)); font-weight: 650; color: var(--amber-text); background: color-mix(in srgb, var(--amber) 10%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); }
.sound-line[hidden] { display: none; }
.foot .credit b { color: var(--text); }
/* phones: the same header wraps the page nav onto its own row (still one header) */
@media (max-width: 640px) {
  .web-head { flex-wrap: wrap; row-gap: 4px; }
  .web-nav { order: 10; flex-basis: 100%; margin-left: 0; }
  .web-nav a { flex: 1; justify-content: center; height: 30px; }
  .preview-strip { font-size: 10px; letter-spacing: 0.04em; }
}

/* ---- Settings / Admin pages (the extension's options.css look) ---- */
body.web-page { height: auto; overflow: auto; }
html:has(body.web-page) { height: auto; overflow: auto; }
.page-top { position: sticky; top: 0; z-index: 20; background: var(--panel-solid); border-bottom: 1px solid color-mix(in srgb, var(--line) 22%, transparent); }
.page-top .inc-head { max-width: 980px; margin: 0 auto; display: flex; align-items: center; }
.page-head h1 { font-size: calc(20px * var(--fs)); }
.reserved { border-style: dashed !important; }
.reserved .src-pill { border-style: dashed; }
.badge-reserved { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; border: 1.5px dashed var(--amber); color: var(--amber-text); font-size: calc(11px * var(--fs)); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.src-opt.is-reserved .chk { color: var(--muted); cursor: not-allowed; }
.placeholder-table { width: 100%; border-collapse: collapse; font-size: calc(13px * var(--fs)); }
.placeholder-table th, .placeholder-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid color-mix(in srgb, var(--line) 18%, transparent); }
.placeholder-table th { font-size: calc(11px * var(--fs)); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; }
/* login */
body.web-auth { min-height: 100vh; display: flex; flex-direction: column; overflow: auto; }
html:has(body.web-auth) { height: auto; overflow: auto; }
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: min(420px, 100%); background: var(--panel); border: 1px solid color-mix(in srgb, var(--line) 40%, transparent); border-radius: 18px; padding: 22px; box-shadow: 0 16px 50px var(--shadow); }
.auth-card .head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.auth-card .auth-logo { width: 72px; height: 72px; border-radius: 16px; flex: none; border: 2px solid color-mix(in srgb, var(--line) 55%, transparent); box-shadow: 0 2px 8px var(--shadow); }
.auth-card .auth-title, .auth-card h1.auth-title { font-size: calc(20px * var(--fs)); font-weight: 800; margin: 0 0 4px; letter-spacing: 0.01em; line-height: 1.2; }
.auth-card h1 { font-size: calc(18px * var(--fs)); margin: 0 0 2px; }
.auth-card .sub, .auth-card .auth-sign-label { margin: 0; font-size: calc(13px * var(--fs)); font-weight: 650; color: var(--muted); }
.auth-card .auth-sign-label::before { content: ""; } /* label is text, not color-only */
.auth-card .field { margin: 10px 0; }
.auth-card .input { width: 100%; }
.auth-card form { display: flex; flex-direction: column; gap: 2px; }
.auth-card .btn { width: 100%; min-height: 40px; margin-top: 8px; display: block; }
.auth-card .links { margin-top: 12px; display: flex; justify-content: space-between; font-size: calc(12.5px * var(--fs)); }
.auth-card .links a { color: var(--teal); font-weight: 650; }
.auth-note { margin-top: 14px; padding: 8px 10px; border-radius: 10px; border: 1.5px dashed var(--amber); font-size: calc(12px * var(--fs)); color: var(--text); line-height: 1.45; }
[hidden] { display: none !important; }
.web-head .spacer { flex: 1; }
.page-top .inc-head { max-width: 760px; padding: 6px 16px; }
@media (max-width: 640px) { .preview-strip .long { display: none; } }
.cad-line .cad-t { white-space: nowrap; }
.web-head { padding-right: 10px; }
.item .cad-line { grid-template-columns: max-content 1fr; column-gap: 10px; } /* the extension fixed 58px; Large text overflowed it */

/* ---- Skinny Incoming (web 0.5.1-web.2): the extension's docked Incoming width, on every screen ---- */
:root { --dock-w: 420px; }
body.web-app .inc-wrap { max-width: var(--dock-w); }
@media (min-width: 640px) { body.web-app .inc-wrap { border-left: 1px solid color-mix(in srgb, var(--line) 30%, transparent); border-right: 1px solid color-mix(in srgb, var(--line) 30%, transparent); box-shadow: 0 0 40px var(--shadow); } }
/* at dock width the page nav always gets its own row (same as phones) */
body.web-app .web-head { flex-wrap: wrap; row-gap: 4px; }
body.web-app .web-nav { order: 10; flex-basis: 100%; margin-left: 0; }
body.web-app .web-nav a { flex: 1; justify-content: center; height: 28px; }
body.web-app .preview-strip .long { display: none; }
/* pop-out button (desktop only; hidden on touch devices and inside the popup) */
.popout-btn { display: inline-grid; place-items: center; }
.popped-line { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; font-size: calc(11.5px * var(--fs)); font-weight: 700; color: var(--text); background: color-mix(in srgb, var(--teal) 14%, transparent); border-bottom: 2px solid var(--teal); }
html.is-popped body.web-app #list, html.is-popped body.web-app .foot { opacity: 0.45; }
/* inside the popup: the window IS the column */
html.is-popout body.web-app .inc-wrap { max-width: none; border: 0; box-shadow: none; }

/* ---- 0.5.2 compact: no page nav, no preview strip; Settings embedded in the Incoming sheet ---- */
.back-link { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; margin-right: 6px; border-radius: 8px; border: 1.5px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: calc(12.5px * var(--fs)); }
.back-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
body.web-app .web-head { flex-wrap: nowrap; }
html.embed .page-top { display: none; }
html.embed body.web-page { background: transparent; }
html.embed, html.embed body { height: auto; overflow: visible; }
body.web-app .web-head > * { flex-shrink: 0; }
body.web-app .web-head .brand { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.web-app .web-head .spacer { flex: 1 1 0; min-width: 0; }

/* ---- WEB: "This device" (Keep screen on, Notify me) in the settings sheet. On/off = text + filled/hollow dot +
   solid/dashed outline, never colour alone. ---- */
.sheet-device { padding: 0 12px 10px; }
.sheet-device > .sp-head { padding: 8px 0 2px; }
.dev-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 12%, transparent); }
.dev-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dev-label { font-size: calc(13px * var(--fs)); font-weight: 750; }
.dev-note { font-size: calc(11.5px * var(--fs)); color: var(--muted); line-height: 1.35; }
.dev-sw { flex: none; display: inline-flex; align-items: center; gap: 6px; min-width: 64px; height: 30px; padding: 0 12px; border-radius: 999px; font: inherit; font-size: calc(12.5px * var(--fs)); font-weight: 800; cursor: pointer; }
.dev-sw .sw-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; box-sizing: border-box; }
.dev-sw[aria-checked="true"] { background: var(--teal); color: var(--on-teal); border: 2px solid var(--text); }
.dev-sw[aria-checked="true"] .sw-dot { background: currentColor; }
.dev-sw[aria-checked="false"] { background: transparent; color: var(--text); border: 1.5px dashed var(--line); }
.dev-sw:focus-visible, .pchip:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.dev-sw[disabled] { opacity: 0.6; cursor: progress; }
.push-aor-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; padding: 6px 0 2px; }
.push-aor-wrap.is-disabled { opacity: 0.55; }
.dev-sub { font-size: calc(11.5px * var(--fs)); font-weight: 700; color: var(--muted); }
.push-aors { padding: 0; border-bottom: 0; }
.pchip { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 6px; border-radius: 6px; font: inherit; font-size: calc(11.5px * var(--fs)); font-weight: 700; cursor: pointer; user-select: none; white-space: nowrap; color: var(--text); }
.pchip.is-on { border: 2px solid var(--text); background: color-mix(in srgb, var(--teal) 16%, transparent); }
.pchip.is-off { border: 1.5px dashed var(--line); background: transparent; }
.pchip[disabled] { cursor: default; }
.dev-hint { margin: 8px 0 2px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid color-mix(in srgb, var(--amber) 70%, transparent); background: color-mix(in srgb, var(--amber) 9%, transparent); font-size: calc(12px * var(--fs)); line-height: 1.4; }
.dev-hint[hidden] { display: none; }
.dev-hint::before { content: "ⓘ "; font-weight: 800; }
.dev-hint ol { margin: 4px 0 4px 18px; padding: 0; }
.ios-share { display: inline-block; padding: 0 4px; border: 1px solid currentColor; border-radius: 4px; font-size: 0.9em; line-height: 1.2; }
.dev-actions { padding-top: 6px; }
.dev-actions:has(> [hidden]:only-child) { display: none; }

/* ---- WEB: swipe left on a row to close it (touch). The row follows the finger; behind it a "Close" label + ✕
   icon (text, not colour only); past the threshold the label reads "Release to close". ---- */
.list { position: relative; }
.list > .item.swiping { position: relative; z-index: 2; touch-action: pan-y; will-change: transform; }
.list > .item.swipe-snap { transition: transform 180ms ease-out; }
.list > .item.swipe-out { transition: transform 160ms ease-in, opacity 160ms ease-in; opacity: 0; }
.swipe-under { position: absolute; z-index: 1; left: 0; right: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding-right: 18px; border-radius: 10px; box-sizing: border-box;
  background: color-mix(in srgb, var(--line) 18%, var(--panel-solid)); color: var(--text); font-size: calc(13px * var(--fs)); font-weight: 800; pointer-events: none; border: 1.5px dashed var(--line); }
.swipe-under.armed { background: var(--danger-bg); color: var(--danger-text); border: 2px solid var(--text); }
.swipe-under svg { width: 18px; height: 18px; }
.undo-toast { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); padding: 6px 6px 6px 14px; border-radius: 999px;
  background: var(--panel-solid); color: var(--text); border: 1.5px solid var(--line); box-shadow: 0 8px 24px var(--shadow); font-size: calc(12.5px * var(--fs)); font-weight: 650; }
.undo-toast[hidden] { display: none; }
.undo-toast .ut-msg { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.undo-toast .btn { flex: none; min-height: 28px; padding: 0 12px; border-radius: 999px; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .list > .item.swipe-snap, .list > .item.swipe-out { transition: none; } }
@media (pointer: coarse) { #list > .item, #closedList > .item { touch-action: pan-y pinch-zoom; } } /* vertical scroll stays native; horizontal moves come to swipe.js */
.swipe-under.dir-right { justify-content: flex-start; padding: 0 0 0 18px; }
.swipe-under.dir-right.armed { background: var(--teal); color: var(--on-teal); }
.react-btn { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; margin-right: 6px; font-weight: 750; }
.react-btn svg { width: 14px; height: 14px; }
.push-aor-wrap .push-aors { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }

/* ---- 0.5.3 Test sound (below the AOR chips): result = icon + text, not colour only ---- */
.test-sound { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 2px 10px 10px; }
.test-sound-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: calc(13px * var(--fs)); }
.test-sound-btn.is-blocked { background: var(--amber); color: #1A1200; border: 2px solid var(--text); }
.ts-state { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12.5px * var(--fs)); font-weight: 700; padding: 4px 10px; border-radius: 8px; border: 1.5px solid var(--line); }
.ts-state[hidden] { display: none; }
.ts-state[data-state="ok"] { border: 2px solid var(--text); background: color-mix(in srgb, var(--teal) 16%, transparent); }
.ts-state[data-state="blocked"] { border: 2px dashed var(--amber); color: var(--amber-text); }
.ts-state .ts-ico { font-weight: 900; }

/* ---- Fluid layout (Nov 5 2026): the app fills the window at every width — browser tab at Chrome's narrowest (~500 px),
   installed PWA window, Pop out window, phone. Replaces the fixed 420 px "dock" column that left empty side gutters.
   Only on very wide screens (> 1280 px) is the column capped so rows stay readable. ---- */
:root { --dock-w: 100%; }
body.web-app .inc-wrap { width: 100%; max-width: none; margin: 0; border-left: 0; border-right: 0; box-shadow: none; }
@media (min-width: 1281px) {
  body.web-app .inc-wrap { max-width: 1280px; margin: 0 auto; border-left: 1px solid color-mix(in srgb, var(--line) 30%, transparent); border-right: 1px solid color-mix(in srgb, var(--line) 30%, transparent); }
}
html.is-popout body.web-app .inc-wrap { max-width: none; margin: 0; border: 0; }
.dev-actions { display: flex; gap: 6px; flex-wrap: wrap; }
/* Nov 5 2026: sound-off banner on the main screen — prominent, icon + bold text + big button (not colour only) */
.sound-line { padding: 4px 10px; gap: 6px 8px; font-size: calc(12px * var(--fs)); color: var(--text); background: color-mix(in srgb, var(--amber) 10%, var(--panel-solid)); border-bottom: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); } /* 1106e: one slim line, not a block */
.sound-line .sl-txt { flex: 1 1 180px; min-width: 0; }
.sound-line .sl-ico { font-size: 1.2em; }
.sound-enable-btn { flex: 0 0 auto; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: calc(14px * var(--fs)); background: var(--amber); color: #1A1200; border: 2px solid var(--text); }
.sound-enable-btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
/* update prompt (web/update.js): floating, icon + text */
.update-btn { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; font: inherit; font-weight: 800; font-size: calc(14px * var(--fs)); background: var(--teal); color: var(--on-teal, #04110F); border: 2px solid var(--text); box-shadow: 0 6px 24px var(--shadow); cursor: pointer; }
.update-btn .ub-ico { font-size: 1.25em; line-height: 1; }
.update-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.update-btn { bottom: calc(64px + env(safe-area-inset-bottom)); white-space: nowrap; max-width: calc(100vw - 24px); }
/* Nov 5 2026: Feedback bullhorn, bottom-left; unobtrusive; above the home indicator; page gets bottom room so it never
   covers the last Recent row. The update pill (centre) and Dismiss all (right) keep their spots. */
.fb-btn { position: fixed; z-index: 45; left: calc(10px + env(safe-area-inset-left)); bottom: calc(10px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 40px; padding: 0 12px 0 10px; border-radius: 999px; font: inherit; font-weight: 700; font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); background: var(--panel-solid, #0E1A24); border: 1.5px solid var(--line); box-shadow: 0 4px 14px var(--shadow, rgba(0,0,0,.3)); opacity: .82; cursor: pointer; }
.fb-btn:hover, .fb-btn:focus-visible, .fb-btn[aria-expanded="true"] { opacity: 1; color: var(--text); }
.fb-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
@media (max-width: 480px) { .fb-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .fb-btn { padding: 0; justify-content: center; } }
body.has-fb .inc-wrap, body.has-fb main { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
.fb-panel { position: fixed; z-index: 70; left: calc(10px + env(safe-area-inset-left)); bottom: calc(58px + env(safe-area-inset-bottom)); width: min(360px, calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right))); box-sizing: border-box; background: var(--panel-solid, #0E1A24); color: var(--text); border: 1.5px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px var(--shadow, rgba(0,0,0,.4)); padding: 12px; font-size: calc(13px * var(--fs, 1)); }
.fb-title { margin: 0 0 2px; font-size: calc(15px * var(--fs, 1)); }
.fb-hint { margin: 0 0 8px; color: var(--muted); font-size: calc(12px * var(--fs, 1)); }
.fb-lab { display: block; margin: 8px 0 3px; font-weight: 700; font-size: calc(12px * var(--fs, 1)); }
.fb-lab .req { color: var(--amber-text, var(--amber)); }
.fb-panel input[type="text"], .fb-panel textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 8px 10px; border-radius: 8px; border: 1.5px solid var(--line); background: transparent; color: var(--text); }
.fb-panel textarea { min-height: 110px; max-height: 40vh; resize: vertical; }
.fb-panel input[type="text"]:focus-visible, .fb-panel textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }
.fb-row { display: flex; gap: 8px; align-items: flex-start; justify-content: flex-end; margin-top: 6px; font-size: calc(12px * var(--fs, 1)); }
.fb-count { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; } .fb-count.fb-near { color: var(--text); font-weight: 800; }
.fb-msg { min-height: 1.2em; margin: 6px 0 0; font-weight: 700; } .fb-msg[data-kind="err"] { color: var(--err, #FF9B9B); } .fb-msg[data-kind="ok"] { color: var(--teal); }
.fb-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; } .fb-btns .btn { min-height: 40px; min-width: 84px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Admin feedback queue */
.fbq-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.fbq-tab { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.fbq-tab[aria-selected="true"] { color: var(--text); border-color: var(--text); background: color-mix(in srgb, var(--teal) 14%, transparent); text-decoration: underline; }
.fbq-tab:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.fbq-item { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.fbq-item[data-status="new"] { border-left-width: 5px; border-left-color: var(--teal); }
.fbq-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: calc(12px * var(--fs, 1)); color: var(--muted); }
.fbq-badge { font-weight: 800; padding: 1px 7px; border-radius: 999px; border: 1.5px solid currentColor; color: var(--text); }
.fbq-name { font-weight: 800; color: var(--text); }
.fbq-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }
.fbq-dev { font-size: calc(11.5px * var(--fs, 1)); color: var(--muted); overflow-wrap: anywhere; margin: 0 0 6px; }
.fbq-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fbq-empty { color: var(--muted); margin: 12px 0; }
.acct-badge { display: inline-block; min-width: 1.2em; padding: 0 5px; margin-left: 6px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--teal); color: var(--on-teal, #04110F); vertical-align: 1px; }

/* build-1105b: bullhorn sits in the slim footer row (not fixed bottom-left) */
body.has-fb-inline .fb-btn {
  position: static; left: auto; bottom: auto;
  min-height: 32px; min-width: 32px; padding: 0 8px;
  box-shadow: none; opacity: .9;
}
body.has-fb-inline .fb-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.has-fb-inline.has-fb .inc-wrap, body.has-fb-inline.has-fb main { padding-bottom: 0; }
body.has-fb-inline .fb-panel { left: calc(10px + env(safe-area-inset-left)); bottom: calc(68px + env(safe-area-inset-bottom)); }
body.has-fb-inline .update-btn { bottom: calc(72px + env(safe-area-inset-bottom)); }

/* Dual-login tabs + errors (colorblind-friendly: selected = underline + teal fill, not colour alone) */
.auth-tabs { display: flex; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; }
.auth-tab { flex: 1; min-height: 38px; padding: 0 10px; border-radius: 10px; border: 2px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-weight: 750; cursor: pointer; }
.auth-tab[aria-selected="true"] { color: var(--text); border-color: var(--text); background: color-mix(in srgb, var(--teal) 16%, transparent); text-decoration: underline; text-underline-offset: 3px; }
.auth-tab:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.auth-err { margin: 8px 0 0; color: var(--err, #FF8A8A); font-weight: 700; font-size: calc(13px * var(--fs, 1)); }
.auth-err::before { content: "⚠ "; }
.auth-hint { margin: 10px 0 0; font-size: calc(12px * var(--fs, 1)); color: var(--muted); line-height: 1.4; }
.users-form { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--line) 30%, transparent); }
.users-form .row-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .users-form .row-fields { grid-template-columns: 1fr; } }
.users-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-role { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; border: 1.5px solid var(--line); font-size: calc(11px * var(--fs)); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-role[data-role="admin"] { border-color: var(--teal); }
.badge-role[data-role="demo"] { border-color: var(--amber); color: var(--amber-text, var(--amber)); }
.badge-off { opacity: 0.7; text-decoration: line-through; }

/* ---- Nov 6 2026 next-build: account sync, refresh recovery, unrest card, owner fingerprint (text + outline cues, not colour only) ---- */
.sync-rows { display: flex; flex-direction: column; }
.sync-row { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 30%, transparent); }
.sync-row > div { flex: 1 1 auto; min-width: 0; }
.sync-row .hint { margin: 2px 0 0; }
.sync-pill { flex: none; display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 8px; font-weight: 800; font-size: calc(12.5px * var(--fs)); border: 2px solid var(--line); white-space: nowrap; }
.sync-pill[data-state="on"] { border-color: var(--teal); color: var(--text); }
.sync-pill[data-state="off"], .sync-pill[data-state="pending"] { border-style: dashed; color: var(--muted); }
.sync-pill[data-state="warn"] { border-style: dashed; border-color: var(--amber); color: var(--amber-text, var(--amber)); }
.sync-state { margin: 8px 0 0; font-size: calc(12.5px * var(--fs)); color: var(--muted); }
.retain-note { border-left: 3px solid var(--teal); padding-left: 8px; }
.refresh-line { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 5px 10px; font-size: calc(12px * var(--fs)); font-weight: 650; color: var(--text); border-bottom: 2px dashed var(--amber); background: color-mix(in srgb, var(--amber) 10%, var(--panel-solid)); }
.refresh-line[data-state="ok"] { border-bottom-style: solid; border-bottom-color: var(--teal); background: color-mix(in srgb, var(--teal) 10%, var(--panel-solid)); }
.refresh-line .rl-sub { font-weight: 500; color: var(--muted); }
.refresh-line button { min-height: 28px; }
.health-line.is-calm { border-bottom-style: dashed; }
.exp-line .x-t a.note-link { color: var(--teal); font-weight: 700; text-decoration: underline; }
.exp-line.note-window .x-t { color: var(--muted); }
.owner-sec .owner-kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin: 0 0 4px; }
.fp-rows { margin: 10px 0; border-top: 1px solid color-mix(in srgb, var(--line) 30%, transparent); }
.fp-row { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 30%, transparent); flex-wrap: wrap; }
.fp-row code { font-size: 12px; word-break: break-all; text-align: right; max-width: 100%; }
.fp-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.fp-note { border-left: 3px solid var(--teal); padding: 6px 10px; margin: 10px 0; font-size: calc(12.5px * var(--fs)); background: color-mix(in srgb, var(--teal) 6%, transparent); }
.fp-match[data-state="ok"]::before { content: "✓ "; } .fp-match[data-state="bad"]::before { content: "⚠ "; }
.end-of-admin { text-align: center; font-size: 12px; color: var(--muted); padding: 10px 0 24px; border-top: 1px solid color-mix(in srgb, var(--line) 30%, transparent); }
.calm-line { flex: none; display: flex; align-items: flex-start; gap: 6px; padding: 6px 10px; font-size: calc(12px * var(--fs)); font-weight: 550; color: var(--text); background: color-mix(in srgb, var(--line) 14%, var(--panel-solid)); border-bottom: 1px dashed color-mix(in srgb, var(--line) 70%, transparent); }
.calm-line[hidden], .refresh-line[hidden] { display: none; }
.calm-line .cl-ico { font-weight: 800; }

/* Nov 6 2026 (b): NWS / Unrest same action slots as CHP. A slot the source can't fill stays visible but disabled,
   with a dashed outline (not colour only) and a tooltip saying why. Approximate NWS points get a dotted ring. */
.ib.is-unavailable { border-style: dashed; }
.ib.approx { outline: 1px dotted currentColor; outline-offset: 1px; }
.exp-line .x-t .ib.copy-note { width: 26px; height: 26px; margin-left: 6px; vertical-align: middle; }
.exp-line .x-t a.note-map { margin-left: 8px; color: var(--teal); font-weight: 700; text-decoration: underline; white-space: nowrap; }
.idle .idle-empty { display: block; font-size: 15px; font-weight: 700; margin: 2px 0 4px; }

/* Nov 6 2026 (c): empty Incoming — "No incidents yet" sits in the middle of the clear list area (both axes), with the
   listening line under it. The idle block takes the free height of the scroller; Recent stays pinned at the bottom
   and the footer (Recent toggle · Dismiss all) is untouched. When Recent is open and long, the block shrinks to its text. */
body.web-app .scroller > .idle:not([hidden]) { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; min-height: 120px; }
body.web-app .scroller > .idle:not([hidden]) ~ .list:empty { flex: 0 0 0; }
body.web-app .scroller > .idle .idle-empty { font-size: calc(17px * var(--fs, 1)); margin: 0 0 8px; }
body.web-app .scroller > .idle .idle-one { justify-content: center; margin: 0; }
.county.county-unknown { font-style: italic; }
/* 1106d: the sound line shows the saved-setting case without the unlock button */
.sound-line .sound-enable-btn[hidden] { display: none; }

/* 1106e: version of the build this page loaded (Chris t539u) — small, plain text, readable without colour */
.build-label { flex: none; padding: 8px 12px 10px; font-size: calc(11.5px * var(--fs)); line-height: 1.35; color: var(--muted, var(--text)); text-align: left; white-space: normal; overflow-wrap: anywhere; user-select: text; cursor: default; pointer-events: none; }
.build-label.settings-version { border-top: 1px solid color-mix(in srgb, var(--line) 22%, transparent); margin: 4px 0 0; }
.build-label:empty { display: none; }

/* 1107a: personal empty Incoming (concept t564u) — greeting, "Monitoring" + three gently pulsing dots, hint line.
   Status is always spelled out in text (colour-blind safe); the dots are decoration only (aria-hidden). */
body.web-app .scroller > .idle .idle-greet { display: block; font-size: calc(22px * var(--fs, 1)); font-weight: 800; line-height: 1.25; margin: 0 0 4px; overflow-wrap: anywhere; }
body.web-app .scroller > .idle .idle-empty { display: block; font-weight: 500; color: var(--muted, var(--text)); margin: 0 0 22px; }
.idle-mon { display: inline-flex; align-items: center; gap: 10px; font-size: calc(14px * var(--fs, 1)); margin: 0 0 18px; }
.idle-mon .idle-text { font-weight: 600; }
.idle-mon.mon-warn .idle-text, .idle-mon.mon-down .idle-text { color: var(--amber-text, var(--text)); }
.idle-mon.mon-down .idle-text::before, .idle-mon.mon-warn .idle-text::before { content: "⚠ "; }
.mon-dots { display: inline-flex; gap: 6px; }
.mon-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted, #9FB3C4); opacity: .45; animation: mon-pulse 1.8s ease-in-out infinite; }
.mon-dots i:nth-child(2) { animation-delay: .3s; }
.mon-dots i:nth-child(3) { animation-delay: .6s; }
.mon-listening .mon-dots i, .mon-muted .mon-dots i, .mon-warn .mon-dots i { background: var(--teal, #2EC4B6); }
.mon-dots.is-still i { animation: none; opacity: .35; background: var(--muted, #9FB3C4); }
@keyframes mon-pulse { 0%, 100% { opacity: .3; transform: scale(.85); } 40% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .mon-dots i { animation: none !important; opacity: .7; transform: none; } }
.idle-hint { margin: 0; font-size: calc(12.5px * var(--fs, 1)); color: var(--muted, var(--text)); }

/* Selected item11: native modal, scrollable on small screens; no release-state side effects. */
button.build-label { background:transparent; border:0; cursor:pointer; font:inherit; color:inherit; }
button.build-label:hover, button.build-label:focus-visible { text-decoration:underline; }
.release-history { color:var(--text, #e8eef8); background:var(--bg, #121a27); border:1px solid #7d8da6; border-radius:10px; width:min(38rem, 92vw); max-height:80vh; overflow:auto; padding:1rem; }
.release-history::backdrop { background:#0009; }
.release-history h3 { margin-bottom:.25rem; }
.release-history p, .release-history li { line-height:1.45; }

/* ===== QA ENVIRONMENT OVERLAY (added by qa/pages/qadeploy.sh build; never in production) ===== */
html::before{content:"QA TEST SITE \00B7  BETA \00B7  not the live app \00B7  alerts off";display:block;position:sticky;top:0;z-index:2147483647;
  box-sizing:border-box;width:100%;padding:calc(env(safe-area-inset-top, 0px) + 5px) 10px 5px;text-align:center;
  font:800 12.5px/1.25 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:.06em;color:#111;
  background:repeating-linear-gradient(135deg,#F2A600 0 14px,#FFC94A 14px 28px);border-bottom:2px solid #111;pointer-events:none}
html{box-shadow:inset 0 0 0 3px #F2A600}
