/* BOS — monday.com-inspired light theme.
   Vivid solid status pills, soft white cards, colourful accents — but pill
   colours are chosen for >=4.5:1 contrast with white text (WCAG 1.4.3, per the
   accessibility standing order), and the Glance dashboard stays calm: quiet
   when healthy, colour reserved for earned attention. */
:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-2: #eef0f5;
  --line: #e3e6ee;
  --line-strong: #d0d4e0;
  --text: #1d1f33;
  --muted: #676879;          /* 4.6:1 on white */
  --accent: #0073ea;         /* monday blue */
  --accent-ink: #0060c0;     /* white text passes AA */
  --accent-wash: #e6f1fd;
  /* status solids — white text, all >=4.5:1 */
  --green: #18794e;
  --amber: #95620a;
  --red: #cd2b31;
  --purple: #7a44cf;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20,23,40,.06), 0 2px 8px rgba(20,23,40,.05);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.55 'Figtree', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--accent-ink); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 10px 20px; background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10; box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { display: inline-flex; align-items: center; }
.brand .logo svg { display: block; border-radius: 8px; }
.brand strong { font-weight: 800; letter-spacing: -.01em; }
.brand .tag {
  margin-left: 8px; font-size: 11px; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 20px; padding: 1px 8px;
}
nav { display: flex; gap: 4px; flex: 1; }
nav a {
  padding: 7px 13px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px;
}
nav a.active { background: var(--accent-wash); color: var(--accent-ink); }
nav a:hover { text-decoration: none; color: var(--text); background: var(--panel-2); }
.actor { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.actor select, .topbar select {
  background: var(--panel); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 7px 9px; font-weight: 600;
}

.searchbar { padding: 16px 20px 0; }
.searchbar input {
  width: 100%; padding: 10px 14px; background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); box-shadow: var(--shadow);
}

main { padding: 18px 20px 40px; max-width: 1180px; margin: 0 auto; }

h1 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 16px; }
h2 { font-size: 12.5px; margin: 22px 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }

.row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.list-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 16px; border: 1px solid var(--line); border-left: 4px solid var(--line-strong);
  border-radius: 10px; background: var(--panel); margin-bottom: 8px; box-shadow: var(--shadow);
  transition: border-color .12s, transform .12s;
}
.list-item:hover { border-left-color: var(--accent); transform: translateX(1px); }
a.list-item { color: inherit; }
a.list-item:hover { text-decoration: none; }
a.list-item .title { color: var(--text); }
.list-item .meta { color: var(--muted); font-size: 12.5px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.list-item .title { font-weight: 700; }

/* monday-style solid status pills (white text, AA contrast) */
.pill {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 16px;
  background: var(--panel-2); color: var(--muted); white-space: nowrap;
}
.pill.green  { background: var(--green);  color: #fff; }
.pill.amber  { background: var(--amber);  color: #fff; }
.pill.red    { background: var(--red);    color: #fff; }
.pill.blue   { background: var(--accent); color: #fff; }
.pill.agent  { background: var(--purple); color: #fff; }

label { display: block; font-size: 12.5px; color: var(--muted); margin: 12px 0 4px; font-weight: 600; }
input, select, textarea {
  width: 100%; padding: 9px 11px; background: var(--panel); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 8px; font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-wash); }
textarea { min-height: 120px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 16px; }

button {
  padding: 9px 15px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--text); cursor: pointer; font: inherit; font-weight: 600;
}
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.ghost { background: transparent; }
button:hover { filter: brightness(.97); }
button.primary:hover { filter: brightness(1.08); }
.btnrow { display: flex; gap: 10px; margin-top: 18px; }
.btnrow.right { justify-content: flex-end; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.spacer { flex: 1; }
.empty { color: var(--muted); padding: 28px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--panel); }

.actions-editor .action-line { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }
.actions-editor .action-line button { padding: 7px 10px; }

.md { color: var(--text); }
.md h1, .md h2, .md h3 { color: var(--text); text-transform: none; letter-spacing: 0; }
.md h2 { font-size: 18px; }
.md code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.md pre { background: var(--panel-2); padding: 12px; border-radius: 8px; overflow: auto; }
.md ul, .md ol { padding-left: 22px; }
.md a { color: var(--accent-ink); }
.md hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.md blockquote.md-quote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--border); color: var(--muted); }
.md table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 13px; }
.md th, .md td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
.md th { background: var(--panel-2); font-weight: 700; }

/* Tensions: dissonance-scan cards, left-border keyed by severity */
.tension { border-left: 4px solid var(--line-strong); }
.tension.high { border-left-color: var(--red); }
.tension.medium { border-left-color: var(--amber); }
.tension.low { border-left-color: var(--accent); }
.tension .ten-fix { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }

/* Full Markdown editor: toolbar + textarea + live preview */
.mde { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.mde-bar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 6px; background: var(--panel-2); border-bottom: 1px solid var(--border); }
.mde-bar .spacer { flex: 1; }
.mde-btn { padding: 4px 9px; font-size: 13px; line-height: 1; border: 1px solid var(--border); background: #fff; border-radius: 6px; cursor: pointer; color: var(--text); }
.mde-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.mde-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.mde-panes { display: block; }
.mde-panes.preview-on { display: grid; grid-template-columns: 1fr 1fr; }
.mde-input { border: none !important; border-radius: 0 !important; box-shadow: none !important; min-height: 300px; }
.mde-panes.preview-on .mde-input { border-right: 1px solid var(--border) !important; }
.mde-preview { display: none; padding: 12px 14px; overflow: auto; min-height: 300px; max-height: 60vh; background: #fff; }
.mde-panes.preview-on .mde-preview { display: block; }
@media (max-width: 720px) { .mde-panes.preview-on { grid-template-columns: 1fr; } .mde-panes.preview-on .mde-input { border-right: none !important; border-bottom: 1px solid var(--border) !important; } }

.linkitem { font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.linkitem:last-child { border-bottom: none; }
.dir { font-size: 11px; color: var(--muted); font-weight: 600; }
.overdue { color: var(--red); font-weight: 700; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* agenda */
.agenda-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; background: var(--panel); }
.agenda-item.declined { opacity: .55; }
.agenda-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agenda-head .title { font-weight: 700; color: var(--text); }
.agenda-body { margin-top: 8px; }
.small-btn { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.small-btn.ok { border-color: var(--green); color: var(--green); }
button.cov { padding: 4px 10px; font-size: 11.5px; border-radius: 16px; color: var(--muted); }
button.cov.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.list-item.compact { padding: 9px 12px; }
.list-item.compact select { width: auto; padding: 5px 7px; font-size: 12.5px; }
.checks { display: flex; gap: 12px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text); margin: 4px 0; font-weight: 500; }
.check input { width: auto; }

/* menu button + dropdown (mobile only) */
.menubtn { display: none; font-size: 20px; line-height: 1; padding: 6px 12px; }
.brand-short { display: none; }
.menupanel {
  position: fixed; top: 56px; right: 8px; z-index: 60; min-width: 210px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 36px rgba(20,23,40,.18); padding: 6px; display: flex; flex-direction: column;
}
.menupanel a { padding: 12px 14px; border-radius: 8px; color: var(--text); font-weight: 600; }
.menupanel a.active { background: var(--accent-wash); color: var(--accent-ink); }
.menupanel a:hover { text-decoration: none; background: var(--panel-2); }

/* notifications */
.bell { position: relative; background: transparent; border: none; font-size: 17px; cursor: pointer; padding: 4px 8px; }
.bellcount {
  position: absolute; top: -2px; right: -2px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 10px; padding: 0 5px; line-height: 15px;
}
.bellpanel {
  position: fixed; top: 56px; right: 16px; width: 340px; max-height: 60vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; z-index: 50;
  box-shadow: 0 10px 36px rgba(20,23,40,.18);
}
.bellitem {
  display: block; width: 100%; text-align: left; background: none; border: none;
  border-top: 1px solid var(--line); color: var(--text);
  padding: 10px 12px; cursor: pointer; font-size: 13.5px; font-family: inherit;
}
.bellitem:hover { background: var(--panel-2); }
.bellitem.read { opacity: .55; }

/* ---- glance: calm perceptual dashboard ---- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.attn-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 14px 0 18px; }
.attn {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow);
}
.attn:hover { text-decoration: none; }
.attn-n { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.attn-l { font-size: 12.5px; font-weight: 600; }
.attn.quiet { background: var(--panel); opacity: .6; }
.attn.quiet .attn-n, .attn.quiet .attn-l { color: var(--muted); }
.attn.warm { border-color: var(--amber); border-left: 4px solid var(--amber); }
.attn.warm .attn-n { color: var(--amber); }
.attn.hot { border-color: var(--red); border-left: 4px solid var(--red); }
.attn.hot .attn-n { color: var(--red); }

.glance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.heatmap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; max-width: 280px; }
.hm {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-weight: 800; font-size: 14px; color: #fff;
}
.hm:hover { text-decoration: none; filter: brightness(1.06); }
.hm.empty { background: var(--panel-2); }
.hm.z1 { background: #79c9a0; }
.hm.z2 { background: #e6b94f; color: #3a2c05; }
.hm.z3 { background: #e08948; }
.hm.z4 { background: var(--red); }

.flowbar { display: flex; height: 20px; border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.seg.sdone { background: var(--green); }
.seg.sprog { background: var(--accent); }
.seg.sopen { background: #aeb4c6; }
.seg.sblock { background: var(--red); }

.spark { display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.spark-col { display: flex; flex-direction: column-reverse; width: 12px; }
.spark-h { background: #aeb4c6; border-radius: 2px 2px 0 0; }
.spark-a { background: var(--purple); border-radius: 2px 2px 0 0; }

.lrow { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); color: var(--text); }
.lrow:first-of-type { border-top: none; }
.lrow:hover { text-decoration: none; background: var(--panel-2); }
.lname { flex: 1; font-size: 13.5px; font-weight: 600; }
.ldots { display: inline-flex; gap: 4px; }
.ldot { width: 10px; height: 10px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-strong); }
.ldot.on { background: var(--green); border-color: var(--green); }
.ldot.stuck { background: var(--amber); border-color: var(--amber); }

/* "Your hats" — per-hat pressing overview on Glance */
.hats-strip { margin-bottom: 18px; }
.hats-title { margin: 0 0 10px; }
.hats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.hatcard { display: block; width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.hatcard:hover { border-color: var(--accent); }
.hatcard.quiet { opacity: .55; }

/* topbar hat selector + "other hats" strip */
.hatbar { display: flex; align-items: center; gap: 6px; }
.hatbar select { padding: 4px 8px; font-size: 13px; }
.hat-ic { font-size: 15px; }
.otherhats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oh-now { font-weight: 700; }
.hatchip { border: 1px solid var(--line-strong); background: var(--panel); border-radius: 16px; padding: 3px 10px; font-size: 12.5px; cursor: pointer; color: var(--text); }
.hatchip:hover { border-color: var(--accent); }
.hatchip .n { font-weight: 800; background: var(--amber); color: #fff; border-radius: 10px; padding: 0 6px; margin-left: 4px; }
.hatchip.hi .n { background: var(--red); }
.hatcard-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.hatcard-h strong { flex: 1; }
.hat-item { display: flex; gap: 8px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 13px; }
.hat-item:hover { text-decoration: none; }
.hat-item-t { flex: 1; }
.why { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
.why.hi { color: var(--red); }

/* Glance legibility: plain-language reading + legends + heatmap axis labels */
.reading { margin: 2px 0 12px; font-size: 13.5px; color: var(--text); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 9px; align-items: center; }
.lg-item { display: inline-flex; align-items: center; gap: 5px; }
.lg-dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,.08); }
.lg-dot.z1 { background: #79c9a0; } .lg-dot.z2 { background: #e6b94f; } .lg-dot.z3 { background: #e08948; } .lg-dot.z4 { background: var(--red); }
.lg-dot.sdone { background: var(--green); } .lg-dot.sprog { background: var(--accent); } .lg-dot.sopen { background: #aeb4c6; } .lg-dot.sblock { background: var(--red); }
.lg-dot.spark-h { background: #aeb4c6; } .lg-dot.spark-a { background: var(--purple); }
.lg-dot.on { background: var(--green); border-radius: 50%; }
.hmwrap { display: flex; flex-direction: column; gap: 3px; }
.hm-ylab, .hm-xlab { font-size: 11px; color: var(--muted); }
.hm-xlab { text-align: right; }

/* passcode gate */
.lock { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.lock-card { width: min(340px, 88vw); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: 0 10px 40px rgba(20,23,40,.15); }
.lock-card h1 { margin: 0 0 14px; font-size: 22px; }
.lock-card .logo { color: var(--accent); }
.lock-card button { width: 100%; margin-top: 16px; }
.lock-card .signin { display: block; text-align: center; text-decoration: none; margin-top: 16px;
  background: var(--accent); color: #fff; border-radius: 8px; padding: 11px 14px; font-weight: 700; }
.actor .who { font-weight: 700; color: var(--text); }

/* AI window */
.askai {
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  border-radius: 8px; padding: 7px 12px; font-weight: 700; cursor: pointer; font: inherit; font-weight: 700;
}
.askai:hover { filter: brightness(1.08); }
/* ===== App shell: full-height, content + resizable PAI panel side-by-side ===== */
:root { --pai-w: 380px; }
html { height: 100%; }
body { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.workarea { flex: 1; display: flex; min-height: 0; }
.contentcol { flex: 1; min-width: 0; overflow-y: auto; }

.pai-divider { flex: 0 0 6px; background: var(--line); cursor: col-resize; }
.pai-divider:hover, .pai-divider:focus-visible { background: var(--accent); }
body.pai-collapsed .pai-divider { display: none; }

.paidock {
  flex: 0 0 var(--pai-w); min-width: 0; display: flex; flex-direction: column;
  background: var(--panel); border-left: 1px solid var(--line);
}
body.pai-collapsed .paidock { display: none; }
.paidock .ai-log { flex: 1; min-height: 0; max-height: none; }
.paidock-ctx { margin: 0; padding: 7px 16px 0; }
.paidock-ctx[hidden] { display: none; }
.ai-pinx { border: none; background: var(--accent-wash); color: var(--accent-ink); border-radius: 10px; cursor: pointer; padding: 0 7px; font-weight: 700; line-height: 1.6; }
.pai-fullbtn { display: none; }  /* portrait only */

/* Floating toggle — always available when the panel is collapsed (calm: present, not occupying) */
.pai-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 48px; height: 48px;
  border-radius: 50%; border: none; background: var(--accent); color: #fff; font-size: 20px;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); display: none;
}
body.pai-collapsed .pai-fab { display: block; }

/* Portrait phones: PAI becomes a bottom sheet with snap sizes */
@media (max-width: 720px) {
  .pai-divider { display: none; }
  .paidock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; flex-basis: auto;
    height: 60vh; border-left: none; border-top: 1px solid var(--line-strong);
    box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  }
  body.pai-full .paidock { height: 92vh; }
  .pai-fullbtn { display: inline-block; }
}

.ai-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ai-log { min-height: 90px; max-height: 52vh; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.ai-note { background: var(--accent-wash); border: 1px solid #cfe4fb; border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--text); }
.ai-msg { display: flex; flex-direction: column; gap: 3px; }
.ai-who { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ai-msg.user .ai-body { background: var(--panel-2); border-radius: 10px; padding: 8px 12px; align-self: flex-start; max-width: 90%; }
.ai-msg.assistant .ai-body { padding: 0 2px; }
.ai-body.md p:first-child { margin-top: 0; }
.ai-body.md p:last-child { margin-bottom: 0; }
.ai-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: flex-end; }
.ai-input textarea { min-height: 0; font-family: inherit; font-size: 14px; resize: none; }
.small-btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }

/* quiet feedback toast */
.toast {
  position: fixed; bottom: 22px; right: 22px; z-index: 100;
  background: var(--text); border: 1px solid var(--text); color: #fff;
  padding: 11px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: all .25s ease;
  box-shadow: 0 8px 30px rgba(20,23,40,.25);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---- mobile ---- */
@media (max-width: 720px) {
  .topbar { gap: 8px; padding: 10px 12px; }
  .brand { min-width: 0; gap: 7px; }
  .brand-full, .brand .tag { display: none; }
  .brand-short { display: inline; font-weight: 800; }
  .actor { margin-left: auto; min-width: 0; }
  .actor label { display: none; }
  .actor select { max-width: 38vw; text-overflow: ellipsis; }
  nav { display: none; }
  .menubtn { display: block; }
  .searchbar { padding: 12px 12px 0; }
  main { padding: 14px 12px 40px; }
  h1 { font-size: 20px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .actions-editor .action-line { grid-template-columns: 1fr auto; }
  .actions-editor .action-line select, .actions-editor .action-line input[type="date"] { grid-column: 1; }
  button, select, input, .bellitem { min-height: 42px; }
  button.cov, .small-btn { min-height: 34px; }
  .list-item { flex-wrap: wrap; }
  .list-item > div:last-child { display: flex; gap: 6px; align-items: center; }
  .bellpanel { right: 8px; left: 8px; width: auto; }
  .attn-strip { grid-template-columns: repeat(2, 1fr); }
  .heatmap { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
