/* ============================================================
   GymXYZ — the entry: login, forgotten password, reset
   ------------------------------------------------------------
   Ported from the hand-off (design/app/auth.css, §1). Same rule
   as the app: no brand colour written in a screen. The split
   panel carries its own small token set so each white-label
   theme keeps its register — ink navy, graphite, blush — and a
   customer never sees somebody else's blue.

   The panel is NOT "the dark side". Leyssa's is light, which is
   why every value below comes through --gx-a-* rather than
   through a neutral ramp.
   ============================================================ */

:root {
  --gx-a-panel: linear-gradient(160deg, #0C2236 0%, #12304A 62%, #0C2236 100%);
  --gx-a-fg: #fff;
  --gx-a-dim: rgba(255, 255, 255, .68);
  --gx-a-faint: rgba(255, 255, 255, .42);
  --gx-a-accent: var(--azure-400);
  --gx-a-dots: rgba(0, 171, 252, .26);
  --gx-a-hair: rgba(255, 255, 255, .14);
}

[data-theme="teamtrainers"] {
  --gx-a-panel: linear-gradient(160deg, #1F1F23 0%, #101013 58%, #000 100%);
  --gx-a-fg: #fff;
  --gx-a-dim: rgba(255, 255, 255, .66);
  --gx-a-faint: rgba(255, 255, 255, .38);
  --gx-a-accent: #fff;
  --gx-a-dots: rgba(255, 255, 255, .16);
  --gx-a-hair: rgba(255, 255, 255, .13);
}

[data-theme="leyssa"] {
  --gx-a-panel: linear-gradient(165deg, #FDF3F5 0%, #F6DEE5 52%, #E9EFE0 100%);
  --gx-a-fg: #4A2A38;
  --gx-a-dim: rgba(74, 42, 56, .72);
  --gx-a-faint: rgba(74, 42, 56, .5);
  --gx-a-accent: var(--azure-600);
  --gx-a-dots: rgba(203, 91, 116, .22);
  --gx-a-hair: rgba(122, 68, 86, .14);
}

/* ---------- The two columns ---------- */

.gx-auth {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  height: 100vh;
  overflow: hidden;
}

.gx-auth-panel {
  position: relative;
  overflow: hidden;
  background: var(--gx-a-panel);
  color: var(--gx-a-fg);
  padding: 44px 52px 40px;
  display: flex;
  flex-direction: column;
}

/* The node-graph motif, kept discreet. */
.gx-auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--gx-a-dots) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .55;
  pointer-events: none;
}

.gx-auth-panel::after {
  content: "";
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  right: -16vmax;
  top: -14vmax;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gx-a-dots) 0%, transparent 66%);
  opacity: .85;
  pointer-events: none;
}

.gx-auth-panel > * { position: relative; z-index: 1; }
.gx-auth-panel .gx-brand { padding: 0; }
.gx-auth-panel .gx-wordmark { color: var(--gx-a-fg); }
.gx-auth-panel .gx-wordmark .accent { color: var(--gx-a-accent); }
.gx-auth-panel .gx-brand .mark { color: var(--gx-a-fg); }

.gx-a-mid {
  margin: auto 0;
  max-width: 520px;
}

.gx-a-mid h1 {
  font-family: var(--font-display, var(--font-sans));
  font-weight: var(--display-weight, 700);
  letter-spacing: var(--display-ls, 0);
  font-size: calc(clamp(30px, 3.2vw, 44px) * var(--display-title-scale, 1));
  line-height: 1.08;
  margin: 0 0 16px;
  color: var(--gx-a-fg);
  text-wrap: pretty;
}

.gx-a-mid p {
  margin: 0;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--gx-a-dim);
  max-width: 26em;
  text-wrap: pretty;
}

.gx-a-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.gx-a-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gx-a-hair);
  color: var(--gx-a-dim);
  font-size: var(--text-sm);
}

.gx-a-pfoot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xs);
  color: var(--gx-a-faint);
}

.gx-a-pfoot .sep { width: 1px; height: 12px; background: var(--gx-a-hair); }

.gx-auth-side {
  background: var(--surface-page);
  display: grid;
  place-items: center;
  padding: 40px 32px;
  overflow-y: auto;
}

.gx-a-form {
  width: 100%;
  max-width: 392px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

/* ---------- Type and links ---------- */

.gx-a-h {
  font-family: var(--font-display, var(--font-sans));
  font-weight: var(--display-weight, 700);
  letter-spacing: var(--display-ls, 0);
  font-size: calc(var(--text-3xl) * var(--display-title-scale, 1));
  line-height: 1.15;
  color: var(--text-strong);
  margin: 0;
}

.gx-a-sub {
  margin: 6px 0 0;
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: 1.5;
}

.gx-a-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.gx-link {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  text-decoration: none;
}

.gx-link:hover { color: var(--azure-700); text-decoration: underline; }
.gx-link.muted { color: var(--text-muted); font-weight: var(--weight-medium); }
.gx-link.muted:hover { color: var(--text-strong); }

.gx-a-hr {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-xs);
  color: var(--text-subtle);
  margin: 2px 0;
}

.gx-a-hr::before,
.gx-a-hr::after { content: ""; height: 1px; flex: 1; background: var(--border-subtle); }

.gx-a-tail {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  margin: 0;
}

.gx-a-help {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  text-align: center;
  margin: 0;
}

.gx-a-help a { color: inherit; }

/* ---------- Fields ---------- */

.gx-a-field { display: flex; flex-direction: column; gap: 6px; }

.gx-a-field > label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
}

/* The eye sits over the control, so the wrapper is the positioning context and
   the field below it must keep its own height — hence bottom:0 rather than a
   vertical centring that would drift once a validation message appears. */
.gx-a-pw { position: relative; display: flex; align-items: flex-end; }
.gx-a-pw > .gx-a-field { flex: 1; min-width: 0; }

.gx-a-eye {
  position: absolute;
  right: 8px;
  bottom: 0;
  height: var(--control-md);
  width: 36px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--text-subtle);
  cursor: pointer;
}

.gx-a-eye:hover { color: var(--text-body); }

/* A password field with a hint or an error underneath: the eye would otherwise
   sit on the message instead of the control. */
.gx-a-pw.has-note .gx-a-eye { bottom: auto; top: 22px; }

.gx-a-strength { display: flex; gap: 5px; margin-top: 2px; }
.gx-a-strength i { height: 4px; flex: 1; border-radius: 2px; background: var(--surface-sunken); }
.gx-a-strength i.mid { background: var(--warning-500, #E9A23B); }
.gx-a-strength i.on { background: var(--color-success); }

.gx-a-fieldnote {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ---------- Notices ---------- */

.gx-a-note {
  display: flex;
  gap: 11px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--azure-50);
  border: 1px solid var(--border-brand, var(--azure-100));
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: 1.5;
  text-align: left;
}

.gx-a-note .ic { flex: none; color: var(--color-primary); margin-top: 1px; }

.gx-a-err {
  display: flex;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: var(--color-danger-soft);
  color: var(--danger-700);
  font-size: var(--text-sm);
  line-height: 1.5;
  text-align: left;
}

.gx-a-err .ic { flex: none; margin-top: 1px; }

.gx-a-big {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--azure-50);
  color: var(--color-primary);
  margin: 0 auto 6px;
}

.gx-a-big.ok { background: var(--success-50); color: var(--color-success); }

.gx-a-center { text-align: center; }
.gx-a-center .gx-a-form { align-items: stretch; }

/* ============================================================
   Mobile — the same DOM, rearranged
   ------------------------------------------------------------
   The hand-off draws mobile as a separate component because the
   prototype toggles a device frame. Here it is one markup and a
   media query instead: these pages are statically rendered, so
   there is no circuit to tell the server how wide the screen is,
   and the cookie ResponsiveModeService reads is missing on a
   first visit — which is exactly the visit the login screen is.
   A phone would get the desktop split panel.

   The panel becomes the hero: brand and title on the gradient,
   form underneath, pills and panel footer dropped.
   ============================================================ */

@media (max-width: 900px) {
  .gx-auth {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .gx-auth-panel { padding: 64px 22px 26px; }
  .gx-auth-panel::before { background-size: 22px 22px; opacity: .5; }
  .gx-auth-panel::after { display: none; }

  .gx-a-mid { margin: 22px 0 0; }

  .gx-a-mid h1 {
    font-size: calc(23px * var(--display-title-scale, 1));
    line-height: 1.15;
    margin: 0 0 6px;
  }

  .gx-a-mid p { font-size: var(--text-sm); line-height: 1.45; }

  /* Three pills and a legal footer are the panel earning its width. On a phone
     the panel is a header, and they push the form below the fold. */
  .gx-a-pills,
  .gx-a-pfoot { display: none; }

  .gx-auth-side { padding: 22px 20px 26px; place-items: start stretch; overflow: visible; }
  .gx-a-form { max-width: none; }

  /* The desktop size is --text-3xl times the brand's display scale, which on
     Leyssa's script face lands at 46px — a line and a half of a phone. The
     hand-off's phone titles are 23px before the same scale. */
  .gx-a-h { font-size: calc(23px * var(--display-title-scale, 1)); }

  /* The secondary screens lead with their own title, so the hero repeating the
     brand promise is noise: it keeps the wordmark and nothing else. */
  .gx-auth.compact .gx-auth-panel { padding: 54px 22px 18px; }
  .gx-auth.compact .gx-a-mid { display: none; }
}

/* ============================================================
   The space request — six steps, GymXYZ brand only
   ------------------------------------------------------------
   Ported from the hand-off (design/app/auth.css, §2). This form
   is never themed by customer: it is filled in by somebody who
   is not one yet, so it stays azure/ink whatever host it was
   reached on.
   ============================================================ */

.gx-ob {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-page);
}

.gx-ob-top {
  position: sticky;
  top: 0;
  z-index: 6;
  background: color-mix(in srgb, var(--surface-card) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.gx-ob-topin {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.gx-ob-top .gx-brand { padding: 0; }
.gx-ob-top .gx-wordmark { color: var(--text-strong); }
.gx-ob-top .gx-wordmark .accent { color: var(--color-brand); }

.gx-ob-topright {
  margin-left: auto;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.gx-ob-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 4px;
  max-width: 780px;
  width: 100%;
  justify-content: space-between;
}

.gx-ob-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  color: var(--text-subtle);
  white-space: nowrap;
}

.gx-ob-step .n {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: var(--weight-bold);
  background: var(--surface-sunken);
  color: var(--text-subtle);
}

.gx-ob-step.on { background: var(--azure-50); color: var(--azure-800); font-weight: var(--weight-semibold); }
.gx-ob-step.on .n { background: var(--color-primary); color: #fff; }
.gx-ob-step.done { color: var(--text-muted); }
.gx-ob-step.done .n { background: var(--success-50); color: var(--color-success); }

.gx-ob-sep { width: 14px; height: 1px; background: var(--border-default); flex: none; }

.gx-ob-prog { height: 3px; background: var(--surface-sunken); }
.gx-ob-prog i {
  display: block;
  height: 100%;
  background: var(--color-primary);
  transition: width var(--duration-base) var(--ease-out);
}

.gx-ob-main {
  flex: 1;
  padding: 32px 28px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gx-ob-card {
  width: 100%;
  max-width: 780px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl, 20px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: gx-ob-rise .32s var(--ease-out) both;
}

@keyframes gx-ob-rise {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .gx-ob-card { animation: none; }
}

.gx-ob-h { padding: 28px 32px 0; }

.gx-ob-h .eyebrow {
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-brand);
}

.gx-ob-h h2 {
  font-family: var(--font-display, var(--font-sans));
  font-weight: var(--display-weight, 700);
  letter-spacing: var(--display-ls, 0);
  font-size: calc(var(--text-2xl) * var(--display-title-scale, 1));
  color: var(--text-strong);
  margin: 8px 0 0;
}

.gx-ob-h p {
  margin: 8px 0 0;
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 56ch;
  text-wrap: pretty;
}

.gx-ob-body {
  padding: 24px 32px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gx-ob-body .full { grid-column: 1 / -1; }
.gx-ob-body .stack { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; }

.gx-ob-foot {
  padding: 16px 32px;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-sunken);
  display: flex;
  align-items: center;
  gap: 12px;
}

.gx-ob-count { font-size: var(--text-xs); color: var(--text-muted); margin-right: auto; }

.gx-ob-reassure {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  max-width: 780px;
  width: 100%;
}

.gx-ob-reassure span { display: flex; align-items: center; gap: 7px; }
.gx-ob-reassure svg { color: var(--color-success); }

.gx-fieldnote { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.5; margin: 0; }
.gx-fieldnote.ok { color: var(--color-success); }
.gx-fieldnote.ko { color: var(--color-danger); }

/* ---------- Choice cards (step 1) ---------- */

.gx-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; grid-column: 1 / -1; }

.gx-choice-card {
  position: relative;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  background: var(--surface-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}

.gx-choice-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gx-choice-card.on { border-color: var(--color-primary); box-shadow: var(--glow-spark); }

.gx-choice-card .ic {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: var(--azure-50);
  color: var(--color-primary);
}

.gx-choice-card.on .ic { background: var(--color-primary); color: #fff; }
.gx-choice-card .t { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-choice-card .d { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.5; }
.gx-choice-card ul { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.gx-choice-card li { display: flex; align-items: flex-start; gap: 8px; font-size: var(--text-xs); color: var(--text-body); }
.gx-choice-card li svg { flex: none; color: var(--color-success); margin-top: 1px; }

.gx-choice-card .tick {
  position: absolute; top: 14px; right: 14px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-primary); color: #fff;
}

/* ---------- Plan cards (step 4) ---------- */

.gx-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; grid-column: 1 / -1; }

.gx-plan {
  position: relative;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  background: var(--surface-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: border-color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}

.gx-plan:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gx-plan.on { border-color: var(--color-primary); box-shadow: var(--glow-spark); }
.gx-plan .nm { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text-strong); }

.gx-plan .pr {
  font-family: var(--font-display, var(--font-sans));
  font-weight: var(--display-weight, 700);
  font-size: calc(var(--text-xl) * var(--display-head-scale, 1));
  color: var(--text-strong);
  line-height: 1.1;
}

.gx-plan .pr small {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
}

.gx-plan .for { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.5; min-height: 2.9em; }
.gx-plan ul {
  margin: 0; padding: 10px 0 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--border-subtle);
}
.gx-plan li { display: flex; align-items: flex-start; gap: 7px; font-size: var(--text-xs); color: var(--text-body); line-height: 1.45; }
.gx-plan li svg { flex: none; color: var(--color-primary); margin-top: 1px; }

.gx-ribbon {
  position: absolute; top: -9px; left: 14px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: var(--weight-bold);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- White label (step 5) ---------- */

.gx-drop {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface-sunken);
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.gx-drop .ic {
  width: 46px; height: 46px; flex: none;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.gx-drop .t { display: block; font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-drop .d { display: block; font-size: var(--text-xs); color: var(--text-muted); margin-top: 3px; line-height: 1.5; }

.gx-lab {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
  margin: 0 0 8px;
  display: block;
}

.gx-sws { display: flex; flex-wrap: wrap; gap: 10px; }

.gx-sw {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--border-default) inset;
  cursor: pointer;
  position: relative;
  display: grid; place-items: center;
  color: #fff;
}

.gx-sw.on { border-color: var(--text-strong); }

.gx-dom { display: flex; align-items: stretch; }
.gx-dom > .gx-dom-field { flex: 1; min-width: 0; }

.gx-dom .sfx {
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: var(--control-md);
  background: var(--surface-sunken);
  border: 1.5px solid var(--border-default);
  border-left: 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
}

.gx-prev {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 88px 1fr;
  height: 168px;
  background: var(--surface-card);
}

.gx-prev .sb { padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; background: #12181F; color: #fff; }
.gx-prev .sb b { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.gx-prev .sb i { display: block; height: 8px; border-radius: 4px; background: currentColor; opacity: .28; }
.gx-prev .sb i.on { opacity: .85; height: 10px; }
.gx-prev .bd { padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; background: var(--surface-page); }
.gx-prev .bd .t { font-size: 11px; font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-prev .bd .card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 8px; height: 34px; }
.gx-prev .bd .btn { align-self: flex-start; padding: 6px 12px; border-radius: 8px; font-size: 10.5px; font-weight: var(--weight-bold); color: #fff; }

/* ---------- Recap and consents (step 6) ---------- */

.gx-kv2 { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: var(--text-sm); margin: 0; }
.gx-kv2 dt { color: var(--text-muted); }
.gx-kv2 dd { margin: 0; color: var(--text-strong); font-weight: var(--weight-semibold); text-align: right; }

.gx-recap { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; }

.gx-recap-h {
  padding: 11px 16px;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text-strong);
}

.gx-recap-h .r { margin-left: auto; }
.gx-recap-b { padding: 14px 16px; }

.gx-consent { display: flex; flex-direction: column; gap: 14px; }
.gx-consent .cbx { font-size: var(--text-sm); line-height: 1.5; }

/* The honeypot. Off-screen rather than display:none — a bot that reads computed
   styles skips a hidden field, and skipping it is the whole point of filling it.
   aria-hidden and tabindex keep it away from anybody real. */
.gx-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Sent ---------- */

.gx-tl2 { display: flex; flex-direction: column; }
.gx-tl2 .it { display: flex; gap: 14px; padding-bottom: 16px; position: relative; }
.gx-tl2 .it:last-child { padding-bottom: 0; }
.gx-tl2 .it::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 1.5px; background: var(--border-subtle); }
.gx-tl2 .it:last-child::before { display: none; }

.gx-tl2 .dot {
  width: 27px; height: 27px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-sunken);
  color: var(--text-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: var(--weight-bold);
  z-index: 1;
}

.gx-tl2 .it.done .dot { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.gx-tl2 .it.now .dot { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.gx-tl2 .t { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-strong); display: block; }
.gx-tl2 .d { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.5; margin-top: 3px; display: block; }

.gx-ref {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  color: var(--text-body);
}

.gx-ref b { font-variant-numeric: tabular-nums; color: var(--text-strong); }

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .gx-ob-topin { padding: 12px 18px; }
  .gx-ob-main { padding: 18px 14px 40px; }
  .gx-ob-card { border-radius: var(--radius-lg); }
  .gx-ob-h { padding: 20px 20px 0; }
  .gx-ob-body { padding: 18px 20px 22px; grid-template-columns: 1fr; }
  .gx-ob-foot { padding: 14px 20px; flex-wrap: wrap; }
  .gx-ob-count { width: 100%; margin: 0 0 4px; }
  .gx-ob-foot .gx-ob-actions { display: flex; gap: 10px; width: 100%; }
  .gx-ob-foot .gx-ob-actions > * { flex: 1; }

  /* Six labelled pills do not fit a phone; the numbers still say where you are,
     and "Étape N sur 6" in the footer says it in words. */
  .gx-ob-step span:not(.n) { display: none; }
  .gx-ob-step { padding: 6px; }

  .gx-choice, .gx-plans { grid-template-columns: 1fr; }
  .gx-plan .for { min-height: 0; }
}
