:root {
  /* Canonical source palette: openclaw.ai at b94b43b. */
  --oc-palette-ink-950: #101012;
  --oc-palette-ink-900: #19191c;
  --oc-palette-ink-850: #202024;
  --oc-palette-ink-50: #ededed;
  --oc-palette-ink-300: #bcbcc4;
  --oc-palette-ink-500: #9a9aa2;

  --oc-palette-paper-50: #ffffff;
  --oc-palette-paper-100: #f6f5f3;
  --oc-palette-paper-200: #eceae6;
  --oc-palette-paper-950: #17171a;
  --oc-palette-paper-700: #46464e;
  --oc-palette-paper-600: #63636c;

  --oc-palette-coral-dark-bright: #f5654a;
  --oc-palette-coral-dark-mid: #e05540;
  --oc-palette-coral-dark-deep: #b23a28;
  --oc-palette-coral-light-bright: #d84a31;
  --oc-palette-coral-light-mid: #c24028;
  --oc-palette-coral-light-deep: #9c3222;

  --oc-palette-sea-dark-bright: #4fc8ae;
  --oc-palette-sea-dark-mid: #2fa48d;
  --oc-palette-sea-light-bright: #14806e;
  --oc-palette-sea-light-mid: #0f6355;

  --oc-space-1: 0.25rem;
  --oc-space-2: 0.5rem;
  --oc-space-3: 0.75rem;
  --oc-space-4: 1rem;
  --oc-space-5: 1.5rem;
  --oc-space-6: 2rem;
  --oc-space-7: 3rem;
  --oc-space-8: 4rem;

  --oc-font-size-xs: 0.75rem;
  --oc-font-size-sm: 0.8125rem;
  --oc-font-size-base: 0.875rem;
  --oc-font-size-md: 0.9375rem;
  --oc-font-size-lg: 1.0625rem;
  --oc-font-size-xl: 1.25rem;
  --oc-font-size-2xl: 1.5rem;
  --oc-font-size-3xl: 2rem;

  --oc-radius-sm: 0.25rem;
  --oc-radius-md: 0.5rem;
  --oc-radius-lg: 0.75rem;
  --oc-radius-xl: 1rem;
  --oc-radius-full: 999px;
  --oc-radius-surface: var(--oc-radius-md);
  --oc-radius-control: var(--oc-radius-md);
  --oc-radius-inset: var(--oc-radius-sm);
  --oc-radius-round: var(--oc-radius-full);

  --oc-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.12);
  --oc-shadow-md: 0 8px 24px -6px rgb(0 0 0 / 0.28);
  --oc-shadow-lg: 0 24px 48px -12px rgb(0 0 0 / 0.42);

  --oc-layer-popover: 20;
  --oc-layer-notification: 100;

  --oc-duration-fast: 160ms;
  --oc-duration-ui: 200ms;
  --oc-ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --oc-control-min-height: 2.75rem;

  --oc-content-max: 75rem;
  --oc-content-narrow: 48rem;
}

:root,
html[data-theme="dark"] {
  color-scheme: dark;

  --oc-bg-page: var(--oc-palette-ink-950);
  --oc-bg-surface: var(--oc-palette-ink-900);
  --oc-bg-elevated: var(--oc-palette-ink-850);
  --oc-bg-recessed: color-mix(in oklch, var(--oc-bg-page) 86%, oklch(0 0 0));
  --oc-bg-contrast: var(--oc-text-primary);

  --oc-accent-primary: var(--oc-palette-coral-dark-bright);
  --oc-accent-primary-hover: var(--oc-palette-coral-dark-mid);
  --oc-accent-primary-deep: var(--oc-palette-coral-dark-deep);
  --oc-accent-secondary: var(--oc-palette-sea-dark-bright);
  --oc-accent-secondary-deep: var(--oc-palette-sea-dark-mid);

  --oc-text-primary: var(--oc-palette-ink-50);
  --oc-text-secondary: var(--oc-palette-ink-300);
  --oc-text-muted: var(--oc-palette-ink-500);
  --oc-text-inactive: color-mix(in oklch, var(--oc-text-muted) 62%, transparent);
  --oc-text-inverse: var(--oc-bg-page);
  --oc-text-link: var(--oc-accent-primary);
  --oc-text-on-accent: var(--oc-palette-ink-950);

  --oc-border-subtle: rgb(154 154 162 / 0.18);
  --oc-border-strong: color-mix(in oklch, var(--oc-text-primary) 32%, transparent);
  --oc-border-accent: rgb(245 101 74 / 0.4);

  --oc-surface-card: rgb(25 25 28 / 0.72);
  --oc-surface-card-strong: rgb(25 25 28 / 0.9);
  --oc-surface-overlay: rgb(0 0 0 / 0.3);
  --oc-surface-modal-backdrop: rgb(0 0 0 / 0.6);
  --oc-surface-interactive: rgb(237 237 237 / 0.08);
  --oc-surface-interactive-hover: rgb(237 237 237 / 0.16);
  --oc-control-bg: var(--oc-surface-interactive);
  --oc-control-bg-hover: var(--oc-surface-interactive-hover);
  --oc-surface-accent-soft: rgb(245 101 74 / 0.14);
  --oc-surface-secondary-soft: rgb(79 200 174 / 0.14);
  --oc-chart-line: rgb(237 237 237 / 0.09);
  --oc-selection-bg: rgb(245 101 74 / 0.28);
  --oc-focus-ring: rgb(79 200 174 / 0.72);

  /* Compatibility aliases retained for zero-diff openclaw.ai extraction. */
  --bg-deep: var(--oc-bg-page);
  --bg-surface: var(--oc-bg-surface);
  --bg-elevated: var(--oc-bg-elevated);
  --coral-bright: var(--oc-accent-primary);
  --coral-mid: var(--oc-accent-primary-hover);
  --coral-dark: var(--oc-accent-primary-deep);
  --cyan-bright: var(--oc-accent-secondary);
  --cyan-mid: var(--oc-accent-secondary-deep);
  --cyan-glow: rgb(79 200 174 / 0.35);
  --text-primary: var(--oc-text-primary);
  --text-secondary: var(--oc-text-secondary);
  --text-muted: var(--oc-text-muted);
  --on-accent: var(--oc-text-on-accent);
  --border-subtle: var(--oc-border-subtle);
  --border-accent: var(--oc-border-accent);
  --surface-card: var(--oc-surface-card);
  --surface-card-strong: var(--oc-surface-card-strong);
  --surface-overlay: var(--oc-surface-overlay);
  --surface-interactive: var(--oc-surface-interactive);
  --surface-interactive-hover: var(--oc-surface-interactive-hover);
  --surface-coral-soft: var(--oc-surface-accent-soft);
  --surface-cyan-soft: var(--oc-surface-secondary-soft);
  --surface-inset-highlight: rgb(237 237 237 / 0.05);
  --chart-line: var(--oc-chart-line);
}

html[data-theme="light"] {
  color-scheme: light;

  --oc-bg-page: var(--oc-palette-paper-100);
  --oc-bg-surface: var(--oc-palette-paper-200);
  --oc-bg-elevated: var(--oc-palette-paper-50);
  --oc-bg-recessed: color-mix(
    in oklch,
    var(--oc-bg-page) 94%,
    var(--oc-text-primary)
  );
  --oc-bg-contrast: var(--oc-text-primary);

  --oc-accent-primary: var(--oc-palette-coral-light-bright);
  --oc-accent-primary-hover: var(--oc-palette-coral-light-mid);
  --oc-accent-primary-deep: var(--oc-palette-coral-light-deep);
  --oc-accent-secondary: var(--oc-palette-sea-light-bright);
  --oc-accent-secondary-deep: var(--oc-palette-sea-light-mid);

  --oc-text-primary: var(--oc-palette-paper-950);
  --oc-text-secondary: var(--oc-palette-paper-700);
  --oc-text-muted: var(--oc-palette-paper-600);
  --oc-text-inactive: color-mix(in oklch, var(--oc-text-muted) 62%, transparent);
  --oc-text-inverse: var(--oc-bg-page);
  --oc-text-link: var(--oc-accent-primary);
  --oc-text-on-accent: var(--oc-palette-paper-50);

  --oc-border-subtle: rgb(23 23 26 / 0.14);
  --oc-border-strong: color-mix(in oklch, var(--oc-text-primary) 28%, transparent);
  --oc-border-accent: rgb(216 74 49 / 0.42);

  --oc-surface-card: rgb(255 255 255 / 0.8);
  --oc-surface-card-strong: rgb(255 255 255 / 0.95);
  --oc-surface-overlay: rgb(23 23 26 / 0.08);
  --oc-surface-modal-backdrop: rgb(23 23 26 / 0.6);
  --oc-surface-interactive: rgb(23 23 26 / 0.07);
  --oc-surface-interactive-hover: rgb(23 23 26 / 0.14);
  --oc-control-bg: var(--oc-surface-interactive);
  --oc-control-bg-hover: var(--oc-surface-interactive-hover);
  --oc-surface-accent-soft: rgb(216 74 49 / 0.12);
  --oc-surface-secondary-soft: rgb(20 128 110 / 0.13);
  --oc-chart-line: rgb(23 23 26 / 0.12);
  --oc-selection-bg: rgb(216 74 49 / 0.2);
  --oc-focus-ring: rgb(20 128 110 / 0.58);

  --cyan-glow: rgb(20 128 110 / 0.24);
  --surface-inset-highlight: rgb(23 23 26 / 0.05);
}

/* Neutral application palette used by the reference site. Keep this additive
   to the stable theme contract: the stronger root selectors let consumers
   import themes/product.css afterward without copying these role overrides. */
html:root,
html:root[data-theme="dark"] {
  --oc-bg-page: oklch(0.135 0 0);
  --oc-bg-surface: oklch(0.178 0 0);
  --oc-bg-elevated: oklch(0.205 0 0);
  --oc-text-primary: oklch(0.985 0 0);
  --oc-text-secondary: oklch(0.87 0 0);
  --oc-text-muted: oklch(0.716 0 0);
  --oc-text-on-accent: oklch(0.135 0 0);
  --oc-border-subtle: oklch(0.269 0 0);
  --oc-surface-card: oklch(0.178 0 0 / 0.82);
  --oc-surface-card-strong: oklch(0.205 0 0 / 0.96);
  --oc-surface-overlay: oklch(0 0 0 / 0.3);
  --oc-surface-interactive: oklch(0.178 0 0);
  --oc-surface-interactive-hover: oklch(0.239 0 0);
  --oc-control-bg: var(--oc-surface-interactive);
  --oc-control-bg-hover: var(--oc-surface-interactive-hover);
  --oc-chart-line: oklch(1 0 0 / 0.1);
  --oc-focus-ring: oklch(0.935 0 0 / 0.72);
  --oc-input-bg: oklch(0.205 0 0);
  --oc-input-focus-border: color-mix(in srgb, var(--oc-text-primary) 62%, transparent);
  --oc-input-focus-ring: color-mix(in srgb, var(--oc-text-primary) 22%, transparent);
}

html:root[data-theme="light"] {
  /* The source coral stays available as palette data, while interactive and
     brand roles resolve to AA-safe mixtures on every documented light surface. */
  --oc-accent-primary: color-mix(
    in srgb,
    var(--oc-palette-coral-light-mid) 60%,
    var(--oc-palette-coral-light-deep) 40%
  );
  --oc-accent-primary-hover: color-mix(
    in srgb,
    var(--oc-palette-coral-light-mid) 30%,
    var(--oc-palette-coral-light-deep) 70%
  );
  --oc-accent-primary-deep: var(--oc-palette-coral-light-deep);
  --oc-bg-page: oklch(0.985 0 0);
  --oc-bg-surface: oklch(0.97 0 0);
  --oc-bg-elevated: oklch(1 0 0);
  --oc-text-primary: oklch(0.205 0 0);
  --oc-text-secondary: oklch(0.269 0 0);
  --oc-text-muted: oklch(0.555 0 0);
  --oc-text-on-accent: oklch(1 0 0);
  --oc-border-subtle: oklch(0.922 0 0);
  --oc-surface-card: oklch(1 0 0);
  --oc-surface-card-strong: oklch(1 0 0);
  --oc-surface-overlay: oklch(0.205 0 0 / 0.08);
  --oc-surface-interactive: oklch(0.97 0 0);
  --oc-surface-interactive-hover: oklch(0.922 0 0);
  --oc-control-bg: var(--oc-bg-elevated);
  --oc-control-bg-hover: var(--oc-surface-interactive-hover);
  --oc-chart-line: oklch(0.205 0 0 / 0.12);
  --oc-focus-ring: oklch(0.15 0 0 / 0.7);
  --oc-input-bg: oklch(1 0 0);
  --oc-input-focus-border: color-mix(in srgb, var(--oc-text-primary) 62%, transparent);
  --oc-input-focus-ring: color-mix(in srgb, var(--oc-text-primary) 22%, transparent);
}

:root {
  /*
   * Font binaries are intentionally not distributed. Consumers must load
   * licensed fonts themselves or use the documented fallback stacks.
   */
  --oc-font-display: "Switzer", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --oc-font-body: "Switzer", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --oc-font-serif: "Sentient", Georgia, "Times New Roman", serif;
  --oc-font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;

  --font-display: var(--oc-font-display);
  --font-body: var(--oc-font-body);
  --font-serif: var(--oc-font-serif);
  --font-mono: var(--oc-font-mono);
}


/*
 * Framework-neutral stable component primitives for OpenClaw surfaces.
 * This file preserves the v0.0.1 runtime contract.
 */

.oc-app-surface {
  --oc-component-surface: var(--oc-surface-card);
  --oc-component-surface-strong: var(--oc-surface-card-strong);
  --oc-component-surface-hover: var(--oc-surface-interactive);
  --oc-component-border: var(--oc-border-subtle);
  --oc-component-border-hover: color-mix(
    in srgb,
    var(--oc-text-primary) 28%,
    var(--oc-border-subtle)
    );
  --oc-component-shadow: var(--oc-shadow-sm);
  --oc-component-shadow-hover: var(--oc-shadow-md);

  min-width: 0;
  min-height: 100%;
  background: var(--oc-bg-page);
  color: var(--oc-text-primary);
  font-family: var(--oc-font-body);
}

.oc-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--oc-space-3);
  text-align: center;
}

.oc-hero-title {
  max-width: 66rem;
  margin: 0;
  color: var(--oc-accent-primary);
  font-family: var(--oc-font-mono);
  font-size: clamp(2.25rem, 4.25vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.oc-hero-lede {
  max-width: 42rem;
  margin: 0;
  color: var(--oc-text-secondary);
  font-size: var(--oc-font-size-lg);
  line-height: 1.6;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.oc-section {
  width: 100%;
  color: var(--oc-text-primary);
}

.oc-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--oc-space-5);
}

.oc-section-header > * {
  min-width: 0;
}

.oc-section-heading {
  display: grid;
  gap: var(--oc-space-2);
}

.oc-eyebrow {
  margin: 0;
  color: var(--oc-accent-primary);
  font-family: var(--oc-font-mono);
  font-size: var(--oc-font-size-xs);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.oc-section-title {
  margin: 0;
  color: var(--oc-text-primary);
  font-family: var(--oc-font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.oc-section-copy {
  max-width: 60ch;
  margin: 0;
  color: var(--oc-text-secondary);
  font-size: var(--oc-font-size-base);
  line-height: 1.65;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.oc-card {
  border: 1px solid var(--oc-component-border);
  border-radius: var(--oc-radius-surface);
  background: var(--oc-component-surface);
  color: var(--oc-text-primary);
  box-shadow: var(--oc-component-shadow);
}

.oc-card-interactive {
  transition:
    background var(--oc-duration-ui) var(--oc-ease-out),
    border-color var(--oc-duration-ui) var(--oc-ease-out),
    box-shadow var(--oc-duration-ui) var(--oc-ease-out),
    transform var(--oc-duration-ui) var(--oc-ease-out);
}

.oc-card-interactive:hover,
.oc-card-interactive:focus-visible {
  border-color: var(--oc-component-border-hover);
  background: var(--oc-component-surface-hover);
  box-shadow: var(--oc-component-shadow-hover);
  transform: translateY(-1px);
}

.oc-card-interactive:focus-visible {
  outline: 2px solid var(--oc-focus-ring);
  outline-offset: 3px;
}

.oc-card-interactive:active {
  transform: translateY(0) scale(0.995);
}

.oc-action {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: var(--oc-space-2);
  padding: var(--oc-space-2) var(--oc-space-4);
  border: 1px solid transparent;
  border-radius: var(--oc-radius-control);
  font: inherit;
  font-size: var(--oc-font-size-base);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  touch-action: manipulation;
  cursor: pointer;
  transition:
    background var(--oc-duration-fast) var(--oc-ease-out),
    border-color var(--oc-duration-fast) var(--oc-ease-out),
    color var(--oc-duration-fast) var(--oc-ease-out),
    transform var(--oc-duration-fast) var(--oc-ease-out);
}

.oc-action:hover {
  text-decoration: none;
}

.oc-action:focus-visible {
  outline: 2px solid var(--oc-focus-ring);
  outline-offset: 3px;
}

.oc-action:active:not(:disabled):not([aria-disabled="true"]) {
  transform: scale(0.98);
}

.oc-action:disabled,
.oc-action[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
}

.oc-action[aria-disabled="true"] {
  pointer-events: none;
}

.oc-action-primary {
  border-color: var(--oc-accent-primary);
  background: var(--oc-accent-primary);
  color: var(--oc-text-on-accent);
}

.oc-action-primary:hover {
  border-color: var(--oc-accent-primary-hover);
  background: var(--oc-accent-primary-hover);
  color: var(--oc-text-on-accent);
}

.oc-action-primary:active:not(:disabled):not([aria-disabled="true"]) {
  border-color: var(--oc-accent-primary-deep);
  background: var(--oc-accent-primary-deep);
}

.oc-action-secondary {
  border-color: var(--oc-border-accent);
  background: var(--oc-surface-accent-soft);
  color: var(--oc-accent-primary);
}

.oc-action-secondary:hover {
  border-color: var(--oc-accent-primary);
  background: color-mix(in srgb, var(--oc-surface-accent-soft) 72%, var(--oc-accent-primary));
  color: var(--oc-text-primary);
}

html[data-theme="light"] .oc-action-secondary,
html[data-theme-resolved="light"] .oc-action-secondary {
  border-color: var(--oc-border-strong);
  background: var(--oc-bg-elevated);
  color: var(--oc-text-primary);
}

html[data-theme="light"] .oc-action-secondary:hover,
html[data-theme-resolved="light"] .oc-action-secondary:hover {
  border-color: var(--oc-border-strong);
  background: var(--oc-surface-interactive-hover);
  color: var(--oc-text-primary);
}

.oc-action-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--oc-text-secondary);
}

.oc-action-ghost:hover {
  background: var(--oc-surface-interactive);
  color: var(--oc-text-primary);
}

.oc-action-icon {
  width: 2.5rem;
  padding: 0;
}

.oc-segmented {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: var(--oc-space-1);
  overflow-x: auto;
  padding: var(--oc-space-1);
  border: 1px solid var(--oc-border-subtle);
  border-radius: var(--oc-radius-control);
  background: var(--oc-surface-card);
}

.oc-segmented-item {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  gap: var(--oc-space-2);
  padding: var(--oc-space-1) var(--oc-space-3);
  border: 0;
  border-radius: var(--oc-radius-inset);
  background: transparent;
  color: var(--oc-text-secondary);
  font: inherit;
  font-size: var(--oc-font-size-base);
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  touch-action: manipulation;
  cursor: pointer;
  transition:
    background var(--oc-duration-fast) var(--oc-ease-out),
    color var(--oc-duration-fast) var(--oc-ease-out),
    transform var(--oc-duration-fast) var(--oc-ease-out);
}

.oc-segmented-item:active:not(:disabled) {
  transform: scale(0.98);
}

.oc-segmented-item:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.oc-segmented-item:hover {
  color: var(--oc-text-primary);
}

.oc-segmented-item[aria-selected="true"],
.oc-segmented-item[aria-pressed="true"],
.oc-segmented-item.is-active {
  background: var(--oc-surface-interactive-hover);
  color: var(--oc-text-primary);
}

.oc-segmented-item:focus-visible {
  outline: 2px solid var(--oc-focus-ring);
  outline-offset: 2px;
}

.oc-pill {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  min-height: 1.75rem;
  align-items: center;
  gap: var(--oc-space-2);
  padding: var(--oc-space-1) var(--oc-space-3);
  border: 1px solid var(--oc-border-subtle);
  border-radius: var(--oc-radius-control);
  background: var(--oc-surface-card);
  color: var(--oc-text-secondary);
  font-size: var(--oc-font-size-xs);
  font-weight: 650;
  line-height: 1;
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  .oc-card-interactive {
    transition: none;
  }

  .oc-card-interactive:hover,
  .oc-card-interactive:focus-visible,
  .oc-card-interactive:active {
    transform: none;
  }
}

@media (max-width: 42rem) {
  .oc-section-header {
    align-items: start;
    flex-direction: column;
  }

  .oc-hero-title {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }
}

:root {
  --oc-status-success-bg: rgb(34 197 94 / 0.12);
  --oc-status-success-fg: #22c55e;
  --oc-status-warning-bg: rgb(251 191 36 / 0.12);
  --oc-status-warning-fg: #fbbf24;
  --oc-status-error-bg: rgb(239 68 68 / 0.12);
  --oc-status-error-fg: #f87171;
  --oc-status-info-bg: rgb(59 130 246 / 0.14);
  --oc-status-info-fg: #60a5fa;

  --oc-input-bg: var(--oc-bg-elevated);
  --oc-input-border: var(--oc-border-subtle);
  --oc-input-placeholder: color-mix(in srgb, var(--oc-text-muted) 70%, transparent);
  --oc-input-focus-border: color-mix(in srgb, var(--oc-accent-primary) 58%, transparent);
  --oc-input-focus-ring: color-mix(in srgb, var(--oc-accent-primary) 22%, transparent);

  --oc-diff-added: #22c55e;
  --oc-diff-added-strong: #16a34a;
  --oc-diff-removed: #f87171;
  --oc-diff-removed-strong: #ef4444;
}

html[data-theme="light"],
[data-theme-family="claw"][data-theme-resolved="light"] {
  --oc-status-success-bg: rgb(34 197 94 / 0.1);
  --oc-status-success-fg: #146c37;
  --oc-status-warning-bg: rgb(245 158 11 / 0.1);
  --oc-status-warning-fg: #8f5100;
  --oc-status-error-bg: rgb(239 68 68 / 0.1);
  --oc-status-error-fg: #b91c1c;
  --oc-status-info-bg: rgb(37 99 235 / 0.1);
  --oc-status-info-fg: #1d4ed8;

  --oc-diff-added: #16a34a;
  --oc-diff-added-strong: #15803d;
  --oc-diff-removed: #e57373;
  --oc-diff-removed-strong: #dc2626;
}

@media (prefers-color-scheme: light) {
  [data-theme-family="claw"][data-theme-mode="system"] {
    --oc-status-success-bg: rgb(34 197 94 / 0.1);
    --oc-status-success-fg: #146c37;
    --oc-status-warning-bg: rgb(245 158 11 / 0.1);
    --oc-status-warning-fg: #8f5100;
    --oc-status-error-bg: rgb(239 68 68 / 0.1);
    --oc-status-error-fg: #b91c1c;
    --oc-status-info-bg: rgb(37 99 235 / 0.1);
    --oc-status-info-fg: #1d4ed8;
    --oc-diff-added: #16a34a;
    --oc-diff-added-strong: #15803d;
    --oc-diff-removed: #e57373;
    --oc-diff-removed-strong: #dc2626;
  }
}


@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Regular.ttf");
}
:root {
  color-scheme: dark;
  --bg: var(--oc-bg-page, #090909);
  --surface: var(--oc-bg-surface, #141414);
  --ink: var(--oc-text-primary, #f5f5f5);
  --text: var(--oc-text-secondary, #c5c5c5);
  --muted: var(--oc-text-muted, #999);
  --line: var(--oc-border-subtle, #2b2b2b);
  --brand: var(--oc-accent-primary, #e87960);
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fffefa;
  --surface: #f3f1ec;
  --ink: #202020;
  --text: #343434;
  --muted: #676767;
  --line: #dedbd5;
  --brand: #b7472f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--brand);
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}
button {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 12px;
}
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-row {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 30px;
  height: 35px;
  object-fit: contain;
}
.brand small {
  font:
    10px "JetBrains Mono",
    monospace;
  border: 1px solid var(--line);
  padding: 2px 4px;
  color: var(--muted);
}
#search-open {
  margin: auto;
  width: min(420px, 40vw);
  text-align: left;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  background: transparent;
}
.github {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}
kbd {
  font:
    12px "JetBrains Mono",
    monospace;
}
.tabs {
  display: flex;
  gap: 30px;
  overflow: auto;
  padding: 0 32px;
  scroll-padding-inline: 32px;
}
.tabs a {
  display: block;
  padding: 17px 0;
  font:
    600 13px "JetBrains Mono",
    monospace;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tabs a[aria-current] {
  color: var(--ink);
  border-color: var(--brand);
}
.tabs a:focus-visible {
  outline-offset: -2px;
}
.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 820px) 190px;
  gap: 40px;
  max-width: 1480px;
  margin: auto;
  padding: 36px 32px;
}
.layout:has(.compute-matrix) {
  grid-template-columns: 240px minmax(0, 1fr);
  max-width: 1480px;
}
.layout:has(.compute-matrix) .toc {
  display: none;
}
#sidebar {
  position: sticky;
  top: 155px;
  align-self: start;
  max-height: calc(100vh - 180px);
  overflow: auto;
  padding: 4px 10px 4px 4px;
}
#sidebar section {
  margin-bottom: 30px;
}
#sidebar h2 {
  font:
    600 11px "JetBrains Mono",
    monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 14px;
}
#sidebar .sidebar-pages {
  list-style: none;
  margin: 0;
  padding: 0;
}
#sidebar .sidebar-pages .sidebar-pages {
  margin-left: 12px;
  padding-left: 5px;
  border-left: 1px solid var(--line);
}
#sidebar .sidebar-pages li {
  margin: 0;
}
#sidebar a,
#sidebar summary {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}
#sidebar a[aria-current] {
  border-color: var(--brand);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, transparent);
}
#sidebar summary {
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}
#sidebar summary::-webkit-details-marker {
  display: none;
}
#sidebar summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 3px;
  flex: 0 0 7px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(-45deg);
}
#sidebar details[open] > summary::after {
  transform: rotate(45deg) translate(-2px, -2px);
}
#sidebar details[data-active] > summary,
#sidebar a:hover,
#sidebar summary:hover {
  color: var(--ink);
}
#sidebar :is(a, summary):focus-visible {
  outline-offset: 2px;
}
.breadcrumb {
  font:
    11px "JetBrains Mono",
    monospace;
  color: var(--muted);
  margin: 5px 0 30px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc .breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.breadcrumb li + li::before {
  content: "";
  height: 10px;
  border-right: 1px solid var(--muted);
  transform: rotate(20deg);
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.breadcrumb [aria-current] {
  color: var(--ink);
}
.doc {
  min-width: 0;
  line-height: 1.75;
  font-size: 16px;
}
.doc h1 {
  font-size: 38px;
  line-height: 1.16;
  letter-spacing: -1px;
  color: var(--ink);
  margin: 0 0 26px;
}
.doc h2 {
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: -0.4px;
  margin-top: 44px;
  color: var(--ink);
}
.doc h3 {
  font-size: 19px;
  color: var(--ink);
  margin-top: 30px;
}
.doc h1,
.doc h2,
.doc h3,
.doc h4,
.anchor-alias {
  scroll-margin-top: 160px;
}
.doc h2,
.doc h3 {
  position: relative;
}
.doc p {
  margin: 16px 0;
}
.doc li {
  margin: 6px 0;
}
.doc strong {
  color: var(--ink);
}
.doc img {
  max-width: 100%;
  height: auto;
}
.doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.doc blockquote {
  border-left: 3px solid var(--line);
  margin: 20px 0;
  padding-left: 20px;
  color: var(--muted);
}
.doc code {
  font:
    12px/1.7 "JetBrains Mono",
    monospace;
  padding: 2px 4px;
  border-radius: 3px;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.doc pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  tab-size: 2;
}
.doc pre code {
  padding: 0;
  background: none;
  white-space: pre;
  overflow-wrap: normal;
}
.oc-code {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
}
.oc-code figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px;
  border-bottom: 1px solid var(--line);
  font:
    11px "JetBrains Mono",
    monospace;
  color: var(--muted);
}
.oc-code figcaption button {
  padding: 3px 7px;
  font-size: 11px;
}
.oc-code figcaption button:after {
  content: "Copy";
}
.code-line {
  display: block;
  min-height: 1.7em;
}
.oc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.heading-anchor {
  display: inline-flex;
  width: 26px;
  height: 26px;
  padding: 5px;
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  vertical-align: middle;
}
.heading-anchor svg {
  width: 15px;
  height: 15px;
}
.heading-anchor-check {
  display: none;
}
.doc table {
  display: block;
  overflow: auto;
  width: 100%;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  margin: 24px 0;
}
.doc th,
.doc td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  min-width: 130px;
}
.doc th {
  color: var(--ink);
  background: var(--surface);
}
.doc tr:last-child td {
  border-bottom: 0;
}
.compute-matrix {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  overflow: hidden;
}
.compute-matrix-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 20px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.compute-matrix-eyebrow {
  margin: 0 0 6px;
  color: var(--ink);
  font:
    600 12px "JetBrains Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0;
}
.compute-matrix-meta,
.compute-matrix-notice,
.compute-matrix-count {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.compute-matrix-controls {
  display: grid;
  gap: 10px;
}
.compute-matrix-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}
.compute-matrix-controls input,
.compute-matrix-controls select {
  width: 100%;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
}
.compute-matrix-count {
  padding: 0 18px;
}
.compute-matrix-table {
  max-height: min(70vh, 760px);
  overflow: auto;
}
.compute-matrix .compute-matrix-table table {
  display: table;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  min-width: 900px;
  table-layout: fixed;
}
.compute-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}
.compute-matrix th:first-child {
  width: 20%;
}
.compute-matrix th:nth-child(2) {
  width: 25%;
}
.compute-matrix-category {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font:
    11px "JetBrains Mono",
    monospace;
}
.compute-matrix-requirement {
  color: var(--text);
}
.compute-matrix-cell summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.compute-matrix-mark {
  display: inline-grid;
  width: 26px;
  min-height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font:
    600 11px "JetBrains Mono",
    monospace;
}
.compute-matrix-status-supported .compute-matrix-mark {
  font-size: 14px;
}
.compute-matrix-status-partial .compute-matrix-mark {
  color: var(--muted);
}
.compute-matrix-status-unsupported .compute-matrix-mark,
.compute-matrix-status-unknown .compute-matrix-mark {
  color: var(--muted);
}
.compute-matrix-status-label {
  font-weight: 600;
  white-space: nowrap;
}
.compute-matrix-cell p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.compute-matrix-requirement-detail {
  margin: 8px 0 0;
  color: var(--muted);
}
.compute-matrix-evidence summary {
  margin-top: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}
.compute-matrix-evidence p,
.compute-matrix-live-proof {
  margin-top: 6px;
}
.compute-matrix-live-proof span {
  color: var(--muted);
}
.toc {
  position: sticky;
  top: 155px;
  align-self: start;
  max-height: calc(100vh - 180px);
  overflow: auto;
  font-size: 12px;
}
.toc strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.toc a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}
.toc a:hover {
  color: var(--brand);
}
.doc footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 13px;
}
.oc-mermaid {
  margin: 24px 0;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.oc-mermaid svg {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
}
.oc-mermaid pre {
  font:
    12px "JetBrains Mono",
    monospace;
}
.diagram-error {
  color: #ff9a88;
}
.hljs-comment {
  color: #858590;
}
.hljs-string,
.hljs-attr {
  color: #8fd4bd;
}
.hljs-keyword,
.hljs-literal {
  color: #d2a8ff;
}
.hljs-number,
.hljs-variable {
  color: #79c0ff;
}
.hljs-title,
.hljs-built_in {
  color: #f2a37c;
}
dialog {
  width: min(700px, calc(100vw - 32px));
  max-height: 85vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  padding: 24px;
}
dialog::backdrop {
  background: #0009;
}
.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
#search {
  --pagefind-ui-primary: var(--brand);
  --pagefind-ui-text: var(--text);
  --pagefind-ui-background: var(--bg);
  --pagefind-ui-border: var(--line);
  --pagefind-ui-font: system-ui, sans-serif;
}
.skip {
  position: fixed;
  left: 15px;
  top: -100px;
  padding: 10px;
  background: var(--surface);
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
#menu {
  display: none;
}
@media (min-width: 1500px) {
  .layout {
    gap: 55px;
  }
}
@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 32px;
  }
  .toc {
    display: none;
  }
  .header-row {
    gap: 14px;
  }
  .brand small {
    display: none;
  }
}
@media (max-width: 760px) {
  .header-row {
    height: 64px;
    padding: 0 18px;
    gap: 10px;
  }
  .brand {
    font-size: 14px;
  }
  .brand img {
    width: 25px;
  }
  .github {
    display: none;
  }
  #search-open {
    width: auto;
    margin-left: auto;
    font-size: 0;
    padding: 10px;
  }
  #search-open:before {
    content: "Search";
    font-size: 12px;
  }
  #search-open kbd {
    display: none;
  }
  .tabs {
    padding: 0 18px;
    gap: 24px;
    scroll-padding-inline: 18px;
  }
  .tabs a {
    font-size: 11px;
    padding: 14px 0;
  }
  .layout {
    display: block;
    padding: 20px 20px 48px;
  }
  html[data-docs-navigation] #menu {
    display: block;
    width: 100%;
    margin-bottom: 25px;
  }
  #sidebar {
    display: block;
    position: static;
    max-height: 60vh;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--surface);
    border-radius: 8px;
  }
  html[data-docs-navigation] #sidebar:not(.open) {
    display: none;
  }
  #sidebar a,
  #sidebar summary {
    min-height: 44px;
  }
  .doc h1 {
    font-size: 30px;
  }
  .doc h2 {
    font-size: 23px;
  }
  .breadcrumb {
    margin-bottom: 22px;
  }
  .doc pre {
    padding: 14px;
  }
  .oc-mermaid {
    padding: 10px;
  }
  .compute-matrix-head {
    display: block;
  }
  .compute-matrix-controls {
    margin-top: 14px;
  }
  .oc-mermaid svg {
    min-width: 500px;
  }
  .doc {
    font-size: 15px;
  }
}

/* Long source identifiers wrap in prose while code blocks retain horizontal scrolling. */
.doc {
  overflow-wrap: anywhere;
}
.doc h3 code {
  font-size: 0.85em;
}
:root[data-theme="light"] .hljs-string,
:root[data-theme="light"] .hljs-attr {
  color: #0f6355;
}
:root[data-theme="light"] .hljs-keyword,
:root[data-theme="light"] .hljs-literal {
  color: #7b3fb4;
}
:root[data-theme="light"] .hljs-number,
:root[data-theme="light"] .hljs-variable {
  color: #2365a8;
}
:root[data-theme="light"] .hljs-title,
:root[data-theme="light"] .hljs-built_in {
  color: #a63c22;
}

.diagram-expand {
  display: block;
  margin: 0 0 12px auto;
  font-size: 12px;
}
#diagram-dialog {
  width: calc(100vw - 40px);
  max-width: none;
}
#diagram-close {
  display: block;
  margin: 0 0 14px auto;
}
#diagram-canvas {
  overflow: auto;
  max-height: 75vh;
}
#diagram-canvas svg {
  display: block;
  height: auto;
  margin: auto;
}
