/* GymSpotter OS v8.2.0 — global shared styles (extracted from v7.3 single-file app) */
/* ═══════════════════════════════════════════════════════════════════════
   GYM TECH APP v7.3 — COMPLETE CSS
   All rules prefixed .gymspotter-app or .gymspotter- to prevent host page bleed.
═══════════════════════════════════════════════════════════════════════ */

/* ── 0. Interstitial boot loader ── */
.gymspotter-boot-loader{
  position:fixed;
  inset:0;
  z-index:999999;
  background:
    radial-gradient(circle at 50% 35%,rgba(37,99,235,.30),transparent 34%),
    radial-gradient(circle at 65% 58%,rgba(251,191,36,.12),transparent 26%),
    linear-gradient(135deg,#0b1120 0%,#1a1050 58%,#0d1e40 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition:opacity .55s ease,visibility .55s ease;
}
.gymspotter-boot-loader.gymspotter-boot-loader--hide{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
.gymspotter-boot-loader.gymspotter-boot-loader--hide .gymspotter-boot-loader-card{
  transform:translateY(10px) scale(.98);
}
.gymspotter-boot-loader-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:16px;
  transform:translateY(0) scale(1);
  transition:transform .55s ease;
  animation:gymspotterBootLoaderFloat 2.8s ease-in-out infinite;
}
.gymspotter-boot-loader-logo-wrap{
  width:104px;
  height:104px;
  border-radius:24px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 24px 70px rgba(0,0,0,.35),0 0 0 8px rgba(255,255,255,.035);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.gymspotter-boot-loader-logo{
  width:76px;
  height:76px;
  object-fit:contain;
  border-radius:16px;
  filter:drop-shadow(0 12px 22px rgba(0,0,0,.28));
}
.gymspotter-boot-loader-title{
  font-family:'Manrope','Inter',Arial,sans-serif;
  font-size:1.25rem;
  font-weight:900;
  color:#fff;
  letter-spacing:-.3px;
}
.gymspotter-boot-loader-sub{
  font-family:'Inter',Arial,sans-serif;
  font-size:.75rem;
  font-weight:700;
  color:rgba(255,255,255,.6);
  text-transform:uppercase;
  letter-spacing:1.4px;
  margin-top:4px;
}
.gymspotter-boot-loader-progress{
  width:180px;
  height:4px;
  border-radius:99px;
  background:rgba(255,255,255,.12);
  overflow:hidden;
  margin-top:4px;
}
.gymspotter-boot-loader-progress-bar{
  width:42%;
  height:100%;
  border-radius:99px;
  background:linear-gradient(90deg,#60a5fa,#fbbf24,#4ade80);
  animation:gymspotterBootLoaderBar 1.25s ease-in-out infinite;
}
@keyframes gymspotterBootLoaderBar{
  0%{transform:translateX(-120%)}
  55%{transform:translateX(110%)}
  100%{transform:translateX(260%)}
}
@keyframes gymspotterBootLoaderFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-4px)}
}
@media(prefers-reduced-motion:reduce){
  .gymspotter-boot-loader-card,
  .gymspotter-boot-loader-progress-bar{
    animation:none!important;
  }
}
/* Folder loading screen — reuses the boot loader look for the one-time data load */
.gymspotter-folder-loader{z-index:999998}
.gymspotter-folder-loader .gymspotter-boot-loader-sub{text-transform:none;letter-spacing:0;font-size:.8125rem;max-width:24rem}
.gymspotter-folder-loader-icon{font-size:2.25rem;color:#93c5fd}
.gymspotter-folder-loader-log{display:flex;flex-direction:column;gap:.25rem;min-height:1rem;max-width:24rem;font-family:'Inter',Arial,sans-serif;font-size:.75rem;color:rgba(255,255,255,.72);text-align:left}
.gymspotter-folder-loader-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gymspotter-folder-loader-line--err{color:#fca5a5}
.gymspotter-folder-loader-note{max-width:22rem;font-family:'Inter',Arial,sans-serif;font-size:.6875rem;color:rgba(255,255,255,.5)}

/* ── 1. Base reset ── */
.gymspotter-app *,.gymspotter-app *::before,.gymspotter-app *::after{box-sizing:border-box;margin:0;padding:0}
.gymspotter-app a{text-decoration:none;color:inherit}
.gymspotter-app ul,.gymspotter-app ol{list-style:none}
.gymspotter-app button{cursor:pointer;font:inherit}
.gymspotter-app h1,.gymspotter-app h2,.gymspotter-app h3,.gymspotter-app h4,.gymspotter-app h5,.gymspotter-app h6{font-weight:800;line-height:1.2}

/* ── 2. Fonts ── */
.gymspotter-app,.gymspotter-app *{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif}
h1,h2,h3,h4,
.gymspotter-nav-item,.gymspotter-header-title,.gymspotter-sb-label,
.gymspotter-panel-head,.gymspotter-btn,.gymspotter-page-title,
.gymspotter-tile-label,.gymspotter-tile-value,.gymspotter-label,
.gymspotter-drawer-head,.gymspotter-section-title{font-family:'Manrope','Inter',-apple-system,sans-serif!important}
i[class*="fa-"]{font-family:"Font Awesome 6 Free","Font Awesome 6 Brands","FontAwesome"!important;font-style:normal!important;font-variant:normal!important;text-rendering:auto!important;-webkit-font-smoothing:antialiased!important;display:inline-block!important}

/* ── 3. Design tokens (light) ── */
:root{
  --gymspotter-blue:#2563eb;--gymspotter-blue-dk:#1d4ed8;--gymspotter-blue-lt:#eff6ff;
  --gymspotter-blue-dim:rgba(37,99,235,.08);--gymspotter-blue-glow:rgba(37,99,235,.22);--gymspotter-blue-mid:#3b82f6;
  --gymspotter-green:#116f34;--gymspotter-green-lt:#ecfdf5;
  --gymspotter-amber:#974608;--gymspotter-amber-lt:#fffbeb;
  --gymspotter-red:#b91c1c;--gymspotter-red-lt:#fef2f2;
  --gymspotter-purple:#6d28d9;--gymspotter-purple-lt:#f5f3ff;
  --gymspotter-teal:#0f766e;--gymspotter-teal-lt:rgba(15,118,110,.08);
  --gymspotter-gh:#6366f1;--gymspotter-gh-dim:rgba(99,102,241,.10);
  --gymspotter-qb:#1d7215;--gymspotter-qb-lt:rgba(44,160,28,.10);
  --gymspotter-text:#0f172a;--gymspotter-text-sec:#1e293b;
  --gymspotter-muted:#475569;--gymspotter-muted-lt:#64748b;
  --gymspotter-bg:#f0f4f8;--gymspotter-bg-alt:#f1f5f9;
  --gymspotter-white:#ffffff;
  --gymspotter-border:#cbd5e1;--gymspotter-border-lt:#e2e8f0;
  --gymspotter-surface:#ffffff;--gymspotter-surface2:#f8fafc;--gymspotter-surface3:#f1f5f9;
  --gymspotter-sb-w:248px;
  --gymspotter-hdr-h:64px;--gymspotter-tips-h:44px;--gymspotter-ftr-h:44px;
  --gymspotter-radius-xl:16px;--gymspotter-radius:10px;--gymspotter-radius-sm:8px;--gymspotter-radius-xs:6px;
  --gymspotter-min-target:44px;
  --gymspotter-shadow-xs:0 1px 2px rgba(15,23,42,.04);
  --gymspotter-shadow-sm:0 1px 3px rgba(15,23,42,.06),0 1px 2px rgba(15,23,42,.04);
  --gymspotter-shadow-md:0 4px 12px rgba(15,23,42,.08),0 2px 4px rgba(15,23,42,.04);
  --gymspotter-shadow-lg:0 8px 32px rgba(15,23,42,.12);
  --gymspotter-shadow-xl:0 20px 60px rgba(15,23,42,.18);
  --gymspotter-t-fast:.15s cubic-bezier(.4,0,.2,1);--gymspotter-t-base:.26s cubic-bezier(.4,0,.2,1);
  --gymspotter-skel-base:#e2e8f0;--gymspotter-skel-shine:#f1f5f9;
  --gymspotter-focus-ring:0 0 0 3px rgba(37,99,235,.45);
  --gymspotter-focus-outline:2px solid #2563eb;
}

/* ── 4. Dark mode tokens ── */
.gymspotter-dark{
  --gymspotter-bg:#090c12;--gymspotter-surface:#111520;--gymspotter-surface2:#0d1018;--gymspotter-surface3:#151b26;
  --gymspotter-border:#334155;--gymspotter-border-lt:#1d2436;
  --gymspotter-text:#f1f5f9;--gymspotter-text-sec:#cbd5e1;--gymspotter-muted:#94a3b8;--gymspotter-muted-lt:#64748b;
  --gymspotter-bg-alt:#0d1018;--gymspotter-white:#111520;
  --gymspotter-blue:#60a5fa;--gymspotter-green:#4ade80;--gymspotter-amber:#fbbf24;--gymspotter-red:#f87171;--gymspotter-purple:#c4b5fd;
  --gymspotter-blue-dim:rgba(96,165,250,.14);--gymspotter-blue-glow:rgba(96,165,250,.28);
  --gymspotter-green-lt:rgba(74,222,128,.12);--gymspotter-amber-lt:rgba(251,191,36,.12);
  --gymspotter-red-lt:rgba(248,113,113,.12);--gymspotter-purple-lt:rgba(196,181,253,.12);
  --gymspotter-gh-dim:rgba(129,140,248,.12);--gymspotter-qb-lt:rgba(44,160,28,.15);
  --gymspotter-skel-base:#1d2436;--gymspotter-skel-shine:#263044;
  --gymspotter-focus-ring:0 0 0 3px rgba(96,165,250,.55);
  --gymspotter-focus-outline:2px solid #60a5fa;
}

/* ── 5. App shell ── */
.gymspotter-app{
  overflow:hidden;background:var(--gymspotter-bg);
  position:fixed;inset:0;
  display:flex;flex-direction:column;
  color:var(--gymspotter-text);font-size:.875rem;line-height:1.55;
  -webkit-font-smoothing:antialiased;
  padding-left:var(--gymspotter-sb-w);
  transition:padding-left var(--gymspotter-t-base),right var(--gymspotter-t-base);
}

/* ── Gym Tech AI workspace ── */
body.gymspotter-ai-open .gymspotter-app{right:clamp(22rem,30vw,27rem)}
.gymspotter-ai-toggle{color:var(--gymspotter-purple)!important}
.gymspotter-ai-panel{
  position:fixed;z-index:500;top:0;right:0;bottom:0;
  width:clamp(22rem,30vw,27rem);display:flex;flex-direction:column;
  background:var(--gymspotter-surface);border-left:1px solid var(--gymspotter-border);
  color:var(--gymspotter-text);font:500 .875rem/1.55 'Manrope','Inter',sans-serif;
  box-shadow:-10px 0 32px rgba(15,23,42,.14);
  transform:translateX(100%);visibility:hidden;pointer-events:none;
  transition:transform var(--gymspotter-t-base),visibility 0s linear var(--gymspotter-t-base);
}
.gymspotter-ai-panel,.gymspotter-ai-panel *{box-sizing:border-box}
.gymspotter-ai-panel.gymspotter-open{transform:translateX(0);visibility:visible;pointer-events:auto;transition-delay:0s}
.gymspotter-ai-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:4rem;padding:.75rem 1rem;border-bottom:1px solid var(--gymspotter-border-lt)}
.gymspotter-ai-head>div{display:flex;min-width:0;flex-direction:column}
.gymspotter-ai-head strong{font-size:1rem;color:var(--gymspotter-text)}
.gymspotter-ai-head span{overflow:hidden;color:var(--gymspotter-muted);font-size:.6875rem;text-overflow:ellipsis;white-space:nowrap}
.gymspotter-ai-head span[data-state="online"]{color:var(--gymspotter-green)}
.gymspotter-ai-head span[data-state="offline"]{color:var(--gymspotter-amber)}
.gymspotter-ai-head-actions{display:flex!important;flex-direction:row!important;align-items:center;gap:.375rem}
.gymspotter-ai-mode{display:grid;grid-template-columns:1fr 1fr;gap:.25rem;padding:.5rem 1rem;border-bottom:1px solid var(--gymspotter-border-lt);background:var(--gymspotter-surface2)}
.gymspotter-ai-mode-btn{min-height:2.75rem;border:1px solid transparent;border-radius:var(--gymspotter-radius-xs);background:transparent;color:var(--gymspotter-muted);cursor:pointer;font:700 .75rem 'Manrope','Inter',sans-serif}
.gymspotter-ai-mode-btn.gymspotter-active{border-color:var(--gymspotter-border);background:var(--gymspotter-surface);color:var(--gymspotter-blue);box-shadow:var(--gymspotter-shadow-xs)}
.gymspotter-ai-setup{padding:.75rem 1rem;border-bottom:1px solid var(--gymspotter-border);background:var(--gymspotter-surface2)}
.gymspotter-ai-setup[hidden]{display:none}
.gymspotter-ai-setup>label:first-child{display:block;margin-bottom:.375rem;color:var(--gymspotter-text);font-size:.75rem;font-weight:800}
.gymspotter-ai-key-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem}
.gymspotter-ai-key-row input{min-width:0;height:2.25rem;border:1px solid var(--gymspotter-border);border-radius:var(--gymspotter-radius-xs);background:var(--gymspotter-surface);color:var(--gymspotter-text);font:500 .75rem 'Manrope','Inter',sans-serif;padding:0 .625rem}
.gymspotter-ai-remember{display:flex;align-items:center;gap:.375rem;margin-top:.5rem;color:var(--gymspotter-text);font-size:.6875rem;font-weight:700}
.gymspotter-ai-key-note{margin:.5rem 0;color:var(--gymspotter-muted);font-size:.6875rem;line-height:1.45}
.gymspotter-ai-messages{flex:1;min-height:0;overflow-y:auto;padding:1rem;scrollbar-gutter:stable}
.gymspotter-ai-message{max-width:92%;margin:0 0 1rem;padding:.75rem .875rem;border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-sm);background:var(--gymspotter-surface2)}
.gymspotter-ai-message--user{margin-left:auto;background:var(--gymspotter-blue);border-color:var(--gymspotter-blue);color:#fff}
.gymspotter-ai-message--error{border-color:var(--gymspotter-red);background:var(--gymspotter-red-lt)}
.gymspotter-ai-message-label{margin-bottom:.25rem;color:var(--gymspotter-muted);font-size:.6875rem;font-weight:800;text-transform:uppercase}
.gymspotter-ai-message--user .gymspotter-ai-message-label{color:rgba(255,255,255,.8)}
.gymspotter-ai-message-body{font-size:.8125rem;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.gymspotter-ai-message--pending .gymspotter-ai-message-body::after{content:'Thinking...';color:var(--gymspotter-muted)}
.gymspotter-ai-compose{display:grid;grid-template-columns:minmax(0,1fr) 2.75rem;align-items:end;gap:.5rem;padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom));border-top:1px solid var(--gymspotter-border);background:var(--gymspotter-surface)}
.gymspotter-ai-upload{grid-column:1/-1;display:flex;align-items:center;gap:.5rem;min-height:2.75rem;padding:.375rem .5rem;border:1px dashed var(--gymspotter-border);border-radius:var(--gymspotter-radius-sm);background:var(--gymspotter-surface2);color:var(--gymspotter-muted);font-size:.6875rem;transition:border-color var(--gymspotter-t-fast),background var(--gymspotter-t-fast)}
.gymspotter-ai-upload.gymspotter-dragging{border-color:var(--gymspotter-blue);background:var(--gymspotter-blue-lt);color:var(--gymspotter-blue-dk)}
.gymspotter-ai-attach-btn{display:inline-flex;align-items:center;gap:.375rem;flex-shrink:0;min-height:2rem;padding:0 .625rem;border:1px solid var(--gymspotter-border);border-radius:var(--gymspotter-radius-xs);background:var(--gymspotter-surface);color:var(--gymspotter-text);font:700 .6875rem 'Manrope','Inter',sans-serif;cursor:pointer}
.gymspotter-ai-attach-btn:hover{border-color:var(--gymspotter-blue);color:var(--gymspotter-blue)}
.gymspotter-ai-file-tray{grid-column:1/-1;display:flex;gap:.375rem;overflow-x:auto;padding:.125rem 0}
.gymspotter-ai-file-tray[hidden]{display:none}
.gymspotter-ai-file-chip{display:inline-flex;align-items:center;gap:.375rem;max-width:100%;min-height:2rem;padding:.25rem .375rem .25rem .5rem;border:1px solid var(--gymspotter-border);border-radius:var(--gymspotter-radius-xs);background:var(--gymspotter-blue-lt);color:var(--gymspotter-blue-dk);font-size:.6875rem;font-weight:700}
.gymspotter-ai-file-chip>span{overflow:hidden;max-width:12rem;text-overflow:ellipsis;white-space:nowrap}
.gymspotter-ai-file-chip button{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;padding:0;border:0;border-radius:.25rem;background:transparent;color:inherit;cursor:pointer}
.gymspotter-ai-file-chip button:hover{background:var(--gymspotter-blue-dim)}
.gymspotter-ai-compose textarea{width:100%;min-height:2.75rem;max-height:9rem;resize:vertical;border:1px solid var(--gymspotter-border);border-radius:var(--gymspotter-radius-sm);background:var(--gymspotter-surface2);color:var(--gymspotter-text);font:500 .8125rem/1.45 'Manrope','Inter',sans-serif;padding:.625rem .75rem}
.gymspotter-ai-compose textarea::placeholder{color:var(--gymspotter-muted)}

@media(max-width:64rem){body.gymspotter-ai-open .gymspotter-app{right:min(24rem,45vw)}.gymspotter-ai-panel{width:min(24rem,45vw)}}
@media(max-width:40rem){
  body.gymspotter-ai-open .gymspotter-app{right:0}
  .gymspotter-ai-panel{top:var(--gymspotter-hdr-h);width:100%;box-shadow:none;border-left:0;border-top:1px solid var(--gymspotter-border)}
  .gymspotter-ai-head{min-height:3.5rem}
  .gymspotter-ai-upload{align-items:flex-start;flex-direction:column}
}

/* ── Focus / SR / skip ── */
:focus{outline:none}
:focus-visible{outline:var(--gymspotter-focus-outline);outline-offset:2px;box-shadow:var(--gymspotter-focus-ring);border-radius:var(--gymspotter-radius-xs);z-index:1;position:relative}
.gymspotter-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.gymspotter-skip-link{position:absolute;top:-100px;left:8px;background:var(--gymspotter-blue);color:#fff!important;padding:10px 16px;border-radius:var(--gymspotter-radius-sm);font-weight:700;z-index:100000;transition:top var(--gymspotter-t-fast)}
.gymspotter-skip-link:focus{top:8px}

/* ── Scrollbars ── */
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(15,23,42,.18);border-radius:99px;border:2px solid transparent;background-clip:padding-box}
.gymspotter-dark ::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);background-clip:padding-box}

/* ── 7b. Collapsible sidebar ── */
/* Collapsed: 64px icon-only rail with smooth fly-out label on hover.
   Icons are the primary nav icon for each item.
   Hovering slides out a pill label to the right of the rail.
   Z-index elevated above the main content so the rail never hides behind it. */
.gymspotter-sb-collapsed{--gymspotter-sb-w:64px}
.gymspotter-sb-collapsed.gymspotter-sidebar{
  z-index:300;
  overflow:visible!important;
}

/* Logo: center just the image, hide text */
.gymspotter-sb-collapsed .gymspotter-sb-logo{justify-content:center;padding:14px 0;min-height:64px}
.gymspotter-sb-collapsed .gymspotter-sb-logo-text{display:none!important}

/* Section labels: collapse to a thin 1px divider line with no text */
.gymspotter-sb-collapsed .gymspotter-sb-label{
  font-size:0;
  overflow:hidden;
  height:1px;
  padding:0;
  margin:4px 12px;
  background:rgba(255,255,255,.07);
  border:none;
  border-bottom:none;
}

/* Nav items: perfectly centred 44×44 icon tiles.
   font-size:0 on the item itself hides ALL text (including direct text nodes
   that CSS selectors can't target). The <i> overrides below restore the icon. */
.gymspotter-sb-collapsed .gymspotter-nav-item{
  justify-content:center;
  align-items:center;
  padding:0;
  margin:2px 10px;
  width:44px;
  min-height:44px;
  height:44px;
  border-radius:var(--gymspotter-radius-xs);
  position:relative;
  overflow:visible;
  gap:0;
  font-size:0!important;
  color:transparent!important;
  /* Ensure the tile itself clips nothing — fly-out labels escape via fixed positioning */
  clip-path:none!important;
}

/* Icon inside collapsed nav item — restore font-size so icon renders.
   Text remains hidden because font-size:0 on the parent collapses inline text. */
.gymspotter-sb-collapsed .gymspotter-nav-item i{
  font-size:1.125rem!important;
  width:22px;
  text-align:center;
  flex-shrink:0;
  margin:0;
  position:static!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto;
  color:rgba(255,255,255,.75);
  display:inline-block!important;
}
.gymspotter-sb-collapsed .gymspotter-nav-item:hover i,
.gymspotter-sb-collapsed .gymspotter-nav-item.gymspotter-active i{
  color:#fff!important;
}

/* Active state in collapsed — accent left border via box-shadow (no layout shift) */
.gymspotter-sb-collapsed .gymspotter-nav-item.gymspotter-active{
  background:linear-gradient(135deg,rgba(37,99,235,.45),rgba(37,99,235,.22));
  box-shadow:inset 3px 0 0 var(--gymspotter-blue-mid);
  border-left:none;
}

/* ─── FLY-OUT LABEL on hover ───────────────────────────────────────────────
   A pill slides out from the right edge of the rail when you hover any item.
   Uses ::after on the nav item itself.
   The vertical position is handled by CSS — aligns to the vertical centre
   of the 44px tile using top:50% + translateY(-50%).
   No JS needed.
   v7.4: 0.35s hover delay prevents aggressive flashing when moving cursor.
         Box-shadow reduced for a softer, less aggressive appearance.
─────────────────────────────────────────────────────────────────────────── */
.gymspotter-sb-collapsed .gymspotter-nav-item[data-tip]{
  /* ensure stacking context so ::after escapes overflow:hidden on sidebar */
  isolation:isolate;
}

.gymspotter-sb-collapsed .gymspotter-nav-item[data-tip]::after{
  content:attr(data-tip);

  /* Positioning: fixed so it escapes sidebar overflow, aligned to item centre */
  position:fixed;
  left:68px;           /* right edge of 64px rail + 4px gap */
  /* top is set dynamically by gymspotterSbTooltipInit via --_tip-y */
  top:var(--_tip-y, 50%);
  transform:translateY(-50%);

  /* Pill appearance */
  background:linear-gradient(135deg,#0d1730,#1a2a50);
  color:#fff;
  border:1px solid rgba(147,197,253,.35);
  border-left:3px solid #60a5fa;
  padding:9px 16px 9px 14px;
  border-radius:0 10px 10px 0;
  font-family:'Manrope','Inter',sans-serif;
  font-size:.8125rem;
  font-weight:700;
  white-space:nowrap;
  letter-spacing:-.01em;

  /* ── Hidden state — slides left and fades out.
     Same delay both ways so moving between items feels
     deliberate, never jarring. ── */
  opacity:0;
  pointer-events:none;
  transform:translateY(-50%) translateX(-18px);
  transition:
    opacity     .35s ease .3s,
    transform   .35s ease .3s;
  z-index:99999;
  box-shadow:3px 2px 12px rgba(0,0,0,.35);
}

.gymspotter-sb-collapsed .gymspotter-nav-item[data-tip]:hover::after{
  /* ── Visible state — slides right and fades in.
     EXACT SAME .35s duration, EXACT SAME .3s delay,
     EXACT SAME ease curve — fully symmetric both ways. ── */
  opacity:1;
  transform:translateY(-50%) translateX(0);
  transition:
    opacity     .35s ease .3s,
    transform   .35s ease .3s;
}

/* Folder panel in collapsed mode: icon-only strip */
.gymspotter-sb-collapsed .gymspotter-sb-folder-panel{
  padding:8px 0;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.gymspotter-sb-collapsed .gymspotter-sb-fp-header{
  justify-content:center;
  padding:0;
  gap:0;
  width:100%;
}
.gymspotter-sb-collapsed .gymspotter-sb-fp-name,
.gymspotter-sb-collapsed .gymspotter-sb-fp-mount-cta,
.gymspotter-sb-collapsed .gymspotter-sb-fp-tree{
  display:none!important;
}
.gymspotter-sb-collapsed .gymspotter-sb-fp-actions{
  justify-content:center;
  width:100%;
  gap:0;
}
/* Show only the primary mount/expand button in collapsed rail */
.gymspotter-sb-collapsed .gymspotter-sb-fp-actions .gymspotter-sb-fp-btn:not(#gymspotterSbFpMountBtn):not(#gymspotterSbFpPopoutBtn){
  display:none!important;
}
.gymspotter-sb-collapsed #gymspotterSbFpMountBtn,
.gymspotter-sb-collapsed #gymspotterSbFpPopoutBtn{
  width:44px;height:44px;border-radius:var(--gymspotter-radius-xs);font-size:.875rem;
  margin:2px auto;
}

/* Footer: completely hidden in collapsed rail */
.gymspotter-sb-collapsed .gymspotter-sb-footer{display:none!important}

/* ── Fly-out labels for folder-panel buttons in collapsed rail ── */
.gymspotter-sb-collapsed .gymspotter-sb-fp-btn[data-tip]::after{
  content:attr(data-tip);
  position:fixed;
  left:68px;
  top:var(--_tip-y, 50%);
  transform:translateY(-50%) translateX(-18px);
  background:linear-gradient(135deg,#0d1730,#1a2a50);
  color:#fff;
  border:1px solid rgba(147,197,253,.35);
  border-left:3px solid #fbbf24;
  padding:9px 16px 9px 14px;
  border-radius:0 10px 10px 0;
  font-family:'Manrope','Inter',sans-serif;
  font-size:.8125rem;
  font-weight:700;
  white-space:nowrap;
  letter-spacing:-.01em;
  opacity:0;
  pointer-events:none;
  transition:opacity .35s ease .3s, transform .35s ease .3s;
  z-index:99999;
  box-shadow:3px 2px 12px rgba(0,0,0,.35);
}
.gymspotter-sb-collapsed .gymspotter-sb-fp-btn[data-tip]:hover::after{
  opacity:1;
  transform:translateY(-50%) translateX(0);
  transition:opacity .35s ease .3s, transform .35s ease .3s;
}

/* Collapsed sidebar itself — no horizontal scroll */
.gymspotter-sb-collapsed.gymspotter-sidebar{overflow-x:hidden;align-items:center;}
.gymspotter-sb-collapsed .gymspotter-sb-section{width:100%;padding:6px 0;}

/* ── 7. Sidebar ── */
.gymspotter-sidebar{
  position:fixed;top:0;left:0;bottom:0;width:var(--gymspotter-sb-w);
  background:linear-gradient(180deg,#0b1120 0%,#1a1050 50%,#0d1e40 100%);
  color:#fff;display:flex;flex-direction:column;z-index:201;
  overflow-y:auto;overflow-x:hidden;
  transition:transform var(--gymspotter-t-base),width var(--gymspotter-t-base);
  border-right:1px solid rgba(255,255,255,.06)
}
/* When collapsed, allow the fly-out labels and nav item icons to overflow
   the sidebar rail without being clipped. Scrollbars are hidden in this state. */
.gymspotter-sb-collapsed .gymspotter-sidebar,
body.gymspotter-sb-collapsed .gymspotter-sidebar{
  overflow:visible!important;
  overflow-y:visible!important;
  overflow-x:visible!important;
  z-index:300!important;
}

.gymspotter-sb-logo{display:flex;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid rgba(255,255,255,.08);flex-shrink:0;background:rgba(0,0,0,.2)}
.gymspotter-sb-logo-img{height:34px;width:auto;object-fit:contain;border-radius:6px}
.gymspotter-sb-logo-text{font-size:.9375rem;font-weight:900;color:#fff;white-space:nowrap;letter-spacing:-.02em}
.gymspotter-sb-logo-sub{font-size:.625rem;color:rgba(255,255,255,.6);text-transform:uppercase;letter-spacing:1px;font-weight:700;display:block;margin-top:2px}
.gymspotter-sb-section{padding:12px 0}
.gymspotter-sb-section+.gymspotter-sb-section{border-top:1px solid rgba(255,255,255,.05)}
.gymspotter-sb-label{font-size:.6875rem;font-weight:800;text-transform:uppercase;letter-spacing:1px;color:rgba(147,197,253,1);padding:0 16px 7px;display:block;border-bottom:1px solid rgba(99,102,241,.18);margin-bottom:4px}
.gymspotter-nav-item{display:flex;align-items:center;gap:10px;min-height:var(--gymspotter-min-target);padding:10px 15px;margin:2px 8px;border-radius:var(--gymspotter-radius-xs);font-size:.875rem;font-weight:500;color:rgba(255,255,255,.85);cursor:pointer;border:none;background:none;width:calc(100% - 16px);text-align:left;white-space:nowrap;transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast);position:relative;line-height:1.4}
.gymspotter-nav-item:hover{background:rgba(255,255,255,.09);color:#fff}
.gymspotter-nav-item.gymspotter-active{background:linear-gradient(135deg,rgba(37,99,235,.42),rgba(37,99,235,.22));color:#fff;font-weight:700;box-shadow:inset 3px 0 0 var(--gymspotter-blue-mid)}
.gymspotter-nav-item.gymspotter-active i{color:#93c5fd}
.gymspotter-nav-item i{width:18px;text-align:center;font-size:.875rem;color:rgba(255,255,255,.55);flex-shrink:0}
.gymspotter-sb-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.06);padding:14px 18px;flex-shrink:0;background:rgba(0,0,0,.18);font-size:.6875rem;color:rgba(255,255,255,.5);line-height:1.6;text-align:center}
.gymspotter-sb-footer a{color:rgba(147,197,253,1);font-weight:700}

/* ═══ SIDEBAR FOLDER PANEL — full tree ═══ */
.gymspotter-sb-folder-panel{flex-shrink:0;border-top:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.25);padding:10px 12px;overflow:hidden}
.gymspotter-sb-fp-header{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.gymspotter-sb-fp-icon{font-size:.875rem;color:rgba(255,255,255,.45);flex-shrink:0;transition:color var(--gymspotter-t-fast)}
.gymspotter-sb-fp-icon.gymspotter-sb-fp-mounted{color:#4ade80}
.gymspotter-sb-fp-name{font-size:.75rem;font-weight:700;color:rgba(255,255,255,.8);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gymspotter-sb-fp-name.gymspotter-sb-fp-unmounted{color:rgba(255,255,255,.35);font-weight:400}
.gymspotter-sb-fp-actions{display:flex;gap:4px;flex-shrink:0}
.gymspotter-sb-fp-btn{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;min-width:26px;min-height:26px;border-radius:5px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.07);color:rgba(255,255,255,.65);font-size:.625rem;cursor:pointer;transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast)}
.gymspotter-sb-fp-btn:hover{background:rgba(255,255,255,.18);color:#fff;border-color:rgba(255,255,255,.35)}
.gymspotter-sb-fp-btn--primary{background:rgba(37,99,235,.35);border-color:rgba(96,165,250,.4);color:#93c5fd}
.gymspotter-sb-fp-btn--primary:hover{background:rgba(37,99,235,.6);color:#fff}
.gymspotter-sb-fp-btn--danger:hover{background:rgba(185,28,28,.5);border-color:rgba(248,113,113,.5);color:#fca5a5}
.gymspotter-sb-fp-mount-cta{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:6px;background:rgba(37,99,235,.15);border:1px dashed rgba(96,165,250,.3);cursor:pointer;transition:background var(--gymspotter-t-fast);font-size:.6875rem;color:rgba(147,197,253,.85);font-weight:700;width:100%}
.gymspotter-sb-fp-mount-cta:hover{background:rgba(37,99,235,.28);color:#fff}
.gymspotter-sb-fp-mount-cta i{font-size:.75rem;color:#93c5fd}

/* ── Sidebar full directory tree ── */
.gymspotter-sb-fp-tree{margin-top:6px;max-height:260px;overflow-y:auto;scrollbar-width:thin}
.gymspotter-sb-fp-tree::-webkit-scrollbar{width:4px}
.gymspotter-sb-fp-tree::-webkit-scrollbar-thumb{background:rgba(255,255,255,.15);border-radius:99px}
.gymspotter-sb-tree-folder{margin-bottom:2px}
.gymspotter-sb-tree-folder-header{display:flex;align-items:center;gap:6px;padding:5px 4px;border-radius:5px;cursor:pointer;transition:background var(--gymspotter-t-fast);user-select:none}
.gymspotter-sb-tree-folder-header:hover{background:rgba(255,255,255,.07)}
.gymspotter-sb-tree-folder-icon{font-size:.75rem;color:rgba(255,255,255,.45);width:14px;text-align:center;flex-shrink:0;transition:color var(--gymspotter-t-fast)}
.gymspotter-sb-tree-folder-icon.gymspotter-sb-tree-folder-icon--open{color:#fbbf24}
.gymspotter-sb-tree-chevron{font-size:.5625rem;color:rgba(255,255,255,.35);flex-shrink:0;transition:transform var(--gymspotter-t-fast),color var(--gymspotter-t-fast)}
.gymspotter-sb-tree-folder-header.gymspotter-open .gymspotter-sb-tree-chevron{transform:rotate(90deg);color:rgba(255,255,255,.6)}
.gymspotter-sb-tree-folder-name{font-size:.6875rem;font-weight:700;color:rgba(255,255,255,.75);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gymspotter-sb-tree-folder-count{font-size:.625rem;color:rgba(255,255,255,.3);flex-shrink:0}
.gymspotter-sb-tree-files{display:none;padding-left:14px;border-left:1px solid rgba(255,255,255,.07);margin-left:6px;margin-bottom:4px}
.gymspotter-sb-tree-files.gymspotter-open{display:block}
.gymspotter-sb-tree-file{display:flex;align-items:center;gap:6px;padding:4px 4px;border-radius:4px;transition:background var(--gymspotter-t-fast);cursor:pointer}
.gymspotter-sb-tree-file:hover{background:rgba(255,255,255,.07)}
.gymspotter-sb-tree-file-icon{font-size:.625rem;color:rgba(255,255,255,.35);width:12px;text-align:center;flex-shrink:0}
.gymspotter-sb-tree-file-icon--pdf{color:#f87171}
.gymspotter-sb-tree-file-icon--csv{color:#4ade80}
.gymspotter-sb-tree-file-icon--xlsx{color:#34d399}
.gymspotter-sb-tree-file-name{font-size:.625rem;color:rgba(255,255,255,.65);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:color var(--gymspotter-t-fast)}
.gymspotter-sb-tree-file:hover .gymspotter-sb-tree-file-name{color:#fff}
.gymspotter-sb-tree-file-actions{display:flex;gap:2px;flex-shrink:0;opacity:0;transition:opacity var(--gymspotter-t-fast)}
.gymspotter-sb-tree-file:hover .gymspotter-sb-tree-file-actions{opacity:1}
.gymspotter-sb-tree-file-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;min-width:20px;border-radius:4px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:rgba(255,255,255,.55);font-size:.5625rem;cursor:pointer;transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast)}
.gymspotter-sb-tree-file-btn:hover{background:rgba(255,255,255,.18);color:#fff}
.gymspotter-sb-tree-file-btn--danger:hover{background:rgba(185,28,28,.5);color:#fca5a5}
.gymspotter-sb-tree-empty{font-size:.625rem;color:rgba(255,255,255,.28);padding:6px 4px;font-style:italic}
.gymspotter-sb-tree-loading{font-size:.625rem;color:rgba(255,255,255,.3);padding:6px 4px;display:flex;align-items:center;gap:5px}

/* ═══ PAGE INLINE FILE VIEWER (inside list panels) ═══ */
.gymspotter-page-inline-files{display:grid;grid-template-columns:repeat(auto-fill,184px);gap:5px}
.gymspotter-page-inline-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:20px;font-size:.6875rem;font-weight:600;cursor:pointer;border:1px solid var(--gymspotter-border);background:var(--gymspotter-surface);color:var(--gymspotter-text-sec);transition:background var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast),color var(--gymspotter-t-fast);width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:0}
.gymspotter-page-inline-chip:hover{border-color:var(--gymspotter-blue);background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk)}
.gymspotter-page-inline-chip.gymspotter-active{background:var(--gymspotter-blue);border-color:var(--gymspotter-blue);color:#fff}
.gymspotter-page-inline-chip--pdf i{color:#f87171}
.gymspotter-page-inline-chip--csv i{color:var(--gymspotter-green)}
.gymspotter-page-inline-chip.gymspotter-active i{color:#fff}
.gymspotter-page-inline-viewer{border-top:1px solid var(--gymspotter-border-lt);overflow:hidden}
.gymspotter-inline-viewer-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:8px 14px;
  border-bottom:1px solid var(--gymspotter-border-lt);
  background:var(--gymspotter-surface2);
  flex-shrink:0
}
.gymspotter-inline-viewer-title{
  font-size:.75rem;font-weight:700;
  color:var(--gymspotter-text);
  display:flex;align-items:center;gap:7px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  flex:1;min-width:0
}
.gymspotter-inline-viewer-actions{display:flex;gap:6px;flex-shrink:0}
.gymspotter-inline-viewer-body{overflow:auto;max-height:420px;position:relative}
.gymspotter-pdf-frame{width:100%;height:420px;border:none;display:block;background:#fff}
.gymspotter-csv-preview-wrap{overflow:auto;max-height:420px}
.gymspotter-csv-preview-table{width:100%;border-collapse:collapse;font-size:.75rem}
.gymspotter-csv-preview-table th{padding:7px 10px;background:var(--gymspotter-surface2);color:var(--gymspotter-muted);font-weight:700;font-size:.625rem;text-transform:uppercase;letter-spacing:.4px;border-bottom:2px solid var(--gymspotter-border-lt);position:sticky;top:0;z-index:2;white-space:nowrap;cursor:pointer;user-select:none}
.gymspotter-csv-preview-table th:hover{background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk)}
.gymspotter-csv-preview-table td{padding:6px 10px;border-bottom:1px solid var(--gymspotter-border-lt);color:var(--gymspotter-text);white-space:nowrap}
.gymspotter-csv-preview-table tr:last-child td{border-bottom:none}
.gymspotter-csv-preview-table tbody tr:hover td{background:var(--gymspotter-blue-dim)}
.gymspotter-csv-row-count{padding:6px 14px;font-size:.6875rem;color:var(--gymspotter-muted);border-top:1px solid var(--gymspotter-border-lt);background:var(--gymspotter-surface2);flex-shrink:0}

/* ═══ INVENTORY CSV TABS ═══ */
.gymspotter-csv-tabs{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:4px;padding:0 0 6px;flex-shrink:0;margin-bottom:6px}
.gymspotter-csv-tabs::-webkit-scrollbar{display:none}
.gymspotter-csv-tab{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;min-height:34px;min-width:0;border-radius:var(--gymspotter-radius-xs);border:1px solid var(--gymspotter-border-lt);background:var(--gymspotter-surface);color:var(--gymspotter-muted);font-size:.75rem;font-weight:600;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast)}
.gymspotter-csv-tab:hover{border-color:var(--gymspotter-blue);background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk)}
.gymspotter-csv-tab.gymspotter-active{background:var(--gymspotter-blue);border-color:var(--gymspotter-blue);color:#fff;font-weight:700}
.gymspotter-csv-tab i{font-size:.6875rem}
.gymspotter-csv-tabs-wrap{display:none;flex-direction:column;flex-shrink:0;margin-bottom:8px}
.gymspotter-csv-tabs-wrap.gymspotter-visible{display:flex}
.gymspotter-csv-tabs-label{font-size:.625rem;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--gymspotter-muted);margin-bottom:4px;display:flex;align-items:center;gap:6px}

/* ═══ COLUMN VISIBILITY ═══ */
.gymspotter-inv-col-hidden{display:none!important}
.gymspotter-col-toggle-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0}
.gymspotter-col-toggle-item{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;background:var(--gymspotter-surface2);border:1px solid var(--gymspotter-border-lt);border-radius:7px;font-size:.75rem;font-weight:600;color:var(--gymspotter-text-sec)}

/* ════════════════════════════════════════════════
   L5 — UNIVERSAL BUTTON TOOLTIPS
   Any button/a with [title] gets an enhanced
   tooltip via CSS only — no JS overhead.
   The existing data-gymspotter-tooltip system already
   works; this makes [title] also show a styled tip.
════════════════════════════════════════════════ */
.gymspotter-btn[title]:not([title=""]):not([data-gymspotter-tooltip]){
  position:relative;
}
.gymspotter-btn[title]:not([title=""]):not([data-gymspotter-tooltip])::after{
  content:attr(title);
  position:absolute;
  bottom:calc(100% + 7px);
  left:50%;
  transform:translateX(-50%);
  background:#0b1120;
  color:#fff;
  border:1px solid rgba(147,197,253,.3);
  padding:5px 10px;
  border-radius:6px;
  font-size:.6875rem;
  font-weight:600;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease .25s;
  z-index:9999;
  box-shadow:0 4px 12px rgba(0,0,0,.45);
  font-family:'Inter',sans-serif;
  letter-spacing:0;
  max-width:220px;
  text-overflow:ellipsis;
  overflow:hidden;
}
.gymspotter-btn[title]:not([title=""]):not([data-gymspotter-tooltip]):hover::after{
  opacity:1;
}
/* Don't show tooltip when button is inside an open modal — avoids clipping */
.gymspotter-modal .gymspotter-btn[title]::after{display:none}
/* Icon-only buttons: center tooltip, slight offset */
.gymspotter-btn--icon[title]::after,
.gymspotter-btn--icon-sm[title]::after{
  font-size:.625rem;
  padding:4px 8px;
}

/* ── 8. Header ── */
.gymspotter-header{position:sticky;
top:0;height:var(--gymspotter-hdr-h);min-height:var(--gymspotter-hdr-h);flex-shrink:0;display:flex;align-items:center;gap:10px;padding:0 24px;background:rgba(255,255,255,.97);backdrop-filter:saturate(180%) blur(12px);-webkit-backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid var(--gymspotter-border-lt);z-index:150;box-shadow:var(--gymspotter-shadow-xs)}
.gymspotter-dark .gymspotter-header{background:rgba(17,21,32,.97)}
.gymspotter-mobile-brand{display:contents}
.gymspotter-mobile-header-logo{display:none}
.gymspotter-hamburger{display:none;background:none;border:1px solid var(--gymspotter-border);cursor:pointer;font-size:1rem;color:var(--gymspotter-text);width:var(--gymspotter-min-target);height:var(--gymspotter-min-target);border-radius:var(--gymspotter-radius-xs);align-items:center;justify-content:center}
.gymspotter-header-title{font-size:1.125rem;font-weight:800;color:var(--gymspotter-text);white-space:nowrap;letter-spacing:-.02em}
.gymspotter-header-spacer{flex:1;min-width:12px}

/* ── Header Global Search Bar ── */
.gymspotter-hdr-search-wrap{
  flex:1 1 32rem;
  min-width:180px;
  max-width:42rem;
  display:flex;
  align-items:center;
}
.gymspotter-hdr-search-btn{
  display:flex;
  align-items:center;
  gap:9px;
  width:100%;
  min-height:38px;
  padding:0 14px;
  border-radius:var(--gymspotter-radius);
  border:1.5px solid var(--gymspotter-border);
  background:var(--gymspotter-surface2);
  color:var(--gymspotter-muted);
  cursor:pointer;
  transition:border-color var(--gymspotter-t-fast),background var(--gymspotter-t-fast),box-shadow var(--gymspotter-t-fast);
  text-align:left;
  font-family:inherit;
}
.gymspotter-hdr-search-btn:hover{
  border-color:var(--gymspotter-blue);
  background:var(--gymspotter-white);
  box-shadow:0 0 0 3px var(--gymspotter-blue-dim);
  color:var(--gymspotter-text);
}
.gymspotter-dark .gymspotter-hdr-search-btn:hover{
  background:var(--gymspotter-surface);
}
.gymspotter-hdr-search-icon{
  font-size:.8125rem;
  flex-shrink:0;
  color:var(--gymspotter-muted);
}
.gymspotter-hdr-search-btn:hover .gymspotter-hdr-search-icon{
  color:var(--gymspotter-blue);
}
.gymspotter-hdr-search-placeholder{
  flex:1;
  font-size:.8125rem;
  font-weight:500;
  color:var(--gymspotter-muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.gymspotter-hdr-search-kbd{
  flex-shrink:0;
  font-size:.625rem;
  font-weight:700;
  padding:2px 6px;
  border-radius:5px;
  border:1px solid var(--gymspotter-border);
  background:var(--gymspotter-surface);
  color:var(--gymspotter-muted);
  font-family:monospace;
  letter-spacing:.3px;
}
/* Hide on narrow screens — command palette still via ⌘K */
@media(max-width:900px){
  .gymspotter-hdr-search-wrap{display:none}
}
@media(max-width:1100px){
  .gymspotter-hdr-search-placeholder{display:none}
  .gymspotter-hdr-search-btn{min-width:38px;justify-content:center;flex:0 0 38px;padding:0}
  .gymspotter-hdr-search-kbd{display:none}
  .gymspotter-hdr-search-wrap{flex:0 0 38px;min-width:38px}
}
.gymspotter-header-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.gymspotter-hdr-btn{display:inline-flex;align-items:center;justify-content:center;min-height:var(--gymspotter-min-target);border-radius:var(--gymspotter-radius-sm);background:var(--gymspotter-bg-alt);border:1px solid var(--gymspotter-border);color:var(--gymspotter-text-sec);font-size:.8125rem;gap:6px;padding:0 12px;font-weight:700;transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast);white-space:nowrap;position:relative}
.gymspotter-hdr-btn--icon{width:var(--gymspotter-min-target);padding:0}

/* SOS / Help button — distinct accent so it stands out */
.gymspotter-hdr-sos-btn{
  background:rgba(239,68,68,.1)!important;
  border-color:rgba(239,68,68,.3)!important;
  color:#ef4444!important;
  gap:5px;
  min-width:var(--gymspotter-min-target);
  padding:0 10px!important;
  width:auto!important;
}
.gymspotter-hdr-sos-btn:hover{
  background:#ef4444!important;
  border-color:#ef4444!important;
  color:#fff!important;
}
.gymspotter-hdr-sos-label{
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.3px;
}

.gymspotter-settings-support-title{margin:0 0 .375rem;color:var(--gymspotter-text);font-size:1rem}
.gymspotter-settings-support-copy{margin:0 0 1rem;color:var(--gymspotter-muted);font-size:.8125rem;line-height:1.6}
.gymspotter-settings-support-actions{display:grid;gap:.625rem}
.gymspotter-settings-support-btn{display:grid;grid-template-columns:2.75rem minmax(0,1fr) auto;align-items:center;gap:.75rem;width:100%;min-height:4.25rem;padding:.75rem;border:1px solid var(--gymspotter-border);border-radius:var(--gymspotter-radius-sm);background:var(--gymspotter-surface2);color:var(--gymspotter-text);text-align:left;cursor:pointer;transition:border-color var(--gymspotter-t-fast),background var(--gymspotter-t-fast)}
.gymspotter-settings-support-btn:hover{border-color:var(--gymspotter-blue);background:var(--gymspotter-blue-lt)}
.gymspotter-settings-support-btn>i:first-child{display:flex!important;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;border-radius:var(--gymspotter-radius-xs);background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue)}
.gymspotter-settings-support-btn span{display:flex;min-width:0;flex-direction:column;gap:.125rem}
.gymspotter-settings-support-btn strong{font-size:.8125rem}
.gymspotter-settings-support-btn small{color:var(--gymspotter-muted);font-size:.6875rem;line-height:1.4}
.gymspotter-settings-support-btn>i:last-child{color:var(--gymspotter-muted)}
@media(max-width:900px){
  .gymspotter-hdr-sos-label{display:none}
  .gymspotter-hdr-sos-btn{width:var(--gymspotter-min-target)!important;padding:0!important}
}
.gymspotter-hdr-btn:hover{background:var(--gymspotter-blue-lt);color:var(--gymspotter-blue);border-color:var(--gymspotter-blue)}
.gymspotter-notif-dot{position:absolute;top:8px;right:8px;width:7px;height:7px;background:var(--gymspotter-red);border-radius:50%;border:1.5px solid var(--gymspotter-white)}
.gymspotter-btn--gh{background:var(--gymspotter-gh-dim);color:var(--gymspotter-gh);border-color:rgba(99,102,241,.3)}
.gymspotter-btn--gh:hover{background:var(--gymspotter-gh);color:#fff;border-color:var(--gymspotter-gh)}
.gymspotter-btn--qb{background:var(--gymspotter-qb-lt);color:var(--gymspotter-qb);border-color:rgba(44,160,28,.3)}
.gymspotter-btn--qb:hover{background:var(--gymspotter-qb);color:#fff;border-color:var(--gymspotter-qb)}
.gymspotter-ping{font-size:.8125rem;font-weight:700;display:inline-flex;align-items:center;gap:6px;color:var(--gymspotter-muted);white-space:nowrap;min-height:var(--gymspotter-min-target);padding:0 10px}
.gymspotter-ping-dot{width:10px;height:10px;border-radius:50%;display:inline-block;flex-shrink:0}
.gymspotter-ping-dot.gymspotter-online{background:var(--gymspotter-green);box-shadow:0 0 8px var(--gymspotter-green);animation:gymspotterPingPulse 2s infinite}
.gymspotter-ping-dot.gymspotter-offline{background:var(--gymspotter-red)}
.gymspotter-ping-dot.gymspotter-loading{background:var(--gymspotter-amber);animation:gymspotterPulse .7s infinite}
@keyframes gymspotterPulse{50%{opacity:.2}}
@keyframes gymspotterPingPulse{0%,100%{box-shadow:0 0 4px var(--gymspotter-green)}50%{box-shadow:0 0 12px var(--gymspotter-green)}}

/* ── Notifications dropdown ── */
.gymspotter-notif-panel{
  display:none;
  position:fixed;
  top:58px;
  right:18px;
  width:min(380px,calc(100vw - 28px));
  max-height:70vh;
  background:var(--gymspotter-surface);
  border:1px solid var(--gymspotter-border-lt);
  border-radius:var(--gymspotter-radius);
  box-shadow:var(--gymspotter-shadow-xl);
  z-index:12000;
  overflow:hidden;
  animation:gymspotterModalIn .16s ease;
}
.gymspotter-notif-panel.gymspotter-open{
  display:block;
}
.gymspotter-notif-panel-head{
  height:46px;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:0 14px;
  background:var(--gymspotter-surface2);
  border-bottom:1px solid var(--gymspotter-border-lt);
  font-size:.8125rem;
  font-weight:800;
  color:var(--gymspotter-text);
}
.gymspotter-notif-panel-head i{
  color:var(--gymspotter-blue);
  margin-right:5px;
}
.gymspotter-notif-panel-close{
  width:30px;
  height:30px;
  min-width:30px;
  border-radius:6px;
  border:1px solid var(--gymspotter-border);
  background:transparent;
  color:var(--gymspotter-muted);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast);
}
.gymspotter-notif-panel-close:hover{
  background:var(--gymspotter-red-lt);
  color:var(--gymspotter-red);
  border-color:rgba(185,28,28,.25);
}
.gymspotter-notif-panel-body{
  max-height:calc(70vh - 46px);
  overflow-y:auto;
  padding:8px;
}
.gymspotter-notif-item{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:11px 12px;
  border:1px solid var(--gymspotter-border-lt);
  border-radius:var(--gymspotter-radius-sm);
  background:var(--gymspotter-surface);
  margin-bottom:8px;
  box-shadow:var(--gymspotter-shadow-xs);
}
.gymspotter-notif-item:last-child{
  margin-bottom:0;
}
.gymspotter-notif-item--locked{
  background:var(--gymspotter-blue-dim);
  border-color:rgba(37,99,235,.25);
}
.gymspotter-notif-icon{
  width:30px;
  height:30px;
  min-width:30px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--gymspotter-surface2);
  border:1px solid var(--gymspotter-border-lt);
  color:var(--gymspotter-blue);
}
.gymspotter-notif-content{
  flex:1;
  min-width:0;
}
.gymspotter-notif-title{
  font-size:.8125rem;
  font-weight:800;
  color:var(--gymspotter-text);
  margin-bottom:2px;
}
.gymspotter-notif-body{
  font-size:.75rem;
  line-height:1.55;
  color:var(--gymspotter-muted);
}
.gymspotter-notif-actions{
  display:flex;
  gap:6px;
  margin-top:8px;
  flex-wrap:wrap;
}
.gymspotter-notif-dismiss{
  border:none;
  background:transparent;
  color:var(--gymspotter-muted);
  width:24px;
  height:24px;
  min-width:24px;
  border-radius:5px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.6875rem;
}
.gymspotter-notif-dismiss:hover{
  background:var(--gymspotter-red-lt);
  color:var(--gymspotter-red);
}
.gymspotter-notif-lock-badge{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:.5625rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.4px;
  padding:1px 6px;
  border-radius:99px;
  background:var(--gymspotter-blue);
  color:#fff;
  margin-left:6px;
}

/* ── 9. Tips bar ── */
.gymspotter-tipsbar{position:sticky;top:var(--gymspotter-hdr-h);height:var(--gymspotter-tips-h);min-height:var(--gymspotter-tips-h);flex-shrink:0;background:linear-gradient(90deg,#eff6ff 0%,#dbeafe 40%,#eff6ff 100%);border-bottom:1px solid rgba(37,99,235,.22);z-index:140;display:flex;align-items:center;gap:8px;padding:0 16px;overflow:hidden}
.gymspotter-dark .gymspotter-tipsbar{background:linear-gradient(90deg,#0c1a30 0%,#0a1628 40%,#0c1a30 100%);border-bottom-color:rgba(96,165,250,.25)}
.gymspotter-tipsbar-icon{width:28px;height:28px;border-radius:6px;background:rgba(37,99,235,.12);color:var(--gymspotter-amber);font-size:.75rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.gymspotter-tipsbar-text{font-size:.8125rem;color:var(--gymspotter-text-sec);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
.gymspotter-tipsbar-text strong{color:var(--gymspotter-blue-dk);font-weight:700}
.gymspotter-tipsbar-nav{display:flex;gap:4px;flex-shrink:0}
.gymspotter-tipsbar-btn{min-width:28px;min-height:28px;border-radius:5px;background:rgba(37,99,235,.12);border:1px solid rgba(37,99,235,.18);color:var(--gymspotter-blue-dk);display:inline-flex;align-items:center;justify-content:center;font-size:.625rem;transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast)}
.gymspotter-tipsbar-btn:hover{background:var(--gymspotter-blue);color:#fff}

/* ── 10. Main / Footer / Pages ── */
.gymspotter-main{flex:1;min-height:0;overflow-y:auto;overflow-x:auto;padding:20px 24px 24px;background:var(--gymspotter-bg);-webkit-overflow-scrolling:touch}
.gymspotter-footer{position:relative;margin-top:auto;height:var(--gymspotter-ftr-h);min-height:var(--gymspotter-ftr-h);flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-top:1px solid var(--gymspotter-border-lt);background:var(--gymspotter-surface);font-size:.75rem;color:var(--gymspotter-muted);flex-wrap:wrap;gap:6px;z-index:40}
.gymspotter-footer-link{color:var(--gymspotter-muted);font-weight:700}
.gymspotter-footer-link:hover{color:var(--gymspotter-blue)}
.gymspotter-page{display:none;flex:1;flex-direction:column;min-height:0;animation:gymspotterFadeIn .22s ease}
.gymspotter-page.gymspotter-active{display:flex}
@keyframes gymspotterFadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.gymspotter-overlay{display:none;position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:90;backdrop-filter:blur(3px)}
.gymspotter-overlay.gymspotter-visible{display:block}

/* ── 11. Panels / Tiles / Skeleton ── */
.gymspotter-panel{background:var(--gymspotter-surface);border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius);overflow:hidden;margin-bottom:16px;box-shadow:var(--gymspotter-shadow-xs)}
.gymspotter-panel:last-child{margin-bottom:0}
.gymspotter-panel-head{padding:12px 16px;border-bottom:1px solid var(--gymspotter-border-lt);font-weight:700;font-size:.8125rem;display:flex;align-items:center;justify-content:space-between;background:var(--gymspotter-surface2);color:var(--gymspotter-text);gap:8px;flex-shrink:0}
.gymspotter-panel-head i{color:var(--gymspotter-blue);margin-right:4px}
.gymspotter-panel-body{padding:16px}
.gymspotter-panel-body--np{padding:0;overflow:hidden;min-width:0}
.gymspotter-tile-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-bottom:16px;flex-shrink:0}
@media(max-width:1200px){.gymspotter-tile-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){.gymspotter-tile-grid{grid-template-columns:repeat(2,1fr)}}
.gymspotter-tile{background:var(--gymspotter-surface);border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius);padding:16px 14px;cursor:pointer;min-height:90px;transition:transform var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast),box-shadow var(--gymspotter-t-fast);box-shadow:var(--gymspotter-shadow-xs);position:relative;overflow:hidden;text-align:left;width:100%}
.gymspotter-tile:hover{border-color:var(--gymspotter-blue);transform:translateY(-2px);box-shadow:var(--gymspotter-shadow-md)}
.gymspotter-tile-label{font-size:.6875rem;text-transform:uppercase;letter-spacing:.6px;color:var(--gymspotter-muted);margin-bottom:7px;font-weight:700}
.gymspotter-tile-value{font-size:1.75rem;font-weight:900;letter-spacing:-1.2px;color:var(--gymspotter-text)}
.gymspotter-tile-sub{font-size:.6875rem;margin-top:7px;color:var(--gymspotter-muted)}
.gymspotter-skel{background:linear-gradient(90deg,var(--gymspotter-skel-base) 25%,var(--gymspotter-skel-shine) 50%,var(--gymspotter-skel-base) 75%);background-size:200% 100%;animation:gymspotterShim 1.4s ease-in-out infinite;border-radius:5px}
@keyframes gymspotterShim{0%{background-position:200% 0}100%{background-position:-200% 0}}
.gymspotter-skel-label{height:10px;width:60%;margin-bottom:12px}
.gymspotter-skel-value{height:26px;width:40%}
.gymspotter-skel-row{height:38px;width:100%}

/* ── 12. Tables / Badges ── */
.gymspotter-table-wrap{overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch;max-width:100%;contain:inline-size}
.gymspotter-table{width:100%;border-collapse:collapse;font-size:.8125rem;text-align:left}
.gymspotter-table th{padding:10px 12px;color:var(--gymspotter-muted);font-weight:700;font-size:.6875rem;text-transform:uppercase;letter-spacing:.5px;border-bottom:1px solid var(--gymspotter-border-lt);background:var(--gymspotter-surface2);white-space:nowrap}
.gymspotter-table td{padding:10px 12px;border-bottom:1px solid var(--gymspotter-border-lt);color:var(--gymspotter-text);vertical-align:middle;font-size:.8125rem}
.gymspotter-table tr:last-child td{border-bottom:none}
.gymspotter-table tbody tr:hover td{background:var(--gymspotter-blue-dim);cursor:pointer}
.gymspotter-table-sticky thead th{position:sticky;top:0;z-index:10;background:var(--gymspotter-surface2);box-shadow:0 1px 0 var(--gymspotter-border-lt)}
.gymspotter-th-sort{cursor:pointer;user-select:none}
.gymspotter-th-sort:hover{color:var(--gymspotter-blue);background:var(--gymspotter-blue-dim)}
.gymspotter-badge{display:inline-block;padding:4px 9px;border-radius:20px;font-size:.6875rem;font-weight:700;white-space:nowrap;border:1px solid transparent}
.gymspotter-badge--delivered{background:var(--gymspotter-green-lt);color:var(--gymspotter-green);border-color:rgba(21,128,61,.25)}
.gymspotter-badge--transit{background:var(--gymspotter-blue-lt);color:var(--gymspotter-blue-dk);border-color:rgba(29,78,216,.25)}
.gymspotter-badge--pending{background:var(--gymspotter-amber-lt);color:var(--gymspotter-amber);border-color:rgba(180,83,9,.25)}
.gymspotter-badge--exception{background:var(--gymspotter-red-lt);color:var(--gymspotter-red);border-color:rgba(185,28,28,.25)}
.gymspotter-badge--returned{background:var(--gymspotter-purple-lt);color:var(--gymspotter-purple);border-color:rgba(109,40,217,.25)}
.gymspotter-badge--hold{background:rgba(15,118,110,.10);color:var(--gymspotter-teal);border-color:rgba(15,118,110,.25)}

/* Clickable / cyclable status badge */
.gymspotter-badge--clickable{
  cursor:pointer;
  user-select:none;
  transition:transform var(--gymspotter-t-fast),opacity var(--gymspotter-t-fast),box-shadow var(--gymspotter-t-fast);
}
.gymspotter-badge--clickable:hover{
  transform:scale(1.06);
  box-shadow:0 2px 8px rgba(0,0,0,.14);
  opacity:.92;
}
.gymspotter-badge--clickable:active{transform:scale(.97)}
@keyframes gymspotterBadgeCycle{
  0%{transform:scale(1)}
  40%{transform:scale(1.18)}
  100%{transform:scale(1)}
}
.gymspotter-badge--cycling{animation:gymspotterBadgeCycle .5s cubic-bezier(.4,0,.2,1)}
.gymspotter-badge--paid{background:var(--gymspotter-green-lt);color:var(--gymspotter-green);border-color:rgba(21,128,61,.25)}
.gymspotter-badge--draft{background:var(--gymspotter-surface3);color:var(--gymspotter-muted);border-color:var(--gymspotter-border)}
.gymspotter-badge--sent{background:var(--gymspotter-blue-lt);color:var(--gymspotter-blue-dk);border-color:rgba(29,78,216,.25)}
.gymspotter-badge--overdue{background:var(--gymspotter-red-lt);color:var(--gymspotter-red);border-color:rgba(185,28,28,.25)}
.gymspotter-badge--converted{background:var(--gymspotter-purple-lt);color:var(--gymspotter-purple);border-color:rgba(109,40,217,.25)}
.gymspotter-id-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;min-height:28px;border-radius:6px;font-size:.75rem;font-weight:700;font-family:'SF Mono','Fira Mono',monospace;background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk);border:1px solid rgba(37,99,235,.25);cursor:pointer;transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast);user-select:all}
.gymspotter-id-chip:hover{background:var(--gymspotter-blue);color:#fff}
.gymspotter-id-chip--sku{background:rgba(15,118,110,.08);color:var(--gymspotter-teal);border-color:rgba(15,118,110,.25)}
.gymspotter-id-chip--sku:hover{background:var(--gymspotter-teal);color:#fff}

/* ── 13. Buttons / Forms ── */
.gymspotter-btn{display:inline-flex;align-items:center;justify-content:center;min-height:var(--gymspotter-min-target);padding:8px 14px;border-radius:var(--gymspotter-radius-sm);border:1px solid var(--gymspotter-border);background:var(--gymspotter-surface);color:var(--gymspotter-text-sec);font-size:.8125rem;font-weight:600;gap:6px;white-space:nowrap;box-shadow:var(--gymspotter-shadow-xs);line-height:1.4;transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast),transform var(--gymspotter-t-fast)}
.gymspotter-btn:hover{border-color:var(--gymspotter-blue);background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk)}
.gymspotter-btn:active{transform:translateY(1px)}
.gymspotter-btn:disabled{opacity:.5;cursor:not-allowed}
.gymspotter-btn--primary{background:var(--gymspotter-blue);border-color:var(--gymspotter-blue);color:#fff;box-shadow:0 2px 8px var(--gymspotter-blue-glow)}
.gymspotter-btn--primary:hover{background:var(--gymspotter-blue-dk);border-color:var(--gymspotter-blue-dk);color:#fff}
.gymspotter-btn--danger{background:var(--gymspotter-red);border-color:var(--gymspotter-red);color:#fff}
.gymspotter-btn--danger:hover{background:#991b1b;color:#fff}
.gymspotter-btn--amber{background:var(--gymspotter-amber);border-color:var(--gymspotter-amber);color:#fff}
.gymspotter-btn--green{background:var(--gymspotter-green);border-color:var(--gymspotter-green);color:#fff}
.gymspotter-btn--purple{background:var(--gymspotter-purple);border-color:var(--gymspotter-purple);color:#fff}
.gymspotter-btn--csv{background:var(--gymspotter-green-lt);color:var(--gymspotter-green);border-color:rgba(21,128,61,.3)}
.gymspotter-btn--sm{min-height:34px;padding:5px 10px;font-size:.75rem;border-radius:6px}
.gymspotter-btn--full{width:100%}
.gymspotter-btn--icon{width:var(--gymspotter-min-target);padding:0}
.gymspotter-btn--icon-sm{width:34px;height:34px;min-height:34px;padding:0}
.gymspotter-label{display:inline-flex;align-items:center;gap:5px;font-size:.6875rem;color:var(--gymspotter-muted);margin-bottom:6px;font-weight:700;text-transform:uppercase;letter-spacing:.4px}
.gymspotter-label i{color:var(--gymspotter-blue);font-size:.625rem}
.gymspotter-label--req::after{content:' *';color:var(--gymspotter-red)}
.gymspotter-input,.gymspotter-textarea,.gymspotter-select{display:block;width:100%;min-height:var(--gymspotter-min-target);padding:10px 12px;border-radius:var(--gymspotter-radius-xs);border:1px solid var(--gymspotter-border);background:var(--gymspotter-surface);color:var(--gymspotter-text);font-size:.875rem;line-height:1.4;margin-bottom:12px;transition:border-color var(--gymspotter-t-fast),box-shadow var(--gymspotter-t-fast);box-shadow:var(--gymspotter-shadow-xs)}
.gymspotter-input:focus,.gymspotter-textarea:focus,.gymspotter-select:focus{border-color:var(--gymspotter-blue);box-shadow:0 0 0 3px var(--gymspotter-blue-dim)}
.gymspotter-textarea{resize:vertical;min-height:80px;line-height:1.55}
.gymspotter-select{cursor:pointer;-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23475569' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:32px}
.gymspotter-input--sm,.gymspotter-select--sm{min-height:36px;padding:7px 10px;font-size:.8125rem;margin-bottom:0}
.gymspotter-select--sm{padding-right:28px}
.gymspotter-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.gymspotter-form-row-3{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}
.gymspotter-form-row-4{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}

/* ── 14. KV pairs ── */
.gymspotter-kv{display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:.8125rem;border-bottom:1px solid var(--gymspotter-border-lt)}
.gymspotter-kv:last-child{border-bottom:none}
.gymspotter-kv-l{color:var(--gymspotter-muted);font-weight:500;flex-shrink:0}
.gymspotter-kv-r{text-align:right;font-weight:600;word-break:break-word;color:var(--gymspotter-text);max-width:65%}
.gymspotter-kv-money .gymspotter-kv-r{color:var(--gymspotter-green);font-weight:800;font-family:'SF Mono','Fira Mono',monospace}

/* ── 15. Toasts ── */
.gymspotter-toasts{position:fixed;bottom:20px;right:20px;z-index:99999;display:flex;flex-direction:column-reverse;gap:8px;pointer-events:none;max-width:340px;width:calc(100vw - 40px)}
.gymspotter-toast{background:var(--gymspotter-surface);border:1px solid var(--gymspotter-border-lt);border-left:4px solid var(--gymspotter-blue);padding:12px 16px;border-radius:8px;font-size:.8125rem;font-weight:500;color:var(--gymspotter-text);box-shadow:var(--gymspotter-shadow-lg);animation:gymspotterSlideIn .25s forwards;pointer-events:auto;max-width:320px;display:flex;align-items:center;gap:10px}
.gymspotter-toast--ok{border-left-color:var(--gymspotter-green)}
.gymspotter-toast--err{border-left-color:var(--gymspotter-red)}
.gymspotter-toast--copy{border-left-color:var(--gymspotter-purple)}
@keyframes gymspotterSlideIn{from{transform:translateX(110%);opacity:0}to{transform:translateX(0);opacity:1}}

/* ── 16. Load more / filter bar ── */
.gymspotter-btn--load-more{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin-top:12px;border-radius:var(--gymspotter-radius-sm);border:2px dashed var(--gymspotter-border);background:var(--gymspotter-surface);color:var(--gymspotter-muted);font-size:.8125rem;font-weight:700;cursor:pointer;transition:border-color var(--gymspotter-t-fast),color var(--gymspotter-t-fast),background var(--gymspotter-t-fast)}
.gymspotter-btn--load-more:hover{border-color:var(--gymspotter-blue);background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk)}
.gymspotter-load-more-end{text-align:center;padding:14px;font-size:.75rem;color:var(--gymspotter-muted-lt);font-weight:600;margin-top:8px}
.gymspotter-filter-bar{display:flex;flex-direction:row;flex-wrap:nowrap;gap:6px;align-items:center;margin-bottom:14px;flex-shrink:0;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:2px}
.gymspotter-filter-bar .gymspotter-input--sm,.gymspotter-filter-bar .gymspotter-select--sm{flex-shrink:0;min-width:0}
@media(max-width:640px){.gymspotter-filter-bar{flex-wrap:wrap;overflow-x:visible}}

/* ── 17. Layout grids ── */
.gymspotter-main-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;flex:1;min-height:0}
@media(max-width:900px){.gymspotter-main-grid{grid-template-columns:1fr}}
.gymspotter-create-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;flex-shrink:0;margin-bottom:16px}
@media(max-width:900px){.gymspotter-create-grid{grid-template-columns:1fr}}
.gymspotter-ship-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;flex:1;min-height:0;align-items:start}
@media(max-width:900px){.gymspotter-ship-grid{grid-template-columns:1fr}}
.gymspotter-page-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;flex-wrap:wrap;gap:10px;flex-shrink:0}
.gymspotter-page-title{font-size:1.25rem;font-weight:800;letter-spacing:-.3px;color:var(--gymspotter-text)}

/* ── 18. Invoice / PO document styles ── */
.gymspotter-doc-card{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--gymspotter-surface);border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-sm);cursor:pointer;transition:border-color var(--gymspotter-t-fast),box-shadow var(--gymspotter-t-fast);box-shadow:var(--gymspotter-shadow-xs);margin-bottom:8px}
.gymspotter-doc-card:hover{border-color:var(--gymspotter-blue);box-shadow:var(--gymspotter-shadow-md)}
.gymspotter-doc-card-icon{width:40px;height:40px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1.125rem;flex-shrink:0}
.gymspotter-doc-card-icon--inv{background:var(--gymspotter-green-lt);color:var(--gymspotter-green)}
.gymspotter-doc-card-icon--po{background:var(--gymspotter-blue-lt);color:var(--gymspotter-blue-dk)}
.gymspotter-doc-card-body{flex:1;min-width:0}
.gymspotter-doc-card-title{font-size:.8125rem;font-weight:700;color:var(--gymspotter-text);margin-bottom:2px}
.gymspotter-doc-card-meta{font-size:.75rem;color:var(--gymspotter-muted)}
.gymspotter-doc-card-actions{display:flex;gap:6px;flex-shrink:0;align-items:center}
.gymspotter-convert-btn{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:6px;font-size:.6875rem;font-weight:700;background:var(--gymspotter-purple-lt);color:var(--gymspotter-purple);border:1px solid rgba(109,40,217,.25);cursor:pointer;transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast);white-space:nowrap}
.gymspotter-convert-btn:hover{background:var(--gymspotter-purple);color:#fff}
.gymspotter-li-row{background:var(--gymspotter-surface2);border:1px solid var(--gymspotter-border-lt);border-radius:8px;padding:10px 12px 10px 36px;margin-bottom:8px;position:relative;display:grid;grid-template-columns:1.4fr 1fr 64px 80px 80px;gap:8px;align-items:end}
@media(max-width:1100px){.gymspotter-li-row{grid-template-columns:1fr 1fr 80px 80px}}
@media(max-width:700px){.gymspotter-li-row{grid-template-columns:1fr 1fr}}
.gymspotter-li-row .gymspotter-input{margin-bottom:0;min-height:36px;font-size:.75rem;padding:6px 9px}
.gymspotter-li-row .gymspotter-label{margin-bottom:3px;font-size:.625rem}
.gymspotter-li-remove{position:absolute;top:50%;left:8px;transform:translateY(-50%);background:var(--gymspotter-red-lt);border:1px solid rgba(185,28,28,.25);color:var(--gymspotter-red);width:24px;height:24px;border-radius:5px;font-size:.6875rem;display:flex;align-items:center;justify-content:center}
.gymspotter-totals-box{background:var(--gymspotter-surface2);border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-sm);padding:12px 16px;margin-top:10px}
.gymspotter-grand-total{display:flex;align-items:center;justify-content:space-between;padding:10px 0 0;border-top:2px solid var(--gymspotter-border);margin-top:8px}
.gymspotter-grand-total-label{font-size:.8125rem;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:var(--gymspotter-text)}
.gymspotter-grand-total-val{font-size:1.375rem;font-weight:900;color:var(--gymspotter-green);font-family:'SF Mono','Fira Mono',monospace;letter-spacing:-.5px}

/* ── 19. Google Sheets status bar ── */
.gymspotter-gs-status{display:flex;align-items:center;gap:8px;font-size:.75rem;padding:8px 12px;border-radius:6px;background:var(--gymspotter-surface2);border:1px solid var(--gymspotter-border-lt);margin-bottom:12px}
.gymspotter-gs-status--connected{background:var(--gymspotter-green-lt);border-color:rgba(21,128,61,.3);color:var(--gymspotter-green)}
.gymspotter-gs-status--error{background:var(--gymspotter-red-lt);border-color:rgba(185,28,28,.25);color:var(--gymspotter-red)}

/* ── 20. Dispatch row color coding ── */
.gymspotter-row-delivered{border-left:4px solid var(--gymspotter-green)}
.gymspotter-row-transit{border-left:4px solid var(--gymspotter-blue)}
.gymspotter-row-pending{border-left:4px solid var(--gymspotter-amber)}
.gymspotter-row-exception{border-left:4px solid var(--gymspotter-red)}
.gymspotter-row-returned{border-left:4px solid var(--gymspotter-purple)}

/* ── 21. Full-page Calendar ── */
.gymspotter-cal-wrap{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;flex:1;min-height:0}
.gymspotter-cal-header{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:4px;flex-shrink:0}
.gymspotter-cal-day-label{text-align:center;font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--gymspotter-muted);padding:6px 4px}
.gymspotter-cal-cell{background:var(--gymspotter-surface);border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-xs);padding:6px;min-height:90px;position:relative;overflow:hidden;display:flex;flex-direction:column}
/* Other-month days look quieter through background and weight, not opacity, so their dates keep 4.5:1 contrast */
.gymspotter-cal-cell--other-month{background:var(--gymspotter-surface2)}
.gymspotter-cal-cell--other-month .gymspotter-cal-cell-date{font-weight:500}
.gymspotter-cal-cell--today{border-color:var(--gymspotter-blue);box-shadow:0 0 0 2px var(--gymspotter-blue-dim)}
.gymspotter-cal-cell-date{font-size:.6875rem;font-weight:700;color:var(--gymspotter-muted);margin-bottom:4px}
.gymspotter-cal-cell--today .gymspotter-cal-cell-date{color:var(--gymspotter-blue);font-weight:900}
.gymspotter-cal-event{font-size:.625rem;font-weight:700;padding:2px 5px;border-radius:4px;margin-bottom:2px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:opacity var(--gymspotter-t-fast)}
.gymspotter-cal-event:hover{opacity:.8}
.gymspotter-cal-event--delivered{background:var(--gymspotter-green-lt);color:var(--gymspotter-green)}
.gymspotter-cal-event--transit{background:var(--gymspotter-blue-lt);color:var(--gymspotter-blue-dk)}
.gymspotter-cal-event--pending{background:var(--gymspotter-amber-lt);color:var(--gymspotter-amber)}
.gymspotter-cal-event--exception{background:var(--gymspotter-red-lt);color:var(--gymspotter-red)}
.gymspotter-cal-event--other{background:var(--gymspotter-surface3);color:var(--gymspotter-muted)}
.gymspotter-cal-more{font-size:.625rem;color:var(--gymspotter-muted);padding:1px 4px;cursor:pointer}
.gymspotter-cal-nav{display:flex;align-items:center;gap:12px;margin-bottom:12px;flex-shrink:0}
.gymspotter-cal-title{font-size:1rem;font-weight:800;color:var(--gymspotter-text);flex:1;text-align:center}
.gymspotter-view-toggle{display:flex;background:var(--gymspotter-surface2);border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-xs);overflow:hidden;flex-shrink:0}
.gymspotter-view-toggle-btn{padding:6px 12px;font-size:.75rem;font-weight:700;color:var(--gymspotter-muted);background:transparent;border:none;cursor:pointer;transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast);display:inline-flex;align-items:center;gap:5px;min-height:34px}
.gymspotter-view-toggle-btn.gymspotter-active{background:var(--gymspotter-blue);color:#fff}

/* ── 21b. Dashboard mini-calendar ── */
.gymspotter-dash-cal-header{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;margin-bottom:3px}
.gymspotter-dash-cal-day-label{text-align:center;font-size:.625rem;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--gymspotter-muted);padding:3px 2px}
.gymspotter-dash-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.gymspotter-dash-cal-cell{background:var(--gymspotter-surface2);border:1px solid var(--gymspotter-border-lt);border-radius:5px;padding:4px;min-height:52px;position:relative;overflow:hidden;display:flex;flex-direction:column;cursor:default;transition:border-color var(--gymspotter-t-fast),box-shadow var(--gymspotter-t-fast)}
.gymspotter-dash-cal-cell:hover{border-color:var(--gymspotter-blue-mid);box-shadow:var(--gymspotter-shadow-xs)}
.gymspotter-dash-cal-cell--other{background:var(--gymspotter-bg);opacity:.45}
.gymspotter-dash-cal-cell--today{border-color:var(--gymspotter-blue);box-shadow:0 0 0 1px var(--gymspotter-blue-dim)}
.gymspotter-dash-cal-date{font-size:.625rem;font-weight:700;color:var(--gymspotter-muted);margin-bottom:2px;flex-shrink:0}
.gymspotter-dash-cal-cell--today .gymspotter-dash-cal-date{color:var(--gymspotter-blue);font-weight:900}
.gymspotter-dash-cal-dot{width:6px;height:6px;border-radius:50%;display:inline-block;flex-shrink:0;margin:1px 1px}
.gymspotter-dash-cal-dots{display:flex;flex-wrap:wrap;gap:1px;margin-top:2px}
.gymspotter-dash-cal-count{font-size:.5625rem;font-weight:700;color:var(--gymspotter-muted);margin-top:auto}
.gymspotter-dash-cal-dot--delivered{background:var(--gymspotter-green)}
.gymspotter-dash-cal-dot--transit{background:var(--gymspotter-blue)}
.gymspotter-dash-cal-dot--pending{background:var(--gymspotter-amber)}
.gymspotter-dash-cal-dot--exception{background:var(--gymspotter-red)}

/* ── 22. Hub overview cards ── */
.gymspotter-hub-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;flex-shrink:0;margin-bottom:16px}
.gymspotter-hub-card{background:var(--gymspotter-surface);border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius);padding:16px;cursor:pointer;transition:border-color var(--gymspotter-t-fast),box-shadow var(--gymspotter-t-fast),transform var(--gymspotter-t-fast);box-shadow:var(--gymspotter-shadow-xs)}
.gymspotter-hub-card:hover{border-color:var(--gymspotter-blue);box-shadow:var(--gymspotter-shadow-md);transform:translateY(-2px)}
.gymspotter-hub-card-name{font-size:.875rem;font-weight:800;color:var(--gymspotter-text);margin-bottom:10px;display:flex;align-items:center;gap:8px}
.gymspotter-hub-card-name i{color:var(--gymspotter-amber)}
.gymspotter-hub-card-stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;text-align:center}
.gymspotter-hub-stat-val{font-size:1.25rem;font-weight:900;color:var(--gymspotter-text)}
.gymspotter-hub-stat-lbl{font-size:.625rem;text-transform:uppercase;letter-spacing:.5px;color:var(--gymspotter-muted);font-weight:700;margin-top:2px}

/* ── 23. Keyboard shortcut modal ── */
.gymspotter-shortcut-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 0}
@media(max-width:480px){.gymspotter-shortcut-grid{grid-template-columns:1fr}}
.gymspotter-shortcut-item{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:var(--gymspotter-surface2);border:1px solid var(--gymspotter-border-lt);border-radius:7px;font-size:.8125rem}
.gymspotter-shortcut-desc{color:var(--gymspotter-text-sec);font-weight:500}
.gymspotter-kbd{display:inline-flex;align-items:center;gap:3px;flex-shrink:0}
.gymspotter-kbd kbd{background:var(--gymspotter-surface3);border:1px solid var(--gymspotter-border);border-bottom-width:2px;border-radius:4px;padding:2px 6px;font-size:.6875rem;font-weight:700;font-family:'SF Mono','Fira Mono',monospace;color:var(--gymspotter-text)}

/* ── 24. Welcome overlay ── */
.gymspotter-welcome-overlay{display:none;position:fixed;inset:0;z-index:30000;align-items:center;justify-content:center;background:rgba(10,12,20,.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);padding:20px;overflow-y:auto}
.gymspotter-welcome-overlay.gymspotter-show{display:flex}
.gymspotter-welcome-overlay .gymspotter-modal{max-width:560px;max-height:90vh;overflow-y:auto}
.gymspotter-welcome-stepper{display:flex;align-items:center;justify-content:center;margin-bottom:24px}
.gymspotter-welcome-step{width:32px;height:32px;border-radius:50%;border:2px solid var(--gymspotter-border);display:flex;align-items:center;justify-content:center;font-size:.8125rem;font-weight:700;color:var(--gymspotter-muted);transition:all .3s;flex-shrink:0}
.gymspotter-welcome-step.gymspotter-ws-active{border-color:var(--gymspotter-blue);background:var(--gymspotter-blue);color:#fff;box-shadow:0 0 0 4px var(--gymspotter-blue-dim)}
.gymspotter-welcome-step.gymspotter-ws-done{border-color:var(--gymspotter-green);background:var(--gymspotter-green);color:#fff}
.gymspotter-welcome-connector{flex:1;height:2px;background:var(--gymspotter-border);max-width:60px;transition:background .3s}
.gymspotter-welcome-connector.gymspotter-ws-done{background:var(--gymspotter-green)}
.gymspotter-welcome-feature{display:flex;align-items:flex-start;gap:10px;padding:8px 10px;background:var(--gymspotter-surface2);border:1px solid var(--gymspotter-border);border-radius:7px;margin-bottom:7px}
.gymspotter-welcome-feature-icon{width:28px;height:28px;border-radius:6px;background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue);display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:.75rem}
.gymspotter-welcome-feature-title{font-weight:700;font-size:.8125rem;margin-bottom:1px;color:var(--gymspotter-text)}
.gymspotter-welcome-feature-sub{font-size:.75rem;color:var(--gymspotter-muted);line-height:1.5}

/* ── Glowing mount button — draws the eye to the required folder connection ── */
@keyframes gymspotterMountGlow{
  0%,100%{box-shadow:0 0 0 0 rgba(37,99,235,.55),0 0 18px 2px rgba(37,99,235,.35)}
  50%{box-shadow:0 0 0 6px rgba(37,99,235,0),0 0 34px 8px rgba(37,99,235,.65)}
}
.gymspotter-mount-glow{
  position:relative;
  animation:gymspotterMountGlow 1.8s ease-in-out infinite;
  border-color:#60a5fa!important;
}
.gymspotter-mount-glow:hover{
  animation-play-state:paused;
  box-shadow:0 0 30px 6px rgba(37,99,235,.7);
  transform:translateY(-1px);
}
@media(prefers-reduced-motion:reduce){
  .gymspotter-mount-glow{animation:none;box-shadow:0 0 18px 3px rgba(37,99,235,.5)}
}

/* ── 25. Modals / Drawers ── */
.gymspotter-modal-overlay{display:none;position:fixed;inset:0;z-index:20000;align-items:flex-start;justify-content:center;background:rgba(10,12,20,.78);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:5vh 20px 20px;overflow-y:auto;-webkit-overflow-scrolling:touch}
.gymspotter-modal-overlay.gymspotter-show{display:flex}
.gymspotter-modal{background:var(--gymspotter-surface);border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-xl);padding:28px 30px 26px;width:100%;max-width:560px;box-shadow:0 24px 80px rgba(0,0,0,.55);position:relative;color:var(--gymspotter-text);margin:0 auto;animation:gymspotterModalIn .22s ease}
.gymspotter-modal--wide{max-width:760px}
.gymspotter-modal--wider{max-width:960px}
.gymspotter-modal--fullscreen{max-width:1100px;width:95vw}
@keyframes gymspotterModalIn{from{opacity:0;transform:scale(.96) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}
.gymspotter-modal h3{margin:0 0 18px;font-size:1rem;font-weight:800;border-bottom:1px solid var(--gymspotter-border-lt);padding-bottom:14px;display:flex;align-items:center;gap:9px;padding-right:40px}
.gymspotter-modal h3 i{color:var(--gymspotter-blue)}
.gymspotter-modal-close{position:absolute;top:14px;right:16px;width:34px;height:34px;min-width:34px;min-height:34px;border-radius:7px;background:transparent;border:1px solid var(--gymspotter-border);color:var(--gymspotter-muted);font-size:.875rem;display:inline-flex;align-items:center;justify-content:center;transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast)}
.gymspotter-modal-close:hover{background:var(--gymspotter-red-lt);color:var(--gymspotter-red);border-color:var(--gymspotter-red)}
.gymspotter-modal>p{font-size:.75rem;color:var(--gymspotter-muted);margin-bottom:14px;line-height:1.65}
.gymspotter-modal-result{font-size:.8125rem;min-height:20px;margin:14px 0}
.gymspotter-modal-warn{font-size:.75rem;color:var(--gymspotter-amber);margin-bottom:16px;background:var(--gymspotter-amber-lt);padding:10px 12px;border-radius:7px;border:1px solid rgba(180,83,9,.25);display:flex;align-items:flex-start;gap:8px;line-height:1.55}
.gymspotter-modal-submit-row{margin-top:18px;padding-top:18px;border-top:1px solid var(--gymspotter-border-lt);display:flex;gap:10px;flex-wrap:wrap}
.gymspotter-modal-submit-row .gymspotter-btn{flex:1}
.gymspotter-modal input[type="hidden"]{display:none;margin:0;padding:0;height:0}
.gymspotter-drawer-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1000;backdrop-filter:blur(4px)}
.gymspotter-drawer-overlay.gymspotter-show{display:block}
.gymspotter-drawer{position:fixed;top:0;right:0;width:480px;max-width:96vw;height:100vh;background:var(--gymspotter-surface);border-left:1px solid var(--gymspotter-border-lt);z-index:1001;display:flex;flex-direction:column;transform:translateX(100%);visibility:hidden;pointer-events:none;transition:transform var(--gymspotter-t-base),visibility 0s linear var(--gymspotter-t-base);box-shadow:var(--gymspotter-shadow-xl)}
.gymspotter-drawer.gymspotter-open{transform:translateX(0);visibility:visible;pointer-events:auto;transition-delay:0s}
.gymspotter-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:0 22px;height:60px;min-height:60px;border-bottom:1px solid var(--gymspotter-border-lt);font-weight:700;font-size:.875rem;background:var(--gymspotter-surface2);flex-shrink:0}
.gymspotter-drawer-head i{color:var(--gymspotter-blue);margin-right:6px}
.gymspotter-drawer-body{flex:1;overflow-y:auto;padding:20px;min-height:0}

/* ═══ SETTINGS TABS — CSS GRID, NO SCROLL ═══ */
.gymspotter-drawer-tabs{display:grid;grid-template-columns:repeat(4,1fr);background:var(--gymspotter-surface2);border-bottom:1px solid var(--gymspotter-border-lt);flex-shrink:0;overflow:visible;padding:6px;gap:4px}
.gymspotter-drawer-tab{display:flex;align-items:center;justify-content:center;min-height:40px;padding:7px 6px;border:1px solid var(--gymspotter-border-lt);border-radius:7px;background:var(--gymspotter-surface);color:var(--gymspotter-muted);font-size:.6875rem;font-weight:600;white-space:normal;text-align:center;gap:4px;flex-direction:column;cursor:pointer;transition:color var(--gymspotter-t-fast),background var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast)}
.gymspotter-drawer-tab i{font-size:.8125rem;flex-shrink:0}
.gymspotter-drawer-tab:hover{color:var(--gymspotter-blue);background:var(--gymspotter-blue-dim);border-color:var(--gymspotter-blue)}
.gymspotter-drawer-tab.gymspotter-active{color:var(--gymspotter-blue);border-color:var(--gymspotter-blue);background:var(--gymspotter-blue-lt);font-weight:700}
.gymspotter-drawer-pane{display:none}
.gymspotter-drawer-pane.gymspotter-active{display:block}
.gymspotter-section-title{font-size:.6875rem;text-transform:uppercase;letter-spacing:.8px;color:var(--gymspotter-muted);font-weight:700;margin-bottom:10px;margin-top:18px}
.gymspotter-section-title:first-child{margin-top:0}

/* ── 26. Low stock alert banner ── */
.gymspotter-stock-alert{display:none;align-items:flex-start;gap:12px;padding:12px 16px;background:var(--gymspotter-red-lt);border:1px solid rgba(185,28,28,.25);border-radius:var(--gymspotter-radius-sm);margin-bottom:14px;flex-shrink:0}
.gymspotter-stock-alert.gymspotter-visible{display:flex}
.gymspotter-stock-alert-icon{font-size:1.25rem;color:var(--gymspotter-red);flex-shrink:0;margin-top:2px}
.gymspotter-stock-alert-body{flex:1;min-width:0}
.gymspotter-stock-alert-title{font-size:.8125rem;font-weight:800;color:var(--gymspotter-red);margin-bottom:4px}
.gymspotter-stock-alert-items{font-size:.75rem;color:var(--gymspotter-muted);line-height:1.7}
.gymspotter-stock-alert-amber{background:var(--gymspotter-amber-lt);border-color:rgba(180,83,9,.25)}
.gymspotter-stock-alert-amber .gymspotter-stock-alert-icon{color:var(--gymspotter-amber)}
.gymspotter-stock-alert-amber .gymspotter-stock-alert-title{color:var(--gymspotter-amber)}

/* ── 27. CSV drop zone ── */
.gymspotter-csv-drop{border:2px dashed var(--gymspotter-border);border-radius:9px;padding:14px 20px;text-align:center;font-size:.8125rem;color:var(--gymspotter-muted);margin-bottom:14px;background:var(--gymspotter-surface2);flex-shrink:0;transition:border-color var(--gymspotter-t-fast),background var(--gymspotter-t-fast),color var(--gymspotter-t-fast)}
.gymspotter-csv-drop i{color:var(--gymspotter-green);margin-right:6px;font-size:.875rem}
.gymspotter-csv-drop strong{color:var(--gymspotter-text)}
.gymspotter-csv-drop.gymspotter-dragover{border-color:var(--gymspotter-green);background:var(--gymspotter-green-lt);color:var(--gymspotter-green)}
.gymspotter-csv-drop-sub{display:block;font-size:.6875rem;margin-top:4px;color:var(--gymspotter-muted-lt)}
.gymspotter-product-search-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;min-width:22px;border-radius:5px;border:1px solid var(--gymspotter-border);background:var(--gymspotter-surface2);color:var(--gymspotter-muted);font-size:.625rem;cursor:pointer;flex-shrink:0;transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast)}
.gymspotter-product-search-icon:hover{background:var(--gymspotter-blue);color:#fff;border-color:var(--gymspotter-blue)}
.gymspotter-empty{text-align:center;padding:30px;color:var(--gymspotter-muted);font-size:.8125rem}
.gymspotter-empty i{display:block;font-size:1.625rem;margin-bottom:10px;color:var(--gymspotter-border)}
.gymspotter-spinner{display:inline-block;width:14px;height:14px;border:2px solid var(--gymspotter-border);border-top-color:var(--gymspotter-blue);border-radius:50%;animation:gymspotterSpin .55s linear infinite;vertical-align:middle}
@keyframes gymspotterSpin{to{transform:rotate(360deg)}}
.gymspotter-muted{color:var(--gymspotter-muted)}
.gymspotter-text-green{color:var(--gymspotter-green)}
.gymspotter-text-amber{color:var(--gymspotter-amber)}
.gymspotter-text-red{color:var(--gymspotter-red)}
.gymspotter-text-blue{color:var(--gymspotter-blue)}
.gymspotter-text-purple{color:var(--gymspotter-purple)}
.gymspotter-chart-wrap{height:240px;position:relative;padding:8px}
.gymspotter-hidden{display:none}
.gymspotter-switch{position:relative;display:inline-block;width:46px;height:26px}
.gymspotter-switch input{opacity:0;width:0;height:0}
.gymspotter-switch-slider{position:absolute;inset:0;cursor:pointer;background:var(--gymspotter-border);border-radius:26px;transition:background .28s}
.gymspotter-switch-slider::before{content:'';position:absolute;height:18px;width:18px;left:4px;bottom:4px;background:white;border-radius:50%;transition:transform .28s;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.gymspotter-switch input:checked+.gymspotter-switch-slider{background:var(--gymspotter-blue)}
.gymspotter-switch input:checked+.gymspotter-switch-slider::before{transform:translateX(20px)}
.gymspotter-app code{background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk);padding:1px 5px;border-radius:3px;font-family:monospace;font-size:.9em}

/* ── 28. Responsive ── */
@media(max-width:1100px){
  #gymspotterDashHubSection>[style*="grid-template-columns"]{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:900px){
  body,.gymspotter-app{padding-left:0}
  .gymspotter-sidebar{transform:translateX(-100%);z-index:300}
  .gymspotter-sidebar.gymspotter-open{transform:translateX(0);box-shadow:8px 0 28px rgba(0,0,0,.4)}
  .gymspotter-hamburger{display:inline-flex}
  .gymspotter-main-grid{grid-template-columns:1fr}
  .gymspotter-ship-grid{grid-template-columns:1fr}
  .gymspotter-cal-wrap{grid-template-columns:repeat(7,1fr)}
  .gymspotter-drawer-tabs{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:640px){
  .gymspotter-main{padding:14px}
  .gymspotter-form-row,.gymspotter-form-row-3,.gymspotter-form-row-4,.gymspotter-create-grid{grid-template-columns:1fr}
  .gymspotter-modal{padding:22px 20px}
  .gymspotter-cal-cell{min-height:60px}
  .gymspotter-hub-grid{grid-template-columns:1fr}
  .gymspotter-drawer-tabs{grid-template-columns:repeat(2,1fr)}
  .gymspotter-dash-cal-cell{min-height:40px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* ── 28b. Sticky action column ── */
/* Last <th> and last <td> in every .gymspotter-sheet table are pinned to the right */
.gymspotter-sheet thead th:last-child,
.gymspotter-sheet tfoot td:last-child{
  position:sticky;
  right:0;
  z-index:12;
  background:var(--gymspotter-surface2);
  box-shadow:-3px 0 6px rgba(15,23,42,.06);
}
.gymspotter-sheet tbody tr td:last-child{
  position:sticky;
  right:0;
  z-index:8;
  background:var(--gymspotter-surface);
  box-shadow:-3px 0 6px rgba(15,23,42,.06);
}
.gymspotter-sheet tbody tr:hover td:last-child{
  background:rgba(239,246,255,.95);
}
.gymspotter-dark .gymspotter-sheet thead th:last-child,
.gymspotter-dark .gymspotter-sheet tfoot td:last-child{
  background:#0d1018;
}
.gymspotter-dark .gymspotter-sheet tbody tr td:last-child{
  background:#111520;
}
.gymspotter-dark .gymspotter-sheet tbody tr:hover td:last-child{
  background:rgba(37,99,235,.08);
}
/* Prevent shadow on tables that are not wide enough to scroll */
.gymspotter-sheet-wrap:not([style*="overflow"]){overflow-x:auto}

/* ── 29. Print ── */
@media print{
  /* Hide all chrome */
  .gymspotter-sidebar,.gymspotter-header,.gymspotter-tipsbar,.gymspotter-footer,.gymspotter-toasts,
  .gymspotter-modal-overlay,.gymspotter-drawer,.gymspotter-drawer-overlay,
  .gymspotter-filter-bar,.gymspotter-page-toolbar,.gymspotter-stock-alert,
  .gymspotter-gs-status,.gymspotter-csv-drop,.gymspotter-cmd-overlay,
  .gymspotter-bulk-bar,.gymspotter-pwa-banner,.gymspotter-saved-views-wrap,
  .gymspotter-sb-folder-panel,.gymspotter-hdr-btn,
  .gymspotter-sheet-cell--actions,.gymspotter-cb-th,.gymspotter-cb-td,
  .gymspotter-page-inline-chip,.gymspotter-inline-viewer-actions,
  button.gymspotter-btn--load-more,.gymspotter-load-more-end,
  #gymspotterInvLoadMoreWrap,#gymspotterDispLoadMoreWrap{display:none!important}
  /* Layout */
  body,.gymspotter-app{padding-left:0!important;position:static!important;overflow:visible!important}
  .gymspotter-main{overflow:visible!important;padding:12px!important;background:white!important}
  .gymspotter-page{display:block!important;animation:none!important}
  .gymspotter-main-grid{display:block!important}
  .gymspotter-panel{box-shadow:none!important;border:1px solid #ccc!important;margin-bottom:12px!important;break-inside:avoid}
  /* Tables */
  .gymspotter-sheet,.gymspotter-table{min-width:0!important;width:100%!important;font-size:.625rem!important}
  .gymspotter-sheet thead th{position:static!important;font-size:.5625rem!important}
  .gymspotter-sheet td,.gymspotter-sheet th{padding:4px 6px!important}
  .gymspotter-sheet-cell{min-height:auto!important;font-size:.625rem!important}
  .gymspotter-sheet-wrap{overflow:visible!important;max-height:none!important}
  /* Colors: keep status badges legible in B&W */
  .gymspotter-badge{border:1px solid #999!important;background:transparent!important;color:#000!important}
  /* Header for print */
  body::before{
    content:'GymSpotter OS — Printed ' attr(data-print-date);
    display:block;font-size:.625rem;color:#666;text-align:right;
    padding-bottom:8px;border-bottom:1px solid #ccc;margin-bottom:12px;
    font-family:Arial,sans-serif;
  }
}

/* ════════════════════════════════════════════════
   MANILA FILE TABS — attached to panel heads
   Tab sits flush against the panel body.
   Active tab "opens" into the panel with no bottom border.
   Inactive tabs look like folder tabs behind/beside it.
════════════════════════════════════════════════ */
.gymspotter-manila-tabs-wrap{
  display:flex;
  flex-direction:column;
  background:var(--gymspotter-surface);
  border-radius:var(--gymspotter-radius) var(--gymspotter-radius) 0 0;
  overflow:visible;
  position:relative;
}
.gymspotter-manila-tab-row{
  display:flex;
  align-items:flex-end;
  gap:3px;
  padding:8px 12px 0;
  background:var(--gymspotter-bg-alt);
  border-bottom:2px solid var(--gymspotter-border-lt);
  overflow-x:auto;
  overflow-y:visible;
  scrollbar-width:none;
  flex-wrap:nowrap;
  min-height:40px;
  border-radius:var(--gymspotter-radius) var(--gymspotter-radius) 0 0;
}
.gymspotter-manila-tab-row::-webkit-scrollbar{display:none}
.gymspotter-manila-tab{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 14px 7px;
  border-radius:var(--gymspotter-radius-sm) var(--gymspotter-radius-sm) 0 0;
  border:1px solid var(--gymspotter-border-lt);
  border-bottom:none;
  background:var(--gymspotter-surface2);
  color:var(--gymspotter-muted);
  font-size:.75rem;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
  flex-shrink:0;
  position:relative;
  bottom:-2px;/* sits on top of the border-bottom */
  transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast),box-shadow var(--gymspotter-t-fast);
  font-family:'Manrope','Inter',sans-serif;
  letter-spacing:-.01em;
  min-height:34px;
  max-width:200px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.gymspotter-manila-tab:hover:not(.gymspotter-active){
  background:var(--gymspotter-surface);
  color:var(--gymspotter-text-sec);
  border-color:var(--gymspotter-border);
}
.gymspotter-manila-tab.gymspotter-active{
  background:var(--gymspotter-surface);
  color:var(--gymspotter-text);
  font-weight:700;
  border-color:var(--gymspotter-border-lt);
  border-bottom:2px solid var(--gymspotter-surface);/* covers the row border-bottom */
  box-shadow:0 -2px 6px rgba(15,23,42,.04);
  z-index:2;
}
.gymspotter-manila-tab i{
  font-size:.625rem;
  flex-shrink:0;
}
.gymspotter-manila-tab .gymspotter-manila-tab-count{
  font-size:.625rem;
  font-weight:700;
  padding:1px 6px;
  border-radius:10px;
  background:var(--gymspotter-surface3);
  border:1px solid var(--gymspotter-border-lt);
  color:var(--gymspotter-muted);
  flex-shrink:0;
  line-height:1.4;
}
.gymspotter-manila-tab.gymspotter-active .gymspotter-manila-tab-count{
  background:var(--gymspotter-blue-dim);
  border-color:rgba(37,99,235,.25);
  color:var(--gymspotter-blue-dk);
}
.gymspotter-manila-tab--all{
  font-style:italic;
  color:var(--gymspotter-muted);
}
.gymspotter-manila-tab--all.gymspotter-active{
  font-style:normal;
  color:var(--gymspotter-text);
}
.gymspotter-manila-tab--add{
  background:transparent;
  border-style:dashed;
  border-color:var(--gymspotter-border);
  color:var(--gymspotter-muted);
  padding:5px 10px;
  font-size:.6875rem;
}
.gymspotter-manila-tab--add:hover{
  border-color:var(--gymspotter-blue);
  color:var(--gymspotter-blue);
  background:var(--gymspotter-blue-dim);
}
/* The connected panel body — top border removed so tabs merge in */
.gymspotter-manila-panel-body{
  border-radius:0 0 var(--gymspotter-radius) var(--gymspotter-radius);
}
/* Separator between tab row and panel content */
.gymspotter-manila-panel-head{
  border-top:none;
  border-radius:0;
}

/* ── 30. Spreadsheet-style document list table ── */

.gymspotter-sheet-wrap{overflow-x:auto;overflow-y:auto;-webkit-overflow-scrolling:touch;flex:1;min-height:0;max-width:100%;contain:inline-size}

.gymspotter-sheet{width:auto;min-width:100%;border-collapse:collapse;font-size:.75rem;table-layout:auto}

.gymspotter-sheet thead th{
  position:sticky;top:0;z-index:10;
  background:var(--gymspotter-surface2);
  padding:7px 10px;
  color:var(--gymspotter-muted);
  font-size:.625rem;font-weight:700;text-transform:uppercase;letter-spacing:.45px;
  border-bottom:2px solid var(--gymspotter-border-lt);
  border-right:1px solid var(--gymspotter-border-lt);
  white-space:nowrap;
  text-align:left;
  user-select:none;
  cursor:default;
}

.gymspotter-sheet thead th:last-child{border-right:none}
.gymspotter-sheet thead th.gymspotter-sheet-th--file{text-align:center}

.gymspotter-sheet tbody tr{border-bottom:1px solid var(--gymspotter-border-lt);transition:background var(--gymspotter-t-fast)}
.gymspotter-sheet tbody tr:last-child{border-bottom:none}
.gymspotter-sheet tbody tr:hover{background:rgba(37,99,235,.025)}

.gymspotter-sheet td{
  padding:0;
  border-right:1px solid var(--gymspotter-border-lt);
  vertical-align:middle;
  position:relative;
}
.gymspotter-sheet td:last-child{border-right:none}

.gymspotter-sheet-cell{
  display:block;width:100%;height:100%;
  min-height:36px;
  padding:7px 10px;
  border:none;outline:none;
  background:transparent;
  color:var(--gymspotter-text);
  font-size:.75rem;font-family:inherit;
  line-height:1.4;
  resize:none;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  transition:background var(--gymspotter-t-fast),box-shadow var(--gymspotter-t-fast);
}

.gymspotter-sheet-cell:focus{
  background:var(--gymspotter-white);
  box-shadow:inset 0 0 0 2px var(--gymspotter-blue);
  z-index:5;position:relative;
  white-space:normal;overflow:visible;
  outline:none;
}
.gymspotter-sheet-cell--select{
  cursor:pointer;
  -webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23475569' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 7px center;
  padding-right:22px;
}
.gymspotter-sheet-cell--money{font-family:'SF Mono','Fira Mono',monospace;text-align:right;padding-right:10px}
.gymspotter-sheet-cell--center{text-align:center}
.gymspotter-sheet-cell--id{font-family:'SF Mono','Fira Mono',monospace;font-size:.6875rem;color:var(--gymspotter-blue-dk)}

.gymspotter-sheet-cell--status-draft{color:var(--gymspotter-muted)}
.gymspotter-sheet-cell--status-sent,.gymspotter-sheet-cell--status-transit{color:var(--gymspotter-blue);font-weight:700}
.gymspotter-sheet-cell--status-paid,.gymspotter-sheet-cell--status-received,.gymspotter-sheet-cell--status-delivered{color:var(--gymspotter-green);font-weight:700}
.gymspotter-sheet-cell--status-overdue,.gymspotter-sheet-cell--status-exception,.gymspotter-sheet-cell--status-cancelled,.gymspotter-sheet-cell--status-damaged{color:var(--gymspotter-red);font-weight:700}
.gymspotter-sheet-cell--status-converted,.gymspotter-sheet-cell--status-returned,.gymspotter-sheet-cell--status-partial{color:var(--gymspotter-purple);font-weight:700}
.gymspotter-sheet-cell--status-pending,.gymspotter-sheet-cell--status-hold{color:var(--gymspotter-amber);font-weight:700}

.gymspotter-sheet-cell--file{padding:4px 6px;text-align:center}
.gymspotter-sheet-file-btn{
  display:inline-flex;align-items:center;gap:4px;
  padding:3px 8px;border-radius:12px;
  font-size:.625rem;font-weight:600;
  border:1px solid var(--gymspotter-border);
  background:var(--gymspotter-surface2);
  color:var(--gymspotter-muted);
  cursor:pointer;
  max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  transition:background var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast),color var(--gymspotter-t-fast);
}
.gymspotter-sheet-file-btn:hover{background:var(--gymspotter-blue-dim);border-color:var(--gymspotter-blue);color:var(--gymspotter-blue-dk)}
.gymspotter-sheet-file-btn.gymspotter-active{background:var(--gymspotter-blue);border-color:var(--gymspotter-blue);color:#fff}
.gymspotter-sheet-file-btn--pdf i{color:#f87171}
.gymspotter-sheet-file-btn--csv i{color:var(--gymspotter-green)}
.gymspotter-sheet-file-btn.gymspotter-active i{color:#fff}
.gymspotter-sheet-file-add{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;border:1px dashed var(--gymspotter-border);background:transparent;color:var(--gymspotter-muted);cursor:pointer;font-size:.625rem;transition:border-color var(--gymspotter-t-fast),color var(--gymspotter-t-fast)}
.gymspotter-sheet-file-add:hover{border-color:var(--gymspotter-blue);color:var(--gymspotter-blue)}

.gymspotter-sheet-cell--actions{padding:3px 6px;text-align:center;white-space:nowrap}

@keyframes gymspotterRowSaveFlash{0%,100%{background:transparent}50%{background:rgba(21,128,61,.08)}}
.gymspotter-sheet-row--saved{animation:gymspotterRowSaveFlash .8s ease}

.gymspotter-sheet-row--dirty td:first-child::before{
  content:'';position:absolute;top:0;left:0;bottom:0;width:3px;
  background:var(--gymspotter-amber);
}
.gymspotter-sheet-row--multi-file td:first-child::after{
  content:'';position:absolute;bottom:0;left:0;right:0;height:1px;
  background:var(--gymspotter-blue-dim);
}
.gymspotter-sheet-row--file-backed td:first-child::before{
  content:'';position:absolute;top:0;left:0;bottom:0;width:3px;
  background:var(--gymspotter-green);opacity:.55;
}

/* ── BULK SELECTION ── */
.gymspotter-sheet-row--selected{background:rgba(37,99,235,.06)!important}
.gymspotter-sheet-row--selected td{border-bottom-color:rgba(37,99,235,.18)}
.gymspotter-bulk-bar{
  display:none;position:sticky;top:0;z-index:30;
  background:var(--gymspotter-blue);color:#fff;
  padding:8px 16px;border-radius:var(--gymspotter-radius-sm);margin-bottom:8px;
  align-items:center;gap:10px;flex-wrap:wrap;
  box-shadow:var(--gymspotter-shadow-md);font-size:.8125rem;font-weight:700;
  animation:gymspotterFadeIn .18s ease;
}
.gymspotter-bulk-bar.gymspotter-show{display:flex}
.gymspotter-bulk-bar-count{min-width:80px}
.gymspotter-bulk-sep{width:1px;height:20px;background:rgba(255,255,255,.3);flex-shrink:0}
.gymspotter-sheet-cb{width:14px;height:14px;cursor:pointer;accent-color:var(--gymspotter-blue);flex-shrink:0}
.gymspotter-sheet-cb-head{width:14px;height:14px;cursor:pointer;accent-color:#fff;flex-shrink:0}
/* ── Checkbox column — minimal width for the checkmark ── */
.gymspotter-cb-th,.gymspotter-cb-td{
  width:1px!important;
  white-space:nowrap!important;
  text-align:center!important;
  padding:0 2px!important;
}

/* ── Column resize handle ── */
.gymspotter-col-resizer{
  position:absolute;right:0;top:0;bottom:0;
  width:6px;cursor:col-resize;
  background:transparent;z-index:20;
  transition:background var(--gymspotter-t-fast);
}
.gymspotter-col-resizer:hover,.gymspotter-col-resizer.gymspotter-resizing{
  background:var(--gymspotter-blue);opacity:.55;
}
/* When a resize is in progress, disable text-select across whole doc */
body.gymspotter-col-resizing{user-select:none!important;-webkit-user-select:none!important;cursor:col-resize!important;}

/* ── Column drag-reorder ── */
th.gymspotter-col-dragging{opacity:.45;background:var(--gymspotter-blue-dim)!important;}
th.gymspotter-col-drag-over{border-left:3px solid var(--gymspotter-blue)!important;}

/* ── Sortable column headers ── */
.gymspotter-sh-sort{
  cursor:pointer;user-select:none;
  position:relative;padding-right:22px!important;
}
.gymspotter-sh-sort:hover{background:var(--gymspotter-blue-dim)!important;color:var(--gymspotter-blue-dk)!important;}
/* Sort indicator icon — always present, visually hidden when inactive */
.gymspotter-sh-sort::after{
  content:'';
  position:absolute;right:6px;top:50%;
  transform:translateY(-50%);
  width:10px;height:10px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M5 1v12M1 5l4-4 4 4M1 9l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity:.4;transition:opacity var(--gymspotter-t-fast);
}
.gymspotter-sh-sort:hover::after{opacity:.7;}
.gymspotter-sh-sort[data-sort-dir="desc"]::after{
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M5 1v12M1 9l4 4 4-4' stroke='%232563eb' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity:1;
}
.gymspotter-sh-sort[data-sort-dir="asc"]::after{
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M5 1v12M1 5l4-4 4 4' stroke='%232563eb' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity:1;
}
/* Active-sort column header highlight */
th[data-sort-dir]{
  background:var(--gymspotter-blue-dim)!important;
  color:var(--gymspotter-blue-dk)!important;
}
/* Locked checkbox th never gets sort treatment */
.gymspotter-cb-th.gymspotter-sh-sort{cursor:default;}
.gymspotter-cb-th::after{display:none!important;}

/* ── Column visibility/resize state persistence indicator ── */
.gymspotter-col-state-pill{
  display:inline-flex;align-items:center;gap:4px;
  padding:2px 8px;border-radius:12px;font-size:.625rem;font-weight:700;
  background:var(--gymspotter-surface2);border:1px solid var(--gymspotter-border-lt);
  color:var(--gymspotter-muted);cursor:pointer;
  transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast);
  flex-shrink:0;
}
.gymspotter-col-state-pill:hover{background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk);border-color:var(--gymspotter-blue);}

/* ── Expand Table button ── */
.gymspotter-expand-table-btn{
  display:inline-flex;align-items:center;gap:4px;
  padding:2px 8px;border-radius:12px;font-size:.625rem;font-weight:700;
  background:var(--gymspotter-surface2);border:1px solid var(--gymspotter-border-lt);
  color:var(--gymspotter-muted);cursor:pointer;
  transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast);
  flex-shrink:0;
  white-space:nowrap;
}
.gymspotter-expand-table-btn:hover{background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk);border-color:var(--gymspotter-blue);}
.gymspotter-expand-table-btn.gymspotter-expanded{background:var(--gymspotter-blue);color:#fff;border-color:var(--gymspotter-blue);}
.gymspotter-expand-table-btn.gymspotter-expanded:hover{background:var(--gymspotter-blue-dk);border-color:var(--gymspotter-blue-dk);}

/* ── Expanded table layout: right panel stacks below, table fills full width ── */
.gymspotter-main-grid.gymspotter-table-expanded{
  display:flex;
  flex-direction:column;
}
.gymspotter-main-grid.gymspotter-table-expanded>div:first-child{
  flex:1;
  min-width:0;
}
.gymspotter-main-grid.gymspotter-table-expanded>div:last-child{
  width:100%;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:16px;
}
.gymspotter-main-grid.gymspotter-table-expanded>div:last-child .gymspotter-panel{
  margin-bottom:0;
}

/* ── KEYBOARD GRID NAV ── */
.gymspotter-sheet-cell:focus{
  background:var(--gymspotter-white);
  box-shadow:inset 0 0 0 2px var(--gymspotter-blue);
  z-index:5;position:relative;
  white-space:normal;overflow:visible;outline:none;
}
.gymspotter-sheet-cell--nav-focus{box-shadow:inset 0 0 0 2px var(--gymspotter-blue)!important;background:var(--gymspotter-white)!important}

/* ── GLOBAL SEARCH MODAL ── */
.gymspotter-global-search-modal{
  max-width:960px;
}
.gymspotter-global-search-modal-input-wrap{
  position:relative;
  display:flex;
  align-items:center;
  background:var(--gymspotter-surface);
  border:2px solid var(--gymspotter-border);
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--gymspotter-shadow-sm);
  margin-bottom:14px;
}
.gymspotter-global-search-modal-input-wrap:focus-within{
  border-color:var(--gymspotter-blue);
  box-shadow:0 0 0 3px var(--gymspotter-blue-dim);
}
.gymspotter-global-search-modal-input-wrap>i{
  position:absolute;
  left:16px;
  color:var(--gymspotter-muted);
  font-size:.9375rem;
  pointer-events:none;
}
.gymspotter-global-search-modal-input-wrap input{
  width:100%;
  min-height:54px;
  padding:14px 18px 14px 46px;
  border:none;
  outline:none;
  background:transparent;
  color:var(--gymspotter-text);
  font-size:.9375rem;
  font-weight:600;
}
.gymspotter-global-search-modal-input-wrap input::placeholder{
  color:var(--gymspotter-muted);
}
.gymspotter-global-search-modal-results{
  max-height:58vh;
  overflow-y:auto;
  padding:2px 2px 4px;
}
.gymspotter-global-search-modal-shortcuts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.gymspotter-global-search-modal-shortcuts button{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px 14px;
  border-radius:var(--gymspotter-radius-sm);
  border:1px solid var(--gymspotter-border-lt);
  background:var(--gymspotter-surface2);
  color:var(--gymspotter-text);
  cursor:pointer;
  text-align:left;
  transition:background var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast),transform var(--gymspotter-t-fast);
}
.gymspotter-global-search-modal-shortcuts button:hover{
  background:var(--gymspotter-blue-dim);
  border-color:var(--gymspotter-blue);
  transform:translateY(-1px);
}
.gymspotter-global-search-modal-shortcuts button>i{
  width:26px;
  height:26px;
  border-radius:7px;
  display:flex!important;   /* beats the global i[class*="fa-"] inline-block!important, so the glyph is centered */
  align-items:center;
  justify-content:center;
  background:var(--gymspotter-surface);
  border:1px solid var(--gymspotter-border-lt);
  flex-shrink:0;
  margin-top:1px;
}
.gymspotter-global-search-modal-shortcuts button{
  font-size:.8125rem;
  font-weight:800;
}
.gymspotter-global-search-modal-shortcuts button span{
  display:block;
  font-size:.6875rem;
  font-weight:500;
  color:var(--gymspotter-muted);
  margin-top:2px;
}
@media(max-width:700px){
  .gymspotter-global-search-modal-shortcuts{
    grid-template-columns:1fr;
  }
}

/* ── COMMAND PALETTE ── */
.gymspotter-cmd-overlay{
  display:none;position:fixed;inset:0;z-index:50000;
  background:rgba(10,12,20,.72);backdrop-filter:blur(8px);
  align-items:flex-start;justify-content:center;padding-top:12vh;
}
.gymspotter-cmd-overlay.gymspotter-show{display:flex}
.gymspotter-cmd-box{
  background:var(--gymspotter-surface);border:1px solid var(--gymspotter-border);
  border-radius:var(--gymspotter-radius-xl);width:100%;max-width:640px;
  box-shadow:var(--gymspotter-shadow-xl);overflow:hidden;
  animation:gymspotterModalIn .18s ease;
}
.gymspotter-cmd-input-wrap{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid var(--gymspotter-border-lt)}
.gymspotter-cmd-input-wrap i{color:var(--gymspotter-muted);font-size:1rem;flex-shrink:0}
.gymspotter-cmd-input{width:100%;border:none;outline:none;background:transparent;color:var(--gymspotter-text);font-size:1rem;font-weight:500}
.gymspotter-cmd-input::placeholder{color:var(--gymspotter-muted)}
.gymspotter-cmd-results{max-height:420px;overflow-y:auto}
.gymspotter-cmd-group-label{font-size:.625rem;font-weight:700;text-transform:uppercase;letter-spacing:.7px;color:var(--gymspotter-muted);padding:10px 18px 4px;display:flex;align-items:center;gap:6px}
.gymspotter-cmd-item{
  display:flex;align-items:center;gap:12px;padding:10px 18px;cursor:pointer;
  transition:background var(--gymspotter-t-fast);min-height:44px;
}
.gymspotter-cmd-item:hover,.gymspotter-cmd-item.gymspotter-cmd-active{background:var(--gymspotter-blue-dim)}
.gymspotter-cmd-item.gymspotter-cmd-active{background:var(--gymspotter-blue-dim)}
.gymspotter-cmd-icon{width:30px;height:30px;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:.8125rem;flex-shrink:0;background:var(--gymspotter-surface2);border:1px solid var(--gymspotter-border-lt);color:var(--gymspotter-muted)}
.gymspotter-cmd-item.gymspotter-cmd-active .gymspotter-cmd-icon{background:var(--gymspotter-blue);color:#fff;border-color:var(--gymspotter-blue)}
.gymspotter-cmd-item-label{font-size:.875rem;font-weight:600;color:var(--gymspotter-text);flex:1}
.gymspotter-cmd-item-sub{font-size:.6875rem;color:var(--gymspotter-muted)}
.gymspotter-cmd-kbd{display:inline-flex;align-items:center;gap:3px;flex-shrink:0}
.gymspotter-cmd-kbd kbd{background:var(--gymspotter-surface3);border:1px solid var(--gymspotter-border);border-bottom-width:2px;border-radius:4px;padding:1px 6px;font-size:.625rem;font-family:'SF Mono','Fira Mono',monospace;color:var(--gymspotter-text)}
.gymspotter-cmd-footer{padding:8px 18px;border-top:1px solid var(--gymspotter-border-lt);display:flex;gap:14px;font-size:.6875rem;color:var(--gymspotter-muted);align-items:center}
.gymspotter-cmd-footer kbd{background:var(--gymspotter-surface2);border:1px solid var(--gymspotter-border);border-radius:4px;padding:1px 5px;font-size:.625rem}
.gymspotter-cmd-empty{padding:32px;text-align:center;color:var(--gymspotter-muted);font-size:.8125rem}

/* ── SAVED INDICATOR GLOBAL ── */
.gymspotter-autosave-dot{
  display:inline-flex;align-items:center;gap:5px;
  font-size:.6875rem;font-weight:700;color:var(--gymspotter-green);
  opacity:0;transition:opacity .4s;
  pointer-events:none;
}
.gymspotter-autosave-dot.gymspotter-show{opacity:1}
.gymspotter-autosave-dot i{font-size:.625rem}

/* ── COLUMN TOTALS FOOTER ── */
.gymspotter-sheet-foot td{
  padding:6px 8px;font-size:.6875rem;font-weight:700;
  background:var(--gymspotter-surface2);
  border-top:2px solid var(--gymspotter-border-lt);
  position:sticky;bottom:0;z-index:8;
  color:var(--gymspotter-text);
}
.gymspotter-sheet-foot td.gymspotter-foot-total{color:var(--gymspotter-green);font-family:'SF Mono','Fira Mono',monospace}
.gymspotter-sheet-foot td.gymspotter-foot-muted{color:var(--gymspotter-muted)}

/* ── FILTER PILL ── */
.gymspotter-filter-active-pill{
  display:inline-flex;align-items:center;gap:5px;
  padding:3px 10px;border-radius:20px;
  font-size:.6875rem;font-weight:700;
  background:var(--gymspotter-blue);color:#fff;
  cursor:pointer;animation:gymspotterFadeIn .15s ease;
  min-height:28px;
}
.gymspotter-filter-active-pill:hover{background:var(--gymspotter-blue-dk)}

/* L6 — Persistent record count badge (shown in filter bar) */
.gymspotter-record-count-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 11px;
  border-radius:20px;
  font-size:.75rem;
  font-weight:800;
  background:var(--gymspotter-surface2);
  border:1px solid var(--gymspotter-border-lt);
  color:var(--gymspotter-text);
  white-space:nowrap;
  flex-shrink:0;
  transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast);
  font-family:'Manrope','Inter',sans-serif;
}
.gymspotter-record-count-badge i{
  font-size:.625rem;
  color:var(--gymspotter-muted);
}
.gymspotter-record-count-badge--filtered{
  background:var(--gymspotter-blue-dim);
  border-color:rgba(37,99,235,.3);
  color:var(--gymspotter-blue-dk);
}
.gymspotter-record-count-badge--filtered i{color:var(--gymspotter-blue)}
.gymspotter-record-count-badge--empty{
  background:var(--gymspotter-surface3);
  color:var(--gymspotter-muted);
}

/* ── RELATIVE TIMESTAMPS ── */
.gymspotter-rel-time{cursor:default;border-bottom:1px dotted var(--gymspotter-border)}

/* ── SOFT DELETE UNDO ── */
.gymspotter-undo-toast{
  display:flex;align-items:center;gap:10px;
  background:var(--gymspotter-surface);border:1px solid var(--gymspotter-border-lt);
  border-left:4px solid var(--gymspotter-red);
  padding:12px 16px;border-radius:8px;
  font-size:.8125rem;font-weight:500;color:var(--gymspotter-text);
  box-shadow:var(--gymspotter-shadow-lg);max-width:340px;
}
.gymspotter-undo-progress{
  position:absolute;bottom:0;left:0;height:2px;
  background:var(--gymspotter-red);border-radius:0 0 0 4px;
  animation:gymspotterUndoProgress 5s linear forwards;
}
@keyframes gymspotterUndoProgress{from{width:100%}to{width:0%}}

/* ── SAVED VIEWS ── */
.gymspotter-saved-views-wrap{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:8px;flex-shrink:0}
.gymspotter-saved-view-chip{
  display:inline-flex;align-items:center;gap:5px;
  padding:4px 10px;border-radius:20px;min-height:28px;
  font-size:.6875rem;font-weight:600;cursor:pointer;
  border:1px solid var(--gymspotter-border);background:var(--gymspotter-surface);color:var(--gymspotter-text-sec);
  transition:background var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast),color var(--gymspotter-t-fast);
}
.gymspotter-saved-view-chip:hover{border-color:var(--gymspotter-blue);background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk)}
.gymspotter-saved-view-chip.gymspotter-active{background:var(--gymspotter-blue);border-color:var(--gymspotter-blue);color:#fff}
.gymspotter-saved-view-chip--save{border-style:dashed;color:var(--gymspotter-muted)}
.gymspotter-saved-view-chip--save:hover{border-color:var(--gymspotter-green);color:var(--gymspotter-green);background:var(--gymspotter-green-lt)}
.gymspotter-saved-view-chip--saved{border-color:rgba(109,40,217,.25);background:var(--gymspotter-purple-lt);color:var(--gymspotter-purple)}
.gymspotter-saved-view-chip--saved:hover{background:var(--gymspotter-purple);color:#fff;border-color:var(--gymspotter-purple)}
.gymspotter-saved-view-chip--saved{border-color:rgba(109,40,217,.25);background:var(--gymspotter-purple-lt);color:var(--gymspotter-purple)}
.gymspotter-saved-view-chip--saved:hover{background:var(--gymspotter-purple);color:#fff;border-color:var(--gymspotter-purple)}


/* ── IMPORT DIFF MODAL ── */
.gymspotter-diff-row--new{background:var(--gymspotter-green-lt)}
.gymspotter-diff-row--update{background:var(--gymspotter-blue-lt)}
.gymspotter-diff-row--conflict{background:var(--gymspotter-amber-lt)}
.gymspotter-diff-row--skip{opacity:.5}

/* ── OCR SCAN BUTTON ── */
.gymspotter-ocr-badge{
  display:inline-flex;align-items:center;gap:5px;padding:3px 9px;
  border-radius:12px;font-size:.625rem;font-weight:700;
  background:var(--gymspotter-purple-lt);color:var(--gymspotter-purple);
  border:1px solid rgba(109,40,217,.25);cursor:pointer;white-space:nowrap;
  transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast);
}
.gymspotter-ocr-badge:hover{background:var(--gymspotter-purple);color:#fff}

/* ── GS SYNC INDICATOR ── */
.gymspotter-gs-sync-badge{
  display:inline-flex;align-items:center;gap:5px;
  padding:4px 10px;border-radius:20px;font-size:.6875rem;font-weight:700;
  border:1px solid var(--gymspotter-border-lt);background:var(--gymspotter-surface2);
  color:var(--gymspotter-muted);white-space:nowrap;transition:all var(--gymspotter-t-fast);
}
.gymspotter-gs-sync-badge--synced{background:var(--gymspotter-green-lt);color:var(--gymspotter-green);border-color:rgba(21,128,61,.25)}
.gymspotter-gs-sync-badge--pending{background:var(--gymspotter-amber-lt);color:var(--gymspotter-amber);border-color:rgba(180,83,9,.25)}
.gymspotter-gs-sync-badge--error{background:var(--gymspotter-red-lt);color:var(--gymspotter-red);border-color:rgba(185,28,28,.25)}
.gymspotter-gs-sync-badge i{font-size:.625rem}

/* ── Individual record detail views ── */
.gymspotter-record-detail-section{margin-bottom:18px}
.gymspotter-record-detail-section:last-child{margin-bottom:0}
.gymspotter-record-kv-grid{display:grid;grid-template-columns:1fr 1fr;gap:0}
@media(max-width:640px){.gymspotter-record-kv-grid{grid-template-columns:1fr}}
.gymspotter-record-detail-tab{
  padding:8px 14px;border-radius:var(--gymspotter-radius-xs) var(--gymspotter-radius-xs) 0 0;
  font-size:.75rem;font-weight:700;cursor:pointer;
  border:1px solid transparent;border-bottom:none;
  background:var(--gymspotter-surface2);color:var(--gymspotter-muted);
  transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast);
  min-height:36px;
}
.gymspotter-record-detail-tab:hover{background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk)}
.gymspotter-record-detail-tab.gymspotter-active{background:var(--gymspotter-surface);color:var(--gymspotter-blue);border-color:var(--gymspotter-border-lt);font-weight:800}
.gymspotter-record-detail-lineitems{border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-sm);overflow:hidden;margin-bottom:16px}
.gymspotter-record-detail-lineitems table{width:100%;border-collapse:collapse;font-size:.75rem}
.gymspotter-record-detail-lineitems th{background:var(--gymspotter-surface2);padding:6px 10px;font-size:.625rem;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--gymspotter-muted);border-bottom:1px solid var(--gymspotter-border-lt)}
.gymspotter-record-detail-lineitems td{padding:7px 10px;border-bottom:1px solid var(--gymspotter-border-lt);color:var(--gymspotter-text)}
.gymspotter-record-detail-lineitems tr:last-child td{border-bottom:none}
.gymspotter-record-detail-totals{background:var(--gymspotter-surface2);border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-sm);padding:12px 16px;margin-bottom:16px}
.gymspotter-record-detail-total-row{display:flex;justify-content:space-between;padding:5px 0;font-size:.8125rem;border-bottom:1px solid var(--gymspotter-border-lt)}
.gymspotter-record-detail-total-row:last-child{border-bottom:none;font-size:1rem;font-weight:900;padding-top:10px;margin-top:4px;border-top:2px solid var(--gymspotter-border)}
.gymspotter-record-detail-grand{color:var(--gymspotter-green);font-family:'SF Mono','Fira Mono',monospace}
/* Dispatch file column: no PDF preview indicator, just attach icon */
.gymspotter-disp-file-attach{
  display:inline-flex;align-items:center;justify-content:center;
  width:26px;height:26px;border-radius:50%;
  border:1px dashed var(--gymspotter-border);background:transparent;
  color:var(--gymspotter-muted);cursor:pointer;font-size:.625rem;
  transition:border-color var(--gymspotter-t-fast),color var(--gymspotter-t-fast),background var(--gymspotter-t-fast);
}
.gymspotter-disp-file-attach:hover{border-color:var(--gymspotter-amber);color:var(--gymspotter-amber);background:var(--gymspotter-amber-lt)}
/* Dispatch file attached state — shows PDF icon */
.gymspotter-disp-file-attached{
  display:inline-flex;align-items:center;gap:4px;
  padding:3px 8px;border-radius:12px;font-size:.625rem;font-weight:600;
  border:1px solid var(--gymspotter-border);background:var(--gymspotter-surface2);
  color:var(--gymspotter-muted);cursor:pointer;
  transition:background var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast),color var(--gymspotter-t-fast);
  max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.gymspotter-disp-file-attached:hover{background:var(--gymspotter-blue-dim);border-color:var(--gymspotter-blue);color:var(--gymspotter-blue-dk)}
.gymspotter-disp-file-attached.gymspotter-active{background:var(--gymspotter-blue);border-color:var(--gymspotter-blue);color:#fff}
.gymspotter-sheet-preview-row td{padding:0;border-top:1px solid var(--gymspotter-blue);border-bottom:1px solid var(--gymspotter-border-lt)}
.gymspotter-sheet-preview-inner{background:var(--gymspotter-surface)}
.gymspotter-sheet-preview-bar{
  display:flex;align-items:center;justify-content:space-between;
  padding:6px 14px;
  background:var(--gymspotter-surface2);
  border-bottom:1px solid var(--gymspotter-border-lt);
  font-size:.75rem;font-weight:700;color:var(--gymspotter-text);
  flex-wrap:wrap;gap:6px;
}
.gymspotter-sheet-preview-body{overflow:auto;max-height:360px}
.gymspotter-sheet-preview-iframe{width:100%;height:360px;border:none;display:block;background:#fff}

/* Invoice sheet — column widths are now auto-calculated from content.
   Use browser-native column resizing (drag handles) to adjust. */

/* PO sheet — column widths are now auto-calculated from content.
   Use browser-native column resizing (drag handles) to adjust. */

.gymspotter-sheet--inv-data{min-width:100%}
/* Inventory sheet — column widths are now auto-calculated from content.
   Use browser-native column resizing (drag handles) to adjust. */

/* Dispatch sheet — column widths are now auto-calculated from content.
   Use browser-native column resizing (drag handles) to adjust. */


/* ── 30b. Inline Document Row (expand/collapse metadata editing) ── */
.gymspotter-doc-row{
background:var(--gymspotter-surface);border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-sm);margin-bottom:8px;overflow:hidden;transition:border-color var(--gymspotter-t-fast),box-shadow var(--gymspotter-t-fast);box-shadow:var(--gymspotter-shadow-xs)}
.gymspotter-doc-row:hover{border-color:var(--gymspotter-blue-mid);box-shadow:var(--gymspotter-shadow-sm)}
.gymspotter-doc-row.gymspotter-doc-row--expanded{border-color:var(--gymspotter-blue);box-shadow:var(--gymspotter-shadow-md)}

/* Top summary bar — always visible */
.gymspotter-doc-row-header{display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;position:relative;flex-wrap:wrap}
.gymspotter-doc-row-icon{width:34px;height:34px;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:.9375rem;flex-shrink:0}
.gymspotter-doc-row-icon--inv{background:var(--gymspotter-green-lt);color:var(--gymspotter-green)}
.gymspotter-doc-row-icon--po{background:var(--gymspotter-blue-lt);color:var(--gymspotter-blue-dk)}
.gymspotter-doc-row-identity{flex:1;min-width:0}
.gymspotter-doc-row-title{font-size:.8125rem;font-weight:700;color:var(--gymspotter-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gymspotter-doc-row-meta{font-size:.6875rem;color:var(--gymspotter-muted);margin-top:1px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.gymspotter-doc-row-amount{font-size:.875rem;font-weight:900;color:var(--gymspotter-green);font-family:'SF Mono','Fira Mono',monospace;flex-shrink:0;letter-spacing:-.3px}
.gymspotter-doc-row-controls{display:flex;align-items:center;gap:6px;flex-shrink:0}
.gymspotter-doc-row-expand-btn{width:28px;height:28px;min-width:28px;border-radius:5px;border:1px solid var(--gymspotter-border);background:var(--gymspotter-surface2);color:var(--gymspotter-muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast),transform var(--gymspotter-t-fast);font-size:.625rem}
.gymspotter-doc-row-expand-btn:hover{background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk);border-color:var(--gymspotter-blue)}
.gymspotter-doc-row--expanded .gymspotter-doc-row-expand-btn{transform:rotate(180deg);background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk);border-color:var(--gymspotter-blue)}

/* Expandable body — metadata fields + file viewer */
.gymspotter-doc-row-body{display:none;border-top:1px solid var(--gymspotter-border-lt);background:var(--gymspotter-surface2)}
.gymspotter-doc-row--expanded .gymspotter-doc-row-body{display:block}

/* Metadata field grid inside expanded row */
.gymspotter-doc-row-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:12px 14px 8px}
@media(max-width:1100px){.gymspotter-doc-row-fields{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.gymspotter-doc-row-fields{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.gymspotter-doc-row-fields{grid-template-columns:1fr}}
.gymspotter-doc-row-field{display:flex;flex-direction:column;gap:3px}
.gymspotter-doc-row-field-label{font-size:.625rem;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--gymspotter-muted)}
.gymspotter-doc-row-field-input{min-height:30px;padding:5px 8px;border-radius:var(--gymspotter-radius-xs);border:1px solid var(--gymspotter-border);background:var(--gymspotter-surface);color:var(--gymspotter-text);font-size:.75rem;transition:border-color var(--gymspotter-t-fast),box-shadow var(--gymspotter-t-fast);line-height:1.4}
.gymspotter-doc-row-field-input:focus{border-color:var(--gymspotter-blue);box-shadow:0 0 0 2px var(--gymspotter-blue-dim);outline:none}
.gymspotter-doc-row-field-input--select{cursor:pointer;-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23475569' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;padding-right:26px}
.gymspotter-doc-row-field-input--textarea{min-height:50px;resize:vertical;line-height:1.5}
.gymspotter-doc-row-field--wide{grid-column:1/-1}

/* File attachment area */
.gymspotter-doc-row-files{padding:0 14px 8px;display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.gymspotter-doc-row-files-label{font-size:.625rem;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--gymspotter-muted);margin-right:4px;flex-shrink:0}
.gymspotter-doc-row-file-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:20px;font-size:.6875rem;font-weight:600;cursor:pointer;border:1px solid var(--gymspotter-border);background:var(--gymspotter-surface);color:var(--gymspotter-text-sec);transition:background var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast),color var(--gymspotter-t-fast);max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gymspotter-doc-row-file-chip:hover{border-color:var(--gymspotter-blue);background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk)}
.gymspotter-doc-row-file-chip.gymspotter-active{background:var(--gymspotter-blue);border-color:var(--gymspotter-blue);color:#fff}
.gymspotter-doc-row-file-chip--pdf i{color:#f87171}
.gymspotter-doc-row-file-chip--pdf.gymspotter-active i,.gymspotter-doc-row-file-chip.gymspotter-active i{color:#fff}
.gymspotter-doc-row-file-chip--csv i{color:var(--gymspotter-green)}
.gymspotter-doc-row-no-files{font-size:.6875rem;color:var(--gymspotter-muted-lt);font-style:italic}

/* File preview embed (below fields, inside the expanded row) */
.gymspotter-doc-row-preview{display:none;border-top:1px solid var(--gymspotter-border-lt);background:var(--gymspotter-surface)}
.gymspotter-doc-row-preview.gymspotter-show{display:block}
.gymspotter-doc-row-preview-bar{display:flex;align-items:center;justify-content:space-between;padding:7px 14px;background:var(--gymspotter-surface2);border-bottom:1px solid var(--gymspotter-border-lt);font-size:.75rem;font-weight:700;color:var(--gymspotter-text);gap:8px;flex-wrap:wrap}
.gymspotter-doc-row-preview-body{overflow:auto;max-height:380px}
.gymspotter-doc-row-preview-iframe{width:100%;height:380px;border:none;display:block;background:#fff}

/* Row action bar */
.gymspotter-doc-row-actions{display:flex;align-items:center;justify-content:space-between;padding:8px 14px;border-top:1px solid var(--gymspotter-border-lt);background:var(--gymspotter-surface);flex-wrap:wrap;gap:8px}
.gymspotter-doc-row-save-status{font-size:.6875rem;color:var(--gymspotter-green);display:none;align-items:center;gap:4px}
.gymspotter-doc-row-save-status.gymspotter-show{display:flex}

/* Hub KPI tiles (restored) */
.gymspotter-hub-tile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px;margin-bottom:16px;flex-shrink:0}
.gymspotter-hub-tile{background:var(--gymspotter-surface);border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius);padding:12px 14px;cursor:pointer;min-height:80px;transition:transform var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast),box-shadow var(--gymspotter-t-fast);box-shadow:var(--gymspotter-shadow-xs);position:relative;overflow:hidden;text-align:left;width:100%}
.gymspotter-hub-tile:hover{border-color:var(--gymspotter-purple);transform:translateY(-2px);box-shadow:var(--gymspotter-shadow-md)}
.gymspotter-hub-tile-name{font-size:.6875rem;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:var(--gymspotter-muted);margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gymspotter-hub-tile-onhand{font-size:1.5rem;font-weight:900;letter-spacing:-1px;line-height:1}
.gymspotter-hub-tile-sub{font-size:.625rem;margin-top:5px;color:var(--gymspotter-muted);display:flex;gap:6px;flex-wrap:wrap}
.gymspotter-hub-tile-sub span{background:var(--gymspotter-surface2);border:1px solid var(--gymspotter-border-lt);padding:1px 5px;border-radius:4px;font-weight:600}

/* Source-tab consistency patch:
   Inventory, Dispatch, Invoices, and POs now use the manila source tabs
   attached to the data panel. The older top CSV strips stay hidden. */
#gymspotterInvCsvTabsWrap,
#gymspotterDispCsvTabsWrap{
  display:none!important;
}

/* Only the flat inventory sheet does not use expand-table.
   The invoice page uses #gymspotterInvDocExpandBtn (different ID) — not blocked here. */
#gymspotterInvExpandBtn{
  display:none!important;
}

/* Make source tabs visibly consistent across modules. */
.gymspotter-manila-tab-row{
  min-height:42px;
}
.gymspotter-manila-tab{
  min-height:36px;
  font-size:.7813rem;
}
.gymspotter-manila-tab-count{
  min-width:20px;
  text-align:center;
}

/* ── 31. PWA install prompt ── */
.gymspotter-pwa-banner{
  display:none;
  position:fixed;
  bottom:70px;
  right:20px;
  z-index:5000;
  background:var(--gymspotter-surface);
  border:1px solid var(--gymspotter-border-lt);
  border-left:4px solid var(--gymspotter-blue);
  border-radius:var(--gymspotter-radius);
  padding:14px 16px;
  box-shadow:var(--gymspotter-shadow-xl);
  max-width:330px;
  font-size:.8125rem;
}
.gymspotter-pwa-banner.gymspotter-show{display:block}
.gymspotter-pwa-banner-title{
  font-weight:900;
  margin-bottom:6px;
  color:var(--gymspotter-text);
  display:flex;
  align-items:center;
  gap:8px;
}
.gymspotter-pwa-banner-sub{
  color:var(--gymspotter-muted);
  font-size:.75rem;
  margin-bottom:12px;
  line-height:1.6;
}
.gymspotter-pwa-install-steps{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.gymspotter-pwa-install-step{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px 14px;
  background:var(--gymspotter-surface2);
  border:1px solid var(--gymspotter-border-lt);
  border-radius:var(--gymspotter-radius-sm);
}
.gymspotter-pwa-install-step-icon{
  width:34px;
  height:34px;
  min-width:34px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--gymspotter-blue-dim);
  color:var(--gymspotter-blue);
  border:1px solid rgba(37,99,235,.2);
}
.gymspotter-pwa-install-step strong{
  display:block;
  font-size:.8125rem;
  font-weight:800;
  color:var(--gymspotter-text);
  margin-bottom:2px;
}
.gymspotter-pwa-install-step span{
  display:block;
  font-size:.75rem;
  line-height:1.55;
  color:var(--gymspotter-muted);
}
@media(max-width:640px){
  .gymspotter-pwa-banner{
    left:14px;
    right:14px;
    bottom:62px;
    max-width:none;
  }
}

/* ══════════════════════════════════════════════════
   UNIVERSAL RIGHT-SIDE FILE PREVIEW PANEL (v7.4)
   Slides in from the right. Portrait-oriented.
   z-index above sidebar (200), below modals (20000).
   Works for PDF, CSV, XLSX from any page/context.
══════════════════════════════════════════════════ */
.gymspotter-preview-panel-overlay{
  display:none;position:fixed;inset:0;
  background:rgba(10,12,20,.45);
  z-index:8000;
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
}
.gymspotter-preview-panel-overlay.gymspotter-show{display:block}
.gymspotter-preview-panel{
  position:fixed;top:0;right:0;bottom:0;
  width:min(50vw,1200px);
  background:var(--gymspotter-surface);
  border-left:1px solid var(--gymspotter-border-lt);
  box-shadow:-8px 0 40px rgba(0,0,0,.28);
  z-index:8001;
  display:flex;flex-direction:column;
  transform:translateX(100%);
  transition:transform .28s cubic-bezier(.4,0,.2,1);
  overflow:hidden;
}
@media(max-width:900px){
  .gymspotter-preview-panel{
    width:92vw;
  }
}
.gymspotter-preview-panel:not(.gymspotter-open){visibility:hidden;pointer-events:none}
.gymspotter-preview-panel.gymspotter-open{transform:translateX(0);visibility:visible;pointer-events:auto}
.gymspotter-preview-panel-head{
  display:flex;align-items:center;gap:10px;
  padding:0 16px;
  height:56px;min-height:56px;
  border-bottom:1px solid var(--gymspotter-border-lt);
  background:var(--gymspotter-surface2);
  flex-shrink:0;
}
.gymspotter-preview-panel-title{
  flex:1;min-width:0;
  font-size:.8125rem;font-weight:700;
  color:var(--gymspotter-text);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  display:flex;align-items:center;gap:7px;
}
.gymspotter-preview-panel-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}
.gymspotter-preview-panel-body{
  flex:1;overflow:auto;
  display:flex;flex-direction:column;
  min-height:0;
  position:relative;
}
.gymspotter-preview-panel-pdf{
  width:100%;flex:1;
  border:none;display:block;
  background:#fff;
  min-height:0;
}
.gymspotter-preview-panel-csv{overflow:auto;flex:1}
.gymspotter-preview-panel-footer{
  padding:8px 14px;
  border-top:1px solid var(--gymspotter-border-lt);
  background:var(--gymspotter-surface2);
  font-size:.6875rem;color:var(--gymspotter-muted);
  flex-shrink:0;
  display:flex;align-items:center;justify-content:space-between;gap:8px;
}
/* ── "Show Fields" fly-out — slides out LEFT of the preview panel ── */
.gymspotter-preview-meta-flyout{
  position:fixed;
  top:0;bottom:0;
  right:min(50vw,1200px);          /* sits flush against the preview panel's left edge */
  width:min(360px,38vw);
  background:var(--gymspotter-surface);
  border-left:1px solid var(--gymspotter-border-lt);
  border-right:1px solid var(--gymspotter-border-lt);
  box-shadow:-10px 0 30px rgba(0,0,0,.18);
  z-index:8000;                     /* below the panel (8001) so it slides out from behind it */
  display:flex;flex-direction:column;
  transform:translateX(105%);
  opacity:0;
  pointer-events:none;
  transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .25s ease;
}
.gymspotter-preview-meta-flyout:not(.gymspotter-open){visibility:hidden;pointer-events:none}
.gymspotter-preview-meta-flyout.gymspotter-open{
  transform:translateX(0);
  opacity:1;
  pointer-events:auto;
}
.gymspotter-preview-meta-flyout-head{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:0 14px;height:56px;min-height:56px;
  border-bottom:1px solid var(--gymspotter-border-lt);
  background:var(--gymspotter-surface2);
  font-size:.8125rem;font-weight:800;color:var(--gymspotter-text);
  flex-shrink:0;
}
.gymspotter-preview-meta-flyout-body{
  flex:1;min-height:0;overflow-y:auto;
  padding:12px 14px;
}
.gymspotter-preview-meta-flyout-body .gymspotter-meta-field-grid{
  grid-template-columns:1fr;        /* vertical form layout — one field per row */
}
.gymspotter-preview-meta-flyout-foot{
  display:flex;gap:8px;
  padding:10px 14px;
  border-top:1px solid var(--gymspotter-border-lt);
  background:var(--gymspotter-surface2);
  flex-shrink:0;
}
@media(max-width:900px){
  .gymspotter-preview-meta-flyout{
    right:0;width:92vw;z-index:8002;
  }
}

/* Lightbox — true fullscreen, content rendered directly (no iframe/download) */
.gymspotter-lightbox{
  display:none;
  position:fixed;
  inset:0;
  z-index:50000;
  background:#0d1117;
  flex-direction:column;
}
.gymspotter-lightbox.gymspotter-show{display:flex}

/* Title bar — shows filename + optional PDF page nav */
.gymspotter-lightbox-titlebar{
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 16px;
  height:48px;
  min-height:48px;
  background:rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.08);
  flex-shrink:0;
  color:#fff;
}

/* Body — fills remaining space, renders PDF iframe or CSV table directly */
.gymspotter-lightbox-body{
  flex:1;
  min-height:0;
  overflow:auto;
  background:#fff;
  display:flex;
  flex-direction:column;
}

/* PDF iframe inside lightbox body — full size */
.gymspotter-lightbox-body iframe{
  flex:1;
  width:100%;
  min-height:0;
  border:none;
  display:block;
}

/* CSV table inside lightbox body */
.gymspotter-lightbox-csv-wrap{
  flex:1;
  overflow:auto;
  padding:8px 0;
}

/* Floating action bar — pinned top-right */
.gymspotter-lightbox-actions{
  position:fixed;
  top:14px;
  right:16px;
  display:flex;
  gap:8px;
  z-index:50001;
}

/* ══════════════════════════════════════════════════
   AUTOCOMPLETE DROPDOWN (v7.4)
══════════════════════════════════════════════════ */
.gymspotter-ac-dropdown{
  position:absolute;
  z-index:99999;
  background:var(--gymspotter-surface);
  border:1px solid var(--gymspotter-border);
  border-radius:var(--gymspotter-radius-sm);
  box-shadow:var(--gymspotter-shadow-xl);
  max-height:260px;
  overflow-y:auto;
  min-width:200px;
  animation:gymspotterAcIn .12s ease;
  display:none;
  /* it is appended to <body>, outside .gymspotter-app: the app's font, and normal spacing (body keeps white-space:pre-wrap,
     which would turn the item markup's line breaks into extra space) */
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;white-space:normal;line-height:1.4;
}
.gymspotter-ac-dropdown,.gymspotter-ac-dropdown *{box-sizing:border-box}
.gymspotter-ac-dropdown.gymspotter-ac-open{display:block}
@keyframes gymspotterAcIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.gymspotter-ac-item{
  display:flex;align-items:center;gap:10px;
  padding:9px 14px;
  cursor:pointer;font-size:.8125rem;font-weight:500;
  color:var(--gymspotter-text);border:none;background:transparent;
  width:100%;text-align:left;min-height:38px;
  transition:background .1s;
  border-bottom:1px solid var(--gymspotter-border-lt);
}
.gymspotter-ac-item:last-child{border-bottom:none}
.gymspotter-ac-item:hover,.gymspotter-ac-item.gymspotter-ac-active{
  background:var(--gymspotter-blue-dim);
  color:var(--gymspotter-blue-dk);
}
.gymspotter-ac-item small{color:var(--gymspotter-muted);font-size:.6875rem;margin-left:auto;flex-shrink:0;white-space:nowrap}
.gymspotter-ac-item i{color:var(--gymspotter-muted);font-size:.6875rem;width:14px;text-align:center;flex-shrink:0}
.gymspotter-ac-item:hover i,.gymspotter-ac-item.gymspotter-ac-active i{color:var(--gymspotter-blue)}
.gymspotter-ac-item--cust i{color:var(--gymspotter-blue)}
.gymspotter-ac-item--inv i{color:var(--gymspotter-green)}
.gymspotter-ac-item--po i{color:var(--gymspotter-blue)}
.gymspotter-ac-item--sku i{color:var(--gymspotter-purple)}
.gymspotter-ac-item--svc i{color:var(--gymspotter-amber)}
.gymspotter-ac-no-results{
  padding:14px 16px;font-size:.75rem;color:var(--gymspotter-muted);
  text-align:center;font-style:italic;
}
.gymspotter-ac-match{
  background:rgba(245,158,11,.22);
  color:var(--gymspotter-amber);font-weight:700;
  border-radius:2px;padding:0 2px;
}

/* ════════════════════════════════════════════════
   STICKY SUMMARY BAR (L3)
════════════════════════════════════════════════ */
.gymspotter-sticky-summary-bar{
  display:flex;
  align-items:center;
  gap:0;
  padding:0;
  background:var(--gymspotter-surface2);
  border-top:2px solid var(--gymspotter-border-lt);
  border-radius:0 0 var(--gymspotter-radius) var(--gymspotter-radius);
  overflow:hidden;
  flex-shrink:0;
  position:sticky;
  bottom:0;
  z-index:15;
  box-shadow:0 -2px 8px rgba(15,23,42,.06);
}
.gymspotter-sticky-summary-stat{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:7px 16px;
  min-width:90px;
  flex:1;
}
.gymspotter-sticky-summary-val{
  font-size:.875rem;
  font-weight:900;
  letter-spacing:-.3px;
  font-family:'Manrope','Inter',sans-serif;
  line-height:1.1;
}
.gymspotter-sticky-summary-lbl{
  font-size:.5625rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:var(--gymspotter-muted);
  margin-top:2px;
  white-space:nowrap;
}
.gymspotter-sticky-summary-sep{
  width:1px;
  height:28px;
  background:var(--gymspotter-border-lt);
  flex-shrink:0;
}
@media(max-width:640px){
  .gymspotter-sticky-summary-stat{padding:6px 10px;min-width:70px}
  .gymspotter-sticky-summary-val{font-size:.75rem}
}

/* Tooltip hover on file chips / buttons */
[data-gymspotter-tooltip]{position:relative}
[data-gymspotter-tooltip]::after{
  content:attr(data-gymspotter-tooltip);
  position:absolute;bottom:calc(100% + 6px);left:50%;
  transform:translateX(-50%);
  background:#0b1120;color:#fff;
  border:1px solid rgba(147,197,253,.3);
  padding:5px 10px;border-radius:6px;
  font-size:.6875rem;font-weight:600;
  white-space:nowrap;
  opacity:0;pointer-events:none;
  transition:opacity .15s ease;
  z-index:9999;
  box-shadow:0 4px 12px rgba(0,0,0,.5);
}
[data-gymspotter-tooltip]:hover::after{opacity:1}

/* ══════════════════════════════════════════════════
   DASHBOARD v7.4 — Top row: Hub Inventory (left) + Chart (right)
══════════════════════════════════════════════════ */
.gymspotter-dash-top-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-bottom:16px;
}
@media(max-width:1000px){.gymspotter-dash-top-row{grid-template-columns:1fr}}
.gymspotter-dash-hub-panel{/* panel container for hub cards on dashboard */}
.gymspotter-dash-hub-tile-grid-inner{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
  gap:10px;
}
/* Hub tiles on dashboard — slightly larger than the old ones */
.gymspotter-hub-dash-tile{
  background:var(--gymspotter-surface2);
  border:1px solid var(--gymspotter-border-lt);
  border-radius:var(--gymspotter-radius-sm);
  padding:12px 14px;
  cursor:pointer;
  transition:transform var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast),box-shadow var(--gymspotter-t-fast);
  box-shadow:var(--gymspotter-shadow-xs);
  text-align:left;width:100%;
  display:flex;flex-direction:column;gap:4px;
  min-height:90px;
}
.gymspotter-hub-dash-tile:hover{border-color:var(--gymspotter-purple);transform:translateY(-2px);box-shadow:var(--gymspotter-shadow-md)}
.gymspotter-hub-dash-tile-name{font-size:.625rem;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:var(--gymspotter-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:5px}
.gymspotter-hub-dash-tile-onhand{font-size:1.625rem;font-weight:900;letter-spacing:-1px;line-height:1.1}
.gymspotter-hub-dash-tile-sub{font-size:.625rem;color:var(--gymspotter-muted);display:flex;gap:5px;flex-wrap:wrap;margin-top:2px}
.gymspotter-hub-dash-tile-sub span{background:var(--gymspotter-surface);border:1px solid var(--gymspotter-border-lt);padding:1px 5px;border-radius:4px;font-weight:600}

/* ══ CSV Tabs shared style (already defined; ensure .gymspotter-csv-tabs-wrap visible) ══ */
.gymspotter-csv-tabs-wrap{display:none;flex-direction:column;flex-shrink:0;margin-bottom:8px}
.gymspotter-csv-tabs-wrap.gymspotter-visible{display:flex}

/* ══ Metadata panel — Orders + Inventory get same panel as Inv/PO ══ */
/* (already styled above via .gymspotter-meta-panel — no changes needed) */

/* ══ One-click "Mark Sent" button (L6 — already listed, adding style) ══ */
.gymspotter-btn--sent-quick{
  background:var(--gymspotter-blue-dim);
  color:var(--gymspotter-blue-dk);
  border-color:rgba(37,99,235,.25);
  min-height:26px!important;
  padding:2px 7px!important;
  font-size:.625rem!important;
  white-space:nowrap;
}
.gymspotter-btn--sent-quick:hover{background:var(--gymspotter-blue);color:#fff;border-color:var(--gymspotter-blue)}

/* ══ Partial receive progress bar in PO rows ══ */
.gymspotter-po-recv-bar{height:4px;border-radius:99px;background:var(--gymspotter-border-lt);overflow:hidden;margin-top:4px}
.gymspotter-po-recv-bar-fill{height:100%;border-radius:99px;background:var(--gymspotter-green);transition:width .3s ease}

/* ══ Transfer form print target ══ */
@media print{
  .gymspotter-transfer-print-only{display:block!important}
  .gymspotter-transfer-print-hide{display:none!important}
}
.gymspotter-transfer-print-only{display:none}

/* ══════════════════════════════════════════════════
   FILE BROWSER SIDE PANEL
   Slides in from the LEFT, over the sidebar.
   Full-height, wider than preview panel.
   Toggle: sidebar bottom widget ↔ full side panel.
══════════════════════════════════════════════════ */
.gymspotter-fp-panel-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(10,12,20,.45);
  z-index:9500;
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
}
.gymspotter-fp-panel-overlay.gymspotter-show{display:block}

.gymspotter-fp-panel{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:min(400px,90vw);
  background:var(--gymspotter-surface);
  border-right:1px solid var(--gymspotter-border-lt);
  box-shadow:8px 0 40px rgba(0,0,0,.22);
  z-index:9501;
  display:flex;
  flex-direction:column;
  transform:translateX(-100%);
  transition:transform .28s cubic-bezier(.4,0,.2,1);
  overflow:hidden;
}
.gymspotter-fp-panel.gymspotter-open{transform:translateX(0)}

/* ── Panel header ── */
.gymspotter-fp-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 14px;
  height:56px;
  min-height:56px;
  border-bottom:1px solid var(--gymspotter-border-lt);
  background:linear-gradient(135deg,#0b1120,#1a1050);
  flex-shrink:0;
}
.gymspotter-fp-panel-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.875rem;
  font-weight:800;
  color:#fff;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  flex:1;
  min-width:0;
}
.gymspotter-fp-panel-head-actions{
  display:flex;
  align-items:center;
  gap:5px;
  flex-shrink:0;
}
.gymspotter-fp-panel-head .gymspotter-sb-fp-btn{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.18);
  color:rgba(255,255,255,.7);
}
.gymspotter-fp-panel-head .gymspotter-sb-fp-btn:hover{
  background:rgba(255,255,255,.2);
  color:#fff;
  border-color:rgba(255,255,255,.4);
}

/* ── Search bar ── */
.gymspotter-fp-panel-search{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-bottom:1px solid var(--gymspotter-border-lt);
  background:var(--gymspotter-surface2);
  flex-shrink:0;
}
.gymspotter-fp-panel-search i{
  color:var(--gymspotter-muted);
  font-size:.75rem;
  flex-shrink:0;
}
.gymspotter-fp-panel-search input{
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  color:var(--gymspotter-text);
  font-size:.8125rem;
  font-weight:500;
  min-height:28px;
}
.gymspotter-fp-panel-search input::placeholder{color:var(--gymspotter-muted)}

/* ── Scrollable body ── */
.gymspotter-fp-panel-body{
  flex:1;
  overflow-y:auto;
  overflow-x:hidden;
  padding:8px 0;
  min-height:0;
}
.gymspotter-fp-panel-body::-webkit-scrollbar{width:5px}
.gymspotter-fp-panel-body::-webkit-scrollbar-thumb{background:rgba(15,23,42,.15);border-radius:99px}
.gymspotter-dark .gymspotter-fp-panel-body::-webkit-scrollbar-thumb{background:rgba(255,255,255,.15)}

/* ── Subfolder section inside panel ── */
.gymspotter-fpp-section{margin-bottom:4px}
.gymspotter-fpp-section-header{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  cursor:pointer;
  user-select:none;
  transition:background var(--gymspotter-t-fast);
  position:sticky;
  top:0;
  z-index:5;
  background:var(--gymspotter-surface2);
  border-bottom:1px solid var(--gymspotter-border-lt);
}
.gymspotter-fpp-section-header:hover{background:var(--gymspotter-blue-dim)}
.gymspotter-fpp-section-icon{font-size:.8125rem;flex-shrink:0}
.gymspotter-fpp-section-name{
  font-size:.75rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:var(--gymspotter-text);
  flex:1;
  min-width:0;
}
.gymspotter-fpp-section-count{
  font-size:.6875rem;
  color:var(--gymspotter-muted);
  font-weight:700;
  background:var(--gymspotter-surface3);
  border:1px solid var(--gymspotter-border-lt);
  border-radius:12px;
  padding:1px 7px;
  flex-shrink:0;
}
.gymspotter-fpp-section-chevron{
  font-size:.625rem;
  color:var(--gymspotter-muted);
  transition:transform var(--gymspotter-t-fast);
  flex-shrink:0;
}
.gymspotter-fpp-section-header.gymspotter-open .gymspotter-fpp-section-chevron{transform:rotate(90deg)}

/* ── File list inside section ── */
.gymspotter-fpp-file-list{display:none;padding:4px 0}
.gymspotter-fpp-file-list.gymspotter-open{display:block}
.gymspotter-fpp-file{
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px 14px 7px 28px;
  cursor:pointer;
  transition:background var(--gymspotter-t-fast);
  position:relative;
}
.gymspotter-fpp-file:hover{background:var(--gymspotter-blue-dim)}
.gymspotter-fpp-file-icon{
  font-size:.8125rem;
  flex-shrink:0;
  width:16px;
  text-align:center;
}
.gymspotter-fpp-file-icon--pdf{color:#f87171}
.gymspotter-fpp-file-icon--csv{color:var(--gymspotter-green)}
.gymspotter-fpp-file-icon--xlsx{color:#34d399}
.gymspotter-fpp-file-name{
  font-size:.75rem;
  font-weight:500;
  color:var(--gymspotter-text-sec);
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  transition:color var(--gymspotter-t-fast);
}
.gymspotter-fpp-file:hover .gymspotter-fpp-file-name{color:var(--gymspotter-blue-dk)}
.gymspotter-fpp-file-size{
  font-size:.625rem;
  color:var(--gymspotter-muted-lt);
  flex-shrink:0;
  font-family:monospace;
}
.gymspotter-fpp-file-actions{
  display:flex;
  gap:3px;
  flex-shrink:0;
  opacity:0;
  transition:opacity var(--gymspotter-t-fast);
}
.gymspotter-fpp-file:hover .gymspotter-fpp-file-actions{opacity:1}
.gymspotter-fpp-file-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:4px;
  border:1px solid var(--gymspotter-border-lt);
  background:var(--gymspotter-surface2);
  color:var(--gymspotter-muted);
  font-size:.625rem;
  cursor:pointer;
  transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast);
}
.gymspotter-fpp-file-btn:hover{background:var(--gymspotter-blue);color:#fff;border-color:var(--gymspotter-blue)}
.gymspotter-fpp-file-btn--danger:hover{background:var(--gymspotter-red);color:#fff;border-color:var(--gymspotter-red)}
.gymspotter-fpp-file-empty{
  font-size:.6875rem;
  color:var(--gymspotter-muted-lt);
  padding:10px 28px;
  font-style:italic;
}
.gymspotter-fpp-drop-zone{
  margin:6px 14px;
  border:1px dashed var(--gymspotter-border);
  border-radius:var(--gymspotter-radius-xs);
  padding:10px;
  text-align:center;
  font-size:.6875rem;
  color:var(--gymspotter-muted);
  cursor:pointer;
  transition:border-color var(--gymspotter-t-fast),background var(--gymspotter-t-fast);
}
.gymspotter-fpp-drop-zone:hover,.gymspotter-fpp-drop-zone.gymspotter-dragover{
  border-color:var(--gymspotter-blue);
  background:var(--gymspotter-blue-dim);
  color:var(--gymspotter-blue-dk);
}

/* ── Footer ── */
.gymspotter-fp-panel-footer{
  padding:8px 14px;
  border-top:1px solid var(--gymspotter-border-lt);
  background:var(--gymspotter-surface2);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  flex-shrink:0;
}

/* ── Toggle arrow button in sidebar — rotates when panel is open ── */
#gymspotterSbFpPopoutBtn i{transition:transform .25s ease}
#gymspotterSbFpPopoutBtn.gymspotter-fp-panel-open i{transform:rotate(180deg)}

/* ── Collapsed sidebar: hide popout btn label, keep icon ── */
.gymspotter-sb-collapsed #gymspotterSbFpPopoutBtn{display:inline-flex}

/* ── Filter highlight ── */
.gymspotter-fpp-file--hidden{display:none}
.gymspotter-fpp-file-name mark{
  background:rgba(245,158,11,.25);
  color:var(--gymspotter-amber);
  border-radius:2px;
  font-weight:700;
  padding:0 2px;
}


/* ══════════════════════════════════════════════════
   HEADER v7.4 — Two-row with integration pills
══════════════════════════════════════════════════ */
.gymspotter-header{
  flex-direction:column;
  height:auto;
  min-height:auto;
  padding:0;
}
.gymspotter-header-row{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:0 24px;
}
.gymspotter-header-row--main{
  height:60px;
  min-height:60px;
  border-bottom:1px solid var(--gymspotter-border-lt);
}
.gymspotter-header-title{
  font-size:1.25rem;
  font-weight:900;
  color:var(--gymspotter-text);
  white-space:nowrap;
  letter-spacing:-.02em;
  line-height:1;
}
.gymspotter-header-sep{
  width:1px;height:28px;
  background:var(--gymspotter-border-lt);
  flex-shrink:0;
  margin:0 4px;
}
.gymspotter-hdr-integrations{
  display:flex;
  align-items:center;
  gap:6px;
  flex-shrink:0;
}
.gymspotter-hdr-integration-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:20px;
  font-size:.6875rem;
  font-weight:600;
  border:1px solid var(--gymspotter-border-lt);
  background:var(--gymspotter-surface2);
  color:var(--gymspotter-muted);
  cursor:pointer;
  transition:background var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast),color var(--gymspotter-t-fast);
  white-space:nowrap;
  min-height:32px;
  flex-direction:column;
  gap:0;
  padding:3px 10px;
  text-align:center;
}
.gymspotter-hdr-integration-pill:hover{
  background:var(--gymspotter-blue-dim);
  border-color:var(--gymspotter-blue);
  color:var(--gymspotter-blue-dk);
}
.gymspotter-hdr-int-label{
  font-size:.5625rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:var(--gymspotter-muted);
  display:block;
  line-height:1.2;
}
.gymspotter-hdr-int-status{
  font-size:.6875rem;
  font-weight:700;
  color:var(--gymspotter-text);
  display:block;
  line-height:1.2;
}

@media(max-width:90rem){
  .gymspotter-hdr-integration-pill{
    width:var(--gymspotter-min-target);
    min-width:var(--gymspotter-min-target);
    height:var(--gymspotter-min-target);
    min-height:var(--gymspotter-min-target);
    padding:0;
    justify-content:center;
  }
  .gymspotter-hdr-integration-pill .gymspotter-hdr-int-label,
  .gymspotter-hdr-integration-pill .gymspotter-hdr-int-status{display:none}
}
.gymspotter-hdr-integration-pill--qb .gymspotter-hdr-int-label{color:var(--gymspotter-qb)}
.gymspotter-hdr-integration-pill--qb:hover{background:var(--gymspotter-qb-lt);border-color:var(--gymspotter-qb);color:var(--gymspotter-qb)}
.gymspotter-hdr-integration-pill--gs .gymspotter-hdr-int-label{color:var(--gymspotter-blue)}
.gymspotter-hdr-integration-pill--gs.gymspotter-connected{background:var(--gymspotter-green-lt);border-color:rgba(21,128,61,.3);color:var(--gymspotter-green)}
.gymspotter-hdr-integration-pill--gs.gymspotter-connected .gymspotter-hdr-int-label{color:var(--gymspotter-green)}
.gymspotter-hdr-integration-pill--qb.gymspotter-connected{background:var(--gymspotter-qb-lt);border-color:rgba(44,160,28,.3);color:var(--gymspotter-qb)}
.gymspotter-hdr-integration-pill--qb.gymspotter-connected .gymspotter-hdr-int-label{color:var(--gymspotter-qb)}
.gymspotter-hdr-integration-pill--gh{background:var(--gymspotter-gh-dim);color:var(--gymspotter-gh);border-color:rgba(99,102,241,.25)}
.gymspotter-hdr-integration-pill--gh .gymspotter-hdr-int-label{color:var(--gymspotter-gh)}
.gymspotter-hdr-integration-pill--gh:hover{background:var(--gymspotter-gh);color:#fff;border-color:var(--gymspotter-gh)}
.gymspotter-hdr-integration-pill--gh.gymspotter-connected{background:rgba(99,102,241,.18);border-color:rgba(99,102,241,.45);color:var(--gymspotter-gh)}
.gymspotter-hdr-integration-pill--gh.gymspotter-connected .gymspotter-hdr-int-label{color:var(--gymspotter-gh)}

/* Adjust main content top offset for taller header */
body,.gymspotter-app{
  padding-left:var(--gymspotter-sb-w);
}
.gymspotter-tipsbar{
  top:60px; /* single row header */
}

/* Inline drop zone variant */
.gymspotter-csv-drop--inline{
  padding:5px 12px;
  font-size:.6875rem;
  border-radius:var(--gymspotter-radius-xs);
  border-width:1px;
  margin-top:0;
  white-space:nowrap;
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  gap:5px;
  height:28px;
  min-height:28px;
  cursor:pointer;
}
.gymspotter-csv-drop--inline i{font-size:.6875rem;flex-shrink:0}
.gymspotter-csv-drop--inline .gymspotter-csv-drop-sub{display:none}/* hide the sub-label in inline mode to save space */

/* Wrapper that puts file chips + drop zone on ONE horizontal row */
.gymspotter-page-inline-row{
  display:flex;
  flex-direction:row;
  align-items:center;
  flex-wrap:nowrap;
  gap:6px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  padding-bottom:2px;
}
.gymspotter-page-inline-row .gymspotter-page-inline-files{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  gap:5px;
  align-items:center;
  min-width:0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  flex:1;
}
.gymspotter-page-inline-row .gymspotter-csv-drop--inline{
  flex-shrink:0;
}

/* ══════════════════════════════════════════════════
   KANBAN BOARD v7.4
══════════════════════════════════════════════════ */
.gymspotter-kanban-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:14px;
  flex-shrink:0;
}
.gymspotter-kanban-header-left{display:flex;align-items:center;gap:10px}
.gymspotter-kanban-header-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gymspotter-kanban-title{font-size:1.25rem;font-weight:900;letter-spacing:-.3px;color:var(--gymspotter-text);display:flex;align-items:center;gap:8px}

.gymspotter-kanban-wrap{
  display:flex;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  flex:1;
  min-height:0;
  padding-bottom:12px;
  -webkit-overflow-scrolling:touch;
  align-items:flex-start;
}
.gymspotter-kanban-wrap::-webkit-scrollbar{height:6px}
.gymspotter-kanban-wrap::-webkit-scrollbar-thumb{background:rgba(15,23,42,.15);border-radius:99px}

.gymspotter-kanban-col{
  flex-shrink:0;
  width:240px;
  background:var(--gymspotter-surface2);
  border:1px solid var(--gymspotter-border-lt);
  border-radius:var(--gymspotter-radius);
  display:flex;
  flex-direction:column;
  max-height:calc(100vh - 220px);
  overflow:hidden;
}
.gymspotter-kanban-col-head{
  padding:10px 12px;
  border-bottom:1px solid var(--gymspotter-border-lt);
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:var(--gymspotter-surface);
  border-radius:var(--gymspotter-radius) var(--gymspotter-radius) 0 0;
  flex-shrink:0;
  position:sticky;
  top:0;
  z-index:2;
}
.gymspotter-kanban-col-label{
  font-size:.6875rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.6px;
  color:var(--gymspotter-text);
  display:flex;
  align-items:center;
  gap:6px;
}
.gymspotter-kanban-col-dot{
  width:8px;height:8px;border-radius:50%;flex-shrink:0;
}
.gymspotter-kanban-col-count{
  font-size:.6875rem;
  font-weight:700;
  color:var(--gymspotter-muted);
  background:var(--gymspotter-surface2);
  border:1px solid var(--gymspotter-border-lt);
  border-radius:12px;
  padding:1px 7px;
  min-width:22px;
  text-align:center;
}
.gymspotter-kanban-col-body{
  padding:8px;
  overflow-y:auto;
  flex:1;
  min-height:60px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.gymspotter-kanban-col-body.gymspotter-kanban-drag-over{
  background:var(--gymspotter-blue-dim);
  border-radius:0 0 var(--gymspotter-radius) var(--gymspotter-radius);
}
.gymspotter-kanban-col-empty{
  text-align:center;
  padding:20px 8px;
  color:var(--gymspotter-muted);
  font-size:.6875rem;
  font-style:italic;
  border:1px dashed var(--gymspotter-border-lt);
  border-radius:var(--gymspotter-radius-xs);
}

.gymspotter-kanban-card{
  background:var(--gymspotter-surface);
  border:1px solid var(--gymspotter-border-lt);
  border-radius:var(--gymspotter-radius-sm);
  padding:10px 11px;
  cursor:pointer;
  transition:box-shadow var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast),transform var(--gymspotter-t-fast);
  box-shadow:var(--gymspotter-shadow-xs);
  position:relative;
  border-left:3px solid transparent;
  draggable:true;
}
.gymspotter-kanban-card:hover{
  box-shadow:var(--gymspotter-shadow-md);
  border-color:var(--gymspotter-blue);
  transform:translateY(-1px);
}
.gymspotter-kanban-card.gymspotter-kanban-card--dragging{
  opacity:.45;
  transform:scale(.97);
}
.gymspotter-kanban-card-id{
  font-size:.625rem;
  font-family:'SF Mono','Fira Mono',monospace;
  color:var(--gymspotter-muted);
  margin-bottom:4px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.gymspotter-kanban-card-name{
  font-size:.75rem;
  font-weight:700;
  color:var(--gymspotter-text);
  margin-bottom:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.gymspotter-kanban-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:5px;
}
.gymspotter-kanban-card-tag{
  font-size:.5625rem;
  font-weight:700;
  padding:1px 6px;
  border-radius:10px;
  background:var(--gymspotter-surface2);
  border:1px solid var(--gymspotter-border-lt);
  color:var(--gymspotter-muted);
  white-space:nowrap;
}
.gymspotter-kanban-card-links{
  display:flex;
  gap:3px;
  margin-top:5px;
}
.gymspotter-kanban-card-link{
  font-size:.5625rem;
  font-weight:700;
  padding:1px 6px;
  border-radius:10px;
  cursor:pointer;
  white-space:nowrap;
  border:none;
  transition:opacity var(--gymspotter-t-fast);
}
.gymspotter-kanban-card-link:hover{opacity:.8}
.gymspotter-kanban-card-link--inv{background:var(--gymspotter-green-lt);color:var(--gymspotter-green)}
.gymspotter-kanban-card-link--cust{background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk)}
.gymspotter-kanban-card-link--file{background:var(--gymspotter-amber-lt);color:var(--gymspotter-amber)}

/* Kanban side panel */
.gymspotter-kanban-panel-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(10,12,20,.35);
  z-index:7000;
  backdrop-filter:blur(1px);
}
.gymspotter-kanban-panel-overlay.gymspotter-show{display:block}
.gymspotter-kanban-panel{
  position:fixed;
  top:0;right:0;bottom:0;
  width:min(520px,92vw);
  background:var(--gymspotter-surface);
  border-left:1px solid var(--gymspotter-border-lt);
  box-shadow:-8px 0 40px rgba(0,0,0,.22);
  z-index:7001;
  display:flex;
  flex-direction:column;
  transform:translateX(100%);
  transition:transform .26s cubic-bezier(.4,0,.2,1);
  overflow:hidden;
}
.gymspotter-kanban-panel.gymspotter-open{transform:translateX(0)}
.gymspotter-kanban-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  height:54px;
  min-height:54px;
  border-bottom:1px solid var(--gymspotter-border-lt);
  background:var(--gymspotter-surface2);
  flex-shrink:0;
}
.gymspotter-kanban-panel-title{
  font-size:.8125rem;
  font-weight:700;
  color:var(--gymspotter-text);
  display:flex;
  align-items:center;
  gap:8px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  flex:1;
}
.gymspotter-kanban-panel-body{
  flex:1;
  overflow-y:auto;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* ── Global Search result title contrast fix ── */
#gymspotterSearchResults button,
#gymspotterGlobalSearchModalResults button{
  color:var(--gymspotter-text)!important;
}
#gymspotterSearchResults button div[style*="font-size:.8125rem"][style*="font-weight:700"],
#gymspotterGlobalSearchModalResults button div[style*="font-size:.8125rem"][style*="font-weight:700"],
#gymspotterSearchResults .gymspotter-search-result-title,
#gymspotterGlobalSearchModalResults .gymspotter-search-result-title{
  color:var(--gymspotter-text)!important;
}
#gymspotterSearchResults button div[style*="color:var(--gymspotter-muted)"],
#gymspotterGlobalSearchModalResults button div[style*="color:var(--gymspotter-muted)"]{
  color:var(--gymspotter-muted)!important;
}
.gymspotter-dark #gymspotterSearchResults button,
.gymspotter-dark #gymspotterGlobalSearchModalResults button{
  background:var(--gymspotter-surface)!important;
  color:var(--gymspotter-text)!important;
}
.gymspotter-dark #gymspotterSearchResults button div[style*="font-size:.8125rem"][style*="font-weight:700"],
.gymspotter-dark #gymspotterGlobalSearchModalResults button div[style*="font-size:.8125rem"][style*="font-weight:700"]{
  color:var(--gymspotter-text)!important;
}

/* ── Global Search Shortcuts ── */
.gymspotter-search-shortcut{
  display:inline-flex;align-items:center;gap:5px;
  padding:5px 12px;border-radius:20px;
  font-size:.75rem;font-weight:600;
  border:1px solid var(--gymspotter-border-lt);
  background:var(--gymspotter-surface);
  color:var(--gymspotter-text-sec);
  cursor:pointer;
  transition:background var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast),color var(--gymspotter-t-fast),transform var(--gymspotter-t-fast);
  white-space:nowrap;
}
.gymspotter-search-shortcut:hover{transform:translateY(-1px);box-shadow:var(--gymspotter-shadow-sm)}
.gymspotter-search-shortcut--green{background:var(--gymspotter-green-lt);border-color:rgba(21,128,61,.25);color:var(--gymspotter-green)}
.gymspotter-search-shortcut--green:hover{background:var(--gymspotter-green);color:#fff}
.gymspotter-search-shortcut--blue{background:var(--gymspotter-blue-lt);border-color:rgba(37,99,235,.25);color:var(--gymspotter-blue-dk)}
.gymspotter-search-shortcut--blue:hover{background:var(--gymspotter-blue);color:#fff}
.gymspotter-search-shortcut--amber{background:var(--gymspotter-amber-lt);border-color:rgba(180,83,9,.25);color:var(--gymspotter-amber)}
.gymspotter-search-shortcut--amber:hover{background:var(--gymspotter-amber);color:#fff}
.gymspotter-search-shortcut--red{background:var(--gymspotter-red-lt);border-color:rgba(185,28,28,.25);color:var(--gymspotter-red)}
.gymspotter-search-shortcut--red:hover{background:var(--gymspotter-red);color:#fff}
.gymspotter-search-shortcut--purple{background:var(--gymspotter-purple-lt);border-color:rgba(109,40,217,.25);color:var(--gymspotter-purple)}
.gymspotter-search-shortcut--purple:hover{background:var(--gymspotter-purple);color:#fff}
.gymspotter-search-shortcut--muted{background:var(--gymspotter-surface2);border-color:var(--gymspotter-border-lt);color:var(--gymspotter-muted)}
.gymspotter-search-shortcut--muted:hover{background:var(--gymspotter-surface3);color:var(--gymspotter-text)}

/* ── Context Menu ── */
.gymspotter-ctx-menu{
  position:fixed;z-index:99998;
  background:var(--gymspotter-surface);
  border:1px solid var(--gymspotter-border-lt);
  border-radius:var(--gymspotter-radius-sm);
  box-shadow:var(--gymspotter-shadow-lg);
  min-width:160px;
  padding:4px;
  animation:gymspotterFadeIn .1s ease;
  overflow:hidden;
}
.gymspotter-ctx-menu-item{
  display:flex;align-items:center;gap:8px;
  padding:8px 12px;
  border-radius:5px;
  font-size:.8125rem;font-weight:600;
  color:var(--gymspotter-text-sec);
  cursor:pointer;
  transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast);
  white-space:nowrap;
  border:none;background:transparent;width:100%;text-align:left;
}
.gymspotter-ctx-menu-item:hover{background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk)}
.gymspotter-ctx-menu-item i{width:14px;text-align:center;font-size:.75rem;color:var(--gymspotter-muted);flex-shrink:0}
.gymspotter-ctx-menu-item:hover i{color:var(--gymspotter-blue)}
.gymspotter-ctx-menu-sep{height:1px;background:var(--gymspotter-border-lt);margin:4px 0}

/* ── 31. Document Metadata Panel ── */
.gymspotter-meta-panel{border-top:1px solid var(--gymspotter-border-lt);background:var(--gymspotter-surface2);flex-shrink:0}
.gymspotter-meta-panel-head{display:flex;align-items:center;justify-content:space-between;padding:8px 14px;border-bottom:1px solid var(--gymspotter-border-lt);flex-wrap:wrap;gap:6px}
.gymspotter-meta-panel-title{font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--gymspotter-muted);display:flex;align-items:center;gap:6px}
.gymspotter-meta-panel-actions{display:flex;gap:5px;flex-shrink:0}
.gymspotter-meta-panel-body{padding:10px 14px;max-height:260px;overflow-y:auto}
.gymspotter-meta-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
@media(max-width:700px){.gymspotter-meta-field-grid{grid-template-columns:1fr}}
.gymspotter-meta-field{display:flex;flex-direction:column;gap:3px}
.gymspotter-meta-field-label{font-size:.625rem;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--gymspotter-muted)}
.gymspotter-meta-field-input{min-height:30px;padding:5px 8px;border-radius:var(--gymspotter-radius-xs);border:1px solid var(--gymspotter-border);background:var(--gymspotter-surface);color:var(--gymspotter-text);font-size:.75rem;transition:border-color var(--gymspotter-t-fast),box-shadow var(--gymspotter-t-fast)}
.gymspotter-meta-field-input:focus{border-color:var(--gymspotter-blue);box-shadow:0 0 0 2px var(--gymspotter-blue-dim);outline:none}
.gymspotter-meta-field-input--textarea{min-height:54px;resize:vertical;line-height:1.5}
.gymspotter-meta-saved-indicator{font-size:.6875rem;color:var(--gymspotter-green);display:none;align-items:center;gap:4px;flex-shrink:0}
.gymspotter-meta-saved-indicator.gymspotter-show{display:flex}
.gymspotter-meta-status-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:12px;font-size:.625rem;font-weight:700;background:var(--gymspotter-surface3);border:1px solid var(--gymspotter-border);color:var(--gymspotter-muted)}
.gymspotter-meta-status-badge--linked{background:var(--gymspotter-purple-lt);border-color:rgba(109,40,217,.25);color:var(--gymspotter-purple)}
.gymspotter-meta-status-badge--ocr-ready{background:var(--gymspotter-blue-lt);border-color:rgba(37,99,235,.25);color:var(--gymspotter-blue-dk)}
/* Sidebar tree metadata button */
.gymspotter-sb-tree-file-btn--meta:hover{background:rgba(37,99,235,.3);color:#93c5fd}
/* Custom fields section */
/* COMPLETE REPLACE */
.gymspotter-meta-custom-field{display:flex;align-items:center;gap:6px;margin-bottom:4px}
.gymspotter-meta-custom-key{flex:1;min-height:28px;padding:4px 7px;border-radius:5px;border:1px solid var(--gymspotter-border);background:var(--gymspotter-surface);color:var(--gymspotter-text);font-size:.6875rem;font-family:monospace}
.gymspotter-meta-custom-val{flex:2;min-height:28px;padding:4px 7px;border-radius:5px;border:1px solid var(--gymspotter-border);background:var(--gymspotter-surface);color:var(--gymspotter-text);font-size:.75rem}
.gymspotter-meta-custom-remove{width:24px;height:24px;min-width:24px;border-radius:4px;border:1px solid rgba(185,28,28,.25);background:var(--gymspotter-red-lt);color:var(--gymspotter-red);font-size:.625rem;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}

/* ═══════════════════════════════════════════════════════════════════════
   EXPANDED TABLE LAYOUT v3
   When a table is expanded:
   - Table panel fills the full width (100%) of the grid
   - Below the table, the right-column panels render in a 2-column row:
       LEFT  half → Summary / stats panel(s)
       RIGHT half → Workflow, legend, tips, reference panel(s)
   - Each column stacks its own panels vertically
   - Works for: Invoices, POs, Dispatch, Customers, Item SKUs, Inventory*
     (* Inventory does not use expand — #gymspotterInvExpandBtn is hidden)
═══════════════════════════════════════════════════════════════════════ */

/* Expanded grid: single-column, table fills 100% width */
.gymspotter-main-grid.gymspotter-table-expanded{
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
}

/* Table column — full width */
.gymspotter-main-grid.gymspotter-table-expanded>div:first-child{
  width:100%;
  min-width:0;
  order:1;
}

/* Right panel column — Summary/Reference row ABOVE the table.
   Hidden by default; the Summary/Overview toolbar toggle adds
   .gymspotter-summary-open to the grid for a slide reveal. */
.gymspotter-main-grid.gymspotter-table-expanded>div:last-child{
  order:0;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:14px!important;
  align-items:start;
  width:100%;
  max-height:0;
  overflow:hidden;
  opacity:0;
  margin-bottom:0;
  transition:max-height .35s cubic-bezier(.4,0,.2,1),opacity .28s ease,margin-bottom .35s ease;
}
.gymspotter-main-grid.gymspotter-table-expanded.gymspotter-summary-open>div:last-child{
  max-height:2400px;
  opacity:1;
  margin-bottom:16px;
}

/* Summary / Overview toolbar toggle button */
.gymspotter-summary-toggle-btn{flex-shrink:0;margin:0 10px;white-space:nowrap}
.gymspotter-summary-toggle-btn.gymspotter-active{background:var(--gymspotter-blue);color:#fff;border-color:var(--gymspotter-blue)}
.gymspotter-summary-toggle-btn.gymspotter-active:hover{background:var(--gymspotter-blue-dk);color:#fff;border-color:var(--gymspotter-blue-dk)}
.gymspotter-summary-toggle-btn .gymspotter-summary-chevron{font-size:.5625rem;margin-left:2px}

/* Summary panel (first child) → left column */
.gymspotter-main-grid.gymspotter-table-expanded>div:last-child>.gymspotter-panel:first-child{
  grid-column:1;
  grid-row:1;
  align-self:start;
  margin-bottom:0!important;
}


/* Second panel (workflow/legend/reference) → right column */
.gymspotter-main-grid.gymspotter-table-expanded>div:last-child>.gymspotter-panel:nth-child(2){
  grid-column:2;
  grid-row:1;
  margin-bottom:0!important;
}

/* Third panel onward: alternate left/right columns */
.gymspotter-main-grid.gymspotter-table-expanded>div:last-child>.gymspotter-panel:nth-child(3){
  grid-column:1;
  grid-row:2;
  margin-bottom:0!important;
}
.gymspotter-main-grid.gymspotter-table-expanded>div:last-child>.gymspotter-panel:nth-child(4){
  grid-column:2;
  grid-row:2;
  margin-bottom:0!important;
}
.gymspotter-main-grid.gymspotter-table-expanded>div:last-child>.gymspotter-panel:nth-child(5){
  grid-column:1;
  grid-row:3;
  margin-bottom:0!important;
}
.gymspotter-main-grid.gymspotter-table-expanded>div:last-child>.gymspotter-panel:nth-child(6){
  grid-column:2;
  grid-row:3;
  margin-bottom:0!important;
}

/* Workflow / legend / reference panels — list items flow vertically */
.gymspotter-main-grid.gymspotter-table-expanded>div:last-child>.gymspotter-panel:nth-child(n+2) .gymspotter-panel-body{
  display:flex;
  flex-direction:column;
  gap:0;
}

/* Responsive: 1100px — collapse to single column but keep below-table layout */
@media(max-width:1100px){
  .gymspotter-main-grid.gymspotter-table-expanded>div:last-child{
    grid-template-columns:1fr 1fr!important;
  }
}

/* Responsive: 700px — full single column */
@media(max-width:700px){
  .gymspotter-main-grid.gymspotter-table-expanded>div:last-child{
    grid-template-columns:1fr!important;
  }
  .gymspotter-main-grid.gymspotter-table-expanded>div:last-child>.gymspotter-panel:nth-child(n){
    grid-column:1!important;
  }
}

/* Inventory expand is disabled — belt-and-suspenders */
#gymspotterInvExpandBtn{
  display:none!important;
}

/* Inventory page does not use expand-table UX. */
#gymspotterInvExpandBtn{
  display:none!important;
}

/* Item SKUs */
#gymspotterSkuTable .gymspotter-sheet-cell{
  min-height:40px;
}
.gymspotter-sku-master-row td{
  vertical-align:middle;
}
.gymspotter-sku-source-pill{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:2px 7px;
  border-radius:12px;
  font-size:.625rem;
  font-weight:800;
  background:var(--gymspotter-surface2);
  border:1px solid var(--gymspotter-border-lt);
  color:var(--gymspotter-muted);
  white-space:nowrap;
}
.gymspotter-sku-readonly-note{
  font-size:.6875rem;
  color:var(--gymspotter-muted);
  line-height:1.5;
}

/* Consistent source-tab visibility: use manila tabs, not detached top strips. */
#gymspotterInvCsvTabsWrap,
#gymspotterDispCsvTabsWrap{
  display:none!important;
}

/* ═══════════════════════════════════════════════════════════════════════
   APP READABILITY PATCH — larger minimum font sizing
   Purpose: reduce tiny text across dense operational screens.
   Placed at the end of CSS intentionally so it overrides earlier rules.
═══════════════════════════════════════════════════════════════════════ */

.gymspotter-app{
  font-size:.9688rem;
}

/* Sidebar / header */
.gymspotter-nav-item{
  font-size:.9375rem;
  min-height:46px;
}
.gymspotter-sb-label{
  font-size:.75rem;
}
.gymspotter-sb-logo-text{
  font-size:1rem;
}
.gymspotter-sb-logo-sub{
  font-size:.6875rem;
}
.gymspotter-header-title{
  font-size:1.3125rem;
}
.gymspotter-hdr-btn,
.gymspotter-hdr-integration-pill{
  font-size:.875rem;
}
.gymspotter-hdr-int-label{
  font-size:.625rem;
}
.gymspotter-hdr-int-status{
  font-size:.75rem;
}

/* Buttons / forms */
.gymspotter-btn{
  font-size:.875rem;
}
.gymspotter-btn--sm{
  font-size:.8125rem;
  min-height:36px;
}
.gymspotter-label{
  font-size:.75rem;
}
.gymspotter-input,
.gymspotter-textarea,
.gymspotter-select{
  font-size:.9375rem;
}
.gymspotter-input--sm,
.gymspotter-select--sm{
  font-size:.8438rem;
  min-height:38px;
}
.gymspotter-textarea{
  font-size:.9375rem;
}

/* Panels / cards / tiles */
.gymspotter-panel-head{
  font-size:.875rem;
  min-height:46px;
}
.gymspotter-panel-body{
  font-size:.9375rem;
}
.gymspotter-tile-label{
  font-size:.75rem;
}
.gymspotter-tile-value{
  font-size:1.875rem;
}
.gymspotter-tile-sub{
  font-size:.75rem;
}
.gymspotter-kv{
  font-size:.875rem;
}
.gymspotter-kv-l{
  font-size:.875rem;
}
.gymspotter-kv-r{
  font-size:.875rem;
}

/* Tables */
.gymspotter-table{
  font-size:.875rem;
}
.gymspotter-table th{
  font-size:.75rem;
}
.gymspotter-table td{
  font-size:.875rem;
}
.gymspotter-sheet{
  font-size:.8438rem;
}
.gymspotter-sheet thead th{
  font-size:.7188rem;
  padding:8px 10px;
}
.gymspotter-sheet-cell{
  font-size:.8438rem;
  min-height:40px;
}
.gymspotter-sheet-cell--id{
  font-size:.7813rem;
}
.gymspotter-sheet-cell--money{
  font-size:.8125rem;
}
.gymspotter-sheet-file-btn{
  font-size:.6875rem;
  min-height:24px;
}
.gymspotter-cb-th,
.gymspotter-cb-td{
  font-size:.75rem;
}

/* Badges / chips */
.gymspotter-badge{
  font-size:.75rem;
}
.gymspotter-id-chip{
  font-size:.8125rem;
  min-height:30px;
}
.gymspotter-filter-active-pill{
  font-size:.75rem;
}
.gymspotter-col-state-pill,
.gymspotter-expand-table-btn{
  font-size:.6875rem;
  min-height:28px;
}

/* Docs/cards/list helper text */
.gymspotter-muted{
  font-size:.8125rem;
}
.gymspotter-doc-card-title{
  font-size:.875rem;
}
.gymspotter-doc-card-meta{
  font-size:.8125rem;
}
.gymspotter-empty{
  font-size:.875rem;
}
.gymspotter-section-title{
  font-size:.75rem;
}

/* Command/search */
.gymspotter-cmd-item-label{
  font-size:.9375rem;
}
.gymspotter-cmd-item-sub{
  font-size:.7813rem;
}
.gymspotter-global-search-modal-input-wrap input,
#gymspotterSearchInput{
  font-size:1rem!important;
}
.gymspotter-search-shortcut{
  font-size:.8125rem;
}

/* Sidebar file tree / file panel */
.gymspotter-sb-tree-folder-name{
  font-size:.75rem;
}
.gymspotter-sb-tree-file-name{
  font-size:.7188rem;
}
.gymspotter-fpp-section-name{
  font-size:.8125rem;
}
.gymspotter-fpp-file-name{
  font-size:.8125rem;
}

/* Calendar / kanban */
.gymspotter-cal-day-label,
.gymspotter-dash-cal-day-label{
  font-size:.7188rem;
}
.gymspotter-cal-event{
  font-size:.6875rem;
}
.gymspotter-kanban-card-name{
  font-size:.8125rem;
}
.gymspotter-kanban-card-id{
  font-size:.6875rem;
}
.gymspotter-kanban-card-tag{
  font-size:.6563rem;
}

/* Finance overview */
.gymspotter-finance-tile-grid{
  grid-template-columns:repeat(6,1fr);
}
@media(max-width:1280px){
  .gymspotter-finance-tile-grid{
    grid-template-columns:repeat(3,1fr);
  }
}
@media(max-width:700px){
  .gymspotter-finance-tile-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

/* QB Online external-link button beside Invoice / PO IDs */
.gymspotter-qb-ext-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  min-width:28px;
  border-radius:7px;
  border:1px solid rgba(44,160,28,.3);
  background:var(--gymspotter-qb-lt);
  color:var(--gymspotter-qb)!important;
  font-size:.75rem;
  margin-left:5px;
  vertical-align:middle;
  transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast),transform var(--gymspotter-t-fast);
}
.gymspotter-qb-ext-btn:hover{
  background:var(--gymspotter-qb);
  border-color:var(--gymspotter-qb);
  color:#fff!important;
  transform:translateY(-1px);
}
.gymspotter-qb-number-cell{
  position:relative;
  display:flex;
  align-items:center;
  gap:4px;
}
.gymspotter-qb-number-cell .gymspotter-sheet-cell{
  flex:1;
  min-width:0;
}

/* Mobile readability */
@media(max-width:640px){
  .gymspotter-app{
    font-size:.9375rem;
  }
  .gymspotter-main{
    padding:14px;
  }
  .gymspotter-sheet-cell{
    font-size:.8438rem;
    min-height:42px;
  }
  .gymspotter-table td{
    font-size:.8438rem;
  }
  .gymspotter-panel-head{
    font-size:.8438rem;
  }
  .gymspotter-btn,
  .gymspotter-hdr-btn{
    font-size:.8438rem;
  }
}

/* ════════════════════════════════════════════════
   SALES PIPELINE CSS
════════════════════════════════════════════════ */

/* KPI strip above pipeline board */
.gymspotter-pipeline-kpi-strip{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:14px;
  flex-shrink:0;
}
.gymspotter-pipeline-kpi-chip{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  padding:8px 14px;
  border-radius:var(--gymspotter-radius-sm);
  border:1px solid var(--gymspotter-border-lt);
  background:var(--gymspotter-surface);
  cursor:pointer;
  transition:border-color var(--gymspotter-t-fast),box-shadow var(--gymspotter-t-fast),transform var(--gymspotter-t-fast);
  box-shadow:var(--gymspotter-shadow-xs);
  min-width:90px;
  text-align:center;
}
.gymspotter-pipeline-kpi-chip:hover{
  transform:translateY(-1px);
  box-shadow:var(--gymspotter-shadow-md);
}
.gymspotter-pipeline-kpi-chip-val{
  font-size:1.25rem;
  font-weight:900;
  letter-spacing:-.5px;
  line-height:1.1;
}
.gymspotter-pipeline-kpi-chip-lbl{
  font-size:.625rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.4px;
  color:var(--gymspotter-muted);
  margin-top:3px;
  white-space:nowrap;
}
.gymspotter-pipeline-kpi-chip-sub{
  font-size:.5625rem;
  color:var(--gymspotter-muted-lt);
  margin-top:1px;
  white-space:nowrap;
}

/* Pipeline columns — wider than dispatch kanban to fit more card content */
.gymspotter-pipeline-col{
  flex-shrink:0;
  width:260px;
  background:var(--gymspotter-surface2);
  border:1px solid var(--gymspotter-border-lt);
  border-radius:var(--gymspotter-radius);
  display:flex;
  flex-direction:column;
  max-height:calc(100vh - 260px);
  overflow:hidden;
}
.gymspotter-pipeline-col-head{
  padding:10px 12px;
  border-bottom:1px solid var(--gymspotter-border-lt);
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:var(--gymspotter-surface);
  border-radius:var(--gymspotter-radius) var(--gymspotter-radius) 0 0;
  flex-shrink:0;
}
.gymspotter-pipeline-col-label{
  font-size:.6875rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.6px;
  color:var(--gymspotter-text);
  display:flex;
  align-items:center;
  gap:6px;
}
.gymspotter-pipeline-col-dot{
  width:8px;height:8px;border-radius:50%;flex-shrink:0;
}
.gymspotter-pipeline-col-count{
  font-size:.6875rem;font-weight:700;color:var(--gymspotter-muted);
  background:var(--gymspotter-surface2);border:1px solid var(--gymspotter-border-lt);
  border-radius:12px;padding:1px 7px;min-width:22px;text-align:center;
}
.gymspotter-pipeline-col-total{
  font-size:.625rem;font-weight:800;color:var(--gymspotter-green);
  font-family:monospace;
  padding:3px 8px;
  background:var(--gymspotter-green-lt);
  border:1px solid rgba(21,128,61,.2);
  border-radius:10px;
  white-space:nowrap;
}
.gymspotter-pipeline-col-body{
  padding:8px;
  overflow-y:auto;
  flex:1;
  min-height:60px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.gymspotter-pipeline-col-body.gymspotter-kanban-drag-over{
  background:var(--gymspotter-blue-dim);
  border-radius:0 0 var(--gymspotter-radius) var(--gymspotter-radius);
}
.gymspotter-pipeline-col-empty{
  text-align:center;padding:20px 8px;color:var(--gymspotter-muted);
  font-size:.6875rem;font-style:italic;
  border:1px dashed var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-xs);
}
.gymspotter-pipeline-more{flex-shrink:0;width:100%;justify-content:center;font-size:.6875rem}

/* Pipeline cards */
.gymspotter-pipeline-card{
  background:var(--gymspotter-surface);
  border:1px solid var(--gymspotter-border-lt);
  border-radius:var(--gymspotter-radius-sm);
  padding:10px 11px;
  cursor:pointer;
  transition:box-shadow var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast),transform var(--gymspotter-t-fast);
  box-shadow:var(--gymspotter-shadow-xs);
  position:relative;
  border-left:3px solid transparent;
}
.gymspotter-pipeline-card:hover{
  box-shadow:var(--gymspotter-shadow-md);
  border-color:var(--gymspotter-blue);
  transform:translateY(-1px);
}
.gymspotter-pipeline-card.gymspotter-pipeline-card--dragging{opacity:.45;transform:scale(.97)}

.gymspotter-pipeline-card-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:6px;
  margin-bottom:5px;
}
.gymspotter-pipeline-card-num{
  font-size:.6875rem;
  font-weight:700;
  font-family:monospace;
  color:var(--gymspotter-blue-dk);
  cursor:pointer;
}
.gymspotter-pipeline-card-amount{
  font-size:.8125rem;
  font-weight:900;
  color:var(--gymspotter-green);
  font-family:monospace;
  flex-shrink:0;
}
.gymspotter-pipeline-card-name{
  font-size:.75rem;
  font-weight:700;
  color:var(--gymspotter-text);
  margin-bottom:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.gymspotter-pipeline-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:5px;
}
.gymspotter-pipeline-card-tag{
  font-size:.5625rem;font-weight:700;
  padding:1px 6px;border-radius:10px;
  background:var(--gymspotter-surface2);border:1px solid var(--gymspotter-border-lt);
  color:var(--gymspotter-muted);white-space:nowrap;
}
.gymspotter-pipeline-card-actions{
  display:flex;gap:4px;margin-top:7px;padding-top:6px;
  border-top:1px solid var(--gymspotter-border-lt);
}

/* ════════════════════════════════════════════════
   INLINE FILE AREA → EXPLORE BUTTON UX UPGRADE
   Replace horizontal scrolling chip grids with
   a single clean "Explore Files" folder button
   that opens the left-side file browser panel.
════════════════════════════════════════════════ */

/* Hide the old chip container grid — replaced by the explore button */
.gymspotter-page-inline-files{
  display:none!important;
}

/* The explore button wrapper — replaces the chip row */
.gymspotter-explore-files-btn-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 14px;
  background:var(--gymspotter-surface2);
  border:1px solid var(--gymspotter-border-lt);
  border-radius:var(--gymspotter-radius-sm);
  flex-shrink:0;
}

/* Folder icon badge */
.gymspotter-explore-files-icon{
  width:34px;
  height:34px;
  min-width:34px;
  border-radius:8px;
  background:var(--gymspotter-amber-lt);
  border:1px solid rgba(180,83,9,.2);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.875rem;
  color:var(--gymspotter-amber);
  flex-shrink:0;
  transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast);
}

/* Main text stack */
.gymspotter-explore-files-text{
  flex:1;
  min-width:0;
}
.gymspotter-explore-files-title{
  font-size:.8125rem;
  font-weight:800;
  color:var(--gymspotter-text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.gymspotter-explore-files-hint{
  font-size:.6875rem;
  color:var(--gymspotter-muted);
  font-weight:500;
  margin-top:1px;
  white-space:nowrap;
}

/* CTA button */
.gymspotter-explore-files-cta{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 13px;
  border-radius:var(--gymspotter-radius-sm);
  border:1px solid var(--gymspotter-border);
  background:var(--gymspotter-surface);
  color:var(--gymspotter-text-sec);
  font-size:.75rem;
  font-weight:700;
  cursor:pointer;
  flex-shrink:0;
  transition:background var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast),
             color var(--gymspotter-t-fast),transform var(--gymspotter-t-fast),
             box-shadow var(--gymspotter-t-fast);
  white-space:nowrap;
}
.gymspotter-explore-files-cta:hover{
  background:var(--gymspotter-amber-lt);
  border-color:var(--gymspotter-amber);
  color:var(--gymspotter-amber);
  transform:translateY(-1px);
  box-shadow:var(--gymspotter-shadow-sm);
}
.gymspotter-explore-files-cta:hover~.gymspotter-explore-files-icon,
.gymspotter-explore-files-btn-wrap:hover .gymspotter-explore-files-icon{
  background:var(--gymspotter-amber);
  color:#fff;
  border-color:var(--gymspotter-amber);
}

/* When folder is not mounted — muted state */
.gymspotter-explore-files-btn-wrap--unmounted .gymspotter-explore-files-icon{
  background:var(--gymspotter-surface3);
  color:var(--gymspotter-muted);
  border-color:var(--gymspotter-border-lt);
}
.gymspotter-explore-files-btn-wrap--unmounted .gymspotter-explore-files-title{
  color:var(--gymspotter-muted);
}
.gymspotter-explore-files-btn-wrap--unmounted .gymspotter-explore-files-cta{
  background:var(--gymspotter-blue-dim);
  border-color:rgba(37,99,235,.3);
  color:var(--gymspotter-blue-dk);
}
.gymspotter-explore-files-btn-wrap--unmounted .gymspotter-explore-files-cta:hover{
  background:var(--gymspotter-blue);
  border-color:var(--gymspotter-blue);
  color:#fff;
}

/* Count badge on the folder icon */
.gymspotter-explore-files-count{
  position:absolute;
  top:-4px;
  right:-4px;
  min-width:16px;
  height:16px;
  border-radius:99px;
  background:var(--gymspotter-amber);
  color:#fff;
  font-size:.5625rem;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 4px;
  border:1.5px solid var(--gymspotter-surface);
  font-family:'Manrope','Inter',sans-serif;
}

/* Icon wrapper needs relative positioning for the badge */
.gymspotter-explore-files-icon-wrap{
  position:relative;
  flex-shrink:0;
}
/* ════════════════════════════════════════════════
   EXPLORE FOLDER BUTTON — replaces inline area
   Sits in the manila tab row, fully light/dark adaptive.
   Shows: folder icon · subfolder label · file count badge.
   Clicking opens the left-side file browser panel
   pre-scrolled to that subfolder section.
════════════════════════════════════════════════ */
.gymspotter-explore-folder-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 34px;
  border-radius: 6px;
  flex-shrink: 0;
  cursor: pointer;
  border: 1.5px solid var(--gymspotter-border);
  background: var(--gymspotter-surface2);
  color: var(--gymspotter-text-sec);
  font-size: .75rem;
  font-weight: 700;
  font-family: 'Manrope', 'Inter', sans-serif;
  transition:
    background var(--gymspotter-t-fast),
    border-color var(--gymspotter-t-fast),
    color var(--gymspotter-t-fast),
    box-shadow var(--gymspotter-t-fast);
  white-space: nowrap;
  position: relative;
}

.gymspotter-explore-folder-btn i {
  color: var(--gymspotter-amber);
  font-size: .8125rem;
  flex-shrink: 0;
}

.gymspotter-explore-folder-btn:hover {
  background: var(--gymspotter-amber-lt);
  border-color: var(--gymspotter-amber);
  color: var(--gymspotter-amber);
  box-shadow: 0 2px 8px rgba(180,83,9,.15);
}

.gymspotter-explore-folder-btn:hover i {
  color: var(--gymspotter-amber);
}

.gymspotter-explore-folder-btn:active {
  transform: translateY(1px);
}

/* File count badge */
.gymspotter-explore-folder-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  font-size: .625rem;
  font-weight: 800;
  background: var(--gymspotter-amber-lt);
  color: var(--gymspotter-amber);
  border: 1px solid rgba(180,83,9,.25);
  line-height: 1;
  transition: background var(--gymspotter-t-fast), color var(--gymspotter-t-fast);
}

.gymspotter-explore-folder-btn:hover .gymspotter-explore-folder-btn__count {
  background: var(--gymspotter-amber);
  color: #fff;
  border-color: var(--gymspotter-amber);
}

/* Unmounted state — muted appearance, still clickable to trigger mount */
.gymspotter-explore-folder-btn--unmounted {
  border-style: dashed;
  color: var(--gymspotter-muted);
  background: var(--gymspotter-surface);
}

.gymspotter-explore-folder-btn--unmounted i {
  color: var(--gymspotter-muted);
  opacity: .5;
}

.gymspotter-explore-folder-btn--unmounted .gymspotter-explore-folder-btn__count {
  background: var(--gymspotter-surface3);
  color: var(--gymspotter-muted);
  border-color: var(--gymspotter-border-lt);
}

.gymspotter-explore-folder-btn--unmounted:hover {
  background: var(--gymspotter-blue-dim);
  border-color: var(--gymspotter-blue);
  color: var(--gymspotter-blue-dk);
}

.gymspotter-explore-folder-btn--unmounted:hover i {
  color: var(--gymspotter-blue);
  opacity: 1;
}

/* Dark mode — tokens handle it automatically, just reinforce contrast */
.gymspotter-dark .gymspotter-explore-folder-btn {
  border-color: var(--gymspotter-border);
  background: var(--gymspotter-surface2);
  color: var(--gymspotter-text);
}

.gymspotter-dark .gymspotter-explore-folder-btn:hover {
  background: rgba(251,191,36,.12);
  border-color: #fbbf24;
  color: #fbbf24;
}

.gymspotter-dark .gymspotter-explore-folder-btn__count {
  background: rgba(251,191,36,.15);
  color: #fbbf24;
  border-color: rgba(251,191,36,.3);
}

/* ═══════════════════════════════════════════════════════════════════════
   WCAG 2.2 FOUNDATION
   Shared across every page: text scaling, focus, touch targets and reflow.
═══════════════════════════════════════════════════════════════════════ */
html{
  font-size:100%;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  max-width:100%;
  overflow:hidden;
}

body{
  margin:0;
  min-width:20rem;
  max-width:100%;
  overflow:hidden;
}

.gymspotter-app{
  font-size:.875rem;
}

/* Keep a visible fallback for browsers that do not support :focus-visible. */
:focus{
  outline:var(--gymspotter-focus-outline);
  outline-offset:.125rem;
}
:focus:not(:focus-visible){
  outline:none;
  box-shadow:none;
}
:focus-visible{
  outline:var(--gymspotter-focus-outline);
  outline-offset:.125rem;
}

/* Native controls must remain legible and must not trigger iOS input zoom. */
input,
select,
textarea,
button{
  font-size:1rem;
}

.gymspotter-table-wrap,
.gymspotter-sheet-wrap,
.gymspotter-csv-preview,
.gymspotter-record-detail-lineitems{
  max-width:100%;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
}

img,
canvas,
iframe{
  max-width:100%;
}

@media (pointer:coarse){
  .gymspotter-btn,
  .gymspotter-btn--sm,
  .gymspotter-btn--icon-sm,
  .gymspotter-csv-tab,
  .gymspotter-view-toggle-btn,
  .gymspotter-drawer-tab,
  .gymspotter-modal-close,
  .gymspotter-product-search-icon,
  .gymspotter-sb-fp-btn,
  .gymspotter-sb-tree-file-btn,
  .gymspotter-sheet-file-add,
  .gymspotter-explore-folder-btn{
    min-width:2.75rem;
    min-height:2.75rem;
  }
}

@media (max-width:40rem){
  :root{
    --gymspotter-hdr-h:3.75rem;
    --gymspotter-tips-h:auto;
    --gymspotter-ftr-h:auto;
  }

  body,
  .gymspotter-app{
    padding-left:0!important;
    min-height:100dvh;
  }

  .gymspotter-header{
    min-width:0;
    min-height:var(--gymspotter-hdr-h);
    height:var(--gymspotter-hdr-h);
    padding:0 .75rem;
    flex-wrap:nowrap;
  }

  .gymspotter-header-row{
    padding:0;
  }

  .gymspotter-header-row--main{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:.5rem;
    height:var(--gymspotter-hdr-h);
    min-height:var(--gymspotter-hdr-h);
    border-bottom:0;
  }

  .gymspotter-mobile-brand{
    display:flex;
    align-items:center;
    gap:.375rem;
  }

  .gymspotter-mobile-header-logo{
    display:block;
    width:2rem;
    height:2rem;
    object-fit:contain;
    border-radius:.25rem;
  }

  .gymspotter-header-title{
    grid-column:2;
    grid-row:1;
    min-width:0;
    max-width:none;
    overflow:hidden;
    text-overflow:ellipsis;
    text-align:center;
  }

  .gymspotter-header-actions{
    grid-column:3;
    grid-row:1;
    margin-left:auto;
    max-width:100%;
  }

  .gymspotter-hamburger,
  .gymspotter-hdr-btn--icon{
    flex:0 0 var(--gymspotter-min-target);
  }

  .gymspotter-main{
    padding:.75rem;
    overflow-x:hidden;
  }

  .gymspotter-sidebar{
    top:var(--gymspotter-hdr-h);
    bottom:0;
    width:100%;
    height:calc(100dvh - var(--gymspotter-hdr-h));
    z-index:149;
  }

  .gymspotter-sidebar .gymspotter-sb-logo{
    display:none;
  }

  .gymspotter-overlay,
  .gymspotter-drawer-overlay{
    display:none!important;
  }

  .gymspotter-drawer,
  .gymspotter-notif-panel{
    top:var(--gymspotter-hdr-h);
    right:0;
    bottom:0;
    width:100%;
    max-width:none;
    height:calc(100dvh - var(--gymspotter-hdr-h));
    max-height:none;
    border:0;
    border-radius:0;
    box-shadow:none;
    z-index:149;
  }

  .gymspotter-notif-panel{
    display:flex;
    flex-direction:column;
    transform:translateX(100%);
    visibility:hidden;
    pointer-events:none;
    transition:transform var(--gymspotter-t-base),visibility 0s linear var(--gymspotter-t-base);
    animation:none;
  }

  .gymspotter-notif-panel.gymspotter-open{
    transform:translateX(0);
    visibility:visible;
    pointer-events:auto;
    transition-delay:0s;
  }

  .gymspotter-notif-panel-body{
    flex:1;
    max-height:none;
  }

  .gymspotter-panel-head,
  .gymspotter-filter-bar,
  .gymspotter-page-head,
  .gymspotter-modal-actions{
    flex-wrap:wrap;
  }

  .gymspotter-modal-overlay,
  .gymspotter-welcome-overlay{
    padding:.75rem;
  }

  .gymspotter-modal{
    width:100%;
    max-width:100%;
    max-height:calc(100dvh - 1.5rem);
    padding:1.25rem;
    overflow-y:auto;
  }

  .gymspotter-toast{
    max-width:calc(100vw - 1.5rem);
  }

  .gymspotter-footer{
    height:auto;
    min-height:2.75rem;
    padding:.5rem .75rem;
    margin-top:auto;
  }

  .gymspotter-tipsbar-text{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }

  .gymspotter-tipsbar{
    display:grid;
    grid-template-columns:1.75rem minmax(0,1fr);
    align-items:start;
    height:auto;
    min-height:var(--gymspotter-tips-h);
    padding:.625rem .75rem;
  }

  .gymspotter-tipsbar-icon{grid-column:1;grid-row:1}
  .gymspotter-tipsbar-text{grid-column:2;grid-row:1}
  .gymspotter-tipsbar-nav{grid-column:2;grid-row:2;margin-top:.5rem;justify-content:flex-end}
}

@media (max-width:30rem){
  #gymspotterSbCollapseToggle{
    display:none;
  }

  .gymspotter-hdr-integrations,
  .gymspotter-header-sep,
  .gymspotter-header-spacer,
  .gymspotter-autosave-dot,
  .gymspotter-hdr-sos-btn,
  .gymspotter-header-actions [aria-label="Keyboard shortcuts"]{
    display:none;
  }

  .gymspotter-header-row--main{
    width:100%;
    min-width:0;
  }

  .gymspotter-header-title{
    max-width:none;
    font-size:1rem;
  }

  .gymspotter-header-actions{
    flex:0 0 auto;
  }

  .gymspotter-header-actions .gymspotter-hdr-btn:not(.gymspotter-hdr-btn--icon){
    width:var(--gymspotter-min-target);
    padding:0;
  }

  .gymspotter-header-actions .gymspotter-hdr-btn:not(.gymspotter-hdr-btn--icon) span{
    display:none;
  }

  .gymspotter-tile-grid{
    grid-template-columns:1fr;
  }

  .gymspotter-btn:not(.gymspotter-btn--icon):not(.gymspotter-btn--icon-sm){
    white-space:normal;
  }
}

@media (forced-colors:active){
  :focus,
  :focus-visible{
    outline:2px solid CanvasText;
    box-shadow:none;
  }

  .gymspotter-badge,
  .gymspotter-btn,
  .gymspotter-input,
  .gymspotter-select,
  .gymspotter-textarea{
    border:1px solid CanvasText;
  }
}


/* WCAG 2.2 access improvements shared by every module. */
.gymspotter-skip-link{position:fixed;left:1rem;top:-8rem;z-index:1000001;padding:.8rem 1rem;border-radius:.5rem;background:#fff;color:#0b1120!important;font:700 1rem 'Manrope','Inter',system-ui,sans-serif;box-shadow:0 0 0 3px #2563eb}
.gymspotter-skip-link:focus{top:1rem}
.gymspotter-app :focus-visible,body > [role="dialog"] :focus-visible{outline:3px solid var(--gymspotter-blue,#2563eb)!important;outline-offset:3px!important;box-shadow:0 0 0 2px var(--gymspotter-surface,#fff)!important}
.gymspotter-app [hidden]{display:none!important}
/* Target size floor (WCAG 2.5.8, 24px). Zero specificity on purpose: it only fills in where a control has no
   size of its own, so the designed sizes (46px nav items, 44px header buttons, 36px buttons) are not shrunk. */
:where(.gymspotter-app) :where(button,[role="button"]),:where(body > .gymspotter-modal-overlay,body > .gymspotter-kanban-panel) :where(button){min-height:24px;min-width:24px}
.gymspotter-sb-tree-file-btn,.gymspotter-product-search-icon{min-width:24px;min-height:24px}
.gymspotter-app input[type="checkbox"],.gymspotter-app input[type="radio"]{min-width:20px;min-height:20px;accent-color:var(--gymspotter-blue)}
.gymspotter-app .gymspotter-main a:not(.gymspotter-btn),.gymspotter-app [role="dialog"] a:not(.gymspotter-btn){text-decoration:underline;text-underline-offset:3px}
.gymspotter-module-notice{padding:.75rem 1rem;margin:0 0 1rem;border:1px solid var(--gymspotter-border);border-left:4px solid var(--gymspotter-blue);border-radius:.5rem;background:var(--gymspotter-surface2);color:var(--gymspotter-text-sec);font-size:.8125rem;line-height:1.6}
.gymspotter-module-notice strong{color:var(--gymspotter-text)}
.gymspotter-app .gymspotter-drawer-tabs{overflow-x:auto;overscroll-behavior:contain;scroll-padding:1rem}
.gymspotter-app .gymspotter-drawer-tab{flex:0 0 auto}
.gymspotter-app .gymspotter-sheet-wrap,.gymspotter-app .gymspotter-table-wrap{max-width:100%;overflow:auto}
.gymspotter-app .gymspotter-label,.gymspotter-app .gymspotter-muted,.gymspotter-app .gymspotter-tile-label{opacity:1}
.gymspotter-app .gymspotter-input::placeholder,.gymspotter-app .gymspotter-textarea::placeholder{opacity:1;color:var(--gymspotter-muted)}
.gymspotter-app .gymspotter-sb-label{color:#93c5fd} /* original light-blue section labels; about 9:1 on the sidebar gradient */
@media(max-width:64rem){.gymspotter-page > div[style*="display:grid"],.gymspotter-page > div[style*="display: grid"]{grid-template-columns:minmax(0,1fr)!important}.gymspotter-page [style*="grid-template-columns:repeat(6"],.gymspotter-page [style*="grid-template-columns:repeat(5"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:48rem){.gymspotter-app button,.gymspotter-app [role="button"],body > .gymspotter-modal-overlay button,body > .gymspotter-kanban-panel button{min-height:44px!important;min-width:44px!important}.gymspotter-app .gymspotter-form-row,.gymspotter-app .gymspotter-form-row--3{grid-template-columns:minmax(0,1fr)!important}.gymspotter-app .gymspotter-modal{max-width:calc(100vw - 1.5rem)}.gymspotter-app .gymspotter-drawer-tabs{flex-wrap:nowrap}.gymspotter-app .gymspotter-main{scroll-padding-top:1rem}.gymspotter-module-notice{font-size:.875rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.gymspotter-app :focus-visible{outline:3px solid Highlight!important}.gymspotter-module-notice{border:1px solid CanvasText}.gymspotter-skip-link{background:Canvas;color:CanvasText}}

/* Dark-theme action text stays readable on the lighter accent colors. */
.gymspotter-dark{--gymspotter-muted-lt:#94a3b8;--gymspotter-blue-dk:#93c5fd;--gymspotter-blue-lt:rgba(96,165,250,.14);--gymspotter-teal:#5eead4;--gymspotter-gh:#a5b4fc;--gymspotter-qb:#86efac}
.gymspotter-dark .gymspotter-btn--primary,.gymspotter-dark .gymspotter-btn--danger,.gymspotter-dark .gymspotter-btn--amber,.gymspotter-dark .gymspotter-btn--green,.gymspotter-dark .gymspotter-btn--purple{color:#0b1120}
.gymspotter-dark .gymspotter-btn--primary:hover{background:#93c5fd;border-color:#93c5fd;color:#0b1120}
.gymspotter-dark .gymspotter-btn--danger:hover{background:#991b1b;border-color:#991b1b;color:#fff}
.gymspotter-dark .gymspotter-btn--amber:hover{background:#fbbf24;border-color:#fbbf24;color:#0b1120}
.gymspotter-dark .gymspotter-btn--green:hover{background:#4ade80;border-color:#4ade80;color:#0b1120}
.gymspotter-dark .gymspotter-btn--purple:hover{background:#c4b5fd;border-color:#c4b5fd;color:#0b1120}
.gymspotter-app .gymspotter-sb-footer{color:#cbd5e1}
.gymspotter-preview-panel-head{height:auto;min-height:56px;padding-top:8px;padding-bottom:8px;flex-wrap:wrap}
.gymspotter-preview-panel-actions{flex-wrap:wrap;justify-content:flex-end}
.gymspotter-preview-panel-pdf{min-height:300px}
.gymspotter-preview-meta-flyout-foot{flex-wrap:wrap}
@media(max-width:600px){
  .gymspotter-preview-panel,.gymspotter-preview-meta-flyout{width:100vw}
  .gymspotter-preview-panel-title{flex-basis:100%}
  .gymspotter-preview-panel-actions{width:100%;justify-content:flex-start}
  .gymspotter-preview-meta-flyout-head{height:auto;min-height:56px;padding:8px 14px}
}

.gymspotter-preview-panel-footer{flex-wrap:wrap}
.gymspotter-app a.gymspotter-btn--primary{color:#fff}
.gymspotter-dark a.gymspotter-btn--primary{color:#0b1120}
.gymspotter-page,.gymspotter-main-grid,.gymspotter-main-grid > *{min-width:0}
@media(max-width:640px){
  .gymspotter-main-grid{grid-template-columns:minmax(0,1fr)}
  body[data-gymspotter-page="docs"] .gymspotter-page > div{width:100%;min-width:0}
  body[data-gymspotter-page="docs"] .gymspotter-page [style*="display:grid"],body[data-gymspotter-page="docs"] .gymspotter-page [style*="display: grid"]{grid-template-columns:minmax(0,1fr)!important}
  body[data-gymspotter-page="docs"] .gymspotter-page pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
  body[data-gymspotter-page="docs"] .gymspotter-page code{overflow-wrap:anywhere}
}

/* Chart text alternative (WCAG 1.1.1): compact "View chart data" disclosure added under every chart by shared/offline-runtime.js. */
.gymspotter-chart-data{margin:6px 8px 0;font-size:.75rem;color:var(--gymspotter-text-sec)}
.gymspotter-chart-data summary{display:inline-flex;align-items:center;gap:6px;min-height:24px;cursor:pointer;font-family:'Manrope','Inter',sans-serif;font-weight:700;color:var(--gymspotter-blue);border-radius:4px}
.gymspotter-chart-data summary::-webkit-details-marker{display:none}
.gymspotter-chart-data summary::before{content:"\f0da";font:900 .75rem/1 "Font Awesome 6 Free";width:.6rem;transition:transform .15s ease}
.gymspotter-chart-data[open] summary::before{transform:rotate(90deg)}
.gymspotter-dark .gymspotter-chart-data summary{color:#93c5fd}
.gymspotter-chart-data table{width:100%;border-collapse:collapse;margin-top:6px;font-variant-numeric:tabular-nums}
.gymspotter-chart-data caption{text-align:left;font-weight:700;padding:2px 0 6px;color:var(--gymspotter-text)}
.gymspotter-chart-data th,.gymspotter-chart-data td{padding:5px 8px;border-bottom:1px solid var(--gymspotter-border-lt);text-align:right}
.gymspotter-chart-data thead th{font-weight:700;color:var(--gymspotter-text);background:var(--gymspotter-surface2)}
.gymspotter-chart-data th[scope="row"],.gymspotter-chart-data thead th:first-child{text-align:left;font-weight:600}

/* Folder watch notice (new or changed files in the business folder) */
.gymspotter-folder-changed{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:9000;display:flex;align-items:center;gap:10px;flex-wrap:wrap;max-width:calc(100vw - 32px);padding:10px 14px;background:var(--gymspotter-surface);color:var(--gymspotter-text);border:1px solid var(--gymspotter-border);border-left:4px solid var(--gymspotter-blue);border-radius:var(--gymspotter-radius-sm,8px);box-shadow:0 8px 24px rgba(15,23,42,.18);font-size:.8125rem}
.gymspotter-folder-changed>i{color:var(--gymspotter-blue)}

/* Keyboard focus scrolls a cell clear of the sticky header row and the sticky actions column (WCAG 2.4.11) */
.gymspotter-sheet-wrap,.gymspotter-table-wrap{scroll-padding-block-start:48px;scroll-padding-inline-end:150px}

/* File chips show the whole file name to screen readers and cut it visually with an ellipsis (WCAG 2.5.3) */
.gymspotter-sheet-file-name{display:inline-block;max-width:14ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}

/* ═══════════════════════════════════════════════════════════════════════════
   INTEGRATIONS HUB (shared/integrations-hub.js)
   One top-bar split button (the button opens integrations.html, the arrow opens
   the status dropdown), the dropdown, and Settings → Integrations.
═══════════════════════════════════════════════════════════════════════════ */
.gymspotter-int-split{position:relative;display:inline-flex;align-items:stretch;min-height:var(--gymspotter-min-target);border:1px solid var(--gymspotter-border);border-radius:var(--gymspotter-radius-sm);background:var(--gymspotter-bg-alt);box-shadow:var(--gymspotter-shadow-xs)}
.gymspotter-int-split-main{display:inline-flex;align-items:center;gap:8px;min-width:0;padding:0 12px;border-radius:var(--gymspotter-radius-sm) 0 0 var(--gymspotter-radius-sm);color:var(--gymspotter-text-sec);text-decoration:none;transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast)}
.gymspotter-int-split-main:hover{background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk)}
.gymspotter-int-split-icon{font-size:.9375rem;color:var(--gymspotter-muted)}
.gymspotter-int-split[data-state="ok"] .gymspotter-int-split-icon{color:var(--gymspotter-green)}
.gymspotter-int-split[data-state="warn"] .gymspotter-int-split-icon{color:var(--gymspotter-amber)}
.gymspotter-int-split-text{display:flex;flex-direction:column;line-height:1.15;text-align:left}
.gymspotter-int-split-label{font-size:.8125rem;font-weight:800;color:var(--gymspotter-text)}
.gymspotter-int-split-status{font-size:.6875rem;font-weight:600;color:var(--gymspotter-muted);white-space:nowrap}
.gymspotter-int-split-caret{display:inline-flex;align-items:center;justify-content:center;width:38px;min-width:38px;border:none;border-left:1px solid var(--gymspotter-border);border-radius:0 var(--gymspotter-radius-sm) var(--gymspotter-radius-sm) 0;background:transparent;color:var(--gymspotter-text-sec);cursor:pointer;transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast)}
.gymspotter-int-split-caret:hover,.gymspotter-int-split.gymspotter-open .gymspotter-int-split-caret{background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk)}
.gymspotter-int-split-caret i{font-size:.75rem;transition:transform var(--gymspotter-t-fast)}
.gymspotter-int-split.gymspotter-open .gymspotter-int-split-caret i{transform:rotate(180deg)}
.gymspotter-int-split-main:focus-visible,.gymspotter-int-split-caret:focus-visible{outline:var(--gymspotter-focus-outline);outline-offset:2px;box-shadow:var(--gymspotter-focus-ring);position:relative;z-index:1}
.gymspotter-dark .gymspotter-int-split-main:hover,.gymspotter-dark .gymspotter-int-split-caret:hover,.gymspotter-dark .gymspotter-int-split.gymspotter-open .gymspotter-int-split-caret{color:#93c5fd}
.gymspotter-int-legacy[hidden]{display:none!important}
.gymspotter-int-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:400;width:min(380px,92vw);max-height:min(560px,calc(100vh - 90px));overflow:auto;padding:6px;background:var(--gymspotter-surface);border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius);box-shadow:var(--gymspotter-shadow-lg);text-align:left}
.gymspotter-int-menu[hidden]{display:none}
.gymspotter-int-menu-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:8px 10px 8px;margin-bottom:4px;border-bottom:1px solid var(--gymspotter-border-lt)}
.gymspotter-int-menu-head strong{font-size:.875rem;color:var(--gymspotter-text)}
.gymspotter-int-menu-head span{font-size:.75rem;font-weight:600;color:var(--gymspotter-muted)}
.gymspotter-int-list{list-style:none;display:flex;flex-direction:column;gap:2px;margin:0;padding:0}
.gymspotter-int-row-link{display:flex;align-items:center;gap:10px;min-height:42px;padding:6px 10px;border-radius:var(--gymspotter-radius-xs);color:var(--gymspotter-text);text-decoration:none}
.gymspotter-int-row-link:hover,.gymspotter-int-row-link:focus-visible{background:var(--gymspotter-blue-dim)}
.gymspotter-int-row-link:focus-visible{outline:var(--gymspotter-focus-outline);outline-offset:-2px}
.gymspotter-int-row-ic{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;border-radius:7px;background:var(--gymspotter-surface2);border:1px solid var(--gymspotter-border-lt);font-size:.8125rem}
.gymspotter-int-row-name{display:flex;flex-direction:column;flex:1;min-width:0;font-size:.8125rem;font-weight:600;line-height:1.3}
.gymspotter-int-row-name small{overflow:hidden;font-size:.6875rem;font-weight:500;color:var(--gymspotter-muted);white-space:nowrap;text-overflow:ellipsis}
.gymspotter-int-row-st{display:inline-flex;align-items:center;gap:6px;font-size:.6875rem;font-weight:700;color:var(--gymspotter-muted);white-space:nowrap}
.gymspotter-int-row-st[data-state="connected"]{color:var(--gymspotter-green)}
.gymspotter-int-row-st[data-state="files"]{color:var(--gymspotter-amber)}
.gymspotter-int-row-st[data-state="off"]{color:var(--gymspotter-red)}
.gymspotter-int-dot{flex-shrink:0;width:8px;height:8px;border-radius:50%;background:var(--gymspotter-border)}
.gymspotter-int-dot.ok{background:var(--gymspotter-green)}
.gymspotter-int-dot.warn{background:var(--gymspotter-amber)}
.gymspotter-int-dot.bad{background:var(--gymspotter-red)}
.gymspotter-int-menu-foot{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;padding:8px 4px 2px;border-top:1px solid var(--gymspotter-border-lt)}
.gymspotter-int-menu-foot .gymspotter-btn{flex:1 1 auto}
.gymspotter-int-warn{padding:8px 10px;font-size:.75rem;line-height:1.5;color:var(--gymspotter-amber)}
/* Settings → Integrations */
.gymspotter-int-status-list{margin-bottom:12px;padding:4px;border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-sm);background:var(--gymspotter-surface)}
.gymspotter-int-details{margin-bottom:8px;border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-sm);background:var(--gymspotter-surface)}
.gymspotter-int-details[hidden]{display:none}
.gymspotter-int-details>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;font-size:.8125rem;font-weight:700;color:var(--gymspotter-text);cursor:pointer;list-style:none}
.gymspotter-int-details>summary::-webkit-details-marker{display:none}
.gymspotter-int-details>summary::after{content:'';width:7px;height:7px;margin:0 2px 3px 4px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform var(--gymspotter-t-fast)}
.gymspotter-int-details[open]>summary::after{transform:rotate(-135deg);margin-bottom:-2px}
.gymspotter-int-details>summary:focus-visible{outline:var(--gymspotter-focus-outline);outline-offset:-2px}
.gymspotter-int-details-st{margin-left:auto;font-size:.6875rem;font-weight:700;color:var(--gymspotter-muted)}
.gymspotter-int-details-st[data-state="connected"]{color:var(--gymspotter-green)}
.gymspotter-int-details-body{padding:4px 12px 12px;border-top:1px solid var(--gymspotter-border-lt)}
.gymspotter-int-onpage{padding:8px 2px;font-size:.75rem;line-height:1.5;color:var(--gymspotter-muted)}
.gymspotter-int-onpage[hidden]{display:none}
@media (max-width:80rem){.gymspotter-int-split-status{display:none}}
@media (max-width:64rem){.gymspotter-int-split-text{display:none}.gymspotter-int-split-main{justify-content:center;width:var(--gymspotter-min-target);padding:0}}
@media (prefers-reduced-motion:reduce){.gymspotter-int-split-caret i,.gymspotter-int-details>summary::after{transition:none}}
@media (forced-colors:active){.gymspotter-int-split{border-color:ButtonText}.gymspotter-int-dot{forced-color-adjust:none}}
/* GymSpotter Tools (header): apps made for the fitness equipment industry. The menu reuses the Integrations menu rows. */
.gymspotter-tools{position:relative;display:inline-flex;margin-right:8px}
.gymspotter-tools-btn{display:inline-flex;align-items:center;gap:8px;min-height:var(--gymspotter-min-target);padding:0 12px;border:1px solid var(--gymspotter-border);border-radius:var(--gymspotter-radius-sm);background:var(--gymspotter-bg-alt);box-shadow:var(--gymspotter-shadow-xs);color:var(--gymspotter-text);font:inherit;font-size:.8125rem;font-weight:800;white-space:nowrap;cursor:pointer;transition:background var(--gymspotter-t-fast),color var(--gymspotter-t-fast)}
.gymspotter-tools-btn:hover,.gymspotter-tools.gymspotter-open .gymspotter-tools-btn{background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk)}
.gymspotter-tools-icon{font-size:.9375rem;color:var(--gymspotter-blue)}
.gymspotter-tools-caret{font-size:.6875rem;color:var(--gymspotter-text-sec);transition:transform var(--gymspotter-t-fast)}
.gymspotter-tools.gymspotter-open .gymspotter-tools-caret{transform:rotate(180deg)}
.gymspotter-tools--current .gymspotter-tools-btn{border-color:var(--gymspotter-blue)}
.gymspotter-tools-btn:focus-visible{outline:var(--gymspotter-focus-outline);outline-offset:2px;box-shadow:var(--gymspotter-focus-ring)}
.gymspotter-tools-menu{width:min(360px,92vw)}
.gymspotter-tools-menu .gymspotter-int-menu-head{flex-direction:column;align-items:flex-start;gap:2px}
.gymspotter-tools-menu .gymspotter-int-row-name small{white-space:normal;line-height:1.4}
.gymspotter-int-row-link[aria-current="page"]{background:var(--gymspotter-blue-dim)}
.gymspotter-dark .gymspotter-tools-btn:hover,.gymspotter-dark .gymspotter-tools.gymspotter-open .gymspotter-tools-btn{color:#93c5fd}
@media (max-width:64rem){.gymspotter-tools-label,.gymspotter-tools-caret{display:none}.gymspotter-tools-btn{justify-content:center;width:var(--gymspotter-min-target);padding:0}}
/* phone header (three-column grid): the tools are in the sidebar's GymSpotter Tools section instead */
@media (max-width:40rem){.gymspotter-tools{display:none}}
@media (prefers-reduced-motion:reduce){.gymspotter-tools-caret{transition:none}}
@media (forced-colors:active){.gymspotter-tools-btn{border-color:ButtonText}}
/* ── Integrations panel (integrations.html / integrations.js) ── */
.gymspotter-int-sub{margin-top:4px;max-width:760px;font-size:.8125rem;line-height:1.6;color:var(--gymspotter-muted)}
.gymspotter-int-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gymspotter-int-toolbar .gymspotter-select{width:auto;min-width:180px;margin-bottom:0}
.gymspotter-int-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
.gymspotter-int-tiles .gymspotter-tile{display:block;text-decoration:none;color:inherit}
.gymspotter-app .gymspotter-main .gymspotter-int-tiles a.gymspotter-tile,.gymspotter-app .gymspotter-main .gymspotter-int-jump a{text-decoration:none}
.gymspotter-int-tile-sub{margin-top:2px;font-size:.75rem;color:var(--gymspotter-muted)}
.gymspotter-int-jump{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px}
.gymspotter-int-jump a{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 12px;border:1px solid var(--gymspotter-border);border-radius:20px;background:var(--gymspotter-surface);color:var(--gymspotter-text-sec);font-size:.8125rem;font-weight:600;text-decoration:none}
.gymspotter-int-jump a:hover{border-color:var(--gymspotter-blue);background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue-dk)}
.gymspotter-dark .gymspotter-int-jump a:hover{color:#93c5fd}
.gymspotter-int-group{margin-bottom:22px;scroll-margin-top:16px}
.gymspotter-int-h{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:.75rem;font-weight:800;letter-spacing:.8px;text-transform:uppercase;color:var(--gymspotter-muted)}
.gymspotter-int-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,430px),1fr));gap:14px;align-items:start}
.gymspotter-int-card{margin-bottom:0;scroll-margin-top:16px;transition:box-shadow var(--gymspotter-t-base),border-color var(--gymspotter-t-base)}
.gymspotter-int-card:focus{outline:none}
.gymspotter-int-card:focus-visible{outline:var(--gymspotter-focus-outline);outline-offset:2px}
.gymspotter-int-flash{border-color:var(--gymspotter-blue);box-shadow:0 0 0 3px var(--gymspotter-blue-glow)}
.gymspotter-int-card-title{display:flex;align-items:center;gap:10px;margin:0;font-size:.9375rem;font-weight:800;color:var(--gymspotter-text)}
.gymspotter-int-card .gymspotter-panel-body{display:block}
.gymspotter-int-badge{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:20px;border:1px solid var(--gymspotter-border-lt);background:var(--gymspotter-surface);font-size:.6875rem;font-weight:700;color:var(--gymspotter-muted);white-space:nowrap}
.gymspotter-int-badge[data-state="connected"]{color:var(--gymspotter-green);background:var(--gymspotter-green-lt);border-color:transparent}
.gymspotter-int-badge[data-state="files"]{color:var(--gymspotter-amber);background:var(--gymspotter-amber-lt);border-color:transparent}
.gymspotter-int-badge[data-state="off"]{color:var(--gymspotter-red);background:var(--gymspotter-red-lt);border-color:transparent}
.gymspotter-int-blurb{margin:0 0 10px;font-size:.8125rem;line-height:1.6;color:var(--gymspotter-text-sec)}
.gymspotter-int-used{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:10px}
.gymspotter-int-used-l{font-size:.6875rem;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--gymspotter-muted)}
.gymspotter-int-chip{padding:2px 8px;border-radius:20px;background:var(--gymspotter-surface2);border:1px solid var(--gymspotter-border-lt);font-size:.6875rem;font-weight:600;color:var(--gymspotter-text-sec)}
.gymspotter-int-meta{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:8px;font-size:.75rem;color:var(--gymspotter-muted)}
.gymspotter-int-needs{margin:0 0 10px;padding:8px 10px;border-radius:var(--gymspotter-radius-xs);background:var(--gymspotter-amber-lt);font-size:.75rem;line-height:1.5;color:var(--gymspotter-text-sec)}
.gymspotter-int-needs i{color:var(--gymspotter-amber);margin-right:4px}
.gymspotter-int-subhead{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:14px 0 8px;padding-top:12px;border-top:1px solid var(--gymspotter-border-lt);font-size:.75rem;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--gymspotter-text)}
.gymspotter-int-subhead small{font-size:.6875rem;font-weight:600;letter-spacing:0;text-transform:none;color:var(--gymspotter-muted)}
.gymspotter-int-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:10px}
.gymspotter-int-field{display:flex;flex-direction:column;min-width:0}
.gymspotter-int-field .gymspotter-label{margin-bottom:4px}
.gymspotter-int-field .gymspotter-input,.gymspotter-int-field .gymspotter-select{width:100%;margin-bottom:0}
.gymspotter-int-field textarea.gymspotter-input{min-height:56px;resize:vertical;font-family:ui-monospace,Consolas,monospace}
.gymspotter-int-field small{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:.6875rem;line-height:1.45;color:var(--gymspotter-muted)}
.gymspotter-int-input-row{display:flex;gap:6px;align-items:stretch}
.gymspotter-int-input-row .gymspotter-input{flex:1;min-width:0}
.gymspotter-int-scope{margin-bottom:10px;max-width:320px}
.gymspotter-int-scopes{display:flex;flex-wrap:wrap;gap:6px 14px;margin:12px 0 0;padding:10px 12px;border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-xs)}
.gymspotter-int-scopes legend{padding:0 4px}
.gymspotter-int-scopes label{display:inline-flex;align-items:center;gap:6px;min-height:28px;font-size:.8125rem;font-weight:600;cursor:pointer}
.gymspotter-int-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.gymspotter-int-result{margin-top:10px;font-size:.8125rem;line-height:1.5}
.gymspotter-int-result:empty{display:none}
.gymspotter-int-log,.gymspotter-int-guide{max-height:50vh;margin-top:8px;padding:12px;overflow:auto;border-radius:8px;background:#0f172a;color:#e2e8f0;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;word-break:break-word}
.gymspotter-int-legacy-slot .gymspotter-int-details-body{padding:0;border:0}
.gymspotter-int-legacy-slot .gymspotter-section-title:first-child{margin-top:4px}
.gymspotter-int-empty{padding:10px 0;font-size:.8125rem}
.gymspotter-int-warnbox{display:flex;align-items:flex-start;gap:10px;margin-bottom:16px}
.gymspotter-int-warnbox>div{flex:1;line-height:1.6}
.gymspotter-int-mcp-table td,.gymspotter-int-mcp-table th{vertical-align:top}
.gymspotter-int-mcp-table input[type="checkbox"]{width:20px;height:20px;margin-top:2px;accent-color:var(--gymspotter-blue)}
.gymspotter-int-sub2{display:block;margin-top:2px;font-size:.6875rem;font-weight:500;color:var(--gymspotter-muted)}
.gymspotter-int-wrap{white-space:normal;min-width:200px;max-width:360px;line-height:1.5}
.gymspotter-int-need{display:inline-flex;align-items:center;gap:5px;margin:0 8px 4px 0;font-size:.75rem;font-weight:600;color:var(--gymspotter-text-sec)}
.gymspotter-int-need[data-ok="true"] i{color:var(--gymspotter-green)}
.gymspotter-int-need[data-ok="false"] i{color:var(--gymspotter-red)}
.gymspotter-int-note{margin-top:10px;font-size:.75rem;line-height:1.6;color:var(--gymspotter-muted)}
.gymspotter-app ol.gymspotter-int-steps{margin:8px 0 0 18px;font-size:.8125rem;line-height:1.8;color:var(--gymspotter-text-sec);list-style:decimal}
.gymspotter-int-steps code,.gymspotter-int-note code{font-size:.75rem}
@media (max-width:64rem){.gymspotter-int-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* ── Reports data on the channel pages (shared/reports-bridge.js) ── */
.gymspotter-rb .gymspotter-panel-head{flex-wrap:wrap}
.gymspotter-rb-actions{display:flex;flex-wrap:wrap;gap:6px}
.gymspotter-rb .gymspotter-panel-body{display:block}
.gymspotter-rb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.gymspotter-rb-cell{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-sm);background:var(--gymspotter-surface2)}
.gymspotter-rb-l{font-size:.6875rem;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--gymspotter-muted)}
.gymspotter-rb-v{font-family:'Manrope','Inter',sans-serif;font-size:1.25rem;font-weight:900;letter-spacing:-.5px;color:var(--gymspotter-text)}
.gymspotter-rb-delta{font-size:.75rem;font-weight:700;color:var(--gymspotter-muted)}
.gymspotter-rb-delta[data-dir="up"]{color:var(--gymspotter-green)}
.gymspotter-rb-delta[data-dir="down"]{color:var(--gymspotter-red)}
.gymspotter-rb-note{margin-top:10px;font-size:.75rem;color:var(--gymspotter-muted)}
/* ═══════════════════════════════════════════════════════════════════════════
   GET THE APPS — desktop and phone (shared/app-install.js, markup in the pwaHelp shell fragment)
═══════════════════════════════════════════════════════════════════════════ */
.gymspotter-apps-modal{max-width:880px}
.gymspotter-apps-lede{margin:0 0 14px;font-size:.875rem;line-height:1.6;color:var(--gymspotter-text-sec)}
.gymspotter-apps-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:6px}
.gymspotter-apps-card{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius);background:var(--gymspotter-surface2);min-width:0}
.gymspotter-apps-card-head{display:flex;align-items:center;gap:12px}
.gymspotter-apps-card-head h4{margin:0;font-size:1rem;font-weight:800;color:var(--gymspotter-text)}
.gymspotter-apps-card-head small{display:block;font-size:.75rem;color:var(--gymspotter-muted)}
.gymspotter-apps-ic{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:10px;background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue);font-size:1.125rem;border:1px solid rgba(37,99,235,.2)}
.gymspotter-apps-state:empty{display:none}
.gymspotter-apps-line{display:flex;align-items:flex-start;gap:8px;margin:0 0 6px;font-size:.8125rem;line-height:1.5;color:var(--gymspotter-text-sec)}
.gymspotter-apps-line:last-child{margin-bottom:0}
.gymspotter-apps-line i{margin-top:3px;color:var(--gymspotter-blue)}
.gymspotter-apps-line[data-kind="ok"] i{color:var(--gymspotter-green)}
.gymspotter-apps-line[data-kind="warn"] i{color:var(--gymspotter-amber)}
.gymspotter-app ol.gymspotter-apps-steps,ol.gymspotter-apps-steps{list-style:decimal;margin:0;padding-left:20px;font-size:.8125rem;line-height:1.6;color:var(--gymspotter-text-sec)}
.gymspotter-apps-steps li{margin:0 0 6px}
.gymspotter-apps-steps li:last-child{margin-bottom:0}
.gymspotter-apps-steps strong{color:var(--gymspotter-text)}
.gymspotter-apps-steps--hint{padding:10px 10px 10px 30px;border-radius:var(--gymspotter-radius-sm);background:var(--gymspotter-amber-lt);outline:2px solid var(--gymspotter-amber);outline-offset:-2px}
.gymspotter-apps-phone{min-height:40px}
.gymspotter-apps-qr{width:176px;max-width:100%;margin:0 auto;padding:8px;border-radius:var(--gymspotter-radius-sm);background:#fff;border:1px solid var(--gymspotter-border-lt)}
.gymspotter-apps-qr svg{display:block;width:100%;height:auto}
.gymspotter-apps-url{margin:8px 0 0;font-size:.75rem;line-height:1.5;text-align:center;color:var(--gymspotter-muted);word-break:break-all}
.gymspotter-apps-note{display:flex;gap:10px;padding:10px 12px;border-radius:var(--gymspotter-radius-sm);border:1px solid var(--gymspotter-border-lt);border-left:4px solid var(--gymspotter-blue);background:var(--gymspotter-surface);font-size:.8125rem;line-height:1.6;color:var(--gymspotter-text-sec)}
.gymspotter-apps-note i{margin-top:4px;color:var(--gymspotter-blue)}
.gymspotter-apps-note strong{color:var(--gymspotter-text)}
.gymspotter-apps-note code{font-size:.75rem}
@media (max-width:45rem){.gymspotter-apps-grid{grid-template-columns:1fr}}
/* ═══════════════════════════════════════════════════════════════════════════
   BUSINESS ACCOUNTS — switcher on the sidebar logo (shared/accounts.js)
═══════════════════════════════════════════════════════════════════════════ */
.gymspotter-sb-logo--accounts{position:relative}
.gymspotter-sb-logo--accounts .gymspotter-sb-logo-text{min-width:0;flex:1 1 auto;overflow:hidden}
.gymspotter-sb-logo--accounts .gymspotter-sb-logo-sub{overflow:hidden;text-overflow:ellipsis;color:rgba(147,197,253,.95)}
.gymspotter-acct-label{cursor:pointer}
.gymspotter-acct-caret{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;margin-left:auto;border-radius:8px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#fff;cursor:pointer;transition:background var(--gymspotter-t-fast),border-color var(--gymspotter-t-fast)}
.gymspotter-acct-caret:hover,.gymspotter-sb-logo.gymspotter-open .gymspotter-acct-caret{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.28)}
.gymspotter-acct-caret i{font-size:.75rem;transition:transform var(--gymspotter-t-fast)}
.gymspotter-sb-logo.gymspotter-open .gymspotter-acct-caret i{transform:rotate(180deg)}
.gymspotter-acct-caret:focus-visible{outline:2px solid #93c5fd;outline-offset:2px}
.gymspotter-sb-collapsed .gymspotter-acct-caret{display:none}
.gymspotter-acct-menu{position:fixed;z-index:1200;overflow:auto;padding:6px;background:var(--gymspotter-surface);border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius);box-shadow:var(--gymspotter-shadow-lg);color:var(--gymspotter-text)}
.gymspotter-acct-menu[hidden]{display:none}
.gymspotter-acct-menu-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:8px 10px 4px}
.gymspotter-acct-menu-head strong{font-size:.875rem}
.gymspotter-acct-menu-head span{font-size:.75rem;font-weight:600;color:var(--gymspotter-muted)}
.gymspotter-acct-menu-note{margin:0 10px 8px;font-size:.75rem;line-height:1.5;color:var(--gymspotter-muted)}
.gymspotter-acct-list{display:flex;flex-direction:column;gap:2px;padding-bottom:6px;border-bottom:1px solid var(--gymspotter-border-lt)}
.gymspotter-acct-item{display:flex;align-items:center;gap:10px;width:100%;min-height:var(--gymspotter-min-target);padding:8px 10px;border:1px solid transparent;border-radius:var(--gymspotter-radius-sm);background:transparent;color:var(--gymspotter-text);text-align:left;cursor:pointer}
.gymspotter-acct-item:hover{background:var(--gymspotter-blue-dim)}
.gymspotter-acct-item--current{background:var(--gymspotter-blue-dim);border-color:rgba(37,99,235,.25)}
.gymspotter-acct-item>.fa-check{margin-left:auto;color:var(--gymspotter-blue)}
.gymspotter-acct-item:focus-visible,.gymspotter-acct-link:focus-visible,.gymspotter-acct-addbtn:focus-visible{outline:var(--gymspotter-focus-outline);outline-offset:1px}
.gymspotter-acct-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;border-radius:8px;overflow:hidden;background:var(--gymspotter-surface3);border:1px solid var(--gymspotter-border-lt);font-size:.75rem;font-weight:800;color:var(--gymspotter-text-sec)}
.gymspotter-acct-avatar img{width:100%;height:100%;object-fit:contain;background:#fff}
.gymspotter-acct-item-text{display:flex;flex-direction:column;min-width:0}
.gymspotter-acct-item-text strong{font-size:.8125rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gymspotter-acct-item-text small{font-size:.6875rem;color:var(--gymspotter-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gymspotter-acct-menu-links{display:flex;flex-direction:column;gap:2px;padding:6px 0;border-bottom:1px solid var(--gymspotter-border-lt)}
.gymspotter-acct-link,.gymspotter-acct-addbtn{display:flex;align-items:center;gap:10px;min-height:38px;padding:6px 10px;border:none;border-radius:var(--gymspotter-radius-sm);background:transparent;color:var(--gymspotter-text-sec);font-size:.8125rem;font-weight:600;text-decoration:none;cursor:pointer;width:100%;text-align:left}
.gymspotter-acct-link i,.gymspotter-acct-addbtn i{width:16px;text-align:center;color:var(--gymspotter-blue)}
.gymspotter-acct-link:hover,.gymspotter-acct-addbtn:hover{background:var(--gymspotter-surface2);color:var(--gymspotter-text)}
.gymspotter-acct-addbtn{margin-top:6px}
.gymspotter-acct-add{padding:8px 10px 4px}
.gymspotter-acct-add label{display:block;margin-bottom:6px;font-size:.75rem;font-weight:700;color:var(--gymspotter-text-sec)}
.gymspotter-acct-add-row{display:flex;gap:6px}
.gymspotter-acct-add-row .gymspotter-input{margin:0;min-height:36px;padding:7px 10px;font-size:.8125rem}
.gymspotter-acct-add small{display:block;margin-top:6px;font-size:.6875rem;line-height:1.5;color:var(--gymspotter-muted)}
@media (max-width:40rem){
  .gymspotter-sidebar .gymspotter-sb-logo.gymspotter-sb-logo--accounts{display:flex;padding:10px 16px}
  .gymspotter-sb-logo--accounts .gymspotter-sb-logo-img{height:26px}
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPANY & BRAND KIT (company.html) · shared form pieces used by Team too
═══════════════════════════════════════════════════════════════════════════ */
.gymspotter-co-sub{margin-top:4px;max-width:760px;font-size:.8125rem;line-height:1.6;color:var(--gymspotter-muted)}
.gymspotter-co-sub strong{color:var(--gymspotter-text)}
.gymspotter-co-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gymspotter-co-state{font-size:.75rem;font-weight:600;color:var(--gymspotter-muted)}
.gymspotter-co-state[data-kind="warn"]{color:var(--gymspotter-amber)}
.gymspotter-co-state[data-kind="err"]{color:var(--gymspotter-red)}
.gymspotter-co-state[data-kind="ok"]{color:var(--gymspotter-green)}
.gymspotter-co-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:16px;align-items:start}
.gymspotter-co-aside{position:sticky;top:12px;display:flex;flex-direction:column}
.gymspotter-co-section{scroll-margin-top:12px}
.gymspotter-co-section:focus{outline:none}
.gymspotter-co-section:focus-visible{outline:var(--gymspotter-focus-outline);outline-offset:2px}
.gymspotter-co-section-sub{margin:0 0 14px;font-size:.8125rem;line-height:1.55;color:var(--gymspotter-muted)}
.gymspotter-co-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0 12px}
.gymspotter-co-field{grid-column:span 6;min-width:0}
.gymspotter-co-field--half{grid-column:span 3}
.gymspotter-co-field--third{grid-column:span 2}
.gymspotter-co-field .gymspotter-label{display:flex}
.gymspotter-co-hint{display:block;margin:-8px 0 12px;font-size:.75rem;line-height:1.45;color:var(--gymspotter-muted)}
.gymspotter-co-field [aria-invalid="true"]{border-color:var(--gymspotter-red);box-shadow:0 0 0 3px var(--gymspotter-red-lt)}
.gymspotter-co-logo-row{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.gymspotter-co-logo{display:flex;align-items:center;justify-content:center;width:220px;height:110px;padding:12px;border:1px dashed var(--gymspotter-border);border-radius:var(--gymspotter-radius);background:repeating-conic-gradient(var(--gymspotter-surface2) 0 25%,var(--gymspotter-surface) 0 50%) 0 0/16px 16px}
.gymspotter-co-logo img{max-width:100%;max-height:100%;object-fit:contain}
.gymspotter-co-logo-empty{font-size:.8125rem;color:var(--gymspotter-muted)}
.gymspotter-co-logo-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;flex:1;min-width:220px}
.gymspotter-co-logo-actions small{flex-basis:100%;margin:0}
.gymspotter-co-logo-actions label.gymspotter-btn{cursor:pointer;margin:0}
.gymspotter-co-logo-actions input[type=file]:focus-visible+*{outline:var(--gymspotter-focus-outline)}
.gymspotter-co-colors{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 14px;padding:0;border:0;min-width:0}
.gymspotter-co-colors legend{margin-bottom:8px}
.gymspotter-co-color label{display:block;margin-bottom:4px;font-size:.75rem;font-weight:700;color:var(--gymspotter-text-sec)}
.gymspotter-co-color-row{display:flex;gap:6px;align-items:center}
.gymspotter-co-color-row input[type=color]{flex-shrink:0;width:36px;height:36px;padding:2px;border:1px solid var(--gymspotter-border);border-radius:8px;background:var(--gymspotter-surface);cursor:pointer}
.gymspotter-co-color-row .gymspotter-input{margin:0;font-family:'SF Mono','Fira Mono',monospace}
.gymspotter-co-paper{position:relative;overflow:hidden;padding:0 0 14px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#0f172a;box-shadow:0 6px 20px rgba(15,23,42,.08);font-family:Inter,Arial,sans-serif}
.gymspotter-co-paper-bar{height:6px}
.gymspotter-co-paper-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:14px 16px 10px;border-bottom:1px solid #e2e8f0}
.gymspotter-co-paper-brand{display:flex;align-items:center;gap:10px;min-width:0}
.gymspotter-co-paper-brand img{max-width:72px;max-height:40px;object-fit:contain}
.gymspotter-co-paper-name{font-size:.9375rem;font-weight:900;letter-spacing:.02em;line-height:1.2;word-break:break-word}
.gymspotter-co-paper-line{margin-top:2px;font-size:.6875rem;color:#64748b}
.gymspotter-co-paper-doc{display:flex;flex-direction:column;align-items:flex-end;font-size:.6875rem;color:#64748b}
.gymspotter-co-paper-doc strong{font-size:.8125rem;letter-spacing:.06em}
.gymspotter-co-paper-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px 16px;font-size:.6875rem;line-height:1.5;color:#334155}
.gymspotter-co-paper-missing{color:#b45309;font-style:italic}
.gymspotter-co-paper-lines{display:flex;flex-direction:column;gap:7px;padding:6px 16px 12px}
.gymspotter-co-paper-lines span{display:block;height:7px;border-radius:4px;background:#f1f5f9}
.gymspotter-co-paper-foot{display:flex;justify-content:space-between;gap:10px;margin:0 16px;padding-top:8px;border-top:1px solid #e2e8f0;font-size:.625rem;color:#64748b}
.gymspotter-co-note{margin:10px 0 0;font-size:.75rem;line-height:1.55;color:var(--gymspotter-muted)}
.gymspotter-co-live{font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.gymspotter-co-brief{max-height:340px;overflow:auto;margin:0;padding:10px 12px;border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-sm);background:var(--gymspotter-surface2);color:var(--gymspotter-text-sec);font-size:.75rem;line-height:1.55;white-space:pre-wrap;word-break:break-word}
.gymspotter-modal-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}
@media (max-width:75rem){
  .gymspotter-co-layout{grid-template-columns:minmax(0,1fr)}
  .gymspotter-co-aside{position:static}
}
@media (max-width:40rem){
  .gymspotter-co-field--half,.gymspotter-co-field--third{grid-column:span 6}
  .gymspotter-co-colors{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gymspotter-co-logo{width:100%}
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEAM & ASSIGNMENTS (team.html)
═══════════════════════════════════════════════════════════════════════════ */
.gymspotter-tm-tiles .gymspotter-tile{cursor:default}
.gymspotter-tm-tiles .gymspotter-tile:hover{transform:none;border-color:var(--gymspotter-border-lt);box-shadow:none}
.gymspotter-tm-tile .gymspotter-tile-label i{color:var(--gymspotter-blue);margin-right:2px}
.gymspotter-tm-layout{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:16px;align-items:start}
.gymspotter-tm-inactive{display:inline-flex;align-items:center;gap:6px;font-size:.75rem;font-weight:600;color:var(--gymspotter-muted);cursor:pointer}
.gymspotter-tm-people-list{display:flex;flex-direction:column;gap:2px;padding:6px}
.gymspotter-tm-person{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:8px 10px;border:1px solid transparent;border-radius:var(--gymspotter-radius-sm);background:transparent;color:var(--gymspotter-text);text-align:left;cursor:pointer}
.gymspotter-tm-person:hover{background:var(--gymspotter-surface2)}
.gymspotter-tm-person--current{background:var(--gymspotter-blue-dim);border-color:rgba(37,99,235,.25)}
.gymspotter-tm-person:focus-visible{outline:var(--gymspotter-focus-outline);outline-offset:1px}
.gymspotter-tm-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;border-radius:50%;color:#fff;font-size:.75rem;font-weight:800;letter-spacing:.02em}
.gymspotter-tm-avatar--lg{width:52px;height:52px;font-size:1rem}
.gymspotter-tm-person-text{display:flex;flex-direction:column;min-width:0;flex:1}
.gymspotter-tm-person-text strong{font-size:.8125rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gymspotter-tm-person-text small{font-size:.6875rem;color:var(--gymspotter-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gymspotter-tm-counts{display:flex;gap:4px}
.gymspotter-tm-count{min-width:22px;padding:2px 7px;border-radius:20px;background:var(--gymspotter-surface3);color:var(--gymspotter-text-sec);font-size:.6875rem;font-weight:800;text-align:center}
.gymspotter-tm-count--late{background:var(--gymspotter-red-lt);color:var(--gymspotter-red)}
.gymspotter-tm-detail-actions{display:flex;gap:6px}
.gymspotter-tm-profile{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid var(--gymspotter-border-lt)}
.gymspotter-tm-profile-text{display:flex;flex-direction:column;gap:2px;min-width:200px;flex:1}
.gymspotter-tm-profile-text strong{font-size:1rem}
.gymspotter-tm-profile-text span{font-size:.8125rem;color:var(--gymspotter-text-sec)}
.gymspotter-tm-profile-text .gymspotter-tm-aka{font-size:.75rem;color:var(--gymspotter-muted)}
.gymspotter-tm-kpis{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.gymspotter-tm-kpis div{min-width:84px;padding:8px 10px;border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-sm);background:var(--gymspotter-surface2)}
.gymspotter-tm-kpis dt{font-size:.625rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--gymspotter-muted)}
.gymspotter-tm-kpis dd{margin:2px 0 0;font-size:1.0625rem;font-weight:900;color:var(--gymspotter-text)}
.gymspotter-tm-late{color:var(--gymspotter-red)!important;font-weight:700}
.gymspotter-tm-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px}
.gymspotter-tm-filters .gymspotter-input,.gymspotter-tm-filters .gymspotter-select{width:auto;margin:0}
.gymspotter-tm-filters .gymspotter-input{flex:1;min-width:160px}
.gymspotter-tm-tabs{display:inline-flex;padding:3px;border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-sm);background:var(--gymspotter-surface2)}
.gymspotter-tm-tabs [role="tab"]{min-height:30px;padding:4px 12px;border:none;border-radius:6px;background:transparent;color:var(--gymspotter-text-sec);font-size:.75rem;font-weight:700;cursor:pointer}
.gymspotter-tm-tabs [aria-selected="true"]{background:var(--gymspotter-surface);color:var(--gymspotter-blue-dk);box-shadow:var(--gymspotter-shadow-xs)}
.gymspotter-tm-tabs [role="tab"]:focus-visible{outline:var(--gymspotter-focus-outline);outline-offset:1px}
.gymspotter-tm-table tbody tr:hover td{cursor:default}
.gymspotter-tm-work{display:flex;gap:10px;align-items:flex-start;min-width:220px}
.gymspotter-tm-work>i{margin-top:3px;width:16px;text-align:center;color:var(--gymspotter-blue)}
.gymspotter-tm-work-title{display:block;font-weight:700;color:var(--gymspotter-text)}
.gymspotter-tm-work small{font-size:.6875rem;color:var(--gymspotter-muted)}
.gymspotter-tm-prio--urgent,.gymspotter-tm-prio--high{color:var(--gymspotter-red)}
.gymspotter-tm-prio--low{color:var(--gymspotter-muted)}
.gymspotter-tm-chip{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.gymspotter-tm-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.gymspotter-tm-status{width:auto;min-width:120px;margin:0}
.gymspotter-tm-status[data-state="done"]{color:var(--gymspotter-green);font-weight:700}
.gymspotter-tm-status[data-state="in_progress"]{color:var(--gymspotter-blue-dk);font-weight:700}
.gymspotter-tm-status[data-state="waiting"]{color:var(--gymspotter-amber);font-weight:700}
.gymspotter-tm-status[data-state="cancelled"]{color:var(--gymspotter-muted)}
.gymspotter-tm-timeline{list-style:none;margin:0;padding:0 0 0 6px;border-left:2px solid var(--gymspotter-border-lt)}
.gymspotter-tm-event{position:relative;display:flex;gap:10px;padding:8px 0 8px 14px;font-size:.8125rem;line-height:1.5}
.gymspotter-tm-event>i{position:absolute;left:-14px;top:10px;display:flex!important;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--gymspotter-surface);border:2px solid var(--gymspotter-border-lt);color:var(--gymspotter-blue);font-size:.625rem}
.gymspotter-tm-event--done>i{color:var(--gymspotter-green);border-color:rgba(21,128,61,.35)}
.gymspotter-tm-event div{padding-left:6px}
.gymspotter-tm-event small{display:block;font-size:.6875rem;color:var(--gymspotter-muted)}
.gymspotter-tm-suggest{align-items:center}
.gymspotter-tm-picks{display:flex;flex-direction:column;gap:2px;max-height:240px;overflow:auto;margin:-6px 0 12px}
.gymspotter-tm-picks:empty{display:none}
.gymspotter-tm-pick{display:flex;flex-direction:column;align-items:flex-start;width:100%;padding:7px 10px;border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-sm);background:var(--gymspotter-surface);color:var(--gymspotter-text);text-align:left;cursor:pointer}
.gymspotter-tm-pick:hover,.gymspotter-tm-pick:focus-visible{background:var(--gymspotter-blue-dim);outline:none;border-color:var(--gymspotter-blue)}
.gymspotter-tm-pick strong{font-size:.8125rem}
.gymspotter-tm-pick small{font-size:.6875rem;color:var(--gymspotter-muted)}
.gymspotter-tm-picks-msg{margin:4px 0;font-size:.75rem}
.gymspotter-tm-form-err{min-height:1em;margin:0;font-size:.75rem;font-weight:600;color:var(--gymspotter-red)}
.gymspotter-tm-color-input{padding:4px;cursor:pointer}
.gymspotter-btn.gymspotter-tm-danger{color:var(--gymspotter-red);border-color:rgba(185,28,28,.35)}
.gymspotter-btn.gymspotter-tm-danger:hover{background:var(--gymspotter-red-lt)}
@media (max-width:62rem){
  .gymspotter-tm-layout{grid-template-columns:minmax(0,1fr)}
  .gymspotter-tm-people-list{flex-direction:row;overflow-x:auto}
  .gymspotter-tm-person{min-width:200px}
}
.gymspotter-acct-menu,.gymspotter-acct-menu *{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif}
.gymspotter-acct-menu :focus-visible{outline:3px solid var(--gymspotter-blue,#2563eb);outline-offset:2px}

/* ═══════════════════════════════════════════════════════════════════════════
   CHOOSE A BUSINESS (shared/accounts.js) — when the app opens with more than one
═══════════════════════════════════════════════════════════════════════════ */
html.gymspotter-picking body{overflow:hidden}
.gymspotter-acct-picker{position:fixed;inset:0;z-index:1000001;display:flex;align-items:center;justify-content:center;padding:24px;overflow:auto;background:linear-gradient(135deg,#0b1120 0%,#1a1050 58%,#0d1e40 100%);color:#fff;font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;opacity:1;transition:opacity .25s ease}
.gymspotter-acct-picker--leaving{opacity:0}
.gymspotter-acct-picker-inner{width:min(980px,100%);text-align:center}
.gymspotter-acct-picker-os{width:56px;height:56px;border-radius:14px;margin:0 auto 14px;display:block}
.gymspotter-acct-picker h1{margin:0;font-family:Manrope,Inter,Arial,sans-serif;font-size:1.875rem;font-weight:900;letter-spacing:-.02em;color:#fff}
.gymspotter-acct-picker-sub{max-width:560px;margin:8px auto 28px;font-size:.9375rem;line-height:1.6;color:rgba(255,255,255,.72)}
.gymspotter-acct-picker-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:18px}
.gymspotter-acct-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;width:220px;padding:26px 18px 20px;border:1px solid rgba(255,255,255,.16);border-radius:22px;background:rgba(255,255,255,.07);color:#fff;cursor:pointer;font:inherit;transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease}
.gymspotter-acct-card:hover,.gymspotter-acct-card:focus-visible{transform:translateY(-4px);background:rgba(255,255,255,.13);border-color:rgba(147,197,253,.75);box-shadow:0 20px 50px rgba(0,0,0,.35);outline:none}
.gymspotter-acct-card:focus-visible{box-shadow:0 0 0 3px #93c5fd,0 20px 50px rgba(0,0,0,.35)}
.gymspotter-acct-card-logo{display:flex;align-items:center;justify-content:center;width:104px;height:104px;border-radius:24px;background:#fff;color:#0b1120;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.3)}
.gymspotter-acct-card-logo img{width:100%;height:100%;object-fit:contain;padding:12px}
.gymspotter-acct-picker-initials{font-family:Manrope,Inter,Arial,sans-serif;font-size:2rem;font-weight:900;letter-spacing:.02em}
.gymspotter-acct-card-name{font-size:1.0625rem;font-weight:800;line-height:1.3}
.gymspotter-acct-card-tag{min-height:1.2em;font-size:.75rem;line-height:1.4;color:rgba(255,255,255,.65)}
.gymspotter-acct-card-badge{position:absolute;top:12px;right:12px;padding:3px 9px;border-radius:20px;background:rgba(74,222,128,.18);border:1px solid rgba(74,222,128,.45);color:#86efac;font-size:.625rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.gymspotter-acct-picker-foot{margin:26px 0 0;font-size:.75rem;color:rgba(255,255,255,.5)}
.gymspotter-acct-picker-foot kbd{display:inline-block;min-width:22px;padding:1px 6px;border:1px solid rgba(255,255,255,.25);border-radius:5px;background:rgba(255,255,255,.06);font-family:inherit;font-size:.6875rem;color:rgba(255,255,255,.8)}

/* ═══════════════════════════════════════════════════════════════════════════
   ONBOARDING — page guide, welcome tour, Show me around, Learning center (shared/onboarding.js)
═══════════════════════════════════════════════════════════════════════════ */
.gymspotter-guide-btn{background:var(--gymspotter-blue-dim);border-color:rgba(37,99,235,.28);color:var(--gymspotter-blue-dk)}
.gymspotter-guide-btn i{color:var(--gymspotter-blue)}
@media (max-width:40rem){.gymspotter-guide-btn span{display:none}}
.gymspotter-guide-overlay .gymspotter-modal,.gymspotter-welcome-tour .gymspotter-modal,.gymspotter-video-overlay .gymspotter-modal{max-width:1000px;width:100%;max-height:calc(100vh - 32px);overflow:auto;padding:0}
.gymspotter-video-overlay .gymspotter-modal{padding:22px 24px}
.gymspotter-video-overlay h2{margin:0 0 14px;font-size:1.125rem;font-weight:800}
.gymspotter-guide-loading{padding:48px;text-align:center;color:var(--gymspotter-muted);font-weight:600}
.gymspotter-guide-head{display:flex;align-items:center;gap:14px;padding:22px 26px 14px;border-bottom:1px solid var(--gymspotter-border-lt)}
.gymspotter-guide-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:48px;height:48px;border-radius:14px;background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue);font-size:1.25rem;border:1px solid rgba(37,99,235,.2)}
.gymspotter-guide-kicker{margin:0 0 2px;font-size:.6875rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--gymspotter-blue)}
.gymspotter-guide-head h2{margin:0;font-family:Manrope,Inter,Arial,sans-serif;font-size:1.5rem;font-weight:900;letter-spacing:-.02em;color:var(--gymspotter-text)}
.gymspotter-guide-head h2:focus{outline:none}
.gymspotter-guide-body{padding:18px 26px 6px}
.gymspotter-guide-body h3{display:flex;align-items:center;gap:8px;margin:20px 0 10px;font-size:.8125rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--gymspotter-text-sec)}
.gymspotter-guide-body h3 i{color:var(--gymspotter-blue)}
.gymspotter-guide-top{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:20px;align-items:start}
.gymspotter-guide-top>.gymspotter-guide-intro:only-child{grid-column:1/-1}
.gymspotter-guide-overview{margin:0 0 14px;font-size:.9375rem;line-height:1.7;color:var(--gymspotter-text)}
.gymspotter-guide-video{margin:0}
.gymspotter-guide-video video{display:block;width:100%;aspect-ratio:16/9;border-radius:12px;background:#0b1120;border:1px solid var(--gymspotter-border-lt);box-shadow:var(--gymspotter-shadow-md)}
.gymspotter-guide-video figcaption{margin-top:6px;font-size:.75rem;font-weight:600;color:var(--gymspotter-muted)}
.gymspotter-guide-video figcaption i{color:var(--gymspotter-blue)}
.gymspotter-guide-chapters{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.gymspotter-guide-chapter{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:4px 10px;border:1px solid var(--gymspotter-border);border-radius:20px;background:var(--gymspotter-surface);color:var(--gymspotter-text-sec);font-size:.75rem;font-weight:700;cursor:pointer}
.gymspotter-guide-chapter small{font-weight:600;color:var(--gymspotter-muted)}
.gymspotter-guide-chapter:hover,.gymspotter-guide-chapter--on{background:var(--gymspotter-blue-dim);border-color:rgba(37,99,235,.35);color:var(--gymspotter-blue-dk)}
.gymspotter-guide-transcript{margin-top:8px;font-size:.75rem;color:var(--gymspotter-text-sec)}
.gymspotter-guide-transcript summary{cursor:pointer;font-weight:700;color:var(--gymspotter-blue-dk)}
.gymspotter-guide-transcript ol{list-style:none;margin:6px 0 0;padding:0;max-height:160px;overflow:auto}
.gymspotter-guide-transcript li{padding:3px 0;line-height:1.5}
.gymspotter-guide-transcript li span{display:inline-block;min-width:38px;font-variant-numeric:tabular-nums;color:var(--gymspotter-muted)}
.gymspotter-guide-features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;list-style:none;margin:0;padding:0}
.gymspotter-guide-features li{display:flex;gap:12px;padding:12px 14px;border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-sm);background:var(--gymspotter-surface2)}
/* icon tiles: display:flex needs !important to beat the global i[class*="fa-"]{display:inline-block!important}
   (section 2); without it the glyph sits in the tile's top-left corner instead of its center */
.gymspotter-guide-features li>i{display:flex!important;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;border-radius:9px;background:var(--gymspotter-surface);border:1px solid var(--gymspotter-border-lt);color:var(--gymspotter-blue);font-size:.875rem}
.gymspotter-guide-features strong{display:block;font-size:.8125rem;color:var(--gymspotter-text)}
.gymspotter-guide-features span{display:block;margin-top:2px;font-size:.8125rem;line-height:1.55;color:var(--gymspotter-text-sec)}
.gymspotter-guide-how{margin-bottom:6px;border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius-sm);background:var(--gymspotter-surface)}
.gymspotter-guide-how summary{padding:10px 14px;font-size:.8125rem;font-weight:700;color:var(--gymspotter-text);cursor:pointer}
.gymspotter-guide-how[open] summary{border-bottom:1px solid var(--gymspotter-border-lt)}
.gymspotter-app ol.gymspotter-guide-how-list,.gymspotter-guide-how ol{list-style:decimal;margin:0;padding:10px 14px 12px 34px;font-size:.8125rem;line-height:1.7;color:var(--gymspotter-text-sec)}
.gymspotter-guide-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.gymspotter-app ul.gymspotter-guide-tips,.gymspotter-guide-tips{list-style:disc;margin:0;padding-left:20px;font-size:.8125rem;line-height:1.65;color:var(--gymspotter-text-sec)}
.gymspotter-guide-note{margin:0 0 8px;font-size:.8125rem;line-height:1.6;color:var(--gymspotter-muted)}
.gymspotter-guide-asks{display:flex;flex-direction:column;gap:6px}
.gymspotter-guide-ask{display:flex;align-items:flex-start;gap:8px;padding:8px 12px;border:1px solid var(--gymspotter-border);border-radius:var(--gymspotter-radius-sm);background:var(--gymspotter-surface);color:var(--gymspotter-text);font-size:.8125rem;text-align:left;cursor:pointer}
.gymspotter-guide-ask i{margin-top:3px;color:var(--gymspotter-purple,#6d28d9)}
.gymspotter-guide-ask:hover{border-color:var(--gymspotter-blue);background:var(--gymspotter-blue-dim)}
.gymspotter-guide-rels{display:flex;flex-wrap:wrap;gap:6px}
.gymspotter-app .gymspotter-guide-rel,.gymspotter-guide-rel{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--gymspotter-border);border-radius:20px;color:var(--gymspotter-text-sec);font-size:.8125rem;font-weight:600;text-decoration:none!important}
.gymspotter-guide-rel:hover{border-color:var(--gymspotter-blue);color:var(--gymspotter-blue-dk)}
.gymspotter-guide-foot{position:sticky;bottom:0;display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;padding:14px 26px;margin-top:18px;border-top:1px solid var(--gymspotter-border-lt);background:var(--gymspotter-surface)}
.gymspotter-guide-auto{display:inline-flex;align-items:center;gap:8px;font-size:.8125rem;color:var(--gymspotter-text-sec);cursor:pointer}
.gymspotter-guide-foot-links{display:inline-flex;gap:14px;margin-left:auto;font-size:.8125rem}
.gymspotter-app .gymspotter-guide-foot-links a,.gymspotter-guide-foot-links a{color:var(--gymspotter-blue-dk);font-weight:600;text-decoration:none!important}
.gymspotter-guide-linkbtn{padding:0;border:none;background:none;color:var(--gymspotter-blue-dk);font:inherit;font-size:.8125rem;font-weight:600;cursor:pointer}
.gymspotter-guide-linkbtn:hover,.gymspotter-guide-foot-links a:hover{text-decoration:underline!important}
.gymspotter-guide-showme{margin-right:8px}
/* welcome tour */
.gymspotter-wt-panes{padding:30px 34px 8px}
.gymspotter-wt-pane:focus{outline:none}
.gymspotter-wt-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:28px;align-items:center}
.gymspotter-wt-hero-text{display:flex;flex-direction:column;align-items:flex-start}
.gymspotter-wt-hero .gymspotter-wt-hero-text:only-child{grid-column:1/-1}
.gymspotter-wt-logo{display:flex;align-items:center;justify-content:center;width:72px;height:72px;margin-bottom:16px;border-radius:20px;overflow:hidden;color:#fff;font-family:Manrope,Inter,Arial,sans-serif;font-size:1.5rem;font-weight:900;box-shadow:var(--gymspotter-shadow-md)}
.gymspotter-wt-logo img{width:100%;height:100%;object-fit:contain;padding:8px;background:#fff}
.gymspotter-wt-pane h2{margin:0;font-family:Manrope,Inter,Arial,sans-serif;font-size:1.875rem;font-weight:900;line-height:1.15;letter-spacing:-.025em;color:var(--gymspotter-text)}
.gymspotter-wt-pane h2:focus{outline:none}
.gymspotter-wt-h{font-size:1.5rem!important}
.gymspotter-wt-lead{margin:10px 0 18px;font-size:.9375rem;line-height:1.7;color:var(--gymspotter-text-sec)}
.gymspotter-wt-powered{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:.75rem;font-weight:700;color:var(--gymspotter-muted)}
.gymspotter-wt-powered img{width:20px;height:20px;border-radius:5px}
.gymspotter-wt-mods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.gymspotter-wt-mod{border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius);background:var(--gymspotter-surface2)}
.gymspotter-wt-mod[open]{grid-column:1/-1;background:var(--gymspotter-surface)}
.gymspotter-wt-mod summary{display:flex;align-items:center;gap:12px;padding:12px 14px;cursor:pointer;list-style:none}
.gymspotter-wt-mod summary::-webkit-details-marker{display:none}
.gymspotter-wt-mod summary strong{display:block;font-size:.875rem;color:var(--gymspotter-text)}
.gymspotter-wt-mod summary small{display:block;font-size:.75rem;line-height:1.45;color:var(--gymspotter-muted)}
.gymspotter-wt-mod-ic{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:38px;height:38px;border-radius:11px;background:var(--gymspotter-blue-dim);color:var(--gymspotter-blue)}
.gymspotter-app .gymspotter-wt-mod ul,.gymspotter-wt-mod ul{list-style:none;margin:0;padding:4px 14px 14px 64px;font-size:.8125rem;line-height:1.7;color:var(--gymspotter-text-sec)}
.gymspotter-wt-mod a{font-weight:700;color:var(--gymspotter-blue-dk)}
.gymspotter-app ul.gymspotter-wt-points,.gymspotter-wt-points{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;list-style:none;margin:0;padding:0}
.gymspotter-wt-points li{display:flex;gap:12px;padding:14px;border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius);background:var(--gymspotter-surface2)}
.gymspotter-wt-points li>i{display:flex!important;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;border-radius:10px;background:var(--gymspotter-surface);border:1px solid var(--gymspotter-border-lt);color:var(--gymspotter-blue)}
.gymspotter-wt-points strong,.gymspotter-wt-check strong{display:block;font-size:.875rem;color:var(--gymspotter-text)}
.gymspotter-wt-points span,.gymspotter-wt-check span{display:block;margin-top:2px;font-size:.8125rem;line-height:1.55;color:var(--gymspotter-text-sec)}
.gymspotter-app ul.gymspotter-wt-check,.gymspotter-wt-check{display:flex;flex-direction:column;gap:8px;list-style:none;margin:0;padding:0}
.gymspotter-app .gymspotter-wt-check a,.gymspotter-wt-check a{display:flex;align-items:center;gap:14px;padding:12px 16px;border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius);background:var(--gymspotter-surface2);color:inherit;text-decoration:none!important}
.gymspotter-wt-check a:hover{border-color:var(--gymspotter-blue);background:var(--gymspotter-blue-dim)}
.gymspotter-wt-check a>i:first-child{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;border-radius:10px;background:var(--gymspotter-blue);color:#fff}
.gymspotter-wt-check a>div{flex:1}
.gymspotter-wt-check a>i:last-child{color:var(--gymspotter-muted)}
.gymspotter-wt-foot{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 34px;margin-top:22px;border-top:1px solid var(--gymspotter-border-lt);background:var(--gymspotter-surface)}
.gymspotter-wt-foot>span{display:inline-flex;align-items:center;gap:14px}
.gymspotter-wt-dots{display:flex;gap:6px}
.gymspotter-wt-dots button{width:10px;height:10px;padding:0;border:none;border-radius:50%;background:var(--gymspotter-border);cursor:pointer;transition:width .2s ease,background .2s ease}
.gymspotter-wt-dots .gymspotter-wt-dot--on{width:26px;border-radius:6px;background:var(--gymspotter-blue)}
/* Show me around */
.gymspotter-tour-spot{position:fixed;z-index:100000;border-radius:10px;pointer-events:none;box-shadow:0 0 0 3px rgba(96,165,250,.95),0 0 0 9999px rgba(11,17,32,.55);transition:left .3s ease,top .3s ease,width .3s ease,height .3s ease,opacity .2s ease}
.gymspotter-tour-pop{position:fixed;z-index:100001;padding:14px 16px 12px;border:1px solid var(--gymspotter-border-lt);border-left:4px solid var(--gymspotter-blue);border-radius:var(--gymspotter-radius);background:var(--gymspotter-surface);color:var(--gymspotter-text);box-shadow:var(--gymspotter-shadow-lg);font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;transition:left .3s ease,top .3s ease}
.gymspotter-tour-pop:focus{outline:none}
.gymspotter-tour-step{margin:0 0 4px;font-size:.6875rem;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:var(--gymspotter-blue)}
.gymspotter-tour-text{margin:0 0 12px;font-size:.9375rem;line-height:1.55}
.gymspotter-tour-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}
/* Learning center */
.gymspotter-lc-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.gymspotter-lc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px}
.gymspotter-lc-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--gymspotter-border-lt);border-radius:var(--gymspotter-radius);background:var(--gymspotter-surface);box-shadow:var(--gymspotter-shadow-xs)}
.gymspotter-lc-thumb{position:relative;display:block;width:100%;aspect-ratio:16/9;padding:0;border:none;background:linear-gradient(135deg,#0b1120 0%,#1a1050 58%,#0d1e40 100%);cursor:pointer;overflow:hidden}
.gymspotter-lc-thumb:disabled{cursor:default}
.gymspotter-lc-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.gymspotter-lc-thumb:not(:disabled):hover img{transform:scale(1.03)}
.gymspotter-lc-ph{display:flex;align-items:center;justify-content:center;height:100%;font-size:2.25rem;color:rgba(147,197,253,.85)}
.gymspotter-lc-play{position:absolute;left:10px;bottom:10px;display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:20px;background:rgba(11,17,32,.78);color:#fff;font-size:.75rem;font-weight:700}
.gymspotter-lc-body{padding:12px 14px 14px}
.gymspotter-lc-body h3{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-size:.9375rem;font-weight:800;color:var(--gymspotter-text)}
.gymspotter-lc-body h3 i{color:var(--gymspotter-blue)}
.gymspotter-lc-body p{margin:0 0 8px;font-size:.8125rem;line-height:1.55;color:var(--gymspotter-text-sec)}
.gymspotter-app .gymspotter-lc-body ul,.gymspotter-lc-body ul{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-wrap:wrap;gap:4px 12px}
.gymspotter-lc-body li a{color:var(--gymspotter-muted);font-size:.6875rem}
.gymspotter-app .gymspotter-lc-llm,.gymspotter-lc-llm{font-size:.75rem;font-weight:700;color:var(--gymspotter-blue-dk);text-decoration:none!important}
@media (max-width:62rem){
  .gymspotter-guide-top,.gymspotter-wt-hero{grid-template-columns:minmax(0,1fr)}
  .gymspotter-wt-mods{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:40rem){
  .gymspotter-guide-features,.gymspotter-guide-cols,.gymspotter-wt-points,.gymspotter-wt-mods{grid-template-columns:minmax(0,1fr)}
  .gymspotter-guide-head,.gymspotter-guide-body,.gymspotter-guide-foot{padding-left:16px;padding-right:16px}
  .gymspotter-wt-panes{padding:22px 16px 6px}.gymspotter-wt-foot{padding:12px 16px}
  .gymspotter-acct-card{width:100%}
}
.gymspotter-app .gymspotter-guide-modal h2:focus-visible,.gymspotter-app .gymspotter-guide-modal h2:focus{outline:none!important;box-shadow:none!important}
/* bold words inside guide text stay inline (only the item titles are blocks) */
.gymspotter-guide-features span strong,.gymspotter-wt-points span strong,.gymspotter-wt-check span strong,.gymspotter-guide-overview strong,.gymspotter-guide-tips strong,.gymspotter-guide-how strong{display:inline;margin:0;font-size:inherit;color:var(--gymspotter-text)}

/* ═══════════════════════════════════════════════════════════════════════════
   EXPLAINER VIDEO PLAYER (shared/onboarding.js): silent video + narration track + caption layer
═══════════════════════════════════════════════════════════════════════════ */
.gsv-player{position:relative;border-radius:12px;overflow:hidden;background:#0b1120;border:1px solid var(--gymspotter-border-lt);box-shadow:var(--gymspotter-shadow-md)}
.gsv-player:focus{outline:none}
.gsv-player:focus-visible{outline:var(--gymspotter-focus-outline);outline-offset:2px}
.gsv-stage{position:relative;container-type:inline-size;background:#0b1120}
.gymspotter-guide-video.gsv .gsv-stage video{display:block;width:100%;aspect-ratio:16/9;border:none;border-radius:0;box-shadow:none;background:#0b1120;cursor:pointer}
.gsv-cc{position:absolute;left:50%;bottom:4%;width:86%;transform:translateX(-50%);display:flex;justify-content:center;pointer-events:none;opacity:0;transition:opacity .15s ease}
.gsv-cc--on{opacity:1}
.gsv-cc span{position:relative;max-width:100%;padding:.45em .95em .45em 1.15em;border-radius:.6em;background:rgba(11,17,32,.9);color:#fff;font-family:'Inter',-apple-system,'Segoe UI',Roboto,sans-serif;font-size:clamp(11px,2.35cqw,27px);font-weight:600;line-height:1.38;text-align:left;box-shadow:0 .5em 1.4em rgba(11,17,32,.35)}
.gsv-cc span:before{content:"";position:absolute;left:0;top:.45em;bottom:.45em;width:.22em;border-radius:0 .2em .2em 0;background:linear-gradient(180deg,#60a5fa,#4ade80)}
.gsv-big{position:absolute;left:50%;top:50%;width:68px;height:68px;margin:-34px 0 0 -34px;border:none;border-radius:50%;background:rgba(37,99,235,.92);color:#fff;font-size:1.5rem;cursor:pointer;box-shadow:0 10px 30px rgba(11,17,32,.45);transition:transform .15s ease}
.gsv-big i{margin-left:4px}
.gsv-big:hover{transform:scale(1.06)}
.gsv-big[hidden],.gsv--playing .gsv-big{display:none}
.gsv-bar{display:flex;align-items:center;gap:8px;padding:6px 10px;background:#0b1120;color:#e2e8f0}
.gsv-btn{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;border:none;border-radius:8px;background:transparent;color:#e2e8f0;cursor:pointer;text-decoration:none!important}
.gsv-btn:hover{background:rgba(255,255,255,.1);color:#fff}
.gsv-btn:focus-visible,.gsv-sel select:focus-visible,.gsv-seek:focus-visible,.gsv-big:focus-visible{outline:2px solid #93c5fd;outline-offset:2px}
.gsv-time{flex-shrink:0;font-size:.75rem;font-variant-numeric:tabular-nums;color:#cbd5e1}
.gsv-seek{flex:1;min-width:60px;accent-color:#60a5fa;cursor:pointer}
.gsv-sel{display:inline-flex;align-items:center;gap:4px;flex-shrink:0;color:#cbd5e1;font-size:.875rem}
.gsv-sel select{height:28px;padding:0 6px;border:1px solid rgba(255,255,255,.18);border-radius:6px;background:#111827;color:#e2e8f0;font-size:.75rem;cursor:pointer}
.gsv-player:fullscreen{display:flex;flex-direction:column;justify-content:center;border:none;border-radius:0;background:#000}
.gsv-player:fullscreen .gsv-stage video{max-height:calc(100vh - 48px);object-fit:contain}
.gymspotter-guide-transcript li button{display:block;width:100%;padding:3px 0;border:none;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.gymspotter-guide-transcript li button:hover{color:var(--gymspotter-blue-dk)}
.gymspotter-guide-transcript li button span{display:inline-block;min-width:38px;font-variant-numeric:tabular-nums;color:var(--gymspotter-muted)}
@media (max-width:40rem){.gsv-time{display:none}}
