@charset "UTF-8";
/* Design tokens (couleurs, typographie, rayons, espacements, ombres) */
:root {
  /* Couleurs “Material-like” */
  --ds-primary: #0ea5e9;
  --ds-on-primary: #fff;
  --ds-surface: #ffffff;
  --ds-on-surface: #111111;
  --ds-outline: rgba(0,0,0,.14);
  --ds-muted: rgba(0,0,0,.60);
  --ds-state: rgba(14,165,233,.10); /* couche d’état (hover/press) */
  --ds-error: #d32f2f;
  /* Typo */
  --ds-font: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  /* Rayons & spacing */
  --ds-radius-sm: 8px;
  --ds-radius-md: 12px;
  --ds-radius-lg: 16px;
  /* Ombres (élévations) */
  --ds-elev-1: 0 1px 2px rgba(0,0,0,.07), 0 1px 1px rgba(0,0,0,.06);
  --ds-elev-2: 0 2px 6px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --ds-elev-3: 0 6px 18px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.08);
}

html, body {
  background: var(--ds-surface);
  color: var(--ds-on-surface);
  font-family: var(--ds-font);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.95rem;
  height: 40px;
  border-radius: var(--ds-radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ds-on-surface);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  background: var(--ds-state);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.btn--filled {
  background: var(--ds-primary);
  color: var(--ds-on-primary);
}
.btn--filled:hover {
  background: color-mix(in oklab, var(--ds-primary) 92%, white);
}

.btn--outlined {
  border-color: var(--ds-outline);
}

.btn--text {
  padding-inline: 0.5rem;
  height: auto;
}
.btn--text:hover {
  background: transparent;
  text-decoration: underline;
  color: var(--ds-primary);
}

.field {
  display: grid;
  gap: 6px;
  color: var(--ds-on-surface);
}
.field label {
  font-size: 0.85rem;
  color: var(--ds-muted);
}
.field .control {
  position: relative;
  display: grid;
  align-items: center;
}
.field .control input, .field .control textarea {
  width: 100%;
  border-radius: var(--ds-radius-sm);
  border: 1px solid var(--ds-outline);
  padding: 0.65rem 0.8rem;
  background: var(--ds-surface);
  color: var(--ds-on-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field .control input:focus, .field .control textarea:focus {
  border-color: var(--ds-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}
.field .control input::placeholder, .field .control textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}
.field .hint {
  font-size: 0.8rem;
  color: var(--ds-muted);
}
.field.error .hint {
  color: var(--ds-error);
}
.field.error input {
  border-color: var(--ds-error);
}

.card {
  display: block;
  border-radius: var(--ds-radius-md, 12px);
  background: var(--ds-surface, #fff);
  color: var(--ds-on-surface, #1f2937);
  border: 1px solid var(--ds-outline, rgba(0, 0, 0, 0.08));
  padding: 16px;
  /* élévation 1 + fallback direct si tes tokens ne sont pas encore chargés */
  box-shadow: var(--ds-elev-1);
  box-shadow: var(--ds-elev-1, 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06));
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
  box-shadow: var(--ds-elev-2);
  box-shadow: var(--ds-elev-2, 0 6px 12px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.08));
}

.card-title {
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.25;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* variantes utiles */
.card--outlined {
  box-shadow: none !important;
  border: 1px solid var(--ds-outline, rgba(0, 0, 0, 0.12));
}

.card--elevated {
  box-shadow: var(--ds-elev-3);
  box-shadow: var(--ds-elev-3, 0 10px 18px rgba(0, 0, 0, 0.14), 0 6px 10px rgba(0, 0, 0, 0.1));
}

.switch {
  --h: 20px;
  --w: 34px;
  display: inline-grid;
  grid-auto-flow: column;
  gap: 0.5rem;
  align-items: center;
  user-select: none;
}
.switch input {
  display: none;
}
.switch .track {
  width: var(--w);
  height: var(--h);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  transition: background 0.15s;
}
.switch .thumb {
  width: calc(var(--h) - 4px);
  height: calc(var(--h) - 4px);
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: var(--ds-elev-1);
  transition: transform 0.15s ease, background 0.15s ease;
}
.switch input:checked + .track {
  background: color-mix(in oklab, var(--ds-primary) 55%, white);
}
.switch input:checked + .track .thumb {
  background: var(--ds-primary);
  transform: translateX(14px);
}

.menu-surface {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-outline);
  border-radius: var(--ds-radius-sm);
  box-shadow: var(--ds-elev-3);
  padding: 6px 0;
  margin-top: 6px;
  display: none;
  z-index: 2000;
}
.menu-surface .item {
  padding: 8px 12px;
  cursor: pointer;
}
.menu-surface .item:hover {
  background: var(--ds-state);
}

.menu-anchor {
  position: relative;
}

.menu-open > .menu-surface {
  display: block;
}

dialog.md-dialog {
  border: none;
  border-radius: var(--ds-radius-md);
  padding: 0;
  width: min(92vw, 560px);
  background: var(--ds-surface);
  color: var(--ds-on-surface);
  box-shadow: var(--ds-elev-3);
}
dialog.md-dialog .md-dialog__heading {
  font-weight: 600;
  padding: 16px 20px 0;
}
dialog.md-dialog .md-dialog__body {
  padding: 12px 20px 20px;
  line-height: 1.6;
}
dialog.md-dialog .md-dialog__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 16px 16px;
}
dialog.md-dialog:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

dialog.md-dialog::backdrop {
  background: rgba(0, 0, 0, 0.32);
}

@media (max-width: 520px) {
  dialog.md-dialog {
    width: 92vw;
  }
}
/* Ripple : que ce soit .btn OU [data-ripple], on force le conteneur */
.btn, [data-ripple] {
  position: relative;
  overflow: hidden; /* indispensable pour éviter l’agrandissement du parent */
}

/* Fallback cross-browser pour <dialog> (si showModal indispo) */
dialog[open] {
  position: fixed; /* hors flux -> ne pousse rien */
  inset: 0; /* centré */
  margin: auto;
  max-width: min(92vw, 560px);
  border: none;
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  color: var(--ds-on-surface);
  box-shadow: var(--ds-elev-3);
}

dialog[open]::backdrop {
  background: rgba(0, 0, 0, 0.32);
}

.tabs .tablist {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--ds-outline);
}
.tabs [role=tab] {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 10px 14px;
  border-radius: var(--ds-radius-sm) var(--ds-radius-sm) 0 0;
  cursor: pointer;
  color: var(--ds-on-surface);
  position: relative;
}
.tabs [role=tab][aria-selected=true] {
  color: var(--ds-primary);
  box-shadow: inset 0 -2px 0 var(--ds-primary);
}
.tabs .panels {
  padding: 12px 0;
}
.tabs [role=tabpanel] {
  display: none;
}
.tabs [role=tabpanel].is-active {
  display: block;
}

.snackbar-host {
  position: fixed;
  inset: auto 0 18px 0;
  display: grid;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  z-index: 3000;
}

.snackbar {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #222;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: var(--ds-elev-2);
  transform: translateY(8px);
  opacity: 0;
  animation: sb-in 0.18s ease-out forwards;
}

.snackbar__action {
  background: transparent;
  border: 0;
  color: var(--ds-primary);
  cursor: pointer;
}

@keyframes sb-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* Tooltip simple via data-tip */
[data-tip] {
  position: relative;
}

[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 8px);
  white-space: nowrap;
  background: #111;
  color: #fff;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  z-index: 4000; /* passe au-dessus des voisins */
}

[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 4px);
}

/* IMPORTANT :
   Si l’élément a aussi un ripple, on laisse dépasser le tooltip
   tout en “clipsant” le ripple au rayon du bouton. */
.btn[data-tip],
[data-ripple][data-tip] {
  overflow: visible; /* pour le tooltip */
  clip-path: inset(0 round var(--ds-radius-sm, 8px)); /* le ripple reste confiné */
}

/* Option WRAPPER (si un parent a overflow:hidden) :
   <span class="tip" data-tip="..."><button class="btn" data-ripple>…</button></span>
   —> le tooltip est porté par le wrapper, le ripple reste confiné dans le bouton. */
.tip[data-tip] {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.tip[data-tip] .btn {
  overflow: hidden;
}

.check, .radio {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 0.55rem;
  align-items: center;
  user-select: none;
}
.check input, .radio input {
  appearance: none;
  width: 0;
  height: 0;
  position: absolute;
  pointer-events: none;
}
.check .box, .check .dot, .radio .box, .radio .dot {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ds-outline);
  border-radius: 4px;
  background: var(--ds-surface);
  display: grid;
  place-content: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.check .dot, .radio .dot {
  border-radius: 50%;
}
.check .mark, .radio .mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  transform: scale(0);
  background: var(--ds-primary);
  transition: transform 0.12s ease;
}
.check .dot .mark, .radio .dot .mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.check input:checked + .box, .check input:checked + .dot, .radio input:checked + .box, .radio input:checked + .dot {
  border-color: var(--ds-primary);
  background: color-mix(in oklab, var(--ds-primary) 18%, white);
}
.check input:checked + .box .mark, .check input:checked + .dot .mark, .radio input:checked + .box .mark, .radio input:checked + .dot .mark {
  transform: scale(1);
}

.check:focus-within .box, .radio:focus-within .dot {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.fab {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 5000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 28px;
  background: var(--ds-primary, #0ea5e9);
  color: var(--ds-on-primary, #fff);
  box-shadow: var(--ds-elev-3, 0 10px 18px rgba(0, 0, 0, 0.14), 0 6px 10px rgba(0, 0, 0, 0.1));
  cursor: pointer;
  /* pour le ripple (ton système l’exige sur [data-ripple]) */
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.fab:hover {
  box-shadow: var(--ds-elev-4, 0 14px 24px rgba(0, 0, 0, 0.16), 0 8px 12px rgba(0, 0, 0, 0.12));
}

.fab--sm {
  height: 40px;
  border-radius: 20px;
  padding: 0 14px;
}

.fab__icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
}

/* état caché utilisable par le JS */
.fab--hidden {
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  pointer-events: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ds-outline);
  background: var(--ds-surface);
  color: var(--ds-on-surface);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.chip:hover {
  background: var(--ds-state);
}

.chip[data-selected=true] {
  border-color: var(--ds-primary);
  background: color-mix(in oklab, var(--ds-primary) 18%, white);
  color: var(--ds-primary);
}

.chip__avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ccc;
}

.chip__remove {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.badge {
  position: relative;
  display: inline-block;
}

.badge__dot, .badge__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--ds-primary);
  color: var(--ds-on-primary);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
  box-shadow: var(--ds-elev-2);
}

.badge__dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  padding: 0;
}

/* Linéaire */
.progress {
  --value: 0; /* 0..100 */
  height: 4px;
  width: 100%;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress__bar {
  width: calc(var(--value) * 1%);
  height: 100%;
  background: var(--ds-primary);
  transition: width 0.2s ease;
}

.progress[aria-busy=true] .progress__bar {
  position: absolute;
  left: 0;
  width: 40%;
  animation: indet 1.2s ease-in-out infinite;
}

@keyframes indet {
  0% {
    left: -40%;
  }
  50% {
    left: 60%;
  }
  100% {
    left: 100%;
  }
}
/* Circulaire (spinner) */
.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.15);
  border-top-color: var(--ds-primary);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.slider {
  /* tailles paramétrables */
  --track-h: 4px;
  --thumb: 18px;
  --track-bg: rgba(0,0,0,.12);
  display: grid;
  gap: 8px;
}

.slider input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  height: var(--thumb);
  margin: 0;
  padding: 0;
  cursor: pointer;
}

/* ===== WebKit / Chromium / Edge ===== */
.slider input[type=range]::-webkit-slider-runnable-track {
  height: var(--track-h);
  background: var(--track-bg);
  border-radius: 999px;
}

.slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb);
  height: var(--thumb);
  border-radius: 50%;
  background: var(--ds-primary);
  border: 2px solid #fff;
  box-shadow: var(--ds-elev-2, 0 2px 6px rgba(0, 0, 0, 0.2));
  /* centrage : (rail - pouce)/2 */
  margin-top: calc((var(--track-h) - var(--thumb)) / 2);
}

/* ===== Firefox ===== */
.slider input[type=range]::-moz-range-track {
  height: var(--track-h);
  background: var(--track-bg);
  border-radius: 999px;
}

.slider input[type=range]::-moz-range-thumb {
  width: var(--thumb);
  height: var(--thumb);
  border-radius: 50%;
  background: var(--ds-primary);
  border: 2px solid #fff;
  box-shadow: var(--ds-elev-2, 0 2px 6px rgba(0, 0, 0, 0.2));
}

/* valeur à côté */
.slider__value {
  font-size: 0.9rem;
  color: var(--ds-muted, #6b7280);
}

/* focus ring optionnel */
.slider input[type=range]:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 0.25rem rgba(14, 165, 233, 0.4));
}

body.no-scroll {
  overflow: hidden;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2100;
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(86vw, 320px);
  background: var(--ds-surface);
  color: var(--ds-on-surface);
  box-shadow: var(--ds-elev-3);
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  z-index: 2200;
  display: flex;
  flex-direction: column;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__header {
  padding: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--ds-outline);
}

.drawer__content {
  padding: 12px 8px;
  overflow: auto;
}

.drawer__item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}

.drawer__item:hover {
  background: var(--ds-state);
}

.expansion {
  border: 1px solid var(--ds-outline);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  overflow: hidden;
}

.expansion + .expansion {
  margin-top: 10px;
}

.expansion > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  position: relative;
}

.expansion > summary::-webkit-details-marker {
  display: none;
}

.expansion > summary::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transition: transform 0.2s ease;
}

.expansion[open] > summary::after {
  transform: translateY(-50%) rotate(0);
}

.expansion__body {
  padding: 10px 14px 14px;
  line-height: 1.6;
}

.select {
  position: relative;
  display: inline-grid;
  gap: 6px;
  min-width: 220px;
}

.select label {
  font-size: 0.85rem;
  color: var(--ds-muted);
}

.select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--ds-outline);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-surface);
  cursor: pointer;
}

.select__trigger:hover {
  background: var(--ds-state);
}

.select__icon {
  margin-left: 10px;
}

.select__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--ds-surface);
  border: 1px solid var(--ds-outline);
  border-radius: 8px;
  box-shadow: var(--ds-elev-3);
  padding: 6px 0;
  display: none;
  z-index: 2100;
}

.select.is-open .select__menu {
  display: block;
}

.select__option {
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.select__option:hover {
  background: var(--ds-state);
}

.select__option[aria-selected=true] {
  color: var(--ds-primary);
}

.alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--ds-radius-md);
  border: 1px solid var(--ds-outline);
  background: color-mix(in oklab, var(--ds-primary) 6%, white);
}

.alert__icon {
  font-weight: 700;
}

.alert__title {
  font-weight: 600;
  margin-bottom: 4px;
}

.alert__close {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.alert--success {
  border-color: rgba(34, 197, 94, 0.3333333333);
  background: rgba(34, 197, 94, 0.0823529412);
}

.alert--warning {
  border-color: rgba(245, 158, 11, 0.3333333333);
  background: rgba(245, 158, 11, 0.0823529412);
}

.alert--error {
  border-color: rgba(239, 68, 68, 0.3333333333);
  background: rgba(239, 68, 68, 0.0823529412);
}

.pagination {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--ds-outline);
  border-radius: 999px;
  padding: 4px;
}

.page, .page-nav {
  appearance: none;
  background: transparent;
  border: 0;
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  padding: 0 10px;
  color: var(--ds-on-surface);
}

.page:hover, .page-nav:hover {
  background: var(--ds-state);
}

.page[aria-current=page] {
  background: color-mix(in oklab, var(--ds-primary) 18%, white);
  color: var(--ds-primary);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--ds-muted, #666);
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .sep {
  opacity: 0.6;
}

.breadcrumbs .current {
  color: var(--ds-on-surface, #111);
  font-weight: 600;
}

.divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  margin: 16px 0;
  border: 0;
}

.list {
  display: grid;
  gap: 4px;
  background: var(--ds-surface, #fff);
  border-radius: var(--ds-radius-md, 12px);
  box-shadow: var(--ds-elev-1, 0 1px 2px rgba(0, 0, 0, 0.08));
  padding: 4px;
}

.list__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.list__item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.list__icon {
  width: 24px;
  height: 24px;
  opacity: 0.72;
}

.list__title {
  font-weight: 500;
  color: var(--ds-on-surface, #111);
}

.list__meta {
  font-size: 0.85rem;
  color: var(--ds-muted, #666);
}

.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--ds-radius-md, 12px);
  box-shadow: var(--ds-elev-1, 0 1px 2px rgba(0, 0, 0, 0.08));
  background: var(--ds-surface, #fff);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.data-table th, .data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.data-table thead th {
  font-weight: 600;
  color: var(--ds-muted, #666);
  position: sticky;
  top: 0;
  background: var(--ds-surface, #fff);
  z-index: 1;
}

.data-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.03);
}

.data-table th[data-sort] {
  cursor: pointer;
  user-select: none;
}

.data-table th[data-sort] .sort {
  margin-left: 6px;
  opacity: 0.5;
  font-size: 0.9em;
}

.data-table th[aria-sort=asc] .sort::after {
  content: "▲";
}

.data-table th[aria-sort=desc] .sort::after {
  content: "▼";
}

.data-table th[aria-sort] .sort {
  opacity: 1;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #e9ecef;
  border-radius: 8px;
  min-height: 12px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-100%);
  animation: skel 1.2s infinite;
}

@keyframes skel {
  to {
    transform: translateX(100%);
  }
}
.skeleton--text {
  height: 14px;
}

.skeleton--avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton--rect {
  height: 120px;
}

.banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 8px 0 16px;
  background: color-mix(in srgb, var(--ds-primary, #0ea5e9) 12%, white);
  color: #0b3a4a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--ds-radius-md, 12px);
}

.banner__msg {
  line-height: 1.4;
}

.banner__close {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  opacity: 0.7;
}

.banner__close:hover {
  opacity: 1;
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  display: grid;
  align-items: center;
  background: var(--ds-surface, #fff);
  color: var(--ds-on-surface, #111);
  padding: 0 clamp(12px, 4vw, 20px);
  transition: box-shadow 0.18s ease, backdrop-filter 0.18s ease;
}

.appbar__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.appbar__title {
  font-weight: 600;
  font-size: 1.05rem;
}

.appbar__actions {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
}

.appbar.is-scrolled {
  box-shadow: var(--ds-elev-2, 0 4px 12px rgba(0, 0, 0, 0.08));
  backdrop-filter: saturate(1.2) blur(6px);
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--ds-surface, #fff);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav__row {
  display: grid;
  grid-auto-flow: column;
  justify-content: space-around;
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 10px;
}

.bottom-nav__item {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 64px;
  font-size: 0.8rem;
  color: var(--ds-muted, #666);
}

.bottom-nav__item[aria-current=page] {
  color: var(--ds-primary, #0ea5e9);
  font-weight: 600;
}

.bottom-nav__icon {
  width: 24px;
  height: 24px;
}

dialog.bottom-sheet {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 720px;
  inset: auto 0 0 0;
  background: var(--ds-surface, #fff);
  color: var(--ds-on-surface, #111);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--ds-elev-3, 0 18px 48px rgba(0, 0, 0, 0.24));
  transform: translateY(100%);
  transition: transform 0.24s ease;
}

dialog.bottom-sheet[open] {
  transform: translateY(0);
}

dialog.bottom-sheet::backdrop {
  background: rgba(0, 0, 0, 0.36);
}

.bottom-sheet__handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  margin: 8px auto 6px;
}

.bottom-sheet__body {
  padding: 10px 16px 16px;
}

.dropzone {
  border: 2px dashed rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background: color-mix(in srgb, var(--ds-primary, #0ea5e9) 4%, #fff);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone.is-dragover {
  border-color: var(--ds-primary, #0ea5e9);
  background: color-mix(in srgb, var(--ds-primary, #0ea5e9) 10%, #fff);
}

.dropzone__hint {
  color: var(--ds-muted, #666);
  font-size: 0.95rem;
}

.dropzone__list {
  margin-top: 10px;
  text-align: left;
  font-size: 0.9rem;
}

.dropzone__list li {
  margin: 4px 0;
}

.toast-host {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0));
  display: grid;
  gap: 8px;
  z-index: 2000;
}

.toast {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  box-shadow: var(--ds-elev-3, 0 18px 48px rgba(0, 0, 0, 0.24));
  animation: toast-in 0.18s ease-out;
}

.toast__action {
  background: none;
  border: 0;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
}

.toast--info {
  background: #1e88e5;
}

.toast--success {
  background: #2e7d32;
}

.toast--warn {
  background: #ed6c02;
}

.toast--error {
  background: #d32f2f;
}

@keyframes toast-in {
  from {
    transform: translateY(6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.popover-anchor {
  position: relative;
  display: inline-block;
}

.popover {
  position: fixed;
  min-width: 200px;
  max-width: min(92vw, 420px);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ds-surface, #fff);
  color: var(--ds-on-surface, #111);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--ds-elev-3, 0 18px 48px rgba(0, 0, 0, 0.24));
  transform-origin: top left;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
  z-index: 1500;
}

.popover.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s;
}

.popover__item {
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.popover__item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.textarea {
  display: grid;
  gap: 6px;
}

.textarea textarea {
  width: 100%;
  min-height: 76px;
  resize: none;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  font: inherit;
  line-height: 1.5;
}

.textarea textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--ds-primary, #0ea5e9) 26%, transparent);
}

.textarea__count {
  font-size: 0.85rem;
  color: var(--ds-muted, #666);
  text-align: right;
}

.textarea--error textarea {
  border-color: #d32f2f;
}

.textarea--error .textarea__count {
  color: #d32f2f;
}

.toggle {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.06);
  padding: 6px;
  border-radius: 12px;
}

.toggle .btn {
  border-radius: 8px;
  padding: 6px 12px;
  background: transparent;
}

.toggle .btn[aria-pressed=true] {
  background: var(--ds-primary, #0ea5e9);
  color: var(--ds-on-primary, #fff);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.avatar--lg {
  width: 48px;
  height: 48px;
}

.avatar__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.72);
  display: none;
  place-items: center;
}

.loading-overlay.is-open {
  display: grid;
}

.loading-overlay__spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(0, 0, 0, 0.12);
  border-top-color: var(--ds-primary, #0ea5e9);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.form-field {
  display: grid;
  gap: 6px;
}

.form-field input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  font: inherit;
  background: #fff;
}

.form-field--ok input {
  border-color: #2e7d32;
}

.form-field--error input {
  border-color: #d32f2f;
}

.form-msg {
  font-size: 0.85rem;
  color: var(--ds-muted, #666);
}

.form-field--ok .form-msg {
  color: #2e7d32;
}

.form-field--error .form-msg {
  color: #d32f2f;
}

.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px;
  border-radius: 16px;
  background: var(--ds-surface, #fff);
  color: var(--ds-on-surface, #111);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--ds-elev-1, 0 6px 16px rgba(0, 0, 0, 0.12));
}

.empty__icon {
  font-size: 42px;
  line-height: 1;
}

.empty__title {
  font-weight: 700;
  font-size: 1.1rem;
}

.empty__msg {
  color: var(--ds-muted, #666);
}

/* Thème clair par défaut via variables déjà utilisées */
:root {
  --ds-surface: #fff;
  --ds-on-surface: #111;
  --ds-muted: #666;
}

/* Thème sombre */
:root[data-theme=dark] {
  --ds-surface: #121212;
  --ds-on-surface: #f5f7fa;
  --ds-muted: #a9b0b8;
  --ds-elev-1: 0 1px 2px rgba(0,0,0,.5);
  --ds-elev-2: 0 4px 12px rgba(0,0,0,.6);
  --ds-elev-3: 0 12px 32px rgba(0,0,0,.65);
  color-scheme: dark;
  background: #0d0f12;
}

.stepper {
  display: grid;
  gap: 16px;
}

.stepper__track {
  display: grid;
  gap: 14px;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center;
}

.stepper__item {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  color: var(--ds-muted, #666);
}

.stepper__bullet {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e7e7e9;
  color: #333;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.stepper__label {
  font-size: 0.9rem;
}

.stepper__item--active .stepper__bullet {
  background: var(--ds-primary, #0ea5e9);
  color: var(--ds-on-primary, #fff);
}

.stepper__item--done .stepper__bullet {
  background: #17c964;
  color: #fff;
}

.stepper__controls {
  display: flex;
  gap: 8px;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.1333333333);
}

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 0.35s ease;
}

.carousel__slide {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.carousel__slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.carousel__nav {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.carousel__btn {
  pointer-events: auto;
  border: 0;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  margin: 0 8px;
}

.carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5333333333);
  border: 1px solid rgba(0, 0, 0, 0.2666666667);
  cursor: pointer;
}

.carousel__dot[aria-current=true] {
  background: #fff;
}

.progress-circular {
  --size: 64px;
  --thickness: 8px;
  --value: 0; /* 0..100 */
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: conic-gradient(var(--ds-primary, #0ea5e9) calc(var(--value) * 1%), #e7e7e9 0);
  mask: radial-gradient(farthest-side, transparent calc(50% - var(--thickness)), #000 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(50% - var(--thickness)), #000 0);
  display: grid;
  place-items: center;
  color: var(--ds-on-surface, #111);
}

.progress-circular__label {
  font-size: 0.8rem;
}

/* Base */
.rating {
  --size: 26px;
  --gap: 8px;
  --active: var(--ds-primary, #0ea5e9);
  --inactive: #c9c9ce;
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
}

.rating__value {
  font-size: 0.9rem;
  color: var(--ds-muted, #666);
  min-width: 2.2em;
  text-align: right;
}

.rating--stars {
  gap: var(--gap);
}

.rating--stars .rating__star {
  width: var(--size);
  height: var(--size);
  color: var(--inactive);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease, color 0.12s ease;
  outline: none;
}

.rating--stars .rating__star svg {
  width: calc(var(--size) + 2px);
  height: calc(var(--size) + 2px);
  display: block;
}

.rating--stars .rating__star[data-active=true] {
  color: var(--active);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.05));
}

.rating--stars .rating__star:is(:hover, :focus-visible) {
  transform: scale(1.12);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--ds-elev-1, 0 6px 16px rgba(0, 0, 0, 0.06));
}

.table thead th {
  text-align: left;
  padding: 12px;
  background: #f7f7f8;
  position: sticky;
  top: 0;
  z-index: 1;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.table td {
  padding: 12px;
  border-top: 1px solid #f0f0f2;
}

.table tbody tr:nth-child(even) {
  background: #fafafb;
}

th[data-sort] {
  cursor: pointer;
  user-select: none;
}

th[data-sort]::after {
  content: attr(data-order);
  margin-left: 6px;
  font-size: 0.8rem;
  color: #9aa0a6;
}

/* Date Picker (single & range) */
[data-date-picker] {
  position: relative;
  display: inline-block;
  font: inherit;
}

/* Champ déclencheur */
[data-date-picker] .dp__input {
  width: 220px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  line-height: 40px;
  cursor: pointer;
}

[data-date-picker] .dp__input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
  border-color: #93c5fd;
}

/* Popover (masqué par défaut) */
[data-date-picker] .dp__popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1500;
  width: 288px;
  background: var(--ds-surface, #fff);
  color: var(--ds-on-surface, #111);
  border-radius: 12px;
  box-shadow: var(--ds-elev-3, 0 14px 38px rgba(0, 0, 0, 0.18));
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
}

/* Ouvert */
[data-date-picker].is-open .dp__popover {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

/* Header */
.dp__header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 8px;
}

.dp__month {
  font-weight: 600;
}

.dp__nav {
  display: flex;
  gap: 6px;
}

.dp__btn {
  height: 32px;
  min-width: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.dp__btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Jours de semaine */
.dp__weekgrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 0 4px 6px;
  color: var(--ds-muted, #6b7280);
  font-size: 0.85rem;
}

.dp__dow {
  text-align: center;
}

/* Grille jours */
.dp__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 0 4px 6px;
}

.dp__cell {
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.dp__cell:hover {
  background: rgba(0, 0, 0, 0.06);
}

.dp__cell:focus-visible {
  outline: 2px solid rgba(14, 165, 233, 0.45);
  outline-offset: 2px;
}

.dp__cell.is-outside {
  color: var(--ds-muted, #94a3b8);
}

.dp__cell.is-disabled {
  color: var(--ds-muted, #94a3b8);
  opacity: 0.6;
  cursor: not-allowed;
}

.dp__cell.is-today {
  box-shadow: inset 0 0 0 2px rgba(14, 165, 233, 0.35);
  border-radius: 8px;
}

.dp__cell.is-selected {
  background: var(--ds-primary, #0ea5e9);
  color: var(--ds-on-primary, #fff);
}

.dp__cell.is-in-range {
  background: rgba(14, 165, 233, 0.12);
}

.dp__cell.is-range-edge {
  background: var(--ds-primary, #0ea5e9);
  color: var(--ds-on-primary, #fff);
}

/* Footer */
.dp__footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 4px 0;
}

.dp__action {
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.06);
  cursor: pointer;
  font: inherit;
}

.dp__action:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Time Picker — 100% data-attributes */
[data-time-picker] {
  position: relative;
  display: inline-block;
}

/* Champ */
[data-time-picker] .tp__input {
  width: 140px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  line-height: 40px;
  cursor: pointer;
}

[data-time-picker] .tp__input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
  border-color: #93c5fd;
}

/* Menu (popover) — masqué par défaut */
[data-time-picker] .tp__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1600;
  background: var(--ds-surface, #fff);
  color: var(--ds-on-surface, #111);
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
  display: grid;
  grid-template-columns: 1fr 16px 1fr; /* heures | : | minutes */
  gap: 8px;
  padding: 8px;
  /* caché par défaut mais sans casser la mise en page du container */
  visibility: hidden;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
}

/* Ouvert */
[data-time-picker].is-open .tp__menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

[data-time-picker] .tp__col {
  max-height: 220px;
  overflow: auto;
  padding: 4px;
  width: 80px;
}

[data-time-picker] .tp__sep {
  display: grid;
  place-items: center;
  width: 16px;
  font-weight: 700;
  color: var(--ds-muted, #6b7280);
}

[data-time-picker] .tp__opt {
  display: grid;
  place-items: center;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

[data-time-picker] .tp__opt:hover,
[data-time-picker] .tp__opt.is-active {
  background: rgba(0, 0, 0, 0.06);
}

.ac {
  position: relative;
  display: inline-block;
  width: 280px;
}

.ac__input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.ac__input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
  border-color: #93c5fd;
}

.ac__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1600;
  background: var(--ds-surface, #fff);
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
  padding: 6px;
  display: none;
  max-height: 260px;
  overflow: auto;
}

.ac.is-open .ac__menu {
  display: block;
}

.ac__option {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: block;
}

.ac__option[aria-selected=true], .ac__option:hover {
  background: rgba(0, 0, 0, 0.06);
}

.ac__empty {
  padding: 10px;
  color: var(--ds-muted, #6b7280);
}

.ac__mark mark {
  background: #fde68a;
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}

.tag-input {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 44px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  width: 100%;
  max-width: 520px;
}

.tag-input:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0f172a;
  font-size: 0.92rem;
}

.tag-chip__remove {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.7;
}

.tag-chip__remove:hover {
  opacity: 1;
}

.tag-input__field {
  flex: 1 1 120px;
  min-width: 120px;
  border: 0;
  outline: none;
  padding: 6px;
  font: inherit;
  background: transparent;
}

.fab-dial {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
}

.fab-dial__actions {
  display: grid;
  gap: 10px;
  position: absolute;
  right: 0;
  bottom: 56px; /* empilé au-dessus du FAB principal */
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.fab-dial.is-open .fab-dial__actions {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* réutilise .fab existant */
.fab--mini {
  height: 40px;
  border-radius: 20px;
  padding: 0 12px;
}

.nav-rail {
  position: sticky;
  top: 0;
  width: 88px;
  min-height: 100vh;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  gap: 6px;
}

.rail-item {
  width: 72px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  grid-template-rows: 24px auto;
  place-items: center;
  color: #334155;
  text-decoration: none;
}

.rail-item:hover {
  background: rgba(14, 165, 233, 0.1);
}

.rail-item.is-active {
  background: rgba(14, 165, 233, 0.18);
  color: #0ea5e9;
}

.rail-item .icon {
  width: 24px;
  height: 24px;
}

.rail-item .label {
  font-size: 0.72rem;
}

.color-picker {
  display: grid;
  grid-template-columns: repeat(6, 28px);
  gap: 10px;
}

.color-picker .swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  background: var(--c, #000);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.color-picker .swatch.is-selected {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

.tree {
  --indent: 16px;
  display: grid;
  gap: 4px;
}

.tree__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: default;
}

.tree__item:hover {
  background: rgba(14, 165, 233, 0.08);
}

.tree__toggle {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}

.tree__children {
  display: grid;
  gap: 4px;
  margin-left: var(--indent);
}

.tree__children[hidden] {
  display: none;
}

.tree__label {
  flex: 1;
}

.range-dual {
  width: 320px;
  position: relative;
}

.range-dual__track {
  position: relative;
  height: 4px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  margin: 10px 0 18px;
}

.range-dual__fill {
  position: absolute;
  height: 100%;
  background: var(--ds-primary);
  border-radius: 999px;
}

.range-dual input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  background: none;
  pointer-events: none; /* on n’attrape que le pouce */
}

.range-dual input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ds-primary);
  border: 2px solid #fff;
  box-shadow: var(--ds-elev-2);
}

.range-dual input[type=range]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ds-primary);
  border: 2px solid #fff;
  box-shadow: var(--ds-elev-2);
}

.range-dual__values {
  display: flex;
  justify-content: space-between;
  color: #475569;
  font-size: 0.92rem;
}

.table-select {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: var(--ds-elev-1);
  border-radius: 12px;
  overflow: hidden;
}

.table-select thead th {
  text-align: left;
  font-weight: 600;
  color: #334155;
  padding: 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.table-select tbody td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.table-select tbody tr:hover {
  background: #f8fafc;
}

.bulkbar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 10px 0;
  border: 1px dashed #93c5fd;
  border-radius: 10px;
  background: #eff6ff;
  color: #0f172a;
}

.bulkbar.is-visible {
  display: flex;
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 1500;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.appbar__title {
  font-weight: 600;
  color: #0f172a;
}

.appbar__spacer {
  flex: 1;
}

.appbar__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.appbar--searching .appbar__title,
.appbar--searching [data-appbar-search-open] {
  display: none;
}

.appbar__search {
  display: none;
  flex: 1;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 6px 10px;
}

.appbar--searching .appbar__search {
  display: flex;
}

.appbar__search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font: inherit;
}

:root {
  --primary: #3f7d4e;
  --ds-primary: #3f7d4e;
  --ds-on-primary: #fff;
  --ds-surface: #fcfaf6;
  --ds-on-surface: #1f2a22;
  --ds-outline: rgba(63, 125, 78, 0.12);
  --ds-muted: #617063;
  --ds-state: rgba(63, 125, 78, 0.10);
  --ds-font: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --page-gutter: clamp(1.25rem, 4vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  background: linear-gradient(180deg, #f6f1e8 0%, #fcfaf6 55%, #fff 100%);
  color: #1f2a22;
  font-family: var(--ds-font);
}

body {
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.textfield {
  width: 100%;
  border: 1px solid rgba(31, 42, 34, 0.12);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font-size: 0.98rem;
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #3f7d4e 0%, #28553a 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(40, 85, 58, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 42, 34, 0.12);
  color: #1f2a22;
}

.btn-lg {
  min-height: 54px;
  padding-inline: 1.6rem;
}

.btn-block {
  width: 100%;
}

.btn-link {
  color: #1f2a22;
  font-weight: 600;
}

.homepage {
  overflow: hidden;
}

.hero-shell {
  padding: 1.5rem var(--page-gutter) 3rem;
}

.site-header,
.hero,
.section,
.final-cta,
.site-footer,
.partners-strip {
  width: min(1180px, 100% - var(--page-gutter) * 2);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
}

.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8a5a3b 0%, #3f7d4e 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(138, 90, 59, 0.18);
}

.site-nav, .site-header__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #617063;
  font-weight: 600;
  padding: 0.55rem 0.9rem 0.8rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(63, 125, 78, 0.08);
  color: #1f2a22;
}

.site-nav a.is-active {
  position: relative;
  font-weight: 800;
  text-decoration-line: underline;
  text-decoration-color: #28553a;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.38rem;
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.16rem;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3f7d4e 0%, #28553a 100%);
  box-shadow: 0 6px 16px rgba(40, 85, 58, 0.2);
  opacity: 0.9;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 430px);
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(63, 125, 78, 0.1);
  color: #28553a;
  font-weight: 700;
  font-size: 0.85rem;
}

.eyebrow--light {
  background: rgba(255, 255, 255, 0.15);
  color: #f3efe9;
}

.hero h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 1.02;
  max-width: 12ch;
  letter-spacing: -0.04em;
}

.hero__lead {
  max-width: 60ch;
  font-size: 1.08rem;
  color: #617063;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0;
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 720px;
}

.hero__trust div {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 42, 34, 0.08);
  backdrop-filter: blur(12px);
}

.hero__trust strong, .step-number {
  display: block;
  font-size: 1.2rem;
}

.hero__trust span {
  color: #617063;
  font-size: 0.95rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(31, 42, 34, 0.08);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 24px 80px rgba(31, 42, 34, 0.1);
  backdrop-filter: blur(10px);
}

.hero-card__label {
  margin: 0 0 0.5rem;
  color: #8a5a3b;
  font-weight: 700;
}

.hero-card h2 {
  margin: 0 0 1rem;
  font-size: 1.7rem;
  line-height: 1.1;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.choice-chip {
  border: 1px solid rgba(63, 125, 78, 0.18);
  background: rgba(63, 125, 78, 0.08);
  color: #28553a;
  border-radius: 999px;
  padding: 0.72rem 0.95rem;
  font-weight: 700;
}

.hero-form-card {
  padding: 1rem;
  border-radius: 20px;
  background: #fcfaf6;
  border: 1px solid rgba(31, 42, 34, 0.06);
}

.field-label {
  display: block;
  margin: 0 0 0.45rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.hero-form-card .textfield {
  margin-bottom: 0.95rem;
}

.check-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  color: #617063;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #3f7d4e;
  font-weight: 900;
}

.partners-strip {
  padding: 0 0 2.5rem;
}

.partners-strip p {
  text-align: center;
  color: #617063;
  margin: 0 0 1rem;
}

.partners-strip__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.partners-strip__logos span {
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 42, 34, 0.08);
  color: #58645a;
  font-weight: 700;
}

.section {
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.section--soft {
  background: linear-gradient(180deg, rgba(243, 237, 228, 0.55), rgba(255, 255, 255, 0));
}

.section--accent {
  background: transparent;
  color: #fff;
}

.section-heading {
  max-width: 760px;
  text-align: center;
  margin: 0 auto 2.4rem;
}

.section-heading--left {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2 {
  margin: 0.85rem 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
}

.section-heading p {
  color: #617063;
  margin: 0;
}

.service-grid,
.steps-grid,
.reviews-grid {
  display: grid;
  gap: 1.25rem;
}

.service-grid {
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
}

.info-card,
.step-card,
.review-card,
.pillar-card,
.faq-item {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(31, 42, 34, 0.08);
  padding: 1.5rem;
  box-shadow: 0 14px 35px rgba(31, 42, 34, 0.06);
}

.info-card h3,
.step-card h3,
.review-card strong {
  margin-top: 0;
}

.info-card p,
.step-card p,
.review-card p,
.faq-item p {
  color: #617063;
}

.info-card ul {
  margin: 1rem 0;
  padding-left: 1.1rem;
  color: #617063;
}

.info-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  margin-top: 0.4rem;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  background: rgba(63, 125, 78, 0.1);
  border: 1px solid rgba(63, 125, 78, 0.16);
  color: #28553a;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(31, 42, 34, 0.06);
}

.featured-card a {
  background: linear-gradient(135deg, #3f7d4e 0%, #28553a 100%);
  border-color: transparent;
  color: #fff;
}

.featured-card {
  background: linear-gradient(180deg, rgba(63, 125, 78, 0.08), rgba(255, 255, 255, 0.98));
}

.card-tag {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(138, 90, 59, 0.12);
  color: #8a5a3b;
  font-size: 0.85rem;
  font-weight: 700;
}

.steps-grid,
.reviews-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: rgba(63, 125, 78, 0.1);
  color: #28553a;
}

.split-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 36px;
  background: linear-gradient(135deg, #274d39 0%, #7a5136 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(41, 34, 26, 0.22);
  overflow: hidden;
}

.split-feature::before,
.split-feature::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(8px);
}

.split-feature::before {
  width: 260px;
  height: 260px;
  top: -110px;
  right: -70px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 68%);
}

.split-feature::after {
  width: 240px;
  height: 240px;
  bottom: -110px;
  left: -70px;
  background: radial-gradient(circle, rgba(201, 146, 104, 0.18) 0%, rgba(201, 146, 104, 0) 70%);
}

.split-feature > * {
  position: relative;
  z-index: 1;
}

.split-feature > :first-child {
  max-width: 580px;
}

.split-feature h2 {
  margin: 1rem 0 1.15rem;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 9ch;
}

.split-feature p {
  margin: 0;
  max-width: 34ch;
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.pillars {
  display: grid;
  gap: 1.25rem;
}

.pillar-card {
  border-radius: 28px;
  padding: 1.6rem 1.6rem 1.55rem;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.pillar-card strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.pillar-card span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-bottom: 0;
}

.final-cta {
  padding: 0 0 5rem;
}

.final-cta__content {
  border-radius: 32px;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(135deg, rgba(243, 237, 228, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(31, 42, 34, 0.08);
  box-shadow: 0 24px 60px rgba(31, 42, 34, 0.08);
  text-align: center;
}

.final-cta__content h2 {
  margin: 1rem auto;
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.final-cta__content p {
  max-width: 56ch;
  margin: 0 auto;
  color: #617063;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 2.5rem;
  color: #617063;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 42, 34, 0.08);
}

@media (max-width: 1080px) {
  .hero,
  .service-grid {
    grid-template-columns: 1fr;
  }
  .split-feature {
    grid-template-columns: 1fr;
    padding: clamp(1.75rem, 4vw, 2.5rem);
  }
  .split-feature h2,
  .split-feature p,
  .split-feature > :first-child {
    max-width: none;
  }
  .featured-card {
    order: -1;
  }
}
@media (max-width: 860px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero__trust,
  .steps-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .site-footer {
    flex-direction: column;
  }
}
@media (max-width: 640px) {
  .hero-shell {
    padding-top: 0.75rem;
  }
  .site-header__actions {
    width: 100%;
    justify-content: center;
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }
  .hero-card {
    padding: 1rem;
  }
  .split-feature {
    padding: 1.4rem;
    border-radius: 26px;
  }
  .pillar-card {
    padding: 1.15rem;
    border-radius: 22px;
  }
  .section {
    padding: 3.5rem 0;
  }
}
/* ripple générique */
.btn, [data-ripple] {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: currentColor;
  opacity: 0.2;
  pointer-events: none;
  animation: ripple 0.45s ease-out forwards;
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}
.brand__accent {
  color: #3f7d4e;
}

.btn-ghost {
  min-height: auto;
  padding: 0.35rem 0.2rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #617063;
  font-weight: 700;
  box-shadow: none;
}

.page-glow {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.45;
  z-index: 0;
}

.page-glow--one {
  top: -100px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: rgba(63, 125, 78, 0.16);
}

.page-glow--two {
  top: 120px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: rgba(138, 90, 59, 0.14);
}

.hero-shell {
  position: relative;
  z-index: 1;
}

.pro-space {
  position: relative;
}

.pro-space--connected {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.pro-space__toggle {
  white-space: nowrap;
}

.pro-space__panel {
  position: absolute;
  top: calc(100% + 0.85rem);
  right: 0;
  width: min(360px, 100vw - 2rem);
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(31, 42, 34, 0.08);
  box-shadow: 0 22px 60px rgba(31, 42, 34, 0.14);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 20;
}

.pro-space__panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pro-login-form {
  display: grid;
  gap: 0.8rem;
}

.pro-space__separator {
  border: 0;
  border-top: 1px solid rgba(31, 42, 34, 0.1);
  margin: 1rem 0;
}

.pro-login-form__head {
  display: grid;
  gap: 0.18rem;
  margin-bottom: 0.25rem;
}

.pro-login-form__head strong {
  font-size: 1.02rem;
}

.pro-login-form__head span {
  color: #617063;
  font-size: 0.92rem;
}

.form-error {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(162, 49, 49, 0.08);
  border: 1px solid rgba(162, 49, 49, 0.18);
  color: #8f3030;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-success {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(30, 122, 77, 0.1);
  border: 1px solid rgba(30, 122, 77, 0.2);
  color: #1e6a48;
  font-size: 0.92rem;
  font-weight: 600;
}

.required-mark {
  color: #c03535;
  font-weight: 700;
}

.marketing-page .site-header,
.marketing-page .site-footer,
.marketing-page .section,
.marketing-page .final-cta {
  width: min(1180px, 100% - var(--page-gutter) * 2);
  margin-inline: auto;
}

.content-page-main {
  display: grid;
  gap: clamp(2.4rem, 5vw, 4rem);
  padding-block: 0.5rem 1.5rem;
}

.subpage-hero {
  width: min(1180px, 100% - var(--page-gutter) * 2);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 2rem;
  align-items: start;
  padding: 2rem 0 1rem;
}

.subpage-hero h1 {
  margin: 1rem 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.subpage-card {
  align-self: stretch;
}

.subpage-highlights {
  display: grid;
  gap: 1rem;
}

.subpage-highlights article {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(63, 125, 78, 0.08);
}

.subpage-highlights strong {
  font-size: 1.5rem;
  color: #28553a;
}

.subpage-highlights span {
  color: #617063;
}

.content-section {
  padding-top: 1rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.content-card ul {
  margin-bottom: 0;
}

.marketing-page[data-content-page] {
  isolation: isolate;
}

.subpage-hero--rich {
  align-items: stretch;
  gap: clamp(1.5rem, 3vw, 2.4rem);
}

.subpage-hero__copy {
  display: grid;
  align-content: start;
}

.reveal-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.subpage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.3rem 0 1.25rem;
}

.subpage-tag {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 42, 34, 0.08);
  color: #1f2a22;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(31, 42, 34, 0.06);
}

.subpage-proof-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.2rem;
}

.subpage-proof-inline article,
.subpage-mini-list div {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 42, 34, 0.08);
  backdrop-filter: blur(10px);
}

.subpage-proof-inline strong,
.subpage-mini-list strong {
  font-size: 1.1rem;
}

.subpage-proof-inline span,
.subpage-mini-list span,
.subpage-card__head p {
  color: #617063;
}

.subpage-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 237, 228, 0.92));
  box-shadow: 0 26px 64px rgba(31, 42, 34, 0.12);
}

.subpage-card__head h2 {
  margin: 0.15rem 0 0.45rem;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.subpage-card__head p {
  margin: 0;
}

.subpage-mini-list {
  display: grid;
  gap: 0.85rem;
}

.subpage-nav-shell {
  width: min(1180px, 100% - var(--page-gutter) * 2);
  margin: 0 auto;
}

.subpage-nav {
  position: sticky;
  top: 1rem;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.9rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 42, 34, 0.08);
  box-shadow: 0 18px 40px rgba(31, 42, 34, 0.08);
  backdrop-filter: blur(14px);
}

.subpage-nav button {
  appearance: none;
  border: 0;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(63, 125, 78, 0.08);
  color: #1f2a22;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.subpage-nav button:hover,
.subpage-nav button.is-active {
  background: linear-gradient(135deg, #3f7d4e 0%, #28553a 100%);
  color: #fff;
  transform: translateY(-1px);
}

.proof-band {
  width: min(1180px, 100% - var(--page-gutter) * 2);
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(243, 237, 228, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(31, 42, 34, 0.08);
  box-shadow: 0 24px 60px rgba(31, 42, 34, 0.09);
}

.proof-band__intro {
  margin-bottom: 1.25rem;
  max-width: 760px;
}

.proof-band__intro h2 {
  margin: 0.9rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.proof-band__intro p {
  margin: 0;
  color: #617063;
}

.proof-band__grid,
.timeline-grid,
.resource-grid {
  display: grid;
  gap: 1.25rem;
}

.proof-band__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-card,
.resource-card,
.content-faq-item {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 42, 34, 0.08);
  padding: 1.45rem;
  box-shadow: 0 16px 42px rgba(31, 42, 34, 0.08);
}

.timeline-card {
  position: relative;
  overflow: hidden;
}

.timeline-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 125, 78, 0.12), rgba(63, 125, 78, 0));
}

.timeline-card__index {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: rgba(63, 125, 78, 0.12);
  color: #28553a;
  font-weight: 800;
}

.timeline-card h3,
.resource-card h3 {
  margin: 0 0 0.55rem;
}

.timeline-card p,
.resource-card p {
  margin: 0;
  color: #617063;
}

.value-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 2.6rem);
  align-items: start;
}

.value-showcase__story {
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: 32px;
  background: linear-gradient(145deg, #254d39 0%, #7e5438 100%);
  color: #fff;
  box-shadow: 0 28px 70px rgba(37, 32, 24, 0.22);
}

.value-showcase__story h2 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.04;
}

.value-showcase__story p,
.value-showcase__list {
  color: rgba(255, 255, 255, 0.86);
}

.value-showcase__list {
  margin: 1.2rem 0 0;
  padding-left: 1.1rem;
}

.resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-card {
  min-height: 100%;
}

.resource-card__meta {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(63, 125, 78, 0.1);
  color: #28553a;
  font-size: 0.82rem;
  font-weight: 800;
}

.content-faq-list {
  display: grid;
  gap: 1rem;
}

.content-faq-item {
  padding: 0;
}

.content-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.35rem;
  font-weight: 800;
}

.content-faq-item summary::-webkit-details-marker {
  display: none;
}

.content-faq-item p {
  margin: 0;
  padding: 0 1.35rem 1.25rem;
  color: #617063;
}

.final-cta__content--rich {
  background: linear-gradient(135deg, rgba(243, 237, 228, 0.98), rgb(255, 255, 255));
}

.dashboard-shell {
  min-height: 100vh;
  padding: 1.25rem clamp(1rem, 3vw, 2rem) 3rem;
}

.dashboard-topbar,
.dashboard-main {
  width: min(1180px, 100% - var(--page-gutter) * 2);
  margin-inline: auto;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0 1.5rem;
}

.dashboard-topbar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-welcome {
  color: #617063;
}

.dashboard-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(31, 42, 34, 0.08);
  padding: 1.6rem;
  box-shadow: 0 16px 44px rgba(31, 42, 34, 0.08);
}

.dashboard-card--hero {
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(243, 237, 228, 0.94), rgba(255, 255, 255, 0.98));
}

.dashboard-card--hero h1 {
  margin: 0.8rem 0 0.9rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.dashboard-card--hero p,
.dashboard-card p {
  color: #617063;
  margin: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.plan-card h2,
.plan-card p {
  margin: 0;
}

.plan-card input[type=radio] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-card__pick {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(31, 42, 34, 0.28);
  background: rgba(255, 255, 255, 0.92);
  transition: all 0.2s ease;
}

.plan-card__pick::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.2s ease;
}

.plan-card:has(input[type=radio]:checked) {
  border-color: rgba(63, 125, 78, 0.35);
  box-shadow: 0 16px 34px rgba(31, 42, 34, 0.12);
  transform: translateY(-3px);
}

.plan-card input[type=radio]:checked + .plan-card__pick {
  border-color: rgba(40, 85, 58, 0.9);
  background: linear-gradient(135deg, #3f7d4e 0%, #28553a 100%);
}

.plan-card input[type=radio]:checked + .plan-card__pick::after {
  opacity: 1;
  transform: scale(1);
}

.plan-card:has(input[type=radio]:focus-visible) {
  outline: 2px solid rgba(63, 125, 78, 0.55);
  outline-offset: 2px;
}

.plan-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
  color: #617063;
}

.plan-card strong {
  color: #1f2a22;
  font-size: 1.3rem;
}

.plan-card__actions {
  margin-top: auto;
}

.plan-card__actions .btn {
  width: 100%;
}

.plan-card--featured {
  border-color: rgba(63, 125, 78, 0.24);
  background: linear-gradient(165deg, rgba(63, 125, 78, 0.12), rgba(255, 255, 255, 0.98));
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(31, 42, 34, 0.14);
}

.field-label--locked {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.field-label--locked::before {
  content: "🔒";
  font-size: 0.9rem;
}

.textfield--locked {
  background: linear-gradient(135deg, rgba(63, 125, 78, 0.08), rgba(122, 81, 54, 0.09));
  border-color: rgba(63, 125, 78, 0.35);
  color: #1f2a22;
  font-weight: 700;
  cursor: not-allowed;
}

.field-help {
  color: #617063;
  font-size: 0.82rem;
}

.pro-onboarding-form {
  display: grid;
  gap: 1rem;
}

.onboarding-progress {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1rem 0.4rem;
  border-radius: 18px;
  border: 1px solid rgba(31, 42, 34, 0.09);
  background: rgba(255, 255, 255, 0.9);
}

.onboarding-progress__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.onboarding-progress__bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 42, 34, 0.08);
  overflow: hidden;
}

.onboarding-progress__bar span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3f7d4e, #8a5a3b);
  transition: width 220ms ease;
}

.onboarding-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.onboarding-steps li {
  flex: 1 1 0;
  min-width: 110px;
  border-radius: 999px;
  border: 1px solid rgba(31, 42, 34, 0.1);
  padding: 0.45rem 0.7rem;
  text-align: center;
  font-size: 0.82rem;
  color: #617063;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(31, 42, 34, 0.03);
  opacity: 0.52;
  pointer-events: none;
}

.onboarding-steps li.is-active {
  border-color: rgba(63, 125, 78, 0.32);
  color: #1f2a22;
  background: rgba(63, 125, 78, 0.11);
  opacity: 1;
}

.onboarding-steps li.is-clickable {
  pointer-events: auto;
  cursor: pointer;
}

.onboarding-steps li.is-done {
  border-color: rgba(63, 125, 78, 0.42);
  color: #28553a;
  background: rgba(63, 125, 78, 0.18);
  opacity: 1;
}

.onboarding-steps li.is-done::before {
  content: "✓ ";
  font-weight: 900;
}

.onboarding-step[hidden] {
  display: none !important;
}

.onboarding-payment {
  border-radius: 20px;
  margin-top: 0.5rem;
}

.onboarding-payment h2 {
  margin-top: 0.65rem;
}

.onboarding-payment ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
  color: #617063;
  display: grid;
  gap: 0.4rem;
}

.onboarding-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.onboarding-actions [hidden] {
  display: none !important;
}

.pro-onboarding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pro-onboarding-grid > div {
  display: grid;
  gap: 0.35rem;
}

.pro-onboarding-grid > .pro-onboarding-grid__full {
  grid-column: 1/-1;
}

.pro-onboarding-form input[type=file] {
  padding: 0.55rem 0.75rem;
  color: #617063;
  cursor: pointer;
}

.pro-onboarding-form input[type=file]::file-selector-button {
  margin-right: 0.85rem;
  border: 0;
  border-radius: 10px;
  padding: 0.6rem 0.95rem;
  background: linear-gradient(135deg, #3f7d4e 0%, #28553a 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 16px rgba(40, 85, 58, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.pro-onboarding-form input[type=file]:hover::file-selector-button {
  transform: translateY(-1px);
  box-shadow: 0 11px 20px rgba(40, 85, 58, 0.25);
  filter: brightness(1.02);
}

.pro-onboarding-form input[type=file]:focus-visible::file-selector-button {
  outline: 3px solid rgba(63, 125, 78, 0.22);
  outline-offset: 2px;
}

.pro-onboarding-form input[type=file].is-filled::file-selector-button {
  background: linear-gradient(135deg, #2d8f4f 0%, #1f6c3b 100%);
  box-shadow: 0 10px 20px rgba(31, 108, 59, 0.28);
}

.manager-accordion-list {
  display: grid;
  gap: 0.8rem;
}

.manager-accordion-list details summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pro-workspace-card {
  display: grid;
  gap: 1rem;
}

.workspace-company {
  border: 1px solid rgba(31, 42, 34, 0.09);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 252, 250, 0.92));
  box-shadow: 0 10px 24px rgba(24, 39, 31, 0.06);
}

.workspace-company--featured {
  border-color: rgba(63, 125, 78, 0.25);
  background: linear-gradient(135deg, rgba(63, 125, 78, 0.09), rgba(255, 255, 255, 0.96));
}

.workspace-company__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.workspace-company__head h2 {
  margin: 0;
}

.workspace-company__badge {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(63, 125, 78, 0.13);
  color: #28553a;
  font-weight: 700;
  font-size: 0.82rem;
}

.workspace-company__meta {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.15rem;
}

.workspace-company__meta p {
  margin: 0;
}

.workspace-actions {
  align-items: center;
}

.workspace-actions form {
  margin-left: auto;
}

.workspace-section-title {
  margin: 0;
  font-size: 1.05rem;
  color: #28553a;
}

.workspace-empty-state {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(40, 118, 184, 0.08);
  color: #255f91;
}

.workspace-company-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-company-list__item {
  border: 1px solid rgba(31, 42, 34, 0.1);
  border-radius: 14px;
  padding: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 16px rgba(24, 39, 31, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.workspace-company-list__item--active {
  border-color: rgba(31, 42, 34, 0.1);
  background: rgba(255, 255, 255, 0.97);
}

.workspace-company-list__item--flagged {
  border-color: rgba(243, 160, 0, 0.8);
  box-shadow: 0 0 0 2px rgba(243, 160, 0, 0.14);
}

.workspace-company-list__item--deleted {
  border-style: dashed;
  border-color: rgba(31, 42, 34, 0.24);
  background: rgba(247, 247, 247, 0.95);
  box-shadow: none;
}

.workspace-company-list__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(24, 39, 31, 0.09);
}

.workspace-company-list__meta {
  display: grid;
  gap: 0.2rem;
}

.workspace-company-list__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.workspace-company-list__item span {
  color: #617063;
}

.workspace-flag-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.15rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(243, 160, 0, 0.16);
  color: #8a5a00 !important;
  font-size: 0.76rem;
  font-weight: 700;
}

.workspace-btn {
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  border-width: 1px;
}

.workspace-btn.workspace-btn--edit {
  background: #2d77b5;
  border-color: #2d77b5;
  color: #fff;
}

.workspace-btn.workspace-btn--delete {
  background: #b43535;
  border-color: #b43535;
  color: #fff;
}

.workspace-btn.workspace-btn--restore {
  background: #2d77b5;
  border-color: #2d77b5;
  color: #fff;
}

.workspace-btn.workspace-btn--edit:hover,
.workspace-btn.workspace-btn--restore:hover {
  background: #245f91;
  border-color: #245f91;
  color: #fff;
}

.workspace-btn.workspace-btn--delete:hover {
  background: #922a2a;
  border-color: #922a2a;
  color: #fff;
}

.workspace-btn.workspace-btn--alert {
  min-width: 44px;
  padding: 0.4rem 0.75rem;
  background: #f3a000;
  border-color: #f3a000;
  color: #1e1e1e;
  font-size: 1.1rem;
}

.workspace-btn.workspace-btn--alert:hover {
  background: #d88d00;
  border-color: #d88d00;
}

.pro-onboarding-form .is-invalid {
  border-color: #d88d00;
  box-shadow: 0 0 0 3px rgba(243, 160, 0, 0.2);
}

.pro-onboarding-form .is-highlighted-field {
  border-color: #b30000;
  box-shadow: 0 0 0 4px rgba(179, 0, 0, 0.2);
  background: #fff8f8;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .pro-space {
    width: 100%;
  }
  .pro-space__panel {
    left: 50%;
    right: auto;
    transform: translate(-50%, -10px);
  }
  .pro-space__panel.is-open {
    transform: translate(-50%, 0);
  }
  .dashboard-topbar,
  .dashboard-topbar__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .pro-onboarding-grid {
    grid-template-columns: 1fr;
  }
  .onboarding-actions {
    flex-direction: column;
  }
  .workspace-company__head,
  .workspace-company-list__item {
    flex-direction: column;
    align-items: flex-start;
  }
  .workspace-company-list {
    grid-template-columns: 1fr;
  }
  .workspace-actions form {
    margin-left: 0;
    width: 100%;
  }
  .subpage-hero,
  .content-grid,
  .proof-band__grid,
  .timeline-grid,
  .value-showcase,
  .resource-grid,
  .subpage-proof-inline {
    grid-template-columns: 1fr;
  }
  .subpage-nav {
    position: static;
  }
}
@media (max-width: 640px) {
  .site-header__actions {
    gap: 0.75rem;
  }
  .pro-space__panel {
    width: 100%;
  }
}
.start-auth-page {
  min-height: 100vh;
  padding: clamp(1.5rem, 4vw, 3rem) var(--page-gutter);
  display: flex;
  align-items: center;
}

.start-auth-shell {
  width: min(1020px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.4rem;
}

.start-auth-header {
  max-width: 760px;
}

.start-auth-header h1 {
  margin: 0.35rem 0;
  font-size: clamp(1.75rem, 2.8vw, 2.7rem);
  line-height: 1.18;
}

.start-auth-header p {
  margin: 0;
  color: #617063;
}

.start-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.start-auth-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 42, 34, 0.12);
  border-radius: 22px;
  padding: clamp(1.15rem, 3vw, 1.6rem);
  box-shadow: 0 20px 40px rgba(31, 42, 34, 0.08);
}

.start-auth-card h2 {
  margin: 0;
}

.start-auth-card > p {
  margin: 0.4rem 0 1rem;
  color: #617063;
}

@media (max-width: 860px) {
  .start-auth-page {
    align-items: flex-start;
  }
  .start-auth-grid {
    grid-template-columns: 1fr;
  }
}
