/* ===== Figur-Auswahl mit Kreisfoto (figure-select.js) + Avatar im Account-Dialog-Kopf ===== */
.acc-avatar-lg { width: 56px; height: 56px; }
.acc-avatar-lg .acc-avatar-ini { font-size: 1.05rem; }
.acc-avatar-ini .i { width: 60%; height: 60%; display: block; margin: auto; color: var(--text-2); }
.acc-avatar-sm .acc-avatar-ini .i { width: 16px; height: 16px; }

.fsel { position: relative; min-width: 0; }
.fsel-btn { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font-size: 16px; text-align: left; cursor: pointer; }
.fsel-btn:hover { border-color: rgb(255 255 255 / .26); }
.fsel-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fsel-btn[aria-expanded=true] { border-color: var(--accent); }
.fsel-btn.is-none .fsel-name { color: var(--text-2); }
.fsel-av, .fsel-av-slot { display: inline-flex; flex: none; }
.fsel-av-slot[hidden] { display: none; }
.fsel-sub { margin-left: 8px; font-size: .8rem; font-weight: 500; letter-spacing: normal; color: var(--text-2); }
.fsel-sub::before { content: "· "; }

/* Sprachwahl (lang-select.js): wie im App-Kopf – Flagge + Kürzel */
.lsel-field .fsel { max-width: 320px; }
.lsel-field .fsel-btn, .lsel-field .fsel-opt { font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.lsel-field .fsel-btn { padding-left: 12px; }
.lsel-field .fsel-btn:not(:has(.flag)), .lsel-field .fsel-opt:not(:has(.flag)) { font-weight: 600; letter-spacing: normal; } /* „wie der Account“: ohne Flagge, normaler Text */
.lsel-field .flag { width: 24px; height: 16px; }
.fsel-list .fsel-opt .flag { width: 24px; height: 16px; }
.fsel-list .fsel-opt:has(.flag) { min-height: 44px; gap: 10px; padding-left: 12px; }
.fsel-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsel-chev { flex: none; display: inline-flex; color: var(--text-2); transition: transform .16s; }
.fsel-chev .i { width: 18px; height: 18px; }
.fsel-btn[aria-expanded=true] .fsel-chev { transform: rotate(180deg); }

/* Liste: Popover (top layer) mit fester Position am Knopf → nicht vom Dialog abgeschnitten */
.fsel-list { position: fixed; inset: auto; margin: 0; z-index: 1000; box-sizing: border-box; list-style: none; padding: 6px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 18px 40px -12px rgb(0 0 0 / .85); }
.fsel-list:not(.is-open) { display: none; }
.fsel-opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 10px 4px 6px; border-radius: 9px; cursor: pointer; font-size: .95rem; }
.fsel-opt.is-active { background: rgb(255 255 255 / .08); outline: 2px solid var(--accent); outline-offset: -2px; }
.fsel-opt[aria-selected=true] { color: var(--accent); font-weight: 600; }
.fsel-check { flex: none; display: inline-flex; visibility: hidden; color: var(--accent); }
.fsel-check .i { width: 18px; height: 18px; }
.fsel-opt[aria-selected=true] .fsel-check { visibility: visible; }
@media (forced-colors: active) { .fsel-opt.is-active { outline-color: Highlight; } }
@media (prefers-reduced-motion: reduce) { .fsel-chev { transition: none; } }

/* Dialog-Kopf „Account bearbeiten/hinzufügen“: Avatar + Titel + Handle · Figur */
.dlg-head h2.acc-head { display: flex; align-items: center; gap: 12px; }
.acc-head-av { display: inline-flex; flex: none; }
.acc-head-txt { display: grid; min-width: 0; }
.acc-head-sub { font-size: .85rem; font-weight: 500; color: var(--text-2); overflow-wrap: anywhere; }
@media (max-width: 480px) { .dlg-head h2.acc-head .acc-avatar-lg { width: 44px; height: 44px; } }
