@font-face {
  font-family: "DM Sans";
  src: url("/instance-theme/font/0.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/instance-theme/font/1.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

html:root {
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 0.75rem;
}

html[data-theme="dark"] {
  --background: #0A0A0A;
  --dialog: #171717;
  --foreground: #F5F5F5;
  --card: #171717;
  --card-foreground: #F5F5F5;
  --popover: #171717;
  --popover-foreground: #F5F5F5;
  --primary: #00BAB9;
  --primary-foreground: #FFFFFF;
  --secondary: #009996;
  --secondary-foreground: #FFFFFF;
  --chat-user: #00BAB9;
  --chat-user-foreground: #FFFFFF;
  --muted: #292929;
  --muted-foreground: #A3A3A3;
  --accent: #1A1A1A;
  --accent-foreground: #F5F5F5;
  --destructive: #EF4444;
  --border: #2E2E2E;
  --input: #292929;
  --ring: #00BAB9;
  --sidebar: #0A0A0A;
  --sidebar-foreground: #F5F5F5;
  --sidebar-border: #292929;
  --sidebar-accent: #1A1A1A;
  --sidebar-accent-foreground: #F5F5F5;
  --link: #00D4D2;
  --success: #16A34A;
  --working-dot: #00BAB9;
  --status-working: #00BAB9;
  --unread: #00BAB9;
}

html[data-theme="light"] {
  --background: #FFFFFF;
  --foreground: #000000;
  --card: #F5F6FA;
  --card-foreground: #000000;
  --popover: #FFFFFF;
  --popover-foreground: #000000;
  --primary: #00A8A6;
  --primary-foreground: #FFFFFF;
  --secondary: #009996;
  --secondary-foreground: #FFFFFF;
  --chat-user: #00A8A6;
  --chat-user-foreground: #FFFFFF;
  --muted: #E9EBF1;
  --border: #DCDFE8;
  --input: #E9EBF1;
  --ring: #00A8A6;
  --link: #008A88;
  --working-dot: #00A8A6;
  --status-working: #00A8A6;
  --unread: #00A8A6;
}/* MyInstantAI overlay: sign-in avatar -> logomark */
*:has(+ h1[aria-live="polite"]) {
  background: url(/mia/logomark.png) center / contain no-repeat !important;
  box-shadow: none !important; border: 0 !important;
}
*:has(+ h1[aria-live="polite"]) > * { visibility: hidden !important; }
