/* Ground Crew overlay for Cinny 4.12.8 — not a fork.
   Tokens are applied on :root and on both the light (.oq6d071w) and dark
   (._15q3ngn1) theme classes so the login/register screens are themed
   even before Cinny applies .dark-theme (or if the system preference is light). */

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
}

:root {
  --gc-bg: #07051a;
  --gc-bg2: #0c0826;
  --gc-panel: #0c0a22;
  --gc-surface: #120c30;
  --gc-surface2: #1a1340;
  --gc-line: #2a2058;
  --gc-text: #ece8ff;
  --gc-muted: #9b94c0;
  --gc-lav: #c9b6ff;
  --gc-violet: #5b3fc4;
  --gc-gold: #e8c46a;
  --gc-gold2: #f7e3a3;
  --gc-teal: #5eead4;
  --gc-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;

  --font-secondary: var(--gc-mono);
  --tc-link: #f7e3a3;

  /* Folds color contract used by both light and dark Cinny themes */
  --oq6d070: #07051a;
  --oq6d071: #0c0826;
  --oq6d072: #120c30;
  --oq6d073: #2a2058;
  --oq6d074: #ece8ff;
  --oq6d075: #0c0a22;
  --oq6d076: #120c30;
  --oq6d077: #1a1340;
  --oq6d078: #2a2058;
  --oq6d079: #ece8ff;
  --oq6d07a: #120c30;
  --oq6d07b: #1a1340;
  --oq6d07c: #241850;
  --oq6d07d: #3a2a6a;
  --oq6d07e: #ece8ff;
  --oq6d07f: #c9b6ff;
  --oq6d07g: #d4c6ff;
  --oq6d07h: #bba3ff;
  --oq6d07i: #5b3fc4;
  --oq6d07j: #1a1230;
  --oq6d07k: #3d2a8a;
  --oq6d07l: #4a349e;
  --oq6d07m: #5b3fc4;
  --oq6d07n: #6d52d4;
  --oq6d07o: #ece8ff;
  --oq6d07p: #f7e3a3;
  --oq6d07q: #e8c46a;
  --oq6d07r: #d4b056;
  --oq6d07s: #c9a34a;
  --oq6d07t: #1a1230;
  --oq6d07u: #2a2058;
  --oq6d07v: #3a2a6a;
  --oq6d07w: #4a349e;
  --oq6d07x: #5b3fc4;
  --oq6d07y: #ece8ff;
  --oq6d07z: #5eead4;
  --oq6d0710: #4ad4c0;
  --oq6d0711: #3fc4b0;
  --oq6d0712: #36b8a4;
  --oq6d0713: #07332e;
  --oq6d0714: #0c4a43;
  --oq6d0715: #105a51;
  --oq6d0716: #14685e;
  --oq6d0717: #1a7a6e;
  --oq6d0718: #c8fff6;
  --oq6d0719: #e8c46a;
  --oq6d071a: #f0cf7a;
  --oq6d071b: #d4b056;
  --oq6d071c: #c9a34a;
  --oq6d071d: #3f2a15;
  --oq6d071e: #5e3f20;
  --oq6d071f: #694624;
  --oq6d071g: #734d27;
  --oq6d071h: #7d542b;
  --oq6d071i: #f7e3a3;
  --oq6d071t: rgba(247, 227, 163, 0.55);
  --oq6d071u: rgba(0, 0, 0, 0.85);
  --oq6d071v: rgba(7, 5, 26, 0.86);
}

/* Re-apply on every Cinny theme class so light-mode first paint cannot win */
html, body, #appBody, #root,
.oq6d071w, ._15q3ngn1,
.dark-theme, .butter-theme, .light-theme, .silver-theme {
  --font-secondary: var(--gc-mono);
  --tc-link: #f7e3a3;
  --oq6d070: #07051a;
  --oq6d071: #0c0826;
  --oq6d072: #120c30;
  --oq6d073: #2a2058;
  --oq6d074: #ece8ff;
  --oq6d075: #0c0a22;
  --oq6d076: #120c30;
  --oq6d077: #1a1340;
  --oq6d078: #2a2058;
  --oq6d079: #ece8ff;
  --oq6d07a: #120c30;
  --oq6d07b: #1a1340;
  --oq6d07c: #241850;
  --oq6d07d: #3a2a6a;
  --oq6d07e: #ece8ff;
  --oq6d07f: #c9b6ff;
  --oq6d07g: #d4c6ff;
  --oq6d07h: #bba3ff;
  --oq6d07i: #5b3fc4;
  --oq6d07j: #1a1230;
  --oq6d07k: #3d2a8a;
  --oq6d07l: #4a349e;
  --oq6d07m: #5b3fc4;
  --oq6d07n: #6d52d4;
  --oq6d07o: #ece8ff;
  --oq6d07p: #f7e3a3;
  --oq6d07q: #e8c46a;
  --oq6d07r: #d4b056;
  --oq6d07s: #c9a34a;
  --oq6d07t: #1a1230;
  --oq6d07u: #2a2058;
  --oq6d07v: #3a2a6a;
  --oq6d07w: #4a349e;
  --oq6d07x: #5b3fc4;
  --oq6d07y: #ece8ff;
  --oq6d07z: #5eead4;
  --oq6d0710: #4ad4c0;
  --oq6d0711: #3fc4b0;
  --oq6d0712: #36b8a4;
  --oq6d0713: #07332e;
  --oq6d0714: #0c4a43;
  --oq6d0715: #105a51;
  --oq6d0716: #14685e;
  --oq6d0717: #1a7a6e;
  --oq6d0718: #c8fff6;
  --oq6d0719: #e8c46a;
  --oq6d071a: #f0cf7a;
  --oq6d071b: #d4b056;
  --oq6d071c: #c9a34a;
  --oq6d071d: #3f2a15;
  --oq6d071e: #5e3f20;
  --oq6d071f: #694624;
  --oq6d071g: #734d27;
  --oq6d071h: #7d542b;
  --oq6d071i: #f7e3a3;
  --oq6d071t: rgba(247, 227, 163, 0.55);
  --oq6d071u: rgba(0, 0, 0, 0.85);
  --oq6d071v: rgba(7, 5, 26, 0.86);
}

html, body, #appBody, #root {
  background: var(--gc-bg) !important;
  color: var(--gc-text);
  color-scheme: dark;
}

/* Auth page shell (._15upz2y0) already uses the tokens; keep the dotted field dark too */
._15upz2y0, ._4lbgaj0 {
  background-color: var(--gc-bg) !important;
  color: var(--gc-text);
}

html, body, #appBody, #root, #root * {
  font-family: var(--gc-mono) !important;
}

:focus-visible {
  outline-color: #f7e3a3 !important;
}

/* Swap the "Cinny" wordmark on the login/register card for "Ground Crew" */
img[alt="Cinny Logo"] + *,
img[alt="Cinny logo"] + * {
  font-size: 0 !important;
  letter-spacing: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}
img[alt="Cinny Logo"] + *::after,
img[alt="Cinny logo"] + *::after {
  content: "Ground Crew";
  font-family: var(--gc-mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: var(--gc-gold2);
  white-space: nowrap;
}

/* Soft gold tint on the default Cinny mark so it sits on the dark header */
img[alt="Cinny Logo"],
img[alt="Cinny logo"] {
  filter: sepia(0.35) saturate(1.4) hue-rotate(5deg) brightness(1.15);
}
