/* Verdex — Il mio Account → Impostazioni e Privacy → «Accesso biometrico» (shield-biometric.js).
 * Interruttore «Accesso rapido con Face ID / Passkey» con stato Attivo / Disattivato (un tocco per disattivare, senza
 * pulsanti né riquadri di conferma) e riattivazione (password, poi Face ID / Passkey). Stessa riga e stesso interruttore delle altre impostazioni; nessun
 * cambio di layout desktop né di proporzioni mobile. Testi lunghi vanno a capo, mai fuori riga.
 */
#account-modal #acct-sec-passkey { min-width: 0; }
#account-modal #acct-sec-passkey .acct-row-main { min-width: 0; overflow-wrap: anywhere; }
#account-modal #acct-pk-toggle .acct-row-ico svg { display: block; width: 1.15rem; height: 1.15rem; }
#account-modal .acct-pk-state[data-state="on"] { color: #047857; }
#account-modal .acct-pk-state[data-state="na"] { color: #64748B; }
#account-modal #acct-pk-toggle[aria-disabled="true"] { cursor: default; opacity: .7; }

#account-modal .acct-pk-panel {
  margin-top: .55rem; padding: .75rem .85rem; border: 1px solid var(--ah-line, #E5E9F0); border-radius: var(--ah-radius, 1rem);
  background: var(--ah-soft, #F8FAFC); color: var(--ah-ink, #0F172A); min-width: 0; overflow-wrap: anywhere;
}
#account-modal .acct-pk-panel[hidden], #account-modal #acct-pk-enable [hidden] { display: none !important; }
#account-modal .acct-pk-q { margin: 0; font-size: .95rem; font-weight: 800; line-height: 1.3; }
#account-modal .acct-pk-note { display: block; margin: .25rem 0 0; font-size: .84rem; font-weight: 600; line-height: 1.4; color: var(--ah-muted, #475569); }
#account-modal .acct-pk-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
#account-modal .acct-pk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.5rem; min-width: 0;
  padding: .5rem 1rem; border-radius: 999px; border: 2px solid transparent; font-size: .9rem; font-weight: 800; line-height: 1.2;
  cursor: pointer; text-align: center; overflow-wrap: anywhere;
}
#account-modal .acct-pk-btn svg { flex: 0 0 auto; }
#account-modal .acct-pk-btn:disabled { opacity: .6; cursor: default; }
#account-modal .acct-pk-btn:focus-visible, #account-modal .acct-pk-input:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; }
#account-modal .acct-pk-btn.is-main { background: var(--ah-brand, #1E3A8A); border-color: var(--ah-brand, #1E3A8A); color: #FFFFFF; }
#account-modal .acct-pk-btn.is-ghost { background: transparent; border-color: #CBD5E1; color: inherit; }
@media (hover: hover) {
  #account-modal .acct-pk-btn.is-ghost:hover:not(:disabled) { border-color: #94A3B8; }
}
#account-modal .acct-pk-input {
  display: block; width: 100%; min-width: 0; margin-top: .5rem; padding: .6rem .75rem; border-radius: .75rem;
  border: 2px solid #CBD5E1; background: #FFFFFF; color: #0F172A; font-size: 1rem; line-height: 1.3;
}
/* Campo «nome utente» solo per i gestori di password (abbina la password all'account giusto): mai visibile. */
#account-modal .acct-pk-user { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; pointer-events: none; }
#account-modal .acct-pk-msg[hidden] { display: none; }
#account-modal .acct-pk-msg { margin: .45rem 0 0; font-size: .84rem; font-weight: 700; line-height: 1.4; color: var(--ah-muted, #475569); overflow-wrap: anywhere; }
#account-modal .acct-pk-msg[data-tone="ok"] { color: #047857; }
#account-modal .acct-pk-msg[data-tone="err"] { color: #B91C1C; }

/* Notte */
html[data-ws-theme="night"]:not(.high-contrast) #account-modal .acct-pk-panel { background: #0F1934; border-color: #2D4E76; color: #E2E8F0; }
html[data-ws-theme="night"]:not(.high-contrast) #account-modal .acct-pk-note,
html[data-ws-theme="night"]:not(.high-contrast) #account-modal .acct-pk-msg { color: #ADC7EB; }
html[data-ws-theme="night"]:not(.high-contrast) #account-modal .acct-pk-msg[data-tone="ok"],
html[data-ws-theme="night"]:not(.high-contrast) #account-modal .acct-pk-state[data-state="on"] { color: #39EFBB; }
html[data-ws-theme="night"]:not(.high-contrast) #account-modal .acct-pk-msg[data-tone="err"] { color: #EC8383; }
html[data-ws-theme="night"]:not(.high-contrast) #account-modal .acct-pk-btn.is-ghost { border-color: #2D4E76; color: #ADC0EB; }
html[data-ws-theme="night"]:not(.high-contrast) #account-modal .acct-pk-btn.is-main { background: #3557C4; border-color: #5B7BE0; }
html[data-ws-theme="night"]:not(.high-contrast) #account-modal .acct-pk-input { background: #111C33; border-color: #2D4E76; color: #E2E8F0; }

/* Alto contrasto */
html.high-contrast #account-modal .acct-pk-panel { background: #FFFFFF; border: 2px solid #000000; color: #000000; }
html.high-contrast #account-modal :is(.acct-pk-note, .acct-pk-msg, .acct-pk-state) { color: #000000 !important; }
html.high-contrast #account-modal .acct-pk-btn { background: #FFFFFF !important; border: 2px solid #000000 !important; color: #000000 !important; }
html.high-contrast #account-modal .acct-pk-input { border: 2px solid #000000; }

/* Navigazione → «Apertura categorie in schermata dedicata» (shield-focus.js): stesso interruttore delle altre impostazioni. */
#account-modal #acct-sec-nav { min-width: 0; }
#account-modal #acct-sec-nav .acct-row-main { min-width: 0; overflow-wrap: anywhere; }
#account-modal #acct-cv-toggle .acct-row-ico svg { display: block; width: 1.15rem; height: 1.15rem; }
#account-modal .acct-cv-state[data-state="on"] { color: #047857; }
html[data-ws-theme="night"]:not(.high-contrast) #account-modal .acct-cv-state[data-state="on"] { color: #39EFBB; }
html.high-contrast #account-modal .acct-cv-state { color: #000000 !important; }
