/* Copied from matthill8286/impkt-design-system, @atomic-ui/theme version 0.12.1, commit fdf36e7. To update, build the design system and run pnpm theme:copy again. */
/*
 * Impakt product theme, @atomic-ui/theme version 0.12.1.
 * https://github.com/matthill8286/impkt-design-system/tree/main/packages/theme
 *
 * Generated from the Impakt brand inputs by @atomic-ui/design-tokens. Do not edit this file:
 * change packages/theme in the design system and build it again.
 *
 * Copy this file and the fonts folder into a product's public folder, serve them from the same
 * origin, and link the file before the product's own inline styles. The rules here use low
 * specificity on purpose, so a product's own rules win without !important.
 *
 * Every product name starts with --ik- or .ik- so it never collides with a product's own names.
 * The house tokens they are built from start with --impakt-. The shared class names that products
 * already use (card, panel, pill, alert, tabs, muted, small, row) are styled here too, so a
 * product gets the look by keeping its markup.
 */

/* ---------------------------------------------------------------- fonts */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/archivo-latin-wght.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500.woff2") format("woff2"); 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: "Kalam"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/kalam-latin-400.woff2") format("woff2"); 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: "Kalam"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/kalam-latin-700.woff2") format("woff2"); 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; }

/* ---------------------------------------------------------- house tokens */

/* The Impakt brand, derived by @atomic-ui/design-tokens and written by its own emitter. */

:root {
  --impakt-focus-ring-inner: #ffffff;
  --impakt-focus-ring-outer: #1a1a1a;
  --impakt-focus-ring-width: 2px;
  --impakt-focus-ring-offset: 2px;
  --impakt-focus-ring-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1a1a1a;
  --impakt-target-min: 24px;
  --impakt-target-spacing: 8px;
  --impakt-color-surface-page: #EFEFED;
  --impakt-color-surface-card: #FFFFFF;
  --impakt-color-surface-header: #FFFFFF;
  --impakt-color-surface-footer: #EFEFED;
  --impakt-color-surface-subtle: #F7F6F3;
  --impakt-color-surface-inset: #f4f4f4;
  --impakt-color-brand-default: #111111;
  --impakt-color-brand-hover: #0f0f0f;
  --impakt-color-brand-active: #0d0d0d;
  --impakt-color-brand-subtle: #e2e2e2;
  --impakt-color-brand-on: #ffffff;
  --impakt-color-accent-default: #FFD43B;
  --impakt-color-accent-hover: #e0bb34;
  --impakt-color-accent-on: #1a1a1a;
  --impakt-color-text-default: #111111;
  --impakt-color-text-muted: #5C5C5C;
  --impakt-color-text-placeholder: #5C5C5C;
  --impakt-color-text-on-brand: #ffffff;
  --impakt-color-text-on-header: #111111;
  --impakt-color-text-on-footer: #111111;
  --impakt-color-text-heading: #111111;
  --impakt-color-chart-1: #a38a2e;
  --impakt-color-chart-2: #2f6fa3;
  --impakt-color-chart-3: #137a52;
  --impakt-color-chart-4: #8a6d00;
  --impakt-color-chart-5: #b23a2e;
  --impakt-color-text-link: #111111;
  --impakt-color-text-link-hover: #0e0e0e;
  --impakt-color-text-subtle: #616161;
  --impakt-color-line-grid: #DCDCD8;
  --impakt-color-line-soft: #CFCCC5;
  --impakt-color-surface-ink-raised: #1C1C1C;
  --impakt-color-line-inverse: #2E2E2E;
  --impakt-color-text-inverse-muted: #A8A8A6;
  --impakt-color-surface-board: #E3E2DD;
  --impakt-color-border-default: #919191;
  --impakt-color-border-strong: #7c7c7c;
  --impakt-color-status-danger-default: #b23a2e;
  --impakt-color-status-danger-text: #b23a2e;
  --impakt-color-status-danger-subtle: #f6e7e6;
  --impakt-color-status-danger-on: #ffffff;
  --impakt-color-status-warning-default: #8a6d00;
  --impakt-color-status-warning-text: #8a6d00;
  --impakt-color-status-warning-subtle: #f1ede0;
  --impakt-color-status-warning-on: #ffffff;
  --impakt-color-status-success-default: #137a52;
  --impakt-color-status-success-text: #137a52;
  --impakt-color-status-success-subtle: #e3efea;
  --impakt-color-status-success-on: #ffffff;
  --impakt-color-status-info-default: #2f6fa3;
  --impakt-color-status-info-text: #2f6fa3;
  --impakt-color-status-info-subtle: #e6eef4;
  --impakt-color-status-info-on: #ffffff;
  --impakt-color-status-ok-mark: #137A52;
  --impakt-font-family-body: Archivo, "Helvetica Neue", Arial, sans-serif;
  --impakt-font-family-heading: Archivo, "Helvetica Neue", Arial, sans-serif;
  --impakt-font-family-mono: "IBM Plex Mono", "ui-monospace", "SFMono-Regular", "Menlo", "Consolas", "monospace", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --impakt-font-family-eyebrow: "IBM Plex Mono", "ui-monospace", "SFMono-Regular", "Menlo", "Consolas", "monospace", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --impakt-color-text-eyebrow: #5C5C5C;
  --impakt-font-weight-eyebrow: 500;
  --impakt-font-size-eyebrow: 0.6875rem;
  --impakt-font-size-root: 16px;
  --impakt-font-size-2xs: 0.75rem;
  --impakt-font-leading-2xs: 1.333;
  --impakt-font-size-xs: 0.75rem;
  --impakt-font-leading-xs: 1.333;
  --impakt-font-size-sm: 0.875rem;
  --impakt-font-leading-sm: 1.429;
  --impakt-font-size-md: 1rem;
  --impakt-font-leading-md: 1.5;
  --impakt-font-size-lg: 1.125rem;
  --impakt-font-leading-lg: 1.556;
  --impakt-font-size-xl: 1.25rem;
  --impakt-font-leading-xl: 1.4;
  --impakt-font-size-2xl: 1.5rem;
  --impakt-font-leading-2xl: 1.333;
  --impakt-font-size-3xl: 1.875rem;
  --impakt-font-leading-3xl: 1.2;
  --impakt-font-size-4xl: 2.25rem;
  --impakt-font-leading-4xl: 1.111;
  --impakt-font-size-5xl: 3rem;
  --impakt-font-leading-5xl: 1.083;
  --impakt-font-size-6xl: 3.75rem;
  --impakt-font-leading-6xl: 1.067;
  --impakt-font-tracking-tight: -0.02em;
  --impakt-font-tracking-normal: 0em;
  --impakt-font-tracking-wide: 0.06em;
  --impakt-font-weight-regular: 400;
  --impakt-font-weight-medium: 500;
  --impakt-font-weight-semibold: 600;
  --impakt-font-weight-bold: 700;
  --impakt-font-line-height-tight: 1.25;
  --impakt-font-line-height-normal: 1.5;
  --impakt-font-line-height-relaxed: 1.75;
  --impakt-font-line-height-body: 1.45;
  --impakt-font-family-hand: Kalam, Archivo, "Helvetica Neue", Arial, sans-serif;
  --impakt-type-display-xl-size: clamp(3.5rem, 1.5741rem + 7.901vw, 7.5rem);
  --impakt-type-display-xl-line-height: 1;
  --impakt-type-display-xl-tracking: -0.05em;
  --impakt-type-display-xl-weight: 600;
  --impakt-type-display-xl-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  --impakt-type-display-row-size: clamp(2.75rem, 1.9074rem + 3.457vw, 4.5rem);
  --impakt-type-display-row-line-height: 1;
  --impakt-type-display-row-tracking: -0.05em;
  --impakt-type-display-row-weight: 600;
  --impakt-type-display-row-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  --impakt-type-display-l-size: clamp(2.75rem, 2.1481rem + 2.469vw, 4rem);
  --impakt-type-display-l-line-height: 1;
  --impakt-type-display-l-tracking: -0.04em;
  --impakt-type-display-l-weight: 600;
  --impakt-type-display-l-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  --impakt-type-display-m-size: clamp(2.5rem, 2.1389rem + 1.481vw, 3.25rem);
  --impakt-type-display-m-line-height: 1.04;
  --impakt-type-display-m-tracking: -0.04em;
  --impakt-type-display-m-weight: 600;
  --impakt-type-display-m-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  --impakt-type-stat-size: clamp(2.5rem, 2.1389rem + 1.481vw, 3.25rem);
  --impakt-type-stat-line-height: 1.04;
  --impakt-type-stat-tracking: -0.04em;
  --impakt-type-stat-weight: 600;
  --impakt-type-stat-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  --impakt-type-heading-m-size: clamp(1.75rem, 1.6296rem + 0.494vw, 2rem);
  --impakt-type-heading-m-line-height: 1.1;
  --impakt-type-heading-m-tracking: -0.03em;
  --impakt-type-heading-m-weight: 600;
  --impakt-type-heading-m-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  --impakt-type-heading-s-size: 1.5rem;
  --impakt-type-heading-s-line-height: 1.15;
  --impakt-type-heading-s-tracking: -0.025em;
  --impakt-type-heading-s-weight: 600;
  --impakt-type-heading-s-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  --impakt-type-body-l-size: 1.25rem;
  --impakt-type-body-l-line-height: 1.45;
  --impakt-type-body-l-tracking: -0.01em;
  --impakt-type-body-l-weight: 400;
  --impakt-type-body-l-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  --impakt-type-body-m-size: 1rem;
  --impakt-type-body-m-line-height: 1.45;
  --impakt-type-body-m-tracking: 0em;
  --impakt-type-body-m-weight: 400;
  --impakt-type-body-m-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  --impakt-type-body-s-size: 0.875rem;
  --impakt-type-body-s-line-height: 1.4;
  --impakt-type-body-s-tracking: 0em;
  --impakt-type-body-s-weight: 400;
  --impakt-type-body-s-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  --impakt-type-label-l-size: 1.25rem;
  --impakt-type-label-l-line-height: 1.2;
  --impakt-type-label-l-tracking: -0.01em;
  --impakt-type-label-l-weight: 500;
  --impakt-type-label-l-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  --impakt-type-label-m-size: 1rem;
  --impakt-type-label-m-line-height: 1.2;
  --impakt-type-label-m-tracking: 0em;
  --impakt-type-label-m-weight: 500;
  --impakt-type-label-m-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  --impakt-type-label-s-size: 0.875rem;
  --impakt-type-label-s-line-height: 1.2;
  --impakt-type-label-s-tracking: 0em;
  --impakt-type-label-s-weight: 500;
  --impakt-type-label-s-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  --impakt-type-mono-s-size: 0.6875rem;
  --impakt-type-mono-s-line-height: 1.4;
  --impakt-type-mono-s-tracking: 0.06em;
  --impakt-type-mono-s-weight: 500;
  --impakt-type-mono-s-family: "IBM Plex Mono", "ui-monospace", "SFMono-Regular", "Menlo", "Consolas", "monospace", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --impakt-type-mono-s-transform: uppercase;
  --impakt-type-mono-m-size: 0.8125rem;
  --impakt-type-mono-m-line-height: 1.5;
  --impakt-type-mono-m-tracking: 0em;
  --impakt-type-mono-m-weight: 400;
  --impakt-type-mono-m-family: "IBM Plex Mono", "ui-monospace", "SFMono-Regular", "Menlo", "Consolas", "monospace", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --impakt-type-tool-label-size: 0.875rem;
  --impakt-type-tool-label-line-height: 1.4;
  --impakt-type-tool-label-tracking: 0em;
  --impakt-type-tool-label-weight: 500;
  --impakt-type-tool-label-family: "IBM Plex Mono", "ui-monospace", "SFMono-Regular", "Menlo", "Consolas", "monospace", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --impakt-type-tool-meta-size: 0.875rem;
  --impakt-type-tool-meta-line-height: 1.4;
  --impakt-type-tool-meta-tracking: 0em;
  --impakt-type-tool-meta-weight: 400;
  --impakt-type-tool-meta-family: "IBM Plex Mono", "ui-monospace", "SFMono-Regular", "Menlo", "Consolas", "monospace", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --impakt-type-hand-l-size: 2.125rem;
  --impakt-type-hand-l-line-height: 1.1;
  --impakt-type-hand-l-tracking: 0em;
  --impakt-type-hand-l-weight: 700;
  --impakt-type-hand-l-family: Kalam, Archivo, "Helvetica Neue", Arial, sans-serif;
  --impakt-type-hand-s-size: 1.25rem;
  --impakt-type-hand-s-line-height: 1.2;
  --impakt-type-hand-s-tracking: 0em;
  --impakt-type-hand-s-weight: 400;
  --impakt-type-hand-s-family: Kalam, Archivo, "Helvetica Neue", Arial, sans-serif;
  --impakt-space-0: 0px;
  --impakt-space-0-5: 2px;
  --impakt-space-1: 4px;
  --impakt-space-1-5: 6px;
  --impakt-space-2: 8px;
  --impakt-space-2-5: 10px;
  --impakt-space-3: 12px;
  --impakt-space-3-5: 14px;
  --impakt-space-4: 16px;
  --impakt-space-5: 20px;
  --impakt-space-6: 24px;
  --impakt-space-7: 28px;
  --impakt-space-8: 32px;
  --impakt-space-9: 36px;
  --impakt-space-10: 40px;
  --impakt-space-11: 44px;
  --impakt-space-12: 48px;
  --impakt-space-14: 56px;
  --impakt-space-16: 64px;
  --impakt-space-20: 80px;
  --impakt-space-24: 96px;
  --impakt-space-28: 112px;
  --impakt-space-32: 128px;
  --impakt-space-36: 144px;
  --impakt-space-40: 160px;
  --impakt-space-48: 192px;
  --impakt-space-56: 224px;
  --impakt-space-64: 256px;
  --impakt-space-72: 288px;
  --impakt-space-80: 320px;
  --impakt-space-96: 384px;
  --impakt-radius-none: 0;
  --impakt-radius-xs: 0px;
  --impakt-radius-sm: 0px;
  --impakt-radius-md: 0px;
  --impakt-radius-lg: 0px;
  --impakt-radius-xl: 0px;
  --impakt-radius-2xl: 0px;
  --impakt-radius-3xl: 0px;
  --impakt-radius-full: 9999px;
  --impakt-shadow-xs: 0 0 0 0 transparent;
  --impakt-shadow-sm: 0 0 0 0 transparent;
  --impakt-shadow-md: 0 0 0 0 transparent;
  --impakt-shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.2);
  --impakt-shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.2);
  --impakt-shadow-overlay: 0 16px 32px rgba(0, 0, 0, 0.2);
  --impakt-border-width-thin: 1px;
  --impakt-border-width-thick: 2px;
  --impakt-layout-page-width: 1200px;
  --impakt-layout-margin-phone: 16px;
  --impakt-layout-margin-tablet: 32px;
  --impakt-layout-margin-desktop: 64px;
  --impakt-layout-gutter-sm: 8px;
  --impakt-layout-gutter-md: 16px;
  --impakt-layout-gutter-lg: 32px;
  --impakt-motion-duration-instant: 0ms;
  --impakt-motion-duration-fast: 140ms;
  --impakt-motion-duration-base: 220ms;
  --impakt-motion-duration-slow: 360ms;
  --impakt-motion-duration-scene: 700ms;
  --impakt-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --impakt-motion-easing-enter: cubic-bezier(0, 0, 0.2, 1);
  --impakt-motion-easing-exit: cubic-bezier(0.4, 0, 1, 1);
  --impakt-motion-easing-emphasis: cubic-bezier(0.65, 0, 0.35, 1);
  --impakt-motion-spring-snappy-stiffness: 400;
  --impakt-motion-spring-snappy-damping-ratio: 1;
  --impakt-motion-spring-snappy-mass: 1;
  --impakt-motion-spring-snappy-easing: linear(0, 0.023, 0.0792, 0.1539, 0.237, 0.322, 0.4044, 0.4817, 0.5525, 0.6161, 0.6726, 0.7221, 0.7651, 0.8023, 0.8341, 0.8612, 0.8842, 0.9036, 0.9199, 0.9336, 0.9451, 0.9546, 0.9626, 0.9692, 0.9747, 0.9792, 0.9829, 0.986, 0.9885, 0.9906, 0.9923, 0.9938, 0.9949, 0.9958, 0.9966, 0.9972, 0.9978, 0.9982, 0.9985, 0.9988, 1);
  --impakt-motion-spring-snappy-duration: 463ms;
  --impakt-motion-spring-gentle-stiffness: 170;
  --impakt-motion-spring-gentle-damping-ratio: 1;
  --impakt-motion-spring-gentle-mass: 1;
  --impakt-motion-spring-gentle-easing: linear(0, 0.0229, 0.079, 0.1535, 0.2365, 0.3212, 0.4035, 0.4808, 0.5515, 0.6152, 0.6717, 0.7212, 0.7643, 0.8015, 0.8334, 0.8605, 0.8836, 0.9031, 0.9195, 0.9332, 0.9447, 0.9543, 0.9623, 0.969, 0.9745, 0.979, 0.9828, 0.9859, 0.9884, 0.9905, 0.9923, 0.9937, 0.9948, 0.9958, 0.9966, 0.9972, 0.9977, 0.9982, 0.9985, 0.9988, 1);
  --impakt-motion-spring-gentle-duration: 709ms;
  --impakt-motion-spring-bouncy-stiffness: 260;
  --impakt-motion-spring-bouncy-damping-ratio: 0.82;
  --impakt-motion-spring-bouncy-mass: 1;
  --impakt-motion-spring-bouncy-easing: linear(0, 0.0209, 0.0741, 0.1479, 0.2332, 0.3232, 0.413, 0.499, 0.579, 0.6517, 0.7164, 0.7729, 0.8214, 0.8624, 0.8966, 0.9247, 0.9473, 0.9652, 0.9791, 0.9897, 0.9975, 1.0031, 1.0069, 1.0093, 1.0106, 1.0111, 1.011, 1.0105, 1.0097, 1.0088, 1.0078, 1.0068, 1.0058, 1.0049, 1.0041, 1.0034, 1.0027, 1.0021, 1.0017, 1.0013, 1);
  --impakt-motion-spring-bouncy-duration: 538ms;
  --impakt-motion-stagger-tight: 30ms;
  --impakt-motion-stagger-base: 60ms;
  --impakt-motion-stagger-loose: 100ms;
  --impakt-motion-distance-near: 16px;
  --impakt-motion-distance-far: 48px;
  --impakt-motion-journey-flatten-duration: 640ms;
  --impakt-motion-journey-flatten-easing: cubic-bezier(0.65, 0, 0.35, 1);
  --impakt-motion-journey-ink-in-duration: 560ms;
  --impakt-motion-journey-ink-in-easing: cubic-bezier(0.22, 1, 0.36, 1);
  --impakt-motion-journey-compile-duration: 720ms;
  --impakt-motion-journey-compile-easing: cubic-bezier(0.83, 0, 0.17, 1);
  --impakt-motion-journey-ship-duration: 600ms;
  --impakt-motion-journey-ship-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
  --impakt-motion-journey-lift-duration: 180ms;
  --impakt-motion-journey-lift-easing: cubic-bezier(0.2, 0, 0, 1);
  --impakt-motion-journey-press-duration: 140ms;
  --impakt-motion-journey-press-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

.impakt-page {
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: calc(var(--impakt-layout-page-width, 1200px) + 2 * var(--impakt-layout-margin-desktop, 64px));
  margin-inline: auto;
  padding-inline: var(--impakt-layout-margin-phone, 16px);
}
@media (min-width: 40rem) {
  .impakt-page { padding-inline: var(--impakt-layout-margin-tablet, 32px); }
}
@media (min-width: 64rem) {
  .impakt-page { padding-inline: var(--impakt-layout-margin-desktop, 64px); }
}
@media (max-width: 40rem) {
  [data-impakt-hide-on="phone"] { display: none !important; }
}
@media (min-width: 40.0625rem) {
  [data-impakt-hide-on="wide"] { display: none !important; }
}

/* --------------------------------------------------------------- tokens */

:root {
  /* Surfaces. The page carries no text directly; text sits on a card. */
  --ik-surface-page: var(--impakt-color-surface-page);
  --ik-surface-card: var(--impakt-color-surface-card);
  --ik-surface-inset: #F4F3F0;
  --ik-surface-subtle: var(--impakt-color-surface-subtle);
  --ik-surface-board: var(--impakt-color-surface-board);
  --ik-surface-header: color-mix(in srgb, var(--impakt-color-surface-header) 88%, transparent);
  --ik-surface-inverse: var(--impakt-color-text-default);
  --ik-surface-ink-raised: var(--impakt-color-surface-ink-raised);

  /* Ink. Muted text is measured at 4.5:1 on the card, the page and the inset surface. */
  --ik-ink: var(--impakt-color-text-default);
  --ik-ink-muted: var(--impakt-color-text-muted);
  --ik-ink-subtle: var(--impakt-color-text-subtle);
  --ik-ink-inverse: var(--impakt-color-surface-page);
  --ik-ink-inverse-muted: var(--impakt-color-text-inverse-muted);

  /* Lines. A hairline is decoration. A border marks a control and is measured at 3:1. */
  --ik-line: var(--impakt-color-line-grid);
  --ik-line-soft: var(--impakt-color-line-soft);
  --ik-line-inverse: var(--impakt-color-line-inverse);
  --ik-border: #767676;
  --ik-border-strong: #5C5C5C;

  /* Brand. Ink is the action colour. Yellow is a fill for what needs attention, never text. */
  --ik-brand: var(--impakt-color-brand-default);
  --ik-brand-hover: #2A2A2A;
  --ik-brand-active: #3D3D3D;
  --ik-brand-subtle: #E9E8E4;
  --ik-brand-halo: color-mix(in srgb, var(--impakt-color-brand-default) 18%, transparent);
  --ik-on-brand: var(--impakt-color-brand-on);
  --ik-accent: var(--impakt-color-accent-default);
  --ik-accent-soft: #FFE066;
  --ik-on-accent: #111111;
  --ik-gold: #FFE066;
  --ik-gold-deep: var(--impakt-color-accent-default);
  --ik-on-gold: #111111;

  /* The tick on a "checked by code" mark. The same green in both themes: it sits on ink in light and on paper in dark. */
  --ik-verified: var(--impakt-color-status-ok-mark);
  --ik-on-verified: #FFFFFF;
  --ik-link: var(--impakt-color-text-link);
  --ik-link-hover: #3D3D3D;

  /* Status. Each has a colour for lines and icons (3:1), one for text (4.5:1) and a tint. */
  --ik-danger: var(--impakt-color-status-danger-default);
  --ik-danger-text: #9E2F24;
  --ik-danger-subtle: #FBECEA;
  --ik-warning: #8A6D00;
  --ik-warning-text: #6E5600;
  --ik-warning-subtle: #FFF4C7;
  --ik-success: var(--impakt-color-status-success-default);
  --ik-success-text: #0F6644;
  --ik-success-subtle: #E6F3EC;
  --ik-info: var(--impakt-color-status-info-default);
  --ik-info-text: #245A86;
  --ik-info-subtle: #E8F1F8;

  /* Focus. Locked: a light band inside a dark one, so it shows on every surface. */
  --ik-focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 4px #111111;
  --ik-focus-ring-inset: inset 0 0 0 2px #111111, inset 0 0 0 4px #FFFFFF;

  /* Type. Archivo, with IBM Plex Mono for labels, and a ramp whose smallest step is 14px. */
  --ik-font: var(--impakt-font-family-body);
  --ik-font-mono: var(--impakt-font-family-mono);
  --ik-font-hand: var(--impakt-font-family-hand);
  --ik-text-xs: var(--impakt-font-size-sm); /* 14px: pills, captions, table headings */
  --ik-text-sm: 0.9375rem; /* 15px: buttons, labels, dense rows */
  --ik-text-md: var(--impakt-font-size-md); /* 16px: body and fields */
  --ik-text-lg: var(--impakt-font-size-lg); /* 18px */
  --ik-text-xl: var(--impakt-font-size-xl); /* 20px */
  --ik-text-2xl: var(--impakt-font-size-2xl); /* 24px */
  --ik-text-3xl: var(--impakt-font-size-3xl); /* 30px */
  --ik-leading-tight: var(--impakt-font-line-height-tight);
  --ik-leading-normal: var(--impakt-font-line-height-normal);
  --ik-tracking-tight: var(--impakt-font-tracking-tight);

  /* Space. A 4px unit. Every gap is a whole step. */
  --ik-space-1: var(--impakt-space-1);
  --ik-space-2: var(--impakt-space-2);
  --ik-space-3: var(--impakt-space-3);
  --ik-space-4: var(--impakt-space-4);
  --ik-space-5: var(--impakt-space-5);
  --ik-space-6: var(--impakt-space-6);
  --ik-space-8: var(--impakt-space-8);
  --ik-space-10: var(--impakt-space-10);
  --ik-space-12: var(--impakt-space-12);
  --ik-gutter: var(--impakt-layout-margin-phone);

  /* Shape. Square: every radius step is 0. */
  --ik-radius-sm: 0px;
  --ik-radius-md: 0px;
  --ik-radius-lg: 0px;
  --ik-radius-xl: 0px;
  --ik-radius-full: 0px;

  /* Elevation. Noire is flat: controls, cards, tabs and steps have none. Only what floats over the page has one. */
  --ik-shadow-xs: var(--impakt-shadow-xs);
  --ik-shadow-sm: var(--impakt-shadow-sm);
  --ik-shadow-md: var(--impakt-shadow-md);
  --ik-shadow-overlay: var(--impakt-shadow-overlay);

  /* Motion. Calm: short, no overshoot. */
  --ik-duration-fast: var(--impakt-motion-duration-fast);
  --ik-duration-base: var(--impakt-motion-duration-base);
  --ik-duration-slow: var(--impakt-motion-duration-slow);
  --ik-ease-standard: var(--impakt-motion-easing-standard);
  --ik-ease-enter: var(--impakt-motion-easing-enter);
  --ik-ease-exit: var(--impakt-motion-easing-exit);

  /* Density. Controls are 40px with a mouse and 44px on a touch screen. */
  --ik-control-height: 40px;
  --ik-target-min: var(--impakt-target-min);

  color-scheme: light;
}

/* Dark. The same roles, lifted for a dark surface. */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ik-surface-page: #0E0E0E;
    --ik-surface-card: #1A1A1A;
    --ik-surface-inset: #141414;
    --ik-surface-subtle: #141414;
    --ik-surface-board: #242424;
    --ik-surface-header: rgb(14 14 14 / 0.88);
    --ik-surface-inverse: #F2F2F0;
    --ik-surface-ink-raised: #E3E2DD;
    --ik-ink: #F2F2F0;
    --ik-ink-muted: #A8A8A6;
    --ik-ink-subtle: #9A9A98;
    --ik-ink-inverse: #0E0E0E;
    --ik-ink-inverse-muted: #5C5C5C;
    --ik-line: #1F1F1F;
    --ik-line-soft: #2E2E2E;
    --ik-line-inverse: #CFCCC5;
    --ik-border: #7A7A7A;
    --ik-border-strong: #A8A8A6;
    --ik-brand: #F2F2F0;
    --ik-brand-hover: #FFFFFF;
    --ik-brand-active: #D9D9D6;
    --ik-brand-subtle: #262626;
    --ik-brand-halo: rgb(242 242 240 / 0.22);
    --ik-on-brand: #111111;
    --ik-link: #F2F2F0;
    --ik-link-hover: #FFFFFF;
    --ik-danger: #F0978F;
    --ik-danger-text: #F0978F;
    --ik-danger-subtle: #3A1F1C;
    --ik-warning: #FFD43B;
    --ik-warning-text: #FFD43B;
    --ik-warning-subtle: #332B0F;
    --ik-success: #8FD0A0;
    --ik-success-text: #8FD0A0;
    --ik-success-subtle: #1B3123;
    --ik-info: #8DC0E6;
    --ik-info-text: #8DC0E6;
    --ik-info-subtle: #1A2B3A;
    --ik-focus-ring: 0 0 0 2px #0E0E0E, 0 0 0 4px #F2F2F0;
    --ik-focus-ring-inset: inset 0 0 0 2px #F2F2F0, inset 0 0 0 4px #0E0E0E;
    --ik-shadow-xs: 0 0 0 0 transparent;
    --ik-shadow-sm: 0 0 0 0 transparent;
    --ik-shadow-md: 0 0 0 0 transparent;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ik-surface-page: #0E0E0E;
  --ik-surface-card: #1A1A1A;
  --ik-surface-inset: #141414;
  --ik-surface-subtle: #141414;
  --ik-surface-board: #242424;
  --ik-surface-header: rgb(14 14 14 / 0.88);
  --ik-surface-inverse: #F2F2F0;
  --ik-surface-ink-raised: #E3E2DD;
  --ik-ink: #F2F2F0;
  --ik-ink-muted: #A8A8A6;
  --ik-ink-subtle: #9A9A98;
  --ik-ink-inverse: #0E0E0E;
  --ik-ink-inverse-muted: #5C5C5C;
  --ik-line: #1F1F1F;
  --ik-line-soft: #2E2E2E;
  --ik-line-inverse: #CFCCC5;
  --ik-border: #7A7A7A;
  --ik-border-strong: #A8A8A6;
  --ik-brand: #F2F2F0;
  --ik-brand-hover: #FFFFFF;
  --ik-brand-active: #D9D9D6;
  --ik-brand-subtle: #262626;
  --ik-brand-halo: rgb(242 242 240 / 0.22);
  --ik-on-brand: #111111;
  --ik-link: #F2F2F0;
  --ik-link-hover: #FFFFFF;
  --ik-danger: #F0978F;
  --ik-danger-text: #F0978F;
  --ik-danger-subtle: #3A1F1C;
  --ik-warning: #FFD43B;
  --ik-warning-text: #FFD43B;
  --ik-warning-subtle: #332B0F;
  --ik-success: #8FD0A0;
  --ik-success-text: #8FD0A0;
  --ik-success-subtle: #1B3123;
  --ik-info: #8DC0E6;
  --ik-info-text: #8DC0E6;
  --ik-info-subtle: #1A2B3A;
  --ik-focus-ring: 0 0 0 2px #0E0E0E, 0 0 0 4px #F2F2F0;
  --ik-focus-ring-inset: inset 0 0 0 2px #F2F2F0, inset 0 0 0 4px #0E0E0E;
  --ik-shadow-xs: 0 0 0 0 transparent;
  --ik-shadow-sm: 0 0 0 0 transparent;
  --ik-shadow-md: 0 0 0 0 transparent;
  color-scheme: dark;
}

/* ----------------------------------------------------- component tokens */

/* The house tokens the @atomic-ui/ui components read, given the products' values, so a component looks like the product around it in light and in dark. */

:root {
  --impakt-color-surface-inset: #F4F3F0;
  --impakt-color-text-link-hover: #3D3D3D;
  --impakt-color-border-default: #767676;
  --impakt-color-border-strong: #5C5C5C;
  --impakt-color-brand-hover: #2A2A2A;
  --impakt-color-brand-active: #3D3D3D;
  --impakt-color-brand-subtle: #E9E8E4;
  --impakt-color-status-danger-text: #9E2F24;
  --impakt-color-status-danger-subtle: #FBECEA;
  --impakt-color-status-warning-text: #6E5600;
  --impakt-color-status-warning-subtle: #FFF4C7;
  --impakt-color-status-success-text: #0F6644;
  --impakt-color-status-success-subtle: #E6F3EC;
  --impakt-color-status-info-text: #245A86;
  --impakt-color-status-info-subtle: #E8F1F8;
  --impakt-focus-ring-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #111111;
  --impakt-font-size-eyebrow: 0.875rem;
  --impakt-site-menu-current: #FFD43B;
  --impakt-journey-code-words: #FFD43B;
  --impakt-color-accent-on-ink: #FFD43B;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --impakt-color-surface-page: #0E0E0E;
    --impakt-color-surface-card: #1A1A1A;
    --impakt-color-surface-inset: #141414;
    --impakt-color-surface-subtle: #141414;
    --impakt-color-surface-board: #242424;
    --impakt-color-surface-ink-raised: #E3E2DD;
    --impakt-color-line-grid: #1F1F1F;
    --impakt-color-line-soft: #2E2E2E;
    --impakt-color-line-inverse: #CFCCC5;
    --impakt-color-text-subtle: #9A9A98;
    --impakt-color-text-inverse-muted: #5C5C5C;
    --impakt-color-text-default: #F2F2F0;
    --impakt-color-text-heading: #F2F2F0;
    --impakt-color-text-muted: #A8A8A6;
    --impakt-color-text-placeholder: #A8A8A6;
    --impakt-color-text-eyebrow: #A8A8A6;
    --impakt-color-text-link: #F2F2F0;
    --impakt-color-text-link-hover: #FFFFFF;
    --impakt-color-text-on-brand: #111111;
    --impakt-color-border-default: #7A7A7A;
    --impakt-color-border-strong: #A8A8A6;
    --impakt-color-brand-default: #F2F2F0;
    --impakt-color-brand-hover: #FFFFFF;
    --impakt-color-brand-active: #D9D9D6;
    --impakt-color-brand-subtle: #262626;
    --impakt-color-brand-on: #111111;
    --impakt-color-status-danger-default: #F0978F;
    --impakt-color-status-danger-text: #F0978F;
    --impakt-color-status-danger-subtle: #3A1F1C;
    --impakt-color-status-warning-default: #FFD43B;
    --impakt-color-status-warning-text: #FFD43B;
    --impakt-color-status-warning-subtle: #332B0F;
    --impakt-color-status-success-default: #8FD0A0;
    --impakt-color-status-success-text: #8FD0A0;
    --impakt-color-status-success-subtle: #1B3123;
    --impakt-color-status-info-default: #8DC0E6;
    --impakt-color-status-info-text: #8DC0E6;
    --impakt-color-status-info-subtle: #1A2B3A;
    --impakt-focus-ring-shadow: 0 0 0 2px #0E0E0E, 0 0 0 4px #F2F2F0;
    --impakt-site-menu-current: initial;
    --impakt-journey-code-words: initial;
    --impakt-color-accent-on-ink: initial;
    --impakt-color-status-danger-on: #111111;
    --impakt-color-status-warning-on: #111111;
    --impakt-color-status-success-on: #111111;
    --impakt-color-status-info-on: #111111;
    --impakt-color-surface-header: #0E0E0E;
    --impakt-color-text-on-header: #F2F2F0;
    --impakt-color-surface-footer: #141414;
    --impakt-color-text-on-footer: #F2F2F0;
  }
}

:root[data-theme="dark"] {
  --impakt-color-surface-page: #0E0E0E;
  --impakt-color-surface-card: #1A1A1A;
  --impakt-color-surface-inset: #141414;
  --impakt-color-surface-subtle: #141414;
  --impakt-color-surface-board: #242424;
  --impakt-color-surface-ink-raised: #E3E2DD;
  --impakt-color-line-grid: #1F1F1F;
  --impakt-color-line-soft: #2E2E2E;
  --impakt-color-line-inverse: #CFCCC5;
  --impakt-color-text-subtle: #9A9A98;
  --impakt-color-text-inverse-muted: #5C5C5C;
  --impakt-color-text-default: #F2F2F0;
  --impakt-color-text-heading: #F2F2F0;
  --impakt-color-text-muted: #A8A8A6;
  --impakt-color-text-placeholder: #A8A8A6;
  --impakt-color-text-eyebrow: #A8A8A6;
  --impakt-color-text-link: #F2F2F0;
  --impakt-color-text-link-hover: #FFFFFF;
  --impakt-color-text-on-brand: #111111;
  --impakt-color-border-default: #7A7A7A;
  --impakt-color-border-strong: #A8A8A6;
  --impakt-color-brand-default: #F2F2F0;
  --impakt-color-brand-hover: #FFFFFF;
  --impakt-color-brand-active: #D9D9D6;
  --impakt-color-brand-subtle: #262626;
  --impakt-color-brand-on: #111111;
  --impakt-color-status-danger-default: #F0978F;
  --impakt-color-status-danger-text: #F0978F;
  --impakt-color-status-danger-subtle: #3A1F1C;
  --impakt-color-status-warning-default: #FFD43B;
  --impakt-color-status-warning-text: #FFD43B;
  --impakt-color-status-warning-subtle: #332B0F;
  --impakt-color-status-success-default: #8FD0A0;
  --impakt-color-status-success-text: #8FD0A0;
  --impakt-color-status-success-subtle: #1B3123;
  --impakt-color-status-info-default: #8DC0E6;
  --impakt-color-status-info-text: #8DC0E6;
  --impakt-color-status-info-subtle: #1A2B3A;
  --impakt-focus-ring-shadow: 0 0 0 2px #0E0E0E, 0 0 0 4px #F2F2F0;
  --impakt-site-menu-current: initial;
  --impakt-journey-code-words: initial;
  --impakt-color-accent-on-ink: initial;
  --impakt-color-status-danger-on: #111111;
  --impakt-color-status-warning-on: #111111;
  --impakt-color-status-success-on: #111111;
  --impakt-color-status-info-on: #111111;
  --impakt-color-surface-header: #0E0E0E;
  --impakt-color-text-on-header: #F2F2F0;
  --impakt-color-surface-footer: #141414;
  --impakt-color-text-on-footer: #F2F2F0;
}

@media (pointer: coarse) { :root { --ik-control-height: 44px; } }

@media (min-width: 641px) { :root { --ik-gutter: 24px; } }

@media (min-width: 1100px) { :root { --ik-gutter: 32px; } }

/* ----------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ik-surface-page);
  color: var(--ik-ink);
  font-family: var(--ik-font);
  font-size: var(--ik-text-md);
  line-height: var(--ik-leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--ik-ink) 18%, transparent); color: var(--ik-ink); }
:where(h1, h2, h3, h4) { font-weight: 600; line-height: var(--ik-leading-tight); letter-spacing: var(--ik-tracking-tight); color: var(--ik-ink); text-wrap: balance; }
:where(h1) { font-size: var(--ik-text-2xl); }
:where(h2) { font-size: var(--ik-text-xl); }
:where(h3) { font-size: var(--ik-text-lg); }
:where(h4) { font-size: var(--ik-text-md); }
:where(a) { color: var(--ik-link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
:where(a:hover) { color: var(--ik-link-hover); }
:where(code, kbd, samp, pre) { font-family: var(--ik-font-mono); font-size: 0.9em; }
:where(pre) { background: var(--ik-surface-inset); border-radius: var(--ik-radius-sm); padding: var(--ik-space-3); overflow-wrap: anywhere; white-space: pre-wrap; }
:where(hr) { border: 0; border-top: 1px solid var(--ik-line); margin: var(--ik-space-4) 0; }
:where(img, svg, video) { max-width: 100%; }

/* The focus ring. :focus-visible, so a click does not draw it and the keyboard does. The
   transparent outline is what Windows High Contrast Mode keeps when it drops the shadow. */
:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--ik-focus-ring); }
/* Inside a box that clips, such as a scrolling list, the ring is drawn inside the element. */
.ik-focus-inset:focus-visible, .ik-focus-inset :focus-visible { box-shadow: var(--ik-focus-ring-inset); }

.ik-sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.ik-skip { position: absolute; left: -9999px; top: var(--ik-space-2); z-index: 100; padding: var(--ik-space-2) var(--ik-space-4); border-radius: var(--ik-radius-full); background: var(--ik-brand); color: var(--ik-on-brand); font-weight: 600; text-decoration: none; }
.ik-skip:focus { left: var(--ik-space-3); }

.muted { color: var(--ik-ink-muted); }
.small { font-size: var(--ik-text-xs); }
.row { display: flex; flex-wrap: wrap; gap: var(--ik-space-2); align-items: center; }
.ik-wrap { max-width: var(--ik-page-width, 1200px); margin: 0 auto; padding-inline: var(--ik-gutter); }

/* --------------------------------------------------------------- header */
/* One row at every width: the mark and the product name on the left, the product's own
   navigation and session controls on the right. A solid 56px bar on the card colour with the
   grid rule under it. */
.ik-header {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--ik-space-3);
  min-height: 56px; padding: var(--ik-space-2) var(--ik-gutter);
  background: var(--ik-surface-card);
  border-bottom: 1px solid var(--ik-line);
}
.ik-brand { display: inline-flex; align-items: center; gap: 10px; border-radius: var(--ik-radius-sm); min-width: 0; color: var(--ik-ink); text-decoration: none; font-size: var(--ik-text-xs); font-weight: 500; line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
.ik-brand:hover { color: var(--ik-ink); }
.ik-brand b, .ik-brand strong { font-weight: 500; }
.ik-brand .ik-product { font-weight: 500; }
/* The mark: a 28px square in the action colour with an "i" on it. Ink with a white "i" in light, paper with an ink "i" in dark. */
/* A product whose own controls do not stick to the top can keep the header in view. */
.ik-header.ik-sticky { position: sticky; top: 0; }
@media (max-width: 640px) {
  .ik-header { gap: var(--ik-space-2); }
  .ik-brand { gap: 8px; }
}

/* -------------------------------------------------------------- buttons */
/* The action colour, solid, for the one main action, an ink outline on the card for the rest, and words only for
   a quiet action. Square and flat: no shadow and no highlight. Pressed is a different tone. Busy or disabled
   changes the cursor and the opacity, never the position, so the control does not move while it is used. */
:where(button, .ik-btn) {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ik-space-2);
  min-height: var(--ik-control-height); min-width: var(--ik-target-min);
  padding: 14px 20px;
  font: inherit; font-size: var(--ik-text-md); font-weight: 500; line-height: 1.2; letter-spacing: 0;
  color: var(--ik-ink); background: var(--ik-surface-card);
  border: 1px solid var(--ik-ink); border-radius: var(--ik-radius-md);
  box-shadow: none;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background-color var(--ik-duration-fast) var(--ik-ease-standard), border-color var(--ik-duration-fast) var(--ik-ease-standard), color var(--ik-duration-fast) var(--ik-ease-standard);
}
:where(button, .ik-btn):hover:not(:disabled) { background: var(--ik-surface-subtle); border-color: var(--ik-ink); }
:where(button, .ik-btn):focus-visible { box-shadow: var(--ik-focus-ring); }
:where(button, .ik-btn):disabled, :where(button, .ik-btn)[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
:where(button, .ik-btn)[aria-busy="true"] { cursor: progress; }
:where(button.primary, .ik-btn.primary) { background: var(--ik-brand); border-color: var(--ik-brand); color: var(--ik-on-brand); box-shadow: none; }
:where(button.primary, .ik-btn.primary):hover:not(:disabled) { background: var(--ik-brand-hover); border-color: var(--ik-brand-hover); color: var(--ik-on-brand); }
:where(button.primary, .ik-btn.primary):active:not(:disabled) { background: var(--ik-brand-active); border-color: var(--ik-brand-active); }
:where(button.ghost, .ik-btn.ghost) { background: transparent; border-color: transparent; box-shadow: none; color: var(--ik-ink); }
:where(button.ghost, .ik-btn.ghost):hover:not(:disabled) { background: var(--ik-brand-subtle); border-color: transparent; }
:where(button.danger, .ik-btn.danger) { color: var(--ik-danger-text); }
:where(button.small, .ik-btn.small) { min-height: 32px; padding: 6px 12px; font-size: var(--ik-text-xs); }
/* A full-width button: the words at the start and a trailing arrow, if there is one, at the far edge. */
:where(button.block, .ik-btn.block) { display: flex; width: 100%; justify-content: space-between; text-align: start; }
@media (pointer: coarse) { :where(button.small, .ik-btn.small) { min-height: 40px; } }
@media (forced-colors: active) { :where(button, .ik-btn) { border-color: ButtonBorder; } }

/* --------------------------------------------------------------- fields */
:where(label) { font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); font-weight: 400; line-height: 1.4; color: var(--ik-ink); }
:where(input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="color"]), select, textarea) {
  min-height: 44px; max-width: 100%;
  padding: 13px 14px;
  font: inherit; font-size: var(--ik-text-md); line-height: 1.2;
  color: var(--ik-ink); background: var(--ik-surface-card);
  border: 1px solid var(--ik-ink); border-radius: var(--ik-radius-md);
  box-shadow: none;
  transition: border-color var(--ik-duration-fast) var(--ik-ease-standard), box-shadow var(--ik-duration-fast) var(--ik-ease-standard);
}
:where(input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="color"]), select, textarea):hover:not(:disabled) { border-color: var(--ik-ink); }
/* The two-band ring, outside the ink border, so the field being typed in is plain at a glance. */
input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="color"]):focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ik-ink); box-shadow: var(--ik-focus-ring); }
:where(input, select, textarea)::placeholder { color: var(--ik-ink-muted); opacity: 1; }
:where(input, select, textarea):disabled { background: var(--ik-surface-inset); cursor: not-allowed; }
/* An error thickens the border as well as turning it red, and the message says it in words. */
:where(input, select, textarea)[aria-invalid="true"] { border-color: var(--ik-danger); border-width: 2px; }
:where(textarea) { min-height: 120px; resize: vertical; }
:where(input[type="checkbox"], input[type="radio"]) { width: 18px; height: 18px; accent-color: var(--ik-brand); }
:where(input[type="file"]) { max-width: 100%; font: inherit; font-size: var(--ik-text-sm); color: var(--ik-ink-muted); }
:where(input[type="file"])::file-selector-button {
  margin-right: var(--ik-space-3); min-height: 36px; padding: var(--ik-space-1) var(--ik-space-4);
  font: inherit; font-weight: 500; color: var(--ik-ink); background: var(--ik-surface-card);
  border: 1px solid var(--ik-ink); border-radius: var(--ik-radius-md); cursor: pointer;
}
.ik-field { display: grid; gap: 8px; margin-bottom: var(--ik-space-4); }
.ik-hint { font-size: var(--ik-text-xs); color: var(--ik-ink-muted); font-weight: 400; }
/* A phone zooms into any field under 16px, so fields stay at 16px there. */
@media (max-width: 640px) { :where(input, select, textarea) { font-size: 16px; } }

/* ----------------------------------------------------------------- tabs */
/* A soft track with a soft line round it, and the chosen tab raised onto the card colour with an ink dot.
   It is one row at every width and scrolls sideways when it must. */
.tabs, .ik-tabs {
  display: flex; flex-wrap: nowrap; gap: 0; width: max-content; max-width: 100%;
  margin: var(--ik-space-3) 0 var(--ik-space-4); padding: 3px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  background: var(--ik-surface-subtle); border: 1px solid var(--ik-line-soft); border-radius: var(--ik-radius-md);
  box-shadow: none;
}
.tabs::-webkit-scrollbar, .ik-tabs::-webkit-scrollbar { display: none; }
.tabs > button, .ik-tabs > button, .tabs > a, .ik-tabs > a {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; white-space: nowrap;
  color: var(--ik-ink-muted); background: transparent; border: 1px solid transparent; border-radius: var(--ik-radius-md); box-shadow: none;
  font-size: var(--ik-text-xs); font-weight: 400; line-height: 1.2; text-decoration: none;
}
.tabs > button:hover:not(:disabled), .ik-tabs > button:hover:not(:disabled), .tabs > a:hover, .ik-tabs > a:hover { background: transparent; border-color: transparent; color: var(--ik-ink); }
.tabs > .on, .ik-tabs > .on, .tabs > [aria-selected="true"], .ik-tabs > [aria-selected="true"], .tabs > [aria-current="page"], .ik-tabs > [aria-current="page"] {
  background: var(--ik-surface-card); border-color: var(--ik-line-soft); color: var(--ik-ink);
}
.tabs > .on::before, .ik-tabs > .on::before, .tabs > [aria-selected="true"]::before, .ik-tabs > [aria-selected="true"]::before, .tabs > [aria-current="page"]::before, .ik-tabs > [aria-current="page"]::before {
  content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--ik-ink);
}
.tabs > .on:hover:not(:disabled), .ik-tabs > .on:hover:not(:disabled), .tabs > [aria-selected="true"]:hover, .ik-tabs > [aria-selected="true"]:hover { background: var(--ik-surface-card); border-color: var(--ik-line-soft); }
@media (forced-colors: active) { .tabs > .on, .ik-tabs > .on, .tabs > [aria-selected="true"], .ik-tabs > [aria-selected="true"], .tabs > [aria-current="page"], .ik-tabs > [aria-current="page"] { border-color: CanvasText; } .tabs > .on::before, .ik-tabs > .on::before, .tabs > [aria-selected="true"]::before, .ik-tabs > [aria-selected="true"]::before, .tabs > [aria-current="page"]::before, .ik-tabs > [aria-current="page"]::before { background: CanvasText; } }
/* The ring is drawn inside, because the bar clips anything outside its scroll box. */
.tabs > :focus-visible, .ik-tabs > :focus-visible { box-shadow: var(--ik-focus-ring-inset); }
@media (pointer: coarse) { .tabs > button, .ik-tabs > button, .tabs > a, .ik-tabs > a { min-height: 40px; } }

/* ---------------------------------------------------------------- cards */
.card, .panel, .ik-card {
  background: var(--ik-surface-card); color: var(--ik-ink);
  border: 1px solid var(--ik-ink); border-radius: var(--ik-radius-xl);
  padding: var(--ik-space-6); margin-bottom: var(--ik-space-4);
  box-shadow: none;
}
.ik-card > :where(h2, h3):first-child:not(.ik-eyebrow), .card > :where(h2, h3):first-child:not(.ik-eyebrow), .panel > :where(h2, h3):first-child:not(.ik-eyebrow) {
  margin-top: 0;
  font-size: var(--impakt-type-heading-s-size, 1.5rem); font-weight: 600;
  line-height: var(--impakt-type-heading-s-line-height, 1.15); letter-spacing: var(--impakt-type-heading-s-tracking, -0.025em);
}
/* An ink band, a dashed outline for something not there yet, a soft inset with an ink edge, and a quiet soft card for what is coming soon. */
.ik-card.ink { background: var(--ik-surface-inverse); color: var(--ik-ink-inverse); border-color: var(--ik-surface-inverse); }
.ik-card.ink :where(h2, h3, h4) { color: var(--ik-ink-inverse); }
.ik-card.dashed { border-style: dashed; }
.ik-card.inset { background: var(--ik-surface-subtle); border-color: var(--ik-ink); }
.ik-card.muted { background: var(--ik-surface-subtle); border-color: var(--ik-line-soft); color: var(--ik-ink-muted); }
.ik-board { background: var(--ik-surface-board); border-radius: var(--ik-radius-xl); padding: var(--ik-space-6); }
@media (max-width: 640px) {
  .card, .panel, .ik-card { padding: var(--ik-space-4); border-radius: var(--ik-radius-lg); }
}

/* ---------------------------------------------------------------- pills */
/* Sentence case in the code face, never shouted. The word carries the meaning and a 7px dot supports it:
   green is done, red has failed, yellow (with an ink ring, so it shows on white) needs your attention, ink is
   neutral work in hand. A plain pill has no dot, and a solid one is filled with the action colour. */
.pill, .ik-pill {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: baseline;
  padding: 3px 8px; border-radius: var(--ik-radius-md);
  font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); font-weight: 500; line-height: 1.4; white-space: nowrap;
  color: var(--ik-ink); background: var(--ik-surface-card); border: 1px solid var(--ik-ink);
}
.pill:is(.ok, .warn, .bad, .info, .brand)::before, .ik-pill:is(.ok, .warn, .bad, .info, .brand)::before {
  content: ""; flex: none; box-sizing: border-box; width: 7px; height: 7px; border-radius: 50%; background: var(--ik-ink);
}
.pill.ok::before, .ik-pill.ok::before { background: var(--ik-verified); }
.pill.warn::before, .ik-pill.warn::before { background: var(--ik-accent); border: 1px solid var(--ik-on-accent); }
.pill.bad::before, .ik-pill.bad::before { background: var(--ik-danger); }
.pill.info::before, .ik-pill.info::before, .pill.brand::before, .ik-pill.brand::before { background: var(--ik-ink); }
.pill.neutral, .ik-pill.neutral { color: var(--ik-ink); }
.pill.solid, .ik-pill.solid { color: var(--ik-on-brand); background: var(--ik-brand); border-color: var(--ik-brand); }
/* A pill inside a heading or a big figure keeps its own size. */
:where(h1, h2, h3, .ik-stat-value) :is(.pill, .ik-pill) { letter-spacing: 0; vertical-align: middle; }
@media (forced-colors: active) { .pill, .ik-pill { border-color: CanvasText; } .pill::before, .ik-pill::before { forced-color-adjust: none; background: CanvasText !important; } }

/* --------------------------------------------------------------- alerts */
/* A tint with a strong edge on the leading side. The text stays in ink, which reads on every
   tint, and the edge carries the tone. */
.alert, .ik-alert {
  padding: var(--ik-space-3) var(--ik-space-4); margin: var(--ik-space-2) 0;
  border-radius: var(--ik-radius-md); border-inline-start: 4px solid var(--ik-border);
  background: var(--ik-surface-inset); color: var(--ik-ink);
  box-shadow: none;
}
.alert.ok, .ik-alert.ok { background: var(--ik-success-subtle); border-color: var(--ik-success); }
.alert.warn, .ik-alert.warn { background: var(--ik-warning-subtle); border-color: var(--ik-warning); }
.alert.bad, .ik-alert.bad { background: var(--ik-danger-subtle); border-color: var(--ik-danger); }
.alert.info, .ik-alert.info { background: var(--ik-info-subtle); border-color: var(--ik-info); }
@media (forced-colors: active) { .alert, .ik-alert { border: 1px solid CanvasText; border-inline-start-width: 4px; } }

/* --------------------------------------------------------------- tables */
:where(table) { width: 100%; border-collapse: collapse; font-size: var(--ik-text-sm); }
:where(th, td) { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--ik-line); }
:where(th) { font-size: var(--ik-text-xs); font-weight: 600; color: var(--ik-ink-muted); }
:where(thead th) { border-bottom-color: var(--ik-border); }
.num, .ik-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ik-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* On a phone a table with the ik-stack class becomes one card per row, each cell labelled from
   its data-label attribute. The headings stay in the page for screen readers. */
@media (max-width: 640px) {
  table.ik-stack, table.ik-stack tbody, table.ik-stack tr, table.ik-stack td { display: block; width: auto; }
  table.ik-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  table.ik-stack tr { padding: var(--ik-space-3) 0; border-bottom: 1px solid var(--ik-line); }
  table.ik-stack td { padding: 2px 0; border: 0; overflow-wrap: anywhere; }
  table.ik-stack td[data-label]::before { content: attr(data-label) ": "; color: var(--ik-ink-muted); font-weight: 600; }
}

/* --------------------------------------------------------------- motion */
/* 0.01ms rather than 0, because a zero transition does not fire transitionend everywhere. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------- header overflow (0.3.0) */
/* When the controls on the right are wide, the product name shortens with an ellipsis
   instead of running under them, and the controls stay on one row. */
.ik-brand { flex: 0 1 auto; overflow: hidden; }
.ik-brand > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ik-header > .ik-brand ~ * { flex: none; flex-wrap: nowrap; }

/* ============================================================ product patterns (0.4.0) */
/* The parts every AI tool needs so a customer who has never met Impakt knows what to do first,
   where they are in the job and what is left. Each is a class a product adds to plain markup. */

/* ---------------------------------------------------------------- page */
/* A main column at one of three widths. The content is 1200px wide, as the design's frames are; forms read
   best narrow, and a wide review screen gets a little more. */
.ik-main { max-width: calc(1200px + 2 * var(--ik-gutter)); margin: 0 auto; padding: var(--ik-space-6) var(--ik-gutter) var(--ik-space-12); }
.ik-main.narrow { max-width: 760px; }
.ik-main.wide { max-width: 1320px; }
@media (max-width: 640px) { .ik-main { padding-top: var(--ik-space-4); } }

/* The page header, in one column: an eyebrow or a back link, the title in display type with its status pill
   beside it, one line of facts, then the actions under the facts. Wrap the title and the pill in .ik-title to
   set them side by side. */
.ik-page-head { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: var(--ik-space-5); margin-bottom: var(--ik-space-6); }
.ik-page-head > :first-child { min-width: 0; }
.ik-page-head h1 {
  margin: 0; overflow-wrap: anywhere;
  font-size: var(--impakt-type-display-m-size, 3.25rem); font-weight: 600;
  line-height: var(--impakt-type-display-m-line-height, 1.04); letter-spacing: var(--impakt-type-display-m-tracking, -0.04em);
}
.ik-page-head .ik-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ik-space-3) var(--ik-space-4); }
.ik-eyebrow { display: block; margin: 0 0 var(--ik-space-3); font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); font-weight: 400; line-height: 1.4; color: var(--ik-ink-muted); }
.ik-back { display: inline-flex; align-items: center; gap: 8px; min-height: var(--ik-target-min); margin-bottom: var(--ik-space-3); font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); font-weight: 400; color: var(--ik-ink); text-decoration: none; }
.ik-back::before { content: "\2190"; }
.ik-back:hover { color: var(--ik-ink); text-decoration: underline; }
.ik-facts { display: flex; flex-wrap: wrap; gap: 4px 0; margin: var(--ik-space-3) 0 0; padding: 0; list-style: none; font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); line-height: 1.4; color: var(--ik-ink-muted); }
.ik-facts > * + *::before { content: "\00B7"; padding-inline: 12px; }
.ik-facts strong { color: var(--ik-ink-muted); font-weight: 400; }
.ik-page-head .ik-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ik-space-2); }

/* A row of actions. The one main action is .primary; the rest are outlines, and a .ik-sep
   pushes what follows to the far end, which is where a destructive action belongs. */
.ik-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ik-space-2); }
.ik-toolbar > .ik-sep { flex: 1 1 auto; }

/* ---------------------------------------------------------------- steps */
/* The stages of a job, in order, each numbered, with done, current and waiting told apart by
   the mark and by words, never by colour alone. Use an <ol> whose items hold a link or button,
   aria-current="step" on the current one, and a .ik-step-hint saying what blocks the next. */
.ik-steps { display: flex; gap: 0; margin: 0 0 var(--ik-space-5); padding: 0; list-style: none; counter-reset: ik-step; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--ik-line-soft); }
.ik-steps::-webkit-scrollbar { display: none; }
.ik-steps > li { flex: none; counter-increment: ik-step; }
/* G2 stage stepper: a two-digit mono number and the stage's name, the current stage underlined in ink. */
.ik-steps > li > :where(a, button) {
  display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 10px;
  min-height: 44px; padding: 14px 28px 14px 0; margin-bottom: -1px; text-align: left;
  font: 500 16px/1.2 var(--ik-font, inherit); color: var(--ik-ink-muted); text-decoration: none;
  background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; box-shadow: none;
}
.ik-steps > li > :where(a, button)::before {
  content: counter(ik-step, decimal-leading-zero); font: 400 14px/1.4 var(--ik-font-mono, ui-monospace, monospace); color: var(--ik-ink-muted);
}
.ik-steps .ik-step-hint { grid-column: 2; font-size: var(--ik-text-xs); font-weight: 400; color: var(--ik-ink-muted); }
/* A done stage keeps a tick before its number. The tick is decoration: say "done" in the item's words for a screen reader. */
.ik-steps > li.done > :where(a, button)::before { content: "\2713\00a0" counter(ik-step, decimal-leading-zero); color: var(--ik-ink); }
.ik-steps > li > [aria-current="step"], .ik-steps > li > [aria-selected="true"] { color: var(--ik-ink); border-bottom-color: var(--ik-ink); }
.ik-steps > li > [aria-current="step"]::before, .ik-steps > li > [aria-selected="true"]::before { color: var(--ik-ink); }
.ik-steps > li > :where(a, button):hover:not(:disabled) { color: var(--ik-ink); }
.ik-steps > li > :where(a, button):disabled, .ik-steps > li > [aria-disabled="true"] { opacity: 1; color: var(--ik-ink-muted); }
.ik-steps > li > :focus-visible { outline: 2px solid var(--ik-ink); outline-offset: -2px; box-shadow: none; }
@media (max-width: 640px) {
  .ik-steps > li > :where(a, button) { padding-right: 20px; font-size: 14px; }
  .ik-steps .ik-step-hint { display: none; }
}

/* --------------------------------------------------------------- empty */
/* What a screen says before there is anything on it: what this place is for, and the one
   thing to do next. Never just "Nothing here". Its one column is never wider than the box, so a
   form or drop zone inside it wraps on a phone instead of pushing the page sideways. */
.ik-empty { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--ik-space-2); padding: var(--ik-space-10) var(--ik-space-6); text-align: center; background: var(--ik-surface-board); border: 1px dashed var(--ik-border); border-radius: var(--ik-radius-xl); }
.ik-empty::before { content: ""; width: 44px; height: 44px; margin-bottom: var(--ik-space-2); border: 1.5px solid var(--ik-ink); background: linear-gradient(var(--ik-ink), var(--ik-ink)) center / 12px 12px no-repeat; }
.ik-empty h2, .ik-empty h3 { margin: 0; font-size: var(--ik-text-lg); }
.ik-empty p { max-width: 46ch; margin: 0; color: var(--ik-ink-muted); }
.ik-empty .ik-toolbar { justify-content: center; margin-top: var(--ik-space-3); }

/* ----------------------------------------------------------- drop zone */
/* A file input laid over a large target, so a click, a tap, the keyboard and a dropped file
   all reach the real input. Put the input inside the label with the words beside it. */
.ik-drop { position: relative; display: grid; justify-items: center; gap: 8px; padding: 28px 24px; text-align: center; font-family: var(--ik-font); font-weight: 400; color: var(--ik-ink); background: var(--ik-surface-subtle); border: 1px dashed var(--ik-ink); border-radius: var(--ik-radius-lg); cursor: pointer; transition: background-color var(--ik-duration-fast) var(--ik-ease-standard), border-color var(--ik-duration-fast) var(--ik-ease-standard); }
.ik-drop strong { font-size: var(--ik-text-md); font-weight: 500; line-height: 1.2; }
.ik-drop .ik-hint { font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); color: var(--ik-ink-muted); }
/* A file held over it turns the edge solid and the fill a step darker. */
.ik-drop:hover, .ik-drop.over { background: var(--ik-brand-subtle); border-style: solid; border-color: var(--ik-ink); }
.ik-drop:has(input:focus-visible) { box-shadow: var(--ik-focus-ring); }
.ik-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ik-drop.compact { grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: var(--ik-space-3) var(--ik-space-4); }

/* The files that were added, each with its name, its state in words and its own actions. */
.ik-files { margin: var(--ik-space-3) 0 0; padding: 0; list-style: none; }
.ik-files > li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ik-space-2) var(--ik-space-3); padding: var(--ik-space-2) 0; border-top: 1px solid var(--ik-line); }
.ik-files > li:first-child { border-top: 0; }
.ik-files .ik-file-name { flex: 1 1 200px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ------------------------------------------------------------ progress */
/* A long AI step: what it is doing, how far it has got when that is known, and a bar that
   moves. Without a value the bar sweeps; reduced motion keeps it still. */
.ik-progress { display: grid; gap: 6px; padding: var(--ik-space-3) var(--ik-space-4); background: var(--ik-surface-inset); border-radius: var(--ik-radius-md); }
.ik-progress-label { display: flex; justify-content: space-between; gap: var(--ik-space-3); font-size: var(--ik-text-sm); font-weight: 600; }
.ik-progress-label span:last-child { font-weight: 400; color: var(--ik-ink-muted); font-variant-numeric: tabular-nums; }
.ik-progress progress { appearance: none; width: 100%; height: 8px; border: 0; border-radius: var(--ik-radius-full); background: var(--ik-surface-card); overflow: hidden; color: var(--ik-brand); }
.ik-progress progress::-webkit-progress-bar { background: var(--ik-surface-card); border-radius: var(--ik-radius-full); }
.ik-progress progress::-webkit-progress-value { background: var(--ik-brand); border-radius: var(--ik-radius-full); }
.ik-progress progress::-moz-progress-bar { background: var(--ik-brand); border-radius: var(--ik-radius-full); }
.ik-progress progress:indeterminate { background: linear-gradient(90deg, var(--ik-surface-card) 0 30%, var(--ik-brand) 30% 55%, var(--ik-surface-card) 55%) 0 0 / 200% 100%; animation: ik-sweep 1.4s linear infinite; }
.ik-progress progress:indeterminate::-webkit-progress-bar { background: transparent; }
@keyframes ik-sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
/* A small turning ring for a button or a status word that is busy. */
.ik-spinner { display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ik-spin 0.8s linear infinite; vertical-align: -0.15em; }
@keyframes ik-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- prose */
/* What the model wrote, set for reading: full-size ink text, a comfortable line and measure,
   quotes from the source set apart, and sources quiet but findable. */
.ik-prose { max-width: 68ch; font-size: var(--ik-text-md); line-height: 1.65; color: var(--ik-ink); }
.ik-prose > * { margin: 0; }
.ik-prose > * + * { margin-top: 0.85em; }
.ik-prose :where(h2, h3, h4) { margin-top: 1.4em; }
.ik-prose :where(ul, ol) { padding-inline-start: 1.25em; }
.ik-prose li + li { margin-top: 0.35em; }
.ik-prose blockquote, .ik-quote { margin-inline: 0; padding: 2px 0 2px var(--ik-space-4); font-family: var(--ik-font); font-size: var(--ik-text-md); font-style: normal; line-height: 1.45; color: var(--ik-ink-muted); background: none; border-inline-start: 3px solid var(--ik-ink); border-radius: 0; quotes: "\201C" "\201D" "\2018" "\2019"; }
/* Curly quotes round what was quoted, whether it is one run of words or a few paragraphs. */
.ik-quote:not(:has(> p))::before, .ik-prose blockquote:not(:has(> p))::before, .ik-quote > p:first-child::before, .ik-prose blockquote > p:first-child::before { content: open-quote; }
.ik-quote:not(:has(> p))::after, .ik-prose blockquote:not(:has(> p))::after, .ik-quote > p:last-child::after, .ik-prose blockquote > p:last-child::after { content: close-quote; }
/* A quote with its source under it: the last paragraph still closes the quote, and the source sits on its own line. */
.ik-quote > p:last-of-type::after { content: close-quote; }
.ik-quote > p { margin: 0; }
.ik-quote > :where(impakt-source, .ik-source) { display: inline-flex; margin-top: 8px; }
.ik-list > li .ik-quote { margin-top: 12px; }
/* Where an answer came from: a page, an evidence file, a moment in a call or a rule. A small square chip in the code face. */
.ik-source { display: inline-flex; align-items: center; gap: 4px; padding: 1px 5px; font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); font-style: normal; font-weight: 500; line-height: 1.4; color: var(--ik-ink); background: var(--ik-surface-subtle); border: 1px solid var(--ik-ink); border-radius: var(--ik-radius-sm); text-decoration: none; white-space: nowrap; }
a.ik-source:hover, button.ik-source:hover { color: var(--ik-ink); text-decoration: underline; }
button.ik-source { min-height: 0; min-width: 0; padding: 1px 5px; font-size: var(--ik-text-xs); border: 1px solid var(--ik-ink); box-shadow: none; }

/* ------------------------------------------------------------- summary */
/* The few numbers a screen is about, such as a score, a total and a deadline, in a row of up to four tiles
   at the top. Each tile is a label, a big figure and a note, with a status pill under the note when the
   figure has a state. The pill carries the tone in words, so the tile's edge stays ink. */
.ik-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-bottom: var(--ik-space-6); }
.ik-stat { display: grid; align-content: start; justify-items: start; gap: 10px; padding: 20px; background: var(--ik-surface-card); border: 1px solid var(--ik-ink); border-radius: var(--ik-radius-lg); box-shadow: none; }
.ik-stat-label { font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); font-weight: 400; line-height: 1.4; color: var(--ik-ink-muted); }
.ik-stat-value {
  font-size: var(--impakt-type-stat-size, 3.25rem); font-weight: 600;
  line-height: var(--impakt-type-stat-line-height, 1.04); letter-spacing: var(--impakt-type-stat-tracking, -0.04em);
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.ik-stat-note { font-size: var(--ik-text-xs); line-height: 1.4; color: var(--ik-ink-muted); }
.ik-stat.ok, .ik-stat.warn, .ik-stat.bad { border-inline-start-width: 1px; }

/* Smaller tiles, two across beside a verdict: a smaller figure, and smaller still for a word such as "Conversion". */
.ik-summary.compact { --impakt-type-stat-size: 2.75rem; }
.ik-summary.compact > .word { --impakt-type-stat-size: 2rem; }
/* A meter, such as usage against a plan or words against a limit: a square ink fill on a soft track. */
.ik-meter { display: block; width: 100%; height: 8px; border-radius: var(--ik-radius-sm); background: var(--ik-line-soft); overflow: hidden; }
.ik-meter > span { display: block; height: 100%; width: var(--ik-meter, 0%); background: var(--ik-ink); border-radius: inherit; }
.ik-meter.warn > span, .ik-meter.bad > span { background: var(--ik-ink); }
@media (forced-colors: active) { .ik-meter { border: 1px solid CanvasText; } .ik-meter > span { forced-color-adjust: none; background: CanvasText; } }

/* --------------------------------------------------------------- split */
/* A list beside the item being worked on, as in a review queue. The side stays in view while
   the main column scrolls, and the two stack on a narrow screen. */
.ik-split { display: grid; grid-template-columns: minmax(260px, 372px) minmax(0, 1fr); gap: var(--ik-space-5); align-items: start; }
.ik-split > .ik-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
@media (max-width: 900px) { .ik-split { grid-template-columns: 1fr; } .ik-split > .ik-side { position: static; max-height: none; } }
/* The work on the left and what goes with it on the right, about two to one, as on an audit, a claim or a brief. The
   side is a column of cards that scrolls with the page. */
.ik-split.end { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 12px; align-items: stretch; margin-bottom: var(--ik-space-6); }
.ik-split.end > .ik-side { position: static; max-height: none; overflow: visible; }
.ik-split > * { min-width: 0; }
.ik-side { display: grid; align-content: start; gap: 12px; }
.ik-side > .ik-card, .ik-split > .ik-card { margin-bottom: 0; }
@media (max-width: 900px) { .ik-split.end { grid-template-columns: 1fr; } }
/* Two columns inside a card, such as an issue and its fix, that stack when there is no room. */
.ik-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--ik-space-6) var(--ik-space-8); align-items: start; }
.ik-cols > * { min-width: 0; }
.ik-cols > div:not([class]) > * { margin-block: 0 var(--ik-space-4); }
.ik-cols > div:not([class]) > :last-child { margin-bottom: 0; }
/* Columns set close, as cards are: the teardown's verdict beside its figures. */
.ik-cols.ik-gap-s { gap: 12px; margin-bottom: 12px; }
.ik-cols > .ik-card, .ik-cols > .ik-summary { margin: 0; }
/* Rows divided by soft rules under a card's heading: the fixes to make first, the people in an organisation. */
.ik-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ik-line-soft); }
/* A sentence the model wrote with where it came from beside it: the source chips, or a pill when nothing backs it. */
.ik-claim { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--ik-space-2) var(--ik-space-4); align-items: start; }
.ik-claim > :last-child { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; }
/* A list of sources: a chip and what it points at. */
.ik-sources { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: var(--ik-text-xs); }
.ik-sources > li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* The blueprint grid behind a page with one job, such as signing in (36:381): soft rules every 112px on the paper. */
.ik-blueprint { background-color: var(--ik-surface-page); background-image: linear-gradient(var(--ik-line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--ik-line-soft) 1px, transparent 1px); background-size: 112px 112px; background-position: -1px -1px; }
@media (forced-colors: active) { .ik-blueprint { background-image: none; } }
/* A page with one job: the panels in the middle of the blueprint, well clear of the bar. */
.ik-stage { min-height: calc(100vh - 56px); padding: 96px var(--ik-gutter); }
@media (max-width: 640px) { .ik-stage { padding-block: var(--ik-space-6); } }
/* A card with more room inside, for a form or a list that is the whole page. */
.ik-card.ik-roomy { padding: 40px; }
@media (max-width: 640px) { .ik-card.ik-roomy { padding: var(--ik-space-6); } }
/* A heading in display type inside a card, such as "Sign in with your Impakt account". */
/* A display heading kept to a readable width. */
.ik-measure { max-width: 48rem; }
.ik-display { margin: 0 0 var(--ik-space-6); font-size: var(--impakt-type-display-m-size, 3.25rem); font-weight: 600; line-height: var(--impakt-type-display-m-line-height, 1.04); letter-spacing: var(--impakt-type-display-m-tracking, -0.04em); overflow-wrap: anywhere; }
/* The sentence under a heading, a size up from body text and muted. */
.ik-lead { margin: 0 0 var(--ik-space-6); font-size: var(--ik-text-lg); line-height: 1.4; color: var(--ik-ink-muted); }
.ik-lead.small { font-size: var(--ik-text-md); line-height: 1.5; }
.ik-lead.ink { color: var(--ik-ink); }
/* A form's fields and its button in one column. */
/* Each field keeps 16px under it, so the column adds 4px to make the 20px between fields. */
.ik-form { display: grid; gap: 4px; margin: 0 0 var(--ik-space-5); }
.ik-form > :last-child { margin-bottom: 0; }
/* The tools an account opens: each name large with its status at the end, divided by rules. */
.ik-tool-list { margin: var(--ik-space-6) 0 0; padding: 0; list-style: none; }
.ik-tool-list > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ik-space-2) var(--ik-space-4); padding-block: 14px; border-bottom: 1px solid var(--ik-line-soft); font-size: var(--impakt-type-heading-m-size, 2rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; }
.ik-card.ink .ik-tool-list > li { border-bottom-color: color-mix(in srgb, var(--ik-ink-inverse) 18%, transparent); }
.ik-card.ink :where(.ik-eyebrow, .muted, .ik-lead, .ik-mono) { color: color-mix(in srgb, var(--ik-ink-inverse) 72%, var(--ik-surface-inverse)); }
.ik-card.ink :where(.ik-list, .ik-list > li) { border-color: color-mix(in srgb, var(--ik-ink-inverse) 18%, transparent); }
/* Two panels side by side on the blueprint, a form and what it opens, that stack on a narrow screen. */
.ik-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 10px; max-width: 1080px; margin: 0 auto; }
.ik-pair > * { min-width: 0; margin: 0; }
/* A smaller figure, such as a fair share inside a claim. */
.ik-figure.small { font-size: var(--impakt-type-heading-s-size, 1.5rem); letter-spacing: -0.025em; }
/* The product elements keep the page's rhythm when they sit straight in the main column or a card. */
:where(.ik-main, .ik-card) > :where(impakt-alert, impakt-progress, impakt-accordion, impakt-score-bars, impakt-code-diff) { display: block; margin-bottom: var(--ik-space-6); }
:where(.ik-card) > :where(impakt-alert, impakt-accordion, impakt-score-bars):last-child { margin-bottom: 0; }
.ik-card > p:last-child, .ik-card > .ik-toolbar:last-child { margin-bottom: 0; }
/* A label in a row of controls sits on the row's centre line, not above it. */
.ik-toolbar > .ik-eyebrow { margin: 0; }
/* A soft strip inside a card, such as a fair share: one line, its parts in a row. */
.ik-card.inset.ik-toolbar { gap: 8px 12px; padding: 14px 16px; }
/* A note under a dialog's actions, on its own line. */
.ik-foot-note { flex-basis: 100%; margin: 0; }
/* A toolbar that heads a card's content keeps a gap under it. */
.ik-toolbar.ik-gap { margin-bottom: var(--ik-space-4); }
/* A column of cards with the grid's gap between them. */
.ik-stack { display: grid; align-content: start; gap: 12px; min-width: 0; }
.ik-stack > .ik-card { margin-bottom: 0; }
/* A toolbar with its first part at the start and the rest at the end. */
.ik-toolbar.ik-spread { justify-content: space-between; }
/* Rows stacked in a card under a toolbar, such as the documents in a review queue. */
.ik-rows { display: grid; margin-block: var(--ik-space-4); border-bottom: 1px solid var(--ik-line-soft); }
/* Rows in a card that are more than a title, such as a document with its status and action, or a redaction:
   the words on the left, the status and actions on the right, divided by soft rules. */
.ik-list > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ik-space-3) var(--ik-space-6); padding-block: 20px; border-bottom: 1px solid var(--ik-line-soft); }
.ik-list > li > * { min-width: 0; }
.ik-list > li > :first-child { flex: 1 1 10rem; }
.ik-list > li > :first-child > * { margin: 0; }
.ik-list > li > :first-child > * + * { margin-top: 6px; }
.ik-list > li :where(h3, h4):not(.ik-eyebrow) { margin: 0; font-size: var(--ik-text-xl); font-weight: 500; letter-spacing: -0.01em; }
.ik-list > li > .ik-toolbar { flex: 0 1 auto; }
.ik-list.plain { border-top: 0; }
.ik-list.compact > li { padding-block: 12px; }
.ik-list.compact > li > :first-child > * + * { margin-top: 2px; }
.ik-list + :where(.ik-toolbar, p) { margin-top: var(--ik-space-6); }
/* A card's own head: its kind and title on the left, its status and figure on the right. */
.ik-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--ik-space-3) var(--ik-space-4); margin-bottom: var(--ik-space-4); }
.ik-card-head > * { min-width: 0; }
.ik-card-head :where(h2, h3) { margin: 0; font-size: var(--impakt-type-heading-s-size, 1.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; }
.ik-card-head .ik-eyebrow { margin-bottom: 6px; }
/* Cards in a grid, three across on a wide screen, such as the tools on the account home. */
.ik-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 12px; margin-bottom: var(--ik-space-6); }
/* A heading for a part of a page, between the page title and a card's. */
.ik-heading.flush { margin: 0 0 var(--ik-space-4); }
.ik-heading { margin: var(--ik-space-8) 0 var(--ik-space-6); font-size: var(--impakt-type-heading-m-size, 2rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; }
/* Words in the code face, quiet: a price on a plan row, a key hint. */
.ik-mono { font-family: var(--ik-font-mono); font-size: var(--ik-text-xs); font-weight: 400; line-height: 1.4; color: var(--ik-ink-muted); }
/* A list whose items start with a mark in the code face: a dash for a left-out point, a "?" for an open question. */
.ik-marks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ik-marks > li { display: grid; grid-template-columns: 1em minmax(0, 1fr); gap: 6px; }
.ik-marks > li::before { content: "\2013"; font-family: var(--ik-font-mono); color: var(--ik-ink-muted); }
.ik-marks.questions > li::before { content: "?"; }
/* A field and its button on one line, such as the address a teardown runs on. */
.ik-inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; max-width: 42rem; margin: 0 0 var(--ik-space-6); }
.ik-inline-form > :first-child { flex: 1 1 20rem; min-width: 0; }
.ik-inline-form > * { margin-bottom: 0; }
/* A figure inside a card, smaller than a summary tile's, such as a self-score or an amount. */
.ik-figure { font-size: var(--impakt-type-heading-m-size, 2rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- account */
/* The account menu in the header: who is signed in, their plan, this month's usage and the
   links to billing and sign-out. Built on <details> so it opens without a script. */
.ik-account { position: relative; }
.ik-account > summary { display: inline-flex; align-items: center; gap: var(--ik-space-2); min-height: 40px; padding: 9px 14px; list-style: none; border: 1px solid var(--ik-ink); border-radius: var(--ik-radius-md); background: var(--ik-surface-card); color: var(--ik-ink); cursor: pointer; font-size: var(--ik-text-xs); font-weight: 500; line-height: 1.2; }
.ik-account > summary::-webkit-details-marker { display: none; }
.ik-account > summary::after { content: "\25BE"; font-size: 0.75em; color: var(--ik-ink); }
/* The button names the organisation in words, so the avatar is not drawn in it. */
.ik-account > summary .ik-avatar { display: none; }
.ik-avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: var(--ik-text-xs); font-weight: 700; color: var(--ik-ink); background: var(--ik-brand-subtle); }
.ik-account-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30; width: min(300px, calc(100vw - 2 * var(--ik-gutter))); display: grid; gap: var(--ik-space-3); padding: var(--ik-space-4); background: var(--ik-surface-card); border: 1px solid var(--ik-ink); border-radius: var(--ik-radius-lg); box-shadow: var(--ik-shadow-overlay); }
.ik-account-panel a { font-size: var(--ik-text-sm); font-weight: 500; }
@media (max-width: 640px) { .ik-account > summary .ik-account-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

/* ------------------------------------------------------------ 0.9.0 patterns */

/* ------------------------------------------------------------ G2 patterns (0.12.0) */
