:root {
  /* Consumer interface colors. Keep this system neutral and semantic. */
  --background: oklch(96% 0 0);
  --foreground: oklch(18% 0 0);
  --muted: oklch(52% 0 0);

  --surface: oklch(100% 0 0);
  --surface-secondary: oklch(97% 0 0);
  --surface-tertiary: oklch(94% 0 0);

  --border: oklch(89% 0 0);
  --separator: oklch(93% 0 0);

  --field-background: oklch(100% 0 0);
  /* Darker than the initial proposal so required field boundaries reach 3:1. */
  --field-border: oklch(66% 0 0);
  --field-foreground: oklch(18% 0 0);
  /* Readable at 4.5:1 or better on the field background. */
  --field-placeholder: oklch(56% 0 0);

  --accent: oklch(18% 0 0);
  --accent-foreground: oklch(100% 0 0);
  --focus: oklch(18% 0 0);

  /* Semantic states shared by operational and consumer-facing surfaces. */
  --status-info: oklch(46% 0.12 250);
  --status-info-surface: oklch(96% 0.025 250);
  --status-success: oklch(43% 0.1 150);
  --status-success-surface: oklch(96% 0.035 150);
  --status-warning: oklch(49% 0.11 75);
  --status-warning-surface: oklch(97% 0.04 85);
  --status-danger: oklch(48% 0.14 25);
  --status-danger-surface: oklch(96% 0.035 25);

  --overlay: oklch(100% 0 0);
  --overlay-foreground: oklch(18% 0 0);
  --backdrop: oklch(18% 0 0 / 0.55);
  --search-backdrop: oklch(18% 0 0 / 0.275);

  /* Shared neutral elevation recipes. */
  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.06);
  --shadow-md: 0 8px 24px oklch(0% 0 0 / 0.09);
  --shadow-lg: 0 24px 64px oklch(0% 0 0 / 0.14);
  --radius-card: 24px;
  --radius-pill: 999px;

  /* Fragrance visualization colors are ordinal and independent of UI state. */
  --viz-category-1: #a66c4d;
  --viz-category-2: #65705c;
  --viz-category-3: #39403e;
  --viz-category-4: #aa7674;
  --viz-category-5: #b58a45;
  --viz-category-6: #89977d;
  --viz-category-7: #735c70;
  --viz-category-8: #66757a;
  --viz-category-9: #a9997f;
  --viz-category-10: #527d78;
  --viz-point-stroke: oklch(100% 0 0);
  --viz-grid: oklch(84% 0 0);
  --viz-relationship-line: oklch(78% 0 0);
  --viz-focus-ring: oklch(18% 0 0);
  --viz-tooltip-background: oklch(18% 0 0);
  --viz-tooltip-foreground: oklch(100% 0 0);
  --viz-tooltip-muted: oklch(78% 0 0);
  --viz-dimmed-opacity: 0.48;

  --font-consumer: "Instrument Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-micro: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* 15px base with a 1.250 Major Third scale; rem values assume the browser's
     standard 16px root and do not alter user root-size preferences. */
  --type-100: 0.6rem;
  --type-200: 0.75rem;
  --type-300: 0.9375rem;
  --type-400: 1.171875rem;
  --type-500: 1.46484375rem;
  --type-600: 1.8310546875rem;
  --type-700: 2.288818359375rem;
  --type-800: 2.86102294921875rem;
  --type-900: 3.5762786865234375rem;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  --leading-body: 1.6;
  --leading-heading: 1.15;
  --tracking-heading: -0.022em;
  --tracking-normal: normal;
}

.consumer-app {
  font-family: var(--font-consumer);
  font-size: var(--type-400);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-normal);
  color: var(--foreground);
}

.consumer-app button,
.consumer-app input,
.consumer-app select,
.consumer-app textarea {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.consumer-app :where(code, kbd, samp, pre) {
  font-family: inherit;
}

:focus { outline: none; }

/* Shared by page scrollbars, horizontal shelves, and nested scroll areas. */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
  background: transparent;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-track-piece,
::-webkit-scrollbar-corner {
  background: transparent;
  border: 0;
  box-shadow: none;
}

::-webkit-scrollbar-thumb {
  background: rgb(0 0 0 / 12%);
  background-clip: padding-box;
  border: 4px solid transparent;
  border-radius: 99px;
}

/* Grow within a fixed track so hover never shifts the page or touches dividers. */
::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
  border-width: 3px;
}

::-webkit-scrollbar-track:horizontal { margin-inline: 3px; }
::-webkit-scrollbar-track:vertical { margin-block: 3px; }

/* Keep WebKit's component-specific thumb visibility and sizing intact. */
@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-color: rgb(0 0 0 / 12%) transparent;
    scrollbar-width: thin;
  }
}
