@import '@cloudflare/kumo/styles/tailwind';
@import 'tailwindcss';

/* Scan Kumo and Streamdown for Tailwind class names */
@source "../node_modules/@cloudflare/kumo/dist/**/*.{js,jsx,ts,tsx}";
@source "../node_modules/streamdown/dist/*.js";
@source "../node_modules/@streamdown/code/dist/*.js";

.sd-theme {
  --color-primary: light-dark(#e07315, #f6821f);
  --color-primary-foreground: light-dark(#ffffff, #ffffff);
  --color-foreground: light-dark(#111827, #e8eaed);
  --color-background: light-dark(#ffffff, #08090d);
  --color-muted: light-dark(#f0f2f5, #1c1f28);
  --color-muted-foreground: light-dark(#6b7280, #9aa0ab);
  --color-border: light-dark(#e2e5eb, #2c3040);
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}
.sd-theme h1 {
  font-size: 1.25em;
  font-weight: 600;
  margin: 0.75em 0 0.25em;
}
.sd-theme h2 {
  font-size: 1.125em;
  font-weight: 600;
  margin: 0.75em 0 0.25em;
}
.sd-theme h3 {
  font-size: 1em;
  font-weight: 600;
  margin: 0.5em 0 0.25em;
}
.sd-theme p {
  margin: 0.375em 0;
}
.sd-theme .rounded-xl:has(pre) {
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0.5rem 0;
  background: none;
}
.sd-theme.sd-theme .rounded-xl:has(pre) > :not(:has(pre)):not(pre) {
  display: none;
}
.sd-theme pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  background: var(--color-muted);
  border-radius: 0.375rem;
  padding: 0.5rem 0.625rem;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  border: none;
  margin: 0;
}
.sd-theme.sd-theme [data-streamdown='code-block-body'] {
  border: none;
  background: none;
  padding: 0;
}
.sd-theme ol,
.sd-theme ul {
  padding-left: 1.5em;
}
.sd-theme ol {
  list-style-type: decimal;
}
.sd-theme ul {
  list-style-type: disc;
}
.sd-theme pre code {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}
html,
body,
#root {
  width: 100%;
  height: 100%;
  margin: 0;
}
