/* Seva Register — NJY app phase 1.
   Design tokens carried over from primitive/public/assets/app.css.
   The three data-mark colours were validated by the dataviz palette
   checker (see PAST.md §4) — do NOT nudge them by eye. Fonts fall back
   to system defaults so the PWA works offline; the display face is a
   nice-to-have. */

:root {
  --paper:        #F4F6F2;
  --surface:      #FFFFFF;
  --surface-sunk: #EDF1EC;
  --ink:          #16261E;
  --ink-2:        #3B4E45;
  --muted:        #64756C;
  --line:         #DCE4DE;
  --line-strong:  #C2CFC7;

  --peacock-deep: #0E4F52;
  --peacock-ink:  #0A3B3D;

  --mark-followed:  #00907F;
  --mark-responded: #C4830E;
  --mark-attention: #B93E56;
  --mark-none:      #FFFFFF;
  --mark-none-edge: #AFC0B7;

  --tint-followed:  #E0F1EE;
  --tint-responded: #F8EDD5;
  --tint-attention: #F9E3E8;

  --focus: #00907F;
  --radius: 10px;
  --radius-s: 6px;
  --shadow: 0 1px 2px rgba(22,38,30,.06), 0 4px 16px rgba(22,38,30,.05);

  --font-display: Georgia, 'Marcellus', serif;
  --font-ui: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'IBM Plex Mono', monospace;

  --bead: 14px;
}

* { box-sizing: border-box; }
/* The HTML `hidden` attribute must win over any author display value.
   Without this !important, `.center { display: grid }` on the login
   section keeps it visible even when the JS toggles `hidden=true`. */
[hidden] { display: none !important; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-ui); font-size: 16px; line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--peacock-deep); }
button { font: inherit; cursor: pointer; }

.app { max-width: 44rem; margin: 0 auto; padding: 1rem 1rem 5rem; }

/* -------------------------------------------------- nav */
.nav {
  display: flex; gap: .3rem; overflow-x: auto;
  padding: .5rem 0; margin: .2rem 0 .5rem;
  border-bottom: 1px solid var(--line);
}
.nav a {
  padding: .4rem .7rem; border-radius: 999px;
  font-size: .85rem; color: var(--ink-2); text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.nav a:hover { background: var(--surface); border-color: var(--line); }
.nav a.active {
  background: var(--peacock-deep); color: white;
}

/* --------- 14-day chant history strip --------- */
.history-strip {
  grid-column: 1 / -1;
  margin-top: .5rem;
  padding: .5rem;
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: .3rem;
}
.history-day {
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  cursor: pointer;
  padding: .25rem .1rem;
  border-radius: var(--radius-s);
  transition: background .1s ease;
}
.history-day:hover { background: var(--surface); }
.history-day .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--mark-none);
  border: 1.5px solid var(--mark-none-edge);
}
.history-day.chanted .dot {
  background: #2FA65D; border-color: #22854A;
}
.history-day.today {
  background: var(--tint-responded);
  border: 1px solid var(--mark-responded);
}
.history-day .label {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.1;
}
.history-day .month {
  font-size: .55rem;
  color: var(--muted);
  opacity: .7;
}
@media (max-width: 640px) {
  .history-strip { grid-template-columns: repeat(7, 1fr); }
  .history-day .dot { width: 12px; height: 12px; }
}

.history-btn {
  background: var(--surface-sunk); border: 1px solid var(--line);
  color: var(--ink-2);
  padding: .3rem .55rem; border-radius: var(--radius-s);
  font-size: .75rem; cursor: pointer;
}
.history-btn:hover { border-color: var(--peacock-deep); color: var(--peacock-deep); }

/* --------- manage panel (per-row popover) --------- */
.manage {
  grid-column: 1 / -1;
  background: var(--surface-sunk); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: .6rem .8rem;
  margin-top: .5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
}
.manage label { margin: 0 0 .2rem; }
.manage .full { grid-column: 1 / -1; }
.danger {
  background: transparent; color: var(--mark-attention);
  border: 1px solid var(--mark-attention);
  padding: .4rem .8rem; border-radius: var(--radius-s);
  font-size: .85rem; cursor: pointer;
}
.danger:hover { background: var(--mark-attention); color: white; }
.mini-btn {
  background: var(--surface-sunk); border: 1px solid var(--line);
  padding: .3rem .6rem; border-radius: var(--radius-s);
  font-size: .8rem; color: var(--ink-2); cursor: pointer;
}

/* --------- help banner + loading line --------- */
/* Every tab gets a short "what this is for" note at the top so
 * non-technical users know they're in the right place. */
.help-banner {
  background: var(--surface);
  border-left: 3px solid var(--peacock-deep);
  padding: .55rem .85rem;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: .85rem;
  color: var(--ink-2);
  margin: 0 0 1rem;
}

/* "What's new" banner — shown once per release (per user, remembered
 * in localStorage). Warm amber gradient so it reads festival-y
 * without being alarming. Compact at phone width. */
.whatsnew-banner {
  background: linear-gradient(135deg, #fff6e5 0%, #ffeec0 100%);
  border: 1px solid #f0d68a;
  border-radius: 10px;
  padding: .7rem .9rem .7rem 1rem;
  margin: 0 0 .9rem;
  color: #5a3d00;
  box-shadow: 0 1px 3px rgba(138, 90, 0, .08);
}
.whatsnew-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .95rem;
  margin-bottom: .35rem;
}
.whatsnew-head strong { color: #8a5a00; font-weight: 700; }
.whatsnew-dismiss {
  background: transparent;
  border: none;
  color: #8a5a00;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: .1rem .4rem;
  border-radius: 4px;
}
.whatsnew-dismiss:hover { background: rgba(138,90,0,.1); }
.whatsnew-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: .82rem;
  line-height: 1.5;
  color: #5a3d00;
}
.whatsnew-list li { margin: .15rem 0; }

/* "Update ready" toast — pinned to the bottom-right (bottom-center on
 * phones). Appears when the service worker finishes downloading a new
 * bundle so users on long-lived tabs/PWA shells can tap Refresh to
 * pick up new features without having to reinstall. */
.update-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9998;
  background: #0e4f52;
  color: #fff;
  padding: .7rem 1rem;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .9rem;
  font-weight: 500;
  animation: toastSlideIn .25s ease-out;
}
.update-toast .update-reload {
  background: #ffffff;
  color: #0e4f52;
  border: none;
  padding: .4rem .9rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
}
.update-toast .update-reload:hover { background: #e8f3f3; }
@keyframes toastSlideIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@media (max-width: 640px) {
  .update-toast {
    left: 1rem; right: 1rem; bottom: 1rem;
    justify-content: space-between;
  }
}
.loading-line {
  font-style: italic;
  color: var(--muted);
  padding: .8rem 0;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .5; }
  50%      { opacity: 1;  }
}

/* small utility */
.row { display: flex; gap: .5rem; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; }
.pill {
  display: inline-block; padding: .15rem .5rem; border-radius: 999px;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  background: var(--surface-sunk); color: var(--muted);
  border: 1px solid var(--line);
}
.pill.on { background: var(--tint-followed); color: var(--mark-followed); border-color: var(--mark-followed); }

/* Members tab sub-pills — People / Coordinators / Leaders. */
.members-tab-pill.active {
  background: var(--peacock-deep, #0f766e);
  color: #fff;
  border-color: var(--peacock-deep, #0f766e);
}

/* table-like list */
.list { list-style: none; padding: 0; margin: 0; }
.list li {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: .75rem;
  padding: .6rem .3rem; border-bottom: 1px solid var(--line);
}
.list li a.btn {
  background: var(--surface-sunk); color: var(--ink-2);
  padding: .3rem .6rem; border-radius: var(--radius-s);
  font-size: .8rem; text-decoration: none;
  border: 1px solid var(--line);
}

/* --------- section titles --------- */
h2.section {
  font-family: var(--font-display); color: var(--peacock-deep);
  font-weight: 400; margin: 1.6rem 0 .5rem;
}
h3.section {
  font-family: var(--font-display); color: var(--peacock-deep);
  font-weight: 400; margin: 1.2rem 0 .3rem; font-size: 1.1rem;
}

/* --------- textarea --------- */
textarea { min-height: 4rem; resize: vertical; }

/* --------- Janmashtami progress ring / tier badge --------- */
.tier-badge {
  display: inline-flex; align-items: baseline; gap: .4rem;
  padding: .35rem .7rem; border-radius: 999px;
  background: var(--tint-followed); color: var(--mark-followed);
  border: 1px solid var(--mark-followed);
  font-size: .82rem; font-family: var(--font-mono);
}
.tier-badge .num { font-weight: 600; font-size: 1rem; }
.tier-badge.warm { background: var(--tint-responded); color: var(--mark-responded); border-color: var(--mark-responded); }

/* --------- rapid entry form --------- */
.rapid-form {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: .5rem;
  align-items: end;
}
.rapid-form label { margin: 0 0 .2rem; }

/* --------- score chip --------- */
.score {
  font-family: var(--font-mono); font-weight: 500;
  color: var(--mark-responded); background: var(--tint-responded);
  padding: .1rem .55rem; border-radius: 999px; font-size: .85rem;
}

/* --------- progress bar --------- */
.pbar {
  --pct: 0%;
  position: relative; overflow: hidden;
  background: var(--surface-sunk); border-radius: 999px;
  height: 8px; width: 100%; margin-top: .35rem;
  border: 1px solid var(--line);
}
.pbar::after {
  content: "";
  position: absolute; inset: 0;
  width: var(--pct); max-width: 100%;
  background: var(--mark-followed);
  border-radius: 999px;
}
.pbar[data-mid="1"]::after { background: var(--mark-responded); }
.pbar[data-mid="2"]::after { background: var(--mark-attention); }
.progress-line {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; font-family: var(--font-mono);
  font-size: .72rem; color: var(--muted);
}
.progress-line .fraction { color: var(--ink-2); font-weight: 500; }

/* 3-bucket mini bars for the leader leaderboard row. Compact stack of
   three .pbar rows with a small caption above each showing the
   bucket label and raw value. Kept narrow so the row still shows
   name + score + Open button on phones. */
.leader-buckets { display: flex; flex-direction: column; gap: .3rem; }
.leader-bucket-hd {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-bottom: .1rem;
}
.leader-bucket .pbar { margin-top: 0; height: 6px; }

/* -------------------------------------------------- topbar */
.topbar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding: .5rem 0 1rem;
  border-bottom: 1px solid var(--line);
}
.topbar h1 {
  margin: 0; font-family: var(--font-display); color: var(--peacock-deep);
  font-size: 1.6rem; font-weight: 400; letter-spacing: .01em;
}
.topbar .who { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; color: var(--muted); font-size: .9rem; min-width: 0; }
/* flex-wrap so labels drop to a second line instead of overflowing when
 * a translation (or added contact pill) makes the row exceed the header
 * width. Every child gets white-space:nowrap so labels like "Sign Out"
 * never split mid-word ("Sign" + "Out"). */
.topbar .who-line {
  display: flex; gap: .5rem; align-items: baseline;
  flex-wrap: wrap;
  min-width: 0;
}
.topbar .who-line > * { white-space: nowrap; }
.topbar .who strong { color: var(--ink-2); font-weight: 500; }
.topbar .who a { margin-left: .3rem; }

/* Persistent contact pill in top-right header. Always visible; opens
   api.whatsapp.com/send/?phone=<digits> for the coord's leader or the
   leader/coord's HK. Kept compact so the header doesn't wrap on mobile. */
.topbar .who a.hdr-contact {
  background: #25D366;
  color: #fff;
  padding: .15rem .5rem;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  margin-left: .3rem;
  white-space: nowrap;
}
.topbar .who a.hdr-contact:hover { background: #1eb257; }

/* --------- floating leaderboard sidebar (desktop only) --------- */
/* A slim always-visible panel on the right edge showing today's top
 * three coordinators + the signed-in coord's own rank. Hidden on
 * anything narrower than 1050px so it never overlaps the main content
 * on tablets or phones. */
.lb-side {
  position: fixed;
  top: 5rem;
  right: 1rem;
  width: 220px;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .75rem .9rem;
  font-size: .82rem;
  z-index: 40;
}
.lb-side h4 {
  margin: 0 0 .5rem;
  font-family: var(--font-display);
  color: var(--peacock-deep);
  font-size: .95rem;
  font-weight: 400;
  display: flex; align-items: baseline; justify-content: space-between;
}
.lb-side .lb-rows { display: flex; flex-direction: column; gap: .3rem; }
.lb-side .lb-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: .4rem;
  align-items: center;
  padding: .28rem .35rem;
  border-radius: var(--radius-s);
}
.lb-side .lb-row.me {
  background: linear-gradient(180deg, var(--tint-responded), var(--tint-followed));
  border: 1px solid var(--mark-responded);
}
.lb-side .lb-row .name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink-2);
}
.lb-side .lb-row .pts {
  font-family: var(--font-mono);
  color: var(--mark-responded);
  font-weight: 600;
}
.lb-side .lb-you-line {
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: .75rem;
  text-align: center;
}
/* The "You" row — a highlighted card matching the header points chip's
 * gold-coin style so it's obvious where the coordinator stands. */
.lb-side .lb-you-row {
  margin-top: .55rem;
  padding: .4rem .55rem;
  display: grid; grid-template-columns: auto 1fr auto; gap: .5rem;
  align-items: center;
  background: linear-gradient(180deg, var(--tint-responded), var(--tint-followed));
  border: 1px solid var(--mark-responded);
  border-radius: var(--radius-s);
  font-size: .8rem;
}
.lb-side .lb-you-label {
  font-weight: 700; color: var(--peacock-ink);
  letter-spacing: .04em; font-size: .72rem;
}
.lb-side .lb-you-rank {
  font-family: var(--font-mono);
  color: var(--peacock-deep);
  font-weight: 600;
}
.lb-side .lb-you-pts {
  font-family: var(--font-mono);
  color: var(--mark-responded);
  font-weight: 700;
}
.lb-side .lb-you-row::before { content: "🪙"; }
.lb-side a.lb-open {
  display: block; text-align: center; margin-top: .55rem;
  padding: .3rem .5rem; border-radius: var(--radius-s);
  border: 1px solid var(--line); color: var(--ink-2);
  text-decoration: none; font-size: .78rem;
}
.lb-side a.lb-open:hover { border-color: var(--peacock-deep); color: var(--peacock-deep); }

/* Hide on anything narrower than desktop — no room for it. */
@media (max-width: 1049px) {
  .lb-side { display: none !important; }
}

/* --------- mobile leaderboard strip (phones/tablets only) --------- */
/* A slim always-visible bar pinned to the bottom of the viewport on
 * phones. Shows medals 🥇🥈🥉 + your own rank if you're outside the
 * top three. Hidden on desktop (the sidebar takes over there). */
.lb-strip {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 6px rgba(0,0,0,.08);
  z-index: 45;
  padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom, 0px));
  font-size: .72rem;
}
.lb-strip-inner {
  display: flex; align-items: center; gap: .35rem;
  overflow-x: auto; white-space: nowrap;
  scrollbar-width: none;
}
.lb-strip-inner::-webkit-scrollbar { display: none; }
.lb-strip-slot {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem .4rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  flex: 0 0 auto;
  max-width: 40vw;
}
.lb-strip-slot.me,
.lb-strip-slot.you {
  background: linear-gradient(180deg, var(--tint-responded), var(--tint-followed));
  border-color: var(--mark-responded);
}
.lb-strip-slot .nm {
  overflow: hidden; text-overflow: ellipsis;
  max-width: 30vw;
  color: var(--ink-2);
}
.lb-strip-slot .pt {
  font-family: var(--font-mono);
  color: var(--mark-responded); font-weight: 700;
}
.lb-strip-empty { color: var(--muted); padding: .2rem .4rem; }
.lb-strip-more {
  margin-left: auto;
  padding: .2rem .5rem;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  color: var(--peacock-deep);
  text-decoration: none;
  flex: 0 0 auto;
}

/* Only show the strip on phones/tablets — desktop uses the sidebar. */
@media (min-width: 1050px) {
  .lb-strip { display: none !important; }
}
/* Keep the app content clear of the strip on phones so the last row
 * isn't hidden behind it. */
@media (max-width: 1049px) {
  main.app { padding-bottom: 3.6rem; }
}

/* --------- points chip in the header --------- */
/* Two-tone: teal frame + gold coins inside. The number itself is
 * rendered in the validated gold so it reads as "you earned points". */
.pts-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .75rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .75rem;
  background: linear-gradient(180deg, var(--tint-responded), var(--tint-followed));
  color: var(--peacock-ink);
  border: 1px solid var(--mark-responded);
  text-decoration: none;
  transition: transform .1s ease, box-shadow .1s ease;
  box-shadow: 0 1px 2px rgba(196,131,14,.2);
}
.pts-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 7px rgba(196,131,14,.28);
}
.pts-chip .pts-num {
  font-weight: 700;
  color: var(--mark-responded);
}
.pts-chip .pts-sep { opacity: .5; }
.pts-chip::before { content: "🪙"; font-size: .82rem; }

/* -------------------------------------------------- tally strip */
.tally {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
  margin: 1rem 0;
}
.tally .cell {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .6rem .7rem;
}
.tally .cell .n {
  font-family: var(--font-mono); font-size: 1.4rem; font-weight: 500;
  color: var(--ink);
}
.tally .cell .k {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted);
}

/* -------------------------------------------------- roll list */
.roll { list-style: none; padding: 0; margin: 0; }
/* Flex-wrap layout at ALL widths. The old fixed 6-column grid was
 * built for 6 controls; we now have 8+ (Chant?, WhatsApp, Call,
 * Save contact, Not on WhatsApp?, Calendar, Manage), which overflowed
 * the grid and pushed the Member dropdown onto the name. Flex-wrap
 * lets the row breathe: name gets its own space, controls flow to
 * the next line when the viewport can't hold them. */
.roll li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  padding: .7rem .3rem;
  border-bottom: 1px solid var(--line);
}
.roll li > .bead-wrap  { order: 1; }
.roll li > .name       { order: 2; flex: 1 1 12rem; min-width: 0; }
.roll li > .lifecycle  { order: 3; }
.roll li > .chant-tag  { order: 4; }
.roll li > .contact-pills { order: 5; flex-wrap: wrap; }
.roll li > .wa         { order: 5; }
.roll li > .history-btn { order: 6; }
.roll li > .mini-btn   { order: 7; }
.roll li > .history-strip { order: 8; width: 100%; }
.roll li > .manage        { order: 9; }
@media (max-width: 640px) {
  /* On phone, put lifecycle + manage each on their own full line so
   * touch targets stay big. */
  .roll li > .lifecycle  { width: 100%; margin-top: .1rem; }
  .roll li > .manage     { width: 100%; }
}
.roll .lifecycle {
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: .25rem .35rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink-2);
}
.roll .lifecycle[data-status="daily"] {
  border-color: var(--mark-followed);
  color: var(--mark-followed);
  font-weight: 500;
}
.roll .chant-tag[disabled] {
  opacity: .35; cursor: not-allowed; pointer-events: none;
}
.roll .name { color: var(--ink); font-weight: 500; }
.roll .name .phone {
  display: block; font-family: var(--font-mono); font-size: .78rem;
  color: var(--muted); font-weight: 400;
}
.roll .bead-wrap { position: relative; }
/* Chant? — the PRIMARY row action. Loud, bold, high-focus. Everything
 * else on the row is intentionally muted so this button dominates. */
.chant-tag {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  color: white;
  background: var(--peacock-deep, #0E4F52);
  border: 1px solid var(--peacock-deep, #0E4F52);
  padding: .45rem 1rem;
  border-radius: var(--radius-s, 6px);
  cursor: pointer;
  min-width: 5rem;
  text-align: center;
  transition: transform .1s ease, box-shadow .1s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.chant-tag:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.chant-tag.on {
  background: var(--mark-chanted, #d97706);
  border-color: var(--mark-chanted, #d97706);
  color: white;
}

/* Contact pills — MUTED. The Chant? button is the star. */
.roll .wa {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: .2rem .45rem;
  border-radius: var(--radius-s);
  font-size: .72rem;
  text-decoration: none;
  font-weight: 400;
}
.roll .wa:hover {
  border-color: var(--mark-followed);
  color: var(--mark-followed);
  background: var(--tint-followed);
}
/* Muted styling for the other contact buttons in the roll row (Call,
 * Save, SMS, Invite-to-WA). Overrides the loud green/blue backgrounds
 * they carry when used elsewhere in the app. */
.roll .contact-pills > a,
.roll .contact-pills > button {
  background: transparent !important;
  color: var(--muted) !important;
  border: 1px solid var(--line) !important;
  padding: .2rem .45rem !important;
  font-size: .72rem !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}
.roll .contact-pills > a:hover,
.roll .contact-pills > button:hover {
  background: var(--surface-sunk, #f5efe3) !important;
  color: var(--ink) !important;
}

/* -------------------------------------------------- garland bead */
/* 5-color model (server-derived on each render):
 *   white  = fresh, nothing marked today
 *   yellow = coord marked "contacted" today
 *   orange = coord marked "responded" today
 *   green  = chanted today
 *   red    = 3+ days no chant (needs attention). Ring, not fill —
 *            visually distinct from all others so it screams at scan. */
.bead {
  --sz: 26px;
  width: var(--sz); height: var(--sz);
  border-radius: 50%; background: var(--mark-none);
  border: 2px solid var(--mark-none-edge); cursor: pointer;
  padding: 0; display: inline-block;
  transition: transform .08s ease;
}
.bead:active { transform: scale(.92); }

/* Status colors — Prabhuji-supplied true hex values so a coord can
 * distinguish yellow / orange / green / red at a glance. Do not
 * substitute Tailwind-style muted variants; these exact values are
 * what she asked for. */
.bead[data-color="white"]  { background: var(--mark-none);    border-color: var(--mark-none-edge); }
.bead[data-color="yellow"] { background: #FFFF00;             border-color: #CCCC00; }
.bead[data-color="orange"] { background: #FFA500;             border-color: #CC7A00; }
.bead[data-color="green"]  { background: #00B050;             border-color: #007A3A; }
.bead[data-color="red"]    { background: #FF0000;             border-color: #B30000; }

/* Back-compat: any old numeric data-state still renders as white so
 * partial deploys don't blank the beads. */
.bead[data-state="1"]:not([data-color]) { background: var(--mark-followed); border-color: var(--mark-followed); }
.bead[data-state="2"]:not([data-color]) { background: var(--mark-responded); border-color: var(--mark-responded); }

/* -------------------------------------------------- garland strip */
.garland {
  display: flex; flex-wrap: wrap; gap: .35rem; padding: 1rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.garland .bead { --sz: 22px; }

/* --------- bead legend --------- */
.bead-legend {
  display: flex; flex-wrap: nowrap; gap: .8rem;
  padding: .5rem 0 0; margin-bottom: -0.4rem;
  font-size: .72rem; color: var(--muted);
  overflow-x: auto;   /* scroll horizontally on narrow phones instead of wrapping */
  white-space: nowrap;
}
@media (max-width: 480px) {
  .bead-legend { gap: .6rem; font-size: .68rem; }
}
.bead-legend .item { display: inline-flex; align-items: center; gap: .3rem; }
.bead-legend .swatch {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--mark-none-edge); background: var(--mark-none);
  display: inline-block;
}
/* Legend swatches — same Prabhuji-supplied true hex values as the
 * beads themselves so the legend at the top of the roll matches
 * what the coord sees rendered on each row. */
.bead-legend .swatch[data-c="yellow"] { background: #FFFF00; border-color: #CCCC00; }
.bead-legend .swatch[data-c="orange"] { background: #FFA500; border-color: #CC7A00; }
.bead-legend .swatch[data-c="green"]  { background: #00B050; border-color: #007A3A; }
.bead-legend .swatch[data-c="red"]    { background: #FF0000; border-color: #B30000; }

/* -------------------------------------------------- forms */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow);
  margin: 2rem 0;
}
.card h2 {
  margin: 0 0 1rem; font-family: var(--font-display); color: var(--peacock-deep);
  font-weight: 400;
}
label { display: block; margin: .8rem 0 .3rem; font-size: .85rem; color: var(--ink-2); }
input, textarea, select {
  width: 100%; font: inherit; padding: .55rem .7rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink);
}
/* Checkboxes and radios must NOT stretch to 100% — override the global
 * width above. Otherwise a flex-row label puts a huge checkbox next to
 * a right-crammed text label (broadcast setup, etc). */
input[type="checkbox"], input[type="radio"] {
  width: auto; padding: 0; margin: 0;
  flex: 0 0 auto;
  accent-color: var(--peacock-deep);
  width: 1.05rem; height: 1.05rem;
}
input:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }

/* -------------------------------------------------- broadcast / queue */
.bc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  margin: 1rem 0;
}
.bc-card h3 {
  margin: 0 0 .3rem;
  font-family: var(--font-display);
  color: var(--peacock-deep);
  font-weight: 500;
  font-size: 1rem;
}
.bc-card .bc-hint {
  color: var(--muted);
  font-size: .82rem;
  margin: 0 0 .8rem;
  line-height: 1.4;
}
.bc-check-row {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .5rem 0;
  cursor: pointer;
  font-size: .9rem;
  border-bottom: 1px dashed var(--line);
}
.bc-check-row:last-of-type { border-bottom: none; }
.bc-check-row input[type="checkbox"] { margin-top: .18rem; }
.bc-check-row .bc-check-label { flex: 1; }
.bc-check-row .bc-check-sub {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  margin-top: .1rem;
}
.bc-count-line {
  margin: .8rem 0 .3rem;
  padding: .5rem .7rem;
  background: var(--tint-followed, #f4ead4);
  border-radius: 6px;
  font-size: .85rem;
}
.bc-big-btn {
  display: inline-block;
  padding: .8rem 1.4rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  background: #25D366;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37,211,102,.3);
  transition: transform .06s ease, box-shadow .12s ease;
}
.bc-big-btn:hover { box-shadow: 0 3px 10px rgba(37,211,102,.4); }
.bc-big-btn:active { transform: translateY(1px); }

/* Muted WhatsApp button — sits BELOW the primary Load-Next-Member row
 * so the primary CTA (green) wins the eye when the coord returns from
 * WhatsApp. Faded WA-green background, no shadow. */
.bc-wa-secondary {
  background: #E7F5EB;
  color: #128C7E;
  border: 1px solid #B7DEC1;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}
.bc-wa-secondary:hover { background: #D9EEDF; }

/* Care-moment "Needs your attention" panel */
.care-panel {
  background: linear-gradient(180deg, #fff8ee, var(--surface));
  border: 1px solid var(--mark-followed, #d4a017);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: .8rem 0;
}
.care-panel h3 {
  margin: 0 0 .5rem;
  font-family: var(--font-display);
  color: var(--peacock-deep);
  font-weight: 500;
  display: flex; align-items: center; gap: .4rem;
  font-size: .95rem;
}
.care-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .7rem;
  align-items: center;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--line);
}
.care-row:last-of-type { border-bottom: none; }
.care-row .care-icon { font-size: 1.15rem; line-height: 1; }
.care-row .care-name { font-weight: 500; font-size: .9rem; color: var(--ink-2); }
.care-row .care-sub { color: var(--muted); font-size: .75rem; margin-top: .1rem; }
.care-row .care-send {
  padding: .35rem .8rem;
  border-radius: 6px;
  font-size: .8rem;
  white-space: nowrap;
  background: #25D366;
  color: white;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(37,211,102,.25);
}
.care-empty {
  background: linear-gradient(180deg, var(--tint-responded, #d9f0e5), var(--tint-followed, #f4ead4));
  border: 1px solid var(--mark-responded, #0e8f5d);
  border-radius: 8px;
  padding: .8rem 1rem;
  margin: .6rem 0;
  font-weight: 500;
  color: var(--peacock-ink);
}
button.primary {
  background: var(--peacock-deep); color: white; border: none;
  padding: .65rem 1.1rem; border-radius: var(--radius-s);
  font-weight: 500; font-size: .95rem; letter-spacing: .01em;
  box-shadow: 0 1px 2px rgba(14,79,82,.15);
  transition: background .12s ease, transform .06s ease, box-shadow .12s ease;
}
button.primary:hover:not(:disabled) {
  background: var(--peacock-ink);
  box-shadow: 0 2px 6px rgba(14,79,82,.22);
}
button.primary:active:not(:disabled) { transform: translateY(1px); }
button.primary:disabled {
  opacity: .55; cursor: not-allowed;
  background: var(--peacock-deep);
}
button.ghost {
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line-strong); padding: .5rem .8rem;
  border-radius: var(--radius-s);
  transition: background .12s ease, border-color .12s ease;
}
button.ghost:hover { background: var(--surface-sunk); border-color: var(--peacock-deep); color: var(--peacock-deep); }

/* --------- password field with eye toggle --------- */
.eye-wrap {
  position: relative;
}
.eye-wrap input {
  padding-right: 2.4rem;
}
.eye-btn {
  position: absolute;
  right: .4rem; top: 50%;
  transform: translateY(-50%);
  background: transparent; border: none;
  font-size: 1.05rem; cursor: pointer;
  padding: .2rem .3rem;
  opacity: .7;
}
.eye-btn:hover { opacity: 1; }

/* --------- file input: pretty it up --------- */
input[type="file"] {
  padding: 0;
  border: 1px dashed var(--line-strong);
  background: var(--surface-sunk);
  cursor: pointer;
  border-radius: var(--radius-s);
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-size: .9rem;
  transition: border-color .12s ease, background .12s ease;
}
input[type="file"]:hover {
  border-color: var(--peacock-deep);
  background: var(--tint-followed);
}
input[type="file"]::file-selector-button {
  background: var(--peacock-deep);
  color: white;
  border: none;
  padding: .55rem 1rem;
  border-radius: var(--radius-s) 0 0 var(--radius-s);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  margin-right: .7rem;
  transition: background .12s ease;
}
input[type="file"]::file-selector-button:hover {
  background: var(--peacock-ink);
}

/* --------- template download link --------- */
a[download] {
  display: inline-block;
  padding: .4rem .8rem;
  background: var(--tint-followed);
  color: var(--mark-followed);
  border: 1px solid var(--mark-followed);
  border-radius: var(--radius-s);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  transition: background .12s ease, color .12s ease;
}
a[download]:hover {
  background: var(--mark-followed);
  color: white;
}
.error { color: var(--mark-attention); font-size: .85rem; margin: .5rem 0; }
.hint { color: var(--muted); font-size: .8rem; }

/* -------------------------------------------------- mobile responsive */
@media (max-width: 640px) {
  .app { padding: .8rem .7rem 5rem; }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
  }
  .topbar .who {
    align-items: flex-start;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem;
  }
  .topbar h1 { font-size: 1.35rem; }
  /* On phones the role subtitle ("· NJY Group Coordinator") crowds out
   * the Sign Out link and the language toggle — shrink the label font
   * under 640px, hide the subtitle entirely under 480px. Name + contact
   * pills + Sign Out are the only truly essential header items on a phone. */
  .topbar .who { font-size: .82rem; }
  .topbar .who-line { row-gap: .35rem; }
  .tally {
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
  }
  .tally .cell .n { font-size: 1.15rem; }
  .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .card { padding: .9rem; }
  .rapid-form {
    grid-template-columns: 1fr;
    gap: .5rem;
  }
  .nav {
    gap: .2rem;
    padding: .35rem 0;
  }
  .nav a {
    font-size: .78rem;
    padding: .35rem .55rem;
  }
  h2.section { font-size: 1.05rem; }
  h3.section { font-size: 1rem; }
  .help-banner { font-size: .78rem; padding: .5rem .65rem; }
}
@media (max-width: 480px) {
  #who-role { display: none; }
  .topbar .who a.hdr-contact { font-size: .7rem; padding: .12rem .4rem; }
  .pts-chip { font-size: .7rem; padding: .18rem .6rem; }
}

/* -------------------------------------------------- onboarding tour */
.tour-overlay {
  position: fixed; inset: 0;
  background: rgba(14, 79, 82, .55);
  backdrop-filter: blur(2px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.tour-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  max-width: 22rem; width: 100%;
  padding: 1.5rem 1.3rem;
  font-family: var(--font-ui);
}
.tour-card h3 {
  font-family: var(--font-display); color: var(--peacock-deep);
  margin: 0 0 .4rem; font-weight: 400; font-size: 1.25rem;
}
.tour-card .tour-body { color: var(--ink-2); font-size: .95rem; line-height: 1.5; margin-bottom: 1rem; }
.tour-card .tour-body strong { color: var(--peacock-deep); }
.tour-card .tour-progress {
  display: flex; gap: .3rem; justify-content: center; margin-bottom: 1rem;
}
.tour-card .tour-progress span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
}
.tour-card .tour-progress span.on { background: var(--peacock-deep); }
.tour-card .tour-actions { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.tour-card .tour-skip {
  background: none; border: none;
  color: var(--muted); font-size: .82rem; cursor: pointer;
}
.tour-card .tour-skip:hover { color: var(--ink-2); }
.tour-emoji-row {
  display: flex; gap: .8rem; font-size: 1.6rem; margin-bottom: .5rem;
}

/* -------------------------------------------------- login screen */
.center {
  min-height: 100dvh; display: grid; place-items: center; padding: 1rem;
}
.center .card { max-width: 22rem; width: 100%; margin: 0; }
.center h2 { text-align: center; }

/* Login topline: title on the left, tiny language toggle on the right.
 * Kept as a pill (border + tint) so it reads as a control, not a link
 * lost in the whitespace above the sign-in form. */
.login-topline {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-bottom: .5rem;
}
.login-topline h2 { margin: 0; flex: 1; }
.login-lang {
  font-size: .78rem; color: var(--muted);
  text-decoration: none; white-space: nowrap;
  padding: .2rem .45rem; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-sunk);
}
.login-lang:hover { color: var(--peacock-deep); border-color: var(--peacock-deep); }

/* -------------------------------------------------- My Sangha CTA */
/* Big prominent Broadcast primary action at the top of My Sangha. Full
 * width, brand teal, generous padding — the coord should see and tap
 * this without hunting. Sub-line spells out what happens next. */
.broadcast-cta {
  display: block;
  width: 100%;
  margin: .75rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--peacock-deep);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--peacock-ink);
  transition: background .1s ease, transform .05s ease;
}
.broadcast-cta:hover { background: var(--peacock-ink); color: #fff; }
.broadcast-cta:active { transform: translateY(1px); }
.broadcast-cta-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.broadcast-cta-sub {
  display: block;
  font-size: .82rem;
  opacity: .88;
  margin-top: .25rem;
  line-height: 1.35;
}
@media (max-width: 480px) {
  .broadcast-cta { padding: .95rem 1rem; margin: .6rem 0; }
  .broadcast-cta-label { font-size: 1rem; }
  .broadcast-cta-sub { font-size: .78rem; }
}

/* Inline WhatsApp template editor card — sits directly below the
 * Broadcast CTA. Slightly tighter than the default .card so the pair
 * reads as one grouped unit. */
.wa-template-card {
  margin: .5rem 0 1rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.wa-template-card h3 { margin: 0 0 .3rem; font-size: .95rem; }
.wa-template-card textarea {
  font-family: var(--font-ui);
  font-size: .9rem;
  line-height: 1.45;
}

/* -------------------------------------------------- Members table
 * Compact, scannable table view for the Members tab. Replaces the
 * earlier card-per-row layout so leaders/HK can eyeball dozens of rows
 * at once. Each of the three sections (mine / others / unassigned)
 * gets its own .members-table inside a .members-table-wrap so narrow
 * phones can scroll sideways instead of squishing columns.           */
.members-table-wrap {
  /* Bounded per-section scroll — each of the three tables scrolls
     INDEPENDENTLY so the whole page doesn't grow to 8000+ rows tall.
     ~60vh fits 15-20 rows on desktop; narrow phones cap a little
     tighter (see the 640px media query below). Horizontal scroll is
     kept for narrow columns; sticky <thead> stays pinned to the top
     of each container while its own tbody scrolls beneath it.
     `contain: layout paint` isolates layout/paint work to this box
     so a scroll inside doesn't reflow the rest of the page. */
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: auto;
  margin: 0;
  contain: layout paint;
}
/* CRITICAL perf fix (Members-tab freeze on horizontal scroll):
   with ~3000 rows in one tbody and a sticky <thead>, every horizontal
   scroll frame forces the browser to recompute sticky positioning
   across the whole row set — O(n) per frame, which locks up the
   Director's laptop for seconds at a time. `content-visibility: auto`
   tells the browser to skip layout & paint of off-screen rows
   entirely, cutting per-frame work to O(visible rows). The
   `contain-intrinsic-size` hint keeps scrollbar geometry stable so
   the thumb doesn't jump as rows are skipped.
   Supported in every browser Prabhuji's team uses (Chromium/Edge/
   Safari 18+). Safari <18 degrades gracefully — it just ignores the
   properties and behaves as before, i.e. same freeze but no crash. */
.members-table tbody tr {
  content-visibility: auto;
  contain-intrinsic-size: 0 2.2rem;
}
.members-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.members-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-sunk);
  border-bottom: 2px solid var(--line-strong);
  text-align: left;
  padding: .5rem .6rem;
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  user-select: none;
  white-space: nowrap;
}
.members-table thead th.sortable { cursor: pointer; }
.members-table thead th.sortable:hover { color: var(--ink); }
.members-table thead th .sort-ind {
  font-size: .7rem;
  color: var(--peacock-deep);
  margin-left: .2rem;
}
.members-table tbody td {
  padding: .4rem .6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  line-height: 1.3;
  height: 2.2rem;
}
.members-table tbody tr { cursor: pointer; }
.members-table tbody tr:nth-child(even) { background: var(--surface-sunk); }
.members-table tbody tr:hover { background: var(--tint-followed); }
.members-table .col-check {
  width: 2rem;
  text-align: center;
}
.members-table .sl-cell {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
  width: 3rem;
}
.members-table .name-cell {
  font-weight: 500;
  color: var(--ink);
}
.members-table .phone-cell {
  font-family: var(--font-mono);
  font-size: .8rem;
  white-space: nowrap;
}
.members-table .wa-btn {
  display: inline-block;
  margin-left: .35rem;
  color: var(--mark-followed);
  text-decoration: none;
  font-size: .95rem;
}
.members-table .wa-btn:hover { text-decoration: underline; }
.members-table .pin-cell {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.members-table .coord-cell {
  color: var(--ink-2);
  font-size: .82rem;
}
.members-table .gender-cell {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--ink-2);
  text-align: center;
  width: 2.2rem;
}
/* Gender-aware bulk-assign highlighting: chanters whose gender matches
   the picked coord get a green tint; non-matching ones fade so the
   operator can't mistake them for candidates. The nth-child zebra
   still shows through the tint. */
.members-table tbody tr.gender-match {
  background: color-mix(in srgb, var(--mark-followed) 12%, var(--surface));
}
.members-table tbody tr.gender-match:nth-child(even) {
  background: color-mix(in srgb, var(--mark-followed) 18%, var(--surface-sunk));
}
.members-table tbody tr.gender-nomatch {
  opacity: .38;
  background: repeating-linear-gradient(
    45deg,
    transparent 0 6px,
    var(--surface-sunk) 6px 8px
  );
}
.members-table .actions-cell {
  text-align: right;
  white-space: nowrap;
  width: 4rem;
}
.members-table .actions-cell .btn.ghost {
  padding: .2rem .55rem;
  font-size: .74rem;
  background: transparent;
  color: var(--peacock-deep);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  text-decoration: none;
}
.members-table .actions-cell .btn.ghost:hover {
  background: var(--surface);
  border-color: var(--peacock-deep);
}
.members-table .empty-row td {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  background: transparent;
}
@media (max-width: 640px) {
  .members-table-wrap { max-height: 55vh; }
  .members-table { font-size: .8rem; }
  .members-table thead th { padding: .35rem .4rem; font-size: .68rem; }
  .members-table tbody td { padding: .3rem .4rem; height: 2rem; }
}

/* --------- Daily Report (Director) --------- */
.report-controls { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: .75rem 0 1rem; }
.report-controls input[type="date"] { padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.report-actions { display: flex; gap: .5rem; margin: .75rem 0; }
.report h3 { margin: 1.25rem 0 .5rem; }
.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.report-table th, .report-table td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.report-table th { color: var(--muted); font-weight: 500; }
.report-table tr.idle td { color: var(--muted); }
@media print {
  .topbar, .nav, .lb-side, .lb-strip, .help-banner, .report-controls, .report-actions { display: none !important; }
  .report-table-wrap { overflow: visible; }
}
