/* ═══════════════ Ranger ses carnets (23 octobre 2026, v3-015) ═══════════════
   Le « ··· » des enveloppes du tiroir et des lettres du carnet, et les feuilles de components/ranger.js
   (renommer, vider, supprimer, effacer une lettre). Classes .rg- (feuilles), .dr-more (tiroir). */

/* Le tiroir : le « ··· » se pose dans le rabat de l'enveloppe, en haut à droite. */
.dr-item { position: relative; }
.dr-more {
  position: absolute;
  top: 2px;
  right: 6px;
  z-index: 2;
  width: 44px;
  height: 34px;
  color: rgba(58, 26, 30, .66);
}
.dr-more svg { width: 22px; height: 22px; }
.dr-more:hover,
.dr-more:focus-visible { color: rgba(58, 26, 30, .95); }

/* Les feuilles : une action par ligne, son titre, puis ce qui arrive vraiment. */
.rg-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.rg-action {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 13px 16px;
  border: 0;
  border-radius: 16px;
  background: var(--porcelain);
  box-shadow: var(--emboss-sm);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.rg-action:active { box-shadow: var(--deboss); }
.rg-action:focus-visible { outline: 2px solid var(--ink-soft); outline-offset: 2px; }
.rg-action__icon { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; opacity: .8; }
.rg-action__icon svg { width: 20px; height: 20px; }
.rg-action__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rg-action__title { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.rg-action__desc { font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
.rg-action--danger .rg-action__title,
.rg-action--danger .rg-action__icon { color: var(--carmine, #C83342); }

.rg-form { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.rg-field { font-size: 17px; }
.rg-msg { margin: 0; min-height: 1em; font-size: 13.5px; color: var(--carmine, #C83342); }
.rg-msg:empty { display: none; }

/* Le carnet : la section « Ranger » de ses réglages (la dernière section était faite pour un seul bouton centré). */
.cn-sec--end { flex-direction: column; align-items: stretch; }
.cn-ranger { display: flex; flex-direction: column; gap: 10px; }
.cn-ranger .cn-leave { align-self: center; margin-top: 2px; }
