/* GENERATO da scripts/palette_smeraldo.py da static/macos.css: non modificare, rilanciare lo script. */
/* ═══════════════════════════════════════════════════════════════════════════
   LexNova Chat — CONFIGURAZIONE 2: «macOS nativo» (30/10/2026)

   Si accende con la classe `veste-macos` su <html> (static/veste.js:
   ?veste=2 la attiva, ?veste=1 torna alla configurazione 1). Ogni regola qui
   sotto e' prefissata da `html.veste-macos` dallo script che genera il file:
   senza la classe questo foglio non tocca niente.

   Come le app di Apple prima del vetro (Note, Mail, Finder):
   - barra laterale grigio chiaro PIENO, attaccata al bordo, filetto a destra;
   - contenuto bianco, niente aloni, niente sfocature, niente trasparenze;
   - righe della barra da 28 px, selezione grigia, icona nel colore d'accento;
   - pulsanti «push» di macOS: angoli da 6 px, pieno verde o bianco col filo;
   - campi con il filo grigio e l'anello di fuoco colorato;
   - menu e popover pieni, angoli da 8-10 px, ombra netta.
   ═══════════════════════════════════════════════════════════════════════════ */
html.veste-macos {
  --bg: #ffffff;
  --mac-barra: #f4f4f5;
  --mac-filo: rgba(0,0,0,.10);
  --mac-sel: rgba(0,0,0,.075);
  --mac-hover: rgba(0,0,0,.045);
  --mac-anello: 0 0 0 1px rgba(52,129,98,.75), 0 0 0 4px rgba(52,129,98,.14);   /* 21/11/2026: linea intera + alone */
  --mac-ombra-menu: 0 0 0 .5px rgba(0,0,0,.12), 0 10px 30px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.08);
  --mac-ombra-finestra: 0 0 0 .5px rgba(0,0,0,.12), 0 24px 60px rgba(0,0,0,.22);
  --mac-verde-su: #439172;
  --radius: 10px;
}
html.veste-macos body,
html.veste-macos body.chat-temporanea { background: #ffffff !important; }
html.veste-macos .main,
html.veste-macos .main.vuota { background: #ffffff !important; }
html.veste-macos .main.vuota::before,
html.veste-macos .main.vuota:has(.hero[data-home="nuova"])::before { display: none !important; }
html.veste-macos .saluto { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: var(--ink) !important; font-weight: 600 !important; }
html.veste-macos .shell { padding: 0 !important; }
html.veste-macos .rail {
  height: 100dvh !important;
  border-radius: 0 !important;
  background: var(--mac-barra) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border: none !important;
  border-right: 1px solid var(--mac-filo) !important;
  box-shadow: none !important;
}
html.veste-macos .rail.chiusa { border-right: 1px solid var(--mac-filo) !important; }
html.veste-macos .rail-voce,
html.veste-macos .thread-item,
html.veste-macos .rail-set {
  border-radius: 6px !important;
  padding-top: 5px !important; padding-bottom: 5px !important;
  font-size: 13px !important;
  transition: none !important;
}
html.veste-macos .rail-voce:hover,
html.veste-macos .thread-item:hover,
html.veste-macos .rail-set:hover { background: var(--mac-hover) !important; }
html.veste-macos .rail-voce:active,
html.veste-macos .thread-item:active { transform: none !important; }
html.veste-macos .rail-voce.on,
html.veste-macos .thread-item.on {
  background: var(--mac-sel) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  font-weight: 500 !important;
}
html.veste-macos .rail-list .rail-tit { font-size: 11px !important; font-weight: 600 !important; color: #8e8e93 !important; }
html.veste-macos .rail-foot { border-top: 1px solid var(--mac-filo) !important; }
html.veste-macos .top { border-bottom: 1px solid transparent; }
html.veste-macos .campanella,
html.veste-macos .btn-temporanea,
html.veste-macos .btn-tondo {
  background: transparent !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border: none !important; box-shadow: none !important;
  border-radius: 6px !important;
  color: #6e6e73 !important;
}
html.veste-macos .campanella:hover,
html.veste-macos .btn-temporanea:hover,
html.veste-macos .btn-tondo:hover { background: rgba(0,0,0,.06) !important; color: var(--ink) !important; }
html.veste-macos .campanella[aria-expanded="true"] { background: rgba(0,0,0,.08) !important; }
html.veste-macos .campanella { width: 32px !important; height: 32px !important; }
html.veste-macos .btn-temporanea { width: 32px !important; height: 32px !important; padding: 0 !important; }
html.veste-macos .btn-temporanea[aria-pressed="true"] { background: #1d1d1f !important; color: #fff !important; }
html.veste-macos .campanella-n { box-shadow: 0 0 0 2px #fff !important; animation: none !important; }
html.veste-macos .composer,
html.veste-macos .main.vuota .composer,
html.veste-macos .composer.sq,
html.veste-macos .main .composer.sq,
html.veste-macos .main.vuota .composer.sq,
html.veste-macos .main.vuota .composer.sq:hover {
  background: #ffffff !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border: 1px solid rgba(0,0,0,.16) !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.05) !important;
  animation: none !important;
}
html.veste-macos .composer:focus-within,
html.veste-macos .main.vuota .composer:focus-within,
html.veste-macos .composer.sq:focus-within,
html.veste-macos .main.vuota .composer.sq:focus-within {
  background: #ffffff !important;
  border-color: rgba(52,129,98,.75) !important;
  box-shadow: var(--mac-anello) !important;
}
html.veste-macos .dock.lavora .composer,
html.veste-macos .dock.lavora .composer.sq { animation: none !important; box-shadow: 0 0 0 2px rgba(52,129,98,.5) !important; }
html.veste-macos .btn-send:not(.ferma):not(:disabled),
html.veste-macos .composer.invio-se-pieno .btn-send:not(.ferma),
html.veste-macos .composer.sq .btn-send:not(.ferma):not(:disabled) {
  border-radius: 8px !important;
}
html.veste-macos .btn-send:disabled { background: rgba(0,0,0,.08) !important; }
html.veste-macos .bubble-user {
  background: #ececee !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border: none !important; box-shadow: none !important;
  border-radius: 16px !important;
}
html.veste-macos .bolla-f { background: #f4f4f5 !important; border-color: rgba(0,0,0,.08) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.veste-macos .btn-primo,
html.veste-macos .btn-pieno,
html.veste-macos .btn-piano,
html.veste-macos .rail-passa-pro,
html.veste-macos .novita-primario,
html.veste-macos .consenso-si,
html.veste-macos .spiega-si,
html.veste-macos .doc-correggi-az .btn-pri,
html.veste-macos .pop.pop-set .uso-cta,
html.veste-macos .uso-cta,
html.veste-macos .popup-domande .pd-invia,
html.veste-macos .rd-invia,
html.veste-macos .body a.vai.vai-apri {
  border-radius: 7px !important;
  box-shadow: 0 .5px 1px rgba(0,0,0,.18) !important;
  font-weight: 500 !important;
}
html.veste-macos .btn-primo:hover,
html.veste-macos .btn-pieno:hover:not(:disabled),
html.veste-macos .rail-passa-pro:hover,
html.veste-macos .novita-primario:hover,
html.veste-macos .rd-invia:hover { background: var(--mac-verde-su) !important; }
html.veste-macos .rail-passa-pro { margin: 6px 8px 8px !important; padding: 7px 10px !important; font-size: 13px !important; }
html.veste-macos .btn-secondo,
html.veste-macos .btn-indietro,
html.veste-macos .opt,
html.veste-macos .btn-pro,
html.veste-macos .rd-pill,
html.veste-macos .rd-az,
html.veste-macos .rd-ferma,
html.veste-macos .top-accedi,
html.veste-macos .atto-dl,
html.veste-macos .link-out {
  background: #ffffff !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border: .5px solid rgba(0,0,0,.18) !important;
  box-shadow: 0 .5px 1.5px rgba(0,0,0,.14) !important;
  border-radius: 7px !important;
  font-weight: 500 !important;
}
html.veste-macos .opt,
html.veste-macos .btn-pro,
html.veste-macos .top-accedi,
html.veste-macos .atto-dl,
html.veste-macos .link-out { color: var(--accent-dark) !important; }
html.veste-macos .btn-secondo:hover,
html.veste-macos .btn-indietro:hover,
html.veste-macos .opt:hover,
html.veste-macos .btn-pro:hover,
html.veste-macos .top-accedi:hover,
html.veste-macos .atto-dl:hover,
html.veste-macos .link-out:hover { background: #f5f5f7 !important; }
html.veste-macos .btn-secondo:active,
html.veste-macos .btn-indietro:active,
html.veste-macos .opt:active { background: #ebebed !important; transform: none !important; }
html.veste-macos .menu,
html.veste-macos .pop,
html.veste-macos .rd-tipo-menu,
html.veste-macos .notifiche-pop {
  background: #f9f9f9 !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border: none !important;
  box-shadow: var(--mac-ombra-menu) !important;
  border-radius: 10px !important;
  animation: none !important;
}
html.veste-macos .menu { padding: 5px !important; }
html.veste-macos .menu-voce { border-radius: 5px !important; padding-top: 5px !important; padding-bottom: 5px !important; }
html.veste-macos .menu-voce:hover { background: var(--mac-verde-su) !important; color: #fff !important; }
html.veste-macos .menu-voce:hover .material-symbols-outlined { color: #fff !important; }
html.veste-macos .menu-voce.danger:hover { background: #d70015 !important; color: #fff !important; }
html.veste-macos .drawer,
html.veste-macos .foglio,
html.veste-macos .foglio-modelli,
html.veste-macos .muro,
html.veste-macos .set,
html.veste-macos .accesso,
html.veste-macos .novita,
html.veste-macos .cassa,
html.veste-macos .spiega,
html.veste-macos .rd-foglio,
html.veste-macos .consenso,
html.veste-macos .popup-domande {
  background: #ffffff !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border: none !important;
  box-shadow: var(--mac-ombra-finestra) !important;
  border-radius: 12px !important;
}
html.veste-macos .drawer { border-radius: 0 !important; border-left: 1px solid var(--mac-filo) !important; }
html.veste-macos .velo,
html.veste-macos .drawer-bg,
html.veste-macos .muro-bg,
html.veste-macos .cassa-bg,
html.veste-macos .rail-velo,
html.veste-macos .accesso-bg,
html.veste-macos .novita-velo,
html.veste-macos .spiega-velo {
  background: rgba(0,0,0,.22) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html.veste-macos .page-card,
html.veste-macos .table-wrap {
  background: #ffffff !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border: 1px solid var(--mac-filo) !important;
  box-shadow: none !important;
  border-radius: 10px !important;
}
html.veste-macos .atto,
html.veste-macos .src,
html.veste-macos .sent-breve,
html.veste-macos .lv,
html.veste-macos .uso,
html.veste-macos .conto-blocco,
html.veste-macos .pro-stato,
html.veste-macos .pro-esito,
html.veste-macos .doc-atto,
html.veste-macos .doc-correggi,
html.veste-macos .tv-carta,
html.veste-macos .rd-carta,
html.veste-macos .spunto,
html.veste-macos .chip,
html.veste-macos .doc-chip,
html.veste-macos .soglia-cosa,
html.veste-macos .muro .muro-cosa,
html.veste-macos .dr-nome,
html.veste-macos .fn-testo,
html.veste-macos .rd-corso {
  background: #ffffff !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border-color: var(--mac-filo) !important;
  box-shadow: none !important;
}
html.veste-macos .campo input,
html.veste-macos .conto-campo input,
html.veste-macos .fd-campo,
html.veste-macos .doc-correggi textarea,
html.veste-macos .tv-campo textarea,
html.veste-macos .rd-chiedi-f,
html.veste-macos .rd-strumenti select,
html.veste-macos .rinomina {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,.18) !important;
  border-radius: 7px !important;
}
html.veste-macos .campo input:focus,
html.veste-macos .conto-campo input:focus,
html.veste-macos .doc-correggi textarea:focus,
html.veste-macos .tv-campo textarea:focus {
  border-color: rgba(52,129,98,.75) !important; box-shadow: var(--mac-anello) !important;
}
html.veste-macos .nt-voce { border-radius: 8px !important; }
html.veste-macos .nt-voce.nuova { background: transparent !important; }
html.veste-macos a.nt-voce:hover { background: rgba(0,0,0,.05) !important; }
html.veste-macos .nt-ic { border-radius: 8px !important; box-shadow: none !important; }
html.veste-macos .avviso-temporanea { background: #f4f4f5 !important; border: 1px dashed rgba(0,0,0,.2) !important; border-radius: 8px !important; }
@media (max-width: 900px) {
html.veste-macos .rail { border-right: 1px solid var(--mac-filo) !important; }
}
html.veste-macos .drawer:not(.on) { box-shadow: none !important; }
@media (min-width: 901px) {
html.veste-macos .rail.chiusa .rail-burger {
    background: transparent !important; border: none !important; box-shadow: none !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    border-radius: 6px !important; color: #6e6e73 !important; left: calc(100% + 10px) !important;
  }
html.veste-macos .rail.chiusa .rail-burger:hover { background: rgba(0,0,0,.06) !important; color: var(--ink) !important; }
}
@media (min-width: 901px) {
html.veste-macos .rail.chiusa .rail-burger {
    background: #fff !important; border: .5px solid rgba(0,0,0,.18) !important;
    box-shadow: 0 .5px 1.5px rgba(0,0,0,.12) !important; border-radius: 7px !important;
  }
html.veste-macos .rail.chiusa .rail-burger:hover { background: #f5f5f7 !important; }
}
@media (min-width: 901px) {
html.veste-macos .rail.chiusa .rail-burger { width: 40px !important; height: 40px !important; border-radius: 9px !important; }
html.veste-macos .rail.chiusa .rail-burger .material-symbols-outlined { font-size: 22px !important; }
}
html.veste-macos .rail-foot .rail-passa-pro { border-radius: 999px !important; margin: 6px 6px 17px !important; padding: 6px 48px 6px 18px !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.35) !important; font-weight: 700 !important; }
html.veste-macos .rail-foot .rail-passa-pro:hover { background: linear-gradient(90deg, #2c7055 0%, #439172 45%, #91c3af 100%) !important; }
html.veste-macos .rail.chiusa .rail-foot .rail-passa-pro { padding: 0 !important; margin: 6px auto 17px !important; }
html.veste-macos .rail-foot:has(.rail-passa-pro:not([hidden])) { border-top-color: transparent !important; }
html.veste-macos .rail-foot .rail-passa-pro { box-shadow: none !important; border: none !important; }
html.veste-macos .rail-foot .rail-passa-pro:hover { background: #2c7055 !important; }
html.veste-macos .rail-foot .rail-passa-pro { box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.08) !important; }
html.veste-macos .rail-foot .rail-passa-pro:hover { box-shadow: 0 1px 2px rgba(0,0,0,.14), 0 5px 14px rgba(0,0,0,.11) !important; }
html.veste-macos .composer,
html.veste-macos .main.vuota .composer,
html.veste-macos .composer.sq,
html.veste-macos .main .composer.sq,
html.veste-macos .main.vuota .composer.sq,
html.veste-macos .main.vuota .composer.sq:hover {
  border-radius: 18px !important; border: 1px solid rgba(0,0,0,.12) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 22px rgba(0,0,0,.06) !important;
}
html.veste-macos .composer:focus-within,
html.veste-macos .main.vuota .composer:focus-within,
html.veste-macos .composer.sq:focus-within,
html.veste-macos .main.vuota .composer.sq:focus-within {
  border-color: rgba(0,0,0,.2) !important; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 26px rgba(0,0,0,.08) !important;
}
@media (min-width: 901px) {
html.veste-macos .rail .rail-burger,
html.veste-macos .rail.chiusa .rail-burger {
    background: #fff !important; border: 1px solid rgba(0,0,0,.12) !important; border-radius: 13px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 22px rgba(0,0,0,.06) !important;
    width: 42px !important; height: 42px !important; left: calc(100% + 16px) !important; color: #3a3a3c !important;
  }
}
html.veste-macos .foglio-nuovo.rd-campo,
html.veste-macos .rd-campo,
html.veste-macos .tv-campo textarea { border-radius: 18px !important; border: 1px solid rgba(0,0,0,.12) !important; }
@media (min-width: 901px) {
html.veste-macos .rail .rail-burger,
html.veste-macos .rail.chiusa .rail-burger {
    background: transparent !important; border: none !important; box-shadow: none !important;
    border-radius: 9px !important; width: 36px !important; height: 36px !important;
  }
html.veste-macos .rail .rail-burger:hover { background: rgba(0,0,0,.06) !important; }
}
html.veste-macos .rd-campo .rd-pill {
  background: transparent !important; border: none !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border-radius: 9px !important; color: var(--muted) !important; font-weight: 500 !important;
  padding: 7px 10px !important;
}
html.veste-macos .rd-campo .rd-pill:hover { background: rgba(0,0,0,.05) !important; color: var(--ink) !important; transform: none !important; }
html.veste-macos .rd-campo .rd-pill .material-symbols-outlined { color: inherit !important; }
html.veste-macos .rd-campo .rd-invia {
  background: var(--accent) !important; color: #fff !important;
  border: none !important; box-shadow: none !important; border-radius: 12px !important;
  padding: 9px 16px !important; font-weight: 600 !important;
}
html.veste-macos .rd-campo .rd-invia:hover { background: #2c7055 !important; }
html.veste-macos .foglio-nuovo.rd-campo,
html.veste-macos .rd-campo { padding: 12px 12px 10px 14px !important; }
html.veste-macos .rd-archivio { margin-top: 34px !important; padding-top: 26px !important; border-top: 1px solid rgba(60,60,67,.14) !important; }
html.veste-macos .rd-archivio-testa { display: block !important; margin-bottom: 16px !important; }
html.veste-macos .rd-archivio-testa h2 {
  margin: 0 !important; font-size: 17px !important; font-weight: 700 !important; letter-spacing: -.015em !important;
  text-transform: none !important; color: var(--ink) !important;
}
html.veste-macos .rd-archivio-sotto { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
html.veste-macos .rd-archivio #elenco { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html.veste-macos .rd-archivio #elenco .doc-riga {
  position: relative; display: flex !important; flex-direction: column !important; align-items: flex-start !important;
  gap: 10px !important; min-height: 148px; padding: 14px 14px 12px !important; margin: 0 !important;
  background: #ffffff !important; border: 1px solid rgba(0,0,0,.08) !important; border-radius: 16px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.03) !important; text-decoration: none; color: inherit;
  transition: box-shadow .2s ease, transform .25s cubic-bezier(.32,.72,0,1), border-color .2s ease;
}
html.veste-macos .rd-archivio #elenco .doc-riga:hover { border-color: rgba(0,0,0,.14) !important; box-shadow: 0 6px 20px rgba(0,0,0,.08) !important; transform: translateY(-2px); }
html.veste-macos .rd-archivio #elenco .dr-tipo { max-width: calc(100% - 52px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.veste-macos .rd-archivio #elenco .dr-t { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; width: 100%; }
html.veste-macos .rd-archivio #elenco .dr-t > b {
  font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink); white-space: normal !important;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
html.veste-macos .rd-archivio #elenco .dr-t > span { margin-top: auto; font-size: 11.5px; color: var(--faint); white-space: normal !important; }
html.veste-macos .rd-archivio #elenco .dr-rin,
html.veste-macos .rd-archivio #elenco .dr-x { position: absolute; top: 8px; }
html.veste-macos .rd-archivio #elenco .dr-x { right: 8px; }
html.veste-macos .rd-archivio #elenco .dr-rin { right: 38px; }
@media (max-width: 1250px) {
html.veste-macos .rd-archivio #elenco { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
html.veste-macos .rd-archivio #elenco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
html.veste-macos .rd-archivio #elenco { grid-template-columns: 1fr; }
html.veste-macos .rd-archivio #elenco .doc-riga { min-height: 0; }
}
html.veste-macos .rd-archivio #elenco .dr-tipo { max-width: 100% !important; }
html.veste-macos .rd-archivio #elenco .dr-rin,
html.veste-macos .rd-archivio #elenco .dr-x { background: #fff !important; border-radius: 8px !important; box-shadow: 0 0 0 4px #fff; }
html.veste-macos .rd-archivio #elenco .dr-rin,
html.veste-macos .rd-archivio #elenco .dr-x { display: none !important; }
html.veste-macos .rd-archivio #elenco .dr-tipo { max-width: calc(100% - 34px) !important; }
html.veste-macos .rd-archivio #elenco .dr-piu {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; padding: 0;
  display: grid; place-items: center; border: none; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--muted);
}
html.veste-macos .rd-archivio #elenco .dr-piu svg { width: 18px; height: 18px; }
html.veste-macos .rd-archivio #elenco .dr-piu:hover,
html.veste-macos .rd-archivio #elenco .dr-piu[aria-expanded="true"] { background: rgba(0,0,0,.06); color: var(--ink); }
html.veste-macos .doc-menu { position: fixed; min-width: 200px; z-index: 200; }
html.veste-macos .doc-menu .menu-voce { font-size: 13px; }
html.veste-macos .doc-menu .menu-voce:disabled { opacity: .7; cursor: default; }
html.veste-macos .doc-menu-sep { height: 1px; margin: 4px 8px; background: rgba(60,60,67,.14); }
html.veste-macos .doc-menu { background: rgba(255,255,255,.98) !important; }
html.veste-macos .rd-lavoro { padding-top: 36px !important; }
html.veste-macos .rd-conv { background: #fbfbfc !important; }
html.veste-macos .rd-conv-testa { padding: 6px 18px 8px !important; align-items: center !important; gap: 10px !important; }
html.veste-macos .rd-conv-testa .btn-indietro {
  background: transparent !important; border: none !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  padding: 4px 6px 4px 2px !important; border-radius: 8px !important;
  color: var(--accent-dark) !important; font-weight: 600 !important; font-size: 13.5px !important;
}
html.veste-macos .rd-conv-testa .btn-indietro:hover { background: rgba(0,0,0,.05) !important; }
html.veste-macos .rd-carta {
  background: #ffffff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border: 1px solid rgba(0,0,0,.08) !important; border-radius: 12px !important; box-shadow: none !important;
}
html.veste-macos .rd-carta:hover { border-color: rgba(0,0,0,.16) !important; }
html.veste-macos .rd-carta.on { border-color: rgba(52,129,98,.55) !important; box-shadow: 0 0 0 1px rgba(52,129,98,.25) !important; }
html.veste-macos .doc-promemoria {
  background: #f2f2f7 !important; border: none !important; border-radius: 14px !important;
  box-shadow: none !important; padding: 16px 18px !important;
}
html.veste-macos .rd-bolla { background: #ececf0 !important; }
html.veste-macos .rd-chiedi { background: transparent !important; }
html.veste-macos .rd-chiedi-campo {
  background: #ffffff !important; border: 1px solid rgba(0,0,0,.09) !important; border-radius: 18px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 22px rgba(0,0,0,.06) !important;
}
html.veste-macos .rd-chiedi-campo:focus-within { border-color: rgba(0,0,0,.16) !important; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 26px rgba(0,0,0,.08) !important; }
html.veste-macos .rd-chiedi .rd-pill,
html.veste-macos .rd-chiedi .rd-pill-piccola {
  background: transparent !important; border: none !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  color: var(--muted) !important; border-radius: 9px !important;
}
html.veste-macos .rd-chiedi .rd-pill:hover { background: rgba(0,0,0,.05) !important; color: var(--ink) !important; }
html.veste-macos .rd-doc { background: #ffffff !important; border-left: 1px solid rgba(60,60,67,.14) !important; }
html.veste-macos .rd-doc-testa { border-bottom: none !important; }
html.veste-macos .rd-strumenti { border-bottom: 1px solid rgba(60,60,67,.10) !important; }
html.veste-macos .rd-strumenti .rd-versione {
  background-color: #f2f2f7 !important; border: none !important; border-radius: 8px !important;
  box-shadow: none !important; font-weight: 500 !important;
}
html.veste-macos .rd-strumenti .rd-az,
html.veste-macos .rd-doc-testa .rd-az {
  background: transparent !important; border: none !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border-radius: 8px !important; color: var(--ink-2) !important; font-weight: 500 !important;
}
html.veste-macos .rd-strumenti .rd-az:hover,
html.veste-macos .rd-doc-testa .rd-az:hover { background: rgba(0,0,0,.05) !important; transform: none !important; }
html.veste-macos .rd-tavolo { background: #f2f2f5 !important; }
html.veste-macos .rd-foglio {
  background: #ffffff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border: none !important; border-radius: 4px !important;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05), 0 12px 36px rgba(0,0,0,.08) !important;
}
html.veste-macos .rd-foglio .atto,
html.veste-macos .rd-foglio .doc-atto {
  background: transparent !important; border: none !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html.veste-macos .rd-conv-testa { display: flex !important; border-bottom: 1px solid rgba(60,60,67,.12) !important; padding-bottom: 10px !important; margin-bottom: 4px !important; }
html.veste-macos .rd-conv-testa .doc-tit { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.veste-macos .rd-conv-etichetta {
  flex-shrink: 0; margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 9px; border-radius: 999px; background: #f2f2f7;
  font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
html.veste-macos .rd-conv-etichetta svg { width: 15px; height: 15px; color: var(--accent-dark); }
html.veste-macos .rd-conv-etichetta { background: #e7f3ee !important; color: var(--accent-dark) !important; }
html.veste-macos .rd-bolla.rd-bolla-corta {
  display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden !important;
}
html.veste-macos .rd-msg .rd-tutto {
  display: inline-flex !important; align-items: center; gap: 4px; align-self: flex-end;
  margin-top: 4px; padding: 3px 6px; border: none; border-radius: 7px; background: transparent; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent-dark) !important;
}
html.veste-macos .rd-msg .rd-tutto[hidden] { display: none !important; }
html.veste-macos .rd-msg .rd-tutto:hover { background: rgba(0,0,0,.05); }
html.veste-macos .rd-msg .rd-tutto svg { width: 14px; height: 14px; transition: transform .25s cubic-bezier(.32,.72,0,1); }
html.veste-macos .rd-msg .rd-tutto.aperta svg { transform: rotate(180deg); }
html.veste-macos .rd-bolla.rd-bolla-corta { padding-bottom: 0 !important; border-bottom: 11px solid transparent !important; background-clip: border-box !important; }
html.veste-macos .rd-conv-testa { background: #eaf4f0 !important; border-bottom: 1px solid rgba(52,129,98,.22) !important; padding-top: 10px !important; margin-bottom: 0 !important; }
html.veste-macos .rd-conv-testa .doc-tit { display: none !important; }
html.veste-macos .rd-conv-etichetta { background: transparent !important; padding-right: 2px !important; }
html.veste-macos .rd-conv-testa .btn-indietro:hover { background: rgba(6,60,38,.06) !important; }
html.veste-macos .doc-promemoria {
  background: #ffffff !important; border: 1px solid rgba(52,129,98,.28) !important;
  border-radius: 14px !important; box-shadow: 0 1px 2px rgba(0,0,0,.03) !important;
  padding: 14px 18px 16px !important;
}
html.veste-macos .doc-promemoria::before {
  content: "LexNova · Note dell’AI";
  display: block; margin: 0 0 10px; padding: 0 0 10px 26px; min-height: 20px; line-height: 20px;
  border-bottom: 1px solid rgba(60,60,67,.10);
  background: url("/static/logo.png") left 0 / 19px 19px no-repeat;
  font-size: 12.5px; font-weight: 700; color: var(--accent-dark); letter-spacing: -.005em;
}
html.veste-macos .doc-promemoria .pm-tit { font-weight: 700 !important; color: var(--ink) !important; }
html.veste-macos .rd-note .rd-carta-note { width: 100%; text-align: left; cursor: pointer; }
html.veste-macos .rd-note .rd-carta-logo { width: 22px; height: 22px; flex-shrink: 0; }
html.veste-macos .rd-note .rd-carta-note .rd-carta-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.veste-macos .rd-note .rd-carta-note .rd-carta-apri { transition: transform .3s cubic-bezier(.32,.72,0,1); }
html.veste-macos .rd-note.aperta .rd-carta-note .rd-carta-apri { transform: rotate(90deg); }
html.veste-macos .rd-note .doc-promemoria { display: none !important; }
html.veste-macos .rd-note.aperta .doc-promemoria { display: block !important; margin-top: 8px !important; animation: slEntra .3s cubic-bezier(.32,.72,0,1) both; }
html.veste-macos .rd-note .doc-promemoria::before { display: none !important; }
html.veste-macos .rd-note .doc-promemoria .pm-tit { display: none !important; }
html.veste-macos .rd-conv { position: relative; }
html.veste-macos .rd-conv-testa { position: relative; }
html.veste-macos .rd-split:not(.rd-mostra-doc) .rd-conv-testa .doc-tit {
  display: block !important; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: var(--ink); pointer-events: none;
}
html.veste-macos .ad-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 5px 9px; border: none; border-radius: 9px; background: transparent; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent-dark);
}
html.veste-macos .ad-btn[hidden] { display: none !important; }
html.veste-macos .ad-btn:hover,
html.veste-macos .ad-btn.aperto { background: rgba(6,60,38,.07); }
html.veste-macos .ad-btn svg { width: 15px; height: 15px; }
html.veste-macos .ad-btn .ad-freccia { width: 13px; height: 13px; transition: transform .3s cubic-bezier(.32,.72,0,1); }
html.veste-macos .ad-btn.aperto .ad-freccia { transform: rotate(180deg); }
html.veste-macos .ad-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: rgba(6,60,38,.12); font-size: 11px; line-height: 18px; text-align: center; }
html.veste-macos .ad-btn + .rd-conv-etichetta { margin-left: 4px !important; }
html.veste-macos .ad-pannello {
  position: absolute; left: 12px; right: 12px; top: 58px; z-index: 30;
  max-height: min(60vh, 460px); overflow-y: auto; padding: 12px;
  background: #ffffff; border: 1px solid rgba(0,0,0,.08); border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05), 0 18px 48px rgba(0,0,0,.14);
  animation: slEntra .3s cubic-bezier(.32,.72,0,1) both;
}
html.veste-macos .ad-pannello[hidden] { display: none !important; }
html.veste-macos .ad-griglia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html.veste-macos .ad-card {
  display: flex; flex-direction: column; gap: 8px; min-height: 112px; padding: 12px;
  border: 1px solid rgba(0,0,0,.08); border-radius: 12px; background: #fff;
}
html.veste-macos .ad-card.scaduto { background: #fafafa; }
html.veste-macos .ad-card.scaduto .ad-nome { color: var(--muted); }
html.veste-macos .ad-ic { align-self: flex-start; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
html.veste-macos .ad-pdf { background: #fdeceb; color: #b3261e; }
html.veste-macos .ad-word { background: #eaeffb; color: #2b579a; }
html.veste-macos .ad-img { background: var(--accent-soft); color: var(--accent-ink); }
html.veste-macos .ad-doc { background: rgba(0,0,0,.05); color: var(--muted); }
html.veste-macos .ad-nome { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
html.veste-macos .ad-piede { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
html.veste-macos .ad-peso { font-size: 11.5px; color: var(--faint); }
html.veste-macos .ad-apri { font-size: 12.5px; font-weight: 600; color: var(--accent-dark); text-decoration: none; padding: 3px 8px; border-radius: 7px; }
html.veste-macos .ad-apri:hover { background: rgba(6,60,38,.07); }
html.veste-macos .ad-scaduto { font-size: 11.5px; color: var(--faint); }
html.veste-macos .ad-vuoto { margin: 4px 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }
html.veste-macos .rd-split:not(.rd-mostra-doc) .rd-conv-testa .doc-tit {
  position: static !important; transform: none !important; flex: 1 1 auto !important;
  max-width: none !important; min-width: 0; text-align: center; padding: 0 12px;
}
html.veste-macos .rd-split:not(.rd-mostra-doc) .rd-conv-testa .ad-btn { margin-left: 0 !important; }
html.veste-macos .ad-lato {
  position: fixed; z-index: 20; overflow: hidden auto;
  background: #ffffff; border: 1px solid rgba(0,0,0,.09); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 22px rgba(0,0,0,.06);
}
html.veste-macos .ad-lato[hidden] { display: none !important; }
html.veste-macos .ad-lato-testa {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 14px 16px;
  border: none; background: transparent; cursor: pointer; font: inherit; text-align: left; color: var(--ink);
}
html.veste-macos .ad-lato-testa svg { width: 17px; height: 17px; color: var(--accent-dark); flex-shrink: 0; }
html.veste-macos .ad-lato-t { flex: 1; font-size: 14px; font-weight: 600; }
html.veste-macos .ad-lato-testa .ad-n { color: var(--accent-dark); }
html.veste-macos .ad-lato-testa .ad-freccia { width: 15px; height: 15px; color: var(--muted); transition: transform .3s cubic-bezier(.32,.72,0,1); }
html.veste-macos .ad-lato.aperto .ad-lato-testa .ad-freccia { transform: rotate(180deg); }
html.veste-macos .ad-lato-corpo { padding: 0 12px 12px; border-top: 1px solid rgba(60,60,67,.10); padding-top: 12px; animation: slEntra .3s cubic-bezier(.32,.72,0,1) both; }
html.veste-macos .ad-lato-corpo[hidden] { display: none !important; }
html.veste-macos .ad-lato .ad-griglia { gap: 8px; }
html.veste-macos .ad-lato .ad-card { min-height: 104px; padding: 10px; }
html.veste-macos .ad-lato .ad-nome { font-size: 12.5px; }
html.veste-macos body.ad-di-lato .rd-conv-testa .ad-btn { display: none !important; }
html.veste-macos body.ad-di-lato .ad-pannello { display: none !important; }
html.veste-macos .ad-peso,
html.veste-macos .ad-scaduto { white-space: nowrap; }
html.veste-macos .ad-lato .ad-piede { flex-wrap: wrap; row-gap: 2px; }
html.veste-macos .ad-lato .ad-scaduto { white-space: normal; }
html.veste-macos .ad-card.si-legge { cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .25s cubic-bezier(.32,.72,0,1); }
html.veste-macos .ad-card.si-legge:hover { border-color: rgba(0,0,0,.16); box-shadow: 0 4px 14px rgba(0,0,0,.07); transform: translateY(-1px); }
html.veste-macos .ad-card.si-legge:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html.veste-macos .ad-velo {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 28px;
  background: rgba(20,24,22,.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: veloEntra .2s ease both;
}
html.veste-macos .ad-finestra {
  width: min(980px, 100%); height: min(88vh, 1100px); display: flex; flex-direction: column;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.1), 0 30px 80px rgba(0,0,0,.28);
  animation: vetroApri .3s cubic-bezier(.32,.72,0,1) both;
}
html.veste-macos .ad-f-testa { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid rgba(60,60,67,.12); }
html.veste-macos .ad-f-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--ink); }
html.veste-macos .ad-f-scarica { font-size: 13px; font-weight: 600; color: var(--accent-dark); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
html.veste-macos .ad-f-scarica:hover { background: rgba(6,60,38,.07); }
html.veste-macos .ad-f-chiudi { width: 32px; height: 32px; display: grid; place-items: center; border: none; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
html.veste-macos .ad-f-chiudi:hover { background: rgba(0,0,0,.06); color: var(--ink); }
html.veste-macos .ad-f-chiudi svg { width: 18px; height: 18px; }
html.veste-macos .ad-f-corpo { flex: 1; min-height: 0; background: #f2f2f5; overflow: auto; }
html.veste-macos .ad-f-pdf { width: 100%; height: 100%; border: 0; display: block; background: #f2f2f5; }
html.veste-macos .ad-f-img { min-height: 100%; display: grid; place-items: center; padding: 20px; }
html.veste-macos .ad-f-img img { max-width: 100%; max-height: calc(88vh - 120px); border-radius: 6px; box-shadow: 0 4px 20px rgba(0,0,0,.12); background: #fff; }
html.veste-macos .ad-f-testo {
  max-width: 760px; margin: 24px auto; padding: 48px 56px; background: #fff; border-radius: 4px;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 8px 30px rgba(0,0,0,.08);
  white-space: pre-wrap; font-family: "Fraunces", Georgia, serif; font-size: 14.5px; line-height: 1.75; color: var(--ink);
}
html.veste-macos .ad-f-attesa { margin: 40px auto; text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 700px) {
html.veste-macos .ad-velo { padding: 0; }
html.veste-macos .ad-finestra { height: 100dvh; border-radius: 0; }
html.veste-macos .ad-f-testo { padding: 28px 22px; margin: 0; }
}
html.veste-macos .ad-f-testo { white-space: normal !important; }
html.veste-macos .ad-f-testo h3 { margin: 0 0 14px; font-size: 17px; font-weight: 600; text-align: center; }
html.veste-macos .ad-f-testo p { margin: 0 0 10px; }
html.veste-macos .rd-split.rd-mostra-doc .rd-conv-testa .ad-btn,
html.veste-macos .rd-split.rd-mostra-doc ~ .ad-pannello,
html.veste-macos .rd-mostra-doc .ad-pannello { display: none !important; }
html.veste-macos .rd-split:not(.rd-mostra-doc) .rd-conv-testa {
  background: #ffffff !important; border-bottom: 1px solid rgba(60,60,67,.12) !important;
}
html.veste-macos .ad-f-testa .ad-ic { align-self: center !important; line-height: 1.5; }
html.veste-macos .ad-f-pro { max-width: 440px; margin: 64px auto; padding: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: #fff; border-radius: 16px; box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 8px 30px rgba(0,0,0,.08); }
html.veste-macos .ad-f-pro b { font-size: 16px; color: var(--ink); }
html.veste-macos .ad-f-pro span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
html.veste-macos .ad-f-pro-btn { margin-top: 6px; padding: 10px 18px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
html.veste-macos .ad-f-pro-btn:hover { background: #2c7055; }
html.veste-macos .ad-f-scarica[hidden] { display: none !important; }
html.veste-macos .ad-lucchetto { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  background: rgba(6,60,38,.08); color: var(--accent-dark); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
html.veste-macos .ad-lucchetto svg { width: 12px; height: 12px; }
html.veste-macos .rd-bolla .rd-bolla-testo { white-space: pre-wrap; }
html.veste-macos .rd-bolla .rd-bolla-testo.rd-bolla-corta { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
html.veste-macos .rd-bolla.rd-bolla-corta { display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; border-bottom: 0 !important; padding-bottom: 10px !important; }
html.veste-macos .rd-bolla { display: flex !important; flex-direction: column; }
html.veste-macos .rd-bolla .rd-tutto { align-self: flex-end; margin: 6px -4px -4px 0 !important; }
html.veste-macos .rd-bolla .rd-tutto[hidden] { display: none !important; }
html.veste-macos .rd-split.rd-senza-doc .rd-conv { max-width: none !important; margin: 0 !important; }
html.veste-macos .rd-split.rd-senza-doc .rd-conv-testa { padding-left: 24px !important; padding-right: 24px !important; }
html.veste-macos .rd-split.rd-senza-doc .rd-conv-scorre,
html.veste-macos .rd-split.rd-senza-doc .rd-chiedi {
  padding-left: max(18px, calc((100% - 760px) / 2)) !important; padding-right: max(18px, calc((100% - 760px) / 2)) !important;
}
html.veste-macos .rd-msg.rd-tu .rd-piede { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 4px; }
html.veste-macos .rd-msg.rd-tu .rd-piede .rd-quando { order: 0; margin: 0 !important; font-size: 11.5px; color: var(--faint); }
html.veste-macos .rd-copia { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: none; border-radius: 7px; background: transparent; color: var(--faint); cursor: pointer; }
html.veste-macos .rd-copia:hover { background: rgba(0,0,0,.05); color: var(--ink); }
html.veste-macos .rd-copia.fatto { color: var(--accent-dark); }
html.veste-macos .rd-copia svg { width: 15px; height: 15px; }
@media (min-width: 1280px) {
html.veste-macos .rd-split.rd-senza-doc .rd-conv-testa {
    padding-left: max(18px, calc((100% - 760px) / 2)) !important;
    padding-right: max(18px, calc((100% - 760px) / 2)) !important;
  }
html.veste-macos .rd-split.rd-senza-doc .rd-conv-testa .btn-indietro {
    position: absolute !important; left: 20px; top: 50%; transform: translateY(-50%);
  }
html.veste-macos .rd-split.rd-senza-doc .rd-conv-testa .doc-tit { text-align: left !important; padding: 0 !important; }
html.veste-macos .rd-split.rd-senza-doc .rd-conv-testa .rd-conv-etichetta { margin-right: -2px; padding-right: 0 !important; }
}
@media (min-width: 1280px) {
html.veste-macos .rd-split.rd-senza-doc .rd-conv-testa .rd-conv-etichetta { margin-right: 0 !important; }
}
html.veste-macos .rd-split.rd-senza-doc .rd-conv-testa .doc-tit { flex: 0 1 auto !important; max-width: 50% !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.veste-macos .rd-split.rd-senza-doc .rd-conv-testa .rd-conv-etichetta { margin-left: auto !important; }
html.veste-macos .rd-split.rd-senza-doc .rd-conv-testa .rd-conv-etichetta { margin-right: 16px !important; }
html.veste-macos .rd-conv-testa .doc-tit.si-rinomina { pointer-events: auto !important; cursor: text; border-radius: 7px; padding: 3px 6px !important; margin-left: -6px; transition: background .15s ease; }
html.veste-macos .rd-conv-testa .doc-tit.si-rinomina:hover { background: rgba(0,0,0,.05); }
html.veste-macos .rd-conv-testa .doc-tit.si-rinomina:hover::after { content: " ✎"; color: var(--muted); font-weight: 400; }
html.veste-macos .rd-conv-testa .doc-tit.in-modifica { display: none !important; }
html.veste-macos .rd-conv-testa .doc-tit.salvo { opacity: .55; }
html.veste-macos .rd-nome-campo {
  flex: 0 1 50%; min-width: 0; max-width: 50%; margin-left: -6px; padding: 4px 8px;
  border: 1px solid rgba(52,129,98,.55); border-radius: 8px; background: #fff; outline: none;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  box-shadow: 0 0 0 3px rgba(52,129,98,.14);
}
@media (min-width: 901px) {
html.veste-macos body.doc-aperto .rail .rail-burger,
html.veste-macos body.doc-aperto .rail-sezione { display: none !important; }
html.veste-macos body.doc-aperto .rd-conv-testa .btn-indietro {
    position: fixed !important; z-index: 40; transform: translateY(-50%);
    font-size: 15px !important;
  }
html.veste-macos body.doc-aperto .rd-conv-testa { justify-content: center !important; }
html.veste-macos body.doc-aperto .rd-conv-testa .rd-conv-etichetta { margin: 0 auto !important; padding-right: 9px !important; }
}
@media (min-width: 901px) {
html.veste-macos body.doc-aperto .rail.chiusa .rail-sezione,
html.veste-macos body.doc-aperto .rail.chiusa .rail-burger { display: none !important; }
}
html.veste-macos .rd-chiedi { position: relative; padding-bottom: 22px !important; }
html.veste-macos .rd-chiedi-campo {
  position: relative; display: flex !important; flex-direction: row !important; align-items: center !important;
  gap: 4px !important; min-height: 56px; padding: 7px 9px 7px 8px !important;
}
html.veste-macos .rd-chiedi-campo .rd-chiedi-barra { display: contents !important; }
html.veste-macos .rd-chiedi-campo textarea {
  order: 1; flex: 1 1 auto; min-width: 0; min-height: 24px; padding: 8px 6px !important;
  font-size: 16.5px !important; line-height: 1.5 !important; border: none !important; background: transparent !important;
}
html.veste-macos .rd-chiedi-campo .rd-pill[data-c="allega"] {
  order: 0; flex-shrink: 0; width: 38px; height: 38px; padding: 0 !important; justify-content: center;
  border-radius: 50% !important; color: var(--muted) !important;
}
html.veste-macos .rd-chiedi-campo .rd-pill[data-c="allega"] > span { display: none !important; }
html.veste-macos .rd-chiedi-campo .rd-pill[data-c="allega"]::after {
  content: "add"; font-family: var(--icone); font-variation-settings: var(--icone-tratto); font-size: 22px; line-height: 1;
}
html.veste-macos .rd-chiedi-campo .rd-spazio { display: none !important; }
html.veste-macos .rd-chiedi-campo .rd-invia.rd-tondo {
  order: 2; flex-shrink: 0; width: 40px !important; height: 40px !important; padding: 0 !important;
  border-radius: 50% !important; display: grid !important; place-items: center;
  background: var(--accent) !important; color: #fff !important; box-shadow: none !important;
}
html.veste-macos .rd-chiedi-campo .rd-invia.rd-tondo .material-symbols-outlined { font-size: 22px !important; color: #fff !important; }
html.veste-macos .rd-chiedi-campo .rd-resta {
  position: absolute; top: 100%; left: 14px; margin-top: 5px; white-space: nowrap;
  font-size: 11.5px !important; color: var(--faint) !important;
}
html.veste-macos .rd-chiedi-campo textarea { min-height: 42px !important; max-height: 200px; overflow-y: auto; }
html.veste-macos .rd-doc-testa .rd-doc-tit.si-rinomina { cursor: text; border-radius: 7px; padding: 3px 6px; margin-left: -6px; transition: background .15s ease; }
html.veste-macos .rd-doc-testa .rd-doc-tit.si-rinomina:hover { background: rgba(0,0,0,.05); }
html.veste-macos .rd-doc-testa .rd-doc-tit.si-rinomina:hover::after { content: " ✎"; color: var(--muted); font-weight: 400; }
html.veste-macos .rd-doc-testa .rd-doc-tit.in-modifica { display: none !important; }
html.veste-macos .rd-doc-testa .rd-doc-tit.salvo { opacity: .55; }
html.veste-macos .rd-nome-campo.nel-pannello { flex: 1 1 auto; max-width: 50%; margin-right: auto; font-size: 15px; }
html.veste-macos .rd-doc-testa .rd-seg { border-radius: 10px !important; padding: 2px !important; }
html.veste-macos .rd-doc-testa .rd-seg button { border-radius: 8px !important; }
html.veste-macos .rd-doc-testa .rd-icona[data-az="chiudi"] { position: relative; margin-left: 13px !important; }
html.veste-macos .rd-doc-testa .rd-icona[data-az="chiudi"]::before {
  content: ""; position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 18px; background: rgba(60,60,67,.22); pointer-events: none;
}
html.veste-macos .rd-doc-testa .rd-piu-doc svg { width: 18px; height: 18px; }
html.veste-macos .rd-doc-testa .rd-piu-doc,
html.veste-macos .rd-doc-testa .rd-icona[data-az="largo"] { position: relative; margin-left: 13px !important; }
html.veste-macos .rd-doc-testa .rd-piu-doc::before,
html.veste-macos .rd-doc-testa .rd-icona[data-az="largo"]::before {
  content: ""; position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 18px; background: rgba(60,60,67,.22); pointer-events: none;
}
html.veste-macos .rd-doc-testa { position: relative; }
html.veste-macos .rd-doc-testa .rd-seg { position: absolute !important; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0 !important; }
html.veste-macos .rd-doc-testa .rd-doc-tit { max-width: 25% !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto !important; }
html.veste-macos .rd-doc-testa .rd-piu-doc { margin-left: auto !important; }
html.veste-macos .rd-nome-campo.nel-pannello { max-width: 25% !important; flex: 0 1 25% !important; }
html.veste-macos #rd-doc .rd-strumenti { position: relative; }
html.veste-macos #rd-doc .rd-strumenti .rd-az[data-f="docx"],
html.veste-macos #rd-doc .rd-strumenti .rd-az[data-f="pdf"],
html.veste-macos #rd-doc .rd-strumenti .rd-az[data-f="copia"] { display: none !important; }
html.veste-macos #rd-doc .rd-strumenti .rd-zoom { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0 !important; }
html.veste-macos #rd-doc .rd-strumenti .rd-spazio { flex: 1 1 auto; }
html.veste-macos #rd-doc .rd-strumenti .rd-interr { order: 9; margin-left: auto !important; }
html.veste-macos #rd-doc .rd-barra-editor { gap: 2px; flex-wrap: nowrap; }
html.veste-macos #rd-doc .rd-barra-editor .rd-zoom { position: static !important; transform: none !important; margin: 0 6px !important; }
html.veste-macos #rd-doc .rd-barra-editor .rd-cmd { border-radius: 8px; }
html.veste-macos #rd-doc .rd-barra-editor .rd-cmd-testo { width: auto; display: inline-flex; align-items: center; gap: 4px; padding: 0 9px 0 6px; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); }
html.veste-macos #rd-doc .rd-barra-editor .rd-cmd-testo .material-symbols-outlined { font-size: 19px; }
html.veste-macos #rd-doc .rd-barra-editor .rd-blocco {
  height: 30px; padding: 0 26px 0 10px; border: none; border-radius: 8px; background-color: #f2f2f7;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer;
}
html.veste-macos #rd-doc .rd-barra-editor .rd-sep { height: 18px; margin: 0 6px; background: rgba(60,60,67,.18); }
html.veste-macos .rd-ins { position: relative; display: inline-flex; }
html.veste-macos .rd-ins-menu { position: absolute !important; top: calc(100% + 6px); left: 0; min-width: 240px; z-index: 60; background: rgba(255,255,255,.98) !important; }
html.veste-macos .rd-ins-menu[hidden] { display: none !important; }
html.veste-macos .rd-ins-menu .menu-voce { justify-content: space-between; font-size: 13px; }
html.veste-macos .rd-ins-menu .menu-voce small { color: var(--faint); font-size: 11.5px; }
html.veste-macos .rd-parole { font-size: 12px; color: var(--faint); white-space: nowrap; margin-right: 4px; }
html.veste-macos .rd-trova {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; flex-wrap: wrap;
  border-bottom: 1px solid rgba(60,60,67,.10); background: #fafafa;
}
html.veste-macos .rd-trova input {
  height: 30px; min-width: 150px; flex: 0 1 200px; padding: 0 10px; border: 1px solid rgba(0,0,0,.14); border-radius: 8px;
  font: inherit; font-size: 13px; background: #fff; outline: none;
}
html.veste-macos .rd-trova input:focus { border-color: rgba(0,0,0,.28); }
html.veste-macos .rd-trova-n { font-size: 12px; color: var(--muted); min-width: 80px; }
html.veste-macos .rd-trova-b { height: 30px; padding: 0 11px; border: none; border-radius: 8px; background: #f2f2f7; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
html.veste-macos .rd-trova-b:hover { background: #e8e8ed; }
html.veste-macos .rd-trova-x { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border: none; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
html.veste-macos .rd-trova-x:hover { background: rgba(0,0,0,.06); }
html.veste-macos .rd-trova-x .material-symbols-outlined { font-size: 18px; }
html.veste-macos #rd-doc .rd-barra-editor { flex-direction: column !important; align-items: stretch !important; gap: 6px !important; flex-wrap: nowrap !important; padding-top: 8px !important; padding-bottom: 8px !important; }
html.veste-macos #rd-doc .rd-barra-editor .rd-riga { display: flex; align-items: center; gap: 2px; min-width: 0; }
html.veste-macos #rd-doc .rd-barra-editor .rd-riga-stato { position: relative; min-height: 34px; }
html.veste-macos #rd-doc .rd-barra-editor .rd-riga-stato .rd-zoom { position: absolute !important; left: 50%; top: 50%; transform: translate(-50%, -50%) !important; margin: 0 !important; }
html.veste-macos #rd-doc .rd-barra-editor .rd-riga-stato .rd-spazio { flex: 1 1 auto; }
html.veste-macos #rd-doc .rd-barra-editor .rd-riga-stato .rd-btn { margin-left: 6px; }
html.veste-macos #rd-doc .rd-barra-editor .rd-parole { margin: 0 0 0 4px; }
html.veste-macos #rd-doc .rd-barra-editor .rd-riga-stato { order: 1; }
html.veste-macos #rd-doc .rd-barra-editor .rd-riga-scrittura { order: 2; justify-content: center; }
@media (min-width: 901px) {
html.veste-macos body.doc-aperto .rail .rail-burger,
html.veste-macos body.doc-aperto .rail.chiusa .rail-burger {
    display: grid !important; place-items: center;
    position: relative !important; inset: auto !important; left: auto !important; top: auto !important;
    transform: none !important; margin: 0 0 0 auto !important;
    width: 34px !important; height: 34px !important; opacity: 1 !important;
    background: transparent !important; border: none !important; box-shadow: none !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    border-radius: 9px !important; color: var(--muted) !important;
  }
html.veste-macos body.doc-aperto .rail .rail-burger:hover { background: rgba(0,0,0,.05) !important; color: var(--ink) !important; }
html.veste-macos body.doc-aperto .rail .rail-burger .material-symbols-outlined { font-size: 20px !important; }
html.veste-macos body.doc-aperto .rail:not(.chiusa) .rail-burger::before {
    display: block !important; content: ""; position: absolute; left: -6px; top: 50%;
    width: 1px; height: 18px; transform: translateY(-50%); background: rgba(60,60,67,.22);
  }
html.veste-macos body.doc-aperto .rail.chiusa .rail-burger {
    position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; margin: 0 !important; opacity: 0 !important;
  }
html.veste-macos body.doc-aperto .rail.chiusa .rail-top:hover .rail-burger { opacity: 1 !important; }
html.veste-macos body.doc-aperto .rail.chiusa .rail-top:hover .rail-logo { opacity: 0 !important; }
}
html.veste-macos .foglio-nuovo.rd-campo { display: flex !important; flex-direction: column; padding: 7px 9px 7px 8px !important; }
html.veste-macos .rd-riga-campo { display: flex; align-items: flex-end; gap: 4px; min-height: 42px; }
html.veste-macos .rd-riga-campo .rd-testo {
  flex: 1 1 auto; min-width: 0; min-height: 26px !important; max-height: 360px; overflow-y: auto;
  padding: 9px 6px !important; font-size: 16.5px !important; line-height: 1.5 !important;
}
html.veste-macos .rd-campo .rd-pill.rd-piu {
  flex-shrink: 0; width: 42px; height: 42px; padding: 0 !important; justify-content: center;
  border-radius: 50% !important; color: var(--muted) !important;
}
html.veste-macos .rd-campo .rd-pill.rd-piu .material-symbols-outlined { font-size: 24px; }
html.veste-macos .rd-riga-campo .rd-mic {
  flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center;
  border: none; background: transparent; border-radius: 50%; color: var(--ink-2); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
html.veste-macos .rd-riga-campo .rd-mic[hidden],
html.veste-macos .rd-riga-campo #btn-dati-indietro[hidden] { display: none !important; }
html.veste-macos .rd-riga-campo .rd-mic:hover { background: rgba(0,0,0,.05); }
html.veste-macos .foglio-nuovo.detta .rd-riga-campo .rd-mic { background: #ff3b30; color: #fff; animation: rdDetta 1.4s ease-in-out infinite; }
@keyframes rdDetta {
 0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,48,.35); } 50% { box-shadow: 0 0 0 6px rgba(255,59,48,0); } 
}
html.veste-macos .rd-campo .rd-riga-campo .rd-invia {
  flex-shrink: 0; width: 42px; height: 42px; padding: 0 !important; border-radius: 50% !important;
  display: grid !important; place-items: center; animation: rdInviaEntra .22s cubic-bezier(.32,.72,0,1);
}
@keyframes rdInviaEntra {
 from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } 
}
html.veste-macos .rd-riga-campo .rd-invia .material-symbols-outlined { font-size: 22px !important; }
html.veste-macos .rd-riga-campo .rd-invia > span:last-child {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
html.veste-macos .foglio-nuovo:not(.ha-testo):not(.con-dati) .rd-riga-campo .rd-invia { display: none !important; }
html.veste-macos .foglio-nuovo.con-dati .rd-dati { order: 1; }
html.veste-macos .foglio-nuovo.con-dati .rd-riga-campo { order: 2; justify-content: space-between; align-items: center; padding: 6px 4px 2px; }
html.veste-macos .foglio-nuovo.con-dati .rd-nota { order: 3; }
html.veste-macos .foglio-nuovo.con-dati .rd-piu,
html.veste-macos .foglio-nuovo.con-dati .rd-mic { display: none !important; }
html.veste-macos .foglio-nuovo.con-dati .rd-riga-campo .rd-invia {
  width: auto; height: auto; display: inline-flex !important; gap: 6px; border-radius: 12px !important; padding: 9px 16px !important;
}
html.veste-macos .foglio-nuovo.con-dati .rd-riga-campo .rd-invia > span:last-child { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
html.veste-macos .rd-scelte {
  display: flex; gap: 0; margin-top: 14px; padding: 3px; border-radius: 15px;
  background: rgba(118,118,128,.12);
}
html.veste-macos .rd-scelte > .rd-tipo,
html.veste-macos .rd-scelte > #btn-modelli { flex: 1 1 0; min-width: 0; }
html.veste-macos .rd-scelte .rd-pill {
  width: 100%; justify-content: center; gap: 7px !important; padding: 9px 10px !important;
  border: none !important; border-radius: 12px !important; background: transparent !important;
  box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  font-size: 13.5px !important; font-weight: 500 !important; color: var(--ink-2) !important; white-space: nowrap;
}
html.veste-macos .rd-scelte .rd-pill:hover { background: rgba(255,255,255,.5) !important; transform: none !important; }
html.veste-macos .rd-scelte .rd-pill[aria-expanded="true"] {
  background: #fff !important; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04) !important;
}
html.veste-macos .rd-scelte .rd-pill .material-symbols-outlined { font-size: 18px; color: inherit !important; }
html.veste-macos .rd-scelte .rd-pill .rd-giu { font-size: 18px; margin-left: -3px; }
html.veste-macos .rd-scelte .rd-tipo-menu {
  top: calc(100% + 8px); left: 0; border-radius: 18px !important; border: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.08) !important;
}
@media (max-width: 560px) {
html.veste-macos .rd-scelte .rd-pill { font-size: 12.5px !important; padding: 9px 4px !important; gap: 4px !important; }
}
html.veste-macos .rd-compositore .rd-scelte { max-width: var(--rd-campo-w, 720px); margin-left: auto; margin-right: auto; }
html.veste-macos .rd-scelte .rd-tipo-menu { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.veste-macos .rd-scelte > .rd-tipo,
html.veste-macos .rd-scelte > #btn-modelli { flex: 1 1 0 !important; margin: 0 !important; }
html.veste-macos .rd-scelte > .rd-tipo > .rd-pill { display: flex !important; width: 100% !important; margin: 0 !important; }
html.veste-macos .rd-scelte .rd-pill { box-sizing: border-box !important; }
html.veste-macos .rd-scelte { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
html.veste-macos .rd-tipo-menu.rd-tipo-mac {
  width: min(470px, calc(100vw - 32px)) !important; padding: 6px !important;
  background: rgba(255,255,255,.97) !important; border: 1px solid rgba(0,0,0,.08) !important; border-radius: 14px !important;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.05) !important;
  transform-origin: top left; animation: rdTipoApri .18s cubic-bezier(.32,.72,0,1);
}
@keyframes rdTipoApri {
 from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } 
}
html.veste-macos .rd-tipo-mac .rd-tipo-nota { display: none !important; }
html.veste-macos .rd-tipo-mac #doc-chips { display: block !important; margin: 0 !important; gap: 0 !important; }
html.veste-macos .rd-tipo-mac .rd-tipo-auto,
html.veste-macos .rd-tipo-mac .doc-chip {
  display: flex !important; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; margin: 0 !important; text-align: left; cursor: pointer; box-sizing: border-box;
  background: transparent !important; border: none !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border-radius: 8px !important; color: var(--ink) !important; font: inherit; transform: none !important;
}
html.veste-macos .rd-tipo-mac .doc-chip { padding: 7px 10px !important; font-size: 13.5px !important; font-weight: 400 !important; min-height: 0 !important; line-height: 1.3; }
html.veste-macos .rd-tipo-mac .rd-tipo-auto { padding: 8px 10px !important; }
html.veste-macos .rd-tipo-mac .rd-tipo-auto:hover,
html.veste-macos .rd-tipo-mac .doc-chip:hover { background: rgba(0,0,0,.05) !important; }
html.veste-macos .rd-tipo-mac .rd-tipo-t { min-width: 0; }
html.veste-macos .rd-tipo-mac .rd-tipo-auto b { display: block; font-size: 13.5px; font-weight: 500; }
html.veste-macos .rd-tipo-mac .rd-tipo-auto small { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }
html.veste-macos .rd-tipo-mac .rd-spunta { font-size: 18px !important; color: var(--accent) !important; opacity: 0; flex-shrink: 0; }
html.veste-macos .rd-tipo-mac .doc-chip.on .rd-spunta,
html.veste-macos .rd-tipo-mac #doc-chips:not(:has(.doc-chip.on)) .rd-tipo-auto .rd-spunta { opacity: 1; }
html.veste-macos .rd-tipo-mac .doc-chip.on { font-weight: 500 !important; }
html.veste-macos .rd-tipo-colonne {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 4px;
  margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(60,60,67,.12);
}
html.veste-macos .rd-tipo-gruppo { margin: 4px 10px 3px; font-size: 11.5px; font-weight: 600; color: var(--faint); letter-spacing: .01em; }
@media (max-width: 520px) {
html.veste-macos .rd-tipo-colonne { grid-template-columns: minmax(0,1fr); }
}
html.veste-macos .rd-tipo-menu.rd-tipo-mac { background: #fff !important; width: min(520px, calc(100vw - 32px)) !important; max-height: min(70vh, 520px); overflow-y: auto; }
@media (max-width: 520px) {
html.veste-macos .rd-tipo-colonne { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
html.veste-macos .rd-tipo-mac .doc-chip { font-size: 13px !important; padding: 7px 8px !important; }
}
html.veste-macos .rd-rotella {
  position: fixed; top: 22px; right: 24px; z-index: 40;
  width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
  border: none; border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
html.veste-macos .rd-rotella:hover { background: rgba(0,0,0,.06); color: var(--ink); }
html.veste-macos .rd-rotella svg { width: 21px; height: 21px; transition: transform .5s cubic-bezier(.32,.72,0,1); }
html.veste-macos .rd-rotella:hover svg { transform: rotate(45deg); }
@media (max-width: 900px) {
html.veste-macos .rd-rotella { top: 8px; right: 10px; }
}
html.veste-macos body.rd-imp-aperto { overflow: hidden; }
html.veste-macos .rd-imp-velo {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px;
  background: rgba(0,0,0,.2); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: rdImpVelo .2s ease both;
}
html.veste-macos .rd-imp-velo[hidden] { display: none !important; }
@keyframes rdImpVelo {
 from { opacity: 0; } to { opacity: 1; } 
}
html.veste-macos .rd-imp {
  width: min(640px, 100%); max-height: min(740px, calc(100vh - 32px)); display: flex; flex-direction: column;
  background: #f5f5f7; border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 24px 60px rgba(0,0,0,.22), 0 4px 14px rgba(0,0,0,.08);
  animation: rdImpEntra .26s cubic-bezier(.32,.72,0,1) both;
}
@keyframes rdImpEntra {
 from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } 
}
html.veste-macos .rd-imp-testa { display: flex; align-items: center; gap: 12px; padding: 18px 16px 4px 24px; }
html.veste-macos .rd-imp-testa h2 { flex: 1; margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
html.veste-macos .rd-imp-x {
  width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: none; border-radius: 50%;
  background: rgba(0,0,0,.06); color: var(--ink-2); cursor: pointer;
}
html.veste-macos .rd-imp-x:hover { background: rgba(0,0,0,.1); }
html.veste-macos .rd-imp-x .material-symbols-outlined { font-size: 18px; }
html.veste-macos .rd-imp-seg {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 12px 24px 4px; padding: 2px;
  border-radius: 9px; background: rgba(118,118,128,.12);
}
html.veste-macos .rd-imp-seg::before {
  content: ''; position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / 2); border-radius: 7px;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .3s cubic-bezier(.32,.72,0,1);
}
html.veste-macos .rd-imp-seg button {
  position: relative; z-index: 1; padding: 6px 10px; border: none; background: transparent; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2);
}
html.veste-macos .rd-imp-seg button.on { color: var(--ink); }
html.veste-macos .rd-imp-corpo { overflow-y: auto; padding: 8px 24px 24px; }
html.veste-macos .rd-imp-aiuto { margin: 8px 4px 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
html.veste-macos .rd-imp-gruppo {
  position: relative; background: #fff; border-radius: 12px;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.03);
}
html.veste-macos .rd-imp-riga { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 16px; }
html.veste-macos .rd-imp-riga + .rd-imp-riga { border-top: 1px solid rgba(60,60,67,.1); }
html.veste-macos .rd-imp-riga-t b { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
html.veste-macos .rd-imp-riga-t small { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }
html.veste-macos .rd-imp-scelta {
  position: relative; flex-shrink: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  padding: 2px; border-radius: 9px; background: rgba(118,118,128,.12);
}
html.veste-macos .rd-imp-scelta::before {
  content: ''; position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / 3); border-radius: 7px;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04);
  transform: translateX(calc(var(--i, 1) * 100%)); transition: transform .28s cubic-bezier(.32,.72,0,1);
}
html.veste-macos .rd-imp-scelta button {
  position: relative; z-index: 1; min-width: 84px; padding: 6px 10px; border: none; background: transparent; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
html.veste-macos .rd-imp-scelta button.on { color: var(--ink); }
html.veste-macos .rd-imp-eti { display: block; margin: 20px 4px 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
html.veste-macos .rd-imp-note textarea {
  display: block; width: 100%; min-height: 104px; box-sizing: border-box; resize: vertical;
  padding: 12px 14px 24px; border: none; outline: none; background: transparent; border-radius: 12px;
  font: inherit; font-size: 14px; line-height: 1.5; color: var(--ink);
}
html.veste-macos .rd-imp-note textarea::placeholder { color: var(--faint); }
html.veste-macos .rd-imp-note:focus-within { box-shadow: 0 0 0 .5px rgba(0,0,0,.07), 0 0 0 3px rgba(52,129,98,.18); }
html.veste-macos .rd-imp-conta { position: absolute; right: 12px; bottom: 7px; font-size: 11.5px; color: var(--faint); pointer-events: none; }
html.veste-macos .rd-imp-stato { min-height: 18px; margin: 10px 4px 0; font-size: 12.5px; color: var(--muted); transition: opacity .2s ease; }
html.veste-macos .rd-imp-stato.fatto { color: var(--accent-ink, #337359); }
html.veste-macos .rd-imp-stato.fatto::before { content: "✓ "; }
html.veste-macos .rd-imp-stato.rotto,
html.veste-macos .rd-imp-errore { color: #d70015; }
html.veste-macos .rd-imp-errore { min-height: 0; margin: 8px 4px 0; font-size: 12.5px; }
html.veste-macos .rd-imp-errore:empty { display: none; }
html.veste-macos .rd-imp-vuoto { margin: 0; padding: 16px; font-size: 13.5px; color: var(--muted); }
html.veste-macos .rd-imp-sk { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; }
html.veste-macos .rd-imp-sk + .rd-imp-sk { border-top: 1px solid rgba(60,60,67,.1); }
html.veste-macos .rd-imp-sk-ic {
  flex-shrink: 0; width: 30px; height: 36px; display: grid; place-items: center; border-radius: 6px;
  background: #e8f0fe; color: #1a5fd0; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
}
html.veste-macos .rd-imp-sk-ic.pdf { background: #fdecea; color: #d70015; }
html.veste-macos .rd-imp-sk-t { flex: 1; min-width: 0; }
html.veste-macos .rd-imp-sk-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--ink); }
html.veste-macos .rd-imp-sk-t small { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }
html.veste-macos .rd-imp-sk-tipo { position: relative; flex-shrink: 0; }
html.veste-macos .rd-imp-sk-tipo select {
  -webkit-appearance: none; appearance: none; max-width: 210px; padding: 6px 28px 6px 10px; border: none; border-radius: 8px;
  background: rgba(118,118,128,.12); font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; outline: none;
}
html.veste-macos .rd-imp-sk-tipo select:focus-visible { box-shadow: 0 0 0 3px rgba(52,129,98,.25); }
html.veste-macos .rd-imp-sk-tipo .material-symbols-outlined { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--muted); pointer-events: none; }
html.veste-macos .rd-imp-sk.nuovo .rd-imp-sk-tipo select { box-shadow: 0 0 0 2px var(--accent); animation: rdImpNuovo 1.4s ease-in-out 3; }
@keyframes rdImpNuovo {
 50% { box-shadow: 0 0 0 5px rgba(52,129,98,.25); } 
}
html.veste-macos .rd-imp-sk-x {
  flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: none; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer;
}
html.veste-macos .rd-imp-sk-x:hover { background: #fdecea; color: #d70015; }
html.veste-macos .rd-imp-sk-x .material-symbols-outlined { font-size: 19px; }
html.veste-macos .rd-imp-piede { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
html.veste-macos .rd-imp-carica {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: none; border-radius: 10px; cursor: pointer;
  background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.05);
  font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink);
}
html.veste-macos .rd-imp-carica:hover { background: #fafafa; }
html.veste-macos .rd-imp-carica:disabled { opacity: .5; cursor: default; }
html.veste-macos .rd-imp-carica.occupato { opacity: .6; pointer-events: none; }
html.veste-macos .rd-imp-carica .material-symbols-outlined { font-size: 19px; color: var(--ink-2); }
html.veste-macos .rd-imp-conto { font-size: 12.5px; color: var(--muted); text-align: right; }
@media (max-width: 560px) {
html.veste-macos .rd-imp-riga { flex-direction: column; align-items: stretch; gap: 8px; }
html.veste-macos .rd-imp-scelta button { min-width: 0; }
html.veste-macos .rd-imp-sk { flex-wrap: wrap; }
html.veste-macos .rd-imp-sk-tipo { order: 3; flex-basis: 100%; padding-left: 42px; }
html.veste-macos .rd-imp-sk-tipo select { max-width: none; width: 100%; }
html.veste-macos .rd-imp-sk-tipo .material-symbols-outlined { right: 8px; }
}
html.veste-macos .rd-schel { position: relative; min-width: 0; }
html.veste-macos .rd-scelte .rd-pill > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.veste-macos .rd-scelte .rd-pill.scelto { color: var(--ink) !important; }
html.veste-macos .rd-tipo-menu.rd-sk-menu { left: auto !important; right: 0; width: min(380px, calc(100vw - 32px)) !important; }
html.veste-macos .rd-sk-menu .rd-tipo-auto.on .rd-spunta,
html.veste-macos .rd-sk-menu .rd-sk-voce.on .rd-spunta { opacity: 1; }
html.veste-macos .rd-sk-menu .rd-sk-gruppo,
html.veste-macos .rd-sk-menu .rd-sk-fondo { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(60,60,67,.12); }
html.veste-macos .rd-sk-menu .rd-sk-voce,
html.veste-macos .rd-sk-menu .rd-sk-gestisci {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; box-sizing: border-box;
  padding: 7px 10px; border: none; border-radius: 8px; background: transparent; cursor: pointer; text-align: left;
  font: inherit; font-size: 13.5px; color: var(--ink);
}
html.veste-macos .rd-sk-menu .rd-sk-voce:hover,
html.veste-macos .rd-sk-menu .rd-sk-gestisci:hover { background: rgba(0,0,0,.05); }
html.veste-macos .rd-sk-menu .rd-sk-voce .rd-tipo-t { min-width: 0; }
html.veste-macos .rd-sk-menu .rd-sk-n { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.veste-macos .rd-sk-menu .rd-sk-voce small { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }
html.veste-macos .rd-sk-menu .rd-sk-voce.on .rd-sk-n { font-weight: 500; }
html.veste-macos .rd-sk-menu .rd-sk-gestisci { justify-content: flex-start; color: var(--ink-2); }
html.veste-macos .rd-sk-menu .rd-sk-gestisci svg { width: 16px; height: 16px; flex-shrink: 0; }
html.veste-macos .rd-sk-menu .rd-sk-vuoto { margin: 6px 0 0; padding: 8px 10px 4px; border-top: 1px solid rgba(60,60,67,.12); font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
html.veste-macos .rd-rotella { top: 13px !important; }
}
html.veste-macos .detta-stato { display: none; }
html.veste-macos .composer.sq.trascrive .detta-onda { display: none; }
html.veste-macos .composer.sq.trascrive .detta-stato {
  display: block; flex: 1 1 auto; min-width: 0; padding-left: 6px;
  font-size: 15.5px; color: var(--muted); animation: dettaPulsa 1.3s ease-in-out infinite;
}
html.veste-macos .composer.sq.trascrive .detta-x,
html.veste-macos .composer.sq.trascrive .detta-ferma,
html.veste-macos .composer.sq.trascrive .btn-send { opacity: .35; pointer-events: none; }
@keyframes dettaPulsa {
 0%, 100% { opacity: .45; } 50% { opacity: 1; } 
}
html.veste-macos .foglio-nuovo.trascrive .rd-riga-campo .rd-mic { position: relative; pointer-events: none; color: var(--faint); }
html.veste-macos .foglio-nuovo.trascrive .rd-riga-campo .rd-mic::after {
  content: ''; position: absolute; inset: 7px; border-radius: 50%;
  border: 2px solid rgba(52,129,98,.2); border-top-color: var(--accent); animation: dettaGira .8s linear infinite;
}
@keyframes dettaGira {
 to { transform: rotate(360deg); } 
}
html.veste-macos .foglio-nuovo.trascrive .rd-testo::placeholder { animation: dettaPulsa 1.3s ease-in-out infinite; }
@media (max-width: 700px) {
html.veste-macos .main.vuota:has(.hero[data-home="nuova"]) .scroll {
    flex: 1 1 auto !important; display: flex !important; flex-direction: column; justify-content: center;
    margin: 0 !important;
  }
html.veste-macos .main.vuota:has(.hero[data-home="nuova"]) .dock { margin-bottom: 0 !important; }
html.veste-macos .main.vuota:has(.hero[data-home="nuova"]) .hero { padding-top: 0 !important; }
}
html.veste-macos .composer.con-menu-risposta #btn-modo { display: none !important; }
html.veste-macos .risp-pill {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 7px 0 10px;
  border: none; border-radius: 10px; background: transparent; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background .15s ease;
}
html.veste-macos .risp-pill:hover,
html.veste-macos .risp-pill[aria-expanded="true"] { background: rgba(0,0,0,.055); }
html.veste-macos .risp-pill .material-symbols-outlined { font-size: 18px; }
html.veste-macos .risp-pill .risp-tipo { color: var(--faint); font-weight: 400; }
html.veste-macos .risp-pill .risp-giu { font-size: 17px; color: var(--faint); margin-left: -2px; }
@media (max-width: 560px) {
html.veste-macos .risp-pill .risp-t,
html.veste-macos .risp-pill .risp-tipo { display: none; }
html.veste-macos .risp-pill { padding: 0 4px 0 8px; }
}
html.veste-macos .risp-menu {
  position: fixed; z-index: 400; width: 300px; max-width: calc(100vw - 20px); box-sizing: border-box; padding: 6px;
  background: #fff; border-radius: 14px; border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.03), 0 12px 32px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.06);
  transform-origin: bottom right; animation: rispApri .16s cubic-bezier(.32,.72,0,1);
}
html.veste-macos .risp-menu.sotto { transform-origin: top right; }
html.veste-macos .risp-menu[hidden] { display: none !important; }
@keyframes rispApri {
 from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } 
}
html.veste-macos .risp-voce {
  display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 8px 10px;
  border: none; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; outline: none;
  font: inherit; font-size: 14px; color: var(--ink);
}
html.veste-macos .risp-voce:hover,
html.veste-macos .risp-voce:focus-visible,
html.veste-macos .risp-voce:focus { background: rgba(0,0,0,.05); }
html.veste-macos .risp-voce-t { flex: 1; min-width: 0; }
html.veste-macos .risp-voce-t b { display: block; font-weight: 500; }
html.veste-macos .risp-voce-t small { display: block; margin-top: 1px; font-size: 12px; line-height: 1.35; color: var(--muted); }
html.veste-macos .risp-spunta { font-size: 19px !important; color: var(--accent); flex-shrink: 0; }
html.veste-macos .risp-n { min-width: 14px; text-align: right; font-size: 12.5px; color: var(--faint); flex-shrink: 0; }
html.veste-macos .risp-sep { height: 1px; margin: 5px 6px; background: rgba(60,60,67,.12); }
html.veste-macos .risp-val { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
html.veste-macos .risp-freccia { font-size: 19px !important; color: var(--faint); margin-left: -4px; }
html.veste-macos .risp-indietro { gap: 4px; padding-left: 6px; }
html.veste-macos .risp-indietro b { font-weight: 600; font-size: 13.5px; }
html.veste-macos .risp-indietro .material-symbols-outlined { font-size: 19px; color: var(--muted); }
html.veste-macos .risp-indietro .risp-su { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
html.veste-macos .risp-pill:focus-visible { outline: 2px solid rgba(52,129,98,.45); outline-offset: 1px; }
html.veste-macos.alone-vivo .main.vuota:has(.hero[data-home="nuova"])::before {
  will-change: transform, opacity;
  animation: aloneRespira 11s ease-in-out infinite alternate;
}
html.veste-macos.alone-vivo .shell.apertura .main.vuota:has(.hero[data-home="nuova"])::before {
  animation: aperturaAlone .6s cubic-bezier(.2, .7, .2, 1) backwards, aloneRespira 11s ease-in-out .6s infinite alternate;
}
html.veste-macos.alone-vivo .main.vuota:has(.hero[data-home="nuova"])::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: var(--alone-x, 50%); top: var(--alone-y, 50%); width: 760px; height: 500px;
  background: radial-gradient(closest-side, rgba(134,206,177,.38), rgba(134,206,177,.13) 60%, transparent 100%) center / 100% 100% no-repeat;
  will-change: transform, opacity;
  animation: aloneGira 18s linear infinite, aloneAppare 1.6s ease-out both;
}
@keyframes aloneRespira {
  0%   { transform: translate(-50%, -50%) translate(0, 0) scale(1, 1) rotate(0deg); opacity: 1; }
  25%  { transform: translate(-50%, -50%) translate(120px, -46px) scale(1.16, .88) rotate(6deg); opacity: .85; }
  50%  { transform: translate(-50%, -50%) translate(-24px, 40px) scale(.9, 1.12) rotate(-4deg); opacity: 1; }
  75%  { transform: translate(-50%, -50%) translate(-118px, -30px) scale(1.12, .94) rotate(5deg); opacity: .88; }
  100% { transform: translate(-50%, -50%) translate(36px, 52px) scale(1.06, 1.04) rotate(-3deg); opacity: .95; }
}
@keyframes aloneGira {
  from { transform: translate(-50%, -50%) rotate(0deg) translateX(300px) rotate(0deg) scale(1); }
  25%  { transform: translate(-50%, -50%) rotate(90deg) translateX(200px) rotate(-90deg) scale(1.25); }
  50%  { transform: translate(-50%, -50%) rotate(180deg) translateX(320px) rotate(-180deg) scale(.9); }
  75%  { transform: translate(-50%, -50%) rotate(270deg) translateX(220px) rotate(-270deg) scale(1.2); }
  to   { transform: translate(-50%, -50%) rotate(360deg) translateX(300px) rotate(-360deg) scale(1); }
}
@keyframes aloneAppare {
 from { opacity: 0; } to { opacity: 1; } 
}
html.veste-macos.alone-vivo .main.vuota:has(.hero[data-home="nuova"]):has(.composer:focus-within)::before { animation-duration: 22s; }
html.veste-macos.alone-vivo .main.vuota:has(.hero[data-home="nuova"]):has(.composer:focus-within)::after { animation-duration: 36s, 1.6s; }
html.veste-macos .rd-imp { height: min(580px, calc(100vh - 32px)); }
html.veste-macos .rd-imp-corpo { flex: 1 1 auto; min-height: 0; }
@media (max-width: 560px) {
html.veste-macos .rd-imp { height: min(720px, calc(100vh - 32px)); height: min(720px, calc(100dvh - 32px)); }
}
html.veste-macos .rd-imp { position: relative; }
html.veste-macos .rd-imp-nuovo {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px;
  background: rgba(245,245,247,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: rdImpVelo .18s ease both;
}
html.veste-macos .rd-imp-nuovo[hidden] { display: none !important; }
html.veste-macos .rd-imp-nuovo-card {
  width: min(420px, 100%); box-sizing: border-box; padding: 22px 22px 18px; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.16);
  animation: rdImpEntra .24s cubic-bezier(.32,.72,0,1) both;
}
html.veste-macos .rd-imp-nuovo-card h3 { margin: 0; font-size: 16px; font-weight: 650; color: var(--ink); }
html.veste-macos .rd-imp-nuovo-file { margin: 3px 0 16px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.veste-macos .rd-imp-campo { display: block; margin-bottom: 12px; }
html.veste-macos .rd-imp-campo > span:first-child { display: block; margin: 0 2px 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
html.veste-macos .rd-imp-campo input {
  width: 100%; box-sizing: border-box; padding: 9px 12px; border: none; border-radius: 9px; outline: none;
  background: rgba(118,118,128,.12); font: inherit; font-size: 14px; color: var(--ink);
}
html.veste-macos .rd-imp-campo input:focus,
html.veste-macos .rd-imp-nuovo-tipo select:focus { box-shadow: 0 0 0 3px rgba(52,129,98,.25); }
html.veste-macos .rd-imp-nuovo-tipo { display: block; }
html.veste-macos .rd-imp-nuovo-tipo select { width: 100%; max-width: none; padding: 9px 30px 9px 12px; font-size: 14px; border-radius: 9px; }
html.veste-macos .rd-imp-nuovo-sugg { margin: -4px 2px 8px; font-size: 12px; color: var(--accent-ink, #337359); }
html.veste-macos .rd-imp-nuovo-sugg:empty { display: none; }
html.veste-macos .rd-imp-nuovo-aiuto { margin: 4px 2px 16px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
html.veste-macos .rd-imp-nuovo-az { display: flex; justify-content: flex-end; gap: 8px; }
html.veste-macos .rd-imp-btn {
  padding: 8px 14px; border: none; border-radius: 9px; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 500;
  background: rgba(118,118,128,.12); color: var(--ink);
}
html.veste-macos .rd-imp-btn:hover { background: rgba(118,118,128,.2); }
html.veste-macos .rd-imp-btn.primo { background: var(--accent); color: #fff; }
html.veste-macos .rd-imp-btn.primo:hover { background: #2c7055; }
html.veste-macos .rd-imp-btn:disabled { opacity: .45; cursor: default; }
html.veste-macos .rd-imp-sk-nome { cursor: text; border-radius: 6px; margin-left: -4px; padding: 1px 4px; }
html.veste-macos .rd-imp-sk-nome:hover { background: rgba(0,0,0,.05); }
html.veste-macos .rd-imp-sk-nome:hover::after { content: " ✎"; color: var(--muted); font-weight: 400; }
html.veste-macos .rd-imp-sk-campo {
  width: 100%; box-sizing: border-box; margin: -2px 0 1px -4px; padding: 2px 6px; border: none; border-radius: 6px; outline: none;
  background: rgba(118,118,128,.12); box-shadow: 0 0 0 3px rgba(52,129,98,.22); font: inherit; font-size: 14px; font-weight: 500; color: var(--ink);
}
html.veste-macos .rd-sk-hint {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px 0 0;
  font-size: 13px; color: var(--muted); animation: rdSkHint .25s ease both;
}
html.veste-macos .rd-sk-hint[hidden] { display: none !important; }
html.veste-macos .rd-sk-hint::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
html.veste-macos .rd-sk-hint b { font-weight: 500; color: var(--ink); }
html.veste-macos .rd-sk-hint-b { padding: 3px 9px; border: none; border-radius: 7px; background: rgba(118,118,128,.12); cursor: pointer; font: inherit; font-size: 12.5px; color: var(--ink-2); }
html.veste-macos .rd-sk-hint-b:hover { background: rgba(118,118,128,.2); }
@keyframes rdSkHint {
 from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } 
}
html.veste-macos.con-storico .rail-list { display: none !important; }
html.veste-macos.con-storico .rail-foot { margin-top: auto; }
html.veste-macos .storico-testa { margin: 4px 2px 16px; }
html.veste-macos .storico-testa h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
html.veste-macos .storico-sotto { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
html.veste-macos .storico-sotto:empty { display: none; }
html.veste-macos .storico-carica { padding: 18px 4px; font-size: 14px; color: var(--muted); }
html.veste-macos .storico-gruppo { margin-top: 22px; }
html.veste-macos .storico-gruppo h2 { margin: 0 6px 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
html.veste-macos .storico-lista {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.03);
}
html.veste-macos .storico-riga {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 8px 0 16px;
  cursor: pointer; outline: none; transition: background .12s ease;
}
html.veste-macos .storico-riga + .storico-riga::before {
  content: ''; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: rgba(60,60,67,.1);
}
html.veste-macos .storico-riga:hover,
html.veste-macos .storico-riga:focus-visible { background: rgba(0,0,0,.035); }
html.veste-macos .storico-riga.on .storico-t { font-weight: 600; }
html.veste-macos .storico-pin { font-size: 16px !important; color: var(--muted); margin-left: -2px; }
html.veste-macos .storico-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; color: var(--ink); }
html.veste-macos .storico-quando { flex-shrink: 0; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
html.veste-macos .storico-piu {
  flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: none; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .12s ease, background .12s ease;
}
html.veste-macos .storico-riga:hover .storico-piu,
html.veste-macos .storico-riga:focus-within .storico-piu,
html.veste-macos .storico-piu[aria-expanded="true"] { opacity: 1; }
html.veste-macos .storico-piu:hover { background: rgba(0,0,0,.06); }
html.veste-macos .storico-piu .material-symbols-outlined { font-size: 19px; }
@media (hover: none) {
html.veste-macos .storico-piu { opacity: 1; }
}
html.veste-macos .storico-campo {
  flex: 1; min-width: 0; padding: 4px 8px; margin-left: -8px; border: none; border-radius: 7px; outline: none;
  background: rgba(118,118,128,.12); box-shadow: 0 0 0 3px rgba(52,129,98,.22); font: inherit; font-size: 14.5px; color: var(--ink);
}
html.veste-macos.con-storico .column:has(> #vista-cerca:not([hidden])) { max-width: 820px; }
html.veste-macos.con-storico #vista-cerca { max-width: none; padding: 34px 0 56px; }
html.veste-macos .storico-testa { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 2px 20px; }
html.veste-macos .storico-testa h1 { font-size: 30px; letter-spacing: -.025em; }
html.veste-macos .storico-nuova {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 11px; margin-bottom: 4px;
  border: none; border-radius: 10px; background: #fff; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.05); transition: background .15s ease, transform .15s ease;
}
html.veste-macos .storico-nuova:hover { background: #fafafa; }
html.veste-macos .storico-nuova:active { transform: scale(.97); }
html.veste-macos .storico-nuova svg { width: 16px; height: 16px; color: var(--ink-2); }
html.veste-macos .cerca-campo.storico-campo-box {
  position: sticky; top: 10px; z-index: 5; display: flex; align-items: center; gap: 10px; height: 52px;
  padding: 0 12px 0 16px; margin: 0 0 4px; border: none !important; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.09), 0 6px 22px rgba(0,0,0,.06); transition: box-shadow .2s ease;
}
html.veste-macos .cerca-campo.storico-campo-box:focus-within { box-shadow: 0 0 0 .5px rgba(0,0,0,.16), 0 10px 30px rgba(0,0,0,.09); }
html.veste-macos .storico-lente { width: 19px; height: 19px; flex-shrink: 0; color: var(--muted); }
html.veste-macos .cerca-campo.storico-campo-box input {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: none !important; outline: none; background: transparent;
  font-size: 16px !important; color: var(--ink);
}
html.veste-macos .cerca-campo.storico-campo-box input::placeholder { color: var(--faint); }
html.veste-macos .storico-kbd {
  flex-shrink: 0; padding: 4px 7px; border-radius: 6px; background: rgba(118,118,128,.12);
  font-family: inherit; font-size: 11.5px; font-weight: 500; line-height: 1; color: var(--muted);
}
html.veste-macos .storico-pulisci {
  display: none; flex-shrink: 0; width: 22px; height: 22px; place-items: center; padding: 0; border: none; border-radius: 50%;
  background: rgba(118,118,128,.3); color: #fff; cursor: pointer;
}
html.veste-macos .storico-pulisci:hover { background: rgba(118,118,128,.45); }
html.veste-macos .storico-pulisci svg { width: 12px; height: 12px; }
html.veste-macos .storico-campo-box.pieno .storico-pulisci { display: grid; }
html.veste-macos .storico-campo-box.pieno .storico-kbd { display: none; }
html.veste-macos .storico-campo-box #cerca-chiudi { display: none !important; }
html.veste-macos.con-storico .cerca-nota { margin: 14px 6px 4px; font-size: 12.5px; }
html.veste-macos .storico-riga { min-height: 62px; padding: 0 10px 0 14px; gap: 12px; }
html.veste-macos .storico-riga + .storico-riga::before { left: 62px; }
html.veste-macos .storico-ic {
  width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px;
  background: linear-gradient(145deg, #f1f7f5, #e3efea); color: var(--accent-ink, #337359);
  box-shadow: inset 0 0 0 .5px rgba(6,60,38,.07); transition: transform .2s cubic-bezier(.32,.72,0,1);
}
html.veste-macos .storico-ic svg { width: 18px; height: 18px; }
html.veste-macos .storico-ic.fissata { background: linear-gradient(145deg, #fff7de, #fcedc2); color: #9a6700; box-shadow: inset 0 0 0 .5px rgba(120,80,0,.08); }
html.veste-macos .storico-riga:hover .storico-ic { transform: scale(1.06); }
html.veste-macos .storico-testo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html.veste-macos .storico-testo .storico-t { flex: none; font-size: 14.5px; font-weight: 500; }
html.veste-macos .storico-m { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--muted); }
html.veste-macos .storico-riga.on .storico-t { font-weight: 650; }
html.veste-macos .storico-gruppo h2 { margin-left: 4px; }
@media (prefers-reduced-motion: no-preference) {
html.veste-macos .storico-entra .storico-gruppo { animation: storicoEntra .5s cubic-bezier(.32,.72,0,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
}
@keyframes storicoEntra {
 from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } 
}
html.veste-macos.con-storico #cerca-esiti .esito {
  display: block; width: 100%; box-sizing: border-box; margin: 0 0 8px; padding: 14px 16px; text-align: left; cursor: pointer;
  border: none; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.03);
  transition: box-shadow .15s ease, transform .15s ease;
}
html.veste-macos.con-storico #cerca-esiti .esito:hover,
html.veste-macos.con-storico #cerca-esiti .esito:focus-visible {
  background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 6px 18px rgba(0,0,0,.07); outline: none;
}
html.veste-macos.con-storico .esito-t { font-size: 14.5px; }
html.veste-macos.con-storico .esito-s { font-size: 13.5px; }
html.veste-macos.con-storico .esito-m { font-size: 12px; margin-top: 6px; }
html.veste-macos.con-storico .esito-s mark { background: rgba(52,129,98,.22); color: inherit; }
@media (max-width: 700px) {
html.veste-macos.con-storico #vista-cerca { padding-top: 18px; }
html.veste-macos .storico-testa h1 { font-size: 24px; }
html.veste-macos .storico-kbd { display: none; }
html.veste-macos .storico-nuova span { display: none; }
html.veste-macos .storico-nuova { padding: 8px; }
}
html.veste-macos .cerca-campo.storico-campo-box { box-shadow: 0 0 0 .5px rgba(0,0,0,.09), 0 6px 22px rgba(0,0,0,.06), 0 -16px 0 12px rgb(251,251,252); }
html.veste-macos .cerca-campo.storico-campo-box:focus-within { box-shadow: 0 0 0 .5px rgba(0,0,0,.16), 0 10px 30px rgba(0,0,0,.09), 0 -16px 0 12px rgb(251,251,252); }
html.veste-macos .storico-kbd { font-family: inherit !important; letter-spacing: .02em; }
html.veste-macos .cerca-campo.storico-campo-box { box-shadow: 0 0 0 .5px rgba(0,0,0,.09), 0 6px 22px rgba(0,0,0,.06), 0 -16px 0 12px rgb(251,251,252), 0 16px 0 10px rgb(251,251,252); }
html.veste-macos .cerca-campo.storico-campo-box:focus-within { box-shadow: 0 0 0 .5px rgba(0,0,0,.16), 0 10px 30px rgba(0,0,0,.09), 0 -16px 0 12px rgb(251,251,252), 0 16px 0 10px rgb(251,251,252); }
html.veste-macos .msg-user { flex-direction: column; align-items: flex-end; }
html.veste-macos .bubble-user {
  display: flex; flex-direction: column;
  background: #ececf0 !important; color: var(--ink) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border: none !important; box-shadow: none !important;
  border-radius: 20px 20px 6px 20px; padding: 10px 14px;
}
html.veste-macos .bubble-user .bu-testo { white-space: pre-wrap; overflow-wrap: anywhere; }
html.veste-macos .bubble-user .bu-testo.bu-corta { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
html.veste-macos .bubble-user .bu-tutto {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-end; margin: 6px -4px -4px 0;
  padding: 3px 6px; border: none; border-radius: 7px; background: transparent; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent-dark, #337359);
}
html.veste-macos .bubble-user .bu-tutto::before { content: attr(data-t); }
html.veste-macos .bubble-user .bu-tutto[hidden] { display: none !important; }
html.veste-macos .bubble-user .bu-tutto:hover { background: rgba(0,0,0,.05); }
html.veste-macos .bubble-user .bu-tutto svg { width: 14px; height: 14px; transition: transform .25s cubic-bezier(.32,.72,0,1); }
html.veste-macos .bubble-user .bu-tutto.aperta svg { transform: rotate(180deg); }
html.veste-macos .bu-piede { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 4px; opacity: .9; }
html.veste-macos .bu-quando::before { content: attr(data-t); font-size: 11.5px; color: var(--faint); }
html.veste-macos .bu-copia { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: none; border-radius: 7px; background: transparent; color: var(--faint); cursor: pointer; }
html.veste-macos .bu-copia:hover { background: rgba(0,0,0,.05); color: var(--ink); }
html.veste-macos .bu-copia.fatto { color: var(--accent-dark, #337359); }
html.veste-macos .bu-copia svg { width: 15px; height: 15px; }
html.veste-macos .cerca-campo.storico-campo-box { box-shadow: 0 0 0 .5px rgba(0,0,0,.09), 0 6px 22px rgba(0,0,0,.06); }
html.veste-macos .cerca-campo.storico-campo-box:focus-within { box-shadow: 0 0 0 .5px rgba(0,0,0,.16), 0 10px 30px rgba(0,0,0,.09); }
html.veste-macos .cerca-campo.storico-campo-box.incollato { box-shadow: 0 0 0 .5px rgba(0,0,0,.09), 0 6px 22px rgba(0,0,0,.06), 0 -16px 0 12px rgb(251,251,252), 0 16px 0 10px rgb(251,251,252); }
html.veste-macos .cerca-campo.storico-campo-box.incollato:focus-within { box-shadow: 0 0 0 .5px rgba(0,0,0,.16), 0 10px 30px rgba(0,0,0,.09), 0 -16px 0 12px rgb(251,251,252), 0 16px 0 10px rgb(251,251,252); }
html.veste-macos .storico-ic,
html.veste-macos .storico-ic.fissata { background: none !important; box-shadow: none !important; }
html.veste-macos .storico-ic svg { width: 21px; height: 21px; }
html.veste-macos .storico-ic svg path { stroke-width: 2.3; }
html.veste-macos .lex-tip {
  position: fixed; z-index: 10000; pointer-events: none; max-width: 260px; box-sizing: border-box;
  padding: 5px 9px; border-radius: 7px;
  background: rgba(30,30,32,.92); color: #fff;
  -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
  box-shadow: 0 0 0 .5px rgba(255,255,255,.06), 0 6px 18px rgba(0,0,0,.18);
  font: 500 12px/1.35 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  letter-spacing: .005em; text-align: center; white-space: normal; overflow-wrap: anywhere;
  opacity: 0; transform: translateY(2px) scale(.98); transition: opacity .12s ease, transform .14s cubic-bezier(.32,.72,0,1);
}
html.veste-macos .lex-tip.giu { transform: translateY(-2px) scale(.98); }
html.veste-macos .lex-tip.vivo { opacity: 1; transform: none; }
html.veste-macos .lex-tip[hidden] { display: none !important; }
html.veste-macos .lex-tip-k { margin-left: 6px; color: rgba(255,255,255,.55); font-weight: 500; }
@media (prefers-reduced-motion: reduce) {
html.veste-macos .lex-tip { transition: none; transform: none; }
}
html.veste-macos .lex-tip.destra { transform: translateX(-3px) scale(.98); }
html.veste-macos .lex-tip.destra.vivo { transform: none; }
html.veste-macos .msg-ai .azioni { display: flex; gap: 2px; margin-top: 8px; }
html.veste-macos .msg-ai .azioni .az-copia,
html.veste-macos .msg-ai .azioni .az-scarica,
html.veste-macos .msg-ai .azioni .az-segnala,
html.veste-macos .msg-ai .azioni .az-verifica {
  width: 26px; height: 26px; display: grid; place-items: center; gap: 0; padding: 0;
  border: none; border-radius: 7px; background: transparent !important; color: var(--faint); cursor: pointer;
  box-shadow: none !important; transition: background .15s ease, color .15s ease;
}
html.veste-macos .msg-ai .azioni .az-copia:hover,
html.veste-macos .msg-ai .azioni .az-scarica:hover,
html.veste-macos .msg-ai .azioni .az-segnala:hover,
html.veste-macos .msg-ai .azioni .az-verifica:hover {
  background: rgba(0,0,0,.05) !important; color: var(--ink);
}
html.veste-macos .msg-ai .azioni svg { width: 15px; height: 15px; }
html.veste-macos .msg-ai .azioni .az-copia.fatto,
html.veste-macos .msg-ai .azioni .az-segnala[data-fatto] { color: var(--accent-dark, #337359); }
html.veste-macos .msg-ai .azioni .az-verifica.fatto { color: var(--accent-dark, #337359); }
html.veste-macos .msg-ai .azioni .az-verifica.fatto:hover { background: rgba(52,129,98,.1) !important; }
html.veste-macos .msg-ai .azioni .az-copia:disabled ,
html.veste-macos .msg-ai .azioni .az-scarica:disabled { opacity: .45; cursor: default; background: transparent !important; }
html.veste-macos .msg-ai .fonti {
  margin-top: 18px; border: 1.5px solid rgba(52,129,98,.5); border-radius: 14px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
html.veste-macos .msg-ai .fonti:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(52,129,98,.13); }
html.veste-macos .msg-ai .fonti.attiva { border-color: var(--accent); background: #f4f9f7; }
html.veste-macos .msg-ai .fonti .fonti-bar {
  width: 100%; box-sizing: border-box; padding: 12px 12px 12px 14px !important; border: none; background: transparent !important;
  border-radius: 13px; cursor: pointer;
}
html.veste-macos .msg-ai .fonti .fonti-ch { transform: rotate(-90deg) !important; color: var(--accent-dark, #337359) !important; }
html.veste-macos .msg-ai .fonti > .fonti-corpo { display: none !important; }
html.veste-macos .pf-indietro {
  display: inline-flex; align-items: center; gap: 2px; margin: -4px 0 6px -6px; padding: 4px 8px 4px 4px;
  border: none; border-radius: 8px; background: transparent; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--accent-dark, #337359);
}
html.veste-macos .pf-indietro[hidden] { display: none !important; }
html.veste-macos .pf-indietro:hover { background: rgba(52,129,98,.1); }
html.veste-macos .pf-indietro svg { width: 17px; height: 17px; }
html.veste-macos .drawer-body > .fonti-corpo { padding: 0; }
html.veste-macos .drawer-body > .fonti-corpo > .fonti-g:first-child { margin-top: 0; }
html.veste-macos { --pannello-w: min(560px, 42vw); }
@media (min-width: 1000px) {
html.veste-macos .drawer { width: var(--pannello-w) !important; }
html.veste-macos body.pannello-laterale .drawer-bg { opacity: 0 !important; pointer-events: none !important; }
html.veste-macos body.pannello-laterale .main { margin-right: var(--pannello-w); }
html.veste-macos .main { transition: margin-right .26s cubic-bezier(.22,1,.36,1); }
html.veste-macos body.pannello-laterale .drawer { box-shadow: -10px 0 30px rgba(0,0,0,.06) !important; }
}
html.veste-macos .lex-nuova {
  position: fixed; left: 50%; bottom: 22px; z-index: 9000; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 14px;
  background: rgba(30,30,32,.92); color: #fff; font-size: 13.5px; font-weight: 500;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: lexNuova .3s cubic-bezier(.32,.72,0,1) both;
}
html.veste-macos .lex-nuova button {
  padding: 6px 12px; border: none; border-radius: 9px; background: var(--accent, #348162); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer;
}
html.veste-macos .lex-nuova button:hover { filter: brightness(1.06); }
@keyframes lexNuova {
 from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translateX(-50%); } 
}
html.veste-macos .pf-testa {
  position: sticky; top: -20px; z-index: 2; margin: -20px -22px 14px; padding: 14px 22px 12px;
  background: #fff; border-bottom: 1px solid rgba(60,60,67,.1);
}
html.veste-macos .pf-aiuto { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
html.veste-macos .pf-barra { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
html.veste-macos .pf-spazio { flex: 1; }
html.veste-macos .pf-filtri { display: inline-flex; padding: 2px; border-radius: 9px; background: rgba(118,118,128,.12); }
html.veste-macos .pf-filtri button {
  padding: 5px 11px; border: none; border-radius: 7px; background: transparent; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink-2);
}
html.veste-macos .pf-filtri button span { color: var(--faint); font-weight: 400; margin-left: 2px; }
html.veste-macos .pf-filtri button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
html.veste-macos .pf-scarica { position: relative; flex-shrink: 0; }
html.veste-macos .pf-scarica-b {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px 7px 11px; border: none; border-radius: 9px; cursor: pointer;
  background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.06);
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
}
html.veste-macos .pf-scarica-b:hover { background: #fafafa; }
html.veste-macos .pf-scarica-b:disabled { opacity: .5; cursor: default; }
html.veste-macos .pf-scarica-b svg { width: 16px; height: 16px; flex-shrink: 0; }
html.veste-macos .pf-scarica-b svg:last-child { width: 14px; height: 14px; color: var(--muted); margin-left: -1px; }
html.veste-macos .pf-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 270px; padding: 6px; box-sizing: border-box;
  background: #fff; border-radius: 12px; border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 32px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.06); animation: rispApri .16s cubic-bezier(.32,.72,0,1);
}
html.veste-macos .pf-menu[hidden] { display: none !important; }
html.veste-macos .pf-menu button {
  display: block; width: 100%; padding: 8px 10px; border: none; border-radius: 8px; background: transparent; cursor: pointer;
  text-align: left; font: inherit; color: var(--ink);
}
html.veste-macos .pf-menu button:hover { background: rgba(0,0,0,.05); }
html.veste-macos .pf-menu b { display: block; font-size: 13.5px; font-weight: 600; }
html.veste-macos .pf-menu small { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }
html.veste-macos .pf-menu-nota { margin: 4px 0 0; padding: 7px 10px 3px; border-top: 1px solid rgba(60,60,67,.1); font-size: 11.5px; color: var(--faint); }
html.veste-macos .drawer-body > .fonti-corpo .fonti-scarica { display: none !important; }
html.veste-macos .drawer-body > .fonti-corpo .pf-via { display: none !important; }
html.veste-macos .drawer-body > .fonti-corpo .fonti-g { margin: 16px 2px 8px; font-size: 12px; letter-spacing: .03em; }
html.veste-macos .drawer-body > .fonti-corpo .src {
  position: relative; display: block; width: 100%; box-sizing: border-box; margin: 0 0 8px; padding: 12px 40px 12px 14px;
  text-align: left; cursor: pointer; border: 1px solid rgba(0,0,0,.08) !important; border-radius: 12px !important;
  background: #fff !important; box-shadow: none !important; transition: border-color .15s ease, box-shadow .15s ease;
}
html.veste-macos .drawer-body > .fonti-corpo .src::after {
  content: ''; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor; color: var(--faint);
  transform: translateY(-50%) rotate(45deg); transition: color .15s ease, right .15s ease;
}
html.veste-macos .drawer-body > .fonti-corpo .src:hover { border-color: rgba(52,129,98,.55) !important; box-shadow: 0 4px 14px rgba(52,129,98,.1) !important; }
html.veste-macos .drawer-body > .fonti-corpo .src:hover::after { color: var(--accent-dark, #337359); right: 13px; }
html.veste-macos .drawer-body > .fonti-corpo .src-snip { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
html.veste-macos #drawer .drawer-top { position: relative; display: block; padding: 18px 64px 16px 24px; border-bottom: 1px solid rgba(60,60,67,.1); }
html.veste-macos #drawer .drawer-top .meta { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
html.veste-macos #drawer .pf-indietro { margin: -6px 0 4px -8px; }
html.veste-macos #drawer #drawer-tag {
  display: block; max-width: 100%; padding: 0; margin: 0; border: none; border-radius: 0; background: none !important;
  font-size: 12px; font-weight: 600; letter-spacing: .01em; text-transform: none; color: var(--accent-dark, #337359);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html.veste-macos #drawer #drawer-title { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -.012em; color: var(--ink); }
html.veste-macos #drawer #drawer-close {
  position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0;
  border: none; border-radius: 50%; background: rgba(0,0,0,.06); color: var(--ink-2); cursor: pointer;
}
html.veste-macos #drawer #drawer-close:hover { background: rgba(0,0,0,.1); }
html.veste-macos #drawer #drawer-close .material-symbols-outlined { font-size: 18px; }
html.veste-macos #drawer .drawer-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 20px 14px 24px;
  border-top: 1px solid rgba(60,60,67,.1); background: #fff;
}
html.veste-macos #drawer .link-out {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 10px; border: none !important; border-radius: 9px;
  background: rgba(118,118,128,.12) !important; box-shadow: none !important; color: var(--ink) !important;
  font-size: 13px; font-weight: 600; text-decoration: none;
}
html.veste-macos #drawer .link-out:hover { background: rgba(118,118,128,.2) !important; }
html.veste-macos #drawer .link-out .material-symbols-outlined { font-size: 17px; color: var(--ink-2); }
html.veste-macos #drawer .drawer-scarica { display: none !important; }
html.veste-macos #drawer .pf-dl[hidden] { display: none !important; }
html.veste-macos #drawer .pf-dl .pf-scarica-b { background: rgba(118,118,128,.12); box-shadow: none; padding: 7px 9px 7px 10px; }
html.veste-macos #drawer .pf-dl .pf-scarica-b:hover { background: rgba(118,118,128,.2); }
html.veste-macos #drawer .pf-menu.pf-menu-su { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; width: 250px; }
html.veste-macos #drawer .drawer-foot .note { margin-left: auto; font-size: 11.5px; color: var(--faint); }
html.veste-macos .rail-list { display: none !important; }
html.veste-macos .rail .rail-foot { margin-top: auto; }
html.veste-macos .lc-lato {
  position: fixed; top: 76px; bottom: 150px; z-index: 30; overflow-y: auto; padding: 2px 2px 12px; box-sizing: border-box;
  scrollbar-width: thin; animation: lcEntra .3s cubic-bezier(.32,.72,0,1) both;
}
html.veste-macos .lc-lato[hidden] { display: none !important; }
@keyframes lcEntra {
 from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } 
}
html.veste-macos .lc-sez + .lc-sez { margin-top: 22px; }
html.veste-macos .lc-sez h3 { display: flex; align-items: baseline; gap: 6px; margin: 0 6px 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
html.veste-macos .lc-sez h3 span { font-weight: 500; color: var(--faint); }
html.veste-macos .lc-lista { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.03); }
html.veste-macos .lc-riga {
  position: relative; display: flex; align-items: flex-start; gap: 10px; width: 100%; box-sizing: border-box; padding: 9px 12px;
  border: none; background: transparent; text-align: left; cursor: pointer; font: inherit;
}
html.veste-macos .lc-riga + .lc-riga::before { content: ''; position: absolute; top: 0; left: 44px; right: 0; height: 1px; background: rgba(60,60,67,.1); }
html.veste-macos .lc-riga:hover { background: rgba(0,0,0,.035); }
html.veste-macos .lc-ic { width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center; margin-top: 1px; color: var(--accent-dark, #337359); }
html.veste-macos .lc-ic svg { width: 17px; height: 17px; }
html.veste-macos .lc-ic.pdf { color: #d70015; }
html.veste-macos .lc-t { min-width: 0; flex: 1; }
html.veste-macos .lc-t b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--ink); }
html.veste-macos .lc-t small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--faint); }
html.veste-macos .lc-gruppo { margin-bottom: 8px; }
html.veste-macos .lc-gruppo-t {
  display: flex; align-items: center; gap: 6px; width: 100%; box-sizing: border-box; padding: 6px; border: none; border-radius: 8px;
  background: transparent; cursor: pointer; text-align: left; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink-2);
}
html.veste-macos .lc-gruppo-t:hover { background: rgba(0,0,0,.04); }
html.veste-macos .lc-domanda { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.veste-macos .lc-n { flex-shrink: 0; padding: 1px 7px; border-radius: 9px; background: rgba(118,118,128,.12); font-size: 11.5px; color: var(--muted); }
html.veste-macos .lc-gruppo-t svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--faint); transform: rotate(-90deg); transition: transform .2s ease; }
html.veste-macos .lc-gruppo.aperto .lc-gruppo-t svg { transform: none; }
html.veste-macos .lc-gruppo:not(.aperto) .lc-lista { display: none; }
html.veste-macos .lc-gruppo .lc-lista { margin-top: 4px; }
html.veste-macos .lc-tutte {
  display: block; width: 100%; padding: 8px 12px; border: none; border-top: 1px solid rgba(60,60,67,.1); background: transparent;
  text-align: left; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent-dark, #337359);
}
html.veste-macos .lc-tutte:hover { background: rgba(52,129,98,.07); }
html.veste-macos .lc-lato { bottom: auto !important; display: flex; flex-direction: column; gap: 12px; padding: 2px 2px 8px; overflow-y: auto; }
html.veste-macos .lc-lato .ad-lato { position: static !important; flex-shrink: 0; overflow: visible; }
html.veste-macos .lc-lato .ad-lato[hidden] { display: none !important; }
html.veste-macos .lc-lato .ad-card .ad-nome { -webkit-line-clamp: 3; }
html.veste-macos .lc-lato .ad-card .ad-peso { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html.veste-macos .lc-gruppo + .lc-gruppo { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(60,60,67,.08); }
html.veste-macos .lc-gruppo .lc-gruppo-t { padding: 4px 4px 6px; }
html.veste-macos .lc-gruppo .lc-gruppo-t .ad-n { background: rgba(6,60,38,.1); color: var(--accent-dark, #337359); }
html.veste-macos .lc-gruppo .lc-gruppo-t .ad-freccia { width: 14px; height: 14px; color: var(--muted); transform: rotate(-90deg); transition: transform .25s ease; }
html.veste-macos .lc-gruppo.aperto .lc-gruppo-t .ad-freccia { transform: none; }
html.veste-macos .lc-gruppo:not(.aperto) .ad-griglia,
html.veste-macos .lc-gruppo:not(.aperto) .lc-tutte { display: none !important; }
html.veste-macos .lc-lato .lc-tutte {
  display: inline-block; width: auto; margin-top: 8px; padding: 4px 8px; border: none !important; border-radius: 7px;
  background: transparent; font-size: 12.5px; font-weight: 600; color: var(--accent-dark, #337359);
}
html.veste-macos .lc-lato .lc-tutte:hover { background: rgba(6,60,38,.07); }
html.veste-macos .lc-lato .lc-tutte { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 8px 5px 10px; }
html.veste-macos .lc-lato .lc-tutte .lc-altre { padding: 0 6px; border-radius: 999px; background: rgba(6,60,38,.1); font-size: 11px; line-height: 17px; }
html.veste-macos .lc-lato .lc-tutte .ad-freccia { width: 13px; height: 13px; transform: rotate(-90deg); }
html.veste-macos .pf-filtri button:disabled { opacity: .45; cursor: default; }
html.veste-macos .top:has(.notifiche-pop:not([hidden])) { z-index: 60 !important; }
html.veste-macos .ad-card .ad-apri { cursor: pointer; }
html.veste-macos .notifiche-pop { background: rgba(255,255,255,.985) !important; }
html.veste-macos .lc-lato { gap: 14px; }
html.veste-macos .lc-lato .ad-lato {
  border-radius: 18px !important; border: .5px solid rgba(0,0,0,.08) !important;
  background: rgba(255,255,255,.88) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 1px rgba(0,0,0,.02), 0 10px 32px rgba(0,0,0,.07) !important;
}
html.veste-macos .lc-lato .ad-lato-testa { gap: 11px; padding: 14px 16px 14px 14px; border-radius: 18px; }
html.veste-macos .lc-lato .ad-lato-testa:hover { background: rgba(0,0,0,.025); }
html.veste-macos .lc-tile { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; color: #fff; }
html.veste-macos .lc-tile svg { width: 16px !important; height: 16px !important; color: #fff !important; }
html.veste-macos .lc-tile-all { background: linear-gradient(180deg, #5ac8fa, #2f9bea); }
html.veste-macos .lc-tile-fon { background: linear-gradient(180deg, #69c6a1, #3e9d77); }
html.veste-macos .lc-lato .ad-lato-t { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
html.veste-macos .lc-lato .ad-lato-testa .ad-n { background: none; color: var(--faint); font-size: 13px; font-weight: 500; min-width: 0; padding: 0; }
html.veste-macos .lc-lato .ad-lato-testa .ad-freccia { width: 16px; height: 16px; color: var(--faint); }
html.veste-macos .lc-lato .ad-lato-corpo { padding: 4px 12px 14px; border-top: .5px solid rgba(60,60,67,.12); padding-top: 12px; }
html.veste-macos .lc-lato .ad-griglia { gap: 10px; }
html.veste-macos .lc-lato .ad-card {
  min-height: 118px; padding: 12px; gap: 8px; border: none !important; border-radius: 13px;
  background: #f4f4f6 !important; box-shadow: none !important;
  transition: background .18s ease, transform .25s cubic-bezier(.32,.72,0,1);
}
html.veste-macos .lc-lato .ad-card.si-legge:hover { background: #ebebef !important; transform: translateY(-1px); box-shadow: none !important; }
html.veste-macos .lc-lato .ad-card.scaduto { background: #f8f8f9 !important; }
html.veste-macos .lc-lato .ad-ic { padding: 2px 8px; border-radius: 6px; font-size: 10.5px; }
html.veste-macos .lc-lato .ad-nome { font-size: 13.5px; font-weight: 600; letter-spacing: -.005em; }
html.veste-macos .lc-lato .ad-peso { font-size: 12px; }
html.veste-macos .lc-lato .ad-apri { font-size: 13px; padding: 3px 9px; border-radius: 8px; }
html.veste-macos .lc-lato .ad-apri:hover { background: rgba(6,60,38,.08); }
html.veste-macos .lc-lato .lc-gruppo-t { padding: 6px 6px 8px; font-size: 13px; color: var(--muted); }
html.veste-macos .lc-lato .lc-gruppo-t .ad-n { background: none; color: var(--faint); padding: 0 2px; }
html.veste-macos .lc-lato .lc-tutte { font-size: 13px; margin-top: 10px; }
html.veste-macos .lc-lato .ad-lato { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.veste-macos .lc-lato { overflow-y: visible; }
html.veste-macos .lc-tile {
  width: 30px; height: 30px; border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.14);
}
html.veste-macos .lc-tile svg { width: 18px !important; height: 18px !important; }
html.veste-macos .lc-tile-all { background: linear-gradient(180deg, #6ccdfb 0%, #1a8cf0 100%); }
html.veste-macos .lc-tile-fon { background: linear-gradient(180deg, #6cc9a4 0%, #31986f 100%); }
html.veste-macos .lc-lato .lc-gruppo-t { margin-bottom: 10px; }
html.veste-macos .lc-lato .lc-gruppo .ad-griglia { margin-top: 0; }
html.veste-macos .lc-lato .lc-gruppo + .lc-gruppo { margin-top: 16px; padding-top: 14px; }
html.veste-macos .msg-ai .extra > .fonti { position: relative; margin-bottom: 20px; }
html.veste-macos .msg-ai .extra > .fonti::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -21px; height: 0;
  border-top: 1px solid var(--line); pointer-events: none;
}
html.veste-macos .msg-ai .extra > .fonti + .ask { margin-top: 20px; padding-top: 18px; border-top: 0; }
html.veste-macos .rd-strumenti select.rd-versione.vd-nascosto { display: none !important; }
html.veste-macos .vd-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 8px 0 11px;
  border: none; border-radius: 9px; background: transparent; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap;
  transition: background .15s ease;
}
html.veste-macos .vd-pill:hover,
html.veste-macos .vd-pill[aria-expanded="true"] { background: rgba(0,0,0,.055); }
html.veste-macos .vd-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
html.veste-macos .vd-pill .vd-att {
  padding: 2px 7px; border-radius: 6px; background: rgba(52,129,98,.12); color: var(--accent-dark, #337359);
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
}
html.veste-macos .vd-pill .vd-giu { font-size: 18px !important; color: var(--faint); margin-left: -2px; }
html.veste-macos .vd-menu { width: 240px; }
html.veste-macos .vd-menu .vd-titolo { margin: 4px 10px 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
html.veste-macos .msg-ai .rev-bolla { align-items: center; margin-top: -2px; }
html.veste-macos .msg-ai .bolla-esito.rev-pill {
  gap: 6px; padding: 4px 8px 4px 8px; font-size: 12.5px; line-height: 1.45; border-radius: 14px;
  max-width: 100%; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
html.veste-macos .msg-ai .bolla-esito.rev-pill .material-symbols-outlined { font-size: 16px; }
html.veste-macos .msg-ai .bolla-esito.rev-pill > .material-symbols-outlined:last-child { font-size: 17px; opacity: .6; margin-left: -2px; transition: transform .2s var(--molla); }
html.veste-macos .msg-ai .bolla-esito.rev-pill.aperta > .material-symbols-outlined:last-child { transform: rotate(180deg); }
html.veste-macos .msg-ai .bolla-esito.rev-pill .rev-pill-t { min-width: 0; }
html.veste-macos .msg-ai .bolla-esito.rev-pill b { font-weight: 650; }
html.veste-macos .msg-ai .bolla-esito.rev-pill .rev-perche { font-weight: 450; opacity: .9; }
html.veste-macos .bolla-esito.ok { color: #26644b !important; background: #eaf5f1 !important; border-color: rgba(38,100,75,.22) !important; }
html.veste-macos .bolla-esito.par { color: #8a5a00 !important; background: #fff5dc !important; border-color: rgba(176,122,0,.26) !important; }
html.veste-macos .bolla-esito.ko { color: #b3261e !important; background: #fdecea !important; border-color: rgba(179,38,30,.26) !important; }
html.veste-macos .bolla-esito.neu { color: var(--muted) !important; background: rgba(118,118,128,.10) !important; border-color: rgba(60,60,67,.14) !important; }
html.veste-macos .msg-ai .bolla-esito.rev-pill:hover { filter: none; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
html.veste-macos .msg-ai .bolla-esito.rev-pill.aperta.ok { background: #e1efe9 !important; }
html.veste-macos .msg-ai .bolla-esito.rev-pill.aperta.par { background: #ffefc6 !important; }
html.veste-macos .msg-ai .bolla-esito.rev-pill.aperta.ko { background: #fbe0dd !important; }
html.veste-macos .msg-ai .bolla-esito.rev-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes revLampo {
 0%, 100% { box-shadow: 0 0 0 0 rgba(52,129,98,0); } 30% { box-shadow: 0 0 0 5px rgba(52,129,98,.35); } 
}
html.veste-macos .msg-ai .bolla-esito.rev-lampo { animation: revLampo 1.1s ease 1; }
@media (max-width: 560px) {
html.veste-macos .msg-ai .bolla-esito.rev-pill .rev-perche { display: none; }
}
html.veste-macos .msg-ai .rev-scheda {
  flex-basis: 100%; margin: 6px 0 4px; padding: 12px 14px 12px 16px;
  background: #fff; border: 1px solid rgba(60,60,67,.12); border-left-width: 3px; border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 6px 18px -8px rgba(22,38,32,.12);
  font-size: 13px; line-height: 1.55; color: var(--ink-2);
}
html.veste-macos .msg-ai .rev-scheda.ok { border-left-color: #399470; }
html.veste-macos .msg-ai .rev-scheda.par { border-left-color: #e0a300; }
html.veste-macos .msg-ai .rev-scheda.ko { border-left-color: #d6453b; }
html.veste-macos .msg-ai .rev-scheda.neu { border-left-color: rgba(60,60,67,.3); }
html.veste-macos .msg-ai .rev-scheda .rev-sez + .rev-sez { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(60,60,67,.08); }
html.veste-macos .msg-ai .rev-scheda p { margin: 0; }
html.veste-macos .msg-ai .rev-scheda .rev-k { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
html.veste-macos .msg-ai .rev-scheda .rev-da { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
html.veste-macos .msg-ai .rev-scheda .rev-passo {
  margin: 0; padding: 8px 12px; border-left: 2px solid rgba(60,60,67,.18); background: rgba(118,118,128,.07);
  border-radius: 0 8px 8px 0; font-style: italic; color: var(--ink-2); line-height: 1.6;
}
html.veste-macos .msg-ai .rev-scheda.ipotesi .rev-passo { white-space: pre-line; }
html.veste-macos .msg-ai .rev-scheda .rev-vuoto { color: var(--muted); font-style: italic; }
html.veste-macos .msg-ai .rev-scheda .rev-fare p b { color: var(--ink); font-weight: 650; }
html.veste-macos .msg-ai .rev-scheda.ok .rev-fare p b { color: #26644b; }
html.veste-macos .msg-ai .rev-scheda.par .rev-fare p b { color: #8a5a00; }
html.veste-macos .msg-ai .rev-scheda.ko .rev-fare p b { color: #b3261e; }
html.veste-macos .msg-ai .rev-azioni { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
html.veste-macos .msg-ai .rev-az {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px;
  border: 1px solid rgba(60,60,67,.16); border-radius: 9px; background: #fff; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 550; color: var(--ink); transition: background .15s ease, transform .2s var(--molla);
}
html.veste-macos .msg-ai .rev-az .material-symbols-outlined { font-size: 16px; color: var(--accent-dark, #337359); }
html.veste-macos .msg-ai .rev-az:hover { background: rgba(0,0,0,.04); }
html.veste-macos .msg-ai .rev-az:active { transform: scale(.97); }
html.veste-macos .msg-ai .rev-riepilogo {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 16px 0 4px; padding: 9px 12px;
  border: 1px solid rgba(60,60,67,.10); border-radius: 12px; background: rgba(118,118,128,.06); font-size: 12.5px; color: var(--ink-2);
}
html.veste-macos .msg-ai .rev-riepilogo .rev-rt { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink); margin-right: 2px; }
html.veste-macos .msg-ai .rev-riepilogo .rev-rt .material-symbols-outlined { font-size: 17px; color: var(--accent-dark, #337359); }
html.veste-macos .msg-ai .rev-conta {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; background: #fff; font: inherit; font-size: 12.5px; font-weight: 550; color: var(--ink);
  transition: box-shadow .15s ease;
}
html.veste-macos .msg-ai .rev-conta i { width: 9px; height: 9px; border-radius: 999px; background: currentColor; }
html.veste-macos .msg-ai .rev-conta.ok { color: #26644b; border-color: rgba(38,100,75,.22); }
html.veste-macos .msg-ai .rev-conta.par { color: #8a5a00; border-color: rgba(176,122,0,.26); }
html.veste-macos .msg-ai .rev-conta.ko { color: #b3261e; border-color: rgba(179,38,30,.26); }
html.veste-macos .msg-ai .rev-conta.neu { color: var(--muted); border-color: rgba(60,60,67,.16); }
html.veste-macos .msg-ai .rev-conta:hover { box-shadow: 0 1px 4px rgba(0,0,0,.08); }
html.veste-macos .msg-ai .rev-legenda {
  margin-left: auto; border: none; background: none; padding: 3px 4px; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent-dark, #337359); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(51,115,89,.4);
}
html.veste-macos .msg-ai .rev-legenda:hover { text-decoration-color: currentColor; }
html.veste-macos .msg-ai .rev-conti { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 8px; }
html.veste-macos .rev-spiega { max-width: 520px; }
html.veste-macos .rev-legs { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 8px; }
html.veste-macos .rev-leg { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: start; padding: 8px 10px; border-radius: 10px; background: rgba(118,118,128,.06); }
html.veste-macos .rev-leg p { margin: 0; font-size: 13px; line-height: 1.5; }
html.veste-macos .rev-leg .bolla-esito.statica { cursor: default; justify-self: start; padding: 4px 10px 4px 8px; font-size: 12.5px; gap: 6px; }
html.veste-macos .rev-leg .bolla-esito.statica .material-symbols-outlined { font-size: 16px; }
html.veste-macos .rev-leg .bolla-esito.statica b { font-weight: 650; }
@media (max-width: 560px) {
html.veste-macos .rev-leg { grid-template-columns: 1fr; gap: 6px; }
}
html.veste-macos .msg-ai .rev-pezzo,
html.veste-macos .rev-leg .rev-pezzo {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-skip-ink: none;
  border-radius: 3px; padding: 0 1px; margin: 0 -1px; cursor: help;
}
html.veste-macos .msg-ai .rev-pezzo.ok,
html.veste-macos .rev-leg .rev-pezzo.ok { text-decoration-color: #399470; background: rgba(57,148,112,.10); }
html.veste-macos .msg-ai .rev-pezzo.par,
html.veste-macos .rev-leg .rev-pezzo.par { text-decoration-color: #e0a300; background: rgba(224,163,0,.14); }
html.veste-macos .msg-ai .rev-pezzo.ko,
html.veste-macos .rev-leg .rev-pezzo.ko { text-decoration-color: #d6453b; background: rgba(214,69,59,.12); }
html.veste-macos mark.rev-evid { color: inherit; padding: 1px 0; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
html.veste-macos mark.rev-evid.ok { background: rgba(57,148,112,.22); box-shadow: 0 0 0 2px rgba(57,148,112,.22); }
html.veste-macos mark.rev-evid.par { background: rgba(224,163,0,.28); box-shadow: 0 0 0 2px rgba(224,163,0,.28); }
html.veste-macos mark.rev-evid.ko { background: rgba(214,69,59,.20); box-shadow: 0 0 0 2px rgba(214,69,59,.20); }
html.veste-macos .drawer-body .rev-dr-passo { position: relative; }
html.veste-macos .drawer-body .rev-dr-passo::before {
  content: ""; position: absolute; left: -12px; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: #e0a300;
}
html.veste-macos .drawer-body .rev-dr-passo.ok::before { background: #399470; }
html.veste-macos .drawer-body .rev-dr-passo.ko::before { background: #d6453b; }
html.veste-macos .drawer-body .rev-dr-fascia {
  position: sticky; top: -20px; z-index: 4; margin: -20px -22px 16px; padding: 10px 14px 10px 16px;
  display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.45; color: var(--ink);
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(60,60,67,.10); box-shadow: 0 6px 18px -12px rgba(0,0,0,.18);
}
html.veste-macos .drawer-body .rev-dr-fascia > .material-symbols-outlined { font-size: 19px; flex-shrink: 0; margin-top: 1px; }
html.veste-macos .drawer-body .rev-dr-fascia.ok  > .material-symbols-outlined,
html.veste-macos .drawer-body .rev-dr-fascia.ok  b { color: #26644b; }
html.veste-macos .drawer-body .rev-dr-fascia.par > .material-symbols-outlined,
html.veste-macos .drawer-body .rev-dr-fascia.par b { color: #8a5a00; }
html.veste-macos .drawer-body .rev-dr-fascia.ko  > .material-symbols-outlined,
html.veste-macos .drawer-body .rev-dr-fascia.ko  b { color: #b3261e; }
html.veste-macos .drawer-body .rev-dr-fascia.ok { background: linear-gradient(rgba(57,148,112,.10), rgba(57,148,112,.10)), rgba(255,255,255,.92); }
html.veste-macos .drawer-body .rev-dr-fascia.par { background: linear-gradient(rgba(224,163,0,.12), rgba(224,163,0,.12)), rgba(255,255,255,.92); }
html.veste-macos .drawer-body .rev-dr-fascia.ko { background: linear-gradient(rgba(214,69,59,.10), rgba(214,69,59,.10)), rgba(255,255,255,.92); }
html.veste-macos .drawer-body .rev-dr-fascia .rev-dr-t { flex: 1; min-width: 0; }
html.veste-macos .drawer-body .rev-dr-fascia .rev-dr-t b { font-weight: 650; }
html.veste-macos .drawer-body .rev-dr-vai {
  flex-shrink: 0; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(60,60,67,.16); background: #fff;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer;
}
html.veste-macos .drawer-body .rev-dr-vai:hover { background: rgba(0,0,0,.04); }
html.veste-macos .drawer-body .rev-dr-x {
  flex-shrink: 0; width: 28px; height: 28px; border: none; border-radius: 8px; background: transparent; color: var(--faint); cursor: pointer;
  display: grid; place-items: center;
}
html.veste-macos .drawer-body .rev-dr-x:hover { background: rgba(0,0,0,.05); color: var(--ink); }
html.veste-macos .drawer-body .rev-dr-x .material-symbols-outlined { font-size: 18px; }
html.veste-macos .lc-lato .lc-tile-rev { background: linear-gradient(180deg, #ffb340, #ff9500); }
html.veste-macos .lc-lato .lc-tile-sca { background: linear-gradient(180deg, #ff6961, #ff3b30); }
html.veste-macos .lc-lato .lc-tile-app { background: linear-gradient(180deg, #ffd60a, #f5c400); }
html.veste-macos .lc-lato .lc-tile-fas { background: linear-gradient(180deg, #8e8e93, #636366); }
html.veste-macos .lc-lato .lc-tile-doc { background: linear-gradient(180deg, #bf5af2, #af52de); }
html.veste-macos .lc-lato .lc-tile svg { width: 17px; height: 17px; }
html.veste-macos .lc-lato .ad-lato-testa .ad-n.lc-n-ko { background: rgba(214,69,59,.14); color: #b3261e; }
html.veste-macos .lc-lato .ad-lato-testa .ad-n.lc-n-par { background: rgba(224,163,0,.18); color: #8a5a00; }
html.veste-macos .lc-lato .ad-lato-testa .ad-n.lc-n-ok { background: rgba(57,148,112,.14); color: #26644b; }
html.veste-macos .lc-righe { display: flex; flex-direction: column; }
html.veste-macos .lc-r {
  display: flex; align-items: flex-start; gap: 9px; width: 100%; padding: 7px 6px; border: none; border-radius: 9px;
  background: transparent; text-align: left; font: inherit; color: var(--ink); cursor: pointer; position: relative;
  transition: background .15s ease;
}
html.veste-macos .lc-r:hover { background: rgba(0,0,0,.04); }
html.veste-macos .lc-r:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
html.veste-macos .lc-r.statica { cursor: default; }
html.veste-macos .lc-r.statica:hover { background: transparent; }
html.veste-macos .lc-r .lc-ri { flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; color: var(--accent-dark, #337359); margin-top: 1px; }
html.veste-macos .lc-r .lc-ri .material-symbols-outlined { font-size: 18px; }
html.veste-macos .lc-r .lc-ri.pdf { color: #d70015; }
html.veste-macos .lc-r .lc-ri.word { color: #1a5fb4; }
html.veste-macos .lc-r .lc-ri.img { color: #8e44ad; }
html.veste-macos .lc-r .lc-rt { flex: 1; min-width: 0; }
html.veste-macos .lc-r .lc-rt b { display: block; font-size: 13px; font-weight: 550; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.veste-macos .lc-r .lc-rt small { display: block; margin-top: 1px; font-size: 11.5px; line-height: 1.35; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.veste-macos .lc-r .lc-rt b.lc-due { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
html.veste-macos .lc-lato .lc-cit { flex-shrink: 0; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); margin-top: 7px; display: inline-block; }
html.veste-macos .lc-r .lc-chev { flex-shrink: 0; color: var(--faint); font-size: 18px !important; margin-top: 2px; opacity: 0; transition: opacity .15s ease; }
html.veste-macos .lc-r:hover .lc-chev { opacity: 1; }
html.veste-macos .lc-gt {
  display: flex; align-items: center; gap: 6px; width: 100%; margin: 6px 0 2px; padding: 4px 6px; border: none; background: none;
  font: inherit; font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-radius: 7px;
}
html.veste-macos .lc-gt:hover { background: rgba(0,0,0,.04); }
html.veste-macos .lc-gt .lc-gn { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); }
html.veste-macos .lc-gt .material-symbols-outlined { margin-left: auto; font-size: 17px; color: var(--faint); transition: transform .2s var(--molla); text-transform: none; letter-spacing: 0; }
html.veste-macos .lc-gt[aria-expanded="false"] .material-symbols-outlined { transform: rotate(-90deg); }
html.veste-macos .lc-altre {
  display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 4px 6px; padding: 4px 8px; border: none; border-radius: 7px; background: none;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent-dark, #337359); cursor: pointer;
}
html.veste-macos .lc-altre:hover { background: rgba(52,129,98,.08); }
html.veste-macos .lc-altre .material-symbols-outlined { font-size: 17px; }
html.veste-macos .lc-cerca { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 0 9px; height: 32px; border-radius: 9px; background: rgba(118,118,128,.10); }
html.veste-macos .lc-cerca .material-symbols-outlined { font-size: 17px; color: var(--faint); }
html.veste-macos .lc-cerca input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: inherit; font-size: 13px; color: var(--ink); }
html.veste-macos .lc-nota { display: flex; align-items: center; gap: 6px; margin: 6px 6px 0; font-size: 11.5px; color: var(--faint); }
html.veste-macos .lc-nota .lc-cit { margin-top: 0; }
html.veste-macos .lc-piede { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(60,60,67,.10); }
html.veste-macos .lc-piede .lc-link {
  border: none; background: none; padding: 4px 6px; border-radius: 7px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent-dark, #337359); cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; text-decoration: none;
}
html.veste-macos .lc-piede .lc-link:hover { background: rgba(52,129,98,.08); }
html.veste-macos .lc-piede .lc-link .material-symbols-outlined { font-size: 17px; }
html.veste-macos .lc-vuoto { margin: 2px 6px 4px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
html.veste-macos .lc-az { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; }
html.veste-macos .lc-az button,
html.veste-macos .lc-az a { border: none; background: none; padding: 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--accent-dark, #337359); cursor: pointer; text-decoration: none; }
html.veste-macos .lc-az button:hover,
html.veste-macos .lc-az a:hover { text-decoration: underline; text-underline-offset: 2px; }
html.veste-macos .lc-az button:disabled { color: var(--faint); cursor: default; text-decoration: none; }
html.veste-macos .lc-r.lc-ctrl { align-items: flex-start; }
html.veste-macos .lc-r.lc-ctrl .lc-box-ck {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; border: 1.5px solid rgba(60,60,67,.32); background: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
html.veste-macos .lc-r.lc-ctrl .lc-box-ck svg { width: 13px; height: 13px; display: block; opacity: 0; transition: opacity .12s ease; }
html.veste-macos .lc-r.lc-ctrl.fatto .lc-box-ck { background: var(--accent); border-color: var(--accent); }
html.veste-macos .lc-r.lc-ctrl.fatto .lc-box-ck svg { opacity: 1; }
html.veste-macos .lc-r.lc-ctrl.fatto .lc-rt b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(60,60,67,.4); }
html.veste-macos .lc-r.lc-ctrl .lc-verdetto { font-weight: 650; }
html.veste-macos .lc-r.lc-ctrl.ko .lc-verdetto { color: #b3261e; }
html.veste-macos .lc-r.lc-ctrl.par .lc-verdetto { color: #8a5a00; }
html.veste-macos .lc-r.lc-ctrl .lc-vai { flex-shrink: 0; border: none; background: none; padding: 2px 4px; font: inherit; font-size: 12px; font-weight: 600; color: var(--accent-dark, #337359); cursor: pointer; border-radius: 6px; }
html.veste-macos .lc-r.lc-ctrl .lc-vai:hover { background: rgba(52,129,98,.08); }
html.veste-macos .lc-progresso { height: 4px; border-radius: 999px; background: rgba(118,118,128,.14); overflow: hidden; margin: 8px 6px 2px; }
html.veste-macos .lc-progresso i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s var(--molla); }
html.veste-macos .lc-tutto { display: flex; align-items: center; gap: 6px; margin: 4px 6px 0; font-size: 12.5px; font-weight: 600; color: #26644b; }
html.veste-macos .lc-tutto .material-symbols-outlined { font-size: 17px; }
html.veste-macos .lc-r.lc-sca .lc-data { flex-shrink: 0; width: 44px; text-align: center; border-radius: 8px; background: rgba(255,59,48,.10); color: #b3261e; padding: 3px 0 4px; line-height: 1.1; }
html.veste-macos .lc-r.lc-sca .lc-data b { display: block; font-size: 16px; font-weight: 700; }
html.veste-macos .lc-r.lc-sca .lc-data small { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
html.veste-macos .lc-r.lc-sca.stimata .lc-data { background: rgba(224,163,0,.16); color: #8a5a00; }
html.veste-macos .lc-r.lc-sca .lc-rt b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
html.veste-macos .lc-appunti { width: 100%; min-height: 96px; max-height: 320px; resize: vertical; box-sizing: border-box; padding: 9px 10px; border-radius: 10px;
  border: 1px solid rgba(60,60,67,.14); background: #fffdf3; font: inherit; font-size: 13px; line-height: 1.5; color: var(--ink); outline: none; }
html.veste-macos .lc-appunti:focus { border-color: rgba(52,129,98,.6); box-shadow: 0 0 0 3px rgba(52,129,98,.14); }
html.veste-macos .lc-appunti-stato { margin: 5px 6px 0; font-size: 11.5px; color: var(--faint); min-height: 15px; }
html.veste-macos .lc-fasc-testa { display: flex; align-items: center; gap: 10px; padding: 4px 6px 8px; }
html.veste-macos .lc-fasc-testa .lc-ri { color: #636366; }
html.veste-macos .lc-fasc-testa .lc-rt b { white-space: normal; }
html.veste-macos .lc-pro-pill { flex-shrink: 0; padding: 2px 7px; border-radius: 6px; background: rgba(52,129,98,.12); color: var(--accent-dark, #337359); font-size: 11.5px; font-weight: 600; }
html.veste-macos .lc-lato .ad-lato.lc-subito .ad-lato-corpo { animation: none; }
html.veste-macos .lc-r.lc-sca .lc-dettagli { margin: 6px 0 2px; padding-left: 16px; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
html.veste-macos .lc-r.lc-sca .lc-dettagli li { margin-bottom: 2px; }
html.veste-macos a.lc-r { text-decoration: none; color: inherit; }
html.veste-macos .lc-lato .ad-lato-testa .ad-n[hidden] { display: none; }

/* 79 · la spunta di «Da controllare» centrata: un'altra regola dei pulsanti le dava padding 1px 6px (01/11/2026) */
html.veste-macos .lc-lato .lc-r.lc-ctrl .lc-box-ck { padding: 0 !important; margin: 2px 0 0 !important; border: 1.5px solid rgba(60,60,67,.32) !important; min-width: 0 !important; min-height: 0 !important; width: 20px !important; height: 20px !important; line-height: 0 !important; box-sizing: border-box !important; }
html.veste-macos .lc-lato .lc-r.lc-ctrl.fatto .lc-box-ck { border-color: var(--accent) !important; }
html.veste-macos .sk-conv { display: none; }
html.veste-macos .main.apre-chat .sk-conv { display: block; padding: 8px 0 40px; }
html.veste-macos .main.apre-chat .hero,
html.veste-macos .main.apre-chat #spunti,
html.veste-macos .main.apre-chat .spunti { display: none !important; }
html.veste-macos .main.apre-chat #thread { visibility: hidden; height: 0; overflow: hidden; }
html.veste-macos .main.appena-aperta #thread { animation: skCompare .35s ease both; }
@keyframes skCompare {
 from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } 
}
html.veste-macos .sk-conv i,
html.veste-macos .sk-conv b { display: block; border-radius: 6px; background: rgba(118,118,128,.12); }
html.veste-macos .sk-conv .sk-utente {
  width: 58%; margin: 0 0 30px auto; padding: 14px 16px; border-radius: 18px; background: rgba(118,118,128,.08);
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
html.veste-macos .sk-conv .sk-utente i { height: 11px; width: var(--w, 60%); background: rgba(118,118,128,.16); }
html.veste-macos .sk-conv .sk-ai { display: flex; flex-direction: column; gap: 11px; }
html.veste-macos .sk-conv .sk-ai i { height: 12px; width: var(--w, 90%); }
html.veste-macos .sk-conv .sk-ai b { height: 10px; background: transparent; }
@media (prefers-reduced-motion: no-preference) {
html.veste-macos .sk-conv i,
html.veste-macos .lc-sk i,
html.veste-macos .lc-sk .lc-sk-tile {
    background: linear-gradient(90deg, rgba(118,118,128,.12) 0%, rgba(118,118,128,.05) 38%, rgba(118,118,128,.12) 76%);
    background-size: 260% 100%;
    animation: scheletroScorre 1.5s ease-in-out infinite;
  }
html.veste-macos .sk-conv .sk-utente i { background: linear-gradient(90deg, rgba(118,118,128,.18) 0%, rgba(118,118,128,.08) 38%, rgba(118,118,128,.18) 76%); background-size: 260% 100%; }
}
html.veste-macos .lc-sk { display: none; }
html.veste-macos .lc-lato.lc-attesa .lc-sk { display: flex; flex-direction: column; gap: 12px; }
html.veste-macos .lc-lato.lc-attesa .lc-box { display: none !important; }
html.veste-macos .lc-sk > div {
  display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 16px; box-sizing: border-box; border-radius: 18px;
  background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.06), 0 6px 20px -10px rgba(0,0,0,.12);
}
html.veste-macos .lc-sk .lc-sk-tile { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: rgba(118,118,128,.12); }
html.veste-macos .lc-sk i { display: block; height: 11px; border-radius: 6px; width: var(--w, 50%); background: rgba(118,118,128,.12); }
html.veste-macos .rail-io.rail-io-attesa .iniziali { color: transparent !important; }
html.veste-macos .rail-io.rail-io-attesa .rail-io-t { position: relative; }
html.veste-macos .rail-io.rail-io-attesa .rail-io-t > * { visibility: hidden; }
html.veste-macos .rail-io.rail-io-attesa .rail-io-t::before,
html.veste-macos .rail-io.rail-io-attesa .rail-io-t::after {
  content: ""; position: absolute; left: 0; height: 10px; border-radius: 5px; background: rgba(118,118,128,.14);
}
html.veste-macos .rail-io.rail-io-attesa .rail-io-t::before { top: 4px; width: 92px; }
html.veste-macos .rail-io.rail-io-attesa .rail-io-t::after { top: 21px; width: 126px; height: 8px; }
html.veste-macos .rail.chiusa .rail-io.rail-io-attesa .rail-io-t::before,
html.veste-macos .rail.chiusa .rail-io.rail-io-attesa .rail-io-t::after { display: none; }
@media (prefers-reduced-motion: no-preference) {
html.veste-macos .rail-io.rail-io-attesa .iniziali,
html.veste-macos .rail-io.rail-io-attesa .rail-io-t::before,
html.veste-macos .rail-io.rail-io-attesa .rail-io-t::after {
    background: linear-gradient(90deg, rgba(118,118,128,.16) 0%, rgba(118,118,128,.06) 38%, rgba(118,118,128,.16) 76%) !important;
    background-size: 260% 100% !important; animation: scheletroScorre 1.5s ease-in-out infinite;
  }
html.veste-macos .rail-io.rail-io-pronto .iniziali,
html.veste-macos .rail-io.rail-io-pronto .rail-io-t > * { animation: skCompare .3s ease both; }
}
html.veste-macos .main.con-lato .column,
html.veste-macos .main.con-lato .dock-inner {
  max-width: var(--col-w, 680px) !important; width: auto !important;
  margin-left: var(--col-sx, auto) !important; margin-right: 0 !important;
}
/* il campo dei prompt allineato al testo: il .dock ha 24 px di margine interno a sinistra */
html.veste-macos .main.con-lato .dock-inner { margin-left: calc(var(--col-sx, 0px) - var(--lg-dock-pad, 24px)) !important; }
html.veste-macos .top .lc-interruttore { position: relative; }
html.veste-macos .top .lc-interruttore[hidden] { display: none !important; }
html.veste-macos .top .lc-interruttore svg { display: block; }
html.veste-macos .top .lc-interruttore:not(.chiuso) svg path { stroke: var(--accent-dark, #337359); }
html.veste-macos .top .lc-interruttore:not(.chiuso) svg rect { stroke: currentColor; }
html.veste-macos .top .lc-interruttore .lc-int-punto {
  position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 999px; background: #ff9500;
  box-shadow: 0 0 0 2px #fff;
}
html.veste-macos .top .lc-interruttore .lc-int-punto[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
html.veste-macos .lc-lato.lc-entra:not([hidden]) { animation: lcEntra .25s cubic-bezier(.32,.72,0,1) both; }
html.veste-macos .main.con-lato .column,
html.veste-macos .main .column { transition: margin .25s cubic-bezier(.32,.72,0,1), max-width .25s cubic-bezier(.32,.72,0,1); }
}
@keyframes lcEntra {
 from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } 
}
/* 84 · la larghezza della chat e del campo e quella calcolata, non quella che resta: col pannello chiuso il campo si accorciava a destra (01/11/2026) */
html.veste-macos .main.con-lato .column, html.veste-macos .main.con-lato .dock-inner { width: var(--col-w, auto) !important; max-width: none !important; box-sizing: border-box; }
html.veste-macos .muro-consulente { margin: 14px 0 4px; text-align: left; }
html.veste-macos .muro-consulente .mc-domanda { margin: 0 0 10px; font-size: 14.5px; font-weight: 650; color: var(--ink); text-align: center; }
html.veste-macos .muro-consulente .mc-scelte { display: grid; gap: 8px; }
html.veste-macos .muro-consulente .mc-scelta {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; cursor: pointer; text-align: left;
  border: 1px solid rgba(60,60,67,.14); background: #fff; font: inherit; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .2s var(--molla);
}
html.veste-macos .muro-consulente .mc-scelta:hover { border-color: rgba(52,129,98,.6); box-shadow: 0 4px 14px -6px rgba(49,131,98,.25); }
html.veste-macos .muro-consulente .mc-scelta:active { transform: scale(.99); }
html.veste-macos .muro-consulente .mc-scelta[hidden] { display: none; }
html.veste-macos .muro-consulente .mc-scelta > .material-symbols-outlined {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 21px;
  background: rgba(52,129,98,.12); color: var(--accent-dark, #337359);
}
html.veste-macos .muro-consulente .mc-scelta[data-az="aspetto"] > .material-symbols-outlined { background: rgba(118,118,128,.12); color: var(--ink-2); }
html.veste-macos .muro-consulente .mc-scelta b { display: block; font-size: 14px; font-weight: 650; }
html.veste-macos .muro-consulente .mc-scelta small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
html.veste-macos .muro-consulente .mc-tel { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(60,60,67,.18); background: #fff; }
html.veste-macos .muro-consulente .mc-tel:focus-within { border-color: rgba(52,129,98,.7); box-shadow: 0 0 0 3px rgba(52,129,98,.15); }
html.veste-macos .muro-consulente .mc-tel svg { flex-shrink: 0; color: var(--muted); }
html.veste-macos .muro-consulente .mc-tel input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
html.veste-macos .muro-consulente .mc-nota { margin: 8px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: center; }
html.veste-macos .muro-consulente .mc-errore { margin: 8px 2px 0; font-size: 12.5px; color: #b3261e; text-align: center; }
html.veste-macos .muro-consulente .mc-az { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
html.veste-macos .muro-consulente .mc-az button { min-width: 120px; }
html.veste-macos .muro-consulente .mc-ok { display: block; margin: 0 auto 6px; font-size: 40px; color: var(--accent); text-align: center; }
html.veste-macos .mc-pro { margin-top: 12px; }
html.veste-macos .mc-pro[hidden] { display: none !important; }
html.veste-macos .mc-pro .mc-pro-tasto {
  border: none; background: none; padding: 4px 8px; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--accent-dark, #337359);
}
html.veste-macos .mc-pro .mc-pro-tasto:hover { background: rgba(52,129,98,.08); }
/* la scelta prende il posto del lungo invito al Pro: il Pro resta nel tasto piccolo sotto (01/11/2026) */
html.veste-macos #muro-limite-vendita > p:first-child { display: none !important; }
html.veste-macos .btn-primo,
html.veste-macos .btn-pieno,
html.veste-macos .btn-piano,
html.veste-macos .novita-primario,
html.veste-macos .consenso-si,
html.veste-macos .spiega-si,
html.veste-macos .doc-correggi-az .btn-pri,
html.veste-macos .uso-cta,
html.veste-macos .pop.pop-set .uso-cta,
html.veste-macos .popup-domande .pd-invia,
html.veste-macos .rd-invia {
  background: var(--accent) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border: none !important;
  color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  transition: background .15s ease, transform .2s var(--molla) !important;
}
html.veste-macos .btn-primo:hover,
html.veste-macos .btn-pieno:hover:not(:disabled),
html.veste-macos .btn-piano:hover,
html.veste-macos .novita-primario:hover,
html.veste-macos .consenso-si:hover,
html.veste-macos .spiega-si:hover,
html.veste-macos .doc-correggi-az .btn-pri:hover,
html.veste-macos .uso-cta:hover,
html.veste-macos .popup-domande .pd-invia:hover:not(:disabled),
html.veste-macos .rd-invia:hover {
  background: #2c7055 !important;
  transform: none !important;
}
html.veste-macos .btn-primo:active,
html.veste-macos .btn-pieno:active,
html.veste-macos .btn-piano:active,
html.veste-macos .novita-primario:active,
html.veste-macos .consenso-si:active,
html.veste-macos .popup-domande .pd-invia:active,
html.veste-macos .rd-invia:active { transform: scale(.97) !important; }
html.veste-macos .top .fz-bollino {
  height: 40px; box-sizing: border-box; margin-left: 0 !important; padding: 0 12px 0 10px !important; gap: 8px !important;
  border-radius: 999px !important; text-decoration: none;
  background: linear-gradient(135deg, rgba(255,255,255,.58) 0%, rgba(255,255,255,.12) 36%, rgba(255,255,255,.03) 62%, rgba(255,255,255,.34) 100%) rgba(255,255,255,.55) !important;
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255,255,255,.8) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.3), 0 0 0 .5px rgba(60,60,67,.09), 0 2px 8px rgba(22,38,32,.06) !important;
  color: var(--ink) !important; font-size: 13.5px !important; font-weight: 600 !important; letter-spacing: -.01em;
  transition: background .2s ease, transform .25s var(--molla) !important; filter: none !important;
}
html.veste-macos .top .fz-bollino:hover { background: rgba(255,255,255,.85) !important; }
html.veste-macos .top .fz-bollino:active { transform: scale(.97); }
html.veste-macos .top .fz-bollino .material-symbols-outlined { display: none !important; }
html.veste-macos .top .fz-bollino::before {
  content: ""; flex-shrink: 0; width: 22px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 18'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%236cb8f7'/%3E%3Cstop offset='1' stop-color='%233d95ea'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%238fcafb'/%3E%3Cstop offset='1' stop-color='%2353a6f0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 1.5h6.2l2 2H20a1.5 1.5 0 0 1 1.5 1.5v10.5A1.5 1.5 0 0 1 20 17H2A1.5 1.5 0 0 1 .5 15.5V3A1.5 1.5 0 0 1 2 1.5z' fill='url(%23a)'/%3E%3Cpath d='M.5 6.2A1.5 1.5 0 0 1 2 4.7h18a1.5 1.5 0 0 1 1.5 1.5v9.3A1.5 1.5 0 0 1 20 17H2A1.5 1.5 0 0 1 .5 15.5z' fill='url(%23b)'/%3E%3Cpath d='M.5 6.4h21' stroke='%23ffffff' stroke-opacity='.45' stroke-width='.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
html.veste-macos .top .fz-bollino::after {
  content: ""; flex-shrink: 0; width: 7px; height: 11px; margin-left: 2px; opacity: .45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 11'%3E%3Cpath d='M1.2 1l4.3 4.5-4.3 4.5' fill='none' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
html.veste-macos .top .fz-bollino span:last-of-type { max-width: 220px; }
html.veste-macos .msg-ai .alert.sovraccarico {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 10px;
  border: 1px solid rgba(60,60,67,.12) !important; background: rgba(118,118,128,.07) !important; color: var(--ink-2) !important;
  border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.5;
}
html.veste-macos .msg-ai .alert.sovraccarico > .material-symbols-outlined { font-size: 19px; color: var(--muted); margin-top: 1px; }
html.veste-macos .msg-ai .alert.sovraccarico > div { flex: 1; min-width: 0; }
html.veste-macos .msg-ai .alert.sovraccarico > .opt { flex-basis: auto; margin: 6px 0 0 29px !important; }
html.veste-macos .msg-ai .body em:last-child,
html.veste-macos .msg-ai .body p:last-child > em:only-child { color: var(--muted); }
/* la nota del blocco: il tasto Riprova va a capo, sotto il testo */
html.veste-macos .msg-ai .alert.sovraccarico > div { flex: 1 1 calc(100% - 40px); }
html.veste-macos .dfz-menu { position: fixed; z-index: 400; min-width: 260px; max-width: 340px; max-height: 60vh; overflow-y: auto; }
html.veste-macos .dfz-menu .dfz-t { margin: 6px 10px 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
html.veste-macos .dfz-menu .dfz-vuoto { margin: 6px 10px 8px; font-size: 13px; color: var(--muted); }
html.veste-macos .dfz-menu .dfz-voce { display: flex !important; align-items: center; gap: 10px; text-align: left; }
html.veste-macos .dfz-menu .dfz-cart {
  flex-shrink: 0; width: 20px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 18'%3E%3Cpath d='M2 1.5h6.2l2 2H20a1.5 1.5 0 0 1 1.5 1.5v10.5A1.5 1.5 0 0 1 20 17H2A1.5 1.5 0 0 1 .5 15.5V3A1.5 1.5 0 0 1 2 1.5z' fill='%233d95ea'/%3E%3Cpath d='M.5 6.2A1.5 1.5 0 0 1 2 4.7h18a1.5 1.5 0 0 1 1.5 1.5v9.3A1.5 1.5 0 0 1 20 17H2A1.5 1.5 0 0 1 .5 15.5z' fill='%2364b0f4'/%3E%3C/svg%3E") center / contain no-repeat;
}
html.veste-macos .dfz-menu .dfz-n { min-width: 0; display: flex; flex-direction: column; }
html.veste-macos .dfz-menu .dfz-n b { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.veste-macos .dfz-menu .dfz-n small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.veste-macos .dfz-avviso {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 500; max-width: min(560px, calc(100vw - 32px));
  padding: 11px 16px; border-radius: 14px; background: rgba(29,29,31,.92); color: #fff; font-size: 13.5px; line-height: 1.4;
  box-shadow: 0 12px 32px -10px rgba(0,0,0,.4); transition: opacity .35s ease, transform .35s ease;
}
html.veste-macos .dfz-avviso b { font-weight: 650; }
html.veste-macos .dfz-avviso a { color: #a4d3c0; font-weight: 600; text-decoration: none; }
html.veste-macos .dfz-avviso a:hover { text-decoration: underline; }
html.veste-macos .dfz-avviso.no { background: rgba(120,30,25,.92); }
html.veste-macos .dfz-avviso.via { opacity: 0; transform: translate(-50%, 8px); }
html.veste-macos .ra-menu { width: 270px; transform-origin: bottom left; }
html.veste-macos .ra-menu .ra-chi { display: flex; align-items: center; gap: 10px; padding: 8px 10px 6px; }
html.veste-macos .ra-menu .ra-av {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
  background: #ececf0; color: #5c5c63; font-size: 13px; font-weight: 600;
}
html.veste-macos .ra-menu .ra-chi-t { min-width: 0; display: flex; flex-direction: column; }
html.veste-macos .ra-menu .ra-chi-t b { font-size: 14px; font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.veste-macos .ra-menu .ra-chi-t small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.veste-macos .ra-menu .ra-pro { font-style: normal; margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; vertical-align: 1px; }
html.veste-macos .ra-menu .ra-voce { gap: 10px; }
html.veste-macos .ra-menu .ra-voce > .material-symbols-outlined { font-size: 19px; color: var(--muted); }
html.veste-macos .ra-menu .ra-esci b { color: #c0392b; font-weight: 500; }
html.veste-macos .ra-menu .ra-esci > .material-symbols-outlined { color: #c0392b; }
html.veste-macos .rd-imp { position: relative; }
html.veste-macos .rd-imp.rd-imp-trascina::after {
  content: "Rilascia qui il file: diventa uno scheletro";
  position: absolute; inset: 10px; z-index: 5; display: grid; place-items: center; pointer-events: none;
  border: 2px dashed var(--accent); border-radius: 16px; background: rgba(255,255,255,.88);
  color: var(--accent); font-size: 15px; font-weight: 600;
}
html.veste-macos .fz-griglia#fz-elenco { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 8px; }
html.veste-macos .fz-griglia .fz-card {
  align-items: center; text-align: center; gap: 2px; padding: 14px 10px 12px !important;
  border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 14px;
  transition: background .18s ease !important; transform: none !important;
}
html.veste-macos .fz-griglia .fz-card:hover { background: rgba(60,60,67,.06) !important; transform: none !important; box-shadow: none !important; }
html.veste-macos .fz-griglia .fz-card:active { background: rgba(60,60,67,.1) !important; }
html.veste-macos .fz-griglia .fz-card .fz-card-ic {
  display: block; width: 104px; height: 84px; margin: 0 0 8px; font-size: 0 !important; color: transparent !important;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%2080'%3E%3Cdefs%3E%3ClinearGradient%20id='d'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%234fb65a'/%3E%3Cstop%20offset='1'%20stop-color='%233f9f4b'/%3E%3C/linearGradient%3E%3ClinearGradient%20id='f'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%2372cf7a'/%3E%3Cstop%20offset='1'%20stop-color='%235bbd64'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d='M7%203h25.5c1.7%200%203.3.7%204.5%201.9L42.6%2011H93a7%207%200%200%201%207%207v55a7%207%200%200%201-7%207H7a7%207%200%200%201-7-7V10a7%207%200%200%201%207-7z'%20fill='url%28%23d%29'/%3E%3Crect%20y='19'%20width='100'%20height='61'%20rx='7'%20fill='url%28%23f%29'/%3E%3Crect%20x='1'%20y='19.6'%20width='98'%20height='1.4'%20rx='.7'%20fill='%23fff'%20fill-opacity='.45'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 3px 6px rgba(24,56,43,.14)); transition: transform .25s var(--molla, ease);
}
html.veste-macos .fz-griglia .fz-card:hover .fz-card-ic { transform: translateY(-2px) scale(1.03); }
html.veste-macos .fz-griglia .fz-card .fz-card-nome {
  font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html.veste-macos .fz-griglia .fz-card .fz-card-cliente { font-size: 12.5px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.veste-macos .fz-griglia .fz-card .fz-card-meta { margin-top: 1px; font-size: 11.5px; }
html.veste-macos .fz-scelta .material-symbols-outlined {
  flex-shrink: 0; width: 24px; height: 19px; font-size: 0 !important; color: transparent !important;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%2080'%3E%3Cdefs%3E%3ClinearGradient%20id='d'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%234fb65a'/%3E%3Cstop%20offset='1'%20stop-color='%233f9f4b'/%3E%3C/linearGradient%3E%3ClinearGradient%20id='f'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%2372cf7a'/%3E%3Cstop%20offset='1'%20stop-color='%235bbd64'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d='M7%203h25.5c1.7%200%203.3.7%204.5%201.9L42.6%2011H93a7%207%200%200%201%207%207v55a7%207%200%200%201-7%207H7a7%207%200%200%201-7-7V10a7%207%200%200%201%207-7z'%20fill='url%28%23d%29'/%3E%3Crect%20y='19'%20width='100'%20height='61'%20rx='7'%20fill='url%28%23f%29'/%3E%3Crect%20x='1'%20y='19.6'%20width='98'%20height='1.4'%20rx='.7'%20fill='%23fff'%20fill-opacity='.45'/%3E%3C/svg%3E") center / contain no-repeat;
}
html.veste-macos .dfz-menu .dfz-cart,
html.veste-macos .top .fz-bollino::before { background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%2080'%3E%3Cdefs%3E%3ClinearGradient%20id='d'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%234fb65a'/%3E%3Cstop%20offset='1'%20stop-color='%233f9f4b'/%3E%3C/linearGradient%3E%3ClinearGradient%20id='f'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%2372cf7a'/%3E%3Cstop%20offset='1'%20stop-color='%235bbd64'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d='M7%203h25.5c1.7%200%203.3.7%204.5%201.9L42.6%2011H93a7%207%200%200%201%207%207v55a7%207%200%200%201-7%207H7a7%207%200%200%201-7-7V10a7%207%200%200%201%207-7z'%20fill='url%28%23d%29'/%3E%3Crect%20y='19'%20width='100'%20height='61'%20rx='7'%20fill='url%28%23f%29'/%3E%3Crect%20x='1'%20y='19.6'%20width='98'%20height='1.4'%20rx='.7'%20fill='%23fff'%20fill-opacity='.45'/%3E%3C/svg%3E") center / contain no-repeat !important; }


/* ── 95. La nota sull'AI più vicina al campo, col Triplo Vaglio (03/11/2026, Andrea) ── */
html.veste-macos .disclaimer .nota-vaglio { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(0,0,0,.25); text-underline-offset: 2px; }
html.veste-macos .disclaimer .nota-vaglio:hover { color: var(--accent-ink, var(--ink)); text-decoration-color: currentColor; }
html.veste-macos body .main:not(.vuota) .dock-inner > .disclaimer.nota-sopra.nota-sopra { margin-bottom: 3px !important; }
html.veste-macos body .main:not(.vuota) .dock-inner > .disclaimer.nota-sopra ~ .attachments:not(:has(*)) { margin-bottom: 0 !important; }


/* ── 96. Triplo Vaglio: l'esito di ogni articolo, comma e pertinenza (03/11/2026, static/vaglio.js) ── */
html.veste-macos .tv-arts .tv-art-esito { display: block; margin: 5px 0 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
html.veste-macos .tv-arts .tv-art-esito .tv-esito { margin-right: 6px; }


/* ── 97. Gli allegati nella barra della chat come in Redigere documenti (03/11/2026, Andrea) ── */
/* niente vetro: schede piatte grigio chiaro, icona grigia, il peso a destra; tutte su una riga che scorre di lato
   invece di andare a capo e spingere il campo su e giu' */
html.veste-macos body #attachments.attachments {
  flex-wrap: nowrap !important; overflow-x: auto; overflow-y: hidden; gap: 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; padding: 1px 0;
}
html.veste-macos body #attachments.attachments::-webkit-scrollbar { display: none; }
html.veste-macos body #attachments.attachments > .chip {
  flex: 0 0 auto; max-width: 280px; scroll-snap-align: start;
  display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px !important; min-height: 42px; box-sizing: border-box;
  background: #eeeef0 !important; border: 0 !important; border-radius: 10px !important;
  box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  color: #1d1d1f !important;
}
html.veste-macos body #attachments.attachments > .chip .chip-ic {
  width: auto !important; height: auto !important; background: transparent !important; box-shadow: none !important;
  border: 0 !important; padding: 0 !important; color: #6e6e73 !important;
}
html.veste-macos body #attachments.attachments > .chip .chip-ic .material-symbols-outlined { font-size: 18px !important; color: #6e6e73 !important; }
html.veste-macos body #attachments.attachments > .chip .chip-ant { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
html.veste-macos body #attachments.attachments > .chip .chip-t { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
html.veste-macos body #attachments.attachments > .chip .chip-t .n {
  font-size: 14px; font-weight: 400; color: #1d1d1f !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px;
}
html.veste-macos body #attachments.attachments > .chip .chip-t .sz { font-size: 12px; color: #8e8e93 !important; white-space: nowrap; }
html.veste-macos body #attachments.attachments > .chip > button {
  flex-shrink: 0; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 999px;
  background: transparent !important; color: #6e6e73 !important; box-shadow: none !important; padding: 0; cursor: pointer;
}
html.veste-macos body #attachments.attachments > .chip > button:hover { background: rgba(0,0,0,.06) !important; color: #1d1d1f !important; }
html.veste-macos body #attachments.attachments > .chip > button .material-symbols-outlined { font-size: 18px; }
html.veste-macos body #attachments.attachments > .chip.rotto { background: #fdecea !important; }
html.veste-macos body #attachments.attachments > .chip.rotto .sz { color: #c0392b !important; }
html.veste-macos body #attachments.attachments > .chip .chip-t { flex-direction: row !important; align-items: baseline !important; }
html.veste-macos body #attachments.attachments > .chip .chip-t .sz { margin: 0 !important; }
html.veste-macos body #attachments.attachments.scorre-dx { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
html.veste-macos body #attachments.attachments.scorre-sx { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
html.veste-macos body #attachments.attachments.scorre-sx.scorre-dx { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }


/* ── 98. La campanella: risposte e documenti pronti, il documento in redazione (03/11/2026, static/notifiche.js) ── */
html.veste-macos .nt-risposta  { background: rgba(52,129,98,.14); color: var(--accent-ink); }
html.veste-macos .nt-documento { background: rgba(0,122,255,.12); color: #0060c7; }
html.veste-macos .nt-corso     { background: rgba(60,60,67,.08); color: #6e6e73; }
html.veste-macos .nt-corso svg { animation: ntGira 1s linear infinite; }
@keyframes ntGira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nt-corso svg { animation: none; } }


/* ── 99. Impostazioni → Utilizzo come quella di Claude (03/11/2026, templates/_impostazioni.html) ── */
html.veste-macos .uso2 { display: flex; flex-direction: column; padding: 2px 18px; border-radius: 14px; background: rgba(255,255,255,.72); border: 1px solid rgba(0,0,0,.06); }
html.veste-macos .uso2[hidden] { display: none; }
html.veste-macos .uso2-riga { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 22px; align-items: center; padding: 15px 0; }
html.veste-macos .uso2-riga + .uso2-riga { border-top: 1px solid rgba(0,0,0,.06); }
html.veste-macos .uso2-sx { min-width: 0; }
html.veste-macos .uso2-sx b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
html.veste-macos .uso2-sx small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
html.veste-macos .uso2-piano { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 1px 7px; border-radius: 6px; background: rgba(0,0,0,.06); color: var(--muted); }
html.veste-macos .uso2.pro .uso2-piano { background: var(--accent); color: #fff; }
html.veste-macos .uso2-dx { display: flex; align-items: center; gap: 12px; min-width: 0; }
html.veste-macos body .uso2 .uso2-barra { flex: 1; height: 8px; margin: 0 !important; border-radius: 999px; background: rgba(0,0,0,.08) !important; overflow: hidden; box-shadow: none !important; }
html.veste-macos body .uso2 .uso2-barra i { display: block; height: 100%; border-radius: 999px; background: var(--accent) !important; transition: width .4s ease; }
html.veste-macos .uso2-n { flex-shrink: 0; min-width: 64px; text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
html.veste-macos body .uso2.pieno .uso2-riga:first-child .uso2-barra i, html.veste-macos body .uso2 .uso2-riga.pieno .uso2-barra i,
html.veste-macos body .uso2 .uso2-dx.pieno .uso2-barra i { background: #d93025 !important; }
@media (max-width: 560px) { .uso2-riga { grid-template-columns: 1fr; gap: 8px; } }


/* ── 100. La ricerca nell'elenco dei fascicoli (03/11/2026, static/fascicoli-cerca.js) ── */
html.veste-macos .fzc { margin: 0 0 18px; max-width: 460px; }
html.veste-macos .fzc[hidden] { display: none; }
html.veste-macos .fzc-campo {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px; border-radius: 11px;
  background: rgba(118,118,128,.12); color: #6e6e73; transition: background .15s ease, box-shadow .15s ease;
}
html.veste-macos .fzc-campo:focus-within { background: #fff; box-shadow: 0 0 0 3px rgba(52,129,98,.18), 0 0 0 1px rgba(52,129,98,.45); }
html.veste-macos .fzc-campo .material-symbols-outlined { font-size: 19px; }
html.veste-macos .fzc-campo input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14.5px; color: var(--ink);
}
html.veste-macos .fzc-campo input::-webkit-search-cancel-button { display: none; }
html.veste-macos .fzc-campo input::placeholder { color: #8e8e93; }
html.veste-macos .fzc-x { display: none; width: 22px; height: 22px; place-items: center; border: 0; border-radius: 999px; padding: 0;
  background: rgba(118,118,128,.28); color: #fff; cursor: pointer; }
html.veste-macos .fzc-x .material-symbols-outlined { font-size: 15px; }
html.veste-macos .fzc.pieno .fzc-x { display: grid; }
html.veste-macos .fzc-vuoto { margin: 6px 2px 0; font-size: 14px; color: var(--muted); }
html.veste-macos .fz-griglia .fz-card[hidden] { display: none !important; }


/* ── 101. Il suggerimento delle barre su una riga sola (03/11/2026) ── */
/* Andrea, con la foto della redazione stretta: «la barra del prompt è buggata». Il suggerimento («Chiedi una modifica,
   o trascina qui i file…») andava a capo e la seconda riga restava tagliata a metà dentro il campo da una riga. Finché il
   campo è vuoto il suggerimento sta su UNA riga e, se non ci sta, finisce coi puntini; quando si scrive, il testo va a
   capo come sempre. */
html.veste-macos body :is(#rd-chiedi-testo, #richiesta, #input, #fz-chiedi textarea):placeholder-shown {
  white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis;
}
html.veste-macos body :is(#rd-chiedi-testo, #richiesta, #input, #fz-chiedi textarea)::placeholder {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


/* ── 102. Il riquadro dei lavori resta solo per i dati (03/11/2026, CHAT_NOTIFICHE_LAVORI: lo dice la campanella) ── */
html.veste-macos body .lavoro-vivo.solo-dati { display: none !important; }

html.veste-macos .rd-archivio .dcc { margin: 2px 0 16px; }
html.veste-macos .rd-archivio .doc-riga[hidden] { display: none !important; }


/* ── 103. L elenco dei fascicoli: senza la riga sotto il titolo, il titolo più in basso (03/11/2026, Andrea) ── */
html.veste-macos body .fz-testa:has(#fz-nuovo) { align-items: center; margin: 34px 0 24px; }


/* ── 104. Lo storico davanti al velluto della Home; in chat la pagina bianca anche in cima (03/11/2026, Andrea) ── */
/* «la barra verde non va bene»; «la lista deve andare fino alla fine del viewport, e scendere un po' in testa»;
   «davanti lo storico, dietro come sfondo lo stesso verde della Home». Il velluto nel modo «storico» e' quello della
   Home (home-smeraldo.js); qui il pannello bianco che lo copre, da poco sotto la barra fino in fondo. */
html.veste-macos.smeraldo-on.smeraldo-chat:not(:has(#vista-cerca:not([hidden]))) { background: #fff !important; }
html.veste-macos.con-storico #vista-cerca:not([hidden])::after { display: none !important; }
html.veste-macos.con-storico .column:has(> #vista-cerca:not([hidden])) { padding-bottom: 0 !important; }
html.veste-macos.con-storico #vista-cerca:not([hidden]) {
  margin-top: 46px; padding: 30px 30px 40px !important; min-height: calc(100vh - 46px - 70px); box-sizing: border-box;
  border-radius: 28px 28px 0 0; background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 -1px 0 rgba(255,255,255,.7) inset, 0 30px 80px -30px rgba(6,37,25,.45);
}
@media (max-width: 760px) { html.veste-macos.con-storico #vista-cerca:not([hidden]) { margin-top: 18px; padding: 20px 14px 30px !important; border-radius: 22px 22px 0 0; } }


/* ── 105. Lo storico globale: la pill e le voci delle altre sezioni (03/11/2026, Andrea) ── */
/* «sotto la barra di ricerca una pill dove decido quale storico guardare […] lo stesso stile di Scrittura/Scheletri»:
   lo switch e' .rd-imp-seg (sezione delle impostazioni della redazione), qui con sei voci. */
html.veste-macos.con-storico .storico-seg {
  grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 14px 0 6px; padding: 2px;
}
html.veste-macos.con-storico .storico-seg::before { width: calc((100% - 4px) / 5); }
html.veste-macos.con-storico .storico-seg button { padding: 7px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  html.veste-macos.con-storico .storico-seg { overflow-x: auto; scrollbar-width: none; grid-template-columns: repeat(5, max-content); }
  html.veste-macos.con-storico .storico-seg::-webkit-scrollbar { display: none; }
  html.veste-macos.con-storico .storico-seg::before { display: none; }
  html.veste-macos.con-storico .storico-seg button { padding: 7px 12px; font-size: 12.5px; border-radius: 7px; }
  html.veste-macos.con-storico .storico-seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
}
html.veste-macos.con-storico a.storico-riga { color: inherit; text-decoration: none; }
html.veste-macos.con-storico .storico-ic.t-documento { background: linear-gradient(145deg, #eef4fc, #dfe9f8); color: #2f5f9e; box-shadow: inset 0 0 0 .5px rgba(20,60,120,.08); }
html.veste-macos.con-storico .storico-ic.t-fascicolo { background: linear-gradient(145deg, #e9f4fd, #d4e8fa); color: #1f6fb8; box-shadow: inset 0 0 0 .5px rgba(20,80,140,.08); }
html.veste-macos.con-storico .storico-ic.t-vaglio { background: linear-gradient(145deg, #e7f3ee, #d4e9e1); color: #144f37; box-shadow: inset 0 0 0 .5px rgba(16,68,47,.1); }
html.veste-macos.con-storico .storico-ic.t-banca { background: linear-gradient(145deg, #f3effb, #e6dff6); color: #5b3fa0; box-shadow: inset 0 0 0 .5px rgba(70,40,130,.08); }
html.veste-macos.con-storico .storico-tag { font-weight: 600; color: var(--ink-2); }
html.veste-macos.con-storico .storico-m-r .ko { color: #b3261e; font-weight: 500; }
html.veste-macos.con-storico .storico-vai { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; color: var(--faint); opacity: 0;
  transition: opacity .15s ease, transform .2s cubic-bezier(.32,.72,0,1); }
html.veste-macos.con-storico .storico-vai svg { width: 16px; height: 16px; }
html.veste-macos.con-storico .storico-altra:hover .storico-vai, html.veste-macos.con-storico .storico-altra:focus-visible .storico-vai { opacity: 1; transform: translateX(2px); }
html.veste-macos.con-storico .storico-trovate { margin-bottom: 14px; }
html.veste-macos.con-storico .storico-niente { padding: 40px 0; text-align: center; color: var(--muted); }

/* 03/11/2026, sera (Andrea: «nella sezione storico sopra è bianco, togli il bianco»): con lo storico aperto niente
   velo bianco sotto la barra in alto, si vede il velluto. E l'icona del Triplo Vaglio disegnata (i cerchi col check). */
html.veste-macos .rail-ic-svg { display: inline-grid; place-items: center; }
html.veste-macos .rail-ic-svg svg.ic-vaglio { width: 1.12em; height: 1.12em; }
html.veste-macos .storico-ic svg.ic-vaglio { width: 20px; height: 20px; }


/* ── 106. Le cartelle dei Fascicoli nei colori del Finder, scelti col tasto destro (03/11/2026, Andrea) ── */
html body .fz-griglia .fz-card[data-colore="blu"] .fz-card-ic { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%2080'%3E%3Cdefs%3E%3ClinearGradient%20id='d'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%234a9ee8'/%3E%3Cstop%20offset='1'%20stop-color='%233a88d6'/%3E%3C/linearGradient%3E%3ClinearGradient%20id='f'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%2378bdf6'/%3E%3Cstop%20offset='1'%20stop-color='%235ea9ee'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d='M7%203h25.5c1.7%200%203.3.7%204.5%201.9L42.6%2011H93a7%207%200%200%201%207%207v55a7%207%200%200%201-7%207H7a7%207%200%200%201-7-7V10a7%207%200%200%201%207-7z'%20fill='url%28%23d%29'/%3E%3Crect%20y='19'%20width='100'%20height='61'%20rx='7'%20fill='url%28%23f%29'/%3E%3Crect%20x='1'%20y='19.6'%20width='98'%20height='1.4'%20rx='.7'%20fill='%23fff'%20fill-opacity='.45'/%3E%3C/svg%3E") !important; }
html body .fz-griglia .fz-card[data-colore="verde"] .fz-card-ic { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%2080'%3E%3Cdefs%3E%3ClinearGradient%20id='d'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%234fb65a'/%3E%3Cstop%20offset='1'%20stop-color='%233f9f4b'/%3E%3C/linearGradient%3E%3ClinearGradient%20id='f'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%2372cf7a'/%3E%3Cstop%20offset='1'%20stop-color='%235bbd64'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d='M7%203h25.5c1.7%200%203.3.7%204.5%201.9L42.6%2011H93a7%207%200%200%201%207%207v55a7%207%200%200%201-7%207H7a7%207%200%200%201-7-7V10a7%207%200%200%201%207-7z'%20fill='url%28%23d%29'/%3E%3Crect%20y='19'%20width='100'%20height='61'%20rx='7'%20fill='url%28%23f%29'/%3E%3Crect%20x='1'%20y='19.6'%20width='98'%20height='1.4'%20rx='.7'%20fill='%23fff'%20fill-opacity='.45'/%3E%3C/svg%3E") !important; }
html body .fz-griglia .fz-card[data-colore="giallo"] .fz-card-ic { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%2080'%3E%3Cdefs%3E%3ClinearGradient%20id='d'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%23efbd2a'/%3E%3Cstop%20offset='1'%20stop-color='%23e0a81c'/%3E%3C/linearGradient%3E%3ClinearGradient%20id='f'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%23fbd858'/%3E%3Cstop%20offset='1'%20stop-color='%23f4c83c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d='M7%203h25.5c1.7%200%203.3.7%204.5%201.9L42.6%2011H93a7%207%200%200%201%207%207v55a7%207%200%200%201-7%207H7a7%207%200%200%201-7-7V10a7%207%200%200%201%207-7z'%20fill='url%28%23d%29'/%3E%3Crect%20y='19'%20width='100'%20height='61'%20rx='7'%20fill='url%28%23f%29'/%3E%3Crect%20x='1'%20y='19.6'%20width='98'%20height='1.4'%20rx='.7'%20fill='%23fff'%20fill-opacity='.45'/%3E%3C/svg%3E") !important; }
html body .fz-griglia .fz-card[data-colore="arancione"] .fz-card-ic { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%2080'%3E%3Cdefs%3E%3ClinearGradient%20id='d'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%23f39a35'/%3E%3Cstop%20offset='1'%20stop-color='%23e5841f'/%3E%3C/linearGradient%3E%3ClinearGradient%20id='f'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%23fdb862'/%3E%3Cstop%20offset='1'%20stop-color='%23f7a443'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d='M7%203h25.5c1.7%200%203.3.7%204.5%201.9L42.6%2011H93a7%207%200%200%201%207%207v55a7%207%200%200%201-7%207H7a7%207%200%200%201-7-7V10a7%207%200%200%201%207-7z'%20fill='url%28%23d%29'/%3E%3Crect%20y='19'%20width='100'%20height='61'%20rx='7'%20fill='url%28%23f%29'/%3E%3Crect%20x='1'%20y='19.6'%20width='98'%20height='1.4'%20rx='.7'%20fill='%23fff'%20fill-opacity='.45'/%3E%3C/svg%3E") !important; }
html body .fz-griglia .fz-card[data-colore="rosso"] .fz-card-ic { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%2080'%3E%3Cdefs%3E%3ClinearGradient%20id='d'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%23e8564f'/%3E%3Cstop%20offset='1'%20stop-color='%23d4423c'/%3E%3C/linearGradient%3E%3ClinearGradient%20id='f'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%23f5817b'/%3E%3Cstop%20offset='1'%20stop-color='%23ec6760'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d='M7%203h25.5c1.7%200%203.3.7%204.5%201.9L42.6%2011H93a7%207%200%200%201%207%207v55a7%207%200%200%201-7%207H7a7%207%200%200%201-7-7V10a7%207%200%200%201%207-7z'%20fill='url%28%23d%29'/%3E%3Crect%20y='19'%20width='100'%20height='61'%20rx='7'%20fill='url%28%23f%29'/%3E%3Crect%20x='1'%20y='19.6'%20width='98'%20height='1.4'%20rx='.7'%20fill='%23fff'%20fill-opacity='.45'/%3E%3C/svg%3E") !important; }
html body .fz-griglia .fz-card[data-colore="viola"] .fz-card-ic { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%2080'%3E%3Cdefs%3E%3ClinearGradient%20id='d'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%23b073d6'/%3E%3Cstop%20offset='1'%20stop-color='%239b5cc6'/%3E%3C/linearGradient%3E%3ClinearGradient%20id='f'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%23cc9aea'/%3E%3Cstop%20offset='1'%20stop-color='%23b980df'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d='M7%203h25.5c1.7%200%203.3.7%204.5%201.9L42.6%2011H93a7%207%200%200%201%207%207v55a7%207%200%200%201-7%207H7a7%207%200%200%201-7-7V10a7%207%200%200%201%207-7z'%20fill='url%28%23d%29'/%3E%3Crect%20y='19'%20width='100'%20height='61'%20rx='7'%20fill='url%28%23f%29'/%3E%3Crect%20x='1'%20y='19.6'%20width='98'%20height='1.4'%20rx='.7'%20fill='%23fff'%20fill-opacity='.45'/%3E%3C/svg%3E") !important; }
html body .fz-griglia .fz-card[data-colore="grigio"] .fz-card-ic { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%2080'%3E%3Cdefs%3E%3ClinearGradient%20id='d'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%23a3a3aa'/%3E%3Cstop%20offset='1'%20stop-color='%238e8e95'/%3E%3C/linearGradient%3E%3ClinearGradient%20id='f'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%23c3c3c8'/%3E%3Cstop%20offset='1'%20stop-color='%23adadb3'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d='M7%203h25.5c1.7%200%203.3.7%204.5%201.9L42.6%2011H93a7%207%200%200%201%207%207v55a7%207%200%200%201-7%207H7a7%207%200%200%201-7-7V10a7%207%200%200%201%207-7z'%20fill='url%28%23d%29'/%3E%3Crect%20y='19'%20width='100'%20height='61'%20rx='7'%20fill='url%28%23f%29'/%3E%3Crect%20x='1'%20y='19.6'%20width='98'%20height='1.4'%20rx='.7'%20fill='%23fff'%20fill-opacity='.45'/%3E%3C/svg%3E") !important; }
html body .fzm {
  position: fixed; z-index: 1000; min-width: 210px; padding: 5px; border-radius: 12px; background: rgba(250,250,252,.96);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 12px 34px rgba(0,0,0,.16); animation: fzmEntra .14s ease-out;
}
@keyframes fzmEntra { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
html body .fzm-voce { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: 7px;
  background: transparent; font: inherit; font-size: 13.5px; color: var(--ink); text-align: left; cursor: pointer; }
html body .fzm-voce .material-symbols-outlined { font-size: 18px; color: var(--ink-2); }
html body .fzm-voce:hover { background: rgba(0,0,0,.06); }
html body .fzm-voce.rossa, html body .fzm-voce.rossa .material-symbols-outlined { color: #d93025; }
html body .fzm-sep { height: 1px; margin: 5px 8px; background: rgba(0,0,0,.08); }
html body .fzm-colori { display: flex; justify-content: space-between; gap: 6px; padding: 5px 10px; }
html body .fzm-pallino { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--c); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); transition: transform .12s ease; }
html body .fzm-pallino:hover { transform: scale(1.15); }
html body .fzm-pallino.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--c); }
html body .fz-card .fzm-nome { width: 100%; padding: 3px 6px; border: 1px solid var(--accent, #176345); border-radius: 6px;
  font: inherit; font-size: 14px; font-weight: 600; text-align: center; outline: none; background: #fff; }


/* ── 107. Lo storico fino in fondo; il campo di ricerca resta in alto, non segue lo scorrimento (03/11/2026, sera) ── */
html.veste-macos.con-storico .shell:has(#vista-cerca:not([hidden])) { padding-bottom: 0 !important; }
html.veste-macos.con-storico .cerca-campo.storico-campo-box, html.veste-macos.con-storico .cerca-campo.storico-campo-box.incollato { position: relative !important; top: auto !important; }
html.veste-macos.con-storico .storico-altra .storico-piu { opacity: 0; }
html.veste-macos.con-storico .storico-altra:hover .storico-piu, html.veste-macos.con-storico .storico-altra:focus-within .storico-piu { opacity: 1; }


/* ── 108. Lo storico su bianco pulito, come le altre pagine (03/11/2026, sera, Andrea) ── */
/* «quando scrollo veloce si alza un pochettino e poi torna in basso, la striscia verde si vede e da fastidio; lo storico
   mettilo su sfondo bianco pulito come il resto». Niente velluto dietro e niente pannello: il fondo delle altre pagine. */
html.veste-macos:has(#vista-cerca:not([hidden])), html.veste-macos:has(#vista-cerca:not([hidden])) body { background: #fbfbfc !important; }
html.veste-macos:has(#vista-cerca:not([hidden])) .smeraldo-velluto { display: none !important; }
html.veste-macos.con-storico #vista-cerca:not([hidden]) {
  margin-top: 0 !important; padding: 26px 30px 40px !important; min-height: 0 !important; border-radius: 0 !important;
  background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important;
}
@media (max-width: 760px) { html.veste-macos.con-storico #vista-cerca:not([hidden]) { margin-top: 0 !important; padding: 16px 14px 30px !important; } }


/* ── 109. Il titolo «Storico» nel serif delle altre sezioni, come «Fascicoli» e «Banca Dati» (03/11/2026, sera) ── */
html.veste-macos.con-storico .storico-testa h1 {
  font-family: "LexNova Serif", "Cormorant Garamond", Garamond, Georgia, serif !important;
  font-size: 34px !important; font-weight: 600 !important; letter-spacing: -.012em !important;
}
