/* Écran de connexion / inscription (account.js). Aplats, pas de dégradé. */

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: max(1.4rem, env(safe-area-inset-top)) 1.2rem max(1.4rem, env(safe-area-inset-bottom));
  background: var(--bg, #0b0c10);
  color: var(--text, #f4f7ee);
}

.auth-screen[hidden] {
  display: none;
}

.au-card {
  display: grid;
  gap: 0.9rem;
  width: min(24rem, 100%);
  text-align: center;
}

.au-logo {
  justify-self: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.3rem;
}

.au-card h1 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.au-sub {
  margin: -0.4rem 0 0.4rem;
  color: var(--muted, #9aa3b2);
  font-size: 0.95rem;
  line-height: 1.45;
}

.au-form {
  display: grid;
  gap: 0.7rem;
  text-align: left;
}

.au-field {
  display: grid;
  gap: 0.3rem;
}

.au-field span {
  padding-left: 0.2rem;
  color: var(--muted, #9aa3b2);
  font-size: 0.8rem;
  font-weight: 700;
}

.au-field input {
  width: 100%;
  min-height: 3.2rem;
  padding: 0 1rem;
  background: #14171c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.au-field input:focus {
  border-color: var(--accent, #7bf1a8);
}

.au-primary {
  min-height: 3.3rem;
  margin-top: 0.3rem;
  background: var(--accent, #7bf1a8);
  border: 0;
  border-radius: 999px;
  color: var(--accent-ink, #0e1410);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.au-primary:disabled {
  opacity: 0.6;
}

.au-msg {
  margin: 0;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.au-msg.bad {
  background: rgba(255, 94, 108, 0.14);
  color: #ff8a95;
}

.au-link,
.au-switch button {
  padding: 0.3rem;
  background: none;
  border: 0;
  color: var(--accent-text, #7bf1a8);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.au-switch {
  margin: 0;
  color: var(--muted, #9aa3b2);
  font-size: 0.92rem;
}

.au-legal {
  margin: 0;
  color: var(--muted, #9aa3b2);
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0.8;
}

.au-sent {
  margin: 0;
  padding: 1rem;
  background: #14171c;
  border-radius: 16px;
  line-height: 1.5;
}

/* Paramètres → Compte : confirmation de suppression */
.st-confirm {
  display: grid;
  gap: 0.35rem;
  color: var(--muted, #9aa3b2);
  font-size: 0.85rem;
}

.st-confirm input {
  min-height: 3rem;
  padding: 0 0.9rem;
  background: #14171c;
  border: 1px solid rgba(255, 94, 108, 0.35);
  border-radius: 14px;
  color: var(--text, #fff);
  font: inherit;
  letter-spacing: 0.08em;
}

/* Paramètres → Mon programme */
.st-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.st-chips button {
  padding: 0.6rem 0.95rem;
  background: var(--m-card, #14171c);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: var(--text, #fff);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
}

.st-chips button.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.st-seg.st-seg-7 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.st-preview .st-day {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  background: rgba(var(--tone), 0.16);
  border-radius: 12px;
  color: rgb(var(--tone));
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.st-preview .st-main > span {
  white-space: normal;
}

.st-cta {
  min-height: 3.3rem;
  margin-top: 0.4rem;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  color: var(--accent-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
}

/* Planche anatomique (body.js) */
.bd-fig {
  position: relative;
  display: block;
  width: 100%;
  isolation: isolate;
}

.bd-fig img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bd-fig .bd-base {
  position: relative;
}

.bd-ov {
  transition: opacity 320ms ease;
}

.mu-fig-wrap {
  width: 100%;
  max-width: 10.5rem;
}

.mr-crop {
  position: absolute;
  display: block;
}
