/* Écran des comptes et de la sauvegarde */
.accounts-dialog .accounts-card { width: min(640px, 94vw); max-height: 90vh; overflow: auto; display: grid; gap: 14px; }
.accounts-dialog::backdrop { background: rgba(3, 7, 15, 0.82); backdrop-filter: blur(4px); }
.accounts-dialog.accounts-locked::backdrop { background: radial-gradient(circle at 30% 20%, rgba(67, 102, 255, 0.25), transparent 45%), #050a14; }
.accounts-eyebrow { margin: 0; color: var(--cyan); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.accounts-title { margin: -6px 0 0; font-size: 1.6rem; }
.accounts-lead { margin: -4px 0 4px; color: var(--muted); line-height: 1.5; }

.accounts-list { display: grid; gap: 10px; }
.accounts-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, .035); }
.accounts-row.active { border-color: rgba(99, 230, 255, .55); background: rgba(99, 230, 255, .06); }
.accounts-avatar { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 1.1rem; background: rgba(122, 183, 255, .16); border: 1px solid rgba(122, 183, 255, .35); }
.accounts-info { flex: 1; min-width: 0; display: grid; gap: 3px; }
.accounts-info small { color: var(--muted); font-size: .8rem; }
.accounts-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.accounts-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accounts-badge { padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; color: #04111d; background: var(--cyan); }
.accounts-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.accounts-actions .primary-button, .accounts-actions .secondary-button, .accounts-danger { padding: 8px 14px; }
.accounts-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, .04); color: inherit; cursor: pointer; }
.accounts-icon:hover { background: rgba(255, 255, 255, .1); }
.accounts-danger { border: 1px solid rgba(255, 95, 122, .6); border-radius: 12px; background: rgba(255, 95, 122, .18); color: #ffd6de; font-weight: 700; cursor: pointer; }
.accounts-confirm-text { color: #ffb7c3; font-size: .85rem; }
.accounts-rename { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.accounts-rename input { flex: 1; min-width: 120px; }

.accounts-create { display: grid; gap: 8px; padding: 14px; border: 1px dashed var(--border); border-radius: 14px; }
.accounts-create label { font-weight: 700; }
.accounts-create-row { display: flex; gap: 8px; }
.accounts-create-row input { flex: 1; min-width: 0; }
.accounts-create input, .accounts-rename input { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(0, 0, 0, .25); color: var(--text); font: inherit; }
.accounts-create input:focus, .accounts-rename input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.accounts-error { margin: 0; min-height: 1.2em; color: var(--danger); font-size: .85rem; }

.accounts-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.accounts-save-status { color: var(--success); font-size: .82rem; }
.accounts-header-button { font-size: .95rem; }

.accounts-row-wide { flex-wrap: wrap; }
.accounts-row-wide .accounts-actions { width: 100%; padding-left: 56px; justify-content: flex-start; }

@media (max-width: 560px) {
  .accounts-row { flex-wrap: wrap; }
  .accounts-actions { width: 100%; justify-content: flex-start; }
  .accounts-create-row { flex-direction: column; }
}
