img{max-width:100%}

[hidden]{display:none!important}

/* ============================================================
   FONTS — the only fonts used anywhere on this site.
   No other font (no Google Fonts, no system-name fallback beyond
   a generic sans-serif safety net) is loaded or referenced.
     - Pricedown                  -> --ff-tabs    (the page nav tabs, plus the
                                                    Mission Passed / quarter-winner
                                                    name until that card is redesigned)
     - DIN Pro Condensed          -> --ff-head    (every header, weight set per level:
                                                    500 section h2, 700 h3-level names,
                                                    400 HUD values/readouts)
                                  -> --ff-display (small UI labels — sub-tab chips,
                                                    form buttons, stat numbers)
     - Chalet London Nineteen Sixty -> --ff       (body text — placeholder until the
                                                    redesign's Aktiv Grotesk is available)
     - Brushter                   -> --ff-script  (only the Krewe name on the Dead Drop's
                                                    certificate, drawn on a canvas by
                                                    certificate.js; "Gather. Think.
                                                    Act." is part of the logo artwork)
   All are licensed and stored in /fonts. Every element pulls its
   font from one of the variables below — never name a font directly
   in a selector.
   ============================================================ */
@font-face{
  font-family:"Pricedown";
  src:url("../fonts/pricedown.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}

@font-face{
  font-family:"Brushter";
  src:url("../fonts/brushter.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}

@font-face{
  font-family:"DIN Pro Condensed";
  src:url("../fonts/dinpro-cond-light.woff2") format("woff2");
  font-weight:300; font-style:normal; font-display:swap;
}

@font-face{
  font-family:"DIN Pro Condensed";
  src:url("../fonts/dinpro-cond-regular.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}

@font-face{
  font-family:"DIN Pro Condensed";
  src:url("../fonts/dinpro-cond-medium.woff2") format("woff2");
  font-weight:500; font-style:normal; font-display:swap;
}

@font-face{
  font-family:"DIN Pro Condensed";
  src:url("../fonts/dinpro-cond-bold.woff2") format("woff2");
  font-weight:700; font-style:normal; font-display:swap;
}

@font-face{
  font-family:"Chalet London Nineteen Sixty";
  /* Re-saved from the original OTF with its CFF table rebuilt -- Chrome's
     font sanitizer rejected the original's Top DICT ("Failed to parse Top
     DICT Data"), so body text silently fell back to the system sans-serif. */
  src:url("../fonts/chalet-london.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}


/* ============================================================
   COLOR SYSTEM — every color used anywhere on the site is named
   here, once. Never write a new hex/rgb value in a rule below;
   reference one of these variables (the "-rgb" triplets exist
   only so glows/overlays can add transparency via rgba(var(...)),
   they are the same colors, not new ones).

   Source: the designer's approved palette
   (design-assets/Assets/PESB GTA Colour Palette.jpg). The palette
   block below lists her colors in the exact order of her sheet:
   the six neon accents, then BOW Blue and navy, then the ellipse-
   gradient blue. The six neons are the ONLY accent colors on the
   site — one per Krewe (see mission cards). --surface, --surface2,
   --line and --ink are mixes of navy + BOW Blue, not new hues.
   --good/--bad are semantic aliases, not additional colors. Red is
   dark (~3.3:1 on navy, ~1.8:1 on BOW Blue) — avoid it for small text.
   ============================================================ */
:root{
  /* ---- the designer's palette, in her sheet's order ---- */
  --cyan:#32C8C1;   --cyan-rgb:50,200,193;    /* 1  R50 G200 B193 */
  --green:#00B074;  --green-rgb:0,176,116;    /* 2  R0 G176 B116 */
  --gold:#F4BF4C;   --gold-rgb:244,191,76;    /* 3  R244 G191 B76 */
  --orange:#FF742A; --orange-rgb:255,116,42;  /* 4  R255 G116 B42 */
  --violet:#DD3066; --violet-rgb:221,48,102;  /* 5  R221 G48 B102 (pink) */
  --red:#DD0000;    --red-rgb:221,0,0;        /* 6  R221 G0 B0 */
  --raise:#384867;  --raise-rgb:56,72,103;    /* 7  BOW Blue (PMS 2378) */
  --bg:#1B1C2B;     --bg-rgb:27,28,43;        /* 8  navy — page background */
  --glow:#00669B;   --glow-rgb:0,102,155;     /* ellipse gradient blue (fades to black) */

  /* ---- shades mixed from navy + BOW Blue ---- */
  --surface:#24293D;  --surface-rgb:36,41,61; /* navy -> BOW Blue, 30% */
  --surface2:#2B344C;                         /* navy -> BOW Blue, 55% */
  --line:#505E79;     --line-rgb:80,94,121;   /* BOW Blue lifted 12% toward white */
  --ink:#12121C; /* near-black navy, used for the logo outline */
  /* Hall of Fame cards (Most Wanted, The Champion, Survivors) and Player
     Stats: navy at 75%, the page background showing through (direct request). */
  --card-glass:rgba(var(--bg-rgb),.75);
  --field:var(--surface2); /* form fields, readouts, search box, icon buttons: a deeper BOW Blue, recessed into the cards (was --ink, which looked out of place -- direct request) */

  --good:var(--cyan);   --good-rgb:var(--cyan-rgb);   /* "on target" status */
  --bad:var(--red);     --bad-rgb:var(--red-rgb);     /* "needs attention" / destructive */

  /* point colors — one per scoring category, used on the Dossier's
     Scoring cards and the Score Board bar/legend. Three far-apart hues
     so the bar segments read at a glance, and none of them orange, so
     no Scoring card title blends into the Dossier's orange outline:
     Completed cyan (the base, "on target" like --good), Quality gold
     (the gold standard), Bonus pink (the extra that makes a 25, the
     same pink as the Red Hot heat tier). */
  --pt-c:var(--cyan); --pt-q:var(--gold); --pt-b:var(--violet);

  /* text — body text is pure white, a direct request: the old
     near-whites were hard to read on the BOW Blue cards. --dim stays a
     blue-gray for secondary labels/hints; it clears WCAG AA (4.5:1) on
     --raise (4.8:1) and --bg (8.8:1). (A separate --muted token, also
     pure white, was removed as a duplicate -- direct request.) */
  --text:#FFFFFF; --text-rgb:255,255,255; --dim:#B3BCCF;

  /* a phone's own notification card, for Command Center's mission alert
     previews only: the phone draws alerts in its colors, not ours */
  --os-sheet:#F4F5F8; --os-dim:#5B6275;

  /* page color — each tab has its own accent (see PAGE COLORS below);
     this is the default before any tab is marked current */
  --page:var(--cyan); --page-rgb:var(--cyan-rgb);
  /* the designer's backgrounds for this tab: wide screens / tall screens */
  --page-bg:url("../images/backgrounds/cyan-landscape.webp"); --page-bg-tall:url("../images/backgrounds/cyan-portrait.webp");

  --r:4px;
  --shadow-rgb:0,0,0; /* black, for every shadow and drop-shadow */
  --shadow:0 10px 34px rgba(var(--shadow-rgb),.5);

  /* fonts — see the FONTS comment above */
  --ff-tabs:"Pricedown",sans-serif;
  --ff-head:"DIN Pro Condensed",sans-serif;
  --ff-display:"DIN Pro Condensed",sans-serif;
  --ff:"Chalet London Nineteen Sixty",sans-serif;
  --ff-script:"Brushter",cursive;
  /* not the brand fonts, on purpose: a phone's own alert card (Command
     Center's alert previews), and the maths signs in the Dossier's sums */
  --ff-system:system-ui,sans-serif;
  --ff-math:"Cambria Math","Segoe UI Symbol",system-ui,sans-serif;

  /* ============================================================
     TYPE SCALE — every font-size on the site is one of these seven
     named steps, plus --fs-rail and --fs-hud (deliberate exceptions — see below).
     Never write a literal px font-size in a rule; reference one of
     these so resizing text sitewide means editing one place. The
     three smallest steps stay constant at every screen size (already
     small/compact); the three display steps shrink at the
     tablet-portrait and phone breakpoints below so big display
     headers don't overwhelm a small screen. */
  --fs-2xs: 11px;  /* smallest micro-text — the radio player's track label */
  --fs-xs:  13px;  /* small pills/links, footer links */
  --fs-sm:  14px;  /* labels, hints, table cells, chips, meta text, small Chalet stat numbers, the "Mission Board" title */
  --fs-base:16px;  /* body copy, form fields, buttons — the reading baseline. Raised from 15px
                       on direct request (body text read too small); 16px on phones below. */
  --fs-md:  18px;  /* emphasized text — card/mission titles, hero Chalet stat numbers (the big
                       standings %, roll scores), sub-tab chips, Q&A card headings (KREWE / WHAT?) */
  --fs-lg:  21px;  /* DIN Pro Condensed: h3-level headers — mission dept names, unit/team names, HUD stat values below 1200px,
                       theme names, reward tiers, footer wordmark, archive week label */
  --fs-xl:  30px;  /* DIN Pro Condensed: page section headers (h2) */
  --fs-hud: 24px;  /* DIN Pro Condensed: HUD stat values on laptop/desktop; below 1200px
                       they fall back to --fs-lg (see the step-down just below) */
  --fs-rail:19px;  /* the game-menu rail's button labels only — shrinks far more
                       aggressively on phone (bottom tab bar) than the rest of the
                       display scale, so it's kept as its own step */
}

@media(max-width:1199px){
  :root{ --fs-hud:var(--fs-lg); }
}

@media(max-width:899px){
  :root{ --fs-xl:26px; --fs-lg:19px; --fs-md:17px; --fs-rail:14px; }
}

@media(max-width:599px){
  :root{ --fs-xl:24px; --fs-lg:18px; --fs-md:16px; --fs-base:16px; --fs-rail:10.5px; }
}

*{box-sizing:border-box}

body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--ff); font-size:var(--fs-base); line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

/* ============================================================
   PAGE COLORS — from the redesign mockups, every tab has its own
   accent: the selected tab's shape, the HUD stat values and the
   glow at the bottom of the background and the "Mission Board" title
   all switch to it. (Her mockups color that title in a second accent;
   on direct request it follows the page color instead.) Board
   order matches the mockup's tab positions (its Rules/Scoring slots
   are Dossier/Dead Drop here); Command Center reuses the same order.
   Driven purely by which .menu-rail button has aria-current="true"
   (set by showMenu() in both menu.js files) — no extra JS.
   ============================================================ */
body:has(.menu-rail [aria-current="true"]:is([data-menu="missions"],[data-menu="setup"])){--page:var(--cyan); --page-rgb:var(--cyan-rgb); --page-bg:url("../images/backgrounds/cyan-landscape.webp"); --page-bg-tall:url("../images/backgrounds/cyan-portrait.webp")}
body:has(.menu-rail [aria-current="true"][data-menu="dossier"]){--page:var(--orange); --page-rgb:var(--orange-rgb); --page-bg:url("../images/backgrounds/orange-landscape.webp"); --page-bg-tall:url("../images/backgrounds/orange-portrait.webp")}
body:has(.menu-rail [aria-current="true"]:is([data-menu="dead-drop"],[data-menu="weekly"])){--page:var(--gold); --page-rgb:var(--gold-rgb); --page-bg:url("../images/backgrounds/gold-landscape.webp"); --page-bg-tall:url("../images/backgrounds/gold-portrait.webp")}
body:has(.menu-rail [aria-current="true"][data-menu="housekeeping"]){--page:var(--red); --page-rgb:var(--red-rgb); --page-bg:url("../images/backgrounds/red-landscape.webp"); --page-bg-tall:url("../images/backgrounds/red-portrait.webp")}
body:has(.menu-rail [aria-current="true"][data-menu="stats"]){--page:var(--violet); --page-rgb:var(--violet-rgb); --page-bg:url("../images/backgrounds/pink-landscape.webp"); --page-bg-tall:url("../images/backgrounds/pink-portrait.webp")}
body:has(.menu-rail [aria-current="true"]:is([data-menu="hall-of-fame"],[data-menu="content"])){--page:var(--green); --page-rgb:var(--green-rgb); --page-bg:url("../images/backgrounds/green-landscape.webp"); --page-bg-tall:url("../images/backgrounds/green-portrait.webp")}

/* Loading fallback, from the designer's palette gradient: navy at the
   top, BOW Blue by 62% of the way down, and the page color blending in
   over the bottom 7% of the screen. It shows only until the tab's
   background image (below) has loaded. Fixed to the viewport, so the
   page-color glow is always at the bottom of the screen, however long
   the page is. The header has no background of its own on the public
   board, so it reads as part of the same continuous page. */
body::before{
  content:""; position:fixed; z-index:-1; inset:0;
  background:linear-gradient(0deg,
    color-mix(in srgb, var(--page) 55%, var(--raise)) 0%,
    color-mix(in srgb, var(--page) 30%, var(--raise)) 7%,
    var(--raise) 38%,
    var(--bg) 100%);
}

/* The designer's own background for each tab (palms, blue side glows
   and the page-color glow along the bottom, all in the image), picked
   in PAGE COLORS above: --page-bg (her 3840x2160 landscape version) on
   screens wider than tall, --page-bg-tall (her 2160x3840 portrait
   version) on phones, portrait tablets and any window taller than it
   is wide. Only the one in use is downloaded. Lossless WebP,
   pixel-identical to her PNGs at about half the size (~1.1-1.3 MB
   each) -- lossy compression put visible lines in her gradients. It's
   a layer over body::before rather than a replacement, so the gradient
   above shows while a tab's image is still loading. */
body::after{
  content:""; position:fixed; z-index:-1; inset:0;
  background:var(--page-bg) center bottom / cover no-repeat;
}
@media(orientation:portrait){
  body::after{background-image:var(--page-bg-tall)}
}

/* ---------- Page loads and reloads ----------
   Direct request: a reload shouldn't pop. The page's content starts
   hidden (html.pg-enter, set in each template's <head>) and fades in
   once the page is ready (showPageWhen(), shared.js); the background
   (body::after) stays, with its own fade (html.bg-wait below). Leaving
   or reloading fades the content out first (html.pg-leave). The board's
   first visit of a session has the splash instead, so no pg-enter. */
html.pg-enter body > *:not(#loading-screen){opacity:0}
html.pg-in body > *:not(#loading-screen){animation:pg-in .35s ease both}
html.pg-leave body > *:not(#loading-screen){opacity:0; transition:opacity .15s ease}
@keyframes pg-in{from{opacity:0} to{opacity:1}}
@media (prefers-reduced-motion:reduce){
  html.pg-in body > *{animation:none}
  html.pg-leave body > *{transition:none}
}

/* ---------- Tab transitions ----------
   switchTabSmoothly() (shared.js) runs every tab change on both pages:
   the page content fades out, the tab changes while it's hidden, and
   it fades back in only once the new tab's background (and hero
   banner, on the board) has loaded and decoded, or after
   TAB_IMAGE_WAIT_MS at most. Nothing pops in half-drawn.
   html::after holds the old background (--prev-bg) over the new one
   while it loads -- it paints above body::after because it comes after
   body in the page -- then fades out, so the two cross-fade instead of
   flashing through the gradient.
   html.bg-wait does the same for the very first background on a fresh
   load: the gradient shows until the image is ready, then it fades in. */
html::after{
  content:""; position:fixed; z-index:-1; inset:0; pointer-events:none;
  background:var(--prev-bg, none) center bottom / cover no-repeat;
  opacity:0; transition:opacity .45s ease;
}
html.bg-hold::after{opacity:1; transition:none}
body::after{transition:opacity .5s ease}
html.bg-wait body::after{opacity:0; transition:none}

.page-heroes, .menu-main, .menu-pane{transition:opacity .28s ease}
html.tab-out :is(.page-heroes, .menu-main),
html.sub-out .menu-pane{opacity:0; transition-duration:.16s}
.page-hero img{transition:opacity .4s ease}

h1,h2,h3,h4{margin:0; text-wrap:balance}

p{margin:0}

button,input,select,textarea{font:inherit; color:inherit}

:focus-visible{outline:2px solid var(--gold); outline-offset:2px}

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

/* ============================================================
   RESPONSIVE TIERS
   phone <=599 / tablet portrait 600-899 / tablet landscape 900-1199
   / laptop 1200-1439 (the .wrap default below) / desktop >=1440
   ============================================================ */
.wrap{max-width:1180px; margin:0 auto; padding:0 24px}

@media(min-width:1440px){ .wrap{max-width:1280px} }                 /* desktop */

@media(max-width:1199px){ .wrap{max-width:920px} }                  /* tablet landscape */

@media(max-width:899px){ .wrap{max-width:100%; padding:0 20px} }    /* tablet portrait */

@media(max-width:599px){ .wrap{padding:0 16px} }                    /* phone */

@keyframes loadingZoom{ from{transform:scale(1.12)} to{transform:scale(1)} }

@keyframes loadingPulse{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.07)}
}

/* ---------- HUD header ----------
   Base .hud is Command Center's header: an opaque, sticky bar with a
   bottom border, unchanged since it was first built. The Mission Board
   additionally carries .hud-blend, which strips all of that so the
   header sits flush in the page — same background as everything else,
   no seam, scrolls away with the rest of the content instead of
   floating. Keep these as two rules (base + override), never edit
   .hud itself for a Mission-Board-only tweak — that would change
   Command Center too. */
.hud{
  position:sticky; top:0; z-index:40;
  background:rgba(var(--bg-rgb),.93); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

.hud.hud-blend{position:static; background:none; backdrop-filter:none; border-bottom:0}

/* Mission Board only: generous space above the header, a touch less
   than the mockup's. Command Center's sticky bar keeps its tight
   padding so it doesn't eat the screen while scrolling. */
.hud.hud-blend .hud-row{padding-top:56px}

@media(max-width:899px){ .hud.hud-blend .hud-row{padding-top:36px} }

@media(max-width:599px){ .hud.hud-blend .hud-row{padding-top:22px} }

.hud-row{display:flex; align-items:center; gap:20px; padding:14px 0 12px; flex-wrap:wrap}

.brandmark{display:flex; align-items:center; gap:14px; margin-right:auto}

.brandmark .gta-logo{
  display:block; height:180px; width:auto;
  filter:drop-shadow(0 4px 10px rgba(var(--shadow-rgb),.55));
}

@media(max-width:899px){ .brandmark .gta-logo{height:62px} }

@media(max-width:599px){ .brandmark .gta-logo{height:65px} }

/* Bowen & Bowen wordmark — first thing in the header, ahead of the
   PESB GTA logo (it used to sit alone in a footer, since removed). */
.brandmark .bow-logo{height:46px; width:auto; display:block; margin-right:10px}

@media(max-width:899px){ .brandmark .bow-logo{height:30px; margin-right:4px} }

@media(max-width:599px){ .brandmark .bow-logo{height:24px; margin-right:0} }

/* The page title ("Mission Board" / "Command Center", {{HUD_TITLE}} in
   the shared partials/hud.html) beside the Bowen & Bowen wordmark, from
   the mockups. Its color is the tab's page color, --page. */
.hud-title{
  align-self:flex-end; margin-bottom:4px;
  font-family:var(--ff); font-size:var(--fs-sm); letter-spacing:.18em; text-transform:uppercase;
  color:var(--page); line-height:1; white-space:nowrap;
}

/* Phones: the title stacks under the Bowen & Bowen wordmark so the
   Week/day/Kliks stats stay on the same line beside it (direct
   request); they only wrap below it on the narrowest screens (~340px). */
@media(max-width:599px){
  .hud-row{gap:10px}
  .brandmark{flex-direction:column; align-items:flex-start; gap:7px}
  .hud-title{align-self:flex-start; letter-spacing:.08em; margin-bottom:0}
}

/* Week / day / Kliks: a small white label over a big page-colored
   value, centered, with a thin divider between columns, as in the
   mockups. The day label ("Tues") and date value ("29-SEP-26") are
   filled in by renderHud() in shared.js. Used by both pages. */
.hudstats{display:flex; align-items:stretch}

.hudstat{
  display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:0 24px; border-left:1px solid rgba(var(--text-rgb),.35);
}

.hudstat:first-child{padding-left:0; border-left:0}

.hudstat:last-child{padding-right:0}

.hudstat-label{
  font-family:var(--ff); font-size:var(--fs-xs); letter-spacing:.16em; text-transform:uppercase;
  color:var(--text); line-height:1;
}

.hudstat-value{
  font-family:var(--ff-head); font-weight:500; font-size:var(--fs-hud); letter-spacing:.01em; text-transform:uppercase;
  color:var(--page); line-height:1; font-variant-numeric:tabular-nums;
}

/* Tighter columns on a phone so all three still fit on one line. */
@media(max-width:599px){
  .hudstat{padding:0 8px; gap:6px}
  .hudstat-label{font-size:var(--fs-2xs); letter-spacing:.12em}
}

/* "Offline · Synced Tue 9:42 AM" under the HUD stats, shown only while
   the data on screen might be out of date (renderSyncStatus(),
   shared.js). Gold like other warnings; command-center.css turns it red
   there, where being offline means saves won't go through. It floats
   just under the stats rather than taking a row of its own, so showing
   it never pushes the stats out of line with the logo and page title. */
.hud-right{position:relative}

.hud-sync{
  position:absolute; z-index:5; top:calc(100% + 8px); right:0;
  display:flex; justify-content:flex-end; width:max-content; max-width:calc(100vw - 32px);
}

.hud-sync:not(:has(> :not([hidden]))){display:none}

.sync-status{
  cursor:pointer;
  padding:5px 12px; border:1px solid rgba(var(--gold-rgb),.5); border-radius:999px;
  background:rgba(var(--gold-rgb),.12); color:var(--gold);
  font-family:var(--ff-display); font-size:var(--fs-sm); letter-spacing:.06em; text-transform:uppercase;
  line-height:1.2; text-align:right;
}

@media(max-width:599px){ .sync-status{font-size:var(--fs-xs); padding:4px 10px} }

/* Pull to refresh, installed app only (initPullToRefresh(), board/app.js).
   An installed app has no reload button and, on iPhone, no built-in
   pull-to-refresh either. The page's own bounce is turned off there so
   the pull only moves this circle: it drops in from above the screen,
   its arrow turning as it's pulled, gold once far enough to let go, and
   spinning while the board syncs. JS sets --ptr-y (how far it's down). */
html.installed-app, html.installed-app body{overscroll-behavior-y:none}

.ptr{
  --ptr-y:0px;
  position:fixed; z-index:97; left:50%; top:0; /* above the tip, which teaches this very pull */
  width:40px; height:40px; margin-left:-20px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--surface2); border:1px solid var(--line); box-shadow:var(--shadow); color:var(--dim);
  transform:translateY(calc(var(--ptr-y) - 48px)); opacity:0;
  pointer-events:none;
}

.ptr.pulling{opacity:1}

.ptr.settle{transition:transform .25s ease, opacity .25s ease}

.ptr.ready, .ptr.refreshing{color:var(--gold); border-color:rgba(var(--gold-rgb),.6)}

.ptr svg{display:block; width:22px; height:22px}

.ptr.refreshing svg{animation:ptrSpin .8s linear infinite}

@keyframes ptrSpin{to{transform:rotate(360deg)}}

/* "Swipe down to refresh" -- shown in the installed app the first time
   it's opened and again after each update (initRefreshTip(), app.js),
   like the hint other phone apps give. Gold chevrons drift downward
   over and over to show the motion. */
.ptr-tip{
  position:fixed; z-index:96; left:50%; top:calc(14px + env(safe-area-inset-top));
  transform:translateX(-50%); width:max-content; max-width:calc(100vw - 32px);
  display:flex; align-items:center; gap:14px;
  background:rgba(var(--surface-rgb),.97); backdrop-filter:blur(10px);
  border:1px solid rgba(var(--gold-rgb),.5); border-radius:var(--r); box-shadow:var(--shadow);
  padding:12px 14px 12px 16px; font-size:var(--fs-base); color:var(--text);
  animation:ptrTipIn .35s ease-out;
}

.ptr-tip-arrows{display:flex; flex-direction:column; align-items:center; color:var(--gold); flex:none}

.ptr-tip-arrows svg{display:block; width:22px; height:14px; animation:ptrTipDrift 1.4s ease-in-out infinite; opacity:0}

.ptr-tip-arrows svg + svg{margin-top:-4px; animation-delay:.2s}

.ptr-tip-arrows svg + svg + svg{animation-delay:.4s}

.ptr-tip-text b{display:block; font-family:var(--ff-head); font-weight:700; font-size:var(--fs-md); text-transform:uppercase; letter-spacing:.02em}

.ptr-tip .btn{flex:none}

@keyframes ptrTipDrift{
  0%{opacity:0; transform:translateY(-6px)}
  40%{opacity:1}
  80%,100%{opacity:0; transform:translateY(6px)}
}

@keyframes ptrTipIn{from{opacity:0; transform:translate(-50%,-12px)}}

/* Reduce motion strips every animation (rule near the top), which would
   leave the chevrons at their starting opacity:0 -- show them still. */
@media (prefers-reduced-motion:reduce){ .ptr-tip-arrows svg{opacity:1} }

/* The board's one bottom banner (board/app.js): "New version ready" or
   the Add to Home Screen hint. Above the phone's bottom tab bar. */
.app-banner{
  position:fixed; z-index:90; left:16px; right:16px; bottom:24px; margin:0 auto; max-width:560px;
  display:flex; align-items:center; gap:12px;
  background:rgba(var(--surface-rgb),.97); backdrop-filter:blur(10px);
  border:1px solid rgba(var(--gold-rgb),.5); border-radius:var(--r); box-shadow:var(--shadow);
  padding:12px 12px 12px 16px; font-size:var(--fs-base); color:var(--text);
}

.app-banner-text{flex:1; min-width:0}

.app-banner .btn{flex:none}

.app-banner .icon-btn svg{width:14px; height:14px}

@media(max-width:599px){ .app-banner{bottom:calc(84px + env(safe-area-inset-bottom)); font-size:var(--fs-sm)} }

/* ============================================================
   GAME MENU (Mission Board only) — a pause-menu-style shell:
   a left rail of main topics (Briefing/Scoring/Themes/Rules/Stats),
   a horizontally-scrollable sub-tab row for topics that need one, and
   the existing panel/card content underneath, untouched. Desktop and
   tablet keep the left rail (narrower on tablet-portrait); phones swap
   it for a fixed bottom tab bar, since that's where most people will
   actually use this site. Command Center never uses any of this.
   ============================================================ */
.menu-shell{display:flex; align-items:flex-start; gap:28px}

.menu-rail{
  display:flex; flex-direction:column; gap:4px; flex:none; width:196px;
  position:sticky; top:18px;
}

.menu-rail button{
  display:flex; align-items:center; gap:12px; width:100%;
  background:none; border:1px solid transparent; border-radius:var(--r);
  padding:12px 14px; cursor:pointer; text-align:left;
  /* letter-spacing stays 0: Pricedown's long m/l/h strokes under the next
     letter are ligatures, and browsers drop ligatures from any text with
     letter-spacing (user, 2026-10-09: the tabs lacked them). */
  font-family:var(--ff-tabs); font-size:var(--fs-rail); letter-spacing:0;
  /* No text-transform: Pricedown's lowercase glyphs differ from its capitals,
     and the redesign mockup uses the labels as typed in Title Case
     ("Hall of Fame"), not forced ALL CAPS. */
  color:var(--dim);
}

.menu-rail button .mi{width:20px; height:20px; flex:none}

.menu-rail button:hover{color:var(--text); background:rgba(var(--line-rgb),.3)}

/* Selected tab: the mockup's asymmetric slab in the page color —
   top edge rises left-to-right, left edge leans in at the bottom. */
.menu-rail button[aria-current="true"]{
  color:var(--text); background:var(--page); border-color:transparent; border-radius:0;
  clip-path:polygon(0 16%, 100% 0, 99.5% 100%, 3.5% 100%);
}

@media(max-width:899px){
  .menu-rail{width:118px}
  .menu-rail button{flex-direction:column; gap:6px; padding:12px 6px; text-align:center}
  .menu-rail button .mi{width:22px; height:22px}
}

.menu-main{flex:1; min-width:0}

.subtabs{display:flex; gap:8px; overflow-x:auto; margin-bottom:26px; padding-bottom:3px}

.subtabs button{
  flex:none; background:none; cursor:pointer; white-space:nowrap;
  border:1px solid var(--line); border-radius:20px; padding:9px 18px;
  font-family:var(--ff-display); font-size:var(--fs-md); letter-spacing:.09em; text-transform:uppercase;
  color:var(--text);
}

.subtabs button:hover{color:var(--text); border-color:var(--text)}

.subtabs button[aria-current="true"]{color:var(--bg); background:var(--gold); border-color:var(--gold); font-weight:700}

/* Tighter on a phone so three sub-tabs at --fs-base still fit on one
   line (Stats and Hall of Fame spilled over at 360-390px otherwise). */
@media(max-width:599px){
  .subtabs{gap:6px}
  .subtabs button{padding:9px 11px; letter-spacing:.05em}
}

@media(max-width:599px){
  /* .menu-rail leaves normal flow here (position:fixed, below), so
     .menu-main becomes .menu-shell's only in-flow child -- but with
     flex-direction:column, width becomes the CROSS axis, governed by
     align-items, not the flex/flex-basis property. The base rule's
     align-items:flex-start (correct for desktop's row layout, where it
     only affects vertical alignment) left .menu-main sized to its
     widest child's intrinsic content width instead of the viewport,
     so anything wide and non-wrapping inside it (the 5-item Stats
     sub-tab row, a wide table) silently pushed the whole page wider
     than the screen instead of scrolling within its own .scroll-x/
     overflow-x:auto container. Stretching .menu-main to full width
     here is the fix -- everything downstream already has correct
     responsive rules of its own (auto-fill/minmax grids, .scroll-x,
     .trow's own breakpoint), they just never had a correctly-sized
     parent to work within. */
  .menu-shell{flex-direction:column; align-items:stretch}
  .menu-rail{
    position:fixed; z-index:60; top:auto; left:0; right:0; bottom:0; width:auto;
    flex-direction:row; justify-content:space-around; gap:0;
    background:rgba(var(--surface-rgb),.97); backdrop-filter:blur(10px);
    border-top:1px solid var(--line);
    padding:6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .menu-rail button{flex:1; flex-direction:column; gap:4px; padding:7px 2px; border-radius:8px}
  .menu-rail button .mi{width:20px; height:20px}
  .menu-main{padding-bottom:78px}
}

/* ---------- generic blocks ---------- */
main{padding:40px 0 40px}

section{margin-bottom:56px}

@media(max-width:599px){ main{padding:20px 0 0} section{margin-bottom:40px} }

.eyebrow{font-size:var(--fs-sm); letter-spacing:.2em; text-transform:uppercase; color:var(--gold); font-weight:700}

.h2{font-family:var(--ff-head); font-weight:500; font-size:var(--fs-xl); letter-spacing:.01em; text-transform:uppercase; margin:8px 0 6px}

.h3{font-family:var(--ff-head); font-weight:700; font-size:var(--fs-lg); letter-spacing:.01em; text-transform:uppercase}

.lede{color:var(--text); font-size:var(--fs-base)}

.sechead{margin-bottom:22px}

.panel{background:var(--raise); border:1px solid var(--page); border-radius:var(--r)}

.scroll-x{overflow-x:auto}

.chip{
  display:inline-flex; align-items:center; gap:6px;
  font-size:var(--fs-sm); font-weight:400; letter-spacing:.1em; text-transform:uppercase;
  padding:4px 10px; border-radius:2px; border:1px solid currentColor;
  /* This site's fonts ride high in their line: a little more padding on
     top than below centers the letters (user, 2026-10-22: notes and tags
     always properly centered). The same for .chip.sm, .tag and .note. */
  padding-top:6px; padding-bottom:2px;
}

.chip.safety{color:var(--orange)} .chip.customer{color:var(--cyan)}

.chip.environment{color:var(--gold)} .chip.fun{color:var(--violet)}

.chip.plain{color:var(--text)}

.chip.solid{border:0; background:var(--gold); color:var(--bg)}

.chip.missed{color:var(--orange)}

.chip.scheduled{color:var(--cyan)}

/* A mission week saved by autosave but never posted (Command Center). */
.chip.drafted{color:var(--violet); border-style:dashed}

.chip.sm{font-size:var(--fs-xs); padding:4px 8px 0}

/* ---------- mission cards ----------
   Styled to the designer's Missions mockup: a BOW Blue card framed in
   its Krewe's color (thick top bar, thin border, a glowing rule under
   the header), the Krewe name and WHAT?/WHY?/PROOF?/SCORE? headings in
   that color, and a darker points band at the bottom. Everything
   color-related reads --krewe, set per Krewe below. */
:where(.mission){--krewe:var(--cyan); --krewe-rgb:var(--cyan-rgb)} /* until its .krewe-* class */
.mission{
  background:var(--raise);
  border:1px solid var(--krewe); border-top:6px solid var(--krewe);
  border-radius:0; padding:0; display:flex; flex-direction:column;
  box-shadow:0 4px 12px rgba(var(--shadow-rgb),.35); /* tighter than the site's --shadow, on request */
}

/* Keyed to KREWE (matching KREWEKEY's slugs in shared.js), not theme.
   6 Krewes, 6 neon colors — every Krewe has its own, assigned in the
   order teal, orange, pink, green, yellow, red to KREWES' alphabetical
   order (a direct request). Cards render 2 per row on desktop and
   1 per row on phones; in both, no similar pair (pink/red,
   red/orange, orange/gold, teal/green) ends up side by side or
   stacked:

     Distribution  teal    |  Engineering  orange
     Inventory     pink    |  Production   green
     Quality       gold    |  Sales        red                      */
/* Every Krewe's colour, once (user, 2026-10-09: classes, not repeats):
   any element with a .krewe-* class gets --krewe / --krewe-rgb for itself
   and everything in it. Mission cards, the Dead Drop's drop card, the
   exported cards, Klik tags and the Score Board read them. A component's
   own default sits in :where(), so this always wins. */
.krewe-distribution{--krewe:var(--cyan);   --krewe-rgb:var(--cyan-rgb)}
.krewe-engineering {--krewe:var(--orange); --krewe-rgb:var(--orange-rgb)}
.krewe-inventory   {--krewe:var(--violet); --krewe-rgb:var(--violet-rgb)}
.krewe-production  {--krewe:var(--green);  --krewe-rgb:var(--green-rgb)}
.krewe-quality     {--krewe:var(--gold);   --krewe-rgb:var(--gold-rgb)}
.krewe-sales       {--krewe:var(--red);    --krewe-rgb:var(--red-rgb)}

.mission-top{
  padding:16px 28px 18px; border-bottom:1px solid var(--krewe);
  box-shadow:0 2px 8px -2px rgba(var(--krewe-rgb),.7);
}

.mission-krewe{
  font-family:var(--ff-head); font-weight:700; font-size:var(--fs-xl);
  letter-spacing:.01em; text-transform:uppercase; line-height:1.05; color:var(--krewe);
}

.mission-tags{display:flex; gap:12px; flex-wrap:wrap; margin-top:12px}

/* The mockup's tags: the theme tag takes the Krewe's color (not the
   theme's own, which .chip.safety etc. still use everywhere else) and
   the category tag is a quiet gray -- both square, bold, centered. */
.mission .chip{
  justify-content:center; min-width:104px; padding:5px 16px; border-width:2px; border-radius:0;
  font-weight:700; font-size:var(--fs-xs); letter-spacing:.06em; color:var(--krewe);
}

.mission .chip.plain{color:var(--dim); border-color:rgba(var(--text-rgb),.28)}

.mission-title{padding:24px 28px 0; font-size:var(--fs-md); text-transform:uppercase; font-weight:700; letter-spacing:.02em; line-height:1.3}

.brief{display:flex; flex-direction:column; gap:14px; padding:12px 28px 26px}

/* One WHAT?/WHY?/PROOF?/SCORE? row of a mission card: heading stacked
   over its answer, per the mockup */
.brief-row{display:flex; flex-direction:column; gap:2px}

.brief-row .q{
  font-family:var(--ff-head); font-weight:500; font-size:var(--fs-lg);
  letter-spacing:.01em; line-height:1.2; color:var(--krewe);
}

.brief-row .a{color:var(--text); font-size:var(--fs-base); line-height:1.45}

.mission-foot{
  margin-top:auto; padding:16px 28px 18px; border-top:1px solid var(--krewe);
  background:rgba(var(--bg-rgb),.55);
}

.pts{display:flex; gap:8px 22px; flex-wrap:wrap}

/* A mission card's points band, per the mockup: big condensed type,
   light-weight words and Krewe-colored numbers */
.pt{display:flex; align-items:baseline; gap:6px; font-family:var(--ff-head); font-weight:300; font-size:var(--fs-lg); letter-spacing:.01em; text-transform:uppercase; color:var(--text); line-height:1}

.pt b{font-weight:500; color:var(--krewe)}

@media(max-width:599px){
  .mission-top{padding:14px 20px 16px}
  .mission-title{padding:20px 20px 0}
  .brief{padding:10px 20px 22px}
  .mission-foot{padding:14px 20px 16px}
  .mission .chip{min-width:0}
}

/* ---------- stars ---------- */
.stars{display:inline-flex; gap:2px}

.stars svg{width:16px; height:16px; display:block}

.stars .on{fill:var(--gold)} .stars .off{fill:none; stroke:var(--dim); stroke-width:1.6px}

.krewe-block{margin-bottom:28px}

.krewe-head{display:flex; align-items:baseline; gap:12px; padding-bottom:10px; border-bottom:2px solid var(--line); margin-bottom:2px; flex-wrap:wrap}

.krewe-head .n{font-family:var(--ff-head); font-weight:700; font-size:var(--fs-lg); letter-spacing:.01em; text-transform:uppercase}

.krewe-head .meta{font-size:var(--fs-sm); letter-spacing:.12em; text-transform:uppercase; color:var(--dim); margin-left:auto}

/* ---------- heat status — a team's (or an individual's) % of target,
   translated into the game's own 5-tier language (see HEAT_TIERS in
   shared.js), styled after a GTA wanted meter: a star row that fills
   in and glows at the top tier. Reuses the .stars markup from the
   individual weekly rating but recolors it per tier via currentColor.
   Tier colors climb white -> yellow -> orange -> pink -> red, a direct
   request, so the scale reads cold-to-hot at a glance. */
@keyframes heatPulse{
  0%,100%{ filter:drop-shadow(0 0 0 rgba(var(--red-rgb),0)); }
  50%{ filter:drop-shadow(0 0 5px rgba(var(--red-rgb),.85)); }
}

.heat{display:inline-flex; align-items:center; gap:7px; margin-top:6px}

.heat .stars svg{width:14px; height:14px}

.heat-name{font-family:var(--ff-display); font-size:var(--fs-xs); letter-spacing:.08em; text-transform:uppercase; white-space:nowrap}

.heat .stars .on,.hl-item .stars .on{fill:currentColor}

.heat .stars .off,.hl-item .stars .off{fill:none; stroke:currentColor; stroke-width:1.6px; opacity:.35}

.heat-wasted{color:var(--dim)} /* the bottom tier: grey, one star lit */

.heat-heating{color:var(--gold)}

.heat-fire{color:var(--orange)}

.heat-redhot{color:var(--violet)}

.heat-wanted{color:var(--red)}

.heat-wanted .stars,.hl-item.heat-wanted .stars{animation:heatPulse 1.6s ease-in-out infinite}

.heat-legend{display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 20px}

.hl-item .stars svg{width:15px; height:15px}

:is(.track,.legend) i.c{background:var(--pt-c)} :is(.track,.legend) i.q{background:var(--pt-q)} :is(.track,.legend) i.b{background:var(--pt-b)}

table.data{width:100%; border-collapse:collapse; font-size:var(--fs-sm); min-width:640px}

table.data th{
  text-align:left; font-size:var(--fs-sm); letter-spacing:.12em; text-transform:uppercase; color:var(--dim);
  padding:11px 14px; border-bottom:1px solid var(--line); font-weight:700; white-space:nowrap
}

table.data td{padding:12px 14px; border-bottom:1px solid rgba(var(--line-rgb),.4); vertical-align:middle}

table.data td.n{text-align:right; font-variant-numeric:tabular-nums}

table.data tr:last-child td{border-bottom:0}

table.data tbody tr:hover{background:rgba(var(--line-rgb),.25)}

/* Skipped-this-week score rows and inactive roster rows -- a muted
   treatment for "not the current thing to look at". */
table.data tbody tr.dim{opacity:.55}

/* The Kliks list (#unit-groups, command-center.html), grouped into one
   collapsible <details> per Krewe instead of one flat table -- ahead of
   the program scaling to roughly 79 Kliks. Native <details>/<summary>
   rather than a hand-rolled toggle, styled to match the rest of the
   dark navy theme instead of the browser's own default disclosure
   chrome. */
.krewe-group{border:1px solid var(--line); border-radius:var(--r); overflow:hidden}

.krewe-group + .krewe-group{margin-top:12px}

.krewe-group summary{
  display:flex; align-items:center; gap:10px; padding:14px 18px; cursor:pointer;
  font-family:var(--ff-head); font-weight:700; font-size:var(--fs-lg); letter-spacing:.01em; text-transform:uppercase; list-style:none;
}

.krewe-group summary::-webkit-details-marker{display:none}

.krewe-group-chev{width:18px; height:18px; flex:none; transition:transform .15s ease}

.krewe-group[open] .krewe-group-chev{transform:rotate(90deg)}

/* The krewe's own Headcount total, on direct request now its own span
   (`.krewe-group-headcount`, separate from the Klik-count span below
   it) rather than glued onto the same one with a "|" divider between
   them. `margin-left:auto` on the headcount span pushes this whole
   trailing pair to the header's right side (same as before); the Klik-
   count span's own fixed `164px` width -- matching `.unit-actions`'
   own desktop column width below -- right-aligns "N Kliks" at the same
   spot it already sat at.

   The headcount span's own position was left to fall out of that
   naturally (no explicit width/margin of its own), which put it
   visibly further left than the table's own Count column below it, on
   direct request off a screenshot -- two real, stacking offsets caused
   it: the summary's own 18px side padding vs. the table having none at
   all (it sits flush against .krewe-group's border), and the summary's
   `gap:10px` (applying between every one of its children) adding space
   between the headcount and Klik-count spans that has no equivalent
   between two adjacent table cells. `.krewe-group-count`'s
   `margin-left:-10px` cancels that `10px` gap against the headcount
   span specifically (every other gap in the summary --
   chevron/name/headcount -- is untouched).

   `margin-right` on `.krewe-group-count` was first set to `-18px`,
   canceling the summary's own padding entirely so the pair sat truly
   flush against .krewe-group's border -- matching the table's own
   (padding-less) right edge, but NOT actually matching what the table
   row's own content visually does: a row's action icons aren't flush
   against that border either, they sit `14px` inside it (the actions
   `<td>`'s own right cell-padding). Flush-against-the-border read as a
   real bug on a screenshot -- "N Kliks" touching the card's border with
   no breathing room, unlike every button below it -- so `-18px` was
   changed to `-4px`, which nets a `14px` gap from the border instead of
   `0px`, matching the buttons' own inset exactly. This shifts the whole
   trailing pair (both spans move together, still with 0 gap between
   them) 14px further left than before, which is also what puts the
   headcount total noticeably closer to the table's Count column below
   it, on the same direct request.

   A THIRD source of drift only showed up once those two were fixed and
   the numbers were actually measured, not just eyeballed: the headcount
   span had no width of its own, so it shrank to fit its own content --
   meaning a 2-digit krewe total (Engineering's "38") sat several px
   further right than a 3-digit one (Distribution's "465"), since a
   narrower span pushed against the same fixed right edge leaves its
   LEFT edge (where the icon actually sits) further right. The table's
   own Count column never has this problem, since it's a genuinely
   fixed-width `<td>` with left-aligned content regardless of digit
   count. Giving `.krewe-group-headcount` a fixed width (left-aligned by
   default) makes its icon land at a constant x position regardless of
   the krewe's own digit count too, matching the table's Count column.

   That width was originally `42px`, measured back when `.krewe-group-
   count`'s own `margin-right` was still `-18px` (flush against the
   border). Once that margin changed to `-4px` in a later round (to
   stop "N Kliks" from touching the border), the whole adjacent pair
   shifted `14px` right along with it -- since the two spans still sit
   flush against each other with zero gap between them (see
   `margin-left:-10px` above), moving `.krewe-group-count` moves
   `.krewe-group-headcount`'s available room right by the same amount,
   which re-broke the pixel-exact column alignment this width exists
   for in the first place: the header's icon column drifted `14px`
   left of the table's own Count icon, on a direct follow-up report.
   Shrinking the width from `42px` to `28px` re-closes that same `14px`
   -- pulling the icon's own LEFT edge back to its original target
   position without touching `.krewe-group-count`'s own (correct, still
   wanted) `-4px` border inset at all. `28px` is intentionally too
   narrow to fit a 3-digit number's full text (11px icon + ~24px for
   "465") without the number overflowing the box's own right edge --
   harmless here specifically because nothing occupies the space
   immediately to its right (`.krewe-group-count`'s own text is right-
   aligned within its own much wider box, well clear of where a
   slightly-overflowing 3-digit number would land) -- but it's the
   reason this width is deliberately NOT sized to comfortably contain
   its own worst-case content the way the table's real `<td>` is. */
.krewe-group-headcount{margin-left:auto; width:28px; color:var(--text); font-size:var(--fs-sm); font-family:var(--ff); letter-spacing:normal; text-transform:none; white-space:nowrap}

.krewe-group-count{width:164px; margin-left:-10px; margin-right:-4px; text-align:right; color:var(--text); font-size:var(--fs-sm); font-family:var(--ff); letter-spacing:normal; text-transform:none; white-space:nowrap}

/* The group header's own headcount total lengthened this line -- on a
   narrow phone, a long krewe name plus the extra headcount span could
   overflow the row and get silently clipped, since .krewe-group relies
   on overflow:hidden for its rounded corners. Letting the summary wrap
   (both trailing spans dropping to their own line under the name)
   avoids that the same way the per-Klik rows below already do,
   instead of finding out about a real clipped header the hard way. The
   desktop-only negative margins above (there to align with a table
   column that isn't even visible at this width the same way) are reset
   back to 0 here too, so a wrapped mobile row doesn't inherit an
   unrelated rightward nudge that only made sense next to the table. */
@media(max-width:599px){
  .krewe-group summary{flex-wrap:wrap; row-gap:4px}
  .krewe-group-headcount{margin-left:0; width:auto}
  .krewe-group-count{width:auto; margin-left:auto; margin-right:0}
}

.krewe-group table.data{border-top:1px solid var(--line)}

/* The Count (Headcount) icon + number, its own real <td> now
   (renderUnitGroups(), command-center.html) rather than inline text
   glued onto the Klik name's own cell. Pinned to a fixed 12px
   regardless of table.data's own font-size:var(--fs-sm), so it doesn't
   have to track that token if it ever changes. Reused as-is (no
   separate icon) for the krewe group header's own headcount total and
   the grand total below -- a brief attempt at a distinct "two-person"
   glyph for those two spots was reverted on direct request, back to
   this one glyph everywhere a Headcount shows. */
.headcount-icon{width:11px; height:11px; vertical-align:-1px; margin-right:3px}

/* The whole list's Headcount total (every Klik across every krewe,
   never filtered by the search field), sitting just above the krewe
   groups themselves. Right-aligned (not left, its default position as
   a block-level div) on direct request, matching the krewe headers'
   own trailing-right stats above. */
.unit-grand-total{margin-top:14px; display:flex; align-items:center; justify-content:flex-end; gap:5px; font-size:var(--fs-sm); color:var(--text); font-weight:700; letter-spacing:.04em; text-transform:uppercase}

/* Desktop column alignment, on direct request off a screenshot: Count
   used to sit wherever the Klik name's own text happened to end, so its
   horizontal position drifted from one Krewe's table to the next (a
   short-named Engineering Klik vs. a long-named Distribution one) and
   it read as closer to the name than to the actions it's meant to sit
   near. table-layout:fixed plus explicit widths on Count and Actions
   (Name gets no width, so it absorbs whatever's left) pins both to the
   same width -- and therefore the same on-screen position -- across
   every one of the 6 per-krewe tables, all flush against the action
   icons rather than trailing the name. 140px comfortably fits all 3
   circular 30px icon-btns without wrapping; 70px comfortably fits the
   Count icon plus a 2-3 digit number. Desktop-only -- the responsive
   block below switches .unit-table to display:block for phone/tablet,
   where table-layout no longer applies anyway.

   140px for Actions turned out too tight -- 3 circular 30px icon-btns
   plus their 14px sibling margins need ~118px, and the literal space
   characters JS joins them with are real inline content too, so the
   3rd icon routinely wrapped onto its own line even on a wide desktop
   (found from a real screenshot, not by eye-balling the CSS: table-
   layout:fixed only fixes the COLUMN width, it doesn't stop the cell's
   own inline content from wrapping once that content doesn't fit).
   Count moved from 70px to 56px (it only ever needs an 11px icon + a
   2-3 digit number, so it can afford to sit closer to the buttons, on
   direct request) and Actions widened to 164px.

   The first attempt at stopping the wrap put display:flex directly on
   td.unit-actions itself -- wrong, and it shipped a worse bug: a `<td>`
   with display:flex stops participating in the table's own column/row
   layout model entirely (it's no longer a table-cell, just a flex
   block sitting where one used to be), so table-layout:fixed's column
   math broke and the table stopped stretching to its container's full
   width -- it shrank to fit only its actual content, leaving a large
   dead gap between the action icons and the krewe card's own right
   edge, on every row. Caught from a screenshot showing that exact gap.
   Fixed by keeping the `<td>` a normal table-cell (nothing but `width`
   on it) and moving the flex row -- and the wrap fix it exists for --
   onto a plain `<div class="unit-actions-row">` wrapping the three
   buttons *inside* the cell instead of the cell itself.

   min-width:0 here overrides table.data's own sitewide `min-width:
   640px` (meant for generic tables that fall back to .scroll-x's
   horizontal scroll on a narrow screen) -- .unit-table never needed
   that floor once it got table-layout:fixed with narrow, explicit
   Count/Actions widths, but nothing had actually said so, and at
   900-1199px (tablet landscape, where .wrap's own max-width shrinks to
   920px) the Kliks card's real content width can land below 640px.
   With the 640px floor still active there, the table was forced wider
   than its own krewe-group card, and since .krewe-group clips overflow
   (its rounded corners depend on overflow:hidden) rather than
   scrolling it, the Remove icon on every row was silently cut off
   instead of either scrolling into view or reflowing -- caught only by
   actually rendering the page at that exact width, not by reading the
   CSS. */
table.data.unit-table{table-layout:fixed; min-width:0}

table.data.unit-table td.unit-count{width:56px}

table.data.unit-table td.unit-actions{width:164px}

table.data.unit-table .unit-actions-row{display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:nowrap}

table.data.unit-table .unit-actions-row .icon-btn+.icon-btn{margin-left:0}

/* Kliks' per-krewe tables (.unit-table, renderUnitGroups() in
   command-center.html) -- the same tap-to-expand idea #week-list uses
   above, but at a wider breakpoint (899px, covering tablet too, not
   just phone) and with its own row shape, on direct request after
   #week-list's own 599px-only version still left the Kliks table's
   Name/Count/actions cramped and stacked with an unwanted extra divider
   line at tablet width. Every selector here is "table.data.unit-table",
   not plain ".unit-table" -- a bare class loses a specificity fight
   against table.data's own base rules (e.g. table.data td's own
   border-bottom, 0,1,2, beats a plain .unit-table td{border-bottom:0}

   at only 0,1,1), which is exactly what produced that stray extra line:
   the Name/Count cell's own inherited bottom border survived even
   though the row's own intentional divider (on the <tr>) was also
   rendering, giving two lines where only one was ever meant to show.
   Caught by actually looking at a real rendered row, not by reading the
   CSS alone -- same class of bug the min-width fix above already hit. */
@media(max-width:899px){
  table.data.unit-table{display:block; min-width:0; width:100%}
  table.data.unit-table tbody{display:block}
  /* The row itself is a flex container, not a plain block stack --
     .unit-name below is forced to its own full-width line via
     flex:0 0 100%, so whatever's left (.unit-count, and .unit-actions
     once opened) wraps onto the line(s) after it as ordinary flex items
     instead of each becoming its own separate block/line. This is the
     "Count on the left, buttons on the right, wrap instead of adding
     more lines than needed" layout, on direct request. Left padding
     (14px, matching the right side's reserved chevron space) was added
     on direct request too -- it was 0 before, so the Klik name text sat
     flush against the krewe group's own left border with no breathing
     room. */
  table.data.unit-table tbody tr{
    display:flex; flex-wrap:wrap; align-items:center;
    position:relative; padding:10px 26px 10px 14px;
    border-bottom:1px solid rgba(var(--line-rgb),.4); cursor:pointer;
  }
  table.data.unit-table tbody tr:last-child{border-bottom:0}
  table.data.unit-table tbody tr::after{content:"\25BE"; position:absolute; right:4px; top:10px; color:var(--dim); transition:transform .15s}
  table.data.unit-table tbody tr.open::after{transform:rotate(180deg)}
  table.data.unit-table td{padding:3px 0; border-bottom:0}
  table.data.unit-table td.unit-name{flex:0 0 100%}
  /* width:auto here has to match the desktop rules' own specificity
     (table.data.unit-table td.unit-count / .unit-actions, both 0,3,2)
     exactly, not just a plain "td{width:auto}" (0,2,2) -- a lower-
     specificity reset would silently lose to those 70px/140px desktop
     widths even inside this media query, the same class of bug the
     min-width and border-bottom fixes above already ran into twice.
     Both Count and the action icons stay hidden on a closed row here,
     on direct request -- a collapsed row shows only the Klik name, not
     a partial preview of its Count, matching what a tap-to-expand
     summary is supposed to be. Both become visible together, sharing
     one line, once the row opens. */
  table.data.unit-table td.unit-count{display:none; flex:0 0 auto; width:auto}
  table.data.unit-table tr.open td.unit-count{display:block}
  /* margin-left:auto (not justify-content:space-between on the row)
     pushes just this one cell to the far right of whatever's left on
     its flex line -- works the same whether .unit-count is alone on
     that line or sharing it with the actions, and if the line ever
     gets too narrow for both, flex-wrap drops actions onto a line of
     its own rather than overflowing. */
  table.data.unit-table td.unit-actions{display:none; flex:0 0 auto; width:auto; margin-left:auto; text-align:right}
  table.data.unit-table tr.open td.unit-actions{display:flex; gap:14px}
}

.field{display:flex; flex-direction:column; gap:6px; margin-bottom:16px}

.field label{font-size:var(--fs-sm); letter-spacing:.14em; text-transform:uppercase; color:var(--dim); font-weight:700}

.field input,.field select,.field textarea{
  background:var(--field); border:1px solid var(--line); border-radius:2px; padding:11px 13px; font-size:var(--fs-base); width:100%;
}

/* A native <select> ignores line-height, so with padding alone it
   renders a few px shorter than a text input beside it (e.g. Week
   number / Year). One explicit height for every single-line field keeps
   side-by-side fields -- and the read-only .hudstat-readout -- the same
   size everywhere. */
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),.field select,.hudstat-readout{height:48px}

.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--page); outline:none}

/* Number fields: the one style for every <input type="number"> (user,
   2026-10-09). wrapNumberInput() (shared.js) puts each in a .num-step,
   − value + in one rounded box, as wide as its digits (--digits) need.
   Disabled or read-only: just the number, no − or +. 48px in a .field,
   to match the fields beside it; 40px elsewhere (Score entry). */
.num-step{
  display:inline-flex; align-items:center; flex:none; max-width:100%; height:40px; vertical-align:middle;
  background:var(--field); border:1px solid var(--line); border-radius:10px; transition:border-color .15s
}
.field .num-step{height:48px}
.num-step:focus-within{border-color:var(--page)}
.num-step > input[type="number"]{
  width:calc(var(--digits, 3) * 1ch + 12px)!important; height:100%!important; min-width:0; flex:none;
  padding:0 6px!important; border:0!important; border-radius:0!important; background:none!important; outline:none;
  text-align:center!important; font-variant-numeric:tabular-nums; -moz-appearance:textfield; appearance:textfield
}
.num-step > input[type="number"]::-webkit-inner-spin-button,
.num-step > input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none; margin:0}
.num-btn{
  display:inline-flex; align-items:center; justify-content:center; flex:none; width:34px; height:100%; padding:0;
  background:none; border:0; border-radius:10px; color:var(--text); cursor:pointer; transition:color .15s
}
.num-btn svg{width:18px; height:18px; display:block; flex:none}
.num-btn:hover, .num-btn:focus-visible{color:var(--gold); outline:none}
/* A field that fills a wide space anyway (data-num-wide): the full
   width, − and + at the far ends, the number in the middle. */
.num-step-wide{display:flex; width:100%}
.num-step-wide > input[type="number"]{flex:1 1 auto; width:auto!important}
.num-step-wide .num-btn{width:48px}
.num-step:has(> input:disabled) .num-btn, .num-step:has(> input[readonly]) .num-btn{display:none}
.num-step:has(> input:disabled), .num-step:has(> input[readonly]){padding:0 8px}
.num-step:has(> input:disabled) > input{opacity:.6}

/* Grows with its text (initAutoGrowTextareas(), shared.js), so no
   scrollbar and no corner to drag. */
.field textarea{resize:none; overflow:hidden; min-height:70px}

/* A read-only stand-in for a .field input -- same box/padding so it
   lines up next to real fields, used for values that are computed (not
   editable): Program settings' week/period/quarter in Command Center,
   and the pause status. */
.hudstat-readout{
  display:flex; align-items:center;
  background:var(--field); border:1px solid var(--line); border-radius:2px; padding:11px 13px;
  font-family:var(--ff-head); font-weight:400; font-size:var(--fs-md); color:var(--gold); letter-spacing:.01em;
}

.field .hint{font-size:var(--fs-sm); color:var(--dim)}

/* On/off switches: the board's mission alerts panel and Command Center's
   Mission alerts card. A real checkbox (role="switch"), drawn as a track
   with a knob; gold when on. The whole row is the label, so the text is
   a tap target too. */
.switch-row{display:flex; align-items:center; justify-content:space-between; gap:14px; cursor:pointer}

.switch-row.is-disabled{cursor:not-allowed}

.switch-label{display:flex; flex-direction:column; gap:2px; min-width:0; color:var(--text)}

.switch-label small{font-size:var(--fs-sm); color:var(--dim); line-height:1.35}

.switch{
  -webkit-appearance:none; appearance:none; flex:none; margin:0; cursor:pointer;
  position:relative; width:44px; height:26px; border-radius:999px;
  background:var(--field); border:1px solid var(--line);
  transition:background .15s, border-color .15s;
}

.switch::after{
  content:""; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%;
  background:var(--dim); transition:transform .15s, background .15s;
}

.switch:checked{background:rgba(var(--gold-rgb),.25); border-color:var(--gold)}

.switch:checked::after{transform:translateX(18px); background:var(--gold)}

.switch:focus-visible{outline:2px solid var(--gold); outline-offset:2px}

.switch:disabled{opacity:.4; cursor:not-allowed}

/* Kliks search (#unit-search) -- a rounded pill field with its own
   search-glyph on the left and a Clear (X) button on the right that
   only appears once something's typed, on direct request off a
   reference screenshot, rather than the square .field input every
   other text field on the site uses. */
.search-box{position:relative; display:flex; align-items:center}

.search-box-icon{position:absolute; left:16px; width:18px; height:18px; color:var(--dim); pointer-events:none}

.search-box input[type="search"]{
  height:48px; padding:0 44px; border-radius:999px;
  background:var(--field); border:1px solid var(--line); font-size:var(--fs-base); width:100%;
}

.search-box input[type="search"]::-webkit-search-cancel-button,
.search-box input[type="search"]::-webkit-search-decoration{-webkit-appearance:none; appearance:none}

.search-box input[type="search"]:focus{border-color:var(--page); outline:none}

.search-box-clear{
  position:absolute; right:8px; width:32px; height:32px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; flex:none;
  background:none; border:0; padding:0; cursor:pointer; color:var(--dim);
}

.search-box-clear svg{width:14px; height:14px; display:block}

.search-box-clear:hover{color:var(--text)}

/* The native calendar-picker glyph inside a datetime-local input
   defaults to a low-contrast dark icon that nearly disappears against
   this site's dark --ink input background -- inverted to read clearly
   instead, on direct request. -webkit-only (Chromium/Safari, the
   pseudo-element this hooks); Firefox has no equivalent hook and just
   shows its own platform-native control, unaffected either way. */
.field input[type="datetime-local"]::-webkit-calendar-picker-indicator{filter:invert(1); opacity:.75; cursor:pointer}

.field input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover{opacity:1}

.pause-status.is-active{color:var(--cyan)}

.pause-status.is-paused{color:var(--orange)}

.pause-head .field{margin-bottom:0}

.pause-offer .btn{height:48px} /* match the 48px status box beside it */

.row2{display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:0 16px}

/* Drop time/Deadline plus the Reset Timeframe icon button, inline on
   one row on desktop with the button pinned to the far right and
   vertically aligned with the input boxes rather than the labels above
   them -- a dedicated modifier rather than changing .row2 itself,
   since .row2 is also the mission title/theme/type row's own 3-column
   grid and has no button to align this way. flex-wrap naturally drops
   the button (and, at narrower widths, either field) onto its own line
   below, the same responsive fallback .row2's own auto-fit grid already
   gives its other users. */
.row2.schedule-row{display:flex; flex-wrap:wrap; align-items:flex-end; gap:16px; margin-top:20px; margin-bottom:16px}

.schedule-row .field{flex:1 1 200px; margin-bottom:0}

.sc-drop-row .btn{height:48px}

/* The Kliks form's Headcount field is just a short number (2-3 digits
   typically) -- on direct request, it shouldn't claim the same
   200px-minimum column .row2's default auto-fit grid gives Klik
   name/Krewe. Same flex-row override .schedule-row above already
   established for the same reason (a field that doesn't need an equal
   share of the row); the last .field (Headcount) gets a fixed, much
   narrower basis instead of the shared 200px minimum. */
.row2.unit-row{display:flex; flex-wrap:wrap; gap:0 16px}

/* Setup's Current calendar readouts (command-center.html): Week beside
   Month and Quarter beside Year -- all four in a row on wide screens,
   two pairs below 900px (direct request). */
.row2.now-row{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:899px){ .row2.now-row{grid-template-columns:repeat(2,minmax(0,1fr))} }

.unit-row .field{flex:1 1 200px}

#unit-headcount-field{flex:0 0 auto}

/* The hint and Add Klik / Cancel sit in the row too, each on a line of
   its own; on a phone, where Count is alone on its line, the buttons go
   beside it instead, the same height as the field (user, 2026-10-07). */
.unit-row-hint{flex:0 0 100%; margin-bottom:12px}
.unit-row-actions{flex:0 0 100%}
@media(max-width:599px){
  .unit-row-actions{flex:1 1 auto; align-self:flex-end; margin:0 0 16px}
  .unit-row-actions .btn{height:48px}
}

/* Theme editor: name/color are fixed, so the name renders as a plain
   colored heading (same look as the Mission Board's theme cards) instead
   of an input -- only the "why" textarea below it is actually editable.
   Each theme is a plain block with no panel background/border, just the
   heading and its textarea, spaced apart from the next theme. */
.theme-edit-name{font-family:var(--ff-head); font-weight:700; font-size:var(--fs-lg); letter-spacing:.01em; text-transform:uppercase; margin:0}

.theme-edit-row{margin-bottom:24px}

/* Mission Types editor: name and description share one row and use its
   full width. Mission names are short single words (Notice, Find,
   Count...), so the name field gets a capped basis instead of splitting
   evenly with the description. */
.mission-edit-row{display:flex; flex-wrap:wrap; gap:14px}

.mission-edit-row .field{margin-bottom:0}

.mission-edit-row .field.name{flex:0 1 160px}

.mission-edit-row .field.desc{flex:1 1 240px}

.btn{
  background:var(--gold); color:var(--bg); border:0; border-radius:2px; padding:12px 22px; cursor:pointer;
  font-family:var(--ff-display); font-size:var(--fs-base); letter-spacing:1px; text-transform:uppercase;
}

.btn:hover{filter:brightness(1.12)}

/* Greyed-out, non-interactive look for any disabled .btn (e.g. the
   mission-form stepper's Prev/Next at either end of KREWES) -- nothing
   styled a disabled .btn before this, so one previously just looked
   identical to an enabled one apart from the browser's own inconsistent
   default treatment. */
.btn:disabled{opacity:.35; cursor:not-allowed; filter:none}

.btn.ghost{background:transparent; color:var(--text); border:1px solid var(--line)}

.btn.ghost:hover{color:var(--text); border-color:var(--text); background:transparent; filter:none}

.btn.danger{background:rgba(var(--bad-rgb),.14); color:var(--text); border:1px solid var(--bad)}

.btn.danger:hover{filter:brightness(1.25)}

.btn.sm{padding:8px 14px; font-size:var(--fs-sm)}

/* An inline icon inside a text .btn (e.g. Download's icon, on both
   pages) -- distinct from .icon-btn, which is the circular icon-only
   button used for table row actions elsewhere. */
.btn-icon{width:16px; height:16px; vertical-align:-3px; margin-right:7px; display:inline-block}

/* A .btn-icon that comes after its label instead of before (the mission
   stepper's Next button, pointing the direction the label already
   reads towards) -- same size, mirrored spacing. */
.btn-icon-trailing{margin-right:0; margin-left:7px}

.btnrow{display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-top:8px}

/* Circular icon-only Edit/Remove buttons -- every row-level Edit/Remove
   pair in Command Center (units, weeks, score-entry members, and the
   Page content list editors) uses these instead of a text button, so a
   row of table cells or a single-line list item doesn't end in a wide
   label. Remove uses the same danger-red accent as .btn.danger;
   Edit stays neutral and just brightens on hover, like .btn.ghost. */
.icon-btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center; flex:none;
  width:30px; height:30px; border-radius:50%; cursor:pointer; padding:0;
  background:var(--field); color:var(--dim); border:1px solid var(--line);
  transition:color .15s, border-color .15s, background .15s;
}

/* padding:0 above and flex:none here (user's iPad, 2026-10-09): iOS
   Safari pads every button about 1em a side, which left a 36px button
   ~2px inside and squeezed its icon to a dot (the alerts bell) or to
   nothing (the panel's ✕). Desktop Safari pads far less, so only the
   iPad showed it. */
.icon-btn svg{width:14px; height:14px; display:block; flex:none}

.icon-btn:hover{color:var(--text); border-color:var(--text)}

.icon-btn.danger:hover{color:var(--text); background:var(--bad); border-color:var(--bad)}

/* Greyed-out, non-interactive look for a disabled .icon-btn (e.g. the
   Deadline field's Reset Timeframe button once an Archived week locks
   the schedule fields) -- mirrors .btn:disabled above. */
.icon-btn:disabled{opacity:.35; cursor:not-allowed}

.icon-btn:disabled:hover{color:var(--dim); border-color:var(--line)}

/* A lone icon button is just its icon (user, 2026-10-07): no circle or
   fill unless another visible icon button sits right beside it (a row
   of actions, like the week list's edit / preview / export / delete,
   keeps its circles so they read as a set). Two kinds always keep their
   circle (user, same day): delete buttons (.danger), so removing
   something important never looks casual, and the alerts bell.
   Keyboard focus keeps its outline. */
.icon-btn:not(.danger):not(.alerts-bell):not(:has(+ .icon-btn:not([hidden]))):not(.icon-btn:not([hidden]) + .icon-btn){background:none; border-color:transparent}
.icon-btn:not(.danger):not(.alerts-bell):not(:has(+ .icon-btn:not([hidden]))):not(.icon-btn:not([hidden]) + .icon-btn):hover{background:none; border-color:transparent; color:var(--text)}

/* Extra room between an adjacent Edit/Remove pair -- a bare few-pixel
   gap between two small circular targets was an easy misclick, given
   Remove is a destructive action sitting right next to Edit. Self-scoping
   (only fires when two .icon-btns are actually next to each other), so
   it doesn't add unwanted space around a lone Remove button elsewhere. */
.icon-btn + .icon-btn{margin-left:14px}

/* Plain-word hover label ("Edit"/"Remove") -- these buttons carry no
   visible text of their own, so on hover/focus a small tag pops up
   above the button instead of relying on the browser's native (slow,
   inconsistent) title tooltip. aria-hidden since aria-label on the
   button itself already gives the accessible name. */
/* Anchored to the button's right edge (not centered) and extending
   leftward -- these buttons live in a table's last column, often wrapped
   in a .scroll-x (overflow-x:auto, which forces overflow-y:auto too per
   spec) container; a centered tip routinely got its right side clipped
   by that boundary. Right-anchoring keeps it inside the row every time. */
.icon-btn-tip{
  position:absolute; bottom:calc(100% + 8px); right:0; transform:translateY(4px);
  background:var(--ink); border:1px solid var(--line); color:var(--text);
  font-family:var(--ff-display); font-size:var(--fs-2xs); letter-spacing:.08em; text-transform:uppercase;
  padding:4px 9px; border-radius:2px; white-space:nowrap; box-shadow:var(--shadow);
  opacity:0; pointer-events:none; transition:opacity .15s, transform .15s;
}

.icon-btn:hover .icon-btn-tip, .icon-btn:focus-visible .icon-btn-tip{opacity:1; transform:translateY(0)}

.sc-stat .heat{margin-top:0; flex-wrap:wrap; row-gap:4px}

table.data.sc-results tbody tr{cursor:pointer}

@keyframes sc-jump-flash{from{background:rgba(var(--gold-rgb),.28)} to{background:transparent}}

.field select:disabled{opacity:.5; cursor:not-allowed}

table.data.sc-results tbody tr:focus-visible{outline:1px solid var(--gold); outline-offset:-1px}

table.data tbody tr.ev-row:hover{background:none}


/* Proof photo thumbnails -- the Dead Drop's own preview (board.css sizes them). */
.proof-thumb{width:52px; height:52px; object-fit:cover; border-radius:4px; border:1px solid var(--line); display:block}

.proof-thumb:hover{border-color:var(--gold)}


.proof-desc{
  font-size:var(--fs-sm); color:var(--text); max-width:260px;
  background:rgba(var(--surface-rgb),.5); border-left:2px solid var(--gold); padding:6px 10px;
  overflow-wrap:anywhere;
}
/* Its paragraphs and lists (proofDetailsHtml(), scores.js). */
.proof-desc p,.proof-desc ul,.proof-desc ol{margin:0 0 8px}
.proof-desc > :last-child{margin-bottom:0}
.proof-desc ul,.proof-desc ol{padding-left:22px}
.proof-desc ul{list-style:disc}
.proof-desc ol{list-style:decimal}
.proof-desc li + li{margin-top:2px}
.proof-desc a{color:var(--gold); text-decoration:underline; text-underline-offset:2px}
.proof-desc a:hover{color:var(--text)}

.dd-preview .proof-thumb{width:130px; height:130px}

.proof-video{
  width:130px; height:130px; border-radius:4px; border:1px solid var(--line);
  background:#000; display:block; object-fit:cover; pointer-events:none;
}

.empty{border:1px dashed var(--line); border-radius:var(--r); padding:28px; text-align:center; color:var(--text); background:rgba(var(--surface-rgb),.5)}

.empty .h3{color:var(--text); margin-bottom:8px}

/* "Mission loading..." during the gap between Thursday 11:59pm and
   Monday 7am -- reuses the loading splash's own pulse keyframe so the
   two moments feel like the same visual language. Respects
   prefers-reduced-motion via the sitewide rule that already strips
   every animation, same as the splash itself. */
/* Same pulse as the loading splash's logo, plus the gold glow the
   splash dropped (direct request) -- kept here for this heading only. */
@keyframes headingPulse{
  0%,100%{transform:scale(1); filter:drop-shadow(0 10px 30px rgba(var(--shadow-rgb),.6)) drop-shadow(0 0 0 rgba(var(--gold-rgb),0))}
  50%{transform:scale(1.07); filter:drop-shadow(0 10px 30px rgba(var(--shadow-rgb),.6)) drop-shadow(0 0 28px rgba(var(--gold-rgb),.6))}
}

.empty .h3.pulse{animation:headingPulse 1.6s ease-in-out infinite}

.note{display:flex; gap:11px; align-items:flex-start; background:rgba(var(--cyan-rgb),.08); border:1px solid rgba(var(--cyan-rgb),.35); border-radius:var(--r); padding:15px 16px 13px; font-size:var(--fs-base); color:var(--text); margin-top:16px}

.note b{color:var(--cyan)}

.warn{background:rgba(var(--gold-rgb),.08); border-color:rgba(var(--gold-rgb),.35)}

.warn b{color:var(--gold)}

.toast{
  position:fixed; left:50%; bottom:28px; transform:translateX(-50%);
  background:var(--gold); color:var(--bg); padding:12px 24px; border-radius:2px; z-index:99;
  font-family:var(--ff-display); font-size:var(--fs-base); letter-spacing:1px; text-transform:uppercase; box-shadow:var(--shadow);
}

/* Custom confirm dialog (confirmDialog() in shared.js) -- a centered
   card over a dark scrim, standing in for window.confirm(). Above the
   toast's z-index since a confirm can be dismissed while a toast from a
   prior action is still fading out. */
.confirm-overlay{
  position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center;
  background:rgba(var(--bg-rgb),.78); padding:20px;
}

.confirm-card{
  position:relative; width:100%; max-width:420px; background:var(--surface2);
  border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow);
  padding:34px 26px 26px; text-align:center;
}

.confirm-card .icon-btn{position:absolute; top:14px; right:14px}

/* ▶ over a video's first frame (Dead Drop preview, Score entry proof). */
.play-badge{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:36px; height:36px; border-radius:50%; background:rgba(var(--shadow-rgb),.55);
  display:flex; align-items:center; justify-content:center; color:var(--text); pointer-events:none;
}
.play-badge svg{width:15px; height:15px; margin-left:2px}

/* Proof viewer (openMediaViewer(), shared.js): the photo or video as big
   as fits, a bar on top, arrows at the sides (hidden for one item). */
.mv-lock, .mv-lock body{overflow:hidden}
.mv-overlay{
  position:fixed; inset:0; z-index:210; display:flex; flex-direction:column;
  background:rgba(var(--bg-rgb),.97); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.mv-bar{display:flex; align-items:center; gap:12px; padding:12px 16px; flex:none}
.mv-count{flex:1; color:var(--dim); font-size:var(--fs-sm); font-variant-numeric:tabular-nums}
.mv-stage{flex:1; min-height:0; display:flex; align-items:center; justify-content:center; padding:0 64px 24px; touch-action:pan-y pinch-zoom}
.mv-stage img, .mv-stage video{max-width:100%; max-height:100%; object-fit:contain; border-radius:4px; background:#000; display:block}
.mv-btn{
  display:inline-flex; align-items:center; justify-content:center; flex:none; padding:0;
  width:40px; height:40px; border-radius:50%; cursor:pointer;
  background:rgba(var(--surface-rgb),.7); color:var(--text); border:1px solid var(--line);
}
.mv-btn:hover{border-color:var(--gold); color:var(--gold)}
.mv-btn svg{width:22px; height:22px; display:block; flex:none}
.mv-close svg{width:16px; height:16px}
.mv-nav{position:absolute; top:50%; transform:translateY(-50%)}
.mv-prev{left:max(12px, env(safe-area-inset-left))}
.mv-next{right:max(12px, env(safe-area-inset-right))}
.mv-nav[hidden]{display:none}
@media(max-width:599px){
  /* Arrows under the picture on a phone, clear of a video's controls. */
  .mv-stage{padding:0 8px 72px}
  .mv-nav{top:auto; bottom:calc(16px + env(safe-area-inset-bottom)); transform:none}
}

.confirm-card h3{margin-bottom:10px}

.confirm-card p{color:var(--text); font-size:var(--fs-base); margin-bottom:24px}

/* confirmDialog()'s optional opts.detail -- a second line right under
   the main message (e.g. Dead Drop's "who/what" line followed by "here's
   what's being dropped"). Pulled up against #confirm-msg's own 24px
   bottom margin above rather than stacking a second full gap. */
.confirm-card p.confirm-detail{margin-top:-14px}

/* confirmDialog()'s optional opts.rows: label and value on one line each,
   no bullets and no box (user, 2026-10-12), left-aligned so the values
   line up. */
.confirm-rows{
  display:grid; grid-template-columns:max-content minmax(0,1fr); gap:8px 16px;
  margin:0 0 24px; text-align:left;
}
.confirm-rows > div{display:contents}
.confirm-rows dt{color:var(--dim); font-size:var(--fs-sm); line-height:1.5}
.confirm-rows dd{margin:0; color:var(--text); overflow-wrap:anywhere; line-height:1.5}

.confirm-card .btnrow{justify-content:center; margin-top:0}

.confirm-card .btn{min-width:120px}

/* Solid-fill danger button -- a stronger visual weight than the outline
   .btn.danger used elsewhere, reserved for a confirm dialog's one
   destructive action sitting right next to Cancel. */
.btn.danger.solid{background:var(--bad); color:var(--text); border-color:var(--bad)}

/* confirmDeleteDialog()'s GitHub-style "type to confirm" variant of the
   card above -- left-aligned (the warning banner and the type-to-confirm
   field read better that way) except the title, which stays centered
   like every other confirm-card. */
.confirm-card-delete{text-align:left}

.confirm-card-delete h3{text-align:center}

.confirm-warning{
  display:flex; gap:10px; align-items:flex-start;
  background:rgba(var(--orange-rgb),.1); border:1px solid rgba(var(--orange-rgb),.4);
  border-radius:var(--r); padding:12px 14px; margin-bottom:16px; font-size:var(--fs-sm); color:var(--text);
}

.confirm-warning svg{flex:0 0 auto; width:20px; height:20px; color:var(--orange); margin-top:1px}

.confirm-card-delete .field{margin-bottom:20px}

/* What a type-to-confirm action removes, listed under its message. */
.confirm-card-delete p#cd-msg:has(+ .confirm-list){margin-bottom:8px}
.confirm-list{margin:0 0 20px; padding-left:20px; color:var(--text); font-size:var(--fs-base)}
.confirm-list li{margin-bottom:4px}

.confirm-card-delete .field label b{color:var(--text)}

.confirm-card-delete .btn.danger.solid:disabled{opacity:.4; cursor:not-allowed; filter:none}

.btn.danger.solid:hover{filter:brightness(1.15)}

.status-chip{display:inline-flex; align-items:center; gap:8px}

.status-chip i{width:8px; height:8px; border-radius:50%; background:var(--cyan); box-shadow:0 0 8px var(--cyan); flex:none}

.status-chip i.bad{background:var(--bad); box-shadow:0 0 8px var(--bad)}

/* ---------- back to top (initBackToTop(), shared.js) ----------
   Bottom right, under the app banner and dialogs. On phones it sits
   above the bottom tab bar, like the app banner. */
.to-top{
  position:fixed; right:18px; bottom:24px; z-index:80;
  display:flex; align-items:center; justify-content:center;
  width:46px; height:46px; border-radius:50%; cursor:pointer;
  background:rgba(var(--surface-rgb),.94); backdrop-filter:blur(10px);
  border:1px solid var(--page); box-shadow:var(--shadow); color:var(--page);
}
.to-top[hidden]{display:none}
.to-top svg{width:26px; height:26px}
.to-top:hover{background:var(--page); color:var(--bg)}
@media(max-width:599px){ .to-top{right:16px; bottom:calc(84px + env(safe-area-inset-bottom))} }
/* Up out of the way while the app banner shows. */
body:has(#app-banner:not([hidden])) .to-top{bottom:96px}
@media(max-width:599px){ body:has(#app-banner:not([hidden])) .to-top{bottom:calc(156px + env(safe-area-inset-bottom))} }

/* ---------- radio player ---------- */
.radio{
  position:fixed; right:18px; bottom:18px; z-index:70;
  display:flex; align-items:center; gap:10px;
  background:rgba(var(--surface-rgb),.94); backdrop-filter:blur(10px);
  border:1px solid var(--line); border-radius:30px; box-shadow:var(--shadow);
  padding:6px 16px 6px 6px;
}

.radio-play{
  flex:none; width:46px; height:46px; border-radius:50%; border:0; cursor:pointer;
  background:var(--gold); color:var(--bg); display:flex; align-items:center; justify-content:center;
}

.radio-play:hover{filter:brightness(1.1)}

.radio-play svg{width:18px; height:18px; display:block}

.radio-play .ic-pause{display:none}

.radio.playing .radio-play .ic-play{display:none}

.radio.playing .radio-play .ic-pause{display:block}

.radio-info{display:flex; flex-direction:column; line-height:1.15; min-width:0}

.radio-station{font-family:var(--ff-head); font-weight:500; font-size:var(--fs-md); letter-spacing:.01em; color:var(--text); white-space:nowrap}

.radio-track{font-size:var(--fs-2xs); letter-spacing:.08em; text-transform:uppercase; color:var(--dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

.radio.playing .radio-track{color:var(--cyan)}

.radio-mute{
  flex:none; width:30px; height:30px; border:0; background:none; cursor:pointer;
  color:var(--text); display:flex; align-items:center; justify-content:center;
}

.radio-mute:hover{color:var(--text)}

.radio-mute svg{width:20px; height:20px}

.radio-mute .ic-mute{display:none}

.radio-mute.is-muted .ic-vol{display:none}

.radio-mute.is-muted .ic-mute{display:block}

.radio-volume{width:76px; accent-color:var(--gold); cursor:pointer}

@media(max-width:679px){
  .radio{right:12px; bottom:12px; padding:6px; gap:6px}
  .radio-info{display:none}
  .radio-volume{width:56px}
}

/* Clears the Mission Board's fixed bottom tab bar (game menu, ≤599px) so
   the two floating fixed elements don't overlap. */
@media(max-width:599px){ .radio{bottom:82px} }

/* ---------- Filter panels ----------
   On phones and tablets (below 1200px) every filter row -- Stats and
   Hall of Fame's filter bars (board/filters.js), Dead Drop > Dropped,
   Command Center's Scores Krewe/Klik -- folds away behind a Filters
   button that summarizes the current picks (direct request). At 1200px
   and up the button is hidden and the filters always show. Markup:
   .filter-panel > .filter-toggle + .filter-panel-body, built by
   filterToggleHtml()/initFilterPanel() in shared.js. */
.filter-toggle{display:none}
@media(max-width:1199px){
  .filter-toggle{
    display:flex; align-items:center; gap:10px; width:100%; min-height:48px; cursor:pointer;
    background:var(--field); border:1px solid var(--line); border-radius:2px; padding:10px 14px;
    color:var(--text); text-align:left;
  }
  .filter-toggle svg{flex:none; width:18px; height:18px; color:var(--page)}
  .filter-toggle-label{flex:none; font-family:var(--ff-display); font-size:var(--fs-md); letter-spacing:.06em; text-transform:uppercase}
  .filter-summary{flex:1; min-width:0; font-size:var(--fs-sm); color:var(--dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
  .filter-toggle::after{content:""; flex:none; width:8px; height:8px; border-right:2px solid var(--dim); border-bottom:2px solid var(--dim); transform:rotate(45deg); margin:-4px 4px 0 0; transition:transform .15s}
  .filter-panel.is-open > .filter-toggle{border-color:var(--page)}
  .filter-panel.is-open > .filter-toggle::after{transform:rotate(-135deg); margin-top:4px}
  .filter-panel.is-open > .filter-panel-body{margin-top:14px}
  .filter-panel:not(.is-open) > .filter-panel-body{display:none}
  /* A wrapped static row carries its own bottom margin, which folds away
     with it -- give the closed button the gap instead. */
  .filter-panel:not(.filters-row):not(.is-open){margin-bottom:16px}
}

/* Read out by screen readers, not shown (e.g. "devices" after a count
   shown as an icon). */
.sr-only{position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0}

/* ---------------- smooth reveals ----------------
   Things CSS shows inside a table row (a Klik's or week's actions and
   count on phones) can't change height smoothly, so they fade and slide
   in instead (user, 2026-10-08). Everything else that opens and closes
   slides through slideOpen() / initSmoothDetails() (shared.js). */
@keyframes pesb-reveal{from{opacity:0; transform:translateY(-6px)} to{opacity:1; transform:none}}
table.data.unit-table tr.open td.unit-actions,
table.data.unit-table tr.open td.unit-count,
#week-list tr.open td.week-actions{animation:pesb-reveal .28s cubic-bezier(.2,.7,.2,1)}
@media (prefers-reduced-motion: reduce){
  table.data.unit-table tr.open td.unit-actions,
  table.data.unit-table tr.open td.unit-count,
  #week-list tr.open td.week-actions{animation:none}
}

/* Preview banner (user, 2026-10-09): gold, across the very top, saying
   what's being previewed, with the way out. Command Center's Preview as a
   Leader (shared-ui.js) and the Mission Board's mission preview
   (board/missions.js, renderPreviewBanner()). */
.preview-banner{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; padding:10px 16px;
  background:var(--gold); color:var(--bg); font-size:var(--fs-sm);
  position:relative; z-index:5;
}
.preview-banner svg{width:20px; height:20px; flex:none}
.preview-banner span{flex:1; min-width:200px}
.preview-banner .btn{background:var(--bg); color:var(--text); text-decoration:none}

/* A rounded tag (user, 2026-10-09): the Dead Drop card's Krewe / Klik /
   week, and each Klik on Setup › Leaders. .tag-krewe takes the colour of
   the .krewe-* class beside it (or on a parent). */
.tag{
  display:inline-flex; align-items:center; min-height:28px; padding:4.5px 12px 1.5px; border-radius:999px; /* letters centered: see .chip */
  border:1px solid var(--line); background:rgba(var(--bg-rgb),.35); color:var(--text); font-size:var(--fs-sm);
}
.tag-krewe{border-color:var(--krewe); background:rgba(var(--krewe-rgb),.16)}
.tags{display:flex; flex-wrap:wrap; gap:6px}

/* A button that reads as a link (the Activity Log's View details). */
.link-btn{padding:0; border:0; background:none; color:var(--cyan); font:inherit; font-size:var(--fs-sm); cursor:pointer}
.link-btn:hover{color:var(--text); text-decoration:underline}

/* ---------------- utilities ----------------
   One-property classes for the spacing and alignment tweaks markup used
   to set inline, several times over (user, 2026-10-09: classes, not
   repeated styles). !important so each acts exactly as the inline style
   it replaced, over any component rule. A one-off stays inline. */
.m-0{margin:0!important}
.mt-0{margin-top:0!important}
.mt-6{margin-top:6px!important}
.mt-10{margin-top:10px!important}
.mt-12{margin-top:12px!important}
.mt-14{margin-top:14px!important}
.mt-16{margin-top:16px!important}
.mb-0{margin-bottom:0!important}
.mb-12{margin-bottom:12px!important}
.mb-16{margin-bottom:16px!important}
.ta-r{text-align:right!important}
.c-text{color:var(--text)!important}
.grow{flex:1!important}
.jc-between{justify-content:space-between!important}

/* ---------------- A drop form ----------------
   The Mission Board's Dead Drop and Command Center's Add drop (user,
   2026-10-30: the GTA Team's form looks like the players'). Moved here
   from board.css. */
/* Dead Drop's file input (templates/board.html) is visually hidden --
   its own native "N files chosen" label can only ever reflect the most
   recent single pick, never the running DD_PHOTOS total (and never
   updates at all on Remove), so #dd-photo-count next to the real
   "Choose Files" label is a plain JS-controlled span instead. Standard
   accessible-hide technique (clipped to 0 size rather than display:none
   or moved off-screen) so the field stays focusable/reachable by
   keyboard and screen readers -- the visible "Choose Files" label still
   opens the native file picker as usual via its for="dd-photos". */
/* .field-scoped so it beats .field input's width:100% (shared.css) --
   at full width the clipped input still widened the page sideways. */
.field .dd-file-input{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}

.dd-file-picker{display:flex; align-items:center; gap:10px; flex-wrap:wrap}

.dd-file-count{font-size:var(--fs-sm); color:var(--dim)}

/* Dead Drop's Choose Files buttons: the fields' deeper blue, a page-color
   border, white text and an upload icon, so they read as buttons without competing
   with the gold Drop the Evidence button (direct request). */
.btn.dd-choose{color:var(--text); background:var(--field); border-color:var(--page)}
.btn.dd-choose:hover{background:rgba(var(--page-rgb),.18)}
/* The real file input is visually hidden, so show keyboard focus on its button. */
.field:has(.dd-file-input:focus-visible) .dd-choose{outline:2px solid var(--page); outline-offset:2px}

/* Dead Drop (templates/board.html) -- client-side preview of the proof
   photos a player just picked, before they've actually uploaded. Sized
   larger (130px, on direct request -- was 75px) than .proof-thumb's own
   52px default -- this is the one place a player actually checks they
   grabbed the right photo before submitting, so it gets its own scoped
   override here rather than changing .proof-thumb's base size, which
   would also enlarge the Scores tab's evidence thumbnails. .dd-preview's existing flex-wrap keeps this responsive
   with no extra media query needed -- tiles simply wrap onto more rows
   on a narrow phone width. Each tile is wrapped in .dd-thumb-wrap so a
   small Remove badge can be positioned over its corner without
   disturbing the thumbnail itself, and the thumbnail is wrapped in a
   plain <a target="_blank"> (same pattern the Scores tab's evidence
   .proof-thumb already uses) so a player can open a picked photo at
   full size before submitting. No fixed height on the wrap itself (only
   width) -- the video tile below adds a filename caption underneath its
   own thumbnail, so wrap height is left to size off content instead of
   forcing every tile (photo or video) to the same fixed box. */
.dd-preview{display:flex; flex-wrap:wrap; gap:14px; margin-top:10px}

.dd-thumb-wrap{position:relative; width:130px; flex:none}

/* An SVG X, not a &times; glyph -- same icon treatment as .icon-btn's
   own cancel icon elsewhere on the site. A text glyph looks
   centered by its line-box but a font's visual weight rarely sits on
   the true center, so it reads off-center inside a small circle;
   flex-centering an SVG's own square viewBox doesn't have that problem. */
.dd-thumb-remove{
  position:absolute; top:-8px; right:-8px; width:20px; height:20px; padding:0;
  display:flex; align-items:center; justify-content:center; border-radius:50%;
  background:var(--violet); color:var(--text); border:1px solid var(--ink);
  cursor:pointer;
}

.dd-thumb-remove svg{width:11px; height:11px; display:block}

.dd-thumb-remove:hover{filter:brightness(1.15)}

/* Dead Drop (templates/board.html) -- a field label's "(optional)"
   suffix, deliberately de-emphasized (lighter weight, slightly
   transparent) next to Krewe/Klik/name, which stay mandatory and get no
   such suffix. */
.dd-optional{font-weight:400; opacity:.7}

/* Details' list buttons, above the box: the bulleted and numbered list
   icons (user, 2026-10-12), 40px circles on the field colour with the
   ghost button's own border (user's pick from devtools), a hover label
   above; and the "820 / 1000" count under the box, right-aligned
   (dead-drop.js). */
.dd-list-tools{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:8px}
.dd-list-tools .btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; padding:0; border-radius:50%;
  color:var(--text); background:var(--field);
}
.dd-list-tools .btn svg{width:22px; height:22px; display:block; flex:none}
.dd-list-tools .btn:hover{background:rgba(var(--page-rgb),.18)}
.dd-list-tools .icon-btn-tip{left:0; right:auto}
.dd-list-tools .btn:hover .icon-btn-tip,.dd-list-tools .btn:focus-visible .icon-btn-tip{opacity:1; transform:translateY(0)}
.dd-details-count{display:block; text-align:right}
.dd-details-count[hidden]{display:none}
.dd-details-count.is-full{color:var(--gold)}

/* Name suggestions under Dead Drop's name field (dead-drop.js). */
.dd-name-wrap{position:relative}
.dd-suggest{
  position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:20;
  list-style:none; margin:0; padding:4px 0; max-height:264px; overflow-y:auto;
  background:var(--surface2); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow);
}
.dd-suggest li{padding:10px 14px; cursor:pointer; color:var(--dim); overflow-wrap:anywhere}
.dd-suggest li b{color:var(--text); font-weight:700}
.dd-suggest li:hover, .dd-suggest li[aria-selected="true"]{background:rgba(var(--gold-rgb),.14); color:var(--text)}
/* Name length countdown from 70 characters (renderNameLimit(), dead-drop.js). */
.field .hint.is-warn{color:var(--gold)}
/* A picked file that can't go, by name (proofFileProblem(), shared.js). */
/* White on a red rule: the brand red alone is too dark to read on the cards. */
.field .hint.is-bad, .drop-fail{color:var(--text); border-left:3px solid var(--bad); padding-left:12px; white-space:pre-line; overflow-wrap:anywhere}
/* Under a drop button: why it didn't go and what to try (dropFailText(), shared.js). */
.drop-fail{margin:12px 0 0; font-size:var(--fs-sm); line-height:1.5; max-width:60ch}

/* Dead Drop's video preview -- a static thumbnail (the video's own first
   frame, via a controls-less/muted <video preload="metadata">, the same
   trick browsers already use to paint a poster frame) with a purely
   decorative play badge on top and the filename underneath, not an
   actual playable <video controls> -- on direct request, since this
   preview only exists so a player can confirm they picked the right
   clip, not to watch it back. Clicking opens the proof viewer, same as a
   photo thumbnail. Same 130px square as
   .dd-preview .proof-thumb above so photo and video tiles line up. */
.dd-thumb-wrap-video{width:130px}

.dd-video-thumb{position:relative; display:block; width:130px; height:130px}


.dd-video-name{
  display:block; margin-top:6px; font-size:var(--fs-sm); color:var(--text); max-width:130px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* Dead Drop's document preview -- a PDF/Word/Excel file has nothing to
   thumbnail, so each picked document gets a plain filename chip instead
   (icon + name + Remove), laid out in the same flex-wrap row pattern
   .dd-preview already uses for photos/videos. */
.dd-chip-list{display:flex; flex-wrap:wrap; gap:10px; margin-top:10px}

.dd-file-chip{
  display:flex; align-items:center; gap:8px; max-width:220px;
  background:var(--surface2); border:1px solid var(--line); border-radius:4px; padding:7px 8px 7px 10px;
  font-size:var(--fs-sm); color:var(--text);
}

.dd-file-chip svg{flex:none; width:16px; height:16px; color:var(--gold)}

.dd-file-chip span{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}

.dd-chip-remove{
  flex:none; width:18px; height:18px; padding:0; display:flex; align-items:center; justify-content:center;
  border-radius:50%; background:var(--violet); color:var(--text); border:1px solid var(--ink); cursor:pointer;
}

.dd-chip-remove svg{width:10px; height:10px; display:block}

.dd-chip-remove:hover{filter:brightness(1.15)}

/* The Mission Completed certificate (certificate.js) under a drop: the
   Dead Drop's cards and Command Center's Add drop. */
.dd-cert-host:empty{display:none}
.dd-cert-host{scroll-margin-top:16px}
.dd-cert-host:not(:empty){margin-top:16px}
.dd-cert{margin:0}
.dd-cert-frame{aspect-ratio:11 / 8.5; border-radius:var(--r); overflow:hidden; background:var(--surface2); box-shadow:var(--shadow)}
.dd-cert-frame.is-loading{animation:dd-cert-wait 1.4s ease-in-out infinite}
@keyframes dd-cert-wait{50%{opacity:.55}}
@media (prefers-reduced-motion:reduce){.dd-cert-frame.is-loading{animation:none}}
.dd-cert-frame img{display:block; width:100%; height:100%}
.dd-cert-actions{margin-top:14px}

/* Dropped, on the Mission Board and in Command Center (droppedListHtml(),
   shared.js; user, 2026-10-30): one card per Klik under its Krewe heading, players
   in a grid -- 3 across on desktop, 2 on tablets, 1 on phones -- so it
   always fits the screen (no sideways-scrolling table). */
/* "Updated 9:42 AM ↻" on the left, the drop count on the right. The ↻
   spins while it syncs (wireDroppedSync(), shared.js). */
.dropped-meta{display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; margin-top:14px}
.dropped-meta .unit-grand-total{margin:0 0 0 auto}
.dropped-sync{display:flex; align-items:center; gap:8px; font-size:var(--fs-sm); color:var(--text)}
.dropped-sync.stale{color:var(--gold)}
.dropped-refresh.busy svg{animation:ptrSpin .8s linear infinite}
.dropped-klik{padding:14px 18px; margin-top:12px}
.dropped-klik-head{display:flex; align-items:baseline; gap:6px 12px; flex-wrap:wrap; margin-bottom:10px}
.dropped-klik-name{font-family:var(--ff-head); font-weight:700; font-size:var(--fs-md); text-transform:uppercase; color:var(--page); overflow-wrap:anywhere}
.dropped-klik-count{margin-left:auto; font-size:var(--fs-sm); letter-spacing:.12em; text-transform:uppercase; color:var(--dim); white-space:nowrap}

/* Klik player count: person icon + number (direct request), the icon
   sized up to match the number. Krewe headings keep "N players" text. */
.dropped-klik-count{font-size:var(--fs-base); letter-spacing:0}
.dropped-klik-count .headcount-icon{width:15px; height:15px; vertical-align:-2px; margin-right:5px}
.dropped-names{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 16px}
.dropped-names li{padding:8px 0; border-top:1px solid rgba(var(--line-rgb),.4); font-weight:600; overflow-wrap:anywhere}
@media(max-width:899px){ .dropped-names{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:599px){ .dropped-names{grid-template-columns:1fr; gap:0} }
/* A Klik's leaders as tags (leaderTagsHtml(), shared.js): in Command Center
   each opens Setup > Leaders (user, 2026-10-21); on the Mission Board plain
   (user, 2026-10-30). */
.sc-leaders{align-items:center; margin-bottom:14px}
.sc-leaders-label{font-size:var(--fs-sm); letter-spacing:.12em; text-transform:uppercase; color:var(--dim); margin-right:4px}
/* A button tag: no button line-height or padding of its own, so the name
   sits in the middle (user, 2026-10-22); this font rides high, so 1px
   more on top. */
button.sc-leader-tag{font-family:inherit; font-size:var(--fs-sm); line-height:1.2; padding:4.5px 12px 1.5px; cursor:pointer; -webkit-appearance:none; appearance:none}
button.sc-leader-tag:hover{border-color:var(--cyan); color:var(--cyan)}
.sc-no-leader{color:var(--gold)}
.dropped-klik .sc-leaders{margin-bottom:10px}
/* Setup > Kliks: under the Klik's name, and the Krewe's count of Kliks
   without one beside its name (user, 2026-11-13). */
.unit-name .sc-leaders{margin:8px 0 0}
.krewe-group-noleader{margin-left:12px; color:var(--gold); font-size:var(--fs-sm); font-family:var(--ff); letter-spacing:normal; text-transform:none; white-space:nowrap}
.dropped-klik .sc-leaders-label{font-size:var(--fs-xs)}
