/* ============================================================================
   GATE — Strider's design language. One source of truth.

   Measured off the founder's reference card (5 Dec 2026), pixel-sampled, and
   approved as the look of every Strider app. Nothing here is a guess: the five
   base values are the reference's own pixels.

     page      #d5d5c7
     surface   #e1e2d4
     hairline  #cfd0c3
     ink       #181816
     muted     #797a72

   The rules the language carries:
     - no shadows anywhere, ever. Depth is the hairline and the air.
     - one outlined pill is the only accent device: thin border, small icon,
       small label, no fill.
     - generous padding inside a card, generous space between blocks, left
       aligned throughout.
     - corners are a small radius: not pill-shaped surfaces, not sharp.
     - type: near-black heading with real weight, one grey step down for the
       subtitle, comfortable line height. No gradients, no glass, no glow.

   Accessibility, measured rather than assumed (WCAG 2.1):
     ink #181816 on surface #e1e2d4      13.57:1
     muted #797a72 on surface #e1e2d4     3.31:1  -> large text only
     muted-strong #575850 on surface      5.50:1  -> small secondary text
     hairline #cfd0c3 on surface          1.19:1  -> decorative edges only
     control #7c7d72 on surface           3.18:1  -> input boundaries (1.4.11)

   Consumers map their own semantic tokens onto the --gate-* values (see
   README.md). Do not copy the hex values into an app: import this file.
   ========================================================================== */

:root {
  /* ---- palette, light (the reference) ---------------------------------- */
  --gate-page: #d5d5c7;
  --gate-surface: #e1e2d4;
  --gate-surface-quiet: #dcdccd;   /* a fill inside a surface, one step down */
  --gate-surface-raised: #e9eadc;  /* popovers and menus, one step up */
  --gate-hairline: #cfd0c3;        /* card edges, table rules, dividers */
  --gate-hairline-strong: #b9baac; /* the pill's border, focus rings */
  --gate-control: #7c7d72;         /* input boundaries: 3.18:1 */
  --gate-ink: #181816;
  --gate-ink-muted: #797a72;       /* 3.31:1: large and secondary text only */
  --gate-ink-muted-strong: #575850;/* 5.50:1 on surface, 4.86:1 on page */
  --gate-ink-inverse: #e9e9dd;     /* type on an ink fill */
  --gate-danger: #8c2f24;
  --gate-good: #2c5f45;
  --gate-warn: #7a5312;

  /* HSL channels, for consumers that hold colours as Tailwind triples. */
  --gate-page-hsl: 60 14% 81%;
  --gate-surface-hsl: 64 19% 86%;
  --gate-surface-quiet-hsl: 60 13% 83%;
  --gate-surface-raised-hsl: 64 22% 89%;
  --gate-hairline-hsl: 65 12% 79%;
  --gate-control-hsl: 65 5% 47%;
  --gate-ink-hsl: 60 4% 9%;
  --gate-ink-muted-hsl: 68 3% 46%;
  --gate-ink-muted-strong-hsl: 67 5% 33%;

  /* ---- type ------------------------------------------------------------
     One family, the system UI face (SF on Apple, Segoe on Windows, Roboto on
     Android, Inter as the cross-platform fallback, Noto Sans Arabic for RTL).
     Sizes step in a short scale; weight and colour carry the hierarchy. */
  --gate-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI',
    'Inter', 'Noto Sans Arabic', system-ui, sans-serif;
  --gate-font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display',
    'Segoe UI', 'Inter', 'Noto Sans Arabic', system-ui, sans-serif;
  --gate-font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

  --gate-fs-caption: 0.6875rem; /* 11px, uppercase eyebrows and table heads */
  --gate-fs-small: 0.8125rem;   /* 13px, dense rows, pills */
  --gate-fs-body: 0.9375rem;    /* 15px, the default */
  --gate-fs-lead: 1.0625rem;    /* 17px, the subtitle under a heading */
  --gate-fs-h3: 1.25rem;        /* 20px */
  --gate-fs-h2: 1.5rem;         /* 24px */
  --gate-fs-h1: 2rem;           /* 32px */
  --gate-fs-display: 2.75rem;   /* 44px, landing and empty heroes only */

  --gate-lh-tight: 1.15;
  --gate-lh-heading: 1.3;
  --gate-lh-body: 1.55;

  --gate-fw-regular: 400;
  --gate-fw-medium: 500;
  --gate-fw-strong: 600;

  --gate-tracking-eyebrow: 0.08em;
  --gate-tracking-heading: -0.01em;

  /* ---- space ------------------------------------------------------------
     A 4px base. Cards breathe inside (24-28px), blocks breathe between
     (24-40px), rows stay dense (10-14px). */
  --gate-space-1: 4px;
  --gate-space-2: 8px;
  --gate-space-3: 12px;
  --gate-space-4: 16px;
  --gate-space-5: 20px;
  --gate-space-6: 24px;
  --gate-space-7: 28px;
  --gate-space-8: 32px;
  --gate-space-10: 40px;
  --gate-space-12: 48px;
  --gate-space-16: 64px;
  --gate-space-20: 80px;

  /* ---- shape ------------------------------------------------------------
     Small radius. A surface is never a pill; a pill is always a pill. */
  --gate-radius-card: 8px;
  --gate-radius-control: 6px;
  --gate-radius-pill: 999px;

  /* ---- line -------------------------------------------------------------*/
  --gate-line: 1px;
  --gate-focus: 2px;
}

/* ---- palette, dark ------------------------------------------------------
   The same language after dark: the ink ground, the paper type, hairlines
   that read as edges, no colour introduced. Every consumer gets this by
   putting .dark (or [data-gate='dark']) on <html>. */
.dark,
[data-gate='dark'] {
  --gate-page: #14150f;
  --gate-surface: #1c1d17;
  --gate-surface-quiet: #22231c;
  --gate-surface-raised: #24251e;
  --gate-hairline: #2e2f27;
  --gate-hairline-strong: #45463c;
  --gate-control: #6f7065;
  --gate-ink: #eceae0;
  --gate-ink-muted: #a0a196;
  --gate-ink-muted-strong: #b9baae;
  --gate-ink-inverse: #14150f;
  --gate-danger: #e39a8c;
  --gate-good: #8fc4a6;
  --gate-warn: #d9b26a;

  --gate-page-hsl: 70 17% 7%;
  --gate-surface-hsl: 70 10% 10%;
  --gate-surface-quiet-hsl: 67 10% 12%;
  --gate-surface-raised-hsl: 66 9% 13%;
  --gate-hairline-hsl: 66 8% 17%;
  --gate-control-hsl: 63 5% 42%;
  --gate-ink-hsl: 55 22% 90%;
  --gate-ink-muted-hsl: 63 5% 61%;
  --gate-ink-muted-strong-hsl: 63 6% 70%;
}

/* ============================================================================
   The global rules. Two lines that make the language hold everywhere,
   including in components nobody restyled by hand.
   ========================================================================== */

/* 1. No shadows anywhere, ever. Depth is the hairline and the air. */
*,
*::before,
*::after {
  box-shadow: none !important;
}

/* 2. Focus stays visible without a shadow: a 2px ink outline, offset. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
:where([role='button'], [role='tab'], [role='menuitem']):focus-visible {
  outline: var(--gate-focus) solid var(--gate-ink);
  outline-offset: 2px;
  border-radius: var(--gate-radius-control);
}

/* Selection in the ink, not the browser's blue. */
::selection {
  background: var(--gate-ink);
  color: var(--gate-ink-inverse);
}

/* ============================================================================
   The component layer. Small, flat, and complete enough that a screen is
   built from these and not from one-off classes.
   ========================================================================== */

/* ---- card --------------------------------------------------------------- */
.gate-card {
  background: var(--gate-surface);
  border: var(--gate-line) solid var(--gate-hairline);
  border-radius: var(--gate-radius-card);
  padding: var(--gate-space-7) var(--gate-space-8);
  color: var(--gate-ink);
  box-shadow: none;
}
.gate-card--flush { padding: 0; }
.gate-card--quiet { background: var(--gate-surface-quiet); }
.gate-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gate-space-4);
  margin-block-end: var(--gate-space-5);
}
.gate-card__title {
  margin: 0;
  font-family: var(--gate-font-display);
  font-size: var(--gate-fs-h3);
  font-weight: var(--gate-fw-strong);
  line-height: var(--gate-lh-heading);
  letter-spacing: var(--gate-tracking-heading);
  color: var(--gate-ink);
}
.gate-card__sub {
  margin: var(--gate-space-2) 0 0;
  font-size: var(--gate-fs-lead);
  line-height: var(--gate-lh-body);
  color: var(--gate-ink-muted);
}
.gate-card__foot {
  margin-block-start: var(--gate-space-5);
  padding-block-start: var(--gate-space-4);
  border-block-start: var(--gate-line) solid var(--gate-hairline);
  color: var(--gate-ink-muted-strong);
  font-size: var(--gate-fs-small);
}

/* ---- the outlined pill (the only accent device) -------------------------- */
.gate-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--gate-space-2);
  padding: 5px 11px 5px 9px;
  border: var(--gate-line) solid var(--gate-hairline-strong);
  border-radius: var(--gate-radius-pill);
  background: transparent;
  color: var(--gate-ink);
  font-size: var(--gate-fs-small);
  font-weight: var(--gate-fw-medium);
  line-height: 1.2;
  white-space: nowrap;
}
.gate-pill svg,
.gate-pill .gate-pill__icon {
  inline-size: 14px;
  block-size: 14px;
  flex: none;
  color: var(--gate-ink);
}
.gate-pill--muted { color: var(--gate-ink-muted-strong); border-color: var(--gate-hairline); }
.gate-pill--ink { border-color: var(--gate-ink); }

/* ---- buttons ------------------------------------------------------------- */
.gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gate-space-2);
  padding: 9px 16px;
  border: var(--gate-line) solid var(--gate-hairline-strong);
  border-radius: var(--gate-radius-control);
  background: transparent;
  color: var(--gate-ink);
  font-family: var(--gate-font);
  font-size: var(--gate-fs-body);
  font-weight: var(--gate-fw-medium);
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.gate-btn:hover { background: var(--gate-surface-quiet); border-color: var(--gate-ink); }
.gate-btn:active { background: var(--gate-surface); }
.gate-btn[disabled],
.gate-btn[aria-disabled='true'] {
  color: var(--gate-ink-muted);
  border-color: var(--gate-hairline);
  cursor: not-allowed;
  background: transparent;
}
/* The one filled control in the language is ink, not a colour. */
.gate-btn--primary {
  background: var(--gate-ink);
  border-color: var(--gate-ink);
  color: var(--gate-ink-inverse);
}
.gate-btn--primary:hover { background: var(--gate-ink); border-color: var(--gate-ink); opacity: 0.92; }
.gate-btn--quiet { border-color: transparent; padding-inline: 8px; }
.gate-btn--quiet:hover { background: var(--gate-surface-quiet); border-color: transparent; }
.gate-btn--danger { color: var(--gate-danger); border-color: var(--gate-danger); }
.gate-btn--sm { padding: 6px 10px; font-size: var(--gate-fs-small); }
.gate-btn svg { inline-size: 16px; block-size: 16px; flex: none; }

/* ---- fields -------------------------------------------------------------- */
.gate-field { display: grid; gap: var(--gate-space-2); }
.gate-label {
  font-size: var(--gate-fs-small);
  font-weight: var(--gate-fw-medium);
  color: var(--gate-ink);
}
.gate-hint {
  font-size: var(--gate-fs-small);
  color: var(--gate-ink-muted-strong);
}
.gate-input,
.gate-select,
.gate-textarea {
  inline-size: 100%;
  padding: 9px 12px;
  border: var(--gate-line) solid var(--gate-control);
  border-radius: var(--gate-radius-control);
  background: var(--gate-surface);
  color: var(--gate-ink);
  font-family: var(--gate-font);
  font-size: var(--gate-fs-body);
  line-height: 1.4;
}
.gate-input::placeholder,
.gate-textarea::placeholder { color: var(--gate-ink-muted); }
.gate-input:focus,
.gate-select:focus,
.gate-textarea:focus {
  outline: none;
  border-color: var(--gate-ink);
  box-shadow: none;
}
.gate-input[aria-invalid='true'] { border-color: var(--gate-danger); }
.gate-error { font-size: var(--gate-fs-small); color: var(--gate-danger); }

/* ---- table (dense, the CRM's working surface) ---------------------------- */
.gate-table { inline-size: 100%; border-collapse: collapse; font-size: var(--gate-fs-small); }
.gate-table caption {
  text-align: start;
  padding-block-end: var(--gate-space-3);
  color: var(--gate-ink-muted-strong);
  font-size: var(--gate-fs-small);
}
.gate-table th {
  text-align: start;
  padding: 8px 12px;
  font-size: var(--gate-fs-caption);
  font-weight: var(--gate-fw-strong);
  letter-spacing: var(--gate-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gate-ink-muted-strong);
  border-block-end: var(--gate-line) solid var(--gate-hairline);
  white-space: nowrap;
}
.gate-table td {
  padding: 10px 12px;
  border-block-end: var(--gate-line) solid var(--gate-hairline);
  color: var(--gate-ink);
  vertical-align: middle;
}
.gate-table tbody tr:hover td { background: var(--gate-surface-quiet); }
.gate-table td.is-muted { color: var(--gate-ink-muted-strong); }
.gate-table td.is-num { text-align: end; font-variant-numeric: tabular-nums; }

/* ---- tabs ---------------------------------------------------------------- */
.gate-tabs {
  display: flex;
  align-items: center;
  gap: var(--gate-space-5);
  border-block-end: var(--gate-line) solid var(--gate-hairline);
}
.gate-tab {
  position: relative;
  padding: 10px 2px;
  border: 0;
  background: transparent;
  color: var(--gate-ink-muted-strong);
  font-size: var(--gate-fs-body);
  font-weight: var(--gate-fw-medium);
  cursor: pointer;
}
.gate-tab:hover { color: var(--gate-ink); }
.gate-tab[aria-selected='true'] {
  color: var(--gate-ink);
  font-weight: var(--gate-fw-strong);
}
.gate-tab[aria-selected='true']::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  block-size: 2px;
  background: var(--gate-ink);
}

/* ---- empty state --------------------------------------------------------- */
.gate-empty {
  display: grid;
  justify-items: start;
  gap: var(--gate-space-3);
  padding: var(--gate-space-10) var(--gate-space-8);
  border: var(--gate-line) solid var(--gate-hairline);
  border-radius: var(--gate-radius-card);
  background: var(--gate-surface);
  color: var(--gate-ink);
}
.gate-empty__icon {
  display: grid;
  place-items: center;
  inline-size: 32px;
  block-size: 32px;
  border: var(--gate-line) solid var(--gate-hairline-strong);
  border-radius: var(--gate-radius-control);
  color: var(--gate-ink);
}
.gate-empty__title { margin: 0; font-size: var(--gate-fs-h3); font-weight: var(--gate-fw-strong); }
.gate-empty__body { margin: 0; max-inline-size: 52ch; color: var(--gate-ink-muted-strong); font-size: var(--gate-fs-body); line-height: var(--gate-lh-body); }

/* ---- page header --------------------------------------------------------- */
.gate-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gate-space-4);
  padding-block-end: var(--gate-space-4);
  margin-block-end: var(--gate-space-6);
  border-block-end: var(--gate-line) solid var(--gate-hairline);
}
.gate-header__title {
  margin: 0;
  font-family: var(--gate-font-display);
  font-size: var(--gate-fs-h1);
  font-weight: var(--gate-fw-strong);
  line-height: var(--gate-lh-tight);
  letter-spacing: var(--gate-tracking-heading);
  color: var(--gate-ink);
}
.gate-header__sub {
  margin: var(--gate-space-2) 0 0;
  font-size: var(--gate-fs-lead);
  color: var(--gate-ink-muted);
  line-height: var(--gate-lh-body);
}
.gate-header__actions { display: flex; align-items: center; gap: var(--gate-space-2); }

/* ---- small parts --------------------------------------------------------- */
.gate-eyebrow {
  font-size: var(--gate-fs-caption);
  font-weight: var(--gate-fw-strong);
  letter-spacing: var(--gate-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gate-ink-muted-strong);
}
.gate-muted { color: var(--gate-ink-muted-strong); }
.gate-muted-large { color: var(--gate-ink-muted); font-size: var(--gate-fs-lead); }
.gate-rule { block-size: var(--gate-line); background: var(--gate-hairline); border: 0; }
.gate-stack { display: grid; gap: var(--gate-space-6); }
.gate-row { display: flex; align-items: center; gap: var(--gate-space-3); }
.gate-badge-dot {
  inline-size: 6px; block-size: 6px; border-radius: 999px;
  background: var(--gate-ink); flex: none;
}
.gate-kv { display: grid; gap: var(--gate-space-1); }
.gate-kv__k { font-size: var(--gate-fs-caption); text-transform: uppercase; letter-spacing: var(--gate-tracking-eyebrow); color: var(--gate-ink-muted-strong); }
.gate-kv__v { font-size: var(--gate-fs-h3); font-weight: var(--gate-fw-strong); color: var(--gate-ink); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .gate-btn { transition: none; }
}

/* ============================================================================
   CLICK-FIRST PRIMITIVES (founder requirement, 5 Dec 2026).

   "There is no text to be written anywhere, the whole thing is clickable and
   navigable, and copying, pasting and writing are to be completely
   eliminated." Choice over input: segmented controls, chip pickers, steppers,
   option grids, inline selects and switches replace free-text fields. A text
   field survives only where a human-authored string is unavoidable (a name, a
   message to a client), and then it is the smallest part of the flow.

   Each primitive is a control a finger can hit and a screen reader can name:
   native <button>/<input type=radio> semantics, one hairline, no shadow.
   ========================================================================== */

/* ---- segmented control: one choice, all options visible ------------------ */
.gate-segmented {
  display: inline-flex;
  align-items: stretch;
  padding: 2px;
  border: var(--gate-line) solid var(--gate-hairline);
  border-radius: var(--gate-radius-control);
  background: var(--gate-surface-quiet);
  gap: 2px;
}
.gate-segmented__item {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gate-ink-muted-strong);
  font: inherit;
  font-size: var(--gate-fs-small);
  font-weight: var(--gate-fw-medium);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.gate-segmented__item:hover { color: var(--gate-ink); }
.gate-segmented__item[aria-pressed='true'],
.gate-segmented__item[aria-selected='true'] {
  background: var(--gate-surface);
  color: var(--gate-ink);
  font-weight: var(--gate-fw-strong);
  box-shadow: inset 0 0 0 1px var(--gate-hairline);
}

/* ---- chip picker: many choices, any number taken ------------------------- */
.gate-chips { display: flex; flex-wrap: wrap; gap: var(--gate-space-2); }
.gate-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: var(--gate-space-2);
  padding: 6px 12px;
  border: var(--gate-line) solid var(--gate-hairline-strong);
  border-radius: var(--gate-radius-pill);
  background: transparent;
  color: var(--gate-ink);
  font: inherit;
  font-size: var(--gate-fs-small);
  font-weight: var(--gate-fw-medium);
  cursor: pointer;
}
.gate-chip:hover { border-color: var(--gate-ink); }
.gate-chip[aria-pressed='true'] {
  background: var(--gate-ink);
  border-color: var(--gate-ink);
  color: var(--gate-ink-inverse);
}
.gate-chip[aria-pressed='true'] .gate-chip__tick { opacity: 1; }
.gate-chip__tick { inline-size: 12px; block-size: 12px; opacity: 0; }

/* ---- stepper: a number chosen by tapping, never typed -------------------- */
.gate-stepper {
  display: inline-flex;
  align-items: center;
  border: var(--gate-line) solid var(--gate-control);
  border-radius: var(--gate-radius-control);
  background: var(--gate-surface);
  overflow: hidden;
}
.gate-stepper__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gate-ink);
  font: inherit;
  font-size: var(--gate-fs-body);
  inline-size: 34px;
  block-size: 34px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.gate-stepper__btn:hover { background: var(--gate-surface-quiet); }
.gate-stepper__value {
  min-inline-size: 56px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: var(--gate-fs-body);
  color: var(--gate-ink);
  border-inline: var(--gate-line) solid var(--gate-hairline);
  padding-block: 7px;
}

/* ---- option grid: a small set of named choices, each a card -------------- */
.gate-options { display: grid; gap: var(--gate-space-2); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.gate-option {
  appearance: none;
  text-align: start;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: var(--gate-line) solid var(--gate-hairline-strong);
  border-radius: var(--gate-radius-control);
  background: var(--gate-surface);
  color: var(--gate-ink);
  font: inherit;
  cursor: pointer;
}
.gate-option:hover { border-color: var(--gate-ink); }
.gate-option[aria-checked='true'],
.gate-option[aria-pressed='true'] {
  border-color: var(--gate-ink);
  box-shadow: inset 0 0 0 1px var(--gate-ink);
}
.gate-option__label { font-size: var(--gate-fs-body); font-weight: var(--gate-fw-medium); }
.gate-option__hint { font-size: var(--gate-fs-small); color: var(--gate-ink-muted-strong); }

/* ---- inline select: a value that is itself a menu ------------------------ */
.gate-inline-select {
  appearance: none;
  border: 0;
  border-block-end: var(--gate-line) dashed var(--gate-hairline-strong);
  border-radius: 0;
  background: transparent;
  color: var(--gate-ink);
  font: inherit;
  font-size: var(--gate-fs-small);
  font-weight: var(--gate-fw-medium);
  padding: 1px 18px 1px 2px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 5px) 55%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
.gate-inline-select:hover { border-block-end-color: var(--gate-ink); }

/* ---- switch: one boolean, a tap ------------------------------------------ */
.gate-switch {
  appearance: none;
  position: relative;
  inline-size: 36px;
  block-size: 20px;
  border: var(--gate-line) solid var(--gate-control);
  border-radius: var(--gate-radius-pill);
  background: var(--gate-surface);
  cursor: pointer;
  flex: none;
}
.gate-switch::after {
  content: '';
  position: absolute;
  inset-block-start: 2px;
  inset-inline-start: 2px;
  inline-size: 14px;
  block-size: 14px;
  border-radius: var(--gate-radius-pill);
  background: var(--gate-ink-muted-strong);
  transition: transform 120ms ease, background-color 120ms ease;
}
.gate-switch:checked { background: var(--gate-ink); border-color: var(--gate-ink); }
.gate-switch:checked::after { transform: translateX(16px); background: var(--gate-ink-inverse); }

/* ---- clickable row: every row leads somewhere ---------------------------- */
.gate-rowlink {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--gate-space-3);
  inline-size: 100%;
  padding: 10px 12px;
  border: 0;
  border-block-end: var(--gate-line) solid var(--gate-hairline);
  background: transparent;
  color: var(--gate-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.gate-rowlink:hover { background: var(--gate-surface-quiet); }
.gate-rowlink__chevron { color: var(--gate-ink-muted-strong); }

/* ---- candidate picker: the system proposes, he taps one ------------------ */
.gate-candidates { display: grid; gap: var(--gate-space-1); }
.gate-candidate {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gate-space-3);
  padding: 8px 12px;
  border: var(--gate-line) solid var(--gate-hairline);
  border-radius: var(--gate-radius-control);
  background: var(--gate-surface);
  color: var(--gate-ink);
  font: inherit;
  font-size: var(--gate-fs-small);
  cursor: pointer;
  text-align: start;
}
.gate-candidate:hover { border-color: var(--gate-ink); }
.gate-candidate__why { color: var(--gate-ink-muted-strong); font-size: var(--gate-fs-caption); }
