/*
  BrainAssistant brand tokens for web pages, taken from the app's Assistant_BrainIX/Style/StyleDef.xaml: its colours,
  corner radii, field style and font (Roboto, served from this project). Served as _content/BrandingIX/brand-tokens.css
  by every app that references Core/BrandingIX; link it before the page's own stylesheet and build on the --ba-*
  variables instead of writing colours. Keep in sync with BrandColors.Dark (same names); BrandTokensTests checks it.
*/

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/roboto-400.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/roboto-500.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/roboto-700.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  /* StyleDef: Primary_10 / Primary_95 / Primary_9 / Primary_85 */
  --ba-bg: #121212;
  --ba-bg-elevated: #191919;
  --ba-surface: #212121;
  --ba-surface-strong: #313131;
  /* StyleDef: Primary_8 (dividers) / Primary_7 (card border) */
  --ba-line: #424242;
  --ba-line-strong: #616161;
  /* StyleDef: Primary_0 / Primary_2 / Primary_4 / Primary_5 */
  --ba-ink: #fafafa;
  --ba-ink-soft: #eeeeee;
  --ba-muted: #bdbdbd;
  --ba-subtle: #9e9e9e;
  /* StyleDef: Main_C / Main_Highlight_C / Main_Press_C; text on it is Primary_10 */
  --ba-primary: #90caf9;
  --ba-primary-strong: #bbdefb;
  --ba-primary-press: #7abef5;
  --ba-primary-ink: #121212;
  /* StyleDef: C_Theta / C_Delta / C_Success / C_Akzent1 / DeleteRed_C */
  --ba-accent: #5b6fff;
  --ba-beta: #d384ff;
  --ba-success: #4bb543;
  --ba-warning: #ecb339;
  --ba-danger: #f44336;

  /* StyleDef: FieldBackground_C / FieldOutline_C (input fields) */
  --ba-field: rgba(255, 255, 255, 0.06);
  --ba-field-line: rgba(255, 255, 255, 0.47);
  --ba-surface-soft: rgba(255, 255, 255, 0.05);
  --ba-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);

  /* StyleDef: Card_CornerRadius (cards, panels, dialogs) / RoundButton and text boxes (controls) */
  --ba-radius: 4px;
  --ba-radius-sm: 2px;
  --ba-radius-pill: 999px;
  --ba-control-height: 44px;

  /* StyleDef: the "Main" font */
  --ba-font: Roboto, "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ba-mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}
