/* ── Modale Mon compte ───────────────────────────────────────────────────── */
#modal-account {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#modal-account[hidden] { display: none; }
/* Popup Sécurité (2026-09-03) : même habillage que Mon compte, PAR-DESSUS. */
#modal-security {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
}
#modal-security[hidden] { display: none; }
/* Popup « Changer mon adresse » (2026-10-14) : même étage que Sécurité, par-dessus Mon compte. */
#modal-email {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
}
#modal-email[hidden] { display: none; }
/* Copier le lien d'affiliation : LE composant du contact (vert 2 s au clic),
   en un cran plus grand (demande Mélanie 2026-09-03). */
.modal-contact-copy-lg { width: 32px; height: 32px; }
/* Intitulé + pilule sur la même ligne (section Sécurité). */
.modal-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.modal-account-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
}
.modal-account-box {
  position: relative;
  background: var(--bg, #fff);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  width: min(420px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
}
[data-theme="glass"] .modal-account-box {
  background: rgba(18,20,48,0.96);
  border-color: rgba(255,255,255,0.14);
}
.modal-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--border);
}
.modal-account-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  margin: 0;
}
.modal-account-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: background 0.12s;
}
.modal-account-close:hover { background: var(--hover-bg); color: var(--text); }
.modal-account-section {
  padding: 18px 24px;
}
.modal-account-label {
  /* Typo standard des titres de l'app (recette .block-title, demande Mélanie
     2026-09-03) : plus de capitales forcées, Première majuscule seulement.
     14px : un cran sous les titres de blocs (16px), hiérarchie de la modale. */
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
}

/* Prénom en PILULE (demande Mélanie 2026-09-05) : même recette que le lien
   d'affiliation ci-dessous, hauteur 28px comme la pilule de la langue
   (.csel-btn), focus signalé par un liseré indigo (pas de bordure au repos). */
#input-display-name.modal-account-input {
  height: 28px;
  border: none;
  background: var(--hover-bg);
  border-radius: 999px;
  padding: 0 14px;
  font-size: 12.5px;
  margin-bottom: 0;
}
#input-display-name.modal-account-input:focus { box-shadow: 0 0 0 1px var(--indigo); }

/* Lien d'affiliation en PILULE (demande Mélanie 2026-09-03) */
#account-ref-link {
  flex: 1;
  min-width: 0;
  border: none;
  background: var(--hover-bg);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 12.5px;
  color: var(--text);
}
.modal-account-value {
  font-size: 0.92rem;
  color: var(--text);
}
.modal-account-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}
.modal-account-danger-zone { }
.modal-account-danger-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 14px;
}
.modal-account-delete-btn {
  font-size: 0.85rem;
  color: #b04040;
  background: none;
  border: 1px solid rgba(176,64,64,0.35);
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.modal-account-delete-btn:hover {
  background: rgba(176,64,64,0.07);
  border-color: #b04040;
}
.modal-account-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface, #f9f9f9);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  margin-bottom: 14px;
}
.modal-account-input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px var(--indigo-l);
}
.modal-account-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.modal-account-cancel-delete {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  transition: background 0.15s;
}
.modal-account-cancel-delete:hover { background: var(--surface); }
.modal-account-confirm-delete {
  background: #b04040;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.modal-account-confirm-delete:hover { background: #8f2f2f; }

/* Inline form (prénom) */
/* « Changer mon adresse » (2026-10-14) : bouton sous l'adresse, ouvre #modal-email. */
#btn-show-change-email { margin-top: 8px; }
.modal-account-inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 0;
}
.modal-account-inline-form .modal-account-input {
  flex: 1;
  margin-bottom: 0;
}
/* Langue : la pilule (menu .csel-wrap, inline-flex sans flex:1) à gauche,
   Enregistrer poussé au bord DROIT, aligné sur celui du prénom (demande
   Mélanie 2026-09-05 ; l'ancienne règle visait #account-lang-switch, disparu
   le 2026-09-02, donc sans effet). */
.modal-account-inline-form .csel-wrap { margin-right: auto; }
/* Stack form (mot de passe) */
.modal-account-stack-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}
.modal-account-stack-form .modal-account-input:last-of-type {
  margin-bottom: 10px;
}
.modal-account-stack-form .modal-account-save-btn {
  align-self: flex-end;
}
/* Bouton enregistrer / modifier */
.modal-account-save-btn {
  background: var(--indigo);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 9px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s;
}
.modal-account-save-btn:hover { background: var(--indigo-hover); }
/* Messages retour (ok / erreur) */
.modal-account-msg {
  font-size: 0.82rem;
  margin-top: 8px;
}
.modal-account-msg-ok    { color: #2e7d32; }
.modal-account-msg-error { color: #b04040; }
/* ── Modale contact ───────────────────────────────────────────── */
#modal-contact {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#modal-contact[hidden] { display: none; }
.modal-contact-email-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 8px 6px 16px;
}
.modal-contact-email {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--indigo);
  text-decoration: none;
}
.modal-contact-email:hover { text-decoration: underline; }
.modal-contact-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.modal-contact-copy:hover { background: var(--hover-bg); color: var(--indigo); }
.modal-contact-copy.copied { color: #4ba876; }

#theme-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  -webkit-backdrop-filter: var(--surface-backdrop);
  backdrop-filter: var(--surface-backdrop);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: var(--shadow-drag);
  z-index: 300;
  width: 230px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#theme-menu[hidden] { display: none; }
.theme-menu-title {
  /* « Majuscule puis minuscules », plus de capitales (règle Mélanie, rappel du 2026-10-23) */
  font-family: "Geist", Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-muted);
  padding: 4px 6px 6px;
}
.theme-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  text-align: left;
  transition: background .12s, border-color .12s;
}
.theme-item:hover {
  background: var(--hover-bg);
}
.theme-item.theme-active {
  border-color: var(--indigo);
  background: var(--hover-bg);
}
.theme-preview {
  width: 56px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.theme-preview-lishu {
  background:
    radial-gradient(60% 70% at 15% 20%, rgba(246, 213, 194, 0.82) 0%, transparent 60%),
    radial-gradient(55% 65% at 82% 82%, rgba(240, 199, 214, 0.74) 0%, transparent 60%),
    linear-gradient(135deg, #f8ede0 0%, #f4e5d4 45%, #f0dcd4 75%, #eedbd8 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.52);
}
.theme-preview-lishu::after {
  content: "";
  position: absolute;
  inset: 8px 8px auto 8px;
  height: 4px;
  background: linear-gradient(90deg, #b06840, #7a4c38);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(176, 104, 64, 0.48);
  opacity: .9;
}
.theme-preview-ocean {
  background:
    radial-gradient(60% 70% at 15% 20%, rgba(191, 226, 234, 0.85) 0%, transparent 60%),
    radial-gradient(55% 65% at 82% 82%, rgba(175, 206, 236, 0.80) 0%, transparent 60%),
    linear-gradient(135deg, #f0e8d8 0%, #ede4d2 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.52);
}
.theme-preview-ocean::after {
  content: "";
  position: absolute;
  inset: 8px 8px auto 8px;
  height: 4px;
  background: linear-gradient(90deg, #338196, #2e5f78);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(46, 95, 120, 0.48);
  opacity: .9;
}
.theme-preview-classic {
  background: #f8f7f4;
  border: 1px solid #e0ddd4;
  box-shadow: inset 0 0 0 4px #ffffff;
}
.theme-preview-classic::after {
  content: "";
  position: absolute;
  inset: 8px 8px auto 8px;
  height: 4px;
  background: #5c6bc0;
  border-radius: 2px;
  opacity: .85;
}
.theme-preview-glass {
  background:
    radial-gradient(60% 80% at 20% 30%, rgba(111,154,192,0.35) 0%, transparent 65%),
    radial-gradient(85% 110% at 80% 80%, rgba(27,90,108,1) 0%, transparent 60%),
    linear-gradient(180deg, #2a3563 0%, #34437a 100%);  /* = fond Nocturne (2026-10-08) */
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.04);
}
.theme-preview-glass::after {
  content: "";
  position: absolute;
  inset: 8px 8px auto 8px;
  height: 4px;
  background: #8eb8ff;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(142, 184, 255, 0.7);
  opacity: .9;
}

.theme-preview-aurora {
  background:
    radial-gradient(60% 70% at 20% 25%, rgba(255,220,180,0.70) 0%, transparent 60%),
    radial-gradient(55% 65% at 80% 80%, rgba(240,180,210,0.60) 0%, transparent 60%),
    linear-gradient(135deg, #FDDBB4 0%, #F9C5C5 40%, #F0B8D4 70%, #E8C4E8 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.50);
}
.theme-preview-aurora::after {
  content: "";
  position: absolute;
  inset: 8px 8px auto 8px;
  height: 4px;
  background: linear-gradient(90deg, #C47090, #8A5070);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(196, 112, 144, 0.55);
  opacity: .9;
}
.theme-preview-forest {
  background:
    radial-gradient(60% 70% at 20% 25%, rgba(232, 240, 220, 0.70) 0%, transparent 60%),
    radial-gradient(55% 65% at 80% 80%, rgba(200, 221, 212, 0.60) 0%, transparent 60%),
    linear-gradient(135deg, #E8F0DC 0%, #D4E8C8 40%, #C8DDD4 70%, #C0D8D0 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.50);
}
.theme-preview-forest::after {
  content: "";
  position: absolute;
  inset: 8px 8px auto 8px;
  height: 4px;
  background: linear-gradient(90deg, #5A7A62, #3A6050);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(74, 122, 88, 0.55);
  opacity: .9;
}
.theme-label {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.theme-sub {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 1px;
}
.theme-menu-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}
.theme-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text);
  transition: background .12s;
  user-select: none;
}
.theme-toggle-row:hover { background: var(--hover-bg); }

/* Extra-points menu needs a solid dark background in Nocturne —
   the default surface opacity (0.62) lets the header bleed through */
[data-theme="glass"] #extra-points-menu {
  background: rgba(16, 18, 40, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
[data-theme="glass"] #btn-house-system,
[data-theme="glass"] #btn-extra-points,
[data-theme="glass"] .prof-sel-btn {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 13px;
}
[data-theme="glass"] #p-search {
  background-color: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  border-radius: 13px;
}
[data-theme="glass"] #birth-form input[type="text"],
[data-theme="glass"] #birth-form input[type="number"],
[data-theme="glass"] #birth-form input[type="time"],
[data-theme="glass"] #date-group {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  border-radius: 13px;
}
[data-theme="glass"] #solar-year,
[data-theme="glass"] #prof-year,
[data-theme="glass"] .sr-reloc-input,
[data-theme="glass"] .footer-date-group,
[data-theme="glass"] .footer-time-group,
[data-theme="glass"] .block-footer select {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  border-radius: 13px;
}

/* Phosphorescent glow on planet glyphs in glass theme */
[data-theme="glass"] .wheel-wrap text {
  filter: var(--wheel-glow);
}
/* Brighter aspect lines in glass theme */
[data-theme="glass"] .wheel-wrap line[data-asp-aspect] {
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.15));
}
/* Glass: focused planet dim is gentler against the dark backdrop */
[data-theme="glass"] .wheel-wrap .dimmed { opacity: 0.20; }

/* « Aspects signe dissocié » décoché : masquage instantané des lignes dissociées,
   sur toutes les roues, sans recalcul (bascule d'une classe sur <body>). */
body.lishu-no-dissociate svg line[data-asp-dissociate] { display: none !important; }

/* ── Settings modal ───────────────────────────────────────────── */
.settings-overlay {
  position: fixed; inset: 0;
  background: var(--modal-overlay);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.settings-overlay[hidden] { display: none; }
.settings-modal {
  background: var(--surface);
  -webkit-backdrop-filter: var(--surface-backdrop);
  backdrop-filter: var(--surface-backdrop);
  border-radius: var(--radius);
  box-shadow: var(--shadow-drag);
  border: 1px solid var(--border);
  /* 420 → 520 px (demande Mélanie 2026-09-27) : les libellés du dépliant
     « En transit » (« Toutes les conjonctions ») se pliaient sur deux lignes. */
  width: 520px;
  max-width: calc(100vw - 32px);
  display: flex; flex-direction: column;
  /* Dépliants « En transit » (2026-09-27) : le contenu peut dépasser l'écran
     → le CORPS défile, l'en-tête et le pied restent visibles (retour Mélanie :
     « je suis bloquée », pas de défilement quand tout est déplié). */
  max-height: calc(100vh - 48px);
}
.settings-body { overflow-y: auto; }
.settings-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}
/* « Réglages » plus grand (demande Mélanie 2026-08-24, 14 → 16px) */
.settings-title {
  font-family: 'Aileron', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0em;
}
/* Sous-titres « Aspects majeurs » / « Aspects mineurs » de la liste des aspects
   (demande Mélanie 2026-10-27) : typographie Lishu (Geist, « Majuscule puis
   minuscules »), serrés. */
.settings-minor-sep { padding: 0; margin: 0 0 -2px; }
.settings-minor-sep .settings-section-label {
  font-family: "Geist", sans-serif;
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0; text-transform: none;
  color: var(--text);
}
/* « Orbes & activation par aspect » : titre de section, EXACTEMENT le style de
   « Zodiaque » / « Événements du ciel » (règle partagée dans cycle-events.css,
   sélecteur .settings-section-title). */
/* Case + « i » entouré (infobulle standard au survol, même dessin que le ⓘ de la page Profils) */
.settings-check-row { display: flex; align-items: center; gap: 8px; }
.settings-i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box;
  /* contour de la MÊME couleur que la lettre (retour Mélanie : en Ocean, --border est blanc) */
  border: 1px solid currentColor; color: var(--text-muted);
  font-size: 10.5px; font-weight: 600; cursor: default; flex-shrink: 0;   /* flèche normale, pas de « ? » (retour Mélanie) */
}
/* Un vrai espace entre le dernier aspect majeur (Sextile) et « Aspects mineurs »
   (le sous-titre n'est pas toujours le voisin direct d'une ligne d'aspect : le
   volet « En transit » peut s'intercaler, d'où :not(:first-child)). */
.settings-minor-sep:not(:first-child) { margin-top: 16px; }
.settings-close {
  border: none; background: none;
  font-size: 16px; cursor: pointer;
  color: var(--text-muted); line-height: 1;
}
.settings-close:hover { color: var(--text); }
.settings-body {
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
/* « Orbes & activation par aspect », pas « ORBES & … » (demande Mélanie
   2026-08-24, même esprit que les entêtes du menu de profils le 2026-08-23) */
.settings-section-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .06em; color: var(--text-muted);
}
.settings-aspects { display: flex; flex-direction: column; gap: 8px; }
.settings-asp-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.settings-asp-enable {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; min-width: 160px;
}
.settings-asp-glyph { font-size: 16px; width: 20px; text-align: center; }
.settings-asp-name  { font-size: 13px; color: var(--text); }
.settings-asp-orb-wrap {
  display: flex; align-items: center; gap: 8px; flex: 1;
}
.asp-orb-range,
#settings-timeline-orb {
  flex: 1; accent-color: var(--indigo); cursor: pointer; height: 4px;
}
.asp-orb-val {
  font-size: 12px; color: var(--text-muted);
  min-width: 28px; text-align: right;
}
/* ── Orbes des transits par planète (2026-09-27, dépliant « En transit ») ── */
/* Chevron STANDARD de l'app : le même SVG que les pilules .csel-btn (retour
   Mélanie : « on a des chevrons qu'on utilise déjà », le ▾ texte était trop
   petit). Rotation à l'ouverture. */
.asp-tr-toggle {
  width: 24px; height: 24px; flex-shrink: 0;
  border: none; cursor: pointer; padding: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b6880' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 7px;
  border-radius: 50%;
  opacity: .8;
  transition: transform .15s, background-color .15s, opacity .15s;
}
.asp-tr-toggle:hover { background-color: var(--hover-bg); opacity: 1; }
.asp-tr-toggle.asp-tr-open { transform: rotate(180deg); }
.asp-tr-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--indigo);
  flex-shrink: 0; margin-left: 2px;
}
.asp-tr-panel {
  margin: 0 0 2px 24px; padding: 8px 10px;
  background: var(--hover-bg); border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.asp-tr-panel[hidden] { display: none !important; }
.asp-tr-title-suite { margin-top: 6px; }   /* volets angles En progression / En direction symbolique (2026-11-12) */
.asp-tr-title {
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  color: var(--text-muted);
}
.asp-tr-allrow, .asp-tr-prow {
  display: flex; align-items: center; gap: 8px;
}
.asp-tr-plabel { font-size: 12.5px; color: var(--text); min-width: 160px; }
.asp-tr-all, .asp-tr-porb {
  flex: 1; accent-color: var(--indigo); cursor: pointer; height: 4px;
}
.asp-tr-allval, .asp-tr-pval {
  font-size: 12px; color: var(--text-muted); min-width: 34px; text-align: right;
}
.asp-tr-del {
  background: none; border: none; cursor: pointer; padding: 0 2px;
  font-size: 14px; color: var(--text-muted); line-height: 1; flex-shrink: 0;
}
.asp-tr-del:hover { color: var(--indigo); }
/* Retour à Auto : petit bouton qui n'apparaît que quand une valeur est posée. */
.asp-tr-autobtn {
  background: none; border: 1px solid var(--border); border-radius: 50px;
  font-size: 10.5px; color: var(--text-muted); cursor: pointer;
  padding: 1px 8px; line-height: 1.4; flex-shrink: 0;
}
.asp-tr-autobtn:hover { border-color: var(--indigo); color: var(--indigo); }
.asp-tr-autobtn[hidden] { display: none !important; }
/* « Ajouter une planète » : pilule déroulante OFFICIELLE (custom-select.js) —
   le <select> natif est remplacé par .csel-btn/.csel-menu comme partout. */
.asp-tr-addwrap { align-self: flex-start; }
/* Téléphone (retour Mélanie 2026-09-27, capture : la pilule « Auto » sortait
   de l'écran) : l'encadré s'élargit — plus de retrait — et le libellé rend sa
   largeur réservée, la ligne tient alors en entier. Choix de Mélanie
   (« il suffit d'élargir l'encadré »), pas de passage sur deux lignes. */
@media (max-width: 560px) {
  .asp-tr-panel  { margin-left: 6px; padding: 8px; }
  .asp-tr-plabel { min-width: 0; }
}

.settings-divider {
  height: 1px; background: var(--border); margin: 4px 0;
}
.settings-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; cursor: pointer; color: var(--text);
}
/* Sélection des angles aspectés (« Aspects aux angles », 2026-08-22, revu sur
   retours Mélanie) : pilule officielle .csel-btn SUR LA LIGNE de la case + menu
   à cases rondes .ep-item. Fond du menu OPAQUE (var(--bg)) : un backdrop-filter
   imbriqué dans celui de la modale est ignoré par le navigateur, la recette
   .csel-menu y devient illisible. */
.settings-angles-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* Chevron « En transit » de la ligne (2026-10-13) : au bord droit, aligné sur
   ceux des lignes d'aspect (retour Mélanie). */
.settings-angles-row .asp-tr-toggle { margin-left: auto; }
.settings-angles-pick { position: relative; }
.settings-angles-pick .csel-btn { font-size: 12.5px; }
.settings-angles-menu {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 20;
  display: flex; flex-direction: column;
  min-width: 200px; padding: 6px;
  background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 30px -8px rgba(31, 26, 20, .25);
}
/* hidden vs display:flex : l'attribut hidden (display:none navigateur) perd
   contre la classe — on le réaffirme, sinon le menu reste déroulé en permanence
   (bug constaté par Mélanie 2026-08-22). */
.settings-angles-menu[hidden] { display: none !important; }
.settings-angle-sep { height: 1px; background: var(--border); margin: 4px 2px; }
.settings-check-hint {
  font-size: 11px; line-height: 1.35; color: var(--text-muted);
  margin: 2px 0 0 22px;
}

/* Cases rondes — identiques aux ctrl-check du bloc RS */
.settings-asp-enable input[type="checkbox"],
.settings-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  opacity: 0.6;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  transition: background-color .15s, border-color .15s, opacity .15s;
}
.settings-asp-enable input[type="checkbox"]:hover:not(:checked),
.settings-check input[type="checkbox"]:hover:not(:checked) {
  border-color: var(--indigo);
  opacity: 0.9;
}
.settings-asp-enable input[type="checkbox"]:checked,
.settings-check input[type="checkbox"]:checked {
  opacity: 1;
  background-color: var(--indigo);
  border-color: var(--indigo);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.5l2.5 2.5 4.5-5' stroke='%23fff' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.settings-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
}
.settings-btn-save {
  padding: 6px 18px;
  background: var(--indigo); color: white;
  border: none; border-radius: 6px; cursor: pointer; font-size: 13px;
}
.settings-btn-save:hover { background: var(--indigo-hover); }
.settings-btn-reset {
  padding: 6px 14px;
  background: none; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 6px; cursor: pointer; font-size: 13px;
}
.settings-btn-reset:hover { color: var(--text); border-color: var(--text-muted); }

