/* ==========================================================================
   boredatwork.fun — landing page only: "arcade CRT after hours"
   The whole viewport is a 1980s tube monitor. Phosphor amber on CRT black,
   cyan/magenta reserved for chromatic-aberration fringes and one neon label.
   Game pages + privacy page keep css/style.css; this file stands alone
   (boss-screen Excel styles are duplicated at the bottom so the boss key
   works here too — boss mode is deliberately NOT themed).
   ========================================================================== */

:root {
  --bg: #0a0e0a;                               /* CRT black, faint green cast */
  --phos: #ffb000;                             /* phosphor amber */
  --phos-hot: #ffd34d;                         /* brighter excitation */
  --phos-white: #fff3d6;                       /* white-hot text */
  --phos-dim: rgba(255, 176, 0, 0.30);
  --phos-faint: rgba(255, 176, 0, 0.10);
  --cyan: #35e0d0;                             /* aberration fringe / neon */
  --magenta: #ff3c7e;                          /* aberration fringe */
  --text: #ecd9a8;                             /* body copy, warm amber-white */
  --muted: #b08d57;                            /* dimmed phosphor */
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  Helvetica, Arial, sans-serif;            /* the grotesque */
  --font-pixel: "Press Start 2P", "Courier New", monospace;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas,
               Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* Phosphor wash: the tube is never uniformly black — a faint warm glow sits
   in the centre and the corners fall off. Fixed so content scrolls over it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(255, 176, 0, 0.055), transparent 60%),
    radial-gradient(90% 70% at 50% 105%, rgba(53, 224, 208, 0.035), transparent 60%);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--phos); }

::selection { background: var(--phos); color: #0a0e0a; }

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

/* ==========================================================================
   CRT chrome — three fixed layers over everything except boss mode
   (boss-screen is z-index 9999: the spreadsheet must NOT look like a CRT).
   ========================================================================== */

/* --- scanlines + slow retrace band + flicker ----------------------------- */
.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.22) 0px,
    rgba(0, 0, 0, 0.22) 1px,
    transparent 1px,
    transparent 3px
  );
  animation: crt-flicker 4s steps(60) infinite;
}

/* the bright horizontal band that drifts down the tube */
.crt-overlay::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -35%;
  height: 30%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 211, 77, 0.028) 35%,
    rgba(255, 211, 77, 0.05) 50%,
    rgba(255, 211, 77, 0.028) 65%,
    transparent
  );
  animation: crt-retrace 9s linear infinite;
}

@keyframes crt-retrace {
  from { transform: translateY(0); }
  to   { transform: translateY(450%); }
}

@keyframes crt-flicker {
  0%, 100% { opacity: 1; }
  3%  { opacity: 0.92; }
  7%  { opacity: 1; }
  31% { opacity: 0.96; }
  33% { opacity: 1; }
  58% { opacity: 0.94; }
  60% { opacity: 1; }
  84% { opacity: 0.97; }
  86% { opacity: 1; }
}

/* --- bezel: barrel curvature fake — rounded vignette + corner falloff ---- */
.crt-bezel {
  position: fixed;
  inset: 0;
  z-index: 9001;
  pointer-events: none;
  border-radius: 2.5vmin / 3.5vmin;
  box-shadow:
    inset 0 0 8vmin rgba(0, 0, 0, 0.85),
    inset 0 0 2.5vmin rgba(0, 0, 0, 0.65);
  background: radial-gradient(
    ellipse 130% 130% at 50% 50%,
    transparent 62%,
    rgba(0, 0, 0, 0.38) 100%
  );
}

/* --- power-on: white dot → line snaps wide → blooms open ------------------ */
.crt-boot {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: #000;
  pointer-events: none;     /* never blocks input; arcade.js also removes it */
  animation: boot-fade 0.25s ease-out 1.05s forwards;
}

.crt-boot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow:
    0 0 22px 5px rgba(255, 255, 255, 0.9),
    0 0 70px 18px rgba(255, 176, 0, 0.55);
  animation: boot-line 1.15s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes boot-line {
  0%   { transform: translate(-50%, -50%) scale(0.005, 1); opacity: 0; }
  8%   { opacity: 1; }
  12%  { transform: translate(-50%, -50%) scale(0.005, 1.5); }   /* the dot */
  45%  { transform: translate(-50%, -50%) scale(1, 1); }         /* snaps wide */
  62%  { transform: translate(-50%, -50%) scale(1, 1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1, 320); opacity: 0; } /* bloom */
}

@keyframes boot-fade {
  to { opacity: 0; visibility: hidden; }
}

/* marquee buzzes on just as the bloom clears */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 {
    animation: marquee-buzz 0.55s steps(2, jump-none) 0.95s backwards;
  }
}

@keyframes marquee-buzz {
  0%   { opacity: 0; }
  25%  { opacity: 0.8; }
  35%  { opacity: 0.2; }
  55%  { opacity: 1; }
  70%  { opacity: 0.55; }
  100% { opacity: 1; }
}

/* ==========================================================================
   Header — thin amber service rail with a coin slot
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--phos-dim);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--phos-white);
  text-shadow: 0 0 10px rgba(255, 176, 0, 0.45);
}

.logo span { color: var(--phos); }
.logo .tld { color: var(--muted); font-weight: 600; }

.coin-slot {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--phos);
  background: transparent;
  border: 2px solid var(--phos-dim);
  border-radius: 3px;
  padding: 0.5rem 0.8rem 0.42rem;
  cursor: pointer;
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.5);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.coin-slot:hover {
  border-color: var(--phos);
  box-shadow: 0 0 14px rgba(255, 176, 0, 0.25);
}

.coin-slot.coin-bump { animation: coin-bump 0.3s steps(3, jump-none); }

@keyframes coin-bump {
  0%   { color: var(--phos-white); box-shadow: 0 0 22px rgba(255, 176, 0, 0.6); }
  100% { color: var(--phos); }
}

/* ==========================================================================
   Hero — the marquee
   ========================================================================== */

.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  text-align: center;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  top: 50%;
  right: -8%;
  width: clamp(260px, 38vw, 460px);
  height: auto;
  transform: translateY(-52%) rotate(8deg);
  color: var(--phos);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.hero .container { position: relative; }

.attract-tag {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin: 0 0 1.4rem;
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.3);
}

/* The grotesque stays — now it's the marquee, white-hot with chromatic
   fringing (cyan ghost left, magenta ghost right) and phosphor bloom. */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.2vw, 3.7rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
  text-wrap: balance;
  color: var(--phos-white);
  text-shadow:
    -2px 0 0 rgba(53, 224, 208, 0.38),
     2px 0 0 rgba(255, 60, 126, 0.38),
     0 0 16px rgba(255, 176, 0, 0.55),
     0 0 56px rgba(255, 176, 0, 0.22);
}

/* "an email." — pure phosphor, glowing hotter than the rest */
.grad {
  color: var(--phos);
  text-shadow:
    -2px 0 0 rgba(53, 224, 208, 0.42),
     2px 0 0 rgba(255, 60, 126, 0.42),
     0 0 18px rgba(255, 176, 0, 0.75),
     0 0 64px rgba(255, 176, 0, 0.35);
}

.hero-br { display: none; }

.hero-sub {
  color: var(--muted);
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  margin: 0 0 2rem;
}

/* "quick sync" gets struck through shortly after the marquee buzzes on */
.sync { position: relative; white-space: nowrap; }

.sync::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 55%;
  height: 2px;
  border-radius: 2px;
  background: var(--magenta);
  box-shadow: 0 0 8px rgba(255, 60, 126, 0.6);
  transform: scaleX(0);
  transform-origin: left center;
  animation: strike 0.45s cubic-bezier(0.65, 0, 0.35, 1) 1.7s forwards;
}

@keyframes strike { to { transform: scaleX(1); } }

.insert-coin {
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--phos);
  text-shadow: 0 0 12px rgba(255, 176, 0, 0.6);
  margin: 0 0 2rem;
  animation: coin-blink 1.4s steps(1) infinite;
}

.insert-coin .caret { margin-left: 0.4em; }

@keyframes coin-blink {
  0%, 64%  { opacity: 1; }
  65%, 100% { opacity: 0.18; }
}

.boss-hint {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px dashed var(--phos-dim);
  border-radius: 3px;
  padding: 0.5rem 1.1rem;
  margin: 0;
  background: var(--phos-faint);
  box-shadow: inset 0 0 18px rgba(255, 176, 0, 0.05);
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--phos-hot);
  background: rgba(255, 176, 0, 0.08);
  border: 1px solid var(--phos-dim);
  border-bottom-width: 3px;
  border-radius: 4px;
  padding: 0.08rem 0.4rem 0.05rem;
  text-shadow: 0 0 6px rgba(255, 176, 0, 0.5);
}

/* ==========================================================================
   Game select — two banks of cabinet tiles
   ========================================================================== */

.arcade { padding: 1.2rem 0 3.6rem; }

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--phos);
  text-shadow: 0 0 12px rgba(255, 176, 0, 0.55), 0 0 40px rgba(255, 176, 0, 0.2);
  margin: 0 0 0.6rem;
}

.section-title .tick { animation: coin-blink 1.4s steps(1) infinite; }

/* the one allowed neon sign: multiplayer bank glows cyan */
.section-title--vs {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(53, 224, 208, 0.55), 0 0 40px rgba(53, 224, 208, 0.2);
}

.arcade-sub {
  color: var(--muted);
  margin: 0 0 1.6rem;
  font-size: 0.88rem;
}

/* Flex-wrap, not grid, so a partial final row (a lone 5th card, an odd 7th,
   etc.) is CENTERED instead of stranded hard-left. Cards grow to fill each
   full row and wrap to as many columns as the width allows; the per-card
   max-width keeps an orphan from ballooning to the whole row. Scales to any
   card count and collapses to a single column on phones. */
.game-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
}

@media (min-width: 660px) {
  .game-card { max-width: 360px; }
}

/* --- a select-screen tile, not a SaaS card -------------------------------- */
.game-card {
  --ac: var(--phos);
  flex: 1 1 300px;            /* grow to fill the row; settles to 3 across on desktop */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background:
    repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.16) 0px, rgba(0, 0, 0, 0.16) 1px,
      transparent 1px, transparent 3px),
    rgba(255, 176, 0, 0.035);
  border: 1px solid var(--phos-dim);
  border-radius: 5px;
  padding: 1.2rem 1.3rem 1.4rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
              transform 0.18s ease;
}

/* Header row: cabinet number left, player-count badge right. In normal flow
   (not absolute) so the row sizes itself and the badge can never overflow or
   collide with the number, however wide the label gets. */
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  margin-bottom: 0.95rem;
}

.tile-no {
  flex: none;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--muted);
  opacity: 0.8;
}

.players {
  flex: none;
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  border: 1px solid var(--phos-dim);
  border-radius: 2px;
  padding: 0.3rem 0.45rem 0.24rem;
}

/* Each cabinet's identity lives here: the icon is its lit neon sign.
   --ac is set inline per tile in the HTML; everything else stays amber. */
.card-icon {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--ac);
  filter:
    drop-shadow(0 0 6px color-mix(in srgb, var(--ac) 65%, transparent))
    drop-shadow(0 0 18px color-mix(in srgb, var(--ac) 30%, transparent));
}

.card-icon svg {
  display: block;
  width: 40px;
  height: 40px;
}

.game-card h3 {
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--phos-hot);
  text-shadow: 0 0 10px rgba(255, 176, 0, 0.45);
  margin: 0 0 0.7rem;
}

.game-card p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* tile powers up on hover/focus: flicker, then hold the glow — border and
   bloom tint toward the cabinet's own neon */
.game-card:hover,
.game-card:focus-within {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--ac) 75%, var(--phos));
  box-shadow:
    0 0 26px color-mix(in srgb, var(--ac) 24%, transparent),
    0 0 60px color-mix(in srgb, var(--ac) 10%, transparent),
    inset 0 0 30px color-mix(in srgb, var(--ac) 6%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .game-card:hover,
  .game-card:focus-within {
    animation: tile-power 0.4s steps(2, jump-none);
  }
}

@keyframes tile-power {
  0%   { filter: brightness(1); }
  20%  { filter: brightness(1.7); }
  35%  { filter: brightness(0.75); }
  55%  { filter: brightness(1.5); }
  75%  { filter: brightness(0.95); }
  100% { filter: brightness(1); }
}

.game-card:hover h3,
.game-card:focus-within h3 {
  color: var(--phos-white);
  text-shadow:
    -1px 0 0 rgba(53, 224, 208, 0.45),
     1px 0 0 rgba(255, 60, 126, 0.45),
     0 0 14px rgba(255, 176, 0, 0.7);
}

.game-card:hover .card-icon,
.game-card:focus-within .card-icon {
  filter:
    drop-shadow(0 0 9px var(--ac))
    drop-shadow(0 0 28px color-mix(in srgb, var(--ac) 50%, transparent));
}

/* --- INSERT COIN buttons --------------------------------------------------- */
.card-cta { margin-top: auto; }

.play-btn {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--phos);
  background: transparent;
  border: 2px solid var(--phos);
  border-radius: 3px;
  padding: 0.65rem 1.1rem 0.55rem;
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.55);
  transition: background-color 0.12s ease, color 0.12s ease,
              box-shadow 0.12s ease;
}

.play-btn::before { content: "► "; }

/* coin-slot pulse so the row of buttons reads INSERT COIN, INSERT COIN… */
@media (prefers-reduced-motion: no-preference) {
  .play-btn {
    animation: btn-pulse 1.4s steps(1) infinite;
  }
}

@keyframes btn-pulse {
  0%, 64%   { box-shadow: 0 0 14px rgba(255, 176, 0, 0.3); }
  65%, 100% { box-shadow: 0 0 3px rgba(255, 176, 0, 0.1); }
}

.play-btn:hover,
.play-btn:focus-visible {
  background: var(--phos);
  color: #0a0e0a;
  text-shadow: none;
  box-shadow: 0 0 26px rgba(255, 176, 0, 0.55);
  animation: none;
}

/* ==========================================================================
   Scroll-in reveal — js/main.js sets .reveal-ready / .in-view / --i;
   here it reads as each tile's tube warming up in sequence.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .game-card { opacity: 0; }

  .reveal-ready .game-card.in-view {
    opacity: 1;
    animation: tile-on 0.5s steps(5, jump-none) backwards;
    animation-delay: calc(var(--i, 0) * 70ms);
  }

  @keyframes tile-on {
    0%   { opacity: 0; }
    30%  { opacity: 0.65; }
    45%  { opacity: 0.15; }
    70%  { opacity: 1; }
    82%  { opacity: 0.6; }
    100% { opacity: 1; }
  }
}

/* ==========================================================================
   Ad slot — collapses to nothing while empty
   ========================================================================== */

.ad-slot { margin: 0 0 2.5rem; }

.ad-slot-inner:not(:empty) {
  min-height: 90px;
  display: flex;
  justify-content: center;
  border: 1px solid var(--phos-dim);
  border-radius: 5px;
  overflow: hidden;
}

.ad-slot:has(.ad-slot-inner:empty) { display: none; }

/* ==========================================================================
   Footer — bottom status line
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--phos-dim);
  padding: 1.3rem 0 1.6rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.footer-inner p { margin: 0.15rem 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--phos); }
.footer-tag { opacity: 0.75; }

/* ==========================================================================
   Reduced motion — the tube is on, but nothing moves
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .crt-boot { display: none; }
  .crt-overlay { animation: none; }
  .crt-overlay::before { display: none; }
  .insert-coin,
  .section-title .tick { animation: none; }
  .game-card,
  .coin-slot,
  .play-btn { transition: none; }
  .game-card:hover,
  .game-card:focus-within { transform: none; }
  .sync::after { animation: none; transform: scaleX(1); }
}

@media (min-width: 540px) {
  .hero-br { display: inline; }
}

/* ==========================================================================
   BOSS MODE — the fake spreadsheet. Deliberately NOT themed: real
   spreadsheets are white no matter what your taste is. (Copied from
   style.css so this page stands alone; keep the two in sync.)
   ========================================================================== */

#boss-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  color: #222222;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  cursor: cell;
}

#boss-screen[hidden] { display: none; }

.xl-ribbon {
  background: #f3f2f1;
  border-bottom: 1px solid #d4d2d0;
  padding: 4px 8px 0;
  user-select: none;
}

.xl-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 6px;
  font-size: 12px;
  color: #444;
}

.xl-logo {
  background: #107c41;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  border-radius: 3px;
  padding: 2px 5px;
}

.xl-menus {
  display: flex;
  gap: 2px;
  font-size: 12.5px;
  color: #333;
  overflow-x: auto;
  scrollbar-width: none;
}

.xl-menus span {
  padding: 5px 10px 7px;
  border-radius: 4px 4px 0 0;
  white-space: nowrap;
}

.xl-menus span:hover { background: #e6e4e2; }

.xl-menus .active {
  background: #ffffff;
  border: 1px solid #d4d2d0;
  border-bottom: none;
  color: #107c41;
  font-weight: 600;
}

.xl-formulabar {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #d4d2d0;
  background: #ffffff;
  font-size: 12px;
  user-select: none;
}

.xl-namebox {
  width: 72px;
  padding: 4px 8px;
  border-right: 1px solid #d4d2d0;
  color: #333;
  flex-shrink: 0;
}

.xl-fx {
  padding: 4px 8px;
  color: #888;
  border-right: 1px solid #e8e6e4;
  font-style: italic;
  font-family: Georgia, serif;
  flex-shrink: 0;
}

.xl-formula {
  padding: 4px 8px;
  font-family: Calibri, "Segoe UI", sans-serif;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
}

.xl-grid-wrap { flex: 1; overflow: auto; background: #ffffff; }

.xl-grid { border-collapse: collapse; table-layout: fixed; }

.xl-grid th,
.xl-grid td {
  border: 1px solid #e2e0de;
  padding: 2px 6px;
  height: 20px;
  white-space: nowrap;
  overflow: hidden;
  font-weight: normal;
  text-align: left;
}

.xl-grid th {
  background: #f3f2f1;
  border-color: #d4d2d0;
  color: #555;
  text-align: center;
  font-size: 11.5px;
  user-select: none;
  position: sticky;
}

.xl-grid thead th { top: 0; z-index: 2; }
.xl-grid tbody th { left: 0; z-index: 1; width: 36px; }
.xl-grid thead th:first-child { left: 0; z-index: 3; }

.xl-grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
.xl-grid td.neg { color: #c00000; }
.xl-grid td.head { font-weight: 700; background: #f8f8f8; }
.xl-grid tr.total td { font-weight: 700; border-top: 2px solid #555; }

.xl-grid td.selected {
  outline: 2px solid #107c41;
  outline-offset: -2px;
}

.xl-tabs {
  display: flex;
  align-items: center;
  gap: 1px;
  background: #f3f2f1;
  border-top: 1px solid #d4d2d0;
  padding: 0 6px;
  font-size: 12px;
  user-select: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.xl-tabs span {
  padding: 4px 12px;
  border: 1px solid #d4d2d0;
  border-top: none;
  background: #eae8e6;
  color: #444;
  white-space: nowrap;
}

.xl-tabs .active {
  background: #ffffff;
  color: #107c41;
  font-weight: 600;
  border-bottom: 2px solid #107c41;
}

.xl-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #107c41;
  color: #ffffff;
  font-size: 11.5px;
  padding: 3px 12px;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}
