/* Ricavato da mockup/esempio.html (v5).
   Layout: intestazione bianca con logo e striscia blu notte come 4personality.it, accesso a colonna stretta, griglia di schede.
   Palette dal sito: blu notte per testi forti, pulsanti e striscia; grigi chiari per sfondi e cerchi; blu del puntino del menu (#5e7ff7) per il focus, grigio-viola #706c7e per i testi secondari come il sottotitolo.
   Verde/rosso solo come colori semantici di stato. */

/* Font serviti in locale (OFL, file e licenze in /fonts) e non da Google Fonts: così l'IP dei visitatori non va a terzi (GDPR).
   Nunito è variabile: un solo file per subset copre 400-700. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/nunito-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/nunito-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/poppins-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/poppins-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --strip-bg: #12213d;
  --strip-fg: #ffffff;
  --head-bg: #ffffff;
  --head-fg: #12213d;
  --primary: #12213d;
  --primary-hover: #293750;
  --on-primary: #ffffff;
  --bg: #fbfbfb;
  --circle: #ebebeb;
  --circle-2: #dadada;
  --surface: #ffffff;
  --fg: #12213d;
  --muted: #706c7e;
  --muted-on-bg: #5a5668; /* stessa tinta, più scura: testi sopra i cerchi grigi e le pillole */
  --line: #dcdfe5;
  --field-border: #858b9b; /* bordo dei campi: 3:1 su sfondo e superficie (WCAG 1.4.11); --line resta per i divisori */
  --focus: #5e7ff7;
  --link: #12213d;
  --ok: #1a6c44; /* 5.4:1 su --ok-bg: le pillole sono testo piccolo */
  --ok-bg: #e3efe7;
  --off-bg: #eceef2;
  --err: #b3261e;
  --err-bg: #f8e6e4;
  --track-off: #8a90a0;
  --track-on: #12213d;
  --knob-on: #ffffff;
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --radius: 10px;
  --radius-control: 8px;
  /* Strumento di lavoro, non sito vetrina: misure compatte col mouse. WCAG 2.2 AA chiede 24×24 px (2.5.8);
     i 44px (AAA 2.5.5, Apple) servono al tocco e valgono solo con @media (pointer: coarse), sotto. */
  --control-h: 2.25rem;    /* 36px: pulsanti e campi */
  --control-h-sm: 2rem;    /* 32px: azioni secondarie come "Modifica" */
  /* Scala tipografica in rem (rispetta la dimensione del testo scelta nel browser). */
  --fs-sm: .8125rem;  /* 13px: suggerimenti, date, stati */
  --fs-md: .9375rem;  /* 15px: testo, campi, messaggi */
  --fs-label: .875rem; /* 14px: etichette, pulsanti, voci di menu */
  --fs-lg: 1rem;      /* 16px: nome della demo, marchio, titoli di sezione */
  --fs-xl: 1.125rem;  /* 18px: nome del prodotto sui telefoni */
  --fs-brand: 1.5rem; /* 24px: nome del prodotto nell'intestazione */
  --fs-2xl: 1.25rem;  /* 20px: titolo delle pagine di accesso */
  --fs-code: 1.375rem; /* 22px: cifre del codice di accesso */
  --fs-field: var(--fs-md);
}
/* Touch: area di 44px e campi a 16px (sotto i 16px Safari iOS ingrandisce la pagina quando si tocca un campo). */
@media (pointer: coarse) {
  :root { --control-h: 2.75rem; --control-h-sm: 2.75rem; --fs-field: 1rem; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --strip-bg: #0a1428; --head-bg: #13213f; --head-fg: #ffffff;
    --primary: #e6ebf5; --primary-hover: #c9d3e6; --on-primary: #13213f;
    --bg: #0e1930; --circle: #15233f; --circle-2: #1b2b4b; --surface: #182746; --fg: #eef1f7; --muted: #aeb6c7; --muted-on-bg: #aeb6c7; --line: #2f4064; --field-border: #6d7891;
    --focus: #6cb9f0; --link: #eef1f7;
    --ok: #6fcf97; --ok-bg: #1f3a2b; --off-bg: #24345a; --err: #ff8a80; --err-bg: #4a2a28;
    --track-off: #6d7891; --track-on: #6cb9f0; --knob-on: #13213f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --strip-bg: #0a1428; --head-bg: #13213f; --head-fg: #ffffff;
  --primary: #e6ebf5; --primary-hover: #c9d3e6; --on-primary: #13213f;
  --bg: #0e1930; --circle: #15233f; --circle-2: #1b2b4b; --surface: #182746; --fg: #eef1f7; --muted: #aeb6c7; --muted-on-bg: #aeb6c7; --line: #2f4064; --field-border: #6d7891;
  --focus: #6cb9f0; --link: #eef1f7;
  --ok: #6fcf97; --ok-bg: #1f3a2b; --off-bg: #24345a; --err: #ff8a80; --err-bg: #4a2a28;
  --track-off: #6d7891; --track-on: #6cb9f0; --knob-on: #13213f; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* altrimenti display:grid/flex mostra i blocchi nascosti */
body {
  margin: 0;
  /* due cerchi grigi sovrapposti come nella home di 4personality.it: solo prima dell'accesso */
  background:
    radial-gradient(circle at 70% 45%, var(--circle) 0 28vmax, transparent calc(28vmax + 1px)) fixed,
    radial-gradient(circle at 105% 30%, var(--circle-2) 0 32vmax, transparent calc(32vmax + 1px)) fixed,
    var(--bg);
  color: var(--fg);
  font-family: var(--font-body); font-size: var(--fs-md); line-height: 1.5;
  min-height: 100%;
}
/* Pagine di lavoro (demo, configurazione): superficie pulita, senza cerchi né striscia del sito. */
body.is-work { background: var(--bg); }
body.is-work .strip { display: none; }
/* Preferenza del profilo «Striscia blu». */
body.is-work.has-strip .strip { display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; margin: 0; line-height: 1.25; }
h1 { font-size: var(--fs-2xl); color: var(--fg); }
/* Niente border-radius qui: cambierebbe la forma dell'elemento; il contorno segue già il raggio (Chrome 94+, Firefox 88+, Safari 16.4+). */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Titoli che ricevono il focus via script (tabindex="-1", non raggiungibili con Tab): niente contorno. */
[tabindex="-1"]:focus { outline: none; }

.strip {
  background: var(--strip-bg); color: var(--strip-fg); font-size: var(--fs-sm);
  height: 8px; /* solo una fascia di colore, senza testo */
}
.bar, .sections {
  background: var(--head-bg); color: var(--head-fg);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.bar { padding-block: 10px; box-shadow: 0 1px 0 var(--line); position: relative; z-index: 1; } /* sopra .sections, altrimenti il suo sfondo copre la riga */
/* Intestazione uguale in tutte le pagine e per tutti i ruoli (NN/g, coerenza): marchio a sinistra, utente ed "Esci" a destra. */
.bar-inner { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar-meta { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: var(--fs-sm); }
.user-email { overflow-wrap: anywhere; color: var(--muted); }
/* Avatar e menu dell'account (pattern disclosure): l'area cliccabile è la misura dei controlli, il cerchio 32px. */
.bar-meta { position: relative; }
.avatar-btn { border: 0; padding: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; min-width: var(--control-h); min-height: var(--control-h); }
.avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-lg { width: 40px; height: 40px; font-size: var(--fs-md); }
.avatar-xl { width: 72px; height: 72px; font-size: 1.5rem; }
.avatar-btn:hover .avatar { box-shadow: 0 0 0 3px var(--off-bg); }
.avatar-btn[aria-expanded="true"] .avatar { box-shadow: 0 0 0 3px var(--focus); }
.acct { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: min(280px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(18, 33, 61, .18); display: grid; }
.acct-head { display: flex; gap: 10px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.acct-head div { display: grid; min-width: 0; }
.acct-head strong { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-label); color: var(--fg); }
.acct-head strong.is-empty { color: var(--muted); font-weight: 500; }
.acct > button { font: inherit; font-size: var(--fs-md); text-align: left; background: none; border: 0; color: var(--fg); padding: 8px 12px; min-height: var(--control-h); cursor: pointer; font-weight: 600; }
.acct > button:hover { background: var(--off-bg); }
.acct > button:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.acct > button.acct-sep { border-top: 1px solid var(--line); }
/* Finestra "Profilo e foto". */
.profile-dlg { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); box-shadow: 0 20px 50px rgba(18, 33, 61, .25); }
.profile-dlg::backdrop { background: rgba(10, 20, 40, .45); }
.profile-form { display: grid; gap: 14px; }
.profile-form h2 { font-size: var(--fs-lg); }
.photo-row { display: flex; gap: 16px; align-items: center; }
.photo-actions { display: grid; gap: 6px; min-width: 0; }
.photo-actions .actions { gap: 8px 16px; }
.profile-form input[readonly] { background: var(--off-bg); color: var(--muted-on-bg); }
/* Barra delle sezioni: sempre presente dopo l'accesso; i commerciali vedono solo "Demo". */
.sections { border-bottom: 1px solid var(--line); }
.sections-inner { max-width: 1040px; margin: 0 auto; display: flex; gap: 20px; }
.sections a { color: var(--head-fg); font-weight: 600; font-size: var(--fs-label); text-decoration: none; padding: 8px 0 6px; border-bottom: 2px solid transparent; }
.sections a:hover { border-bottom-color: var(--line); }
.sections a[aria-current="page"] { border-bottom-color: var(--focus); }
/* Marchio ben visibile (scelta di Max): logo 40px e nome a 24px, più dei design system (logo ≤ 32px) perché qui il marchio
   deve reggere il confronto con la scheda di accesso; più piccoli sui telefoni. */
.brand { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-brand); min-width: 0; }
/* Logo di 4personality.it: "4" nero sul tema chiaro, bianco sul tema scuro (stesse varianti del sito). */
.brand-logo { display: block; height: 40px; width: auto; }
@media (max-width: 480px) { .brand { font-size: var(--fs-xl); gap: 10px; } .brand-logo { height: 32px; } }
.brand-logo-scuro { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo { display: none; }
  :root:not([data-theme="light"]) .brand-logo-scuro { display: block; }
}
:root[data-theme="dark"] .brand-logo { display: none; }
:root[data-theme="dark"] .brand-logo-scuro { display: block; }
.brand-name { padding-left: 14px; border-left: 1px solid var(--line); line-height: 1.2; }

main {
  padding-block: 24px 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Accesso */
.auth {
  max-width: 380px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; display: grid; gap: 16px;
  box-shadow: 0 10px 30px rgba(18,33,61,.08);
}
.auth p { margin: 0; color: var(--muted); }
.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: var(--fs-label); }
input[type="email"], input[type="text"], input[type="url"], input[type="password"], textarea, select {
  font: inherit; font-size: var(--fs-field); padding: 6px 10px; min-height: var(--control-h);
  border: 1px solid var(--field-border); border-radius: var(--radius-control);
  background: var(--surface); color: var(--fg); width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
textarea { resize: vertical; }
/* text-indent compensa lo spazio che letter-spacing aggiunge dopo l'ultima cifra: così il codice è centrato. */
#code { font-family: var(--font-display); font-size: var(--fs-code); letter-spacing: .5em; text-indent: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.hint { font-size: var(--fs-sm); color: var(--muted); }
/* Moduli di accesso e setup in un solo .field: più aria prima del pulsante e tra un campo e la label successiva. */
.field > .btn { margin-top: 8px; justify-self: start; }
.field > .hint + label { margin-top: 10px; }
/* Pulsanti in testo normale (niente MAIUSCOLO spaziato): si leggono prima e occupano meno. */
.btn, .btn-secondary {
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-label);
  border-radius: var(--radius-control); padding: 0 14px; min-height: var(--control-h); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; /* anche quando è un link */
}
.btn { border: 0; background: var(--primary); color: var(--on-primary); transition: background .15s; }
.btn:hover { background: var(--primary-hover); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-secondary { border: 1px solid var(--field-border); background: transparent; color: var(--fg); justify-self: start; }
.btn-secondary:hover { background: var(--off-bg); }
.btn-sm { min-height: var(--control-h-sm); padding: 0 10px; font-size: var(--fs-sm); }
.link { background: none; border: 0; color: var(--link); font: inherit; font-weight: 600; cursor: pointer; padding: 0; min-height: 24px; text-decoration: underline; text-underline-offset: 3px; }
.link[aria-disabled="true"] { color: var(--muted); text-decoration: none; cursor: default; }
.notice { border-radius: var(--radius-control); padding: 10px 12px; font-size: var(--fs-md); background: var(--ok-bg); color: var(--fg); border-left: 4px solid var(--ok); }
.alert {
  border-radius: var(--radius-control); padding: 10px 12px; font-size: var(--fs-md); background: var(--err-bg); color: var(--fg);
  border-left: 4px solid var(--err); display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
}
/* Area di almeno 24×24 px (WCAG 2.2, 2.5.8): la sola × sarebbe più piccola. */
.alert button { background: none; border: 0; color: var(--err); font: inherit; font-size: 1.25rem; line-height: 1; font-weight: 700; cursor: pointer; min-width: 28px; min-height: 28px; margin: -4px -6px -4px 0; border-radius: 6px; }

/* Demo */
.demos { max-width: 1040px; margin: 0 auto; display: grid; gap: 16px; }
.demos-head { display: grid; gap: 4px; }
.summary { margin: 0; font-size: var(--fs-sm); color: var(--muted-on-bg); font-variant-numeric: tabular-nums; }
.summary strong { color: var(--fg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: grid; gap: 12px; align-content: start; min-width: 0;
}
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card h2 { font-size: var(--fs-md); overflow-wrap: anywhere; }
.card p { margin: 0; color: var(--muted); font-size: var(--fs-md); }
/* Stato a parole una volta sola, sotto il nome: l'interruttore lo mostra già, niente pillola in più. */
.card-meta { display: grid; gap: 2px; font-size: var(--fs-sm); color: var(--muted); }
.card-state { font-weight: 700; color: var(--muted-on-bg); }
.card-state.on { color: var(--ok); }
.card-state.err { color: var(--err); }
.card.is-err { border-color: var(--err); }
.card p.card-err { font-size: var(--fs-sm); color: var(--err); }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 9px; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.err { background: var(--err-bg); color: var(--err); }

.switch {
  position: relative; width: 40px; height: 24px; flex: none; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--track-off); transition: background .2s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s;
}
.switch[aria-checked="true"] { background: var(--track-on); }
.switch[aria-checked="true"]::after { transform: translateX(16px); background: var(--knob-on); }
.switch[aria-busy="true"] { cursor: progress; opacity: .6; }
@media (pointer: coarse) {
  .switch { width: 48px; height: 28px; }
  .switch::after { width: 22px; height: 22px; }
  .switch[aria-checked="true"]::after { transform: translateX(20px); }
}
@media (prefers-reduced-motion: reduce) { .switch, .switch::after, .btn { transition: none; } }

/* Configurazione (admin.html): sezioni "annotate" una sotto l'altra, come le impostazioni di Shopify Polaris:
   titolo e descrizione a sinistra, modulo a una sola colonna a destra (Baymard, GOV.UK). Su mobile tutto in colonna. */
.settings { display: grid; }
.setting { display: grid; gap: 12px; padding-block: 20px; border-top: 1px solid var(--line); }
.setting:first-child { border-top: 0; padding-top: 0; }
.setting-info { display: grid; gap: 6px; align-content: start; justify-items: start; }
.setting-info h2 { font-size: var(--fs-lg); }
.setting-info p { margin: 0; color: var(--muted-on-bg); font-size: var(--fs-sm); max-width: 45ch; }
.setting-card { gap: 16px; }
.setting-view, .setting-form { display: grid; gap: 16px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
/* Riepilogo chiave/valore con bordo tra le righe, come la summary list di GOV.UK. */
.summary-list { margin: 0; display: grid; }
.summary-row { display: grid; gap: 2px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.summary-row:first-child { padding-top: 0; }
.summary-row dt { font-weight: 600; font-size: var(--fs-sm); color: var(--muted-on-bg); }
.summary-row dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 560px) { .summary-row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: baseline; } }
@media (min-width: 840px) {
  .setting { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
}
.check-list { border: 0; margin: 0; padding: 0; min-width: 0; }
#demosList { display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; min-height: 28px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; margin: 0; }
.check input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.check small { color: var(--muted); font-weight: 400; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Caricamento iniziale: niente pagina vuota finché il server non risponde. */
.boot { max-width: 1040px; margin: 0 auto; color: var(--muted-on-bg); text-align: center; }
/* Caricamento delle demo: schede scheletro al posto della griglia (nascoste agli screen reader, che sentono "Caricamento…"). */
.skel { border-radius: 6px; background: var(--off-bg); height: 14px; }
.skel.t { height: 18px; width: 60%; }
.skel.s { width: 35%; }
@media (prefers-reduced-motion: no-preference) { .skel { animation: pulse 1.4s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .55; } } }
/* Nessuna demo: spiega il perché e, agli admin, offre l'azione. */
.empty { justify-items: start; }
