@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 Help (src/help): the sentences to say to Claude. */
.help-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.help-job {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.help-say {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.help-say code {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.help-copy {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.help-copy:hover,
.help-copy:focus-visible {
  border-color: var(--accent);
  color: var(--text-primary);
}
/* The Portal start page. Built from the design system tokens only (src/ds/tokens); no new values
 * beyond layout measures on the 4px grid. Rendered inside the shell's light content canvas. */

.portal {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 1120px;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text-primary);
}

.portal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.portal-head h1,
.help-article h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

.portal-sub {
  margin: var(--space-1) 0 0;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.portal-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}

.portal-crumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.portal-crumbs a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.portal-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.portal-eyebrow {
  margin: 0;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.portal-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  background: var(--accent-wash);
  color: var(--accent-active);
}

.portal-count {
  font-family: var(--font-mono);
  font-feature-settings: var(--num-tabular);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.portal-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
}

.portal-list > li + li {
  border-top: 1px solid var(--border);
}

.portal-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-right: var(--space-2);
}

.portal-row-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  color: inherit;
  text-decoration: none;
}

.portal-row-link:hover {
  background: var(--bg-hover);
}

.portal-row-icon {
  flex: 0 0 auto;
  color: var(--text-tertiary);
}

.portal-row-icon.is-dashboard {
  color: var(--accent-active);
}

.portal-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.portal-row-title {
  font-weight: var(--fw-semibold);
}

.portal-row-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.portal-row-where {
  flex: 0 0 auto;
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.portal-badge {
  flex: 0 0 auto;
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  background: var(--accent-wash);
  color: var(--accent-active);
}

.portal-badge.is-muted {
  background: var(--bg-surface-2);
  color: var(--text-secondary);
}

.portal-empty {
  padding: var(--space-8) var(--space-4);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--text-secondary);
}

.portal-alert {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  background: var(--danger-wash);
  color: var(--text-primary);
  font-size: var(--fs-sm);
}

.portal-alert > span {
  flex: 1;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--control-md);
  padding: 0 var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-fast);
}

.portal-btn:hover:not(:disabled) {
  background: var(--bg-active);
}

.portal-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.portal-btn.is-primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-contrast);
}

.portal-btn.is-primary:hover:not(:disabled) {
  background: var(--accent-active);
}

.portal-btn.is-danger {
  border-color: var(--danger);
  background: transparent;
  color: var(--danger);
}

.portal-btn.is-small {
  height: var(--control-sm);
  padding: 0 var(--space-2);
  font-size: var(--fs-xs);
}

.portal-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
}

.portal-list .portal-form {
  border: none;
  border-radius: 0;
  background: transparent;
}

.portal-form-title {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}

.portal-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}

.portal-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
}

.portal-field select {
  height: var(--control-md);
  padding: 0 var(--space-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-inset);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
}

.portal-field-error {
  font-weight: var(--fw-regular);
  color: var(--danger);
}

.portal-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.portal-inline {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
}

/* A Dashboard inside the Portal: the framed page fills the content canvas. */
.portal-frame {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  font-family: var(--font-sans);
}

.portal-frame-page {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: var(--bg-app);
}

/* The folders as rows. A row is a link for a reader; for an admin it carries a drag handle, a
   thumbnail that takes a dropped image, the title as a field, the count and the tools. */
.portal-frows {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
}

.portal-frow {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  padding: 0 var(--space-3);
  transition: background var(--dur-fast);
}

.portal-frow + .portal-frow {
  border-top: 1px solid var(--border);
}

.portal-frow:hover,
.portal-frow:focus-within {
  background: var(--bg-hover);
}

.portal-frow-link {
  display: flex;
  flex: 1;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  min-height: 56px;
  color: inherit;
  text-decoration: none;
}

.portal-frow-title {
  flex: 1;
  min-width: 0;
  font-weight: var(--fw-semibold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-tile-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.portal-frow-title-input {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 var(--space-2);
  font: inherit;
  font-weight: var(--fw-semibold);
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.portal-frow-title-input:hover {
  border-color: var(--border-strong);
}

.portal-frow-title-input:focus {
  outline: none;
  background: var(--bg-surface);
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.portal-frow-title-input[aria-invalid='true'] {
  border-color: var(--danger);
}

.portal-frow-handle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 32px;
  padding: 0;
  color: var(--text-tertiary);
  cursor: grab;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
}

.portal-frow-handle:hover {
  color: var(--text-primary);
}

.portal-frow-handle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.portal-frow-handle.is-placeholder {
  cursor: default;
}

.portal-frow-thumb {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.portal-frow-thumb input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.portal-frow-thumb-reset {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  color: var(--text-primary);
  cursor: pointer;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  box-shadow: var(--shadow-xs);
}

.portal-frow-thumb:hover .portal-frow-thumb-reset,
.portal-frow-thumb:focus-within .portal-frow-thumb-reset {
  display: inline-flex;
}

.portal-frow-thumb-reset:hover {
  color: var(--danger);
}

.portal-frow-thumb:focus-within {
  box-shadow: var(--focus-ring);
}

.portal-frow-tools {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.portal-frow-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}

.portal-frow-open:hover {
  color: var(--text-primary);
  background: var(--bg-active);
}

.portal-frow.is-dragging {
  opacity: 0.4;
}

/* The drop line: where a dragged row will land. */
.portal-frow.is-before::before,
.portal-frows-end {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 2px;
  content: '';
  background: var(--accent);
}

.portal-frows-end {
  position: static;
  margin-top: -1px;
}

/* An image dragged over a row: it will become that folder's thumbnail. */
.portal-frow.is-drop {
  background: var(--accent-wash);
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .portal-frow {
    transition: none;
  }
}
/*
 * The navigation rail of DashboardLayout (the idiom of the games-inventory rail): a 60px icon strip
 * that is always there and unfolds over the content under the mouse or with keyboard focus inside.
 * The slot holds the strip's 60px in the layout, so the content canvas, and a framed Dashboard in
 * it, is never resized. The rail's inner layout is the same folded and unfolded: only its width
 * animates (clipped by `overflow: hidden`), so the icons stay centred and never move vertically,
 * and the text beside them fades in as it grows. Folded, a short divider stands in for a heading.
 */
.dl-railslot {
  position: relative;
  z-index: 800;
  flex: 0 0 auto;
  width: var(--sidebar-w-collapsed);
}

.dl-side {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-w);
  overflow: hidden;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  box-shadow: 14px 0 36px rgba(11, 14, 20, 0.28);
  transition:
    width 0.22s ease,
    box-shadow 0.22s ease;
}

.dl-side--collapsed {
  width: var(--sidebar-w-collapsed);
  box-shadow: none;
}

.dl-fade {
  white-space: nowrap;
  transition: opacity 0.22s ease 0.1s;
}

.dl-side--collapsed .dl-fade {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.08s ease;
}

/* A group heading keeps its height folded (no icon moves); its text goes, a divider stands in. */
.dl-grouplabel {
  position: relative;
  box-sizing: border-box;
  height: 34px;
  padding: 10px 11px 0;
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.22s ease 0.1s;
}

.dl-side--collapsed .dl-grouplabel {
  color: transparent;
  pointer-events: none;
  transition: color 0.08s ease;
}

.dl-grouplabel--rule::after {
  position: absolute;
  top: 17px;
  left: 20px;
  width: 20px;
  height: 1px;
  content: '';
  background: rgba(255, 255, 255, 0.14);
  opacity: 0;
  transition: opacity 0.08s ease;
}

.dl-side--collapsed .dl-grouplabel--rule::after {
  opacity: 1;
  transition: opacity 0.22s ease 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  .dl-side,
  .dl-fade,
  .dl-grouplabel,
  .dl-grouplabel--rule::after {
    transition: none;
  }
}

/* The breadcrumb of the current page, at the foot of the unfolded rail. */
.dl-location {
  padding: 10px 15px;
  font-size: var(--fs-xs);
  white-space: normal;
  border-top: 1px solid var(--border);
}


/* 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);
}
