/*fern-site-stylesheet*/@font-face {
    font-family: 'Rethink Sans';
    src: url('/_fern-files/hyperflow-ai.docs.buildwithfern.com/5e5662b2a90a6fb3d06879b3069805e04734e7f3df94be8cfba2c2ae85ee292e/assets/fonts/RethinkSans-Variable.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Rethink Sans Fallback';
    src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo');
    size-adjust: 104.76%;
    ascent-override: 94.70%;
    descent-override: 29.59%;
    line-gap-override: 0.00%;
}

:root {
  --header-height: 64px;
  --header-height-real: 64px;
  --mobile-header-height-real: 64px;
  --content-width: 640px;
  --sidebar-width: 288px;
  --page-width: 1408px;
  --logo-height: 32px;
  --font-body: 'Rethink Sans', 'Rethink Sans Fallback', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-heading: 'Rethink Sans', 'Rethink Sans Fallback', 'Rethink Sans', 'Rethink Sans Fallback', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-code: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

:root {
  --typography-body-font-family: var(--font-body);
  --typography-heading-font-family: var(--font-heading);
  --typography-code-font-family: var(--font-code);
}


:root {
  --accent-1: #ebefee;
  --accent-2: #e3ebe9;
  --accent-3: #d0e7e1;
  --accent-4: #bce1d7;
  --accent-5: #a7d7cb;
  --accent-6: #91cabc;
  --accent-7: #74b9a9;
  --accent-8: #46a491;
  --accent-9: #00806e;
  --accent-10: #007261;
  --accent-11: #006857;
  --accent-12: #194038;

  --accent-a1: #9fdfff1b;
  --accent-a2: #049cc212;
  --accent-a3: #03aea326;
  --accent-a4: #02ac923b;
  --accent-a5: #02a08551;
  --accent-a6: #02917668;
  --accent-a7: #00876d86;
  --accent-a8: #00856cb6;
  --accent-a9: #00806e;
  --accent-a10: #007261;
  --accent-a11: #006857;
  --accent-a12: #002b24e5;

  --accent-contrast: #fff;
  --accent-surface: #dfeae9cc;
  --accent-indicator: #00806e;
  --accent-track: #00806e;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    :root {
      --accent-1: oklch(94.9% 0.0046 178.3);
      --accent-2: oklch(93.4% 0.0087 178.3);
      --accent-3: oklch(90.9% 0.026 178.3);
      --accent-4: oklch(87.9% 0.0407 178.3);
      --accent-5: oklch(84.2% 0.0526 178.3);
      --accent-6: oklch(79.5% 0.0623 178.3);
      --accent-7: oklch(73.4% 0.0737 178.3);
      --accent-8: oklch(65.6% 0.0931 178.3);
      --accent-9: oklch(53.7% 0.0986 178.3);
      --accent-10: oklch(49% 0.0986 178.3);
      --accent-11: oklch(45.6% 0.0986 178.3);
      --accent-12: oklch(33.9% 0.0459 178.3);

      --accent-a1: color(display-p3 0.4667 0.8078 1 / 0.056);
      --accent-a2: color(display-p3 0.0078 0.5686 0.6784 / 0.062);
      --accent-a3: color(display-p3 0.0039 0.6118 0.5647 / 0.128);
      --accent-a4: color(display-p3 0.0039 0.6118 0.4941 / 0.198);
      --accent-a5: color(display-p3 0.0039 0.5569 0.4392 / 0.272);
      --accent-a6: color(display-p3 0.0039 0.4902 0.3882 / 0.354);
      --accent-a7: color(display-p3 0.0039 0.4471 0.3451 / 0.457);
      --accent-a8: color(display-p3 0 0.4353 0.3373 / 0.605);
      --accent-a9: color(display-p3 0 0.3647 0.2902 / 0.774);
      --accent-a10: color(display-p3 0 0.3176 0.251 / 0.803);
      --accent-a11: color(display-p3 0 0.2863 0.2196 / 0.824);
      --accent-a12: color(display-p3 0 0.1294 0.102 / 0.856);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.8824 0.9176 0.9137 / 0.8);
      --accent-indicator: oklch(53.7% 0.0986 178.3);
      --accent-track: oklch(53.7% 0.0986 178.3);
    }
  }
}


:root {
  --grayscale-1: #fdfdfc;
  --grayscale-2: #f9f9f8;
  --grayscale-3: #f1f0ef;
  --grayscale-4: #e9e8e6;
  --grayscale-5: #e2e1de;
  --grayscale-6: #dad9d6;
  --grayscale-7: #cfceca;
  --grayscale-8: #bcbbb5;
  --grayscale-9: #8d8d86;
  --grayscale-10: #82827c;
  --grayscale-11: #63635e;
  --grayscale-12: #21201c;

  --grayscale-a1: #55550003;
  --grayscale-a2: #25250007;
  --grayscale-a3: #20100010;
  --grayscale-a4: #1f150019;
  --grayscale-a5: #1f180021;
  --grayscale-a6: #19130029;
  --grayscale-a7: #19140035;
  --grayscale-a8: #1915014a;
  --grayscale-a9: #0f0f0079;
  --grayscale-a10: #0c0c0083;
  --grayscale-a11: #080800a1;
  --grayscale-a12: #060500e3;

  --grayscale-contrast: #000;
  --grayscale-surface: #ffffffcc;
  --grayscale-indicator: #8d8d86;
  --grayscale-track: #8d8d86;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    :root {
      --grayscale-1: color(display-p3 0.992 0.992 0.989);
      --grayscale-2: color(display-p3 0.977 0.977 0.973);
      --grayscale-3: color(display-p3 0.943 0.942 0.936);
      --grayscale-4: color(display-p3 0.913 0.912 0.903);
      --grayscale-5: color(display-p3 0.885 0.883 0.873);
      --grayscale-6: color(display-p3 0.854 0.852 0.839);
      --grayscale-7: color(display-p3 0.813 0.81 0.794);
      --grayscale-8: color(display-p3 0.738 0.734 0.713);
      --grayscale-9: color(display-p3 0.553 0.553 0.528);
      --grayscale-10: color(display-p3 0.511 0.511 0.488);
      --grayscale-11: color(display-p3 0.388 0.388 0.37);
      --grayscale-12: color(display-p3 0.129 0.126 0.111);

      --grayscale-a1: #55550003;
      --grayscale-a2: #25250007;
      --grayscale-a3: #20100010;
      --grayscale-a4: #1f150019;
      --grayscale-a5: #1f180021;
      --grayscale-a6: #19130029;
      --grayscale-a7: #19140035;
      --grayscale-a8: #1915014a;
      --grayscale-a9: #0f0f0079;
      --grayscale-a10: #0c0c0083;
      --grayscale-a11: #080800a1;
      --grayscale-a12: #060500e3;

      --grayscale-contrast: #000;
      --grayscale-surface: color(display-p3 1 1 1 / 80%);
      --grayscale-indicator: color(display-p3 0.553 0.553 0.528);
      --grayscale-track: color(display-p3 0.553 0.553 0.528);
    }
  }
}


.dark {
  --accent-1: #000;
  --accent-2: #121211;
  --accent-3: #1f1f1d;
  --accent-4: #282826;
  --accent-5: #30302e;
  --accent-6: #3a3a37;
  --accent-7: #484845;
  --accent-8: #60605e;
  --accent-9: #fff;
  --accent-10: #f6f6f4;
  --accent-11: #b3b3b0;
  --accent-12: #eeeeec;

  --accent-a1: #00000000;
  --accent-a2: #fffff112;
  --accent-a3: #ffffef1f;
  --accent-a4: #fffff328;
  --accent-a5: #fffff530;
  --accent-a6: #fffff23a;
  --accent-a7: #fffff548;
  --accent-a8: #fffffa60;
  --accent-a9: #ffffff;
  --accent-a10: #fffffdf6;
  --accent-a11: #fffffbb3;
  --accent-a12: #fffffdee;

  --accent-contrast: #311921;
  --accent-surface: #24242280;
  --accent-indicator: #fff;
  --accent-track: #fff;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --accent-1: oklch(0% 0.0023 106.5);
      --accent-2: oklch(18.3% 0.0022 106.5);
      --accent-3: oklch(23.9% 0.0032 106.5);
      --accent-4: oklch(27.5% 0.0036 106.5);
      --accent-5: oklch(30.8% 0.004 106.5);
      --accent-6: oklch(34.7% 0.004 106.5);
      --accent-7: oklch(40% 0.004 106.5);
      --accent-8: oklch(49% 0.004 106.5);
      --accent-9: oklch(100% 0 none);
      --accent-10: oklch(97.3% 0.0027 106.5);
      --accent-11: oklch(76.7% 0.004 106.5);
      --accent-12: oklch(94.8% 0.0027 106.5);

      --accent-a1: color(display-p3 0 0 0 / 0);
      --accent-a2: color(display-p3 0.9961 0.9961 0.9412 / 0.071);
      --accent-a3: color(display-p3 1 1 0.9333 / 0.122);
      --accent-a4: color(display-p3 1 1 0.9529 / 0.157);
      --accent-a5: color(display-p3 0.9961 0.9961 0.9569 / 0.189);
      --accent-a6: color(display-p3 1 1 0.949 / 0.228);
      --accent-a7: color(display-p3 1 1 0.9569 / 0.283);
      --accent-a8: color(display-p3 1 1 0.9804 / 0.377);
      --accent-a9: color(display-p3 1 1 1);
      --accent-a10: color(display-p3 1 1 0.9922 / 0.965);
      --accent-a11: color(display-p3 1 1 0.9843 / 0.702);
      --accent-a12: color(display-p3 1 1 0.9922 / 0.934);

      --accent-contrast: #311921;
      --accent-surface: color(display-p3 0.1412 0.1412 0.1333 / 0.5);
      --accent-indicator: oklch(100% 0 none);
      --accent-track: oklch(100% 0 none);
    }
  }
}


.dark {
  --grayscale-1: #111110;
  --grayscale-2: #191918;
  --grayscale-3: #222221;
  --grayscale-4: #2a2a28;
  --grayscale-5: #31312e;
  --grayscale-6: #3b3a37;
  --grayscale-7: #494844;
  --grayscale-8: #62605b;
  --grayscale-9: #6f6d66;
  --grayscale-10: #7c7b74;
  --grayscale-11: #b5b3ad;
  --grayscale-12: #eeeeec;

  --grayscale-a1: #00000000;
  --grayscale-a2: #f4f4f309;
  --grayscale-a3: #f6f6f513;
  --grayscale-a4: #fefef31b;
  --grayscale-a5: #fbfbeb23;
  --grayscale-a6: #fffaed2d;
  --grayscale-a7: #fffbed3c;
  --grayscale-a8: #fff9eb57;
  --grayscale-a9: #fffae965;
  --grayscale-a10: #fffdee73;
  --grayscale-a11: #fffcf4b0;
  --grayscale-a12: #fffffded;

  --grayscale-contrast: #fff;
  --grayscale-surface: rgba(0, 0, 0, 0.05);
  --grayscale-indicator: #6f6d66;
  --grayscale-track: #6f6d66;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --grayscale-1: color(display-p3 0.067 0.067 0.063);
      --grayscale-2: color(display-p3 0.098 0.098 0.094);
      --grayscale-3: color(display-p3 0.135 0.135 0.129);
      --grayscale-4: color(display-p3 0.164 0.163 0.156);
      --grayscale-5: color(display-p3 0.193 0.192 0.183);
      --grayscale-6: color(display-p3 0.23 0.229 0.217);
      --grayscale-7: color(display-p3 0.285 0.282 0.267);
      --grayscale-8: color(display-p3 0.384 0.378 0.357);
      --grayscale-9: color(display-p3 0.434 0.428 0.403);
      --grayscale-10: color(display-p3 0.487 0.481 0.456);
      --grayscale-11: color(display-p3 0.707 0.703 0.68);
      --grayscale-12: color(display-p3 0.933 0.933 0.926);

      --grayscale-a1: #00000000;
      --grayscale-a2: #f4f4f309;
      --grayscale-a3: #f6f6f513;
      --grayscale-a4: #fefef31b;
      --grayscale-a5: #fbfbeb23;
      --grayscale-a6: #fffaed2d;
      --grayscale-a7: #fffbed3c;
      --grayscale-a8: #fff9eb57;
      --grayscale-a9: #fffae965;
      --grayscale-a10: #fffdee73;
      --grayscale-a11: #fffcf4b0;
      --grayscale-a12: #fffffded;

      --grayscale-contrast: #fff;
      --grayscale-surface: color(display-p3 0 0 0 / 5%);
      --grayscale-indicator: color(display-p3 0.434 0.428 0.403);
      --grayscale-track: color(display-p3 0.434 0.428 0.403);
    }
  }
}

:root {
  color-scheme: light;
  --accent: rgba(0, 128, 110, 1);
  --background: rgba(244, 241, 236, 1);
  --border: rgba(225, 219, 209, 1);
  --sidebar-background: rgba(244, 241, 236, 1);
  --header-background: rgba(244, 241, 236, 1);
  --card-background: rgba(255, 253, 250, 1);
  --theme-color: #f4f1ec;
}

.dark {
  color-scheme: light;
  --background: #000000;
  --accent: #ffffff;
}

/* Mirrors the HyperFlowSI app's light theme: ink text on a warm paper ground, flat bordered cards. */
:root {
  --hf-text-primary: #1c1813;
  --hf-text-secondary: #4c463c;
  --hf-text-tertiary: #7a7267;
  --hf-surface-raised: #fffdfa;
  --hf-surface-canvas: #faf8f5;
  --hf-border-subtle: #ede9e2;
  --hf-border-default: #e1dbd1;
  --hf-border-strong: #cec7ba;
  --hf-brand-hover: #06c3a7;
  --hf-shadow-popover: 0 6px 16px 0 rgba(28, 24, 19, 0.12);
}

body {
  color: var(--hf-text-primary);
}

.fern-prose p,
.fern-prose li {
  color: var(--hf-text-secondary);
}

.fern-header {
  border-bottom: 1px solid var(--hf-border-default);
}

.fern-card,
.fern-callout,
.fern-mdx-code-block,
.fern-code-block,
.fern-accordion,
.fern-tabs {
  border-radius: 4px;
  box-shadow: none;
}

.fern-card {
  background-color: var(--hf-surface-raised);
  border: 1px solid var(--hf-border-subtle);
}

.fern-card:hover {
  border-color: var(--hf-border-strong);
}
.fern-card:focus-visible {
  border-color: var(--hf-border-strong);
}

.fern-mdx-code-block,
.fern-code-block {
  background-color: var(--hf-surface-canvas);
  border-color: var(--hf-border-default);
}

.fern-button {
  border-radius: 2px;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.fern-search-bar,
input,
textarea {
  border-radius: 8px;
}

[data-radix-popper-content-wrapper] > * {
  border-radius: 4px;
  box-shadow: var(--hf-shadow-popover);
}
