/* The workspace's theme for apps (ADR 202611020015). Generated; do not edit. */

:root {
  color-scheme: light;

  --color-canvas: #fafafa;
  --color-surface: #ffffff;
  --color-surface-2: #f5f5f5;
  --color-ink: #141414;
  --color-ink-2: #525252;
  --color-ink-3: #707070;
  --color-line: #e5e5e5;
  --color-line-2: #d6d6d6;
  --color-control-line: #c9c9c9;
  --color-accent: #ff4405;
  --color-accent-ink: #000000;
  --color-low: #067647;
  --color-low-bg: #ecfdf3;
  --color-medium: #b54708;
  --color-medium-bg: #fffaeb;
  --color-yield: #eab308;
  --color-yield-mark: #422006;
  --color-yield-text: #854d0e;
  --color-high: #b42318;
  --color-high-bg: #fef3f2;
  --color-allowed: var(--color-low);
  --color-allowed-bg: var(--color-low-bg);
  --color-pending: #3538cd;
  --color-pending-bg: #eef4ff;
  --color-denied: var(--color-high);
  --color-denied-bg: var(--color-high-bg);
  --color-before: hsl(2 55% 40%);
  --color-after: hsl(152 40% 28%);
  --color-series-1: #444ce7;
  --color-series-2: #ff4405;
  --color-series-3: #079455;
  --color-series-4: #4d35c6;
  --color-grid: #e5e5e5;
  --color-ghost-paper: #ffffff;
  --color-ghost-shade: #dbdbdb;
  --color-ghost-ink: #000000;
  --radius-card: 12px;
  --space-unit: 4px;
  --color-rail: #141414;
  --color-rail-ink: #fafafa;
  --color-rail-muted: #a3a3a3;
  --color-rail-selected: #424242;
  --color-strong: #141414;
  --color-strong-ink: #fafafa;
  --color-primary-hover: #424242;
  --color-primary-pressed: #0f0f0f;
  --color-accent-hover: #e62e05;
  --color-accent-pressed: #ed4106;
  --color-focus-ring: var(--color-ink-2);
  --font-ui: Geist, "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Geist Serif", Georgia, serif;
  --font-name: Geist, "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  --font-code: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --background: var(--color-canvas);
  --foreground: var(--color-ink);
  --card: var(--color-surface);
  --card-foreground: var(--color-ink);
  --popover: var(--color-surface);
  --popover-foreground: var(--color-ink);
  --primary: var(--color-strong);
  --primary-foreground: var(--color-strong-ink);
  --secondary: var(--color-surface-2);
  --secondary-foreground: var(--color-ink);
  --muted: var(--color-surface-2);
  --muted-foreground: var(--color-ink-2);
  --accent: var(--color-surface-2);
  --accent-foreground: var(--color-ink);
  --destructive: var(--color-high);
  --border: var(--color-line);
  --input: var(--color-control-line);
  --ring: var(--color-focus-ring);
  --chart-1: var(--color-ink);
  --chart-2: var(--color-ink-2);
  --chart-3: var(--color-ink-3);
  --chart-4: var(--color-line-2);
  --chart-5: var(--color-line);
  --radius: 0.5rem;
  --sidebar: var(--color-surface);
  --sidebar-foreground: var(--color-ink);
  --sidebar-primary: var(--color-strong);
  --sidebar-primary-foreground: var(--color-strong-ink);
  --sidebar-accent: var(--color-surface-2);
  --sidebar-accent-foreground: var(--color-ink);
  --sidebar-border: var(--color-line);
  --sidebar-ring: var(--color-ink-3);
}

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

  --color-strong: #333333;
  --color-strong-ink: #fafafa;
  --color-primary-hover: #3d3d3d;
  --color-primary-pressed: #2a2a2a;
  --color-focus-ring: var(--color-ink-2);
  --color-canvas: #0f0f0f;
  --color-surface: #141414;
  --color-surface-2: #292929;
  --color-ink: #fafafa;
  --color-ink-2: #d6d6d6;
  --color-ink-3: #a3a3a3;
  --color-line: #424242;
  --color-line-2: #525252;
  --color-control-line: #5c5c5c;
  --color-accent: #ff692e;
  --color-accent-ink: #000000;
  --color-low: #47cd89;
  --color-low-bg: hsl(152 30% 16%);
  --color-medium: #fdb022;
  --color-medium-bg: hsl(38 40% 17%);
  --color-yield: #facc15;
  --color-yield-mark: #422006;
  --color-yield-text: #fde047;
  --color-high: #fda29b;
  --color-high-bg: hsl(2 40% 18%);
  --color-pending: hsl(219 80% 74%);
  --color-pending-bg: hsl(222 38% 19%);
  --color-before: hsl(2 70% 68%);
  --color-after: #47cd89;
  --color-series-1: hsl(219 80% 70%);
  --color-series-2: hsl(14 92% 62%);
  --color-series-3: hsl(152 45% 60%);
  --color-series-4: hsl(276 55% 70%);
  --color-grid: #424242;
  --color-ghost-paper: #000000;
  --color-ghost-shade: #242424;
  --color-ghost-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --color-strong: #333333;
    --color-strong-ink: #fafafa;
    --color-primary-hover: #3d3d3d;
    --color-primary-pressed: #2a2a2a;
    --color-focus-ring: var(--color-ink-2);
    --color-canvas: #0f0f0f;
    --color-surface: #141414;
    --color-surface-2: #292929;
    --color-ink: #fafafa;
    --color-ink-2: #d6d6d6;
    --color-ink-3: #a3a3a3;
    --color-line: #424242;
    --color-line-2: #525252;
    --color-control-line: #5c5c5c;
    --color-accent: #ff692e;
    --color-accent-ink: #000000;
    --color-low: #47cd89;
    --color-low-bg: hsl(152 30% 16%);
    --color-medium: #fdb022;
    --color-medium-bg: hsl(38 40% 17%);
    --color-yield: #facc15;
    --color-yield-mark: #422006;
    --color-yield-text: #fde047;
    --color-high: #fda29b;
    --color-high-bg: hsl(2 40% 18%);
    --color-pending: hsl(219 80% 74%);
    --color-pending-bg: hsl(222 38% 19%);
    --color-before: hsl(2 70% 68%);
    --color-after: #47cd89;
    --color-series-1: hsl(219 80% 70%);
    --color-series-2: hsl(14 92% 62%);
    --color-series-3: hsl(152 45% 60%);
    --color-series-4: hsl(276 55% 70%);
    --color-grid: #424242;
    --color-ghost-paper: #000000;
    --color-ghost-shade: #242424;
    --color-ghost-ink: #ffffff;
  }
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/__redo/theme/fonts/geist-latin.86c9264f123e653a.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/__redo/theme/fonts/geist-serif-latin.9f9744039a36f59d.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/__redo/theme/fonts/geist-mono-latin.0d65056dd24ef207.woff2") format("woff2");
}

/*
 * The workspace's look for an app that wants it (ADR 202611020015): the base,
 * written against the design tokens. The served sheet is this file after the
 * token rules and the font faces, which `scripts/build-app-theme.ts` writes
 * from `src/design-tokens.ts`; nothing here repeats a value the table holds.
 *
 * The sheet has no component classes: the workspace's component library,
 * `@library/ui`, draws buttons, fields, menus and the rest (ADR
 * 202611111850 §8; the `redo-*` classes retired at contract revision 19). The
 * base is `:where()`, so any rule of the app's own wins.
 */

:where(html) {
  font-family: var(--font-ui);
  font-size: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* iOS enlarges text on its own when the phone turns sideways. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:where(body) {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-size: 0.875rem;
}

:where(button, input, textarea, select) {
  font: inherit;
  color: inherit;
}

/*
 * A touch screen: iOS zooms the page in on a field written smaller than 16px
 * when it takes focus, and leaves it zoomed and cut off. The one rule of the
 * base an app's own does not override, since no app means that.
 */
@media (hover: none) and (pointer: coarse) {
  input,
  textarea,
  select {
    font-size: max(16px, 1em) !important;
  }
}

/* Two quick taps on a control do not zoom the page; pinching still does. */
:where(a, button, input, label, select, summary, textarea, [role="button"]) {
  touch-action: manipulation;
}

:where(a) {
  color: inherit;
  text-underline-offset: 0.2em;
}

:where(code, kbd, pre, samp) {
  font-family: var(--font-code);
}

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

::selection {
  background: color-mix(in oklch, var(--color-accent) 24%, transparent);
}
