@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --font-family-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-mono: "JetBrains Mono", "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;

  --type-size-body: 15px;
  --type-size-small: 13px;
  --type-size-tiny: 12px;
  --type-weight-regular: 400;
  --type-weight-medium: 500;
  --type-weight-semibold: 600;
  --type-leading-body: 24px;
  --type-leading-small: 20px;
  --type-leading-tiny: 16px;
  --type-tracking-heading: 0.04em;
  --type-tracking-badge: 0.02em;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-2xl: 10px;
  --radius-3xl: 12px;

  --control-height: 28px;
  --toolbar-height: 60px;
  --page-width: 1200px;

  --theme-bg-primary: #ffffff;
  --theme-bg-secondary: #f7f8f9;
  --theme-bg-sidebar: #f7f8f9;
  --theme-bg-tertiary: #ffffff;
  --theme-bg-hover: #00000008;
  --theme-bg-hover-strong: #00000012;
  --theme-bg-pressed: #00000020;
  --theme-bg-selected: #d0dffe;
  --theme-bg-selected-muted: #e3ebfe;
  --theme-bg-selected-inactive: #e9eaee;

  --theme-fg-primary: #16181c;
  --theme-fg-secondary: #4a4d54;
  --theme-fg-tertiary: #5f6269;
  --theme-fg-code: #080808;

  --theme-border-primary: #d1d3d9;
  --theme-border-secondary: #e9eaee;

  --theme-accent-primary: #3871e1;
  --theme-accent-subtle: #e3ebfe;
  --theme-accent-solid: #3871e1;
  --theme-accent-solid-hover: #2f5eb9;
  --theme-accent-solid-pressed: #2a4371;
  --theme-on-accent: #ffffff;
  --theme-link: #2f5eb9;
  --theme-link-hover: #2f5eb9;
  --theme-focus-ring: #3871e1;

  --theme-success: #338555;
  --theme-success-subtle: #f5faf3;
  --theme-warning: #a56906;
  --theme-warning-text: #7c4f05;
  --theme-warning-subtle: #fff6e9;
  --theme-error: #c54e58;
  --theme-error-text: #943b42;
  --theme-error-subtle: #fff6f5;

  --theme-icon-default: #73767c;
  --theme-badge-bg: #73767c;
  --theme-badge-fg: #ffffff;

  --theme-shadow-float: 0 12px 32px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
  --theme-shot-border: var(--theme-border-secondary);
  --theme-shot-surface: transparent;
}

@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --theme-bg-primary: #191a1c;
    --theme-bg-secondary: #26282c;
    --theme-bg-sidebar: #26282c;
    --theme-bg-tertiary: #33353b;
    --theme-bg-hover: #ffffff10;
    --theme-bg-hover-strong: #ffffff17;
    --theme-bg-pressed: #ffffff29;
    --theme-bg-selected: #2a4371;
    --theme-bg-selected-muted: #233558;
    --theme-bg-selected-inactive: #33353b;

    --theme-fg-primary: #d1d3d9;
    --theme-fg-secondary: #b5b7bd;
    --theme-fg-tertiary: #9fa2a8;
    --theme-fg-code: #bcbec4;

    --theme-border-primary: #40434a;
    --theme-border-secondary: #33353b;

    --theme-accent-primary: #3871e1;
    --theme-accent-subtle: #233558;
    --theme-accent-solid: #3871e1;
    --theme-accent-solid-hover: #2f5eb9;
    --theme-accent-solid-pressed: #2a4371;
    --theme-on-accent: #ffffff;
    --theme-link: #71a1fe;
    --theme-link-hover: #71a1fe;
    --theme-focus-ring: #6b9bfa;

    --theme-success: #6db083;
    --theme-success-subtle: #203b2a;
    --theme-warning: #d59637;
    --theme-warning-text: #d3ae78;
    --theme-warning-subtle: #44321d;
    --theme-error: #f57e84;
    --theme-error-text: #e7a0a6;
    --theme-error-subtle: #56272b;

    --theme-icon-default: #c3c5cb;
    --theme-badge-bg: #73767c;
    --theme-badge-fg: #000000;

    --theme-shadow-float: none;
    --theme-shot-border: var(--theme-border-primary);
    --theme-shot-surface: var(--theme-bg-tertiary);
  }
}

:root[data-theme="dark"] {
  --theme-bg-primary: #191a1c;
  --theme-bg-secondary: #26282c;
  --theme-bg-sidebar: #26282c;
  --theme-bg-tertiary: #33353b;
  --theme-bg-hover: #ffffff10;
  --theme-bg-hover-strong: #ffffff17;
  --theme-bg-pressed: #ffffff29;
  --theme-bg-selected: #2a4371;
  --theme-bg-selected-muted: #233558;
  --theme-bg-selected-inactive: #33353b;

  --theme-fg-primary: #d1d3d9;
  --theme-fg-secondary: #b5b7bd;
  --theme-fg-tertiary: #9fa2a8;
  --theme-fg-code: #bcbec4;

  --theme-border-primary: #40434a;
  --theme-border-secondary: #33353b;

  --theme-accent-primary: #3871e1;
  --theme-accent-subtle: #233558;
  --theme-accent-solid: #3871e1;
  --theme-accent-solid-hover: #2f5eb9;
  --theme-accent-solid-pressed: #2a4371;
  --theme-on-accent: #ffffff;
  --theme-link: #71a1fe;
  --theme-link-hover: #71a1fe;
  --theme-focus-ring: #6b9bfa;

  --theme-success: #6db083;
  --theme-success-subtle: #203b2a;
  --theme-warning: #d59637;
  --theme-warning-text: #d3ae78;
  --theme-warning-subtle: #44321d;
  --theme-error: #f57e84;
  --theme-error-text: #e7a0a6;
  --theme-error-subtle: #56272b;

  --theme-icon-default: #c3c5cb;
  --theme-badge-bg: #73767c;
  --theme-badge-fg: #000000;

  --theme-shadow-float: none;
  --theme-shot-border: var(--theme-border-primary);
  --theme-shot-surface: var(--theme-bg-tertiary);
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--theme-bg-primary);
  color: var(--theme-fg-primary);
  font-family: var(--font-family-sans);
  font-size: var(--type-size-body);
  font-weight: var(--type-weight-regular);
  line-height: var(--type-leading-body);
  font-synthesis: none;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

a {
  color: var(--theme-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--theme-link-hover);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--theme-focus-ring);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: -48px;
  display: inline-flex;
  align-items: center;
  height: var(--control-height);
  padding: 0 var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--theme-accent-solid);
  color: var(--theme-on-accent);
  text-decoration: none;
  z-index: 50;
}

.skip:focus { top: var(--space-2); }

code, kbd {
  font-family: var(--font-family-mono);
  font-size: 0.875em;
}

.ui {
  font-size: 0.94em;
}

code, kbd {
  background: var(--theme-bg-selected-inactive);
  color: var(--theme-fg-code);
  padding: 1px 5px;
  border-radius: var(--radius-md);
  white-space: nowrap;
}

pre code { white-space: pre; }

.ui {
  font-weight: var(--type-weight-medium);
  background: var(--theme-accent-subtle);
  padding: 1px 6px;
  border-radius: var(--radius-md);
}

strong, b { font-weight: var(--type-weight-semibold); }

.top {
  background: var(--theme-bg-primary);
  box-shadow: 0 1px 0 var(--theme-border-secondary);
  position: sticky;
  top: 0;
  z-index: 30;
}

.bar {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: var(--toolbar-height);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 36px;
  color: var(--theme-fg-primary);
  text-decoration: none;
  font-size: 17px;
  font-weight: var(--type-weight-semibold);
  letter-spacing: -0.01em;
}

.brand:hover { color: var(--theme-fg-primary); text-decoration: none; }
.brand img { width: 28px; height: 28px; display: block; }

.bar nav { margin-left: auto; display: flex; align-items: center; gap: var(--space-1); }

.bar nav a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 var(--space-3);
  font-size: 14px;
  font-weight: var(--type-weight-medium);
  border-radius: var(--radius-lg);
  color: var(--theme-fg-secondary);
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.bar nav a:hover { background: var(--theme-bg-hover); color: var(--theme-fg-primary); }
.bar nav a:active { background: var(--theme-bg-pressed); color: var(--theme-fg-primary); }

.bar nav a[aria-current] {
  background: var(--theme-accent-subtle);
  color: var(--theme-fg-primary);
}

.bar nav .sep {
  width: 1px;
  height: 20px;
  margin: 0 var(--space-2);
  background: var(--theme-border-primary);
}

.theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: var(--space-1);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: none;
  color: var(--theme-fg-secondary);
  cursor: pointer;
}

.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { background: var(--theme-bg-hover); color: var(--theme-fg-primary); }
.theme-toggle:active { background: var(--theme-bg-pressed); }
.theme-toggle:focus-visible, .products summary:focus-visible { outline: 2px solid var(--theme-focus-ring); outline-offset: 1px; }

.products { position: relative; }

.products summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: 32px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: var(--type-weight-medium);
  white-space: nowrap;
  color: var(--theme-fg-secondary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.products summary::-webkit-details-marker { display: none; }

.products summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 0 0 var(--space-1);
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

.products[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.products summary:hover, .products[open] summary { background: var(--theme-bg-hover); color: var(--theme-fg-primary); }
.products[data-current] summary { background: var(--theme-accent-subtle); color: var(--theme-fg-primary); }

.products .drop {
  position: absolute;
  top: calc(100% + var(--space-1));
  right: 0;
  z-index: 40;
  width: 320px;
  padding: var(--space-2);
  background: var(--theme-bg-primary);
  border: 1px solid var(--theme-border-secondary);
  border-radius: var(--radius-3xl);
  box-shadow: var(--theme-shadow-float);
}

.bar nav .products .drop a {
  display: block;
  height: auto;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-xl);
  color: var(--theme-fg-secondary);
}

.products .drop a strong { display: block; font-size: 14px; line-height: 20px; color: var(--theme-fg-primary); }
.products .drop a span { display: block; font-size: 13px; line-height: 18px; margin-top: 2px; }
.bar nav .products .drop a[aria-current] { background: var(--theme-accent-subtle); }

.layout {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--space-6) var(--space-6) var(--space-16);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--space-12);
  align-items: start;
}

.side {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  padding: 0 var(--space-2) var(--space-4) 0;
  font-size: 14px;
  line-height: 20px;
}

.side details { margin: 0 0 var(--space-1); }

.side summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 32px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-lg);
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: var(--type-weight-semibold);
  color: var(--theme-fg-primary);
}

.side summary::-webkit-details-marker { display: none; }

.side summary::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--theme-icon-default);
  border-bottom: 2px solid var(--theme-icon-default);
  transform: rotate(-45deg);
  transition: transform 150ms ease;
}

.side details[open] > summary::before { transform: rotate(45deg); }
.side summary:hover { background: var(--theme-bg-hover); }
.side details > ul { margin: 0 0 var(--space-2) 15px; padding-left: var(--space-2); border-left: 1px solid var(--theme-border-secondary); }

.side ul { list-style: none; margin: 0; padding: 0; }

.side a {
  display: block;
  min-height: 32px;
  padding: 5px var(--space-3);
  border-radius: var(--radius-lg);
  color: var(--theme-fg-secondary);
  text-decoration: none;
  line-height: 22px;
  transition: background-color 150ms ease, color 150ms ease;
}

.side a:hover { background: var(--theme-bg-hover); color: var(--theme-fg-primary); }
.side a:active { background: var(--theme-bg-pressed); color: var(--theme-fg-primary); }

.side a[aria-current="page"] {
  background: var(--theme-accent-subtle);
  color: var(--theme-fg-primary);
  font-weight: var(--type-weight-medium);
}

.side a.parent { color: var(--theme-fg-primary); font-weight: var(--type-weight-medium); }

.doc { min-width: 0; max-width: 760px; }

.crumbs {
  font-size: var(--type-size-small);
  line-height: var(--type-leading-small);
  color: var(--theme-fg-secondary);
  margin: 0 0 var(--space-4);
}

.crumbs a { color: var(--theme-fg-secondary); }
.crumbs a:hover { color: var(--theme-fg-primary); }

.doc h1 {
  font-size: 32px;
  line-height: 40px;
  font-weight: var(--type-weight-semibold);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

.doc .lede {
  font-size: 17px;
  line-height: 26px;
  color: var(--theme-fg-secondary);
  margin: 0 0 var(--space-4);
  max-width: 62ch;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin: 0 0 var(--space-6);
  font-size: var(--type-size-small);
  line-height: var(--type-leading-small);
  color: var(--theme-fg-secondary);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-md);
  background: var(--theme-bg-selected-inactive);
  color: var(--theme-fg-primary);
  font-size: var(--type-size-tiny);
  font-weight: var(--type-weight-semibold);
  line-height: var(--type-leading-tiny);
  letter-spacing: var(--type-tracking-badge);
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.tag::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme-icon-default);
}

td .tag { height: auto; min-height: 20px; padding-top: 2px; padding-bottom: 2px; white-space: normal; text-align: left; }

.tag.free { background: var(--theme-success-subtle); }
.tag.free::before { background: var(--theme-success); }
.tag.pro { background: var(--theme-accent-subtle); }
.tag.pro::before { background: var(--theme-link); }
.tag.team { background: var(--theme-warning-subtle); }
.tag.team::before { background: var(--theme-warning); }
.tag.warning { background: var(--theme-warning-subtle); }
.tag.warning::before { background: var(--theme-warning); }
.tag.error { background: var(--theme-error-subtle); }
.tag.error::before { background: var(--theme-error); }
.tag.new { background: var(--theme-accent-subtle); }
.tag.new::before { background: var(--theme-link); }
.tag.off { background: var(--theme-badge-bg); color: var(--theme-badge-fg); }
.tag.off::before { display: none; }

.doc h2 {
  font-size: 22px;
  font-weight: var(--type-weight-semibold);
  line-height: 30px;
  letter-spacing: -0.015em;
  color: var(--theme-fg-primary);
  margin: var(--space-16) 0 var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--theme-border-secondary);
  scroll-margin-top: 80px;
}

.doc h2:first-of-type { margin-top: var(--space-10); }

.doc h3 {
  font-size: 17px;
  line-height: 24px;
  font-weight: var(--type-weight-semibold);
  letter-spacing: -0.01em;
  margin: var(--space-8) 0 var(--space-2);
  scroll-margin-top: 80px;
}

.doc h2 a, .doc h3 a { color: inherit; text-decoration: none; }
.doc h2 a:hover::after, .doc h3 a:hover::after { content: " #"; color: var(--theme-link); }

.doc p { margin: var(--space-3) 0; max-width: 68ch; }
.doc ul, .doc ol { margin: var(--space-3) 0; padding-left: var(--space-6); max-width: 68ch; }
.doc li { margin: var(--space-2) 0; }
.doc li > p { margin: var(--space-1) 0; }

.toc {
  background: var(--theme-bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0 var(--space-2);
}

.doc .toc h2 {
  margin: 0 0 var(--space-2);
  padding: 0;
  border: 0;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: var(--type-tracking-heading);
  text-transform: uppercase;
  color: var(--theme-fg-secondary);
}
.toc ul { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: var(--space-6); max-width: none; }
.toc li { margin: 0; break-inside: avoid; }

.toc a {
  display: block;
  padding: 3px var(--space-2);
  margin: 0 calc(-1 * var(--space-2));
  border-radius: var(--radius-md);
  color: var(--theme-fg-primary);
  text-decoration: none;
}

.toc a:hover { background: var(--theme-bg-hover-strong); }

ol.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: var(--space-3) 0;
}

ol.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin: var(--space-4) 0;
  min-height: var(--space-6);
}

ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--theme-accent-subtle);
  color: var(--theme-fg-primary);
  font-size: var(--type-size-small);
  font-weight: var(--type-weight-semibold);
  display: grid;
  place-items: center;
  line-height: 1;
}

.table-wrap {
  overflow-x: auto;
  margin: var(--space-4) 0;
}

table { width: 100%; border-collapse: collapse; }

th {
  text-align: left;
  font-size: var(--type-size-small);
  font-weight: var(--type-weight-semibold);
  line-height: var(--type-leading-small);
  color: var(--theme-fg-secondary);
  border-bottom: 1px solid var(--theme-border-primary);
}

th, td { padding: var(--space-3) var(--space-4); vertical-align: top; }
td { border-bottom: 1px solid var(--theme-border-secondary); }
tbody tr:last-child td { border-bottom: 0; }
table { font-size: 14px; line-height: 22px; }
td p { margin: 0; }
td code { white-space: normal; overflow-wrap: break-word; }
tbody tr { transition: background-color 150ms ease; }
tbody tr:hover { background: var(--theme-bg-hover); }

table.facts th:first-child, table.facts td:first-child {
  width: 28%;
  font-weight: var(--type-weight-medium);
}

pre {
  background: var(--theme-bg-secondary);
  color: var(--theme-fg-code);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-4) 0;
  overflow-x: auto;
  font-family: var(--font-family-mono);
  font-size: 14px;
  line-height: 24px;
  max-width: 100%;
}

pre code { background: none; padding: 0; font-size: inherit; color: inherit; }

.callout {
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  background: var(--theme-bg-secondary);
  max-width: 68ch;
}

.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }

.callout .label {
  display: block;
  font-size: var(--type-size-small);
  font-weight: var(--type-weight-semibold);
  line-height: var(--type-leading-small);
  color: var(--theme-link);
  margin-bottom: var(--space-1);
}

.callout.warn { background: var(--theme-warning-subtle); }
.callout.warn .label { color: var(--theme-warning-text); }
.callout.pro { background: var(--theme-accent-subtle); }

figure.shot { margin: var(--space-8) 0; }

figure.shot img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-3xl);
  border: 1px solid var(--theme-shot-border);
  background: var(--theme-shot-surface);
  box-shadow: var(--theme-shadow-float);
}

figure.shot img[src$="/check-card.png"] { max-width: min(100%, 480px); }
figure.shot img[src$="/toolbar-palette-find.png"] { max-width: min(100%, 560px); }
figure.shot img[src$="/toolbar-palette-search.png"] { max-width: min(100%, 560px); }
figure.shot img[src$="/dmn-spreadsheet-menu.png"] { max-width: min(100%, 560px); }
figure.shot img[src$="/import-menu.png"] { max-width: min(100%, 520px); }
figure.shot img[src$="/share-menu.png"] { max-width: min(100%, 520px); }
figure.shot img[src$="/sidebar-tabs-bpmn.png"] { max-width: min(100%, 520px); }
figure.shot img[src$="/sidebar-tabs-dmn.png"] { max-width: min(100%, 520px); }
figure.shot img[src$="/sidebar-tabs-form.png"] { max-width: min(100%, 520px); }
figure.shot img[src$="/toolbar-form.png"] { max-width: min(100%, 420px); }
figure.shot img[src$="/toolbar-dmn.png"] { max-width: min(100%, 520px); }
figure.shot img[src$="/toolbar-bar.png"] { max-width: min(100%, 640px); }
figure.shot img[src$="/settings-init-terminal.png"] { max-width: min(100%, 560px); }
figure.shot img[src$="/gs-example-folder.png"] { max-width: min(100%, 640px); }
figure.shot img[src$="/workers-check-terminal.png"] { max-width: min(100%, 600px); }

figure.shot figcaption {
  margin-top: var(--space-3);
  font-size: var(--type-size-small);
  line-height: var(--type-leading-small);
  color: var(--theme-fg-secondary);
  max-width: 68ch;
}

.problems dt { font-weight: var(--type-weight-semibold); margin: var(--space-4) 0 2px; }
.problems dd { margin: 0 0 var(--space-2); max-width: 68ch; }

details.faq {
  background: var(--theme-bg-secondary);
  border-radius: var(--radius-xl);
  padding: 0 var(--space-6);
  margin: var(--space-2) 0;
}

details.faq summary {
  cursor: pointer;
  padding: var(--space-4) 0;
  font-weight: var(--type-weight-semibold);
  list-style: none;
  border-radius: var(--radius-md);
}

details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+"; display: inline-block; width: var(--space-4); color: var(--theme-link); }
details.faq[open] summary::before { content: "-"; }
details.faq > :not(summary) { margin-top: 0; }
details.faq[open] { padding-bottom: var(--space-2); }

.related { margin-top: var(--space-10); }

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.pager a {
  display: block;
  background: var(--theme-bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  color: var(--theme-fg-primary);
  text-decoration: none;
  font-weight: var(--type-weight-semibold);
  transition: background-color 150ms ease;
}

.pager a:hover { background: var(--theme-bg-selected-inactive); }

.pager a span {
  display: block;
  font-size: var(--type-size-small);
  font-weight: var(--type-weight-regular);
  line-height: var(--type-leading-small);
  color: var(--theme-fg-secondary);
}

.pager a.next { text-align: right; grid-column: 2; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.card {
  display: block;
  background: var(--theme-bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  color: var(--theme-fg-primary);
  text-decoration: none;
  transition: background-color 150ms ease;
}

a.card:hover { background: var(--theme-bg-selected-inactive); }
.card strong { display: block; color: var(--theme-fg-primary); font-size: 15px; line-height: 22px; margin-bottom: var(--space-1); }
a.card:hover strong { color: var(--theme-link); }
.card > span { color: var(--theme-fg-secondary); display: block; font-size: 14px; line-height: 22px; }

.wide { max-width: var(--page-width); margin: 0 auto; padding: 0 var(--space-6); }

.hero {
  padding: var(--space-16) 0 var(--space-8);
}

.hero .mark { display: none; }

.hero h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.1;
  font-weight: var(--type-weight-semibold);
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-6);
  max-width: 20ch;
  text-wrap: balance;
}

.hero .lede { font-size: 17px; line-height: 28px; color: var(--theme-fg-secondary); max-width: 58ch; margin: 0 0 var(--space-8); }

.hero .tools-line { margin: var(--space-4) 0 0; color: var(--theme-fg-secondary); font-size: var(--type-size-small); }

.cta { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 var(--space-5, 20px);
  border-radius: var(--radius-xl);
  background: var(--theme-accent-solid);
  color: var(--theme-on-accent);
  text-decoration: none;
  font-size: 15px;
  font-weight: var(--type-weight-medium);
  line-height: 1;
  white-space: nowrap;
  transition: background-color 150ms ease;
}

.btn:hover { background: var(--theme-accent-solid-hover); color: var(--theme-on-accent); text-decoration: none; }
.btn:active { background: var(--theme-accent-solid-pressed); }

.btn.quiet { background: var(--theme-bg-selected-inactive); color: var(--theme-fg-primary); }
.btn.quiet:hover { background: var(--theme-bg-hover-strong); color: var(--theme-fg-primary); }
.btn.quiet:active { background: var(--theme-bg-pressed); }

.note {
  color: var(--theme-fg-secondary);
  font-size: var(--type-size-small);
  line-height: var(--type-leading-small);
}

.band { padding: var(--space-16) 0 var(--space-4); }

.band > h2 {
  font-size: 26px;
  font-weight: var(--type-weight-semibold);
  line-height: 34px;
  letter-spacing: -0.02em;
  color: var(--theme-fg-primary);
  margin: 0 0 var(--space-3);
}

.band .prose { max-width: 68ch; }
.band .prose p { margin: var(--space-3) 0; }
.band pre { max-width: 68ch; }
.band .steps { max-width: 68ch; }

.wide figure.shot { max-width: 1040px; margin: var(--space-4) 0 var(--space-8); }

.legal-wrap { max-width: var(--page-width); margin: 0 auto; padding: var(--space-6) var(--space-6) var(--space-16); }
.legal-wrap h1 { font-size: 32px; line-height: 40px; letter-spacing: -0.02em; font-weight: var(--type-weight-semibold); margin: var(--space-6) 0 var(--space-3); }
.legal-wrap .lede { font-size: 17px; line-height: 26px; color: var(--theme-fg-secondary); max-width: 62ch; margin: 0 0 var(--space-4); }

pre.legal {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 22px;
  padding: var(--space-6);
  max-width: 96ch;
}

footer {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-16);
  color: var(--theme-fg-secondary);
  font-size: var(--type-size-small);
  line-height: var(--type-leading-small);
}

footer .links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-bottom: var(--space-6); font-size: 14px; }
footer a { color: var(--theme-fg-secondary); }
footer a:hover { color: var(--theme-fg-primary); }
footer p { margin: 0 0 var(--space-2); max-width: 84ch; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0;
  max-width: 820px;
}

.plan {
  background: var(--theme-bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
}

.plan .name { margin: 0 0 var(--space-1); }

.plan .price {
  margin: 0;
  font-size: 17px;
  font-weight: var(--type-weight-semibold);
  line-height: 28px;
}

.plan .price span {
  display: block;
  line-height: var(--type-leading-small);
  font-size: var(--type-size-small);
  font-weight: var(--type-weight-regular);
  color: var(--theme-fg-secondary);
}

.plan .price.alt { font-size: var(--type-size-body); font-weight: var(--type-weight-medium); line-height: 20px; }
.plan .about { margin: var(--space-2) 0 var(--space-3); font-size: var(--type-size-small); line-height: var(--type-leading-small); color: var(--theme-fg-secondary); flex: 1; }

.buy-dark { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .buy-light { display: none; }
  :root:not([data-theme="light"]) .buy-dark { display: inline-flex; }
}

:root[data-theme="dark"] .buy-light { display: none; }
:root[data-theme="dark"] .buy-dark { display: inline-flex; }

.hosts { margin: var(--space-4) 0; }

.hosts-title {
  margin: 0 0 var(--space-2);
  font-size: var(--type-size-small);
  font-weight: var(--type-weight-semibold);
  line-height: var(--type-leading-small);
  color: var(--theme-fg-secondary);
}

.host-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

.host {
  background: var(--theme-bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  min-width: 0;
}

.host .host-name {
  margin: 0 0 var(--space-1);
  font-size: var(--type-size-small);
  font-weight: var(--type-weight-semibold);
  line-height: var(--type-leading-small);
  color: var(--theme-link);
}

.host p, .host ul, .host ol { margin: var(--space-1) 0; }
.host pre { margin: var(--space-2) 0; background: var(--theme-bg-tertiary); }
.host pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
.host code, .host kbd { background: var(--theme-bg-selected-inactive); }
.host .unavailable { color: var(--theme-fg-secondary); }

.card code { white-space: normal; overflow-wrap: anywhere; }
.cards.install { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards.tools { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card.soon strong { color: var(--theme-fg-secondary); }

.band .prose-note {
  margin: 0 0 var(--space-4);
  color: var(--theme-fg-secondary);
  font-size: 16px;
  line-height: 26px;
  max-width: 62ch;
}

@media (max-width: 880px) {
  .doc h1 { font-size: 28px; line-height: 36px; }
  .doc h2 { font-size: 20px; line-height: 28px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding: var(--space-4) var(--space-4) var(--space-12); }
  .side { position: static; max-height: none; order: 2; }
  .doc { order: 1; }
  .bar { position: relative; padding: 0 var(--space-4); gap: var(--space-2); }
  .bar nav > a:not(.keep), .bar nav > a[href$="getting-started.html"] { display: none; }
  .bar nav a { padding: 0 var(--space-2); }
  .products { position: static; }
  .products .drop { left: var(--space-4); right: var(--space-4); width: auto; }
  .pager { grid-template-columns: 1fr; }
  .pager a.next { grid-column: 1; text-align: left; }
  .wide, .legal-wrap, footer { padding-left: var(--space-4); padding-right: var(--space-4); }
  .hero { padding: var(--space-8) 0 var(--space-4); }
  .band { padding-top: var(--space-10); }
  code, kbd { white-space: normal; overflow-wrap: anywhere; }
  pre.legal { padding: var(--space-4); }
}

@media print {
  .top, .side, .pager, .skip { display: none; }
  .layout { display: block; }
}
