/* Schermate di scansione, banco da scanner e da telefono (docs/AnalisiNoteSpeseCreazioneGrafica.md, sez. 3.3 e 3.4; prototipo docs/PropostaNoteSpeseCreazione.html, viste Scanner e Telefono).
   Piano dello scanner in scala con area trascinabile | passi della scansione | pagine acquisite a griglia | telefono. Componenti: ScanPlate, ScanStepper, ScanTray,
   ScanPhoneStage e il ramo _useV2 di ScanWorkspace (nh-scan-area.js per il gesto sull'area).
   Ogni regola sta sotto body.nh-v2: il foglio e' inerte senza la classe nh-v2.
   Classi tutte con prefisso scv2-: nessuna regola di forms-v2.css (.scan-*), site.css o delle altre pagine viene toccata; l'unica regola sulle classi del sito e'
   la correzione della schermata a tutta pagina (.scan-screen), che qui si ridice solo per l'ambiente di test.
   Specificita': body.nh-v2 + .scv2 + classe batte site.css e combo-v2.css (stessa specificita' o meno) senza !important, tranne dove il tema DevExpress
   dei .btn forza fondo, bordo e ombra (superfici cliccabili, pulsanti icona).
   Token: solo quelli del sito (tema azienda: --primary, --primary-soft, --primary-ink, --primary-rgb, --border, --text, --muted, --radius...); quelli che il sito non ha
   (grigio piu' scuro, rosso scuro) sono locali a .scv2. Il banco e' l'unico oggetto con raggio 12px (la scheda e tutto il resto usano --radius, 8px).
   Il sito web non si usa da telefono: nessuna @media per telefono. Per tornare indietro: togliere il <link> e la proprieta' ScanV2CssHref in App.razor, oppure git revert;
   tag di ritorno pre-spesa-creazione. */

/* ================= schermata a tutta pagina ================= */
/* Il difetto di forms-v2.css (.scan-screen: inset 0, z-index 1060 come la barra globale) lasciava il titolo sotto la barra e la pagina sotto in trasparenza:
   qui la schermata parte sotto la barra, sta sopra menu, dock e pulsanti della pagina (barra 1060, menu 1040-1050) ma sotto modali (1070), menu a comparsa della
   barra (1080) e avvisi (1090), e ha lo sfondo pieno. */
body.nh-v2 .scan-screen {
  inset: var(--topbar-height) 0 0 0;
  z-index: 1065;
  overflow: auto;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

/* Il titolo e la scheda stanno in una colonna come la pagina Nuova spesa (1680px, centrata). La scheda prende tutta l'altezza che resta sotto il titolo:
   il banco non decide l'altezza della schermata, la riempie. Sotto i 520px di altezza utile la schermata scorre invece di schiacciare i controlli. */
body.nh-v2 .scan-screen__body {
  display: flex;
  flex-direction: column;
  max-width: 1680px;
  height: 100%;
  min-height: 520px;
  margin: 0 auto;
  padding: 8px 16px 14px;
}

body.nh-v2 .scan-screen__body > .page-hero {
  flex: none;
}

/* I combo di DevExpress aprono l'elenco in un livello a parte sul <body> (1050): con la schermata aperta deve stare sopra. Stessa regola che il sito
   applica quando c'e' una modale aperta (site.css, body.editor-modal-open). */
body.nh-v2:has(.scv2) .dxbl-popup-root,
body.nh-v2:has(.scv2) .dxbl-popup-cell {
  z-index: 13050 !important;
}

/* ================= token e scala continua con l'altezza dello schermo ================= */
/* Le misure crescono in modo continuo con l'altezza, non a gradini (come la modale Giornata e Nuova spesa): due rampe, --scv2-r1 da 768 a 888px (veloce) e --scv2-r2 da 888 a 1440px
   (lenta); a 768px o meno valgono 0 e sotto i 768px --scv2-lo comprime in modo continuo. Ogni misura e' "base + --scv2-r1 * a + --scv2-r2 * b" (base a 768,
   valore a 888, valore a 1440 nei commenti). Restano breakpoint DESKTOP: sulla larghezza min-width 1900px e max-width 1180px (aria tra le colonne), un solo gradino sull'altezza
   (min-height 1000px: la griglia delle pagine passa da quattro a tre righe) e i @container sullo spazio del banco (banco stretto); nessuno e' per telefono. */
body.nh-v2 .scv2 {
  --scv2-slate: #475569;
  --scv2-ink: #334155;
  --scv2-faint: #94a3b8;                                                                                  /* grigio piu' chiaro del sito: glifi spenti, tratteggi */
  --scv2-danger-ink: var(--test-environment-red-strong);
  --scv2-ease: cubic-bezier(.16, 1, .3, 1);

  --scv2-r1: clamp(0px, calc(100dvh - 768px), 120px);
  --scv2-r2: clamp(0px, calc(100dvh - 888px), 552px);
  --scv2-lo: clamp(0px, calc(768px - 100dvh), 200px);
  --scv2-fh: calc(38px + var(--scv2-r1) * .0667 + var(--scv2-r2) * .0254 - var(--scv2-lo) * .03);       /* altezza campi 38 / 46 / 60 */
  --scv2-fs: calc(14.5px + var(--scv2-r1) * .0067 + var(--scv2-r2) * .004);                              /* testo nei campi 14,5 / 15,3 / 17,5 */
  --scv2-lfs: calc(12.5px + var(--scv2-r1) * .0042 + var(--scv2-r2) * .0036);                            /* etichette 12,5 / 13 / 15 */
  --scv2-llh: calc(15px + var(--scv2-r1) * .0083 + var(--scv2-r2) * .0045);                              /* interlinea etichette 15 / 16 / 18,5 */
  --scv2-lmb: calc(4px + var(--scv2-r1) * .0083 + var(--scv2-r2) * .0036);                               /* aria sotto l'etichetta 4 / 5 / 7 */
  --scv2-g: calc(clamp(6px, calc(8px + (100dvh - 720px) / 14), 16px) + var(--scv2-r1) * .035 + var(--scv2-r2) * .033); /* gap tra le righe 11 / 20 / 36 */
  --scv2-bh: calc(38px + var(--scv2-r1) * .0333 + var(--scv2-r2) * .0145 - var(--scv2-lo) * .03);        /* pulsanti 38 / 42 / 50 */
  --scv2-bfs: calc(14px + var(--scv2-r1) * .0083 + var(--scv2-r2) * .0027);                              /* testo dei pulsanti 14 / 15 / 16,5 */
  --scv2-ibs: calc(30px + var(--scv2-r1) * .025 + var(--scv2-r2) * .0091);                               /* pulsanti icona 30 / 33 / 38 */
  --scv2-ic: calc(16px + var(--scv2-r1) * .0083 + var(--scv2-r2) * .0054);                               /* freccia dei combo 16 / 17 / 20 */
  --scv2-stfs: calc(12.5px + var(--scv2-r1) * .0042 + var(--scv2-r2) * .0036);                           /* testo dei passi 12,5 / 13 / 15 */
  --scv2-tt: calc(15px + var(--scv2-r1) * .0083 + var(--scv2-r2) * .0054);                               /* titolo degli stati 15 / 16 / 19 */

  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: calc(14px - var(--scv2-lo) * .04 + var(--scv2-r2) * .045) calc(22px + var(--scv2-r2) * .04) calc(10px - var(--scv2-lo) * .04 + var(--scv2-r2) * .045);
  display: flex;
  flex-direction: column;
}

body.nh-v2 .scv2 :focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Testo solo per gli screen reader (stato dei passi, pagine acquisite). */
body.nh-v2 .scv2 .scv2-sr {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ================= scheda: controlli | banco ================= */
body.nh-v2 .scv2 .scv2-cols {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: clamp(300px, 25vw, calc(352px + var(--scv2-r2) * .08)) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

body.nh-v2 .scv2.is-phone .scv2-cols {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1900px) {
  body.nh-v2 .scv2 .scv2-cols {
    gap: 28px;
  }
}

@media (max-width: 1180px) {
  body.nh-v2 .scv2 .scv2-cols {
    gap: 16px;
  }
}

body.nh-v2 .scv2 .scv2-left {
  display: flex;
  flex-direction: column;
  gap: var(--scv2-g);
  min-width: 0;
  min-height: 0;
}

/* Tab Scansione / Immagine: le .settings-tabs del sito (detail-v2.css); qui solo la distanza dal contenuto e la scala con l'altezza. */
body.nh-v2 .scv2 .settings-tabs.settings-tabs {
  flex: none;
  margin-bottom: 0;
}

body.nh-v2 .scv2 .settings-tabs .settings-tab {
  min-height: calc(44px - var(--scv2-lo) * .09);
  font-size: var(--scv2-fs);
}

/* Il pannello dei campi scorre solo se il driver dello scanner ne espone moltissimi; i due pulsanti in fondo restano sempre in vista.
   Il rientro negativo lascia respirare l'anello di focus dei campi dentro l'area che scorre. */
body.nh-v2 .scv2 .scv2-panel {
  flex: 0 1 auto;
  min-height: 0;
  display: grid;
  gap: var(--scv2-g);
  align-content: start;
  margin: -4px;
  padding: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

body.nh-v2 .scv2 .scv2-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

body.nh-v2 .scv2 .scv2-pair:empty {
  display: none;
}

body.nh-v2 .scv2 .scv2-pair > :only-child {
  grid-column: 1 / -1;
}

body.nh-v2 .scv2 .scv2-btnrow {
  flex: none;
  display: flex;
  gap: 8px;
  margin-top: auto;
}

/* ================= campi (combo, interruttore, cursori) ================= */
/* Etichetta sopra il campo, come il form di Nuova spesa; il combo tiene misure, bordo e raggio del campo standard e scala con l'altezza. */
body.nh-v2 .scv2 .scv2-fld {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--scv2-lmb);
  min-width: 0;
  margin: 0;
}

body.nh-v2 .scv2 .scv2-fld > span:first-child {
  color: var(--scv2-ink);
  font-size: var(--scv2-lfs);
  font-weight: 500;
  line-height: var(--scv2-llh);
  letter-spacing: 0;
  text-transform: none;
}

/* .scv2-cols in piu': combo-v2.css fissa l'altezza di tutte le combo (29,3px) con la stessa specificita' del resto, qui si deve vincere a prescindere dall'ordine dei fogli. */
body.nh-v2 .scv2 .scv2-cols .scv2-form .dxbl-text-edit:not(.dxbl-disabled, .dxbl-readonly) {
  height: var(--scv2-fh);
  min-height: var(--scv2-fh);
  padding: 0;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background-color: var(--surface);
  box-shadow: none;
  color: var(--text);
  font-size: var(--scv2-fs);
  transition: border-color .12s, box-shadow .12s;
}

body.nh-v2 .scv2 .scv2-form .dxbl-text-edit:not(.dxbl-disabled, .dxbl-readonly) :is(input, .dxbl-text-edit-input) {
  min-height: 0;
  height: calc(var(--scv2-fh) - 2px);
  padding: 0 calc(12px + (var(--scv2-fh) - 38px) * .105);
  background: transparent;
  color: var(--text);
  font-size: var(--scv2-fs);
}

body.nh-v2 .scv2 .scv2-form .dxbl-text-edit:not(.dxbl-disabled, .dxbl-readonly) input::placeholder {
  color: var(--muted);
}

body.nh-v2 .scv2 .scv2-form .dxbl-text-edit:not(.dxbl-disabled, .dxbl-readonly):hover {
  border-color: var(--scv2-ink);
}

body.nh-v2 .scv2 .scv2-form .dxbl-text-edit:not(.dxbl-disabled, .dxbl-readonly):focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .25);
  outline: 0;
}

/* Freccia del combo: dentro il bordo, senza riquadro proprio. */
body.nh-v2 .scv2 .scv2-form .blazor-combo-box.dxbl-text-edit:not(.dxbl-disabled, .dxbl-readonly) .dxbl-btn-group-right {
  background: transparent !important;
  border-left: 0 !important;
  box-shadow: none !important;
}

body.nh-v2 .scv2 .scv2-form .blazor-combo-box.dxbl-text-edit:not(.dxbl-disabled, .dxbl-readonly) :is(button, .dxbl-btn, .dxbl-edit-btn-dropdown) {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
}

body.nh-v2 .scv2 .scv2-form .blazor-combo-box.dxbl-text-edit:not(.dxbl-disabled, .dxbl-readonly) :is(button, .dxbl-btn, .dxbl-edit-btn-dropdown):hover {
  background: var(--primary-soft);
  color: var(--primary-ink);
}

body.nh-v2 .scv2 .scv2-form .blazor-combo-box.dxbl-text-edit svg {
  width: var(--scv2-ic);
  height: var(--scv2-ic);
}

/* Disattivato (scansione in corso, nessuno scanner): l'aspetto e' quello del sito per un form in cui nessun campo e' abilitato (riquadro tenue di combo-v2.css);
   qui solo l'altezza e il carattere della scala. */
body.nh-v2 .scv2 .scv2-cols .scv2-form .dxbl-text-edit.dxbl-disabled {
  height: var(--scv2-fh);
  min-height: var(--scv2-fh);
  font-size: var(--scv2-fs);
}

body.nh-v2 .scv2 .scv2-form .dxbl-text-edit.dxbl-disabled :is(input, .dxbl-text-edit-input) {
  height: calc(var(--scv2-fh) - 2px);
  padding: 0 calc(12px + (var(--scv2-fh) - 38px) * .105);
  font-size: var(--scv2-fs);
}

/* Interruttore Fronte/retro: il componente condiviso, solo allineato alla scala. */
body.nh-v2 .scv2 .scv2-panel .check-line,
body.nh-v2 .scv2 .scv2-panel .check-row,
body.nh-v2 .scv2 .scv2-panel .switch-line {
  min-height: var(--scv2-fh);
  font-size: calc(var(--scv2-fs) + 1px);
}

/* Cursori: gli stessi <input type="range"> di sempre, solo ristilati (non esiste un componente cursore). Il riempimento della pista arriva da --scv2-p. */
body.nh-v2 .scv2 .scv2-rng {
  display: grid;
  gap: 6px;
  margin: 0;
}

body.nh-v2 .scv2 .scv2-rng-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--scv2-ink);
  font-size: var(--scv2-lfs);
  font-weight: 500;
  line-height: var(--scv2-llh);
}

body.nh-v2 .scv2 .scv2-rng-h output {
  color: var(--text);
  font-size: calc(var(--scv2-lfs) + .5px);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

body.nh-v2 .scv2 .scv2-rng input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  margin: 0;
  background: none;
  --scv2-p: 50%;
}

body.nh-v2 .scv2 .scv2-rng input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(var(--primary), var(--primary)) 0 / var(--scv2-p) 100% no-repeat, var(--border);
}

body.nh-v2 .scv2 .scv2-rng input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .3);
}

body.nh-v2 .scv2 .scv2-rng input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}

body.nh-v2 .scv2 .scv2-rng input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--primary);
}

body.nh-v2 .scv2 .scv2-rng input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: var(--surface);
}

body.nh-v2 .scv2 .scv2-rng input[type="range"]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

body.nh-v2 .scv2 .scv2-rng input[type="range"]:disabled {
  opacity: .5;
}

/* Lettura delle impostazioni: barre di attesa al posto dei campi, senza parole. */
body.nh-v2 .scv2 .scv2-sks {
  display: grid;
  gap: var(--scv2-g);
}

body.nh-v2 .scv2 .scv2-sk {
  display: block;
  height: var(--scv2-fh);
  border-radius: var(--radius);
  background: linear-gradient(90deg, color-mix(in srgb, var(--border) 70%, var(--surface)) 0%, var(--surface-soft) 50%, color-mix(in srgb, var(--border) 70%, var(--surface)) 100%);
  background-size: 200% 100%;
  animation: scv2-shim 1.5s linear infinite;
}

body.nh-v2 .scv2 .scv2-sk:nth-child(3) {
  width: 62%;
}

/* ================= pulsanti ================= */
/* Scansiona e Anteprima (BlazorActionButton): una riga sola in fondo alla colonna, alta come i campi, il primario piu' largo. */
body.nh-v2 .scv2 .btn.scv2-btn {
  flex: 1 1 0;
  min-width: 0;
  height: var(--scv2-bh);
  padding: 0 calc(12px + (var(--scv2-bh) - 38px) * .35);
  font-size: var(--scv2-bfs);
  font-weight: 750;
  white-space: nowrap;
}

body.nh-v2 .scv2 .scv2-btnrow .btn.scv2-btn:first-child {
  flex-grow: 1.35;
}

/* Pulsanti icona (BlazorIconButton): senza riquadro, in rilievo solo al passaggio. !important perche' il tema DevExpress dei .btn forza fondo e bordo. */
body.nh-v2 .scv2 .btn.scv2-ib {
  display: inline-grid;
  place-items: center;
  width: calc(var(--scv2-ibs) + 2px);
  height: calc(var(--scv2-ibs) + 2px);
  min-width: 0;
  padding: 0;
  border: 0 !important;
  border-radius: var(--radius);
  background: none !important;
  box-shadow: none !important;
  color: var(--scv2-slate) !important;
}

body.nh-v2 .scv2 .btn.scv2-ib:hover:not(:disabled) {
  background: var(--bg-soft) !important;
  color: var(--text) !important;
}

body.nh-v2 .scv2 .btn.scv2-ib-danger:hover:not(:disabled) {
  background: var(--danger-soft) !important;
  color: var(--scv2-danger-ink) !important;
}

body.nh-v2 .scv2 .btn.scv2-ib:disabled {
  color: var(--scv2-faint) !important;
  cursor: not-allowed;
}

body.nh-v2 .scv2 .btn.scv2-ib svg {
  width: 18px;
  height: 18px;
}

/* Superfici cliccabili (miniature): sono BlazorActionButton con contenuto proprio. Il tema DevExpress e quello dei .btn ridisegnano fondo, bordo, colore e ombra a riposo,
   al passaggio, in focus e da disabilitati, tutte con !important o con specificita' piu' alta di una classe sola: qui quelle proprieta' si dicono una volta, con !important,
   a partire da quattro variabili che ogni superficie ridefinisce per stato (--scv2-s-bd bordo, -bg fondo, -fg colore, -sh ombra). */
body.nh-v2 .scv2 .btn.scv2-surf {
  min-width: 0;
  margin: 0;
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
  opacity: 1;
  border-color: var(--scv2-s-bd, transparent) !important;
  background: var(--scv2-s-bg, transparent) !important;
  color: var(--scv2-s-fg, var(--text)) !important;
  box-shadow: var(--scv2-s-sh, none) !important;
}

/* ================= banco ================= */
/* [scena: piano o telefono, con a sinistra passi o strumenti] [pagine a griglia a destra]. Il banco riempie l'altezza che resta; le misure interne
   (miniature, piano, telefono) si ricavano dalla sua altezza reale con le unita' dei contenitori. */
body.nh-v2 .scv2 .scv2-bench {
  --scv2-rows: 4;
  --scv2-th: clamp(84px, calc((100cqh - 58px) / var(--scv2-rows)), calc(118px + var(--scv2-r2) * .28));
  --scv2-tw: calc(var(--scv2-th) * .727);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, color-mix(in srgb, var(--bg-soft) 78%, var(--border-strong)) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border-strong) 70%, transparent);
  container: scv2bench / size;
}

/* Reticolo del banco, appena visibile, nella tinta del tema. */
body.nh-v2 .scv2 .scv2-bench::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(var(--primary-rgb), .09) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--primary-rgb), .09) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
  pointer-events: none;
}

/* Le scene stanno sopra il reticolo. Il testo per gli screen reader (.scv2-sr, assoluto) resta fuori: a parita' di specificita' questa regola, piu' in basso,
   lo renderebbe relativo e lo farebbe entrare nella griglia come terza riga implicita. */
body.nh-v2 .scv2 .scv2-bench > :not(.scv2-sr) {
  position: relative;
}

/* A schermi alti la griglia delle pagine passa da quattro a tre righe: pagine piu' grandi e leggibili, le altre scorrono. */
@media (min-height: 1000px) {
  body.nh-v2 .scv2 .scv2-bench {
    --scv2-rows: 3;
  }
}

body.nh-v2 .scv2 .scv2-stage {
  display: grid;
  min-width: 0;
  min-height: 0;
  container: scv2stage / size;
}

body.nh-v2 .scv2 .scv2-sc {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* Se il banco e' stretto (meno di 640px) o la scena e' piu' alta che larga (il piano occupa tutta la larghezza e a sinistra non resta posto) la striscia dei passi
   o degli strumenti passa sopra la scena, in orizzontale. */
body.nh-v2 .scv2 .scv2-sc.has-rail {
  --scv2-rail-w: 132px;
}

@container scv2stage (max-width: 639px) or (max-aspect-ratio: 11/10) {
  body.nh-v2 .scv2 .scv2-sc {
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.nh-v2 .scv2 .scv2-sc.has-rail {
    --scv2-rail-h: 58px;
    --scv2-rail-w: 0px;
  }

  body.nh-v2 .scv2 .scv2-sc.has-rail .scv2-rl {
    position: static;
    align-self: end;
    justify-self: center;
    width: 100%;
    padding-bottom: 10px;
    transform: none;
  }
}

/* ---------- il piano dello scanner ---------- */
body.nh-v2 .scv2 .scv2-plane {
  --scv2-ph: min(calc(100cqh - var(--scv2-rail-h, 0px)), calc(100cqw * var(--scv2-bedh, 297) / var(--scv2-bedw, 216)));
  position: relative;
  height: var(--scv2-ph);
  aspect-ratio: var(--scv2-bedw, 216) / var(--scv2-bedh, 297);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12), 0 14px 22px -8px rgba(30, 58, 100, .35);
}

body.nh-v2 .scv2 .scv2-pv {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

/* Il riquadro dell'area: si sposta trascinandolo e si ridimensiona dalle maniglie d'angolo (area cliccabile 18px). */
body.nh-v2 .scv2 .scv2-area {
  position: absolute;
  border: 2px dashed var(--primary);
  background: rgba(var(--primary-rgb), .1);
  cursor: move;
  touch-action: none;
}

body.nh-v2 .scv2 .scv2-area:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body.nh-v2 .scv2 .scv2-h {
  position: absolute;
  display: block;
  width: 18px;
  height: 18px;
  touch-action: none;
}

body.nh-v2 .scv2 .scv2-h::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid var(--primary);
  border-radius: 3px;
  background: var(--surface);
}

body.nh-v2 .scv2 .scv2-h[data-c="nw"] { left: -10px; top: -10px; cursor: nwse-resize; }
body.nh-v2 .scv2 .scv2-h[data-c="ne"] { right: -10px; top: -10px; cursor: nesw-resize; }
body.nh-v2 .scv2 .scv2-h[data-c="sw"] { left: -10px; bottom: -10px; cursor: nesw-resize; }
body.nh-v2 .scv2 .scv2-h[data-c="se"] { right: -10px; bottom: -10px; cursor: nwse-resize; }

/* Le misure in millimetri: sono il chip, non quattro caselle. */
body.nh-v2 .scv2 .scv2-chip {
  position: absolute;
  right: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  padding: 1px 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

body.nh-v2 .scv2 .scv2-area-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Durante una scansione il riquadro resta visibile ma non si muove. */
body.nh-v2 .scv2 .scv2-plane.is-locked .scv2-area {
  cursor: progress;
}

body.nh-v2 .scv2 .scv2-plane.is-locked .scv2-h {
  display: none;
}

/* La barra di luce sta dentro un riquadro che la ritaglia sul piano: entra dal bordo alto ed esce da quello basso, non sporge mai. */
body.nh-v2 .scv2 .scv2-swp {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

body.nh-v2 .scv2 .scv2-sweep {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 46px;
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0) 0%, rgba(var(--primary-rgb), .28) 85%, rgba(var(--primary-rgb), .85) 100%);
  border-bottom: 2px solid var(--primary);
  animation: scv2-sweep 1.7s ease-in-out infinite;
  pointer-events: none;
}

/* ---------- stati dello strumento: strutture, non frasi ---------- */
body.nh-v2 .scv2 .scv2-plane.is-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  border: 2px dashed var(--scv2-faint);
  border-radius: var(--radius);
  background: none;
  box-shadow: none;
  text-align: center;
}

body.nh-v2 .scv2 .scv2-stg-gl {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--scv2-slate);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
}

body.nh-v2 .scv2 .scv2-stg-gl .scv2-ic {
  width: 30px;
  height: 30px;
}

body.nh-v2 .scv2 .scv2-stg-t {
  margin: 0;
  color: var(--scv2-ink);
  font-size: var(--scv2-tt);
  font-weight: 650;
}

/* Dopo "Riprova" la scritta di stato riceve il fuoco da programma per essere letta: non e' un controllo, niente anello. */
body.nh-v2 .scv2 .scv2-stg-t:focus-visible {
  outline: none;
}

body.nh-v2 .scv2 .scv2-stg-a {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

body.nh-v2 .scv2 .scv2-stg-a .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--scv2-bh);
  padding: 0 calc(14px + (var(--scv2-bh) - 38px) * .35);
  font-size: var(--scv2-bfs);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

body.nh-v2 .scv2 .scv2-find {
  place-self: center;
  display: grid;
  justify-items: center;
  gap: 12px;
}

body.nh-v2 .scv2 .scv2-find .scv2-stg-gl {
  color: var(--primary);
  animation: scv2-pulse 1.4s ease-in-out infinite;
}

/* ---------- passi della scansione e strumenti della pagina aperta ---------- */
body.nh-v2 .scv2 .scv2-rl {
  position: absolute;
  left: 4px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}

body.nh-v2 .scv2 .scv2-stp {
  --scv2-p: 0;
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.nh-v2 .scv2 .scv2-stp::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border-strong);
}

body.nh-v2 .scv2 .scv2-stp::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  width: 2px;
  height: calc(100% - 20px);
  background: var(--primary);
  /* Il tratto ha sempre la lunghezza piena e si scala sul progresso: niente altezza animata. */
  transform: scaleY(var(--scv2-p));
  transform-origin: top;
  transition: transform .4s var(--scv2-ease);
}

body.nh-v2 .scv2 .scv2-stp li {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--scv2-slate);
  font-size: var(--scv2-stfs);
  line-height: 20px;
  white-space: nowrap;
}

body.nh-v2 .scv2 .scv2-dt {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: #fff;
}

body.nh-v2 .scv2 .scv2-dt .scv2-ic {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

body.nh-v2 .scv2 .scv2-stp li.is-done .scv2-dt {
  border-color: var(--primary);
  background: var(--primary);
}

body.nh-v2 .scv2 .scv2-stp li.is-cur {
  color: var(--text);
  font-weight: 700;
}

body.nh-v2 .scv2 .scv2-stp li.is-cur .scv2-dt {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .25);
  animation: scv2-ringp 1.1s ease-out infinite;
}

/* Strumenti della pagina aperta (numero di pagina, ruota, rimuovi): una colonna a sinistra della pagina. Le regole base stanno prima del blocco
   @container qui sotto: a parita' di specificita' vince l'ultima, e se stessero dopo annullerebbero la riga orizzontale del banco stretto. */
body.nh-v2 .scv2 .scv2-ptool {
  display: grid;
  gap: 2px;
  justify-items: start;
}

body.nh-v2 .scv2 .scv2-pg {
  margin: 0 0 4px 4px;
  color: var(--text);
  font-size: calc(var(--scv2-stfs) + 1.5px);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Banco stretto: i passi diventano una riga sopra il piano e dei cinque resta scritto solo quello corrente. */
@container scv2stage (max-width: 639px) or (max-aspect-ratio: 11/10) {
  body.nh-v2 .scv2 .scv2-stp {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    width: min(520px, 100%);
    margin: 0 auto;
  }

  body.nh-v2 .scv2 .scv2-stp::before {
    left: 10%;
    right: 10%;
    top: 9px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  body.nh-v2 .scv2 .scv2-stp::after {
    left: 10%;
    top: 9px;
    width: 80%;
    height: 2px;
    transform: scaleX(var(--scv2-p));
    transform-origin: left center;
    transition: transform .4s var(--scv2-ease);
  }

  body.nh-v2 .scv2 .scv2-stp li {
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    line-height: 1.2;
    text-align: center;
  }

  body.nh-v2 .scv2 .scv2-stp li:not(.is-cur) .scv2-lbs {
    display: none;
  }

  body.nh-v2 .scv2 .scv2-ptool {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
  }

  body.nh-v2 .scv2 .scv2-ptool .scv2-pg {
    margin: 0 auto 0 0;
  }
}

/* Pagina aperta al posto del piano. */
body.nh-v2 .scv2 .scv2-pageview {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}

body.nh-v2 .scv2 .scv2-pageimg {
  display: block;
  max-width: calc(100cqw - 2 * var(--scv2-rail-w, 0px));
  max-height: calc(100cqh - var(--scv2-rail-h, 0px));
  object-fit: contain;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12), 0 14px 22px -8px rgba(30, 58, 100, .35);
}

/* ================= pagine acquisite ================= */
/* Griglia di due colonne a destra (larghezza stabile, si legge da sinistra a destra e dall'alto in basso), quattro righe a vista. */
body.nh-v2 .scv2 .scv2-tray {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, var(--scv2-tw));
  grid-auto-rows: var(--scv2-th);
  gap: 8px;
  align-content: start;
  height: 100%;
  padding: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

body.nh-v2 .scv2 .scv2-bench.is-tel .scv2-tray {
  z-index: 2;
}

body.nh-v2 .scv2 .btn.scv2-pt {
  --scv2-s-bd: var(--border-strong);
  --scv2-s-bg: var(--surface);
  --scv2-s-fg: var(--text);
  --scv2-s-sh: 0 1px 2px rgba(15, 23, 42, .1);
  position: relative;
  display: block;
  width: var(--scv2-tw);
  height: var(--scv2-th);
  padding: 0;
  overflow: hidden;
  border: 1px solid;
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
}

body.nh-v2 .scv2 .btn.scv2-pt:hover:not(:disabled) {
  --scv2-s-bd: var(--scv2-slate);
}

body.nh-v2 .scv2 .btn.scv2-pt[aria-current="true"] {
  --scv2-s-bd: var(--primary);
  --scv2-s-sh: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary);
}

/* Il contenuto della miniatura riempie il pulsante in posizione assoluta: non dipende da come il componente DevExpress avvolge i figli del pulsante. */
body.nh-v2 .scv2 .scv2-pt-in {
  position: absolute;
  inset: 0;
  display: block;
}

body.nh-v2 .scv2 .scv2-pt-in img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
}

body.nh-v2 .scv2 .scv2-pgn {
  position: absolute;
  left: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: rgba(15, 23, 42, .82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* La miniatura di ritorno alla scena: Piano o Telefono. */
body.nh-v2 .scv2 .btn.scv2-pt.is-stage {
  --scv2-s-fg: var(--scv2-slate);
  font-size: 11.5px;
  font-weight: 650;
}

body.nh-v2 .scv2 .scv2-pt-st {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
}

body.nh-v2 .scv2 .scv2-pt-st .scv2-ic {
  width: 24px;
  height: 24px;
}

body.nh-v2 .scv2 .btn.scv2-pt.is-new {
  animation: scv2-drop .15s ease-out;
}

/* Lo slot della prossima pagina: tratteggiato, non cliccabile. */
body.nh-v2 .scv2 .scv2-slot {
  display: grid;
  place-items: center;
  width: var(--scv2-tw);
  height: var(--scv2-th);
  border: 1.5px dashed var(--scv2-faint);
  border-radius: var(--radius);
}

body.nh-v2 .scv2 .scv2-spin {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(var(--primary-rgb), .25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: scv2-spn .9s linear infinite;
}

/* ================= telefono ================= */
/* La scheda dei comandi e il telefono sono UN gruppo: due colonne affiancate a distanza fissa (48-64px), stessa linea alta, centrate nello spazio a sinistra della
   griglia delle pagine. Il telefono e' alto quanto l'altezza lo consente, come il piano dello scanner: dall'altezza della scena si tolgono 12px sopra il telefono
   (qui arrivano gli anelli, che crescono al massimo di 10px in alto e in basso), 18px tra telefono e didascalia e la didascalia stessa (24px). */
body.nh-v2 .scv2 .scv2-tel {
  --scv2-phh: min(calc(100cqh - 56px), 820px);
  --scv2-tg: clamp(48px, calc(var(--scv2-phh) * .09), 64px);
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-content: center;
  align-items: start;
  column-gap: var(--scv2-tg);
  width: 100%;
  height: 100%;
}

body.nh-v2 .scv2 .scv2-tel .scv2-rl {
  position: static;
  align-self: start;
  margin-top: 12px;
  transform: none;
}

/* La scheda scala con l'altezza del telefono: a 401px (1366x768) misura 240px e campi da 38px, a 697px (2560x1440) 420px e campi da 70px. Il combo Formato non tronca
   "JPEG, una per pagina": la larghezza minima lo contiene a ogni scala. Le variabili dei campi e dei pulsanti si ridefiniscono qui. */
body.nh-v2 .scv2 .scv2-pctl {
  --scv2-pv: var(--scv2-phh, 401px);
  --scv2-fh: clamp(38px, calc(var(--scv2-pv) * .1), 70px);
  --scv2-bh: var(--scv2-fh);
  --scv2-fs: clamp(14.5px, calc(var(--scv2-pv) * .027), 19px);
  --scv2-bfs: var(--scv2-fs);
  --scv2-lfs: clamp(12.5px, calc(var(--scv2-pv) * .0265), 16px);
  --scv2-llh: calc(var(--scv2-lfs) * 1.2);
  --scv2-lmb: clamp(4px, calc(var(--scv2-pv) * .012), 9px);
  --scv2-ic: clamp(16px, calc(var(--scv2-pv) * .042), 22px);
  --scv2-pg: clamp(13px, calc(var(--scv2-pv) * .044), 36px);
  display: grid;
  gap: calc(var(--scv2-pg) - 1px);
  width: clamp(240px, calc(var(--scv2-pv) * .6), 440px);
  padding: calc(var(--scv2-pg) + 1px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px -10px rgba(30, 58, 100, .35);
}

body.nh-v2 .scv2 .scv2-pctl .btn.scv2-btn {
  width: 100%;
  flex: none;
}

body.nh-v2 .scv2 .scv2-phwrap {
  display: grid;
  justify-items: center;
  align-content: start;
  row-gap: 18px;
  padding-top: 12px;
}

/* Il telefono scala con --scv2-phh (altezza): tutte le parti interne sono in proporzione. */
body.nh-v2 .scv2 .scv2-phone {
  position: relative;
  height: var(--scv2-phh, 360px);
  aspect-ratio: 1 / 2;
  border: 2px solid #1e293b;
  border-radius: 13.3% / 6.67%;
  background: var(--surface);
  box-shadow: 0 14px 24px -10px rgba(30, 58, 100, .45);
}

body.nh-v2 .scv2 .scv2-phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.9%;
  width: 18.9%;
  height: 1.7%;
  transform: translateX(-50%);
  border-radius: 3px;
  background: #1e293b;
  z-index: 2;
}

body.nh-v2 .scv2 .scv2-phone::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 19.4%;
  width: 3px;
  height: 10%;
  border-radius: 0 2px 2px 0;
  background: #1e293b;
}

body.nh-v2 .scv2 .scv2-scr {
  position: absolute;
  inset: 3px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11.4% / 5.7%;
  background: linear-gradient(180deg, var(--surface) 0%, var(--primary-soft) 100%);
}

body.nh-v2 .scv2 .scv2-cnt {
  color: var(--primary-ink);
  font-size: calc(var(--scv2-phh, 360px) * .17);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  line-height: 1;
}

body.nh-v2 .scv2 .scv2-ntf {
  position: absolute;
  left: 5.5%;
  right: 5.5%;
  top: 7%;
  display: flex;
  align-items: center;
  gap: calc(var(--scv2-phh, 360px) * .022);
  padding: calc(var(--scv2-phh, 360px) * .022) calc(var(--scv2-phh, 360px) * .028);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .16);
  animation: scv2-ntf .3s var(--scv2-ease);
}

body.nh-v2 .scv2 .scv2-ntf i {
  display: block;
  flex: 1;
  height: calc(var(--scv2-phh, 360px) * .017);
  border-radius: 3px;
  background: var(--border-strong);
}

body.nh-v2 .scv2 .scv2-ntf .scv2-ic {
  width: calc(var(--scv2-phh, 360px) * .044);
  height: calc(var(--scv2-phh, 360px) * .044);
  color: var(--primary);
}

/* Due anelli che si espandono dal telefono e svaniscono, sempre dentro il banco. */
body.nh-v2 .scv2 .scv2-rg {
  position: absolute;
  top: -4px;
  right: -4px;
  bottom: -4px;
  left: -4px;
  border: 2px solid var(--primary);
  border-radius: 14.9% / 7.6%;
  opacity: 0;
  animation: scv2-rings 2.4s ease-out infinite;
  pointer-events: none;
}

body.nh-v2 .scv2 .scv2-rg.is-b {
  animation-delay: 1.2s;
}

/* Notifica non inviata: telefono barrato in rosso. */
body.nh-v2 .scv2 .scv2-phone.is-nok .scv2-bar {
  position: absolute;
  left: -22px;
  right: -22px;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  transform: rotate(-52deg);
  border-radius: 3px;
  background: var(--danger);
  box-shadow: 0 0 0 3px var(--surface);
  z-index: 3;
}

body.nh-v2 .scv2 .scv2-pht {
  min-height: 24px;
  margin: 0;
  color: var(--scv2-ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 24px;
}

body.nh-v2 .scv2 .scv2-pht.is-bad {
  color: var(--scv2-danger-ink);
}

/* ================= dock: errore a sinistra (non spinge la scheda), Annulla e Allega a destra ================= */
body.nh-v2 .scv2 .scv2-dock {
  --scv2-dpt: calc(8px + var(--scv2-r2) * .03);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: var(--scv2-dpt);
  padding-top: var(--scv2-dpt);
  border-top: 1px solid var(--border);
  min-height: calc(var(--scv2-bh) + var(--scv2-dpt) + 1px);
}

body.nh-v2 .scv2 .scv2-dock-msg {
  flex: 1;
  min-width: 0;
}

body.nh-v2 .scv2 .scv2-dock-msg:not(:has(*)) {
  display: none;
}

body.nh-v2 .scv2 .scv2-dock-msg .modal-inline-alert {
  display: flex;
  align-items: center;
  min-height: var(--scv2-bh);
  margin: 0;
  padding: 0 14px;
  border-radius: var(--radius);
  box-shadow: none;
  font-size: calc(var(--scv2-bfs) + .5px);
  animation: scv2-msgin .22s var(--scv2-ease);
}

body.nh-v2 .scv2 .scv2-dock .modal-form-actions {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 0 auto;
  padding: 0;
  border-top: 0;
  background: none;
  box-shadow: none;
}

body.nh-v2 .scv2 .scv2-dock .modal-form-actions .modal-form-main-actions {
  display: flex;
  gap: 8px;
}

body.nh-v2 .scv2 .scv2-dock .modal-form-actions .btn {
  min-width: 96px;
  height: var(--scv2-bh);
  font-size: var(--scv2-bfs);
}

/* ================= movimento ================= */
@keyframes scv2-sweep {
  0% { transform: translateY(-46px); }
  100% { transform: translateY(calc(var(--scv2-ph) - 44px)); }
}

@keyframes scv2-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), .35); }
  50% { box-shadow: 0 0 0 14px rgba(var(--primary-rgb), 0); }
}

@keyframes scv2-ringp {
  0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), .4); }
  100% { box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0); }
}

@keyframes scv2-spn {
  to { transform: rotate(360deg); }
}

@keyframes scv2-drop {
  from { transform: translateY(-16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes scv2-rings {
  0% { opacity: .7; top: -4px; bottom: -4px; left: -4px; right: -4px; }
  100% { opacity: 0; top: -10px; bottom: -10px; left: -34px; right: -34px; }
}

@keyframes scv2-ntf {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

@keyframes scv2-shim {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@keyframes scv2-msgin {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.nh-v2 .scv2 *,
  body.nh-v2 .scv2 *::before,
  body.nh-v2 .scv2 *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  /* Barra di luce e anelli restano fermi, a meta' corsa: si vede che c'e' qualcosa in corso senza movimento. */
  body.nh-v2 .scv2 .scv2-sweep {
    animation: none;
    transform: translateY(calc(var(--scv2-ph) / 2 - 22px));
  }

  body.nh-v2 .scv2 .scv2-rg {
    animation: none;
    opacity: .45;
    top: -8px;
    bottom: -8px;
    left: -24px;
    right: -24px;
  }

  body.nh-v2 .scv2 .scv2-rg.is-b {
    display: none;
  }

  body.nh-v2 .scv2 .scv2-sk,
  body.nh-v2 .scv2 .scv2-find .scv2-stg-gl {
    animation: none;
  }

  body.nh-v2 .scv2 .scv2-spin {
    animation-duration: 3s !important;
    animation-iteration-count: infinite !important;
  }
}
