/* Copied from matthill8286/impkt-design-system, @atomic-ui/theme version 0.6.0, commit 0decd4a. To update, build the design system and run pnpm theme:copy again. */
/*
 * Impakt product theme, @atomic-ui/theme version 0.6.0.
 * 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: "Urbanist"; font-style: normal; font-weight: 400; font-display: swap; src: local("Urbanist Regular"), local("Urbanist-Regular"), url("fonts/urbanist-400.ttf") format("truetype"); }
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 500; font-display: swap; src: local("Urbanist Medium"), local("Urbanist-Medium"), url("fonts/urbanist-500.ttf") format("truetype"); }
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 600; font-display: swap; src: local("Urbanist SemiBold"), local("Urbanist-SemiBold"), url("fonts/urbanist-600.ttf") format("truetype"); }
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 700; font-display: swap; src: local("Urbanist Bold"), local("Urbanist-Bold"), url("fonts/urbanist-700.ttf") format("truetype"); }

/* ---------------------------------------------------------- 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: #F7F4F2;
  --impakt-color-surface-card: #FFFFFF;
  --impakt-color-surface-header: #F7F4F2;
  --impakt-color-surface-footer: #F0EBE5;
  --impakt-color-surface-subtle: #edeaef;
  --impakt-color-surface-inset: #f4f4f4;
  --impakt-color-brand-default: #6B5279;
  --impakt-color-brand-hover: #5e486a;
  --impakt-color-brand-active: #513e5c;
  --impakt-color-brand-subtle: #edeaef;
  --impakt-color-brand-on: #ffffff;
  --impakt-color-accent-default: #E2CC40;
  --impakt-color-accent-hover: #c7b438;
  --impakt-color-accent-on: #1a1a1a;
  --impakt-color-text-default: #241a2e;
  --impakt-color-text-muted: #77717d;
  --impakt-color-text-placeholder: #747078;
  --impakt-color-text-on-brand: #ffffff;
  --impakt-color-text-on-header: #746a2b;
  --impakt-color-text-on-footer: #746a2b;
  --impakt-color-text-heading: #7e732d;
  --impakt-color-chart-1: #9c8e33;
  --impakt-color-chart-2: #3f7fae;
  --impakt-color-chart-3: #3e7d58;
  --impakt-color-chart-4: #ab941e;
  --impakt-color-chart-5: #b4505a;
  --impakt-color-text-link: #6b5279;
  --impakt-color-text-link-hover: #564261;
  --impakt-color-border-default: #949297;
  --impakt-color-border-strong: #87818c;
  --impakt-color-status-danger-default: #b4505a;
  --impakt-color-status-danger-text: #b4505a;
  --impakt-color-status-danger-subtle: #f6eaeb;
  --impakt-color-status-danger-on: #ffffff;
  --impakt-color-status-warning-default: #ab941e;
  --impakt-color-status-warning-text: #85741d;
  --impakt-color-status-warning-subtle: #f6f3e4;
  --impakt-color-status-warning-on: #1a1a1a;
  --impakt-color-status-success-default: #3e7d58;
  --impakt-color-status-success-text: #3e7d58;
  --impakt-color-status-success-subtle: #e8efeb;
  --impakt-color-status-success-on: #ffffff;
  --impakt-color-status-info-default: #3f7fae;
  --impakt-color-status-info-text: #3d7aa7;
  --impakt-color-status-info-subtle: #e8f0f5;
  --impakt-color-status-info-on: #ffffff;
  --impakt-font-family-body: Urbanist, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --impakt-font-family-heading: Urbanist, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --impakt-font-family-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --impakt-font-family-eyebrow: Urbanist, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --impakt-font-size-root: 17px;
  --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-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: 8px;
  --impakt-radius-sm: 16px;
  --impakt-radius-md: 24px;
  --impakt-radius-lg: 32px;
  --impakt-radius-xl: 48px;
  --impakt-radius-2xl: 64px;
  --impakt-radius-3xl: 96px;
  --impakt-radius-full: 9999px;
  --impakt-shadow-xs: 0 1px 2px 0 color-mix(in srgb, #241A2E 5%, transparent);
  --impakt-shadow-sm: 0 1px 3px 0 color-mix(in srgb, #241A2E 10%, transparent), 0 1px 2px -1px color-mix(in srgb, #241A2E 10%, transparent);
  --impakt-shadow-md: 0 4px 6px -1px color-mix(in srgb, #241A2E 10%, transparent), 0 2px 4px -2px color-mix(in srgb, #241A2E 10%, transparent);
  --impakt-shadow-lg: 0 10px 15px -3px color-mix(in srgb, #241A2E 10%, transparent), 0 4px 6px -4px color-mix(in srgb, #241A2E 10%, transparent);
  --impakt-shadow-xl: 0 20px 25px -5px color-mix(in srgb, #241A2E 10%, transparent), 0 8px 10px -6px color-mix(in srgb, #241A2E 10%, transparent);
  --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-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: #F0EBE5;
  --ik-surface-subtle: #F5F1F7;
  --ik-surface-board: #EFEAF2;
  --ik-surface-header: color-mix(in srgb, var(--impakt-color-surface-header) 88%, transparent);
  --ik-surface-inverse: var(--impakt-color-text-default);

  /* 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: #645C57;
  --ik-ink-inverse: var(--impakt-color-surface-page);

  /* Lines. A hairline is decoration. A border marks a control and is measured at 3:1. */
  --ik-line: #E8E0D5;
  --ik-border: #8A8079;
  --ik-border-strong: #645C57;

  /* Brand. Plum is the action colour. Gold is a fill and a glow, never text. */
  --ik-brand: var(--impakt-color-brand-default);
  --ik-brand-hover: #5C4569;
  --ik-brand-active: #4E3A5E;
  --ik-brand-subtle: #EFEAF2;
  --ik-brand-halo: color-mix(in srgb, var(--impakt-color-brand-default) 18%, transparent);
  --ik-on-brand: var(--impakt-color-brand-on);
  --ik-gold: #F2D96A;
  --ik-gold-deep: var(--impakt-color-accent-default);
  --ik-on-gold: #241A2E;
  --ik-link: var(--impakt-color-text-link);
  --ik-link-hover: #4E3A5E;

  /* 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: #A2404B;
  --ik-danger-subtle: #FBEDEE;
  --ik-warning: #9A8318;
  --ik-warning-text: #7A6410;
  --ik-warning-subtle: #FBF4D8;
  --ik-success: var(--impakt-color-status-success-default);
  --ik-success-text: #356E4D;
  --ik-success-subtle: #EAF3EC;
  --ik-info: var(--impakt-color-status-info-default);
  --ik-info-text: #336C96;
  --ik-info-subtle: #EAF2F8;

  /* 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 #241A2E;
  --ik-focus-ring-inset: inset 0 0 0 2px #241A2E, inset 0 0 0 4px #FFFFFF;

  /* Type. Urbanist, with a ramp whose smallest step is 14px. */
  --ik-font: var(--impakt-font-family-body);
  --ik-font-mono: var(--impakt-font-family-mono);
  --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. Rounded together from one base of 12px. */
  --ik-radius-sm: 8px;
  --ik-radius-md: 12px;
  --ik-radius-lg: 16px;
  --ik-radius-xl: 20px;
  --ik-radius-full: 999px;

  /* Elevation, tinted with the ink so it sits on warm paper. */
  --ik-shadow-xs: 0 1px 2px rgb(36 26 46 / 0.05);
  --ik-shadow-sm: 0 1px 2px rgb(36 26 46 / 0.04), 0 8px 24px -16px rgb(78 58 94 / 0.22);
  --ik-shadow-md: 0 2px 4px rgb(36 26 46 / 0.05), 0 16px 32px -16px rgb(78 58 94 / 0.28);

  /* 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: #15111A;
    --ik-surface-card: #211A28;
    --ik-surface-inset: #1C1622;
    --ik-surface-subtle: #261E2E;
    --ik-surface-board: #2A2232;
    --ik-surface-header: rgb(21 17 26 / 0.88);
    --ik-surface-inverse: #F4EFF6;
    --ik-ink: #F4EFF6;
    --ik-ink-muted: #B3AAB8;
    --ik-ink-inverse: #15111A;
    --ik-line: #3A3043;
    --ik-border: #7D7086;
    --ik-border-strong: #B3AAB8;
    --ik-brand: #B9A0CB;
    --ik-brand-hover: #CDB8DC;
    --ik-brand-active: #D6C3E2;
    --ik-brand-subtle: #2E2438;
    --ik-brand-halo: rgb(185 160 203 / 0.22);
    --ik-on-brand: #1A1420;
    --ik-link: #CDB8DC;
    --ik-link-hover: #E4D7EC;
    --ik-danger: #F0979E;
    --ik-danger-text: #F0979E;
    --ik-danger-subtle: #3A1D24;
    --ik-warning: #E6C95A;
    --ik-warning-text: #E6C95A;
    --ik-warning-subtle: #38301A;
    --ik-success: #8FD0A0;
    --ik-success-text: #8FD0A0;
    --ik-success-subtle: #1B3123;
    --ik-info: #8DC0E6;
    --ik-info-text: #8DC0E6;
    --ik-info-subtle: #1A2B3A;
    --ik-shadow-xs: 0 1px 2px rgb(0 0 0 / 0.3);
    --ik-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 28px -18px rgb(0 0 0 / 0.7);
    --ik-shadow-md: 0 2px 4px rgb(0 0 0 / 0.35), 0 18px 36px -18px rgb(0 0 0 / 0.75);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ik-surface-page: #15111A;
  --ik-surface-card: #211A28;
  --ik-surface-inset: #1C1622;
  --ik-surface-subtle: #261E2E;
  --ik-surface-board: #2A2232;
  --ik-surface-header: rgb(21 17 26 / 0.88);
  --ik-surface-inverse: #F4EFF6;
  --ik-ink: #F4EFF6;
  --ik-ink-muted: #B3AAB8;
  --ik-ink-inverse: #15111A;
  --ik-line: #3A3043;
  --ik-border: #7D7086;
  --ik-border-strong: #B3AAB8;
  --ik-brand: #B9A0CB;
  --ik-brand-hover: #CDB8DC;
  --ik-brand-active: #D6C3E2;
  --ik-brand-subtle: #2E2438;
  --ik-brand-halo: rgb(185 160 203 / 0.22);
  --ik-on-brand: #1A1420;
  --ik-link: #CDB8DC;
  --ik-link-hover: #E4D7EC;
  --ik-danger: #F0979E;
  --ik-danger-text: #F0979E;
  --ik-danger-subtle: #3A1D24;
  --ik-warning: #E6C95A;
  --ik-warning-text: #E6C95A;
  --ik-warning-subtle: #38301A;
  --ik-success: #8FD0A0;
  --ik-success-text: #8FD0A0;
  --ik-success-subtle: #1B3123;
  --ik-info: #8DC0E6;
  --ik-info-text: #8DC0E6;
  --ik-info-subtle: #1A2B3A;
  --ik-shadow-xs: 0 1px 2px rgb(0 0 0 / 0.3);
  --ik-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 28px -18px rgb(0 0 0 / 0.7);
  --ik-shadow-md: 0 2px 4px rgb(0 0 0 / 0.35), 0 18px 36px -18px rgb(0 0 0 / 0.75);
  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: #F0EBE5;
  --impakt-color-surface-subtle: #F5F1F7;
  --impakt-color-text-heading: #241a2e;
  --impakt-color-text-muted: #645C57;
  --impakt-color-text-placeholder: #645C57;
  --impakt-color-text-link-hover: #4E3A5E;
  --impakt-color-border-default: #8A8079;
  --impakt-color-border-strong: #645C57;
  --impakt-color-brand-hover: #5C4569;
  --impakt-color-brand-active: #4E3A5E;
  --impakt-color-brand-subtle: #EFEAF2;
  --impakt-color-status-danger-text: #A2404B;
  --impakt-color-status-danger-subtle: #FBEDEE;
  --impakt-color-status-warning-default: #9A8318;
  --impakt-color-status-warning-text: #7A6410;
  --impakt-color-status-warning-subtle: #FBF4D8;
  --impakt-color-status-success-text: #356E4D;
  --impakt-color-status-success-subtle: #EAF3EC;
  --impakt-color-status-info-text: #336C96;
  --impakt-color-status-info-subtle: #EAF2F8;
  --impakt-focus-ring-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #241A2E;
  --impakt-color-text-on-header: #403b19;
  --impakt-color-text-on-footer: #3b3617;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --impakt-color-surface-page: #15111A;
    --impakt-color-surface-card: #211A28;
    --impakt-color-surface-inset: #1C1622;
    --impakt-color-surface-subtle: #261E2E;
    --impakt-color-text-default: #F4EFF6;
    --impakt-color-text-heading: #F4EFF6;
    --impakt-color-text-muted: #B3AAB8;
    --impakt-color-text-placeholder: #B3AAB8;
    --impakt-color-text-link: #CDB8DC;
    --impakt-color-text-link-hover: #E4D7EC;
    --impakt-color-text-on-brand: #1A1420;
    --impakt-color-border-default: #7D7086;
    --impakt-color-border-strong: #B3AAB8;
    --impakt-color-brand-default: #B9A0CB;
    --impakt-color-brand-hover: #CDB8DC;
    --impakt-color-brand-active: #D6C3E2;
    --impakt-color-brand-subtle: #2E2438;
    --impakt-color-brand-on: #1A1420;
    --impakt-color-status-danger-default: #F0979E;
    --impakt-color-status-danger-text: #F0979E;
    --impakt-color-status-danger-subtle: #3A1D24;
    --impakt-color-status-warning-default: #E6C95A;
    --impakt-color-status-warning-text: #E6C95A;
    --impakt-color-status-warning-subtle: #38301A;
    --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 #FFFFFF, 0 0 0 4px #241A2E;
    --impakt-color-status-danger-on: #1A1420;
    --impakt-color-status-warning-on: #1A1420;
    --impakt-color-status-success-on: #1A1420;
    --impakt-color-status-info-on: #1A1420;
    --impakt-color-surface-header: #15111A;
    --impakt-color-text-on-header: #F4EFF6;
    --impakt-color-surface-footer: #1C1622;
    --impakt-color-text-on-footer: #F4EFF6;
  }
}

:root[data-theme="dark"] {
  --impakt-color-surface-page: #15111A;
  --impakt-color-surface-card: #211A28;
  --impakt-color-surface-inset: #1C1622;
  --impakt-color-surface-subtle: #261E2E;
  --impakt-color-text-default: #F4EFF6;
  --impakt-color-text-heading: #F4EFF6;
  --impakt-color-text-muted: #B3AAB8;
  --impakt-color-text-placeholder: #B3AAB8;
  --impakt-color-text-link: #CDB8DC;
  --impakt-color-text-link-hover: #E4D7EC;
  --impakt-color-text-on-brand: #1A1420;
  --impakt-color-border-default: #7D7086;
  --impakt-color-border-strong: #B3AAB8;
  --impakt-color-brand-default: #B9A0CB;
  --impakt-color-brand-hover: #CDB8DC;
  --impakt-color-brand-active: #D6C3E2;
  --impakt-color-brand-subtle: #2E2438;
  --impakt-color-brand-on: #1A1420;
  --impakt-color-status-danger-default: #F0979E;
  --impakt-color-status-danger-text: #F0979E;
  --impakt-color-status-danger-subtle: #3A1D24;
  --impakt-color-status-warning-default: #E6C95A;
  --impakt-color-status-warning-text: #E6C95A;
  --impakt-color-status-warning-subtle: #38301A;
  --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 #FFFFFF, 0 0 0 4px #241A2E;
  --impakt-color-status-danger-on: #1A1420;
  --impakt-color-status-warning-on: #1A1420;
  --impakt-color-status-success-on: #1A1420;
  --impakt-color-status-info-on: #1A1420;
  --impakt-color-surface-header: #15111A;
  --impakt-color-text-on-header: #F4EFF6;
  --impakt-color-surface-footer: #1C1622;
  --impakt-color-text-on-footer: #F4EFF6;
}

@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: rgb(242 217 106 / 0.55); 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. */
.ik-header {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--ik-space-3);
  min-height: 60px; padding: var(--ik-space-2) var(--ik-gutter);
  background: var(--ik-surface-header);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  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-lg); line-height: 1.2; letter-spacing: -0.015em; white-space: nowrap; }
.ik-brand:hover { color: var(--ik-ink); }
.ik-brand b, .ik-brand strong { font-weight: 700; }
.ik-brand .ik-product { font-weight: 500; }
/* 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 { min-height: 56px; gap: var(--ik-space-2); }
  .ik-brand { font-size: var(--ik-text-md); gap: 8px; }
}

/* -------------------------------------------------------------- buttons */
/* Solid plum for the one main action, an outline on the card for the rest, and words only for
   a quiet action. Pressed is a darker 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: var(--ik-space-2) var(--ik-space-4);
  font: inherit; font-size: var(--ik-text-sm); font-weight: 600; line-height: 1.2; letter-spacing: 0;
  color: var(--ik-ink); background: var(--ik-surface-card);
  border: 1px solid var(--ik-border); border-radius: var(--ik-radius-full);
  box-shadow: var(--ik-shadow-xs);
  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-border-strong); }
: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: var(--ik-shadow-xs), inset 0 1px 0 rgb(255 255 255 / 0.12); }
: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-link); }
: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: var(--ik-space-1) var(--ik-space-3); font-size: var(--ik-text-xs); }
@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-size: var(--ik-text-sm); font-weight: 600; 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: 10px 12px;
  font: inherit; font-size: var(--ik-text-md); line-height: var(--ik-leading-normal);
  color: var(--ik-ink); background: var(--ik-surface-card);
  border: 1px solid var(--ik-border); border-radius: var(--ik-radius-md);
  box-shadow: var(--ik-shadow-xs);
  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-border-strong); }
/* A plum halo as well as the ring, 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-brand); box-shadow: var(--ik-focus-ring), 0 0 0 7px var(--ik-brand-halo); }
: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: 600; color: var(--ik-ink); background: var(--ik-surface-card);
  border: 1px solid var(--ik-border); border-radius: var(--ik-radius-full); cursor: pointer;
}
.ik-field { display: grid; gap: 6px; 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 white pill bar with the chosen tab in lilac, as in Strata's segmented rows and the
   weareimpakt.com navigation. It is one row at every width and scrolls sideways when it must. */
.tabs, .ik-tabs {
  display: flex; flex-wrap: nowrap; gap: 2px; width: max-content; max-width: 100%;
  margin: var(--ik-space-3) 0 var(--ik-space-4); padding: 4px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  background: var(--ik-surface-card); border: 1px solid var(--ik-line); border-radius: var(--ik-radius-full);
  box-shadow: var(--ik-shadow-xs);
}
.tabs::-webkit-scrollbar, .ik-tabs::-webkit-scrollbar { display: none; }
.tabs > button, .ik-tabs > button, .tabs > a, .ik-tabs > a {
  flex: none; min-height: 36px; padding: 6px 14px; white-space: nowrap;
  color: var(--ik-ink-muted); background: transparent; border: 0; border-radius: var(--ik-radius-full); box-shadow: none;
  font-size: var(--ik-text-sm); font-weight: 600; text-decoration: none;
}
.tabs > button:hover:not(:disabled), .ik-tabs > button:hover:not(:disabled), .tabs > a:hover, .ik-tabs > a:hover { background: var(--ik-surface-subtle); 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-brand-subtle); color: 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-brand-subtle); }
/* 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-line); border-radius: var(--ik-radius-xl);
  padding: var(--ik-space-5) var(--ik-space-6); margin-bottom: var(--ik-space-4);
  box-shadow: var(--ik-shadow-sm);
}
.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, never shouted. The word carries the meaning, and the colour repeats it. */
.pill, .ik-pill {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: baseline;
  padding: 2px 10px; border-radius: var(--ik-radius-full);
  font-size: var(--ik-text-xs); font-weight: 600; line-height: 1.45; white-space: nowrap;
  color: var(--ik-ink); background: var(--ik-surface-inset); border: 1px solid transparent;
}
.pill.ok, .ik-pill.ok { color: var(--ik-success-text); background: var(--ik-success-subtle); }
.pill.warn, .ik-pill.warn { color: var(--ik-warning-text); background: var(--ik-warning-subtle); }
.pill.bad, .ik-pill.bad { color: var(--ik-danger-text); background: var(--ik-danger-subtle); }
.pill.info, .ik-pill.info { color: var(--ik-info-text); background: var(--ik-info-subtle); }
.pill.brand, .ik-pill.brand { color: var(--ik-ink); background: var(--ik-brand-subtle); }
@media (forced-colors: active) { .pill, .ik-pill { border-color: CanvasText; } }

/* --------------------------------------------------------------- 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: inset 0 0 0 1px rgb(36 26 46 / 0.04);
}
.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. Forms read best narrow, review screens need room. */
.ik-main { max-width: 1040px; 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: a back link, the title, one line of facts, then the status and the main
   action on the right. On a phone the actions go under the title. */
.ik-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--ik-space-3) var(--ik-space-6); margin-bottom: var(--ik-space-5); }
.ik-page-head > :first-child { flex: 1 1 320px; min-width: 0; }
.ik-page-head h1 { margin: 0; font-size: var(--ik-text-3xl); overflow-wrap: anywhere; }
.ik-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: var(--ik-space-2); font-size: var(--ik-text-sm); font-weight: 600; color: var(--ik-ink-muted); text-decoration: none; }
.ik-back::before { content: "\2190"; }
.ik-back:hover { color: var(--ik-ink); }
.ik-facts { display: flex; flex-wrap: wrap; gap: 4px var(--ik-space-4); margin: var(--ik-space-2) 0 0; padding: 0; list-style: none; font-size: var(--ik-text-sm); color: var(--ik-ink-muted); }
.ik-facts strong { color: var(--ik-ink); font-weight: 600; }
.ik-page-head .ik-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ik-space-2); }
@media (max-width: 640px) { .ik-page-head h1 { font-size: var(--ik-text-2xl); } }

/* 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: var(--ik-space-2); margin: 0 0 var(--ik-space-5); padding: 0; list-style: none; counter-reset: ik-step; overflow-x: auto; scrollbar-width: none; }
.ik-steps::-webkit-scrollbar { display: none; }
.ik-steps > li { flex: 1 1 0; min-width: 150px; counter-increment: ik-step; }
.ik-steps > li > :where(a, button) {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px var(--ik-space-3);
  width: 100%; min-height: 60px; padding: var(--ik-space-3) var(--ik-space-4); text-align: left;
  font-size: var(--ik-text-sm); font-weight: 600; color: var(--ik-ink); text-decoration: none;
  background: var(--ik-surface-card); border: 1px solid var(--ik-line); border-radius: var(--ik-radius-lg); box-shadow: var(--ik-shadow-xs);
}
.ik-steps > li > :where(a, button)::before {
  content: counter(ik-step); grid-row: span 2; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: var(--ik-text-xs); font-weight: 700; color: var(--ik-ink); background: var(--ik-surface-inset); border: 1px solid var(--ik-border);
}
.ik-steps .ik-step-hint { grid-column: 2; font-size: var(--ik-text-xs); font-weight: 400; color: var(--ik-ink-muted); }
.ik-steps > li.done > :where(a, button)::before { content: "\2713"; color: var(--ik-on-brand); background: var(--ik-success-text); border-color: var(--ik-success-text); }
.ik-steps > li > [aria-current="step"], .ik-steps > li > [aria-selected="true"] { border-color: var(--ik-brand); box-shadow: 0 0 0 1px var(--ik-brand), var(--ik-shadow-sm); }
.ik-steps > li > [aria-current="step"]::before, .ik-steps > li > [aria-selected="true"]::before { color: var(--ik-on-brand); background: var(--ik-brand); border-color: var(--ik-brand); }
.ik-steps > li > :where(a, button):hover:not(:disabled) { background: var(--ik-surface-subtle); }
.ik-steps > li > :where(a, button):disabled, .ik-steps > li > [aria-disabled="true"] { opacity: 1; color: var(--ik-ink-muted); background: var(--ik-surface-inset); box-shadow: none; }
.ik-steps > li > :focus-visible { box-shadow: var(--ik-focus-ring-inset); }
@media (max-width: 640px) {
  .ik-steps > li { min-width: 0; }
  .ik-steps > li > :where(a, button) { grid-template-columns: 1fr; justify-items: center; min-height: 56px; padding: var(--ik-space-2); text-align: center; font-size: var(--ik-text-xs); }
  .ik-steps > li > :where(a, button)::before { grid-row: auto; }
  .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-radius: 50%; border: 1.5px solid var(--ik-brand); background: radial-gradient(circle, var(--ik-gold-deep) 0 9px, transparent 10px); }
.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: 4px; padding: var(--ik-space-6) var(--ik-space-4); text-align: center; font-weight: 400; color: var(--ik-ink); background: var(--ik-surface-card); border: 1.5px dashed var(--ik-border-strong); 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: 600; }
.ik-drop .ik-hint { color: var(--ik-ink-muted); }
.ik-drop:hover, .ik-drop.over { background: var(--ik-brand-subtle); border-color: var(--ik-brand); }
.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, progress.ik-bar { 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, progress.ik-bar::-webkit-progress-bar { background: var(--ik-surface-card); border-radius: var(--ik-radius-full); }
.ik-progress progress::-webkit-progress-value, progress.ik-bar::-webkit-progress-value { background: var(--ik-brand); border-radius: var(--ik-radius-full); }
.ik-progress progress::-moz-progress-bar, progress.ik-bar::-moz-progress-bar { background: var(--ik-brand); border-radius: var(--ik-radius-full); }
.ik-progress progress:indeterminate, progress.ik-bar: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: var(--ik-space-2) var(--ik-space-4); font-style: italic; color: var(--ik-ink); background: var(--ik-surface-inset); border-inline-start: 3px solid var(--ik-brand); border-radius: 0 var(--ik-radius-sm) var(--ik-radius-sm) 0; }
.ik-source { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; font-size: var(--ik-text-xs); font-style: normal; font-weight: 600; color: var(--ik-link); background: var(--ik-brand-subtle); border-radius: var(--ik-radius-full); text-decoration: none; white-space: nowrap; }
a.ik-source:hover, button.ik-source:hover { color: var(--ik-link-hover); text-decoration: underline; }
button.ik-source { min-height: 0; min-width: 0; border: 0; box-shadow: none; }

/* ------------------------------------------------------------- summary */
/* The few numbers a screen is about, such as a score, a total and a deadline, in a row of
   tiles at the top. A tile can carry a tone in words and on its edge. */
.ik-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--ik-space-3); margin-bottom: var(--ik-space-5); }
.ik-stat { display: grid; gap: 2px; padding: var(--ik-space-4); background: var(--ik-surface-card); border: 1px solid var(--ik-line); border-radius: var(--ik-radius-lg); box-shadow: var(--ik-shadow-xs); }
.ik-stat-label { font-size: var(--ik-text-xs); font-weight: 600; color: var(--ik-ink-muted); }
.ik-stat-value { font-size: var(--ik-text-2xl); font-weight: 700; line-height: 1.15; letter-spacing: var(--ik-tracking-tight); font-variant-numeric: tabular-nums; }
.ik-stat-note { font-size: var(--ik-text-xs); color: var(--ik-ink-muted); }
.ik-stat.ok { border-inline-start: 4px solid var(--ik-success); }
.ik-stat.warn { border-inline-start: 4px solid var(--ik-warning); }
.ik-stat.bad { border-inline-start: 4px solid var(--ik-danger); }

/* A meter, such as usage against a plan or words against a limit. */
.ik-meter { display: block; width: 100%; height: 6px; border-radius: var(--ik-radius-full); background: var(--ik-surface-inset); overflow: hidden; }
.ik-meter > span { display: block; height: 100%; width: var(--ik-meter, 0%); background: var(--ik-brand); border-radius: inherit; }
.ik-meter.warn > span { background: var(--ik-warning); }
.ik-meter.bad > span { background: var(--ik-danger); }

/* --------------------------------------------------------------- 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, 340px) 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; } }

/* ------------------------------------------------------------- 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: 4px 6px 4px 4px; list-style: none; border: 1px solid var(--ik-border); border-radius: var(--ik-radius-full); background: var(--ik-surface-card); cursor: pointer; font-size: var(--ik-text-sm); font-weight: 600; }
.ik-account > summary::-webkit-details-marker { display: none; }
.ik-account > summary::after { content: "\25BE"; padding-inline-end: 6px; color: var(--ik-ink-muted); }
.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-line); border-radius: var(--ik-radius-lg); box-shadow: var(--ik-shadow-md); }
.ik-account-panel a { font-size: var(--ik-text-sm); font-weight: 600; }
@media (max-width: 640px) { .ik-account > summary .ik-account-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
