/* Project Cockpit branding for LibreChat (design-system/README.md). LibreChat paints itself from
   its own custom properties (--surface-*, --text-*, --border-*, --surface-submit ...) plus a
   shadcn set in HSL triplets; this file restates them on the design system's light and dark
   values. The token file is NOT loaded here: LibreChat's names collide with ours (--accent,
   --border, --text-primary), so the values are inlined from project-cockpit-tokens.css and must
   follow it when the tokens change. Mounted over /app/client/dist/assets/brand/ and linked from
   the patched index.html by deploy-librechat.sh. */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-greek-400-normal.woff2") format("woff2"); unicode-range: U+0370-03FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-sans-3-greek-600-normal.woff2") format("woff2"); unicode-range: U+0370-03FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-sans-3-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Geist and Geist Mono, the design system's face, from this brand folder (deploy-librechat.sh copies every design-system font) */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-latin-variable.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-mono-latin-variable.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-mono-latin-ext-variable.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Code Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-code-pro-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Code Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-code-pro-latin-600-normal.woff2") format("woff2"); }

/* light (the first theme) */
:root, html, html.light {
  --presentation: #ffffff;
  --text-primary: #1a212b;
  --text-secondary: #526070;
  --text-secondary-alt: #526070;
  --text-tertiary: #98a3b0;
  --text-warning: #5c4300;
  --text-destructive: #a3121d;
  --header-primary: #ffffff;
  --header-hover: #eceff2;
  --header-button-hover: #e3ecf7;
  --surface-active: #e3ecf7;
  --surface-active-alt: #eceff2;
  --surface-hover: #e3ecf7;
  --surface-hover-alt: #eceff2;
  --surface-primary: #ffffff;
  --surface-primary-alt: #f6f7f8;
  --surface-primary-contrast: #eceff2;
  --surface-secondary: #f6f7f8;
  --surface-secondary-alt: #eceff2;
  --surface-tertiary: #eceff2;
  --surface-tertiary-alt: #ffffff;
  --surface-dialog: #ffffff;
  --surface-submit: #004494;
  --surface-submit-hover: #003776;
  --surface-destructive: #a3121d;
  --surface-destructive-hover: #7f0e17;
  --surface-chat: #ffffff;
  --border-light: #d9dee4;
  --border-medium-alt: #d9dee4;
  --border-medium: #d9dee4;
  --border-heavy: #7d8a99;
  --border-xheavy: #526070;
  --border-destructive: #c4202c;
  --brand-purple: #004494;
  --ring-primary: #004494;
  /* shadcn triplets: hue saturation lightness of the same values */
  --background: 0 0% 100%;
  --foreground: 214 25% 14%;
  --card: 0 0% 100%;
  --card-foreground: 214 25% 14%;
  --primary: 213 100% 29%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 14% 96%;
  --secondary-foreground: 214 25% 14%;
  --muted: 210 14% 96%;
  --muted-foreground: 212 16% 38%;
  --accent: 213 56% 93%;
  --accent-foreground: 213 100% 29%;
  --destructive: 355 80% 35%;
  --destructive-foreground: 0 0% 100%;
  --border: 213 17% 87%;
  --input: 213 17% 87%;
  --ring: 213 100% 29%;
  --radius: 0.375rem;
  --switch-unchecked: 212 13% 55%;
}
/* dark (follows the OS or the user's LibreChat setting) */
html.dark, .dark {
  --presentation: #1a212b;
  --text-primary: #e8ecf1;
  --text-secondary: #a3aebb;
  --text-secondary-alt: #a3aebb;
  --text-tertiary: #6f7c8b;
  --text-warning: #ffd75c;
  --text-destructive: #ff9ea3;
  --header-primary: #1a212b;
  --header-hover: #29323f;
  --header-button-hover: #16243a;
  --surface-active: #16243a;
  --surface-active-alt: #29323f;
  --surface-hover: #16243a;
  --surface-hover-alt: #29323f;
  --surface-primary: #10151c;
  --surface-primary-alt: #1a212b;
  --surface-primary-contrast: #1a212b;
  --surface-secondary: #1a212b;
  --surface-secondary-alt: #1a212b;
  --surface-tertiary: #0b0f14;
  --surface-tertiary-alt: #29323f;
  --surface-dialog: #1a212b;
  --surface-submit: #8fb3e0;
  --surface-submit-hover: #b1c9ea;
  --surface-destructive: #3d0d12;
  --surface-destructive-hover: #5a141b;
  --surface-chat: #1a212b;
  --border-light: #29323f;
  --border-medium-alt: #29323f;
  --border-medium: #3a4655;
  --border-heavy: #7d8a99;
  --border-xheavy: #a3aebb;
  --border-destructive: #e0505a;
  --brand-purple: #8fb3e0;
  --ring-primary: #8fb3e0;
  --background: 214 27% 9%;
  --foreground: 213 25% 93%;
  --card: 214 25% 14%;
  --card-foreground: 213 25% 93%;
  --primary: 213 57% 72%;
  --primary-foreground: 217 70% 15%;
  --secondary: 214 25% 14%;
  --secondary-foreground: 213 25% 93%;
  --muted: 214 25% 14%;
  --muted-foreground: 212 15% 69%;
  --accent: 217 45% 16%;
  --accent-foreground: 213 57% 72%;
  --destructive: 355 65% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 214 21% 20%;
  --input: 214 21% 20%;
  --ring: 213 57% 72%;
}
.dark .text-white\/50, .dark .text-token-text-primary { color: #e8ecf1; }
/* the dark submit button carries dark ink on the light accent (on-accent) */
.dark .bg-surface-submit, .dark [class*="bg-surface-submit"] { color: #0b1f3f; }

/* type: the face of every Project Cockpit surface everywhere but mathematics (2026-10-04, the Operator: "move chat's interior
   to Geist ... all systems should inherit the fonts from a centrally stored option/setting"). The setting is the design
   system's --font-sans and --font-mono, which the suite bar publishes on the page as --pc-font-sans and --pc-font-mono;
   the values after the comma are the same, for the moment before the bar's script runs. Source Sans 3 (v1) is gone. */
*:not(code):not(pre):not(kbd):not(samp):not(.katex):not(.katex *):not(.font-mono):not(.font-mono *) { font-family: var(--pc-font-sans, "Geist", "Source Sans 3", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif) !important; }
code, pre, kbd, samp, .font-mono, .font-mono * { font-family: var(--pc-font-mono, "Geist Mono", "Source Code Pro", "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace) !important; }
body { -webkit-font-smoothing: antialiased; }

/* the auth pages: LibreChat's green is the accent; the card sits on the page surface */
.text-green-500, .text-green-600, .text-green-700, .hover\:text-green-600:hover, .hover\:text-green-700:hover { color: #004494 !important; }
.dark .text-green-500, .dark .text-green-600, .dark .text-green-700, .dark .hover\:text-green-600:hover { color: #8fb3e0 !important; }
.bg-green-500, .bg-green-600, .bg-green-700, .hover\:bg-green-600:hover, .hover\:bg-green-700:hover, .bg-surface-submit { background-color: #004494 !important; color: #ffffff; }
.dark .bg-green-500, .dark .bg-green-600, .dark .bg-green-700, .dark .hover\:bg-green-600:hover, .dark .bg-surface-submit { background-color: #8fb3e0 !important; color: #0b1f3f; }
.bg-green-50, .bg-green-100 { background-color: #e3ecf7 !important; }
.dark .bg-green-50, .dark .bg-green-100 { background-color: #16243a !important; }
.border-green-500, .border-green-600, .focus\:border-green-500:focus, .focus\:ring-green-500:focus { border-color: #004494 !important; }
.ring-green-500, .focus\:ring-green-500:focus, .focus-visible\:ring-green-500:focus-visible { --tw-ring-color: #004494 !important; }
.dark .ring-green-500, .dark .focus\:ring-green-500:focus { --tw-ring-color: #8fb3e0 !important; }
.w-authPageWidth { width: 400px; max-width: 100%; }
.w-authPageWidth.bg-white, .w-authPageWidth.dark\:bg-gray-900 { background: var(--surface-primary); border: 1px solid var(--border-light); border-radius: 12px; box-shadow: 0 1px 2px #10151c14; }
.dark .w-authPageWidth { background: var(--surface-secondary); }
.w-authPageWidth h1 { font-weight: 600 !important; font-size: 24px !important; line-height: 32px !important; }
.w-authPageWidth img[alt] { width: 40px; height: 40px; }

/* controls: the system's radius and focus ring */
button, input, select, textarea { border-radius: 4px; }
.rounded-2xl, .rounded-xl, .rounded-3xl { border-radius: 6px !important; }
.rounded-full { border-radius: 9999px !important; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--ring-primary) !important; outline-offset: 2px !important; box-shadow: none !important; }
