/* Wegweiser Kontor: shared stylesheet of the core pages (sign-in, account, administration) and the forms host.
   The Kontor frame adds kontor.css on top. Every colour, font, radius and spacing lives in the token blocks below:
   light is the default, dark comes from the visitor's choice (data-theme) or the system preference. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Spline Sans Mono";
  src: url("/fonts/spline-sans-mono-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

/* ---------- Tokens: light ---------- */
:root {
  color-scheme: light;

  /* Brand constants, identical in both themes */
  --brand-lilac: #8d82d8;
  --brand-lime: #ace65c;
  --brand-ink: #0c0d10;
  --brand-gradient: linear-gradient(100deg, var(--brand-lilac) 0%, var(--brand-lime) 100%);

  /* Work area */
  --color-canvas: #faf9f6;
  --color-surface-raised: #ffffff;
  --color-surface-muted: #efece6;
  --color-surface-hover: #f8f6f2;
  --color-topbar: rgb(250 249 246 / 0.88);
  --color-line: #e4e0d8;
  --color-line-strong: #cfcac0;
  --color-grid: rgb(22 23 27 / 0.055);

  /* Text */
  --color-ink: #16171b;
  --color-ink-muted: #55534e;
  --color-ink-subtle: #6c6963;

  /* Primary action: ink button with a lime arrow chip (inverted in dark) */
  --color-primary-bg: #0c0d10;
  --color-primary-bg-hover: #26282f;
  --color-primary-text: #f4f2ee;
  --color-primary-chip: #ace65c;
  --color-primary-chip-text: #0c0d10;

  /* Sidebar and sign-in artwork: the paper equals the tone baked into the light logo file */
  --color-sidebar: #f4f2ee;
  --color-sidebar-line: #e2ded6;
  --color-sidebar-ink: #16171b;
  --color-sidebar-muted: #55534e;
  --color-sidebar-label: #6c6963;
  --color-sidebar-hover: rgb(22 23 27 / 0.05);
  --color-sidebar-chip: rgb(22 23 27 / 0.06);
  --color-sidebar-focus: #5a4fb3;
  --color-sidebar-grid: rgb(22 23 27 / 0.06);
  --color-pill: #ffffff;
  --color-pill-ink: #16171b;
  --shadow-pill: 0 0 0 1px #e2ded6, 0 0.4rem 1rem rgb(22 23 27 / 0.08);

  /* Interaction */
  --color-accent: #5a4fb3;
  --color-accent-soft: #e9e6f8;
  --color-focus: #5a4fb3;
  --color-node-ring: rgb(141 130 216 / 0.28);

  /* Status */
  --color-draft: #b7791f;
  --color-draft-soft: #f8edd8;
  --color-changed: #7a6fd0;
  --color-changed-soft: #ebe8f9;
  --color-published: #4f9a2a;
  --color-published-soft: #e5f2d6;
  --color-fresh: #8a867e;
  --color-crit: #b3261e;
  --color-crit-soft: #fbe9e7;

  /* Customer plate: always light, so one uploaded logo will work in both themes */
  --color-plate: #ffffff;
  --color-plate-ink: #16171b;
  --shadow-plate: 0 0 0 1px #e4e0d8, 0 12px 32px -20px rgb(22 23 27 / 0.25);

  /* Depth */
  --shadow-card: 0 0 0 1px var(--color-line), 0 1px 2px rgb(22 23 27 / 0.04);
  --shadow-card-lift: 0 0 0 1px var(--color-line), 0 1px 2px rgb(22 23 27 / 0.04), 0 16px 36px -20px rgb(22 23 27 / 0.2);
  --shadow-button: 0 0 0 1px var(--color-line-strong), 0 1px 2px rgb(22 23 27 / 0.06);
  --shadow-field: inset 0 0 0 1px var(--color-line-strong);
  --shadow-field-hover: inset 0 0 0 1px var(--color-ink-subtle);

  /* Which logo file and which toggle label the theme shows (two files, never recoloured) */
  --logo-on-light-display: block;
  --logo-on-dark-display: none;
  --color-logo-name: #4a4843;
  --to-dark-display: inline-flex;
  --to-light-display: none;

  /* Masks only use the alpha channel; print is always black on white */
  --mask-opaque: #000000;
  --print-text: #000000;
  --print-background: #ffffff;

  /* Type */
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Newsreader", ui-serif, Georgia, serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", monospace;
  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 0.9375rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 2rem;
  --text-page: 1.75rem;
  --text-display: 3.5rem;
  --text-display-small: 2.75rem;
  --leading-tight: 1.05;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --tracking-tight: -0.015em;
  --tracking-title: -0.025em;
  --tracking-display: -0.035em;
  --tracking-label: 0.1em;
  --tracking-mono: 0.03em;

  /* Shape */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-nav: 0.65rem;
  --radius-chip: 0.45rem;
  --radius-round: 50%;
  --radius-pill: 999px;

  /* Spacing */
  --space-hair: 0.125rem;
  --space-hair-wide: 0.1875rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* Layout and controls */
  --width: 42rem;
  --sidebar-width: 16rem;
  --content-width: 68rem;
  --target: 2.75rem;
  --size-badge: 1.375rem;
  --grid-size: 2rem;
  --focus-width: 2px;
  --focus-offset: 2px;

  /* Product logo geometry, measured on the tight-cropped logo file (800 x 197 units), in cqi of the logo width */
  --plogo-arrow-tip-x: 41.1cqi;
  --plogo-arrow-axis-y: 4.65cqi;
  --plogo-name-gap: max(4px, 2.4cqi);
  --plogo-tracking-wide: 0.32em;
  --plogo-tracking-arrow: 0.08em;

  /* Route stepper (draft, preview, published) */
  --route-node: 1.125rem;
  --route-stroke: 4px;
  --route-lead: 2.5rem;
  --route-bend: 1.75rem;
}

/* ---------- Tokens: dark by choice (same values as the system block below) ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-canvas: #101114;
  --color-surface-raised: #191b20;
  --color-surface-muted: #202228;
  --color-surface-hover: #1c1e23;
  --color-topbar: rgb(16 17 20 / 0.86);
  --color-line: #262931;
  --color-line-strong: #3a3d46;
  --color-grid: rgb(236 235 231 / 0.045);
  --color-ink: #ecebe7;
  --color-ink-muted: #b2afa8;
  --color-ink-subtle: #918e87;
  --color-primary-bg: #ace65c;
  --color-primary-bg-hover: #bdf06f;
  --color-primary-text: #0c0d10;
  --color-primary-chip: #0c0d10;
  --color-primary-chip-text: #ace65c;
  --color-sidebar: #08090b;
  --color-sidebar-line: rgb(255 255 255 / 0.08);
  --color-sidebar-ink: #f1efea;
  --color-sidebar-muted: #b3b0a9;
  --color-sidebar-label: #8c8a84;
  --color-sidebar-hover: rgb(255 255 255 / 0.06);
  --color-sidebar-chip: rgb(255 255 255 / 0.07);
  --color-sidebar-focus: #b4abf5;
  --color-sidebar-grid: rgb(255 255 255 / 0.05);
  --color-pill: #e6e3dc;
  --color-pill-ink: #16171b;
  --shadow-pill: 0 0.45rem 1.2rem rgb(0 0 0 / 0.5);
  --color-accent: #b4abf5;
  --color-accent-soft: #24213b;
  --color-focus: #b4abf5;
  --color-node-ring: rgb(141 130 216 / 0.35);
  --color-draft: #e6b25c;
  --color-draft-soft: #2d2415;
  --color-changed: #a79df0;
  --color-changed-soft: #232038;
  --color-published: #ace65c;
  --color-published-soft: #1c2615;
  --color-fresh: #918e87;
  --color-crit: #ff8a80;
  --color-crit-soft: #2e1714;
  --shadow-plate: 0 0 0 1px #262931, 0 12px 32px -20px rgb(0 0 0 / 0.6);
  --shadow-card: 0 0 0 1px var(--color-line), 0 1px 0 rgb(255 255 255 / 0.03) inset;
  --shadow-card-lift: 0 0 0 1px var(--color-line), 0 1px 0 rgb(255 255 255 / 0.03) inset, 0 18px 40px -20px rgb(0 0 0 / 0.75);
  --shadow-button: 0 0 0 1px var(--color-line-strong), 0 1px 2px rgb(0 0 0 / 0.3);
  --logo-on-light-display: none;
  --logo-on-dark-display: block;
  --color-logo-name: #c9c6bf;
  --to-dark-display: none;
  --to-light-display: inline-flex;
}

/* ---------- Tokens: dark by system preference, unless light was chosen ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --color-canvas: #101114;
    --color-surface-raised: #191b20;
    --color-surface-muted: #202228;
    --color-surface-hover: #1c1e23;
    --color-topbar: rgb(16 17 20 / 0.86);
    --color-line: #262931;
    --color-line-strong: #3a3d46;
    --color-grid: rgb(236 235 231 / 0.045);
    --color-ink: #ecebe7;
    --color-ink-muted: #b2afa8;
    --color-ink-subtle: #918e87;
    --color-primary-bg: #ace65c;
    --color-primary-bg-hover: #bdf06f;
    --color-primary-text: #0c0d10;
    --color-primary-chip: #0c0d10;
    --color-primary-chip-text: #ace65c;
    --color-sidebar: #08090b;
    --color-sidebar-line: rgb(255 255 255 / 0.08);
    --color-sidebar-ink: #f1efea;
    --color-sidebar-muted: #b3b0a9;
    --color-sidebar-label: #8c8a84;
    --color-sidebar-hover: rgb(255 255 255 / 0.06);
    --color-sidebar-chip: rgb(255 255 255 / 0.07);
    --color-sidebar-focus: #b4abf5;
    --color-sidebar-grid: rgb(255 255 255 / 0.05);
    --color-pill: #e6e3dc;
    --color-pill-ink: #16171b;
    --shadow-pill: 0 0.45rem 1.2rem rgb(0 0 0 / 0.5);
    --color-accent: #b4abf5;
    --color-accent-soft: #24213b;
    --color-focus: #b4abf5;
    --color-node-ring: rgb(141 130 216 / 0.35);
    --color-draft: #e6b25c;
    --color-draft-soft: #2d2415;
    --color-changed: #a79df0;
    --color-changed-soft: #232038;
    --color-published: #ace65c;
    --color-published-soft: #1c2615;
    --color-fresh: #918e87;
    --color-crit: #ff8a80;
    --color-crit-soft: #2e1714;
    --shadow-plate: 0 0 0 1px #262931, 0 12px 32px -20px rgb(0 0 0 / 0.6);
    --shadow-card: 0 0 0 1px var(--color-line), 0 1px 0 rgb(255 255 255 / 0.03) inset;
    --shadow-card-lift: 0 0 0 1px var(--color-line), 0 1px 0 rgb(255 255 255 / 0.03) inset, 0 18px 40px -20px rgb(0 0 0 / 0.75);
    --shadow-button: 0 0 0 1px var(--color-line-strong), 0 1px 2px rgb(0 0 0 / 0.3);
    --logo-on-light-display: none;
    --logo-on-dark-display: block;
    --color-logo-name: #c9c6bf;
    --to-dark-display: none;
    --to-light-display: inline-flex;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

code {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

/* Date fields move the focus to inner parts, where :focus-visible does not reach the field itself. */
:focus-visible,
.field__input:focus-within {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: var(--focus-offset);
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

.skip-link {
  position: absolute;
  top: calc(var(--space-8) * -1);
  left: var(--space-4);
  z-index: 20;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-surface-raised);
  color: var(--color-ink);
}

.skip-link:focus-visible {
  top: var(--space-4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
}

.eyebrow {
  margin: 0;
  color: var(--color-ink-subtle);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

/* ---------- Product logo and theme toggle ---------- */
/* The logo image is never altered; "KONTOR" only uses the free space around it. A2: right of the arrowhead on the
   arrow axis, from a logo width of about 9rem. C: below that, under the wordmark, ending under the square dot. */
.plogo {
  position: relative;
  display: block;
  container-type: inline-size;
  width: 9.5rem;
  max-width: 100%;
  color: var(--color-logo-name);
}

.plogo__image {
  display: block;
  width: 100%;
  height: auto;
}

.plogo__image--on-light {
  display: var(--logo-on-light-display);
}

.plogo__image--on-dark {
  display: var(--logo-on-dark-display);
}

.plogo__name {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.plogo--arrow .plogo__name {
  position: absolute;
  top: var(--plogo-arrow-axis-y);
  left: calc(var(--plogo-arrow-tip-x) + 2.4cqi);
  font-size: max(11px, 7.5cqi);
  letter-spacing: var(--plogo-tracking-arrow);
  transform: translateY(-50%);
}

@container (max-width: 9rem) {
  .plogo--arrow .plogo__name {
    position: static;
    margin: var(--plogo-name-gap) calc(var(--plogo-tracking-wide) * -1) 0 0;
    font-size: 9px;
    letter-spacing: var(--plogo-tracking-wide);
    text-align: right;
    transform: none;
  }
}

.plogo--sign-in {
  width: 11rem;
}

.theme-toggle__to-dark,
.theme-toggle__to-light {
  align-items: center;
  gap: var(--space-2);
}

.theme-toggle__to-dark {
  display: var(--to-dark-display);
}

.theme-toggle__to-light {
  display: var(--to-light-display);
}

/* Customer name until a logo can be uploaded: a light plate, as the logo slot will be. */
.customer-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  margin: 0;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-plate);
  box-shadow: var(--shadow-plate);
  color: var(--color-plate-ink);
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: var(--leading-snug);
  text-align: center;
  overflow-wrap: anywhere;
}

.customer-plate--logo {
  padding: var(--space-4);
}

.customer-plate__image {
  display: block;
  max-width: 100%;
  max-height: 5rem;
  object-fit: contain;
}

/* Preview on the logo page: the same light plate the logo sits on in the top bar and on the sign-in page. */
.logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  margin: 0 0 var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-plate);
  box-shadow: var(--shadow-plate);
}

.logo-preview__image {
  display: block;
  max-width: 100%;
  max-height: 6rem;
  object-fit: contain;
}

/* ---------- Core page frame (account, administration, sign-in steps) ---------- */
.page__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: var(--width);
  margin: 0 auto;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-line);
}

.page__brand {
  font-weight: 600;
}

.page__main {
  max-width: var(--width);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-7);
}

.page__title {
  margin: 0 0 var(--space-5);
  font-size: var(--text-page);
  font-weight: 500;
  letter-spacing: var(--tracking-title);
  line-height: 1.15;
}

.card {
  margin: 0 0 var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-card);
}

.card__title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
}

.card__text {
  margin: 0 0 var(--space-4);
  color: var(--color-ink-muted);
}

/* ---------- Forms ---------- */
.form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  margin: 0;
}

.form--inline {
  display: inline-flex;
  max-width: 100%;
}

.field {
  display: grid;
  gap: var(--space-2);
}

.field__label {
  display: block;
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 500;
}

.field__hint {
  margin: 0;
  color: var(--color-ink-subtle);
  font-size: var(--text-xs);
}

.field__input {
  width: 100%;
  min-height: var(--target);
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-field);
  color: var(--color-ink);
  font: 400 var(--text-md) / var(--leading-normal) var(--font-sans);
}

.field__input::placeholder {
  color: var(--color-ink-subtle);
}

.field__input:hover {
  box-shadow: var(--shadow-field-hover);
}

.field__input[readonly] {
  background: var(--color-surface-muted);
  box-shadow: none;
  color: var(--color-ink-muted);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

textarea.field__input {
  resize: vertical;
}

.field__checkbox {
  width: var(--target);
  height: var(--target);
  margin: 0 var(--space-2) 0 0;
  vertical-align: middle;
  accent-color: var(--color-accent);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  max-width: 100%;
  min-height: var(--target);
  padding: 0 var(--space-4);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-button);
  color: var(--color-ink);
  font: 500 var(--text-sm) / 1.2 var(--font-sans);
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.button:hover {
  background: var(--color-surface-hover);
}

.button:active {
  transform: translateY(1px);
}

/* One primary action per screen: ink button with a lime arrow chip (inverted in dark). */
.button--primary {
  gap: var(--space-3);
  background: var(--color-primary-bg);
  box-shadow: none;
  color: var(--color-primary-text);
  font-weight: 600;
}

.button--primary:hover {
  background: var(--color-primary-bg-hover);
}

.button--primary:has(.button__chip) {
  padding: 0 var(--space-2) 0 var(--space-4);
}

.button__chip {
  display: grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-xs);
  background: var(--color-primary-chip);
  color: var(--color-primary-chip-text);
}

.button--quiet {
  padding: 0 var(--space-3);
  background: transparent;
  box-shadow: none;
  color: var(--color-ink-muted);
}

.button--quiet:hover {
  background: var(--color-surface-muted);
  color: var(--color-ink);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Notices ---------- */
.hint {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-left: 0.25rem solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  color: var(--color-ink);
  font-size: var(--text-sm);
}

.hint--error {
  border-left-color: var(--color-crit);
  background: var(--color-crit-soft);
}

.hint--note {
  border-left-color: var(--color-changed);
  background: var(--color-changed-soft);
}

.hint--ok {
  border-left-color: var(--color-published);
  background: var(--color-published-soft);
}

/* ---------- Area tabs of a module (plain links, the current one carries aria-current) ---------- */
.area-tabs {
  max-width: 100%;
  margin: 0 0 var(--space-5);
}

.area-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: var(--space-1);
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  list-style: none;
}

.area-tabs__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target);
  padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}

.area-tabs__link:hover {
  color: var(--color-ink);
}

.area-tabs__link--active {
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-card);
  color: var(--color-ink);
}

.area-tabs__badge {
  display: inline-grid;
  place-items: center;
  min-width: var(--size-badge);
  height: var(--size-badge);
  padding: 0 var(--space-1);
  border-radius: var(--radius-pill);
  background: var(--color-changed-soft);
  color: var(--color-ink);
  font-size: var(--text-xs);
  font-weight: 600;
}

.area-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--target);
  margin-bottom: var(--space-3);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.area-back:hover {
  color: var(--color-ink);
  text-decoration: underline;
}

@media (max-width: 40em) {
  .area-tabs__list {
    width: auto;
  }

  .area-tabs__link {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 var(--space-2);
  }
}

/* ---------- Appointments setup: the switch and the checklist (works without client script) ---------- */
.setup {
  display: grid;
  gap: var(--space-6);
}

.entry-switch {
  display: grid;
  min-width: 0;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-card-lift);
}

/* The switch stays on although a step went missing: the colour and the words say so, the switch does not flip by itself. */
.entry-switch--attention {
  border-left: var(--space-1) solid var(--color-draft);
  background: var(--color-draft-soft);
}

.entry-switch__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.entry-switch__heading {
  min-width: 0;
}

.entry-switch__label {
  margin: 0;
  color: var(--color-ink-subtle);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.entry-switch__title {
  margin: var(--space-1) 0 0;
  hyphens: auto;
  overflow-wrap: anywhere;
  font-size: var(--text-lg);
  font-weight: 600;
}

.entry-switch__text {
  max-width: 40rem;
  margin: 0;
  color: var(--color-ink-muted);
}

.entry-switch__form {
  margin: 0;
}

.entry-switch__value {
  margin: 0;
  font-weight: 600;
}

.entry-switch__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
}

/* A submit button drawn as a switch; the word An or Aus carries the state, the colour only repeats it. */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target);
  padding: 0 var(--space-3) 0 var(--space-2);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-ink);
  font: 600 var(--text-sm) / 1.2 var(--font-sans);
  cursor: pointer;
}

.toggle:hover {
  background: var(--color-surface-hover);
}

.toggle__track {
  position: relative;
  flex: none;
  width: 3.25rem;
  height: 1.875rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface-muted);
  box-shadow: inset 0 0 0 1px var(--color-line-strong);
}

.toggle__knob {
  position: absolute;
  top: var(--space-hair-wide);
  left: var(--space-hair-wide);
  width: var(--space-5);
  height: var(--space-5);
  border-radius: var(--radius-round);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-button);
}

.toggle--on .toggle__track {
  background: var(--color-published);
  box-shadow: none;
}

.toggle--on .toggle__knob {
  left: auto;
  right: var(--space-hair-wide);
}

.toggle[aria-disabled="true"] {
  color: var(--color-ink-subtle);
  cursor: not-allowed;
}

.toggle[aria-disabled="true"]:hover {
  background: transparent;
}

.toggle[aria-disabled="true"] .toggle__track {
  background: repeating-linear-gradient(135deg, var(--color-surface-muted) 0 4px, var(--color-canvas) 4px 8px);
}

.toggle:focus-visible {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: var(--focus-offset);
}

.checklist {
  display: grid;
  gap: var(--space-3);
}

.checklist__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}

.checklist__title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 600;
}

.checklist__progress {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.checklist__meter {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist__meter-step {
  height: 0.375rem;
  border-radius: var(--radius-pill);
  background: var(--color-line);
}

.checklist__meter-step--done {
  background: var(--brand-gradient);
}

.checklist__list {
  margin: 0;
  padding: 0;
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-card);
  list-style: none;
}

.checklist__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-4) var(--space-5);
}

.checklist__item + .checklist__item {
  border-top: 1px solid var(--color-line);
}

.checklist__item--current {
  background: var(--color-accent-soft);
}

.checklist__mark {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-round);
  box-shadow: inset 0 0 0 2px var(--color-line-strong);
  color: var(--color-ink-subtle);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.checklist__item--done .checklist__mark {
  background: var(--color-published-soft);
  box-shadow: none;
  color: var(--color-published);
}

.checklist__item--current .checklist__mark {
  background: var(--color-surface-raised);
  box-shadow: inset 0 0 0 2px var(--color-accent);
  color: var(--color-accent);
}

.checklist__mark .icon {
  width: var(--space-4);
  height: var(--space-4);
}

.checklist__text {
  display: grid;
  gap: var(--space-hair);
  min-width: 0;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.checklist__name {
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: none;
}

.checklist__name:hover {
  text-decoration: underline;
}

.checklist__name:focus-visible {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: var(--focus-offset);
}

.checklist__summary {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.checklist__aside {
  justify-self: end;
}

.checklist__group-label {
  margin: var(--space-2) 0 calc(var(--space-2) * -1);
  color: var(--color-ink-subtle);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

@media (max-width: 40em) {
  .entry-switch {
    padding: var(--space-4);
  }

  .checklist__item {
    grid-template-columns: auto minmax(0, 1fr);
    padding: var(--space-4);
  }

  .checklist__aside {
    grid-column: 2;
    justify-self: start;
  }
}

/* ---------- Lists of the core pages ---------- */
.sessions {
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.sessions__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-line);
}

.sessions__device {
  font-weight: 600;
}

.sessions__meta {
  display: block;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.codes {
  margin: 0 0 var(--space-4);
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  letter-spacing: 0.05em;
  list-style: none;
}

.codes__row {
  padding: var(--space-1) 0;
  overflow-wrap: anywhere;
}

.audit {
  width: 100%;
  margin: 0 0 var(--space-4);
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

.audit th,
.audit td {
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

/* The five columns no longer fit: every row becomes a block, every cell names its column through data-label. */
@media (max-width: 40em) {
  .audit,
  .audit tbody,
  .audit tr,
  .audit td {
    display: block;
  }

  .audit thead {
    display: none;
  }

  .audit tr {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-line);
  }

  .audit td {
    padding: var(--space-hair) 0;
    border-bottom: 0;
  }

  .audit td::before {
    content: attr(data-label) ": ";
    color: var(--color-ink-muted);
    font-weight: 600;
  }
}

/* Honeypot field of the forms on the forms host: off-screen for humans and assistive technology. */
.honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Kontor shell (signed-in pages of core and Kontor): sidebar, top bar, mobile bar ---------- */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100svh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100svh;
  padding: var(--space-5) var(--space-4) var(--space-4);
  overflow-y: auto;
  border-right: 1px solid var(--color-sidebar-line);
  background: var(--color-sidebar);
  color: var(--color-sidebar-ink);
}

.sidebar__brand {
  display: block;
  justify-self: start;
  margin: var(--space-1) var(--space-2) var(--space-7);
  border-radius: var(--radius-xs);
}

/* Product logo sizes: wide enough for the arrow position in the sidebar, under-the-dot position in the mobile bar. */
.plogo--sidebar {
  width: 9.5rem;
}

.plogo--mobile-bar {
  width: 6.25rem;
}

.nav {
  display: grid;
  gap: var(--space-5);
}

.nav__group {
  display: grid;
  gap: var(--space-2);
}

.nav__label {
  margin: 0 var(--space-3);
  color: var(--color-sidebar-label);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.nav__list {
  display: grid;
  gap: var(--space-hair-wide);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-nav);
  color: var(--color-sidebar-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}

.nav__link:hover {
  background: var(--color-sidebar-hover);
  color: var(--color-sidebar-ink);
}

/* On the sidebar surface the focus ring takes the sidebar's own focus colour. */
.nav__link:focus-visible,
.sidebar__action:focus-visible,
.sidebar__brand:focus-visible,
.mobile-bar :focus-visible {
  outline-color: var(--color-sidebar-focus);
}

.nav__chip {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-chip);
  background: var(--color-sidebar-chip);
}

.nav__link--active,
.nav__link--active:hover {
  background: var(--color-pill);
  box-shadow: var(--shadow-pill);
  color: var(--color-pill-ink);
  font-weight: 600;
}

/* Signature: the active item's chip carries the logo gradient. */
.nav__link--active .nav__chip {
  background: var(--brand-gradient);
  color: var(--brand-ink);
}

.sidebar__footer {
  display: grid;
  gap: var(--space-1);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-sidebar-line);
}

.sidebar__sign-out {
  margin: 0;
}

.sidebar__action {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: var(--target);
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-sidebar-muted);
  font: 500 var(--text-sm) / 1.2 var(--font-sans);
  text-align: left;
  cursor: pointer;
}

.sidebar__action:hover {
  background: var(--color-sidebar-hover);
  color: var(--color-sidebar-ink);
}

.sidebar__action .theme-toggle__to-dark,
.sidebar__action .theme-toggle__to-light {
  gap: var(--space-3);
}

/* ---------- Work area ---------- */
.work {
  min-width: 0;
}

/* Test context (ADR-0019 § 9): a full-width band above the top bar, never dismissible. */
.test-band {
  margin: 0;
  padding: var(--space-2) var(--space-6);
  border-bottom: 1px solid var(--color-draft);
  background: var(--color-draft-soft);
  color: var(--color-ink);
  font-weight: 600;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  min-height: 4rem;
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--color-line);
  background: var(--color-topbar);
  backdrop-filter: blur(14px);
}

.topbar__env {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  font-weight: 500;
}

.topbar__env-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--brand-lilac);
  box-shadow: 0 0 0 0.22rem var(--color-accent-soft);
}

/* Customer area: logo slot (only when a logo exists), name and the link to the public website. */
.topbar-customer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.topbar-customer__logo {
  display: flex;
  align-items: center;
  height: 2.75rem;
  max-width: 14rem;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-plate);
  box-shadow: var(--shadow-plate);
}

.topbar-customer__logo-image {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.topbar-customer__text {
  display: grid;
  gap: 0;
}

.topbar-customer__name {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
}

.topbar-customer__link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: var(--space-1);
  border-radius: var(--radius-xs);
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  text-decoration: none;
}

.topbar-customer__link:hover {
  color: var(--color-ink);
  text-decoration: underline;
}

.topbar-customer__link .icon {
  width: 0.8rem;
  height: 0.8rem;
}

.work__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-7) var(--space-6) var(--space-8);
}

/* ---------- Page title inside the shell ---------- */
.page-head__title {
  margin: 0 0 var(--space-6);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: var(--tracking-title);
}

/* Compact mobile navigation: only below the breakpoint. */
.mobile-bar {
  display: none;
}

@media (max-width: 56em) {
  .app-shell {
    display: block;
  }

  .sidebar,
  .topbar {
    display: none;
  }

  .mobile-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    min-height: 3.75rem;
    padding: var(--space-2) var(--space-4);
    border-bottom: 1px solid var(--color-sidebar-line);
    background: var(--color-sidebar);
    color: var(--color-sidebar-ink);
  }

  .mobile-bar__home {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: var(--target);
    border-radius: var(--radius-sm);
    color: inherit;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-bar__end {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }

  .mobile-bar__theme {
    display: grid;
    place-items: center;
    width: var(--target);
    height: var(--target);
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-sidebar-ink);
    cursor: pointer;
  }

  .mobile-menu {
    position: relative;
  }

  .mobile-menu__summary {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: var(--target);
    padding: 0 var(--space-3);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 0 0 1px var(--color-sidebar-line);
    font-size: var(--text-sm);
    font-weight: 500;
    list-style: none;
    cursor: pointer;
  }

  .mobile-menu__summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu__panel {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    width: min(18rem, calc(100vw - 2rem));
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-surface-raised);
    box-shadow: var(--shadow-card-lift);
    color: var(--color-ink);
  }

  .mobile-menu__customer {
    margin: 0;
    padding: var(--space-4) var(--space-4) var(--space-3);
    border-bottom: 1px solid var(--color-line);
    font-weight: 600;
    overflow-wrap: anywhere;
  }

  .mobile-menu__nav {
    display: grid;
    gap: var(--space-hair);
    padding: var(--space-2);
  }

  .mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    width: 100%;
    min-height: var(--target);
    padding: 0 var(--space-3);
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-ink);
    font: 400 var(--text-sm) / 1.2 var(--font-sans);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-menu__link:hover,
  .mobile-menu__link[aria-current="page"] {
    background: var(--color-surface-muted);
  }

  .mobile-menu__link[aria-current="page"] {
    font-weight: 600;
  }

  .mobile-menu__link[aria-current="page"]::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-pill);
    background: var(--brand-gradient);
  }

  .mobile-menu__sign-out {
    margin: 0;
    padding: 0 var(--space-2) var(--space-2);
  }

  .work__inner {
    padding: var(--space-5) var(--space-4) var(--space-7);
  }
}

@media (max-width: 40em) {
  .page-head__title {
    font-size: var(--text-page);
  }
}

/* ---------- Account page: head, grouped link cards, action cards ---------- */
.account-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.account-head .page-head__title {
  margin: 0;
}

.account-head__lede {
  max-width: 40rem;
  margin: 0;
  color: var(--color-ink-muted);
}

/* The role as a calm status, not as an alert. */
.role-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: var(--space-hair-wide) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-surface-muted);
  color: var(--color-ink);
  font-size: var(--text-xs);
  font-weight: 500;
}

.role-pill::before {
  content: "";
  flex: none;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
}

.account-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.account-group__title {
  margin: 0 0 var(--space-3);
  font-size: var(--text-lg);
}

.account-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Large text on a phone: long German words break inside the card instead of widening the page. */
.account-links > li {
  min-width: 0;
}

.account-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  height: 100%;
  min-height: var(--target);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-card);
  color: var(--color-ink);
  text-decoration: none;
}

.account-link:hover {
  background: var(--color-surface-hover);
}

.account-link:hover .account-link__title {
  text-decoration: underline;
}

.account-link__chip {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  color: var(--color-ink-muted);
}

.account-link__text {
  display: grid;
  gap: var(--space-hair);
  min-width: 0;
}

.account-link__title {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.account-link__description {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.account-link__arrow {
  color: var(--color-ink-subtle);
}

.account-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
  align-items: start;
  gap: var(--space-5);
}

.account-card {
  margin: 0;
}

/* ---------- Sign-in: route artwork on the sidebar surface, form on the canvas ---------- */
.sign-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100svh;
}

/* Single-column grids take the space they get, not the width of their longest word (large text on phones). */
.sign-in__art,
.sign-in__content,
.sign-in__customer,
.sign-in__form,
.recovery__form,
.field {
  grid-template-columns: minmax(0, 1fr);
}

.sign-in__art {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-7);
  overflow: hidden;
  border-right: 1px solid var(--color-sidebar-line);
  background: var(--color-sidebar);
  color: var(--color-sidebar-ink);
}

.sign-in__art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--color-sidebar-grid) 1px, transparent 1px), linear-gradient(90deg, var(--color-sidebar-grid) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

.sign-in__figure {
  width: 100%;
  max-width: 32rem;
  height: auto;
}

.sign-in__claim {
  max-width: 17ch;
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: var(--tracking-title);
  line-height: 1.12;
}

.sign-in__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  padding: var(--space-7);
}

.sign-in__theme-slot {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
}

.sign-in__content {
  display: grid;
  gap: var(--space-5);
  width: 100%;
  max-width: 25rem;
}

.sign-in__customer {
  display: grid;
  gap: var(--space-4);
}

/* Large text on a phone: a long word may break rather than push the page sideways. */
.sign-in__title {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: var(--text-display);
  font-weight: 500;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
}

.sign-in__intro {
  margin: 0;
  color: var(--color-ink-muted);
}

.sign-in__form {
  display: grid;
  gap: var(--space-3);
}

.sign-in__passkey {
  display: grid;
  gap: var(--space-5);
}

/* Without WebAuthn the passkey button stays hidden (passkey.js), and the "oder" divider with it. */
.sign-in__passkey:has(> .button[hidden]) {
  display: none;
}

.sign-in__divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  color: var(--color-ink-subtle);
  font-size: var(--text-xs);
}

.sign-in__divider::before,
.sign-in__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-line-strong);
}

.recovery {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-line);
}

.recovery__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--target);
  border-radius: var(--radius-xs);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.recovery__summary::-webkit-details-marker {
  display: none;
}

.recovery__summary:hover {
  color: var(--color-ink);
}

.recovery[open] .recovery__chevron {
  transform: rotate(180deg);
}

.recovery__form {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-3);
}

.figure-route__chip {
  fill: var(--color-sidebar);
  stroke: var(--color-sidebar-line);
}

.figure-route__chip--active {
  fill: var(--color-pill);
  stroke: var(--color-pill);
}

.figure-route__chip-text {
  fill: var(--color-sidebar-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.figure-route__chip-text--active {
  fill: var(--color-pill-ink);
}

.figure-route__branch {
  stroke: var(--color-sidebar-muted);
  stroke-dasharray: 3 5;
  opacity: 0.5;
}

.figure-route__dot {
  fill: var(--color-sidebar-muted);
  opacity: 0.6;
}

.figure-route__start {
  stop-color: var(--brand-lilac);
}

.figure-route__end {
  stop-color: var(--brand-lime);
}

.figure-route__arrow {
  fill: var(--brand-lime);
  transform-box: fill-box;
  transform-origin: left center;
}

.figure-route__glow {
  opacity: 0.16;
}

/* The route draws itself, the arrow arrives, then the stops fade in: once, CSS only, about 2.2 s.
   Outside this block (reduced motion) every part simply shows its end state. */
@keyframes route-draw {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes route-arrive {
  from {
    opacity: 0;
    transform: translateX(-10px) scale(0.6);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes route-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes route-soft {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .figure-route__path,
  .figure-route__glow {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: route-draw 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards;
  }

  .figure-route__arrow {
    opacity: 0;
    animation: route-arrive 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) 1.45s forwards;
  }

  .figure-route__stop {
    opacity: 0;
    transform-box: fill-box;
    animation: route-fade 0.5s ease-out forwards;
  }

  .figure-route__stop--draft {
    animation-delay: 0.35s;
  }

  .figure-route__stop--preview {
    animation-delay: 0.95s;
  }

  .figure-route__stop--published {
    animation-delay: 1.75s;
  }

  .figure-route__context {
    opacity: 0;
    animation: route-soft 1s ease-out 0.2s forwards;
  }

  /* Smooth theme switch: colours and surfaces cross-fade. */
  body,
  .sidebar,
  .mobile-bar,
  .topbar,
  .nav__link,
  .nav__chip,
  .button,
  .field__input,
  .card,
  .sign-in__art {
    transition: background-color 280ms ease, color 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
  }
}

/* ---------- Narrow screens and large text: breakpoints in em, so 200 % text reflows too ---------- */
@media (max-width: 56em) {
  .sign-in {
    grid-template-columns: minmax(0, 1fr);
  }

  .sign-in__art {
    padding: var(--space-4);
    border-right: 0;
    border-bottom: 1px solid var(--color-sidebar-line);
  }

  .sign-in__figure,
  .sign-in__claim {
    display: none;
  }

  .sign-in__panel {
    align-content: start;
    padding: var(--space-5) var(--space-4) var(--space-6);
  }

  .sign-in__theme-slot {
    position: static;
    justify-self: end;
    margin-bottom: var(--space-2);
  }
}

@media (max-width: 40em) {
  .sign-in__title {
    font-size: var(--text-display-small);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Kontor app: offline state and offline page ---------- */
.app-status[hidden] {
  display: none;
}

.button[aria-disabled="true"],
.button[aria-disabled="true"]:hover {
  background: var(--color-surface-muted);
  box-shadow: none;
  color: var(--color-ink-subtle);
  opacity: 0.6;
  cursor: not-allowed;
}

.button[data-needs-network]:disabled {
  cursor: not-allowed;
}

.offline {
  max-width: var(--width);
}

@media print {
  body {
    background: var(--print-background);
    color: var(--print-text);
  }

  .page__header,
  .button {
    display: none;
  }

  .card {
    border: 1px solid var(--print-text);
    box-shadow: none;
  }
}

/* ---------- Day view: an agenda of the day with gaps, private entries and blocks ---------- */
.daybar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
}

.daybar__date {
  flex: 1 1 auto;
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

.daybar__steps {
  display: flex;
  gap: var(--space-2);
}

.daybar__step {
  width: var(--target);
  padding: 0;
}

.view-switch {
  display: inline-flex;
  gap: var(--space-hair);
  padding: var(--space-hair);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--color-line-strong);
}

.view-switch__link {
  display: inline-flex;
  align-items: center;
  min-height: calc(var(--target) - var(--space-1));
  padding: 0 var(--space-3);
  border-radius: var(--radius-xs);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}

.view-switch__link--active {
  background: var(--color-primary-bg);
  color: var(--color-primary-text);
}

.day-summary {
  margin: 0 0 var(--space-4);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.layers {
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
}

.layers__summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target);
  color: var(--color-ink-muted);
  font-weight: 500;
  cursor: pointer;
}

.agenda-more {
  margin-bottom: var(--space-5);
}

.agenda-more__title {
  margin: 0 0 var(--space-3);
  font-size: var(--text-lg);
}

.agenda {
  display: grid;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.agenda__item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.agenda__item--appointment,
.agenda__item--request {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-card);
  font-size: var(--text-md);
}

.agenda__item--request {
  box-shadow: inset var(--space-1) 0 0 var(--color-changed), var(--shadow-card);
}

.agenda__item--free {
  outline: 1px dashed var(--color-line-strong);
  outline-offset: -1px;
  color: var(--color-ink-muted);
}

.agenda__item--private {
  background: var(--color-accent-soft);
  color: var(--color-ink);
}

.agenda__item--block {
  background: repeating-linear-gradient(135deg, var(--color-surface-muted) 0 6px, var(--color-canvas) 6px 12px);
  color: var(--color-ink-muted);
}

.agenda__time,
.agenda__range {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-mono);
  line-height: var(--leading-normal);
}

.agenda__time > span {
  display: block;
}

.agenda__to,
.agenda__date {
  color: var(--color-ink-subtle);
}

.agenda__main {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.agenda__name,
.agenda__deadline {
  margin: 0;
}

.agenda__name {
  font-weight: 600;
}

.agenda__name-link {
  color: var(--color-ink);
  text-decoration: none;
}

.agenda__name-link:hover {
  text-decoration: underline;
}

.agenda__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.agenda__status {
  color: var(--color-ink);
  font-weight: 600;
}

.agenda__deadline {
  font-size: var(--text-sm);
}

.agenda__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.agenda__label {
  min-width: 0;
}

@media (max-width: 30em) {
  .agenda__item {
    grid-template-columns: minmax(0, 1fr);
    padding-right: var(--space-4);
    padding-left: var(--space-4);
  }

  .agenda__time > span {
    display: inline;
  }

  .agenda__to::before {
    content: " – ";
  }
}

/* ---------- Appointments: overview (state line, sections, links) ---------- */

.overview {
  min-width: 0;
}

.overview__section {
  margin: 0 0 var(--space-5);
}

.overview__setup,
.overview__more {
  margin: var(--space-4) 0 var(--space-5);
}

.overview__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  overflow-wrap: anywhere;
}

/* ---------- Appointments: weekly windows (week band, day editor, window rows, picks) ---------- */
.week-band {
  margin: 0 0 var(--space-6);
  padding: var(--space-4) var(--space-5) var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-card-lift);
}

.week-band__axis,
.week-band__day {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr) 7.5rem;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

.week-band__scale {
  display: grid;
  grid-template-columns: repeat(26, minmax(0, 1fr));
  grid-column: 2;
  margin: 0 0 var(--space-2);
  padding: 0;
  color: var(--color-ink-subtle);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  list-style: none;
}

.week-band__tick {
  grid-column: span 4;
}

.week-band__tick:last-child {
  grid-column: span 2;
}

.week-band__days {
  margin: 0;
  padding: 0;
  list-style: none;
}

.week-band__day {
  padding: var(--space-2) 0;
}

.week-band__day + .week-band__day {
  border-top: 1px solid var(--color-line);
}

.week-band__day--selected {
  margin: 0 calc(-1 * var(--space-3));
  padding-right: var(--space-3);
  padding-left: var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
}

.week-band__day--selected + .week-band__day {
  border-top-color: transparent;
}

.week-band__head {
  display: grid;
  gap: var(--space-hair);
}

.week-band__name {
  font-weight: 600;
}

.week-band__times {
  color: var(--color-ink-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  overflow-wrap: anywhere;
}

.week-band__track {
  display: grid;
  grid-template-columns: repeat(26, minmax(0, 1fr));
  height: 2rem;
  border-radius: var(--radius-xs);
  background: repeating-linear-gradient(90deg, var(--color-surface-muted) 0 calc(100% / 13 - 1px), var(--color-line) calc(100% / 13 - 1px) calc(100% / 13));
}

.week-band__bar {
  grid-row: 1;
  border-radius: var(--radius-xs);
  background: var(--brand-lilac);
}

.week-band__bar--restricted {
  background: repeating-linear-gradient(135deg, var(--brand-lilac) 0 6px, var(--color-changed-soft) 6px 9px);
}

.week-band__bar--block {
  z-index: 1;
  margin: var(--space-1) 0;
  background: repeating-linear-gradient(135deg, var(--color-ink-subtle) 0 2px, transparent 2px 6px);
}

/* Bar positions: half-hour columns counted from 07:00, a fixed set so no inline style is needed (strict CSP). */
.week-band__bar--from-0 {
  grid-column-start: 1;
}

.week-band__bar--from-1 {
  grid-column-start: 2;
}

.week-band__bar--from-2 {
  grid-column-start: 3;
}

.week-band__bar--from-3 {
  grid-column-start: 4;
}

.week-band__bar--from-4 {
  grid-column-start: 5;
}

.week-band__bar--from-5 {
  grid-column-start: 6;
}

.week-band__bar--from-6 {
  grid-column-start: 7;
}

.week-band__bar--from-7 {
  grid-column-start: 8;
}

.week-band__bar--from-8 {
  grid-column-start: 9;
}

.week-band__bar--from-9 {
  grid-column-start: 10;
}

.week-band__bar--from-10 {
  grid-column-start: 11;
}

.week-band__bar--from-11 {
  grid-column-start: 12;
}

.week-band__bar--from-12 {
  grid-column-start: 13;
}

.week-band__bar--from-13 {
  grid-column-start: 14;
}

.week-band__bar--from-14 {
  grid-column-start: 15;
}

.week-band__bar--from-15 {
  grid-column-start: 16;
}

.week-band__bar--from-16 {
  grid-column-start: 17;
}

.week-band__bar--from-17 {
  grid-column-start: 18;
}

.week-band__bar--from-18 {
  grid-column-start: 19;
}

.week-band__bar--from-19 {
  grid-column-start: 20;
}

.week-band__bar--from-20 {
  grid-column-start: 21;
}

.week-band__bar--from-21 {
  grid-column-start: 22;
}

.week-band__bar--from-22 {
  grid-column-start: 23;
}

.week-band__bar--from-23 {
  grid-column-start: 24;
}

.week-band__bar--from-24 {
  grid-column-start: 25;
}

.week-band__bar--from-25 {
  grid-column-start: 26;
}

.week-band__bar--to-1 {
  grid-column-end: 2;
}

.week-band__bar--to-2 {
  grid-column-end: 3;
}

.week-band__bar--to-3 {
  grid-column-end: 4;
}

.week-band__bar--to-4 {
  grid-column-end: 5;
}

.week-band__bar--to-5 {
  grid-column-end: 6;
}

.week-band__bar--to-6 {
  grid-column-end: 7;
}

.week-band__bar--to-7 {
  grid-column-end: 8;
}

.week-band__bar--to-8 {
  grid-column-end: 9;
}

.week-band__bar--to-9 {
  grid-column-end: 10;
}

.week-band__bar--to-10 {
  grid-column-end: 11;
}

.week-band__bar--to-11 {
  grid-column-end: 12;
}

.week-band__bar--to-12 {
  grid-column-end: 13;
}

.week-band__bar--to-13 {
  grid-column-end: 14;
}

.week-band__bar--to-14 {
  grid-column-end: 15;
}

.week-band__bar--to-15 {
  grid-column-end: 16;
}

.week-band__bar--to-16 {
  grid-column-end: 17;
}

.week-band__bar--to-17 {
  grid-column-end: 18;
}

.week-band__bar--to-18 {
  grid-column-end: 19;
}

.week-band__bar--to-19 {
  grid-column-end: 20;
}

.week-band__bar--to-20 {
  grid-column-end: 21;
}

.week-band__bar--to-21 {
  grid-column-end: 22;
}

.week-band__bar--to-22 {
  grid-column-end: 23;
}

.week-band__bar--to-23 {
  grid-column-end: 24;
}

.week-band__bar--to-24 {
  grid-column-end: 25;
}

.week-band__bar--to-25 {
  grid-column-end: 26;
}

.week-band__bar--to-26 {
  grid-column-end: 27;
}

.week-band__edit {
  justify-self: end;
}

.week-band__state {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.week-band__empty {
  margin: var(--space-3) 0 0;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.week-band__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-3) 0 0;
  padding: var(--space-3) 0 0;
  border-top: 1px solid var(--color-line);
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  list-style: none;
}

.week-band__swatch {
  display: inline-block;
  width: 1rem;
  height: 0.625rem;
  margin-right: var(--space-2);
  border-radius: var(--radius-xs);
  background: var(--brand-lilac);
  vertical-align: middle;
}

.week-band__swatch--restricted {
  background: repeating-linear-gradient(135deg, var(--brand-lilac) 0 6px, var(--color-changed-soft) 6px 9px);
}

.week-band__swatch--block {
  background: repeating-linear-gradient(135deg, var(--color-ink-subtle) 0 2px, transparent 2px 6px);
}

.day-editor {
  display: grid;
  gap: var(--space-4);
  max-width: var(--width);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-card);
}

.day-editor__title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 600;
}

.day-editor__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.window-row {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
  margin: 0;
  padding: var(--space-4);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  box-shadow: inset 0 0 0 1px var(--color-line);
}

.window-row--new {
  background: transparent;
  outline: 1px dashed var(--color-line-strong);
  outline-offset: -1px;
  box-shadow: none;
}

.window-row--invalid {
  box-shadow: inset 0 0 0 2px var(--color-crit);
}

.window-row__legend {
  float: left;
  width: 100%;
  margin-bottom: var(--space-1);
  padding: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.window-row__times {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--space-3);
}

.window-row__time {
  width: 8rem;
}

.window-row__remove {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target);
  margin-left: auto;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.window-row__remove .field__checkbox {
  width: 1.25rem;
  height: 1.25rem;
}

/* Small pickable chips: a native checkbox with its label, the label carries the look. */
.pick {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.pick__legend {
  width: 100%;
  margin-bottom: var(--space-2);
  padding: 0;
  font-size: var(--text-sm);
  font-weight: 500;
}

.pick__hint {
  flex-basis: 100%;
  margin: 0;
  color: var(--color-ink-subtle);
  font-size: var(--text-xs);
}

.pick__option {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target);
  padding: 0 var(--space-3) 0 var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-button);
  font-size: var(--text-sm);
  cursor: pointer;
}

.pick__option:has(input:checked) {
  background: var(--color-accent-soft);
  box-shadow: inset 0 0 0 1.5px var(--color-accent);
  font-weight: 600;
}

.pick__option:has(input:focus-visible) {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: var(--focus-offset);
}

.pick__option input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--color-accent);
}

@media (max-width: 52rem) {
  .week-band__axis {
    display: none;
  }

  .week-band__day {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .week-band__track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 36rem) {
  .week-band,
  .day-editor {
    padding: var(--space-4);
  }
}


/* ---------- Appointments: blocks (list in groups, form page, weekly detail) ---------- */
.block-list {
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.block-list__group {
  margin-bottom: var(--space-5);
}

.block-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-line);
}

.block-list__text {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.block-list__time {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.block-list__meta {
  display: block;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.block-detail__time {
  margin: 0 0 var(--space-1);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.block-detail__meta {
  margin: 0 0 var(--space-3);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.block-list__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.block-list__past {
  margin-bottom: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
}

.block-list__summary {
  display: flex;
  align-items: center;
  min-height: var(--target);
  border-radius: var(--radius-xs);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
}

.block-list__summary:hover {
  color: var(--color-ink);
}

.block-form {
  align-items: stretch;
  gap: var(--space-4);
  max-width: 40rem;
}

.block-form__group {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
  margin: 0;
  padding: var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.block-form__legend {
  padding: 0 var(--space-2);
  font-weight: 600;
}

.block-form__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-3);
}

.block-form__card {
  display: grid;
  grid-template-columns: var(--target) 1fr;
  align-items: center;
  column-gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  cursor: pointer;
}

.block-form__card:has(.block-form__radio:checked) {
  border-width: 2px;
  padding: calc(var(--space-3) - 1px);
}

.block-form__card:focus-within {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: var(--focus-offset);
}

.block-form__radio {
  grid-row: span 2;
  width: var(--target);
  height: var(--target);
  margin: 0;
  accent-color: var(--color-accent);
}

.block-form__card-title {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.block-form__card-text {
  grid-column: 2;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

/* ---------- Appointments: rules page (lead time, period, step, cancellation deadline) ---------- */

.rules-form {
  gap: var(--space-4);
  max-width: 40rem;
}

.rules-form__row {
  display: grid;
  gap: var(--space-2);
}
