@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');/*
 * The navigation rail of DashboardLayout, in the manner of the Games Inventory rail: on a desktop
 * viewport it is an icon strip in a 60px slot of the page that unfolds over the page while the mouse
 * is on it (or keyboard focus is inside) and folds back when it leaves. Its inner layout is the same
 * in both states, only the width animates (clipped by `overflow: hidden`), so the icons never move.
 * The text beside them fades in as the rail grows and out as it folds, and a section heading, which
 * has no room in the strip, is replaced by a short divider. On a narrow viewport the rail is an
 * off-canvas drawer opened from the menu button in the top bar.
 */
.fa-railslot {
  flex: none;
  width: var(--sidebar-w-collapsed, 60px);
}

.fa-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-w, 240px);
  overflow: hidden;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  transition: width 0.22s ease;
}

.fa-menubtn,
.fa-railclose,
.fa-scrim {
  display: none;
}

.fa-brandtext,
.fa-navlabel,
.fa-navbadge,
.fa-useridentity,
.fa-signout {
  white-space: nowrap;
  transition: opacity 0.22s ease 0.1s;
}

/* A heading has no room in the strip: it keeps its height so no icon moves, and a short divider
   stands in for it while folded. */
.fa-railsection {
  position: relative;
  box-sizing: border-box;
  height: 34px;
  overflow: hidden;
  color: var(--text-tertiary);
  white-space: nowrap;
  transition: color 0.22s ease 0.1s;
}

.fa-railsection::after {
  position: absolute;
  top: 17px;
  left: 20px;
  width: 20px;
  height: 1px;
  content: '';
  background: var(--border-strong);
  opacity: 0;
  transition: opacity 0.08s ease;
}

@media (min-width: 761px) {
  .fa-rail--collapsed {
    width: var(--sidebar-w-collapsed, 60px);
  }

  /* Unfolded under the mouse it floats over the page, so give it an edge. */
  .fa-rail:not(.fa-rail--collapsed) {
    box-shadow: 14px 0 36px rgba(11, 14, 20, 0.28);
  }

  .fa-rail--collapsed .fa-brandtext,
  .fa-rail--collapsed .fa-navlabel,
  .fa-rail--collapsed .fa-navbadge,
  .fa-rail--collapsed .fa-useridentity,
  .fa-rail--collapsed .fa-signout {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.08s ease;
  }

  .fa-rail--collapsed .fa-railsection {
    color: transparent;
    pointer-events: none;
    transition: color 0.08s ease;
  }

  .fa-rail--collapsed .fa-railsection::after {
    opacity: 1;
    transition: opacity 0.22s ease 0.1s;
  }
}

@media (max-width: 760px) {
  .fa-railslot {
    width: 0;
  }

  .fa-rail {
    z-index: 60;
    width: min(260px, 85vw);
    box-shadow: 16px 0 40px rgba(11, 14, 20, 0.3);
    transform: translateX(-104%);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .fa-rail--open {
    transform: translateX(0);
  }

  .fa-menubtn {
    display: flex;
  }

  .fa-railclose {
    display: flex;
  }

  .fa-scrim {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: block;
    padding: 0;
    cursor: pointer;
    background: rgba(11, 14, 20, 0.45);
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fa-rail,
  .fa-brandtext,
  .fa-navlabel,
  .fa-navbadge,
  .fa-useridentity,
  .fa-signout,
  .fa-railsection,
  .fa-railsection::after {
    transition: none;
  }
}


/* Firebase Admin Design System — entry point. Import this once, from main.tsx.
 *
 * Mirrors the design system's own styles.css (@import lines only). Fonts come
 * from Google Fonts, matching the design system; if SOFTGAMES ever licenses the
 * brand fonts, replace the @import in fonts.css with local @font-face rules.
 */
/* Firebase Admin Design System — Webfonts
 * NOTE: These are Google Fonts substitutes chosen for a geometric-sans +
 * mono instrumentation feel. No brand font files were provided.
 *   Display / UI : Space Grotesk (headings, brand)
 *   Body / UI    : Manrope
 *   Mono / data  : JetBrains Mono (numbers, IDs, logs, code)
 * If SOFTGAMES has licensed brand fonts, drop the files in this folder and
 * replace the @import below with local @font-face rules.
 *
 * VENDORED from the Firebase Admin Design System — see ../README.md. Do not edit
 * by hand; re-copy from the design system instead.
 */
/* Firebase Admin Design System — Color tokens
 * Dark-first. Light theme lives under [data-theme="light"].
 * Base ramps are raw values; semantic aliases are what components consume.
 *
 * VENDORED from the Firebase Admin Design System — see ../README.md. Do not edit
 * by hand; re-copy from the design system instead.
 */
:root {
  /* ---- Brand / accent (Firebase amber) ---- */
  --amber-300: #fbbf24;
  --amber-400: #f59e0b; /* primary accent */
  --amber-500: #e08600;
  --amber-600: #b86c00;
  --amber-050: #4a3410; /* dark tint for wash/backgrounds */

  /* ---- Neutral ramp (cool slate) ---- */
  --slate-950: #0b0e14;
  --slate-900: #12161f;
  --slate-850: #161b26;
  --slate-800: #181d28;
  --slate-750: #1e2430;
  --slate-700: #262d3a;
  --slate-600: #333b4a;
  --slate-500: #4a5468;
  --slate-400: #6b7385;
  --slate-300: #9aa3b2;
  --slate-200: #c3c9d4;
  --slate-100: #e7eaf0;
  --slate-050: #f4f6fa;
  --white: #ffffff;

  /* ---- Semantic status hues ---- */
  --blue-400: #3b82f6;
  --blue-tint: #142743;
  --green-400: #22c55e;
  --green-tint: #0f2c1c;
  --yellow-400: #eab308;
  --yellow-tint: #33290a;
  --red-400: #ef4444;
  --red-tint: #3a1414;
  --violet-400: #8b5cf6;
  --teal-400: #2dd4bf;

  /* ---- Data-viz categorical palette ---- */
  --viz-1: #f59e0b;
  --viz-2: #3b82f6;
  --viz-3: #2dd4bf;
  --viz-4: #8b5cf6;
  --viz-5: #ec4899;
  --viz-6: #22c55e;

  /* ================= SEMANTIC ALIASES (dark) ================= */
  --bg-app: var(--slate-950);
  --bg-surface: var(--slate-900);
  --bg-surface-2: var(--slate-800);
  --bg-elevated: var(--slate-750);
  --bg-inset: #090b10;
  --bg-hover: rgba(255, 255, 255, 0.04);
  --bg-active: rgba(255, 255, 255, 0.07);

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: var(--slate-600);
  --border-focus: var(--amber-400);

  --text-primary: var(--slate-100);
  --text-secondary: var(--slate-300);
  --text-tertiary: var(--slate-400);
  --text-disabled: var(--slate-500);
  --text-inverse: var(--slate-950);

  --accent: var(--amber-400);
  --accent-hover: var(--amber-300);
  --accent-active: var(--amber-500);
  --accent-wash: var(--amber-050);
  --accent-contrast: #1a1205;

  --info: var(--blue-400);
  --info-wash: var(--blue-tint);
  --success: var(--green-400);
  --success-wash: var(--green-tint);
  --warning: var(--yellow-400);
  --warning-wash: var(--yellow-tint);
  --danger: var(--red-400);
  --danger-wash: var(--red-tint);

  --focus-ring: 0 0 0 2px var(--bg-app), 0 0 0 4px var(--amber-400);
}

/* ================= LIGHT THEME =================
 * Soft, low-contrast content canvas. Pairs with the dark navigation rail
 * (the sidebar keeps the :root dark tokens). Surfaces sit close together and
 * text is intentionally softened (not near-black) to reduce contrast.
 */
[data-theme='light'] {
  --bg-app: #edeff4; /* page behind cards */
  --bg-surface: #fbfbfd; /* cards — off-white, subtle */
  --bg-surface-2: #f1f3f7; /* table headers, insets, wells */
  --bg-elevated: #ffffff; /* overlays lift slightly above surface */
  --bg-inset: #e9ecf2; /* input wells */
  --bg-hover: rgba(24, 30, 44, 0.035);
  --bg-active: rgba(24, 30, 44, 0.06);

  --border: rgba(24, 30, 44, 0.08);
  --border-strong: #d9dee7;
  --border-focus: var(--amber-500);

  --text-primary: #2b3342; /* softened, not near-black */
  --text-secondary: #5b6578;
  --text-tertiary: #8a93a3;
  --text-disabled: #aeb6c2;
  --text-inverse: #ffffff;

  --accent: var(--amber-500);
  --accent-hover: var(--amber-400);
  --accent-active: var(--amber-600);
  --accent-wash: #fbf1de;
  --accent-contrast: #ffffff;

  --info-wash: #e9f1fd;
  --success-wash: #e7f5ec;
  --warning-wash: #faf2dc;
  --danger-wash: #fbe9e9;

  --focus-ring: 0 0 0 2px var(--bg-app), 0 0 0 4px var(--amber-500);
}
/* Firebase Admin Design System — Typography tokens
 *
 * VENDORED from the Firebase Admin Design System — see ../README.md. Do not edit
 * by hand; re-copy from the design system instead.
 */
:root {
  --font-display: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Type scale (dashboard-tuned; compact) */
  --fs-display: 30px;
  --fs-h1: 24px;
  --fs-h2: 20px;
  --fs-h3: 16px;
  --fs-body: 14px;
  --fs-sm: 13px;
  --fs-xs: 12px;
  --fs-2xs: 11px;
  --fs-metric: 28px; /* KPI numbers */
  --fs-metric-lg: 40px;

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.5;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-caps: 0.06em;

  /* tabular figures for data alignment */
  --num-tabular: 'tnum' 1, 'lnum' 1;
}
/* Firebase Admin Design System — Spacing & sizing tokens
 * 4px base grid.
 *
 * VENDORED from the Firebase Admin Design System — see ../README.md. Do not edit
 * by hand; re-copy from the design system instead.
 */
:root {
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Control heights */
  --control-sm: 28px;
  --control-md: 34px;
  --control-lg: 40px;

  /* Layout dimensions */
  --sidebar-w: 240px;
  --sidebar-w-collapsed: 60px;
  --topbar-h: 56px;
  --content-max: 1440px;
}
/* Firebase Admin Design System — Radii, borders, shadows, motion
 *
 * VENDORED from the Firebase Admin Design System — see ../README.md. Do not edit
 * by hand; re-copy from the design system instead.
 */
:root {
  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* Borders */
  --border-w: 1px;

  /* Shadows (dark-tuned, low & tight) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-focus-amber: 0 0 0 3px rgba(245, 158, 11, 0.25);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 260ms;
}

[data-theme='light'] {
  --shadow-xs: 0 1px 2px rgba(16, 21, 31, 0.06);
  --shadow-sm: 0 1px 3px rgba(16, 21, 31, 0.08), 0 1px 2px rgba(16, 21, 31, 0.06);
  --shadow-md: 0 4px 14px rgba(16, 21, 31, 0.1);
  --shadow-lg: 0 14px 38px rgba(16, 21, 31, 0.14);
}

/* Firebase Admin Design System — base element resets & helpers.
 *
 * VENDORED from the Firebase Admin Design System — see ../README.md. Do not edit
 * by hand; re-copy from the design system instead.
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  margin: 0;
  color: var(--text-primary);
}

/* Tabular numerals utility for data */
.tnum {
  font-variant-numeric: tabular-nums lining-nums;
}

.mono {
  font-family: var(--font-mono);
}

::selection {
  background: rgba(245, 158, 11, 0.28);
}

/* Scrollbars (dark-friendly) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--slate-600) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background: var(--slate-600);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--slate-500);
}
