/* ============================================================
   GymXYZ — App shell + screen styles
   Built on TechXYZ design tokens only (var(--*)). No hard-coded
   brand colours: everything resolves through the themed ramp.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* The prototype mounts React into #root; Blazor renders into the body. */
.gx-root { height: 100%; }

/* ---------- App frame ---------- */
.gx-app {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--surface-page);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.gx-sb {
  width: 256px;
  flex: none;
  background: var(--gx-sb-bg);
  border-right: 1px solid var(--gx-sb-border);
  display: flex;
  flex-direction: column;
  padding: 18px 14px 16px;
  z-index: 5;
}
.gx-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 8px 18px;
}
.gx-brand .mark {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  color: var(--gx-sb-strong);
}
.gx-brand .mark img { width: 100%; height: 100%; object-fit: contain; }
.gx-brand .mark.circle img { border-radius: 50%; }
.gx-brand .mark svg { width: 100%; height: 100%; }
.gx-wordmark {
  font-family: var(--font-accent);
  font-weight: var(--accent-weight);
  letter-spacing: var(--accent-letterspacing);
  text-transform: var(--accent-transform);
  font-size: var(--wordmark-size, 20px);
  line-height: var(--wordmark-lh, 1);
  color: var(--gx-sb-strong);
  white-space: nowrap;
}
.gx-wordmark .accent { color: var(--gx-sb-accent); }

.gx-sb-group {
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gx-sb-group);
  padding: 16px 10px 7px;
}
.gx-nav {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--gx-sb-fg);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  position: relative;
  border: 1px solid transparent;
  user-select: none;
}
.gx-nav svg { width: 19px; height: 19px; flex: none; color: var(--gx-sb-icon); }
.gx-nav:hover { background: var(--gx-sb-hover); }
.gx-nav .count {
  margin-left: auto;
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  background: var(--gx-sb-count-bg);
  color: var(--gx-sb-count-fg);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
}
.gx-nav.active {
  background: var(--gx-sb-active-bg);
  color: var(--gx-sb-active-fg);
  border-color: var(--gx-sb-active-border);
}
.gx-nav.active svg { color: var(--gx-sb-active-icon); }
.gx-nav.active .count { background: var(--gx-sb-count-on-bg); color: var(--gx-sb-count-on-fg); }
.gx-nav.active::before {
  content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--gx-sb-active-bar);
}
.gx-sb-spacer { flex: 1; }
.gx-sb-foot {
  border-top: 1px solid var(--gx-sb-border);
  padding-top: 10px; margin-top: 8px;
}
.gx-theme-hint {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--text-2xs);
  color: var(--gx-sb-group);
  padding: 9px 11px 2px;
  line-height: 1.4;
}
.gx-theme-hint svg { width: 14px; height: 14px; flex: none; }
.gx-theme-hint b { color: var(--gx-sb-fg); }

/* ============================================================
   TOPBAR
   ============================================================ */
.gx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gx-tb {
  height: 64px; flex: none;
  background: var(--gx-tb-bg);
  -webkit-backdrop-filter: var(--blur-glass);
  backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px;
  z-index: 4;
}
.gx-tb-sp { flex: 1; }
/* Worn by a <button> (Aide, Se déconnecter) and by an <a> (Réglages), so it has
   to undo the button chrome the anchor never had — the two were drawn side by
   side with the user agent's border on one of them and not the other. Same reset
   as .gx-m-seg on the mobile shell. */
.gx-tb-ic {
  position: relative; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: var(--radius-md);
  color: var(--text-muted); cursor: pointer;
  appearance: none; border: 0; padding: 0; background: transparent; font-family: inherit;
}
.gx-tb-ic:hover { background: var(--surface-sunken); }
.gx-tb-ic:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.gx-tb-ic.on { background: var(--color-primary-soft, var(--surface-sunken)); color: var(--color-primary); }
.gx-tb-div { width: 1px; height: 26px; background: var(--border-subtle); margin: 0 4px; flex: none; }
.gx-tb-ic svg { width: 20px; height: 20px; }
/* A button, and the pointer the prototype drew from lot 0 is finally earned:
   the space selector opens behind it. */
.gx-me-wrap { position: relative; flex: none; }
.gx-me {
  display: flex; align-items: center; gap: 10px; padding: 4px 6px;
  appearance: none; border: 0; background: transparent; font-family: inherit;
  cursor: pointer; border-radius: var(--radius-md); text-align: left;
}
.gx-me:hover { background: var(--surface-sunken); }
.gx-me:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.gx-me .nm { display: block; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-strong); }
.gx-me .rl { display: block; font-size: var(--text-2xs); color: var(--text-muted); }

/* The space menu. A scrim under it rather than an outside-click listener, the
   arrangement GxDrawer already uses — no JavaScript for either. */
.gx-menu-scrim { position: fixed; inset: 0; z-index: 40; }
.gx-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 41;
  min-width: 280px; max-width: 340px; padding: 6px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg, 0 12px 32px rgb(0 0 0 / 12%));
}
.gx-menu:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.gx-menu-head {
  padding: 8px 10px 4px; font-size: var(--text-2xs); font-weight: var(--weight-bold);
  letter-spacing: .04em; text-transform: uppercase; color: var(--text-subtle);
}
.gx-menu-sep { height: 1px; margin: 6px 4px; background: var(--border-subtle); }
.gx-menu-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-md);
  appearance: none; border: 0; background: transparent; font-family: inherit;
  color: var(--text-body); text-align: left; text-decoration: none; cursor: pointer;
}
.gx-menu-item:hover { background: var(--surface-sunken); }
.gx-menu-item:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; }
.gx-menu-item.on { background: var(--color-primary-soft, var(--surface-sunken)); }
.gx-menu-item .ic {
  width: 30px; height: 30px; flex: none; border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: var(--surface-sunken); color: var(--text-muted);
}
.gx-menu-item .tt { flex: 1; min-width: 0; }
.gx-menu-item .tt .t { display: block; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-strong); }
.gx-menu-item .tt .s { display: block; font-size: var(--text-2xs); color: var(--text-muted); }

/* The sign-out control is wrapped in a form, because signing out is a POST. The
   form must not become the flex item of the topbar nor the grid cell of the Plus
   sheet — display:contents hands its box to the button inside it. */
.gx-signout { display: contents; }

/* ============================================================
   CONTENT
   ============================================================ */
.gx-content { flex: 1; overflow-y: auto; padding: 26px 30px 60px; }
.gx-wrap { max-width: 1240px; margin: 0 auto; }

.gx-crumb {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); color: var(--text-muted);
  margin-bottom: 14px;
}
.gx-crumb svg { width: 14px; height: 14px; }
.gx-crumb .sep { color: var(--text-subtle); }
.gx-crumb b { color: var(--text-strong); font-weight: var(--weight-semibold); }
.gx-crumb .nav-link { cursor: pointer; }
.gx-crumb .nav-link:hover { color: var(--text-link); }

.gx-pagehead {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 20px;
}
.gx-pagehead .h {
  font-family: var(--font-display, var(--font-sans));
  font-size: calc(var(--text-2xl) * var(--display-title-scale, 1));
  font-weight: var(--display-weight, var(--weight-bold));
  color: var(--text-strong);
  letter-spacing: var(--display-ls, var(--tracking-tight));
  text-transform: var(--display-tr, none);
  line-height: 1.1;
}
.gx-pagehead .sub { font-size: var(--text-sm); color: var(--text-muted); margin-top: 4px; }
.gx-pagehead .right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- generic grid helpers ---------- */
.gx-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gx-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gx-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gx-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ---------- card head ---------- */
.gx-card-h {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.gx-card-h .t { font-family: var(--font-display, var(--font-sans)); font-size: calc(var(--text-md) * var(--display-head-scale, 1)); font-weight: var(--display-weight, var(--weight-bold)); letter-spacing: var(--display-ls, 0); color: var(--text-strong); }
.gx-card-h .r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.gx-card-pad { padding: 18px; }

/* ============================================================
   KPI
   ============================================================ */
.gx-kpi {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 16px 18px;
}
.gx-kpi .lab {
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  color: var(--text-muted); letter-spacing: .01em;
}
.gx-kpi .val {
  font-size: var(--text-3xl); font-weight: var(--weight-bold);
  color: var(--text-strong); line-height: 1.05; margin-top: 6px;
  font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-tight);
}
.gx-kpi .val small { font-size: var(--text-md); color: var(--text-muted); font-weight: var(--weight-semibold); }
.gx-kpi .delta {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 7px;
  font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-success);
}
.gx-kpi .delta svg { width: 14px; height: 14px; }
.gx-kpi.spark { border-color: var(--azure-200); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.gx-kpi.spark::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--gradient-spark);
}

/* ============================================================
   BARS / RINGS / chips
   ============================================================ */
.gx-bar { height: 7px; border-radius: var(--radius-pill); background: var(--surface-sunken); overflow: hidden; }
.gx-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--color-primary); }
.gx-bar.warn > i { background: var(--color-warning); }
.gx-bar.bad  > i { background: var(--color-danger); }
.gx-bar.ok   > i { background: var(--color-success); }

.gx-ring { position: relative; display: inline-grid; place-items: center; }
.gx-ring .ctr {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: var(--weight-bold); color: var(--text-strong);
  font-size: var(--text-md); line-height: 1; text-align: center;
}

/* status chip = thin wrapper around brand tones (uses DS Badge in JS,
   but a few inline chips use this) */
.gx-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px; border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: var(--weight-semibold); white-space: nowrap;
}
.gx-chip svg { width: 13px; height: 13px; }
.gx-chip.brand  { background: var(--azure-50);    color: var(--azure-700); }
.gx-chip.ok     { background: var(--success-50);  color: var(--success-700); }
.gx-chip.warn   { background: var(--warning-50);  color: var(--warning-700); }
.gx-chip.bad    { background: var(--danger-50);   color: var(--danger-700); }
.gx-chip.neutral{ background: var(--surface-sunken); color: var(--neutral-700); }

/* ============================================================
   TABLE
   ============================================================ */
.gx-tbl { width: 100%; border-collapse: collapse; }
/* overflow safety net: a table can never silently clip its action column —
   it scrolls horizontally instead on cramped viewports */
.gx-tbl-scroll { overflow-x: auto; }
/* full-width abonnements table: keep the action column flush-right and intact */
.gx-tbl-abos { min-width: 720px; table-layout: fixed; }
.gx-tbl-abos th:nth-child(4), .gx-tbl-abos td:nth-child(4) { width: 110px; }
.gx-tbl-abos th:nth-child(5), .gx-tbl-abos td:nth-child(5) { width: 130px; }
.gx-tbl-abos th:last-child, .gx-tbl-abos td:last-child { width: 168px; white-space: nowrap; }
.gx-tbl thead th {
  text-align: left; padding: 11px 14px;
  font-size: var(--text-2xs); font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--text-subtle); border-bottom: 1px solid var(--border-subtle);
}
.gx-tbl tbody td { padding: 13px 14px; border-bottom: 1px solid var(--border-subtle); font-size: var(--text-sm); vertical-align: middle; }
.gx-tbl tbody tr:last-child td { border-bottom: 0; }
.gx-tbl tbody tr { cursor: pointer; }
.gx-tbl tbody tr:hover { background: var(--surface-sunken); }
.gx-tbl .u { display: flex; align-items: center; gap: 11px; }
.gx-tbl .u .nm { font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-tbl .u .em { font-size: var(--text-xs); color: var(--text-muted); }

/* quick filter chips row */
.gx-filters { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; flex-wrap: wrap; }
.gx-fchip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  color: var(--text-body); cursor: pointer; white-space: nowrap;
}
.gx-fchip svg { width: 14px; height: 14px; }
.gx-fchip:hover { border-color: var(--border-default); }
.gx-fchip.on { background: var(--azure-50); border-color: var(--azure-200); color: var(--azure-800); }
.gx-fchip.warn.on { background: var(--warning-50); border-color: var(--warning-100); color: var(--warning-700); }

/* ---- school calendar : banner + holiday/vacation marks ---- */
.gx-calbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 13px; margin-bottom: 4px;
  background: var(--surface-sunken); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); font-size: var(--text-xs);
}
.gx-calbar .gx-cal-zone { display: inline-flex; align-items: center; gap: 5px; flex: none; font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-calbar .gx-cal-zone svg { width: 13px; height: 13px; color: var(--color-primary); }
.gx-calbar .muted { color: var(--text-muted); font-weight: var(--weight-semibold); }
.gx-calbar .items { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.gx-cal-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: var(--radius-pill); font-weight: var(--weight-bold); font-size: var(--text-2xs); }
.gx-cal-pill svg { width: 12px; height: 12px; }
/* ------------------------------------------------------------
   CALENDAR ANNOTATIONS — férié and vacances share one colour.
   Both read the warning ramp, which no theme re-points, and the
   ICON tells them apart: a star for a public holiday, a sun for
   school holidays.

   They used to differ, férié taking the accent ramp. That made it
   follow the brand — plain grey under Team Trainer's, rose under
   Leyssa — so in one calendar a holiday could vanish into the
   chrome while the school-break pill beside it stayed loud. A day
   can carry both marks at once (15 August sits inside the summer
   break), which is why the selectors are merged rather than left
   to the cascade.
   ------------------------------------------------------------ */
.gx-cal-pill.ferie,
.gx-cal-pill.vac { background: var(--warning-50); color: var(--warning-700); }

/* week strip (dashboard) day marks */
.gx-day { position: relative; }
.gx-day.ferie,
.gx-day.vac { border-color: var(--warning-100); background: var(--warning-50); }
.gx-day-mark { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: var(--radius-pill); }
.gx-day-mark svg { width: 11px; height: 11px; }
.gx-day-mark.ferie,
.gx-day-mark.vac { background: var(--warning-100); color: var(--warning-700); }

/* calendar grid header + column marks */
.gx-cal .hd.ferie, .gx-cal .hd.vac { padding-bottom: 6px; }
.gx-hd-mark { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 4px 4px 0; padding: 1px 5px; border-radius: var(--radius-pill); font-size: 9.5px; font-weight: var(--weight-bold); line-height: 1.5; overflow: hidden; white-space: nowrap; }
.gx-hd-mark span { overflow: hidden; text-overflow: ellipsis; }
.gx-hd-mark svg { width: 11px; height: 11px; flex: none; }
.gx-hd-mark.ferie,
.gx-hd-mark.vac { background: var(--warning-50); color: var(--warning-700); }
/* The two tints stay distinct here on purpose: this is the column wash behind a
   whole day, and a férié inside a school break would otherwise double up to a
   noticeably darker column than its neighbours. */
.gx-cal .cell.ferie { background: color-mix(in srgb, var(--warning-50) 60%, transparent); }
.gx-cal .cell.vac { background: color-mix(in srgb, var(--warning-50) 55%, transparent); }

/* ============================================================
   ACCUEIL — week strip, class rows, alerts
   ============================================================ */
.gx-weekstrip { display: flex; gap: 8px; }
.gx-day {
  flex: 1; text-align: center; cursor: pointer;
  border: 1px solid var(--border-subtle); background: var(--surface-card);
  border-radius: var(--radius-md); padding: 10px 4px;
}
.gx-day:hover { border-color: var(--azure-300); }
.gx-day .dn { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: var(--weight-bold); }
.gx-day .nm { font-size: var(--text-xl); font-weight: var(--weight-bold); color: var(--text-strong); margin: 2px 0; }
.gx-day .ct { font-size: var(--text-2xs); color: var(--color-primary); font-weight: var(--weight-bold); }
.gx-day.on { border-color: var(--color-primary); background: var(--azure-50); }

.gx-classrow { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.gx-classrow:last-child { border-bottom: 0; }
.gx-classrow .time { width: 52px; flex: none; font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--color-brand); }
.gx-classrow .main { flex: 1; min-width: 0; }
.gx-classrow .main .nm { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-classrow .main .meta { font-size: var(--text-xs); color: var(--text-muted); margin-top: 1px; }
.gx-classrow .occ { width: 148px; flex: none; }
.gx-classrow .occ .lab { display: flex; justify-content: space-between; font-size: var(--text-2xs); color: var(--text-body); margin-bottom: 4px; }

.gx-alert { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border-subtle); }
.gx-alert:last-child { border-bottom: 0; }
.gx-alert .ic { width: 34px; height: 34px; border-radius: var(--radius-sm); flex: none; display: grid; place-items: center; }
.gx-alert .main { flex: 1; }
.gx-alert .main .t { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-alert .main .d { font-size: var(--text-xs); color: var(--text-muted); }

.gx-diffuse-foot {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  font-size: var(--text-xs); color: var(--text-muted);
  border-top: 1px solid var(--border-subtle); padding-top: 14px;
}
.gx-diffuse-foot svg { width: 15px; height: 15px; flex: none; }
.gx-diffuse-foot b { color: var(--text-body); }

/* timeline (day detail) */
.gx-tl { display: flex; gap: 12px; }
.gx-tl .when { width: 44px; flex: none; text-align: right; font-size: var(--text-2xs); color: var(--text-muted); padding-top: 1px; }
.gx-tl .body { flex: 1; border-left: 2px solid var(--border-subtle); padding: 0 0 18px 16px; position: relative; }
.gx-tl .body::before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--color-primary); border: 2px solid var(--surface-card); }
.gx-tl .card { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 11px 13px; background: var(--surface-card); }
.gx-tl .card .top { display: flex; align-items: center; gap: 8px; }
.gx-tl .card .top .nm { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-tl .card .top .cap { margin-left: auto; font-size: var(--text-2xs); color: var(--text-muted); }
.gx-tl .card .meta { font-size: var(--text-xs); color: var(--text-muted); margin: 3px 0 8px; }

/* ============================================================
   PLANNING — calendar grid
   ============================================================ */
.gx-cal-wrap { position: relative; }
.gx-cal-scroll { max-height: 560px; overflow-y: auto; position: relative; }
.gx-cal { display: grid; grid-template-columns: 56px repeat(7, 1fr); position: relative; }
.gx-cal .corner { position: sticky; top: 0; z-index: 3; background: var(--surface-card); border-bottom: 1px solid var(--border-subtle); }
.gx-cal .hd {
  position: sticky; top: 0; z-index: 3; background: var(--surface-card);
  text-align: center; padding: 10px 4px; border-bottom: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle); cursor: pointer;
}
.gx-cal .hd:hover { background: var(--surface-sunken); }
.gx-cal .hd .d { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: var(--weight-bold); }
.gx-cal .hd .n { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-cal .hd.today .n { color: var(--color-primary); }
.gx-cal .gut { font-size: var(--text-2xs); color: var(--text-subtle); padding: 4px 8px 0; text-align: right; border-bottom: 1px dashed var(--border-subtle); min-height: 52px; }
.gx-cal .cell { border-left: 1px solid var(--border-subtle); border-bottom: 1px dashed var(--border-subtle); min-height: 52px; padding: 3px; }
.gx-ev {
  height: 100%; min-height: 44px; border-radius: var(--radius-sm);
  background: var(--azure-50); border: 1px solid var(--azure-100);
  border-left: 3px solid var(--color-primary);
  padding: 5px 7px; overflow: hidden; cursor: pointer;
}
.gx-ev:hover { box-shadow: var(--shadow-sm); }
.gx-ev .t { font-size: var(--text-2xs); font-weight: var(--weight-bold); color: var(--azure-900); line-height: 1.15; }
.gx-ev .m { font-size: 10px; color: var(--azure-700); margin-top: 1px; }
.gx-ev.full { background: var(--danger-50); border-color: var(--danger-100); border-left-color: var(--color-danger); }
.gx-ev.full .t { color: var(--danger-700); } .gx-ev.full .m { color: var(--danger-600); }
.gx-ev.priv { background: var(--surface-sunken); border-color: var(--border-subtle); border-left-color: var(--neutral-400); }
.gx-ev.priv .t { color: var(--neutral-700); } .gx-ev.priv .m { color: var(--neutral-500); }
.gx-now-line { position: absolute; left: 56px; right: 0; height: 2px; background: var(--color-danger); z-index: 2; pointer-events: none; }
.gx-now-dot { position: absolute; left: 50px; width: 9px; height: 9px; border-radius: 50%; background: var(--color-danger); z-index: 2; }

/* planning day slot */
.gx-slot { display: flex; gap: 14px; margin-bottom: 14px; }
.gx-slot .time { width: 48px; flex: none; text-align: right; font-size: var(--text-xs); color: var(--text-muted); padding-top: 14px; }
.gx-slot .card { flex: 1; border: 1px solid var(--border-subtle); border-left: 3px solid var(--color-primary); border-radius: var(--radius-md); padding: 13px 15px; background: var(--surface-card); }
.gx-slot .card .top { display: flex; align-items: center; gap: 10px; }
.gx-slot .card .top .nm { font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-slot .card .meta { font-size: var(--text-xs); color: var(--text-muted); margin: 5px 0 9px; }

/* ============================================================
   FICHE MEMBRE
   ============================================================ */
.gx-fiche-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.gx-fiche-head .info { flex: 1; }
.gx-fiche-head .name-row { display: flex; align-items: center; gap: 10px; }
.gx-fiche-head .name { font-family: var(--font-display, var(--font-sans)); font-size: calc(var(--text-2xl) * var(--display-title-scale, 1)); font-weight: var(--display-weight, var(--weight-bold)); letter-spacing: var(--display-ls, var(--tracking-tight)); color: var(--text-strong); }
.gx-fiche-head .contact { font-size: var(--text-sm); color: var(--text-muted); margin-top: 3px; }

.gx-listrow { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border-subtle); }
.gx-listrow:last-child { border-bottom: 0; }
.gx-listrow .main { flex: 1; min-width: 0; }
.gx-listrow .main .t { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-listrow .main .s { font-size: var(--text-xs); color: var(--text-muted); }
.gx-listrow .amt { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-strong); }

/* ============================================================
   DRAWER (right side) — for create / edit
   ============================================================ */
.gx-scrim {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(12, 34, 54, 0.45);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: gx-fade .18s var(--ease-out) both;
}
@keyframes gx-fade { from { opacity: .4; } to { opacity: 1; } }
.gx-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-modal);
  width: 520px; max-width: 94vw; background: var(--surface-card);
  box-shadow: var(--shadow-xl); display: flex; flex-direction: column;
  animation: gx-slidein .28s var(--ease-out) both;
}
@keyframes gx-slidein { from { transform: translateX(26px); } to { transform: translateX(0); } }
.gx-drawer-h { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border-subtle); }
.gx-drawer-h .ic { width: 40px; height: 40px; border-radius: var(--radius-md); flex: none; display: grid; place-items: center; background: var(--azure-50); color: var(--color-primary); }
.gx-drawer-h .tt { flex: 1; }
.gx-drawer-h .tt .t { font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-drawer-h .tt .s { font-size: var(--text-xs); color: var(--text-muted); }
.gx-drawer-b { flex: 1; overflow-y: auto; padding: 20px; }
.gx-drawer-f { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border-subtle); }
.gx-seclab { font-size: var(--text-2xs); font-weight: var(--weight-bold); letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--text-muted); margin: 18px 0 10px; }
.gx-seclab:first-child { margin-top: 0; }

/* ============================================================
   EMPTY STATE (sections not yet built)
   ============================================================ */
.gx-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px; gap: 14px;
}
.gx-empty .ic {
  width: 64px; height: 64px; border-radius: var(--radius-xl);
  display: grid; place-items: center; background: var(--azure-50); color: var(--color-primary);
}
.gx-empty .ic svg { width: 30px; height: 30px; }
.gx-empty h3 { margin: 0; font-size: var(--text-xl); font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-empty p { margin: 0; font-size: var(--text-sm); color: var(--text-muted); max-width: 420px; }

/* ---------- detail key/value rows ---------- */
.gx-kv { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border-subtle); }
.gx-kv:last-child { border-bottom: 0; }
.gx-kv .k { font-size: var(--text-2xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-muted); font-weight: var(--weight-bold); }
.gx-kv .v { font-size: var(--text-sm); color: var(--text-strong); font-weight: var(--weight-bold); }

/* ============================================================
   COACHS — card grid + fiche
   ============================================================ */
.gx-coachgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gx-coach-card {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
  padding: 18px 18px 16px; cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.gx-coach-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--azure-200); }
.gx-coach-card .top { display: flex; align-items: center; gap: 12px; }
.gx-coach-card .top .nm { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text-strong); line-height: 1.2; }
.gx-coach-card .top .rl { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.gx-coach-card .stats {
  display: flex; gap: 6px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.gx-coach-card .stats .st { flex: 1; min-width: 0; }
.gx-coach-card .stats .st .v { font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--text-strong); line-height: 1; font-variant-numeric: tabular-nums; }
.gx-coach-card .stats .st .l { font-size: var(--text-2xs); color: var(--text-muted); margin-top: 3px; }

/* tag pills (disciplines) */
.gx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.gx-tag {
  font-size: var(--text-2xs); font-weight: var(--weight-semibold);
  color: var(--text-body); background: var(--surface-sunken);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-pill);
  padding: 3px 9px; white-space: nowrap;
}
.gx-tag.brand { background: var(--azure-50); border-color: var(--azure-100); color: var(--azure-700); }

/* weekly availability strip */
.gx-avail { display: flex; gap: 6px; }
.gx-avail .d {
  flex: 1; text-align: center; border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle); padding: 7px 0;
  font-size: var(--text-2xs); font-weight: var(--weight-bold); color: var(--text-subtle);
  text-transform: uppercase; letter-spacing: .04em;
}
.gx-avail .d.on { background: var(--success-50); border-color: var(--success-100); color: var(--success-700); }

/* discipline icon tile (cours) */
.gx-disc-ic {
  width: 40px; height: 40px; flex: none; border-radius: var(--radius-md);
  display: grid; place-items: center;
}
.gx-disc-ic.big { width: 56px; height: 56px; border-radius: var(--radius-lg); }
.gx-disc-ic.t-danger  { background: var(--danger-50);  color: var(--color-danger); }
.gx-disc-ic.t-warning { background: var(--warning-50); color: var(--warning-600); }
.gx-disc-ic.t-success { background: var(--success-50); color: var(--success-700); }
.gx-disc-ic.t-brand   { background: var(--azure-50);   color: var(--color-primary); }
.gx-disc-ic.t-neutral { background: var(--surface-sunken); color: var(--text-muted); }

/* overlapping avatar stack (coachs on a cours) */
.gx-avstack { display: flex; align-items: center; }
.gx-avstack > * { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface-card); border-radius: 50%; }
.gx-avstack > *:first-child { margin-left: 0; }

/* entrance — animate transform only; opacity stays 1 so content is
   never stuck hidden if the animation is throttled/not ticked */
.gx-screen { animation: gx-rise .32s var(--ease-out) both; }
@keyframes gx-rise { from { transform: translateY(10px); } to { transform: none; } }

/* ---------- density (Tweaks) ---------- */
.gx-density-compact .gx-content { padding: 18px 24px 50px; }
.gx-density-compact .gx-tbl tbody td { padding: 9px 14px; }
.gx-density-compact .gx-card-h { padding: 12px 18px; }
.gx-density-compact .gx-classrow,
.gx-density-compact .gx-alert { padding-top: 9px; padding-bottom: 9px; }
.gx-density-compact .gx-grid2 { gap: 14px; }
.gx-density-compact .gx-col { gap: 14px; }

.gx-density-confort .gx-content { padding: 36px 40px 70px; }
.gx-density-confort .gx-tbl tbody td { padding: 17px 16px; }
.gx-density-confort .gx-grid2 { gap: 24px; }
.gx-density-confort .gx-col { gap: 24px; }

/* ============================================================
   PRÉSENCES — pointage & assiduité
   ============================================================ */
.gx-classrow.click { cursor: pointer; }
.gx-classrow.click:hover .main .nm { color: var(--text-link); }

/* feuille de présence — summary stat strip */
.gx-pres-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.gx-pres-stat {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
}
.gx-pres-stat .ic { width: 38px; height: 38px; border-radius: var(--radius-md); flex: none; display: grid; place-items: center; }
.gx-pres-stat .ic svg { width: 20px; height: 20px; }
.gx-pres-stat .ic.present { background: var(--success-50); color: var(--success-700); }
.gx-pres-stat .ic.late    { background: var(--warning-50); color: var(--warning-700); }
.gx-pres-stat .ic.absent  { background: var(--danger-50);  color: var(--danger-700); }
.gx-pres-stat .ic.pending { background: var(--surface-sunken); color: var(--text-muted); }
.gx-pres-stat .v { font-size: var(--text-2xl); font-weight: var(--weight-bold); color: var(--text-strong); line-height: 1; font-variant-numeric: tabular-nums; }
.gx-pres-stat .l { font-size: var(--text-2xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: var(--weight-bold); margin-top: 4px; }

/* roster row inside feuille */
.gx-roster { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--border-subtle); }
.gx-roster:last-child { border-bottom: 0; }
.gx-roster .main { flex: 1; min-width: 0; }
.gx-roster .main .nm { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-roster .main .pl { font-size: var(--text-xs); color: var(--text-muted); margin-top: 1px; }
.gx-roster.is-absent .main .nm { color: var(--text-muted); }

/* segmented present / late / absent toggle */
.gx-seg { display: inline-flex; background: var(--surface-sunken); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); padding: 3px; gap: 2px; flex: none; }
.gx-seg button {
  appearance: none; border: 0; background: transparent; font-family: inherit; cursor: pointer;
  height: 30px; padding: 0 13px; border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.gx-seg button svg { width: 15px; height: 15px; }
.gx-seg button:hover { color: var(--text-body); }
.gx-seg button.on.present { background: var(--success-600); color: #fff; }
.gx-seg button.on.brand   { background: var(--color-primary); color: #fff; }
.gx-seg button.on.late    { background: var(--warning-600); color: #fff; }
.gx-seg button.on.absent  { background: var(--danger-600);  color: #fff; }

/* horizontal "taux par cours" bar row */
.gx-statbar { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.gx-statbar .nm { width: 124px; flex: none; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-statbar .pct { width: 38px; flex: none; text-align: right; font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--text-strong); font-variant-numeric: tabular-nums; }

/* ============================================================
   ABONNEMENTS — formules & suivi
   ============================================================ */
.gx-formules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gx-formule {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
  padding: 18px; display: flex; flex-direction: column; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.gx-formule:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--azure-200); }
.gx-formule.featured { border-color: var(--azure-200); box-shadow: var(--shadow-sm); }
.gx-formule.featured::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gradient-spark); }
.gx-formule .nm { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-formule .price { display: flex; align-items: baseline; gap: 5px; margin: 12px 0 8px; }
.gx-formule .price .amt { font-size: var(--text-3xl); font-weight: var(--weight-bold); color: var(--text-strong); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-tight); line-height: 1; }
.gx-formule .price .unit { font-size: var(--text-xs); color: var(--text-muted); font-weight: var(--weight-semibold); }
.gx-formule .desc { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.5; flex: 1; }
.gx-formule .foot { display: flex; align-items: center; gap: 7px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-subtle); font-size: var(--text-xs); color: var(--text-body); font-weight: var(--weight-semibold); flex-wrap: wrap; row-gap: 3px; }
.gx-formule .foot svg { width: 15px; height: 15px; color: var(--text-muted); }
.gx-formule .foot b { white-space: nowrap; }
.gx-formule .foot .sep { margin-left: auto; color: var(--text-subtle); font-weight: var(--weight-semibold); white-space: nowrap; }

/* tiny inline meta with icon (auto-renew, échéance) */
.gx-mini { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-2xs); color: var(--text-muted); font-weight: var(--weight-semibold); }
.gx-mini svg { width: 13px; height: 13px; }

/* ============================================================
   SALLES — studio cards + fiche
   ============================================================ */
.gx-salles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gx-salle-card {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); overflow: hidden;
  cursor: pointer; display: flex; flex-direction: column;
  transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.gx-salle-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--azure-200); }
.gx-salle-hd { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 18px 16px; border-bottom: 1px solid var(--border-subtle); }
.gx-salle-hd .ic { width: 52px; height: 52px; flex: none; border-radius: var(--radius-lg); display: grid; place-items: center; }
.gx-salle-hd .ic svg { width: 26px; height: 26px; }
.gx-salle-hd.t-brand   .ic { background: var(--azure-50);   color: var(--color-primary); }
.gx-salle-hd.t-success .ic { background: var(--success-50); color: var(--success-700); }
.gx-salle-hd.t-danger  .ic { background: var(--danger-50);  color: var(--color-danger); }
.gx-salle-hd.t-neutral .ic { background: var(--surface-sunken); color: var(--text-muted); }
.gx-salle-hd .tt { flex: 1; min-width: 0; }
.gx-salle-hd .tt .nm { font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--text-strong); line-height: 1.15; }
.gx-salle-hd .tt .ty { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.gx-salle-hd .chip-tr { position: absolute; top: 16px; right: 16px; }
.gx-salle-bd { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.gx-salle-meta { display: flex; align-items: center; gap: 9px; font-size: var(--text-xs); color: var(--text-body); font-weight: var(--weight-semibold); }
.gx-salle-meta .it { display: inline-flex; align-items: center; gap: 5px; }
.gx-salle-meta .it svg { width: 14px; height: 14px; color: var(--text-muted); }
.gx-salle-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-subtle); }
.gx-salle-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.gx-salle-foot .occ { flex: 1; }
.gx-salle-foot .occ .lab { display: flex; justify-content: space-between; font-size: var(--text-2xs); color: var(--text-muted); margin-bottom: 5px; font-weight: var(--weight-semibold); }
.gx-salle-foot .occ .lab b { color: var(--text-strong); font-variant-numeric: tabular-nums; }

/* adaptive foot (extérieur / domicile) */
.gx-foot-info { flex: 1; min-width: 0; }
.gx-foot-info .lab { font-size: var(--text-2xs); color: var(--text-muted); margin-bottom: 8px; font-weight: var(--weight-semibold); }
.gx-foot-info .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gx-foot-info .repli { font-size: var(--text-xs); color: var(--text-muted); font-weight: var(--weight-semibold); }
.gx-foot-info .repli b { color: var(--text-strong); }
.gx-foot-info .repli.on { color: var(--color-danger); }
.gx-foot-info .repli.on b { color: var(--color-danger); }

/* live weather banner (fiche RDV card) */
.gx-wx { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); }
.gx-wx .ic { width: 38px; height: 38px; flex: none; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--surface-sunken); color: var(--text-body); }
.gx-wx .m { flex: 1; min-width: 0; }
.gx-wx .m .t { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-wx .m .s { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }

/* point-de-RDV / adresse card */
.gx-rdv { display: flex; align-items: flex-start; gap: 13px; padding: 18px; }
.gx-rdv .pin { width: 42px; height: 42px; flex: none; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--azure-50); color: var(--color-primary); }
.gx-rdv .addr { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text-strong); line-height: 1.2; }
.gx-rdv .sub { font-size: var(--text-xs); color: var(--text-muted); margin-top: 3px; }
.gx-rdv-repli { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border-subtle); background: var(--surface-sunken); font-size: var(--text-xs); color: var(--text-body); font-weight: var(--weight-semibold); }
.gx-rdv-repli svg { width: 16px; height: 16px; color: var(--text-muted); flex: none; }
.gx-rdv-repli b { color: var(--text-strong); }
.gx-rdv-repli.on { background: var(--danger-50); color: var(--color-danger); }
.gx-rdv-repli.on svg { color: var(--color-danger); }
.gx-rdv-repli.on b { color: var(--color-danger); }

/* weekly occupancy heat strip */
.gx-heat { display: flex; gap: 7px; }
.gx-heat .d { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gx-heat .bar { width: 100%; height: 60px; border-radius: var(--radius-sm); background: var(--surface-sunken); display: flex; align-items: flex-end; overflow: hidden; }
.gx-heat .bar > i { display: block; width: 100%; border-radius: inherit; }
.gx-heat .lab { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .04em; color: var(--text-subtle); font-weight: var(--weight-bold); }
.gx-heat .pct { font-size: var(--text-2xs); color: var(--text-muted); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }

/* ---------- animations toggle (Tweaks) ---------- */
.gx-no-anim .gx-screen,
.gx-no-anim .gx-app * { animation: none !important; }

/* ============================================================
   RÉGLAGES — settings (tabs + panels)
   ============================================================ */
.gx-tabs {
  display: flex; gap: 2px; margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle); overflow-x: auto;
}
.gx-tab {
  appearance: none; background: transparent; border: 0; font-family: inherit;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 11px 14px; margin-bottom: -1px; white-space: nowrap;
  border-bottom: 2px solid transparent;
  font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.gx-tab svg { width: 17px; height: 17px; flex: none; color: var(--text-subtle); }
.gx-tab:hover { color: var(--text-body); }
.gx-tab:hover svg { color: var(--text-muted); }
.gx-tab.on { color: var(--text-strong); border-bottom-color: var(--color-primary); }
.gx-tab.on svg { color: var(--color-primary); }

.gx-set-panel { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.gx-set-intro { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; margin: -2px 0 2px; max-width: 720px; }

/* form field grid inside a card */
.gx-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 16px; padding: 18px; }
.gx-field-grid .full { grid-column: 1 / -1; }

/* save bar */
.gx-savebar {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
}
.gx-savebar .note { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--text-muted); font-weight: var(--weight-semibold); }
.gx-savebar .note svg { width: 14px; height: 14px; }
.gx-savebar .sp { flex: 1; }

/* opening-hours rows */
.gx-hours-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border-subtle); }
.gx-hours-row:last-child { border-bottom: 0; }
.gx-hours-row .day { flex: 1; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-strong); }
.gx-hours-row .h { font-size: var(--text-sm); color: var(--text-body); font-variant-numeric: tabular-nums; }

/* team / access rows */
.gx-team-row { display: flex; align-items: center; gap: 13px; padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); }
.gx-team-row:last-child { border-bottom: 0; }
.gx-team-row .info { flex: 1; min-width: 0; }
.gx-team-row .info .nm { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-team-row .info .ac { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.gx-team-row .last { font-size: var(--text-2xs); color: var(--text-subtle); flex: none; white-space: nowrap; }

/* notification rows */
.gx-notif-row { display: flex; align-items: flex-start; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); }
.gx-notif-row:last-child { border-bottom: 0; }
.gx-notif-row .main { flex: 1; min-width: 0; }
.gx-notif-row .main .t { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-notif-row .main .d { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; line-height: 1.45; }
.gx-chan { display: flex; gap: 5px; margin-top: 8px; }
.gx-chan .c { font-size: var(--text-2xs); font-weight: var(--weight-bold); letter-spacing: .02em; color: var(--text-muted); background: var(--surface-sunken); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); padding: 2px 9px; }

/* theme picker cards */
.gx-theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; }
.gx-theme-card {
  text-align: left; cursor: pointer; font-family: inherit;
  border: 1px solid var(--border-subtle); background: var(--surface-card);
  border-radius: var(--radius-lg); padding: 14px; display: flex; flex-direction: column; gap: 11px;
  transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.gx-theme-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--azure-200); }
.gx-theme-card.on { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-sm); }
.gx-theme-card .sw { display: flex; border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 0 0 1px rgba(12, 34, 54, .08); }
.gx-theme-card .sw i { height: 30px; flex: 1; }
.gx-theme-card .tnm { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-theme-card .tsub { font-size: var(--text-2xs); color: var(--text-muted); }

/* token preview chips */
.gx-tokens { display: flex; gap: 22px; flex-wrap: wrap; padding: 18px; }
.gx-token { display: flex; align-items: center; gap: 10px; }
.gx-token .dot { width: 30px; height: 30px; border-radius: 8px; flex: none; box-shadow: 0 0 0 1px rgba(12, 34, 54, .1); }
.gx-token .k { font-size: var(--text-2xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: var(--weight-bold); }
.gx-token .v { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-strong); }

/* payment-method toggle rows */
.gx-pay-row { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border-subtle); }
.gx-pay-row:last-child { border-bottom: 0; }
.gx-pay-row .nm { flex: 1; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-strong); }

/* formule summary rows */
.gx-formrow { display: flex; align-items: center; gap: 13px; padding: 13px 18px; border-bottom: 1px solid var(--border-subtle); }
.gx-formrow:last-child { border-bottom: 0; }
.gx-formrow .main { flex: 1; min-width: 0; }
.gx-formrow .main .t { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-strong); }
.gx-formrow .main .s { font-size: var(--text-xs); color: var(--text-muted); margin-top: 1px; }
.gx-formrow .price { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gx-formrow .price span { font-size: var(--text-2xs); color: var(--text-muted); font-weight: var(--weight-semibold); }

/* billing plan hero */
.gx-plan-hero { display: flex; align-items: center; gap: 18px; padding: 20px; }
.gx-plan-hero .price { font-size: var(--text-3xl); font-weight: var(--weight-bold); color: var(--text-strong); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-tight); line-height: 1; }

/* responsive */
@media (max-width: 1080px) {
  .gx-grid2 { grid-template-columns: 1fr; }
  .gx-grid4 { grid-template-columns: 1fr 1fr; }
  .gx-formules { grid-template-columns: 1fr 1fr; }
  .gx-pres-summary { grid-template-columns: 1fr 1fr; }
  .gx-salles { grid-template-columns: 1fr; }
  .gx-theme-grid { grid-template-columns: 1fr; }
  .gx-field-grid { grid-template-columns: 1fr; }
}
