/* =====================================================================================================================
   Avvio della pratica in 3 passi (21/10/2026) — percorso "Nuova analisi".
   Il titolare: «semplifichiamo la lettura e la comprensione delle policy e rendiamo figo il caricamento per l'analisi»,
   «curiamo noi le icone bianche sfondo colore brand». Vale solo dentro ".asser-ai-wizard-root.av-on" (classe messa dallo
   script quando AsserAiPortalConfig.avvioNuovo e' vero, cioe' quando questo file esiste) e nella finestra del costo
   con ".av-modal". Senza questo file il percorso resta quello di prima, identico.
   ===================================================================================================================== */
.av-on {
  --av-plum: #4b2338;
  --av-plum2: #7d445e;
  --av-rose: #b0424f;
  --av-pink: #e0789f;
  --av-hot: #ff6f9e;
  --av-teal: #3f9a87;
  --av-card: #fff;
  --av-soft: #f6f1ec;
  --av-line: rgba(75, 35, 56, 0.12);
  --av-text: #2a1f27;
  --av-head: #4b2338;
  --av-muted: #6a626a;
}

/* icone ASSER: linee bianche su tessera nei colori del marchio */
.av-ic {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, #d4709a 0%, #b0424f 48%, #4b2338 100%);
  box-shadow: 0 8px 18px rgba(176, 66, 79, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.av-ic svg { width: 21px; height: 21px; }
.av-ic--s { width: 28px; height: 28px; border-radius: 9px; box-shadow: 0 5px 12px rgba(176, 66, 79, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.av-ic--s svg { width: 16px; height: 16px; }

/* i tre passi */
.av-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(760px, 100%);
  margin: 0 auto 1.4rem;
  padding: 0;
  list-style: none;
}
.av-steps__i { display: flex; align-items: center; gap: 9px; color: var(--av-muted); font-size: 0.9rem; font-weight: 800; white-space: nowrap; }
.av-steps__i b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--av-soft); box-shadow: inset 0 0 0 1px var(--av-line); font-size: 0.82rem; }
.av-steps__i + .av-steps__i::before { content: ""; flex: 1 1 auto; width: clamp(24px, 8vw, 120px); height: 2px; margin-right: 1px; border-radius: 2px; background: var(--av-line); }
.av-steps__i.is-done { color: var(--av-teal); }
.av-steps__i.is-done b { background: var(--av-teal); box-shadow: none; color: #fff; }
.av-steps__i.is-on { color: var(--av-head); }
.av-steps__i.is-on b { background: linear-gradient(135deg, #ff8fbf, #b0424f); box-shadow: 0 0 0 5px rgba(224, 120, 159, 0.2); color: #fff; }
.av-steps__i.is-done + .av-steps__i::before, .av-steps__i.is-on::before { background: linear-gradient(90deg, var(--av-teal), #ff8fbf); }

/* ---- passo 1: Inizia --------------------------------------------------------------------------------------------------- */
.av-on .av-start .portal-title { margin-bottom: 1rem; }
.av-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.av-who__card {
  display: flex; align-items: flex-start; gap: 0.85rem; min-width: 0; padding: 1rem 1.05rem;
  border: 0; border-radius: 22px; background: var(--av-card); box-shadow: inset 0 0 0 1px var(--av-line);
  color: var(--av-text); font: inherit; text-align: left; cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.av-who__card:hover { box-shadow: inset 0 0 0 1px rgba(176, 66, 79, 0.45); }
.av-who__card.is-on { box-shadow: inset 0 0 0 2px var(--av-rose), 0 12px 28px rgba(176, 66, 79, 0.14); }
.av-who__card:focus-visible { outline: 3px solid rgba(176, 66, 79, 0.4); outline-offset: 2px; }
.av-who__copy { display: grid; gap: 0.2rem; min-width: 0; }
.av-who__copy strong { color: var(--av-head); font-size: 1rem; }
.av-who__copy small { color: var(--av-muted); font-size: 0.82rem; line-height: 1.45; }

.av-privacy {
  margin-top: 1.6rem; padding: 1.3rem 1.3rem 1.1rem; border-radius: 24px;
  background: linear-gradient(180deg, #fff, var(--av-soft)); box-shadow: inset 0 0 0 1px var(--av-line);
}
.av-privacy .portal-kicker { margin: 0 0 0.25rem; }
.av-privacy .wizard-section-title { margin: 0 0 0.35rem; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.2; }
.av-privacy__lead { margin: 0 0 1rem; color: var(--av-muted); font-size: 0.92rem; line-height: 1.5; }
.av-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 0.9rem; }
.av-fact { display: grid; gap: 0.55rem; margin: 0; padding: 0.8rem 0.85rem; border-radius: 16px; background: var(--av-card); box-shadow: inset 0 0 0 1px var(--av-line); color: var(--av-head); font-size: 0.84rem; font-weight: 700; line-height: 1.35; }
.av-consent {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 0.85rem;
  margin-top: 0.6rem; padding: 0.95rem 1rem; border-radius: 20px; background: var(--av-card); box-shadow: inset 0 0 0 1px var(--av-line);
  transition: box-shadow 0.2s ease;
}
.av-consent.is-on { box-shadow: inset 0 0 0 2px rgba(224, 120, 159, 0.7); }
.av-consent__copy { min-width: 0; }
.av-consent__title { display: block; color: var(--av-head); font-size: 0.98rem; font-weight: 800; line-height: 1.3; cursor: pointer; }
.av-consent__plain { margin: 0.2rem 0 0; color: var(--av-muted); font-size: 0.86rem; line-height: 1.45; }
.av-consent__full { margin-top: 0.4rem; }
.av-consent__full summary { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--av-plum2); font-size: 0.82rem; font-weight: 800; cursor: pointer; list-style: none; }
.av-consent__full summary::-webkit-details-marker { display: none; }
.av-consent__full summary::after { content: "▸"; font-size: 0.8em; transition: transform 0.2s ease; }
.av-consent__full[open] summary::after { transform: rotate(90deg); }
.av-consent__full p { margin: 0.5rem 0 0; padding: 0.7rem 0.85rem; border-radius: 12px; background: var(--av-soft); color: var(--av-muted); font-size: 0.8rem; line-height: 1.55; }
.av-consent__full p em { display: block; margin-bottom: 0.2rem; color: var(--av-plum2); font-size: 0.7rem; font-style: normal; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.av-switch { position: relative; display: inline-block; flex: none; width: 46px; height: 28px; margin-top: 0.15rem; cursor: pointer; }
.av-switch__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.av-switch__track { position: absolute; inset: 0; border-radius: 999px; background: #e3d9dd; transition: background-color 0.2s ease, box-shadow 0.2s ease; pointer-events: none; }
.av-switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22); transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.av-switch__input:checked + .av-switch__track { background: linear-gradient(135deg, #ff8fbf, #b0424f); box-shadow: 0 4px 12px rgba(224, 120, 159, 0.35); }
.av-switch__input:checked + .av-switch__track::after { transform: translateX(18px); }
.av-switch__input:focus-visible + .av-switch__track { outline: 3px solid rgba(176, 66, 79, 0.45); outline-offset: 2px; }
.av-privacy__link { margin: 0.9rem 0 0; color: var(--av-muted); font-size: 0.82rem; }
.av-privacy__link a { color: var(--av-plum2); font-weight: 800; }
.av-next-hint { margin: 0.6rem 0 0; color: var(--av-muted); font-size: 0.84rem; text-align: center; }
.av-next-hint:empty { display: none; }

/* ---- passo 2: Carica ---------------------------------------------------------------------------------------------------- */
.av-on .av-upload .portal-title { margin-bottom: 0.9rem; }
.av-urgent { display: flex; align-items: flex-start; gap: 0.7rem; margin: 0 0 1rem; padding: 0.8rem 1rem; border-radius: 16px; background: rgba(208, 122, 60, 0.1); color: #a4561d; font-size: 0.88rem; font-weight: 700; line-height: 1.45; }
.av-urgent .av-ic { background: linear-gradient(145deg, #f0a35e, #c0612a); box-shadow: 0 5px 12px rgba(192, 97, 42, 0.25); }
.av-on .upload-dropzone.av-scan {
  position: relative; isolation: isolate; overflow: hidden; min-height: 300px; gap: 0.55rem; padding: 1.8rem 1.4rem 1.5rem;
  border: 0; border-radius: 26px; color: #fff;
  background: radial-gradient(120% 120% at 70% 0%, #5a2442 0%, #24111c 55%, #140a10 100%);
  box-shadow: 0 24px 60px rgba(75, 35, 56, 0.35);
}
.av-on .av-scan::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--av-angle, 120deg), #ff8fbf, #5fd0b5, #c98cff, #ff8fbf);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.av-on .av-scan.upload-dropzone--active { box-shadow: 0 0 0 4px rgba(255, 143, 191, 0.35), 0 24px 60px rgba(75, 35, 56, 0.4); }
.av-scan__grid {
  position: absolute; left: -20%; right: -20%; bottom: -60%; z-index: -1; height: 120%; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 34px 34px; transform: perspective(380px) rotateX(62deg);
  -webkit-mask-image: linear-gradient(to top, #000, transparent 70%); mask-image: linear-gradient(to top, #000, transparent 70%);
}
.av-scan__gem { display: block; width: 78px; height: 78px; filter: drop-shadow(0 12px 26px rgba(255, 111, 158, 0.6)); }
.av-scan__gem svg { display: block; width: 100%; height: 100%; }
.av-on .av-scan h2 { color: #fff; font-family: "Sora", "Manrope", system-ui, sans-serif; font-size: 1.35rem; letter-spacing: -0.02em; }
.av-on .av-scan p { max-width: 34em; color: rgba(255, 255, 255, 0.72); font-size: 0.85rem; }
.av-on .av-scan .file-count { color: rgba(255, 255, 255, 0.6); font-size: 0.78rem; }
.av-on .av-scan .upload-dropzone__actions { flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 0.6rem; }
.av-pick {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 46px; padding: 0 1.2rem 0 0.55rem; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); color: #fff; font: inherit; font-size: 0.92rem; font-weight: 800; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.av-pick .av-ic { background: rgba(255, 255, 255, 0.16); box-shadow: none; }
.av-pick--main { background: linear-gradient(135deg, #ff7aa8, #b0424f); box-shadow: 0 10px 24px rgba(255, 111, 158, 0.45); }
.av-pick--main .av-ic { background: rgba(255, 255, 255, 0.2); }
.av-pick:hover { transform: translateY(-2px); }
.av-pick:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }

.av-on .av-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.av-on .av-docs:empty { display: none; }
.av-doc { position: relative; display: grid; align-content: start; gap: 0.3rem; min-width: 0; padding: 0.7rem; border-radius: 20px; background: var(--av-card); box-shadow: inset 0 0 0 1px var(--av-line); }
.av-doc.is-done { box-shadow: inset 0 0 0 1px rgba(63, 154, 135, 0.35); }
.av-page { position: relative; display: block; height: 128px; margin-bottom: 0.3rem; overflow: hidden; border-radius: 12px; background: linear-gradient(180deg, #fffdfb, #f1e8e4); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12); }
.av-page img { display: block; width: 100%; height: 100%; object-fit: cover; }
.av-page i { position: absolute; left: 12px; right: 16px; height: 5px; border-radius: 3px; background: #e0d6d2; }
.av-page i:nth-of-type(1) { top: 14px; right: 40%; height: 8px; background: #b0424f; }
.av-page i:nth-of-type(2) { top: 32px; }
.av-page i:nth-of-type(3) { top: 44px; right: 30%; }
.av-page i:nth-of-type(4) { top: 56px; }
.av-page i:nth-of-type(5) { top: 68px; right: 45%; }
.av-page i:nth-of-type(6) { top: 80px; }
.av-page i:nth-of-type(7) { top: 92px; right: 25%; }
.av-page__hl { position: absolute; left: 8px; right: 8px; top: 40px; height: 20px; border-radius: 6px; background: rgba(255, 111, 158, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 111, 158, 0.5); }
.av-laser { position: absolute; left: 0; right: 0; top: 30%; height: 2px; background: linear-gradient(90deg, transparent, #ff6f9e, transparent); box-shadow: 0 0 14px 4px rgba(255, 111, 158, 0.55); }
.av-laser::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 40px; background: linear-gradient(to top, rgba(255, 111, 158, 0.22), transparent); }
.av-doc__t { color: var(--av-head); font-size: 0.9rem; line-height: 1.25; overflow-wrap: anywhere; }
.av-doc__n { color: var(--av-muted); font-size: 0.72rem; line-height: 1.3; overflow-wrap: anywhere; }
.av-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.15rem; }
.av-tag { padding: 0.18rem 0.55rem; border-radius: 999px; background: var(--av-soft); color: var(--av-muted); font-size: 0.72rem; font-weight: 800; }
.av-tag--ok { background: rgba(63, 154, 135, 0.15); color: #2f7f72; }
.av-tag--busy { background: rgba(255, 111, 158, 0.14); color: #d1477a; }
.av-tag--warn { background: rgba(208, 122, 60, 0.14); color: #a4561d; }
.av-doc__x { position: absolute; top: 0.9rem; right: 0.9rem; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 10, 16, 0.55); color: #fff; font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; }
.av-doc__x:hover { background: var(--av-rose); }

/* il costo: la moneta grande e il numero nei colori ASSER (il contatore riscrive le sue classi: si aggancia al passo) */
.av-on .av-upload .cost-counter { margin-top: 1rem; border-color: rgba(224, 120, 159, 0.35); border-radius: 24px; }
.av-on .av-upload .cost-counter .cost-counter__price { align-items: center; gap: 0.7rem; }
.av-on .av-upload .cost-counter .cost-counter__coin .ac-coin { --ac: 2.6rem; }
.av-on .av-upload .cost-counter .cost-counter__amount { font-family: "Sora", "Manrope", system-ui, sans-serif; font-weight: 800; background: linear-gradient(135deg, #4b2338 0%, #b0424f 55%, #ff6f9e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.av-on .av-upload .cost-counter--idle .cost-counter__amount, .av-on .av-upload .cost-counter--loading .cost-counter__amount, .av-on .av-upload .cost-counter--unavailable .cost-counter__amount { background: none; -webkit-text-fill-color: var(--av-muted); }

/* guida e note richiudibili */
.av-more { margin-top: 0.75rem; border-radius: 18px; background: var(--av-card); box-shadow: inset 0 0 0 1px var(--av-line); }
.av-more > summary { display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1rem; color: var(--av-head); font-size: 0.92rem; font-weight: 800; cursor: pointer; list-style: none; }
.av-more > summary::-webkit-details-marker { display: none; }
.av-more > summary::after { content: "▾"; margin-left: auto; color: var(--av-plum2); transition: transform 0.2s ease; }
.av-more[open] > summary::after { transform: rotate(180deg); }
.av-guide__body, .av-extra__body { display: grid; gap: 0.8rem; padding: 0 1rem 1rem; }
.av-guide__body > p { margin: 0; color: var(--av-muted); font-size: 0.86rem; line-height: 1.5; }
.av-guide__group h3 { margin: 0 0 0.4rem; color: var(--av-head); font-size: 0.92rem; }
.av-guide__group ul { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.av-guide__group li { display: grid; gap: 0.1rem; padding: 0.5rem 0.7rem; border-radius: 12px; background: var(--av-soft); }
.av-guide__group li strong { color: var(--av-head); font-size: 0.86rem; }
.av-guide__group li small { color: var(--av-muted); font-size: 0.78rem; line-height: 1.4; }
.av-extra__body .upload-notes, .av-extra__body .upload-classifier { margin: 0; }

/* ---- passo 3: la finestra del costo ------------------------------------------------------------------------------------- */
/* finestra piu' larga, mai piu' alta dello schermo; i bottoni restano sempre in vista in fondo */
.credit-modal .av-modal { width: min(100%, 460px); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); padding-bottom: 0; border-radius: 26px; }
.av-modal .credit-modal__actions { position: sticky; bottom: 0; z-index: 1; margin: 0.9rem -1.75rem 0; padding: 1rem 1.75rem 1.2rem; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, #fff 1.1rem); }
.av-modal .credit-modal__actions .portal-button { box-sizing: border-box; max-width: 100%; }
.av-sure { display: grid; gap: 0.4rem; margin: 0.9rem 0 0; text-align: left; }
.av-sure__i { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 0.65rem; margin: 0; padding: 0.55rem 0.7rem; border-radius: 14px; background: #f6f1ec; color: #3b3036; font-size: 0.78rem; line-height: 1.45; }
.av-sure__i b { color: #4b2338; }
.portal-button.av-go { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, #ff7aa8, #c4515e 30%, #b0424f 55%, #6d2f4a); box-shadow: 0 12px 28px rgba(176, 66, 79, 0.35); }
.portal-button.av-go::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.45) 48%, transparent 64%); transform: translateX(-130%); }
.av-go__coin .ac-coin { --ac: 1.5rem; }
.av-go__n { padding: 0.12rem 0.55rem; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font-variant-numeric: tabular-nums; }

/* ---- movimento ---------------------------------------------------------------------------------------------------------- */
@property --av-angle { syntax: "<angle>"; inherits: false; initial-value: 120deg; }
@media (prefers-reduced-motion: no-preference) {
  .av-on .av-scan::before { animation: av-spin 6s linear infinite; }
  .av-scan__gem { animation: av-float 5s ease-in-out infinite alternate; }
  .av-doc.is-busy .av-laser { animation: av-scan 1.8s ease-in-out infinite alternate; }
  .av-doc { animation: av-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .portal-button.av-go::after { animation: av-sheen 3.6s ease-in-out 0.8s infinite; }
  .av-steps__i.is-on b { animation: av-ring 2.4s ease-in-out infinite; }
}
@keyframes av-spin { to { --av-angle: 480deg; } }
@keyframes av-float { from { transform: translateY(-4px) rotate(-4deg); } to { transform: translateY(6px) rotate(4deg); } }
@keyframes av-scan { from { top: 8%; } to { top: 88%; } }
@keyframes av-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes av-sheen { 0% { transform: translateX(-130%); } 40%, 100% { transform: translateX(130%); } }
@keyframes av-ring { 0%, 100% { box-shadow: 0 0 0 4px rgba(224, 120, 159, 0.25); } 50% { box-shadow: 0 0 0 9px rgba(224, 120, 159, 0); } }

/* ---- telefono ----------------------------------------------------------------------------------------------------------- */
@media (max-width: 920px) {
  .av-steps { gap: 6px; margin-bottom: 1rem; }
  .av-steps__i { font-size: 0.82rem; gap: 6px; }
  .av-steps__i + .av-steps__i::before { width: clamp(14px, 6vw, 60px); }
  .av-who { grid-template-columns: minmax(0, 1fr); }
  .av-facts { grid-template-columns: minmax(0, 1fr); gap: 0.45rem; }
  .av-fact { grid-template-columns: auto minmax(0, 1fr); align-items: center; padding: 0.6rem 0.7rem; }
  .av-privacy { padding: 1rem 0.9rem 0.9rem; border-radius: 20px; }
  /* conferme: icona, titolo e interruttore su una riga; spiegazione e testo completo sotto, a tutta larghezza */
  .av-consent { align-items: center; gap: 0.4rem 0.65rem; padding: 0.85rem; }
  .av-consent .av-ic { grid-column: 1; grid-row: 1; width: 32px; height: 32px; border-radius: 10px; }
  .av-consent__copy { display: contents; }
  .av-consent__title { grid-column: 2; grid-row: 1; }
  .av-consent .av-switch { grid-column: 3; grid-row: 1; margin-top: 0; }
  .av-consent__plain, .av-consent__full { grid-column: 1 / -1; margin: 0; }
  .av-on .upload-dropzone.av-scan { min-height: 0; padding: 1.4rem 1rem 1.2rem; }
  .av-scan__gem { width: 62px; height: 62px; }
  .av-on .av-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .av-page { height: 96px; }
}
@media (max-width: 640px) {
  /* da telefono la finestra del costo e' un foglio dal basso (come nel resto dell'area clienti) */
  .credit-modal .av-modal { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 24px 24px 0 0; }
  .av-modal .credit-modal__actions { margin: 0.9rem -1.25rem 0; padding: 0.9rem 1.25rem calc(1.1rem + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 380px) {
  .av-steps__i span { display: none; }
  .av-steps__i.is-on span { display: inline; }
}

/* ---- tema scuro (le regole con data-asser-theme non passano dal generatore: valgono cosi' come sono) ---------------------- */
html[data-asser-theme="dark"] body .av-on {
  --av-card: #211a1d;
  --av-soft: #2a2125;
  --av-line: rgba(255, 255, 255, 0.1);
  --av-text: #efe6ea;
  --av-head: #ffffff;
  --av-muted: #a89aa1;
  --av-plum2: #f4b3cb;
  --av-teal: #5fd0b5;
}
html[data-asser-theme="dark"] body .av-on .av-ic { background: linear-gradient(145deg, #ff8fbf 0%, #d1477a 48%, #7d2f57 100%); box-shadow: 0 8px 20px rgba(224, 88, 140, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
html[data-asser-theme="dark"] body .av-on .av-urgent .av-ic { background: linear-gradient(145deg, #f0a35e, #c0612a); box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35); }
html[data-asser-theme="dark"] body .av-on .av-pick .av-ic { background: rgba(255, 255, 255, 0.16); box-shadow: none; }
html[data-asser-theme="dark"] body .av-on .av-pick--main .av-ic { background: rgba(255, 255, 255, 0.2); }
html[data-asser-theme="dark"] body .av-on .portal-title, html[data-asser-theme="dark"] body .av-on .wizard-section-title { color: #fff; }
html[data-asser-theme="dark"] body .av-on .av-privacy { background: linear-gradient(180deg, #1d1719, #171214); }
html[data-asser-theme="dark"] body .av-on .av-switch__track { background: #3a2f34; }
html[data-asser-theme="dark"] body .av-on .av-steps__i.is-done b { background: #3f9a87; }
html[data-asser-theme="dark"] body .av-on .av-urgent { background: rgba(240, 163, 94, 0.12); color: #f0b07e; }
html[data-asser-theme="dark"] body .av-on .av-scan { background: radial-gradient(120% 120% at 70% 0%, #5a2442 0%, #24111c 55%, #140a10 100%); color: #fff; }
html[data-asser-theme="dark"] body .av-on .av-pick { color: #fff; }
html[data-asser-theme="dark"] body .av-on .av-tag--ok { color: #5fd0b5; background: rgba(95, 208, 181, 0.14); }
html[data-asser-theme="dark"] body .av-on .av-tag--busy { color: #ff8fbf; }
html[data-asser-theme="dark"] body .av-on .av-upload .cost-counter .cost-counter__amount { background-image: linear-gradient(135deg, #ffffff 0%, #ffc1d8 55%, #ff6f9e 100%); }
html[data-asser-theme="dark"] body .av-on .av-upload .cost-counter { background: linear-gradient(165deg, #211a1d, #1a1517); border-color: rgba(255, 143, 191, 0.3); }
html[data-asser-theme="dark"] body .credit-modal .av-modal { background: #1d1719; }
html[data-asser-theme="dark"] body .credit-modal .av-modal .credit-modal__actions { background: linear-gradient(180deg, rgba(29, 23, 25, 0) 0, #1d1719 1.1rem); }
html[data-asser-theme="dark"] body .credit-modal .av-sure__i { background: #2a2125; color: #d9ccd2; }
html[data-asser-theme="dark"] body .credit-modal .av-sure__i b { color: #fff; }
html[data-asser-theme="dark"] body .credit-modal .av-sure .av-ic { background: linear-gradient(145deg, #ff8fbf 0%, #d1477a 48%, #7d2f57 100%); }

/* gemma fotorealistica nello scanner (21/10/2026): la foto prende il posto del disegno quando si e' caricata */
.av-scan__gem.has-photo { width: 92px; height: 92px; }
.av-scan__gem img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 920px) { .av-scan__gem.has-photo { width: 74px; height: 74px; } }
