/* ============================================================================
   vrs-app.css — il selettore d'app di famiglia, il tema a tre posizioni e le Novità
   (VIS-05 / PRD-01, VIS-22, VIS-04)
   ----------------------------------------------------------------------------
   IDENTICO nei due repository: planning/web/src/styles/vrs-app.css e
   cronoservice/web/css/vrs-app.css. Si cambia in uno e si copia nell'altro.

   Usa solo le primitive di vrs-famiglia.css (--vrs-*) e misure in px: le due
   app hanno radici diverse (15 e 16 px) e il selettore deve essere lo stesso
   al pixel da una parte e dall'altra.

   · .vrs-app-btn  il marchio in alto, che è anche il pulsante del selettore;
   · .vrs-app-pop  la finestrella: logo VRS e «Suite» (la pagina di casa), poi
                   Planning · CronoService · Scheduler, con «Sei qui» sull'app in cui si è;
   · .vrs-seg      il controllo del tema a tre posizioni (Auto · Chiaro ·
                   Scuro), lo stesso disegno del Planning;
   · .vrs-nov-*    il tasto «Novità» e la sua finestra (vrs-novita.js), in fondo.
   ========================================================================== */

.vrs-app-btn {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; min-height: 40px; padding: 4px 6px;
  border: 0; border-radius: 10px;
  background: transparent; color: inherit; font: inherit; text-align: left;
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-app-btn:hover,
.vrs-app-btn[aria-expanded='true'] { background: var(--vrs-surface-3); }
.vrs-app-btn:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 2px; }
.vrs-app-giu {
  flex: none; color: var(--vrs-muted);
  transition: transform var(--vrs-t) var(--vrs-ease);
}
.vrs-app-btn[aria-expanded='true'] .vrs-app-giu { transform: rotate(180deg); }

.vrs-app-pop {
  position: fixed; z-index: 90;
  width: 300px; max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px;
  background: var(--vrs-surface); color: var(--vrs-text);
  border: 1px solid var(--vrs-border); border-radius: 14px;
  box-shadow: var(--vrs-shadow-pop);
  animation: vrs-app-entra var(--vrs-t) var(--vrs-ease) both;
}
/* la variante stretta: il solo controllo del tema, in CronoService */
.vrs-app-pop.stretta { width: auto; min-width: 248px; }
@keyframes vrs-app-entra {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* VIS-04: il logo VRS, quello che l'azienda usa (raster), una volta sola e
   abbastanza grande da leggere «GROUP». Al buio sta su una piastrina chiara:
   il grigio scuro della parola, sul fondo scuro, si perderebbe. */
.vrs-app-testa {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 8px 10px; margin-bottom: 6px;
  border-bottom: 1px solid var(--vrs-border);
}
.vrs-app-logo { display: block; height: 36px; width: auto; flex: none; }
:root[data-theme='dark'] .vrs-app-logo {
  background: var(--vrs-text); padding: 3px 5px; border-radius: 6px; box-sizing: content-box;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .vrs-app-logo {
    background: var(--vrs-text); padding: 3px 5px; border-radius: 6px; box-sizing: content-box;
  }
}
.vrs-app-titolo {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--vrs-muted);
}

.vrs-app-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.vrs-app-voce {
  display: flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 6px 10px; border-radius: 10px;
  color: var(--vrs-text); text-decoration: none;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-app-voce:hover { background: var(--vrs-surface-3); color: var(--vrs-text); text-decoration: none; }
.vrs-app-voce:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: -2px; }
.vrs-app-voce[aria-current='page'] { background: var(--vrs-accent-soft); }
.vrs-app-ico {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  border-radius: 8px; background: var(--vrs-surface-3); color: var(--vrs-text-2);
}
.vrs-app-voce[aria-current='page'] .vrs-app-ico { background: var(--vrs-accent); color: var(--vrs-on-accent); }
.vrs-app-testi { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.vrs-app-nome { font-size: 14px; font-weight: 600; line-height: 1.25; }
.vrs-app-nota { font-size: 12px; line-height: 1.3; color: var(--vrs-muted); overflow-wrap: anywhere; }
.vrs-app-qui {
  flex: none; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--vrs-accent);
}

/* La Suite, la pagina di casa: in testata, a destra, sempre raggiungibile */
.vrs-app-casa {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  min-height: 32px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--vrs-border); color: var(--vrs-text-2);
  font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease), color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-app-casa:hover { background: var(--vrs-surface-3); color: var(--vrs-text); text-decoration: none; }
.vrs-app-casa:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 2px; }
@media (pointer: coarse) { .vrs-app-casa { min-height: 44px; padding: 0 14px; } }

/* ---- Tema a tre posizioni (VIS-22) ---------------------------------------- */
.vrs-tema { padding: 4px 4px 2px; }
.vrs-tema-et {
  display: block; margin-bottom: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--vrs-muted);
}
.vrs-seg {
  display: flex; gap: 2px; padding: 2px;
  border: 1px solid var(--vrs-border); border-radius: 10px; background: var(--vrs-surface-3);
}
.vrs-seg button {
  flex: 1; min-width: 0; min-height: 32px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 7px; background: transparent; color: var(--vrs-muted);
  font: inherit; font-size: 13px; line-height: 1.2; white-space: nowrap; cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease), color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-seg button:hover { color: var(--vrs-text); }
.vrs-seg button:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 1px; }
.vrs-seg button[aria-pressed='true'] {
  background: var(--vrs-surface); color: var(--vrs-text); font-weight: 600; box-shadow: var(--vrs-shadow-1);
}
.vrs-seg svg { flex: none; }

/* ---- Colori: la tavolozza (VIS-30), sotto il tema in CronoService ---------
   Un pallino per tavolozza, metà colore del chiaro e metà dello scuro; la
   spunta dice qual è la scelta (non il solo colore). I colori dei pallini
   arrivano in linea (--dot-c, --dot-s) da js/famiglia.js. */
.vrs-tav-sez { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--vrs-border); }
.vrs-tav { display: flex; flex-wrap: wrap; gap: 2px; }
.vrs-tav-dot {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 2px solid transparent; border-radius: 999px; background: transparent;
  cursor: pointer; touch-action: manipulation;
  transition: border-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-tav-dot::before {
  content: ''; grid-area: 1 / 1; width: 22px; height: 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--dot-c) 0 50%, var(--dot-s, var(--dot-c)) 50% 100%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
}
.vrs-tav-dot svg { grid-area: 1 / 1; position: relative; color: #fff; filter: drop-shadow(0 0 1px rgb(0 0 0 / 0.7)); }
.vrs-tav-dot:hover { border-color: var(--vrs-border-strong); }
.vrs-tav-dot[aria-checked='true'] { border-color: var(--vrs-text-2); }
.vrs-tav-dot:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 1px; }
.vrs-tav-altro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: 8px; }
.vrs-tav-pers {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px 0 4px;
  border: 1px solid var(--vrs-border); border-radius: 999px; font-size: 13px; color: var(--vrs-text-2); cursor: pointer;
}
.vrs-tav-pers:focus-within { outline: 2px solid var(--vrs-accent); outline-offset: 2px; }
.vrs-tav-pers input { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: none; cursor: pointer; }
.vrs-tav-pers input:focus-visible { outline: none; }
.vrs-tav-pers input::-webkit-color-swatch-wrapper { padding: 0; }
.vrs-tav-pers input::-webkit-color-swatch { border: 1px solid rgb(0 0 0 / 0.15); border-radius: 999px; }
.vrs-tav-pers input::-moz-color-swatch { border: 1px solid rgb(0 0 0 / 0.15); border-radius: 999px; }
.vrs-tav-link { font-size: 13px; color: var(--vrs-accent); text-decoration: none; }
.vrs-tav-link:hover { text-decoration: underline; }
.vrs-tav-link:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 2px; border-radius: 4px; }
.vrs-tav-nota { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--vrs-muted); }
.vrs-tav-nota:empty { display: none; }
/* I miei temi (28-29/09/2026): colori o tavolozza e tema chiaro/scuro salvati, con la X per toglierli */
.vrs-tav-miei-et { display: block; margin-top: 10px; }
.vrs-tav-miei-et[hidden], .vrs-tav-miei[hidden], .vrs-tav-salva[hidden] { display: none; }
.vrs-tav-miei { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.vrs-tav-mio { position: relative; }
.vrs-tav-dot[aria-pressed='true'] { border-color: var(--vrs-text-2); }
.vrs-tav-mio .vrs-tav-dot { position: relative; }
/* il tema chiaro/scuro/automatico del tema salvato: bollino nell'angolo in basso */
.vrs-tav-modo {
  position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center;
  width: 15px; height: 15px; border-radius: 999px; pointer-events: none;
  background: var(--vrs-surface, #fff); color: var(--vrs-text-2); box-shadow: 0 0 0 1px var(--vrs-border-strong);
}
.vrs-tav-modo.modo-dark { background: #15181c; color: #ecedee; }
.vrs-tav-modo.modo-light { background: #ffffff; color: #8f5a00; }
.vrs-tav-togli {
  position: absolute; top: -6px; right: -6px; display: grid; place-items: center;
  width: 24px; height: 24px; padding: 0; border: 0; background: none; color: var(--vrs-text-2); cursor: pointer;
}
.vrs-tav-togli::before { content: ''; position: absolute; inset: 5px; border-radius: 999px; background: var(--vrs-surface, #fff); box-shadow: 0 0 0 1px var(--vrs-border-strong); }
.vrs-tav-togli svg { position: relative; }
.vrs-tav-togli:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 0; border-radius: 999px; }
.vrs-tav-salva {
  display: inline-flex; align-items: center; min-height: 32px; margin-top: 8px; padding: 0 12px;
  border: 1px solid var(--vrs-border); border-radius: 999px; background: none;
  font: inherit; font-size: 13px; color: var(--vrs-text-2); cursor: pointer;
}
.vrs-tav-salva:hover { border-color: var(--vrs-border-strong); color: var(--vrs-text); }
.vrs-tav-salva:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 2px; }
.vrs-tav-salva:disabled { opacity: 0.55; cursor: not-allowed; }
@media (pointer: coarse) {
  .vrs-tav-dot { width: 44px; height: 44px; }
  .vrs-tav-pers { min-height: 44px; }
  .vrs-tav-salva { min-height: 44px; }
}

/* Sul tocco: bersagli da 44 px */
@media (pointer: coarse) {
  .vrs-app-btn { min-height: 44px; }
  .vrs-app-voce { min-height: 52px; }
  .vrs-seg button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .vrs-app-pop { animation: none; }
  .vrs-app-btn, .vrs-app-giu, .vrs-app-voce, .vrs-seg button { transition: none; }
}

/* ============================================================================
   Novità (js: vrs-novita.js, identico nei due repository come questo foglio)
   ----------------------------------------------------------------------------
   · .vrs-nov-btn  il tasto della testata, con il pallino quando c'è qualcosa
                   da vedere (data-nuove="si": una forma, non solo un colore);
   · .vrs-nov      la finestra: il RIASSUNTO con la scena, le 3–5 novità e i due
                   comandi; il DETTAGLIO con le sezioni pieghevoli e lo storico.
                   Sul telefono è un foglio dal basso, comandi sotto il pollice.
   Movimento solo su transform e opacity, una volta sola (niente cicli); con
   «riduci il movimento» non si muove niente.
   ========================================================================== */

.vrs-nov-posto { display: contents; }
.vrs-nov-btn {
  position: relative; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 40px; min-height: 40px; padding: 0 10px;
  border: 0; border-radius: 10px;
  background: transparent; color: var(--vrs-text-2);
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease), color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-btn[hidden] { display: none; }
.vrs-nov-btn:hover,
.vrs-nov-btn[aria-expanded='true'] { background: var(--vrs-surface-3); color: var(--vrs-text); }
.vrs-nov-btn:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 2px; }
.vrs-nov-btn-ico { display: grid; place-items: center; }
.vrs-nov-btn[data-nuove='si'] .vrs-nov-btn-ico { color: var(--vrs-accent); }
/* l'etichetta solo dove c'è posto; sotto resta l'icona, con il nome accessibile */
.vrs-nov-et { display: none; }
@media (min-width: 1100px) { .vrs-nov-et { display: inline; } }
.vrs-nov-pallino {
  position: absolute; top: 6px; left: 22px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #e5484d; box-shadow: 0 0 0 2px var(--vrs-surface);
  opacity: 0; transform: scale(0.4);
  transition: opacity var(--vrs-t) var(--vrs-ease), transform var(--vrs-t) var(--vrs-ease);
}
.vrs-nov-btn[data-nuove='si'] .vrs-nov-pallino { opacity: 1; transform: none; }
/* due onde attorno al pallino, quando compare, e poi ferme */
.vrs-nov-btn[data-nuove='si'] .vrs-nov-pallino::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #e5484d; opacity: 0;
  animation: vrs-nov-onda 1.4s var(--vrs-ease) 0.6s 2;
}
@keyframes vrs-nov-onda { from { opacity: 0.7; transform: scale(0.6); } to { opacity: 0; transform: scale(1.8); } }

/* ---- la finestra ---- */
html.vrs-nov-aperta { overflow: hidden; }
.vrs-nov-velo {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--vrs-overlay);
  overscroll-behavior: contain;
  animation: vrs-nov-velo var(--vrs-t-slow) var(--vrs-ease) both;
}
@keyframes vrs-nov-velo { from { opacity: 0; } to { opacity: 1; } }
.vrs-nov {
  position: relative;
  width: min(560px, 100%); max-height: min(760px, calc(100dvh - 32px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--vrs-surface); color: var(--vrs-text);
  border: 1px solid var(--vrs-border); border-radius: 20px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.08), 0 24px 64px rgb(4 20 34 / 0.32);
  font-feature-settings: var(--vrs-font-feat);
  text-align: left;
  animation: vrs-nov-entra 420ms var(--vrs-ease) both;
}
.vrs-nov:focus { outline: none; }
@keyframes vrs-nov-entra {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.vrs-nov-pag { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.vrs-nov-corpo {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 20px 8px;
}

/* ---- la scena del riassunto: un palco scuro in tutti e due i temi ---- */
.vrs-nov-scena {
  position: relative; overflow: hidden; isolation: isolate; flex: none;
  padding: 28px 56px 22px 24px;
  color: #f4fbff;
  background:
    radial-gradient(120% 130% at 0% 0%, #0f6a97 0%, transparent 58%),
    radial-gradient(90% 120% at 100% 0%, rgb(0 174 239 / 0.35) 0%, transparent 62%),
    linear-gradient(160deg, #071826 0%, #0b2a3f 55%, #0c3a56 100%);
}
.vrs-nov-bolla {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  filter: blur(26px); opacity: 0.75;
  animation: vrs-nov-deriva 4.2s var(--vrs-ease) both;
}
.vrs-nov-bolla.b1 { width: 180px; height: 180px; right: -40px; top: -60px; background: #00aeef; }
.vrs-nov-bolla.b2 { width: 140px; height: 140px; left: 30%; bottom: -90px; background: #3b5bdb; opacity: 0.55; animation-delay: 80ms; }
.vrs-nov-bolla.b3 { width: 90px; height: 90px; left: -30px; top: 20px; background: #12b886; opacity: 0.4; animation-delay: 160ms; }
@keyframes vrs-nov-deriva {
  from { transform: translate3d(0, 24px, 0) scale(0.6); opacity: 0; }
}
.vrs-nov-luci { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.vrs-nov-luce {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px 2px rgb(160 230 255 / 0.9);
  opacity: 0.55; animation: vrs-nov-brilla 1.8s var(--vrs-ease) both;
  animation-delay: calc(var(--i) * 90ms + 150ms);
}
.vrs-nov-luce:nth-child(1) { top: 18%; right: 14%; }
.vrs-nov-luce:nth-child(2) { top: 62%; right: 8%; width: 4px; height: 4px; }
.vrs-nov-luce:nth-child(3) { top: 30%; right: 32%; width: 3px; height: 3px; }
.vrs-nov-luce:nth-child(4) { top: 76%; right: 38%; width: 4px; height: 4px; }
.vrs-nov-luce:nth-child(5) { top: 12%; left: 44%; width: 3px; height: 3px; }
.vrs-nov-luce:nth-child(6) { top: 48%; right: 22%; }
.vrs-nov-luce:nth-child(7) { top: 86%; right: 18%; width: 3px; height: 3px; }
@keyframes vrs-nov-brilla {
  0% { opacity: 0; transform: scale(0.2) translateY(10px); }
  45% { opacity: 1; transform: scale(1.4); }
  100% { opacity: 0.55; transform: none; }
}
.vrs-nov-stemma {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px;
  border-radius: 16px; color: #fff;
  background: linear-gradient(145deg, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0.06));
  border: 1px solid rgb(255 255 255 / 0.28);
  box-shadow: 0 8px 24px rgb(0 174 239 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.25);
  animation: vrs-nov-stemma 700ms cubic-bezier(0.34, 1.56, 0.64, 1) 120ms both;
}
@keyframes vrs-nov-stemma {
  from { opacity: 0; transform: scale(0.4) rotate(-25deg); }
  to { opacity: 1; transform: none; }
}
.vrs-nov-sopra {
  margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #9bdcf7;
  animation: vrs-nov-sale 480ms var(--vrs-ease) 180ms both;
}
.vrs-nov-tit {
  margin: 0; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em;
  color: inherit; text-wrap: balance; overflow-wrap: anywhere;
  animation: vrs-nov-sale 520ms var(--vrs-ease) 240ms both;
}
.vrs-nov-quando {
  margin: 8px 0 0; font-size: 13px; color: #c3e6f5; font-variant-numeric: tabular-nums;
  animation: vrs-nov-sale 520ms var(--vrs-ease) 300ms both;
}
@keyframes vrs-nov-sale { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.vrs-nov-x {
  position: absolute; top: 12px; right: 12px;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 12px; background: transparent; color: var(--vrs-text-2); cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-x:hover { background: var(--vrs-surface-3); color: var(--vrs-text); }
.vrs-nov-x:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 0; }
.vrs-nov-scena .vrs-nov-x { color: #e6f6fd; }
.vrs-nov-scena .vrs-nov-x:hover { background: rgb(255 255 255 / 0.16); color: #fff; }
.vrs-nov-scena .vrs-nov-x:focus-visible { outline-color: #9bdcf7; }

/* ---- le novità del riassunto ---- */
.vrs-nov-voci { list-style: none; margin: 0; padding: 0; display: grid; }
.vrs-nov-voce {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 4px;
  animation: vrs-nov-sale 460ms var(--vrs-ease) both;
  animation-delay: calc(360ms + var(--i) * 80ms);
}
.vrs-nov-voce + .vrs-nov-voce { border-top: 1px solid var(--vrs-border); }
.vrs-nov-voce-ico {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; background: var(--vrs-accent-soft); color: var(--vrs-accent);
}
.vrs-nov-voce-testi { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-top: 1px; }
.vrs-nov-voce-tit { font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.vrs-nov-voce-riga { font-size: 14px; line-height: 1.45; color: var(--vrs-text-2); overflow-wrap: anywhere; }
/* «Vedi le 96 correzioni…»: dalla voce del riassunto alla sua sezione del dettaglio */
.vrs-nov-vai {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 32px; margin: 2px 0 0 -8px; padding: 0 8px;
  border: 0; border-radius: 8px; background: transparent; color: var(--vrs-accent);
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-vai:hover { background: var(--vrs-accent-soft); }
.vrs-nov-vai:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 0; }
.vrs-nov-vuoto { margin: 8px 0; color: var(--vrs-muted); font-size: 14px; line-height: 1.5; }

/* ---- i comandi in fondo ---- */
.vrs-nov-piede {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px 16px; border-top: 1px solid var(--vrs-border);
  background: var(--vrs-surface);
}
.vrs-nov-piede > :only-child { margin-left: auto; }
.vrs-nov-ok, .vrs-nov-link {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease), color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-ok { background: var(--vrs-accent); color: var(--vrs-on-accent); }
.vrs-nov-ok:hover { background: var(--vrs-accent-hover); }
.vrs-nov-link { background: transparent; color: var(--vrs-accent); padding: 0 10px; margin-left: -10px; }
.vrs-nov-link:hover { background: var(--vrs-accent-soft); }
.vrs-nov-ok:focus-visible, .vrs-nov-link:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 2px; }

/* ---- il dettaglio ---- */
.vrs-nov-testa {
  position: relative; flex: none; display: flex; align-items: center; gap: 8px;
  min-height: 60px; padding: 10px 60px 10px 10px; border-bottom: 1px solid var(--vrs-border);
}
.vrs-nov-testa .vrs-nov-x { top: 10px; right: 10px; }
.vrs-nov-indietro {
  flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 10px 0 6px;
  border: 0; border-radius: 10px; background: transparent; color: var(--vrs-accent);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-indietro:hover { background: var(--vrs-accent-soft); }
.vrs-nov-indietro:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 0; }
.vrs-nov-testa-tit { margin: 0 auto 0 4px; min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.25; color: inherit; }

.vrs-nov-sfoglia {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 8px; border-radius: 14px; background: var(--vrs-surface-3);
}
.vrs-nov-freccia {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--vrs-border); border-radius: 10px;
  background: var(--vrs-surface); color: var(--vrs-text); cursor: pointer; touch-action: manipulation;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease), border-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-freccia:hover:not(:disabled) { border-color: var(--vrs-border-strong); background: var(--vrs-surface-2); }
.vrs-nov-freccia:disabled { opacity: 0.4; cursor: default; }
.vrs-nov-freccia:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 1px; }
.vrs-nov-sfoglia-testi { flex: 1; min-width: 0; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.vrs-nov-sfoglia-data { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--vrs-accent); font-variant-numeric: tabular-nums; }
.vrs-nov-sfoglia-tit { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; text-wrap: balance; }
.vrs-nov-sfoglia-n { font-size: 12px; color: var(--vrs-muted); font-variant-numeric: tabular-nums; }

.vrs-nov-sez, .vrs-nov-storico { border: 1px solid var(--vrs-border); border-radius: 14px; margin-bottom: 10px; background: var(--vrs-surface); }
.vrs-nov-sez > summary, .vrs-nov-storico > summary {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px;
  list-style: none; cursor: pointer; border-radius: 13px; touch-action: manipulation;
  font-size: 14px; font-weight: 600;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-sez > summary::-webkit-details-marker, .vrs-nov-storico > summary::-webkit-details-marker { display: none; }
.vrs-nov-sez > summary:hover, .vrs-nov-storico > summary:hover { background: var(--vrs-surface-2); }
.vrs-nov-sez > summary:focus-visible, .vrs-nov-storico > summary:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: -2px; }
.vrs-nov-sez-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; flex: none; }
.vrs-nov-sez[data-sez='novita'] .vrs-nov-sez-ico { background: var(--vrs-accent-soft); color: var(--vrs-accent); }
.vrs-nov-sez[data-sez='miglioramenti'] .vrs-nov-sez-ico { background: rgb(18 184 134 / 0.14); color: #0c7a58; }
.vrs-nov-sez[data-sez='correzioni'] .vrs-nov-sez-ico { background: rgb(245 159 0 / 0.16); color: #955300; }
:root[data-theme='dark'] .vrs-nov-sez[data-sez='miglioramenti'] .vrs-nov-sez-ico { color: #38d9a9; }
:root[data-theme='dark'] .vrs-nov-sez[data-sez='correzioni'] .vrs-nov-sez-ico { color: #ffc34d; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .vrs-nov-sez[data-sez='miglioramenti'] .vrs-nov-sez-ico { color: #38d9a9; }
  :root:not([data-theme='light']) .vrs-nov-sez[data-sez='correzioni'] .vrs-nov-sez-ico { color: #ffc34d; }
}
.vrs-nov-sez-nome { flex: 1; min-width: 0; }
.vrs-nov-sez-n {
  min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; display: grid; place-items: center;
  background: var(--vrs-surface-3); color: var(--vrs-text-2); font-size: 12px; font-variant-numeric: tabular-nums;
}
.vrs-nov-sez-giu { display: grid; place-items: center; color: var(--vrs-muted); transition: transform var(--vrs-t) var(--vrs-ease); }
details[open] > summary .vrs-nov-sez-giu { transform: rotate(180deg); }
.vrs-nov-sez-corpo { padding: 2px 16px 14px 34px; }
.vrs-nov-sez ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 8px; }
.vrs-nov-sez ul + .vrs-nov-gruppo { margin-top: 16px; }
/* i gruppi di un elenco lungo (Sul telefono, Documenti…): un'etichetta sopra le sue righe */
.vrs-nov-gruppo {
  margin: 4px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--vrs-muted); line-height: 1.3;
}
.vrs-nov-sez li { font-size: 14px; line-height: 1.5; color: var(--vrs-text-2); overflow-wrap: anywhere; }
.vrs-nov-sez li::marker { color: var(--vrs-muted); }
.vrs-nov-storico ol { list-style: none; margin: 0; padding: 0 6px 8px; display: grid; gap: 2px; }
.vrs-nov-storia {
  width: 100%; display: flex; align-items: baseline; gap: 12px; min-height: 44px; padding: 8px 10px;
  border: 0; border-radius: 10px; background: transparent; color: var(--vrs-text);
  font: inherit; font-size: 14px; line-height: 1.35; text-align: left; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-storia:hover { background: var(--vrs-surface-3); }
.vrs-nov-storia:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: -2px; }
.vrs-nov-storia[aria-current='true'] { background: var(--vrs-accent-soft); }
.vrs-nov-storia-data { flex: none; width: 58px; color: var(--vrs-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.vrs-nov-storia[aria-current='true'] .vrs-nov-storia-data { color: var(--vrs-accent); font-weight: 600; }
.vrs-nov-storia-tit { min-width: 0; overflow-wrap: anywhere; }

/* ---- sul telefono: un foglio dal basso, i comandi sotto il pollice ---- */
@keyframes vrs-nov-foglio { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@media (max-width: 639px) {
  .vrs-nov-velo { place-items: end stretch; padding: max(12px, env(safe-area-inset-top)) 0 0; }
  .vrs-nov {
    width: 100%; max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
    border-radius: 22px 22px 0 0; border-bottom: 0;
    animation-name: vrs-nov-foglio;
  }
  .vrs-nov-scena { padding: 22px 56px 18px 20px; }
  .vrs-nov-stemma { width: 46px; height: 46px; margin-bottom: 12px; }
  .vrs-nov-tit { font-size: 23px; }
  .vrs-nov-corpo { padding: 8px 16px 8px; }
  .vrs-nov-piede {
    flex-direction: column-reverse; align-items: stretch; gap: 6px;
    padding: 10px 16px max(14px, env(safe-area-inset-bottom));
  }
  .vrs-nov-ok, .vrs-nov-link { min-height: 48px; width: 100%; margin: 0; }
  .vrs-nov-x, .vrs-nov-freccia { width: 44px; height: 44px; }
  .vrs-nov-indietro { min-height: 44px; }
  .vrs-nov-sez-corpo { padding-left: 28px; }
}

/* Sul tocco: bersagli da 44 px */
@media (pointer: coarse) {
  .vrs-nov-btn { min-width: 44px; min-height: 44px; }
  .vrs-nov-pallino { top: 8px; left: 24px; }
  .vrs-nov-x, .vrs-nov-freccia { width: 44px; height: 44px; }
  .vrs-nov-indietro, .vrs-nov-ok, .vrs-nov-link { min-height: 48px; }
  .vrs-nov-sez > summary, .vrs-nov-storico > summary { min-height: 52px; }
  .vrs-nov-storia { min-height: 48px; }
  .vrs-nov-vai { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .vrs-nov-velo, .vrs-nov, .vrs-nov-bolla, .vrs-nov-luce, .vrs-nov-stemma, .vrs-nov-sopra,
  .vrs-nov-tit, .vrs-nov-quando, .vrs-nov-voce, .vrs-nov-btn[data-nuove='si'] .vrs-nov-pallino::after { animation: none; }
  .vrs-nov-btn, .vrs-nov-pallino, .vrs-nov-x, .vrs-nov-ok, .vrs-nov-link, .vrs-nov-indietro,
  .vrs-nov-freccia, .vrs-nov-sez > summary, .vrs-nov-storico > summary, .vrs-nov-sez-giu, .vrs-nov-storia, .vrs-nov-vai { transition: none; }
}
