/* FC IMPIANTI · Universo e Claude nella pagina del gestionale (Claude, 25/10/2026). Vedi fc-claude-universo.js.
   Versione 29 (interni): barra, pulsanti e pannello prendono il tema dell'Universo, come le pagine strumento rivestite.
   Versione 15: i fogli del gestionale danno a tutti i pulsanti altezza, bordi e colori propri. Qui ogni pulsante parte da zero
   (all: unset) e le regole hanno due id, così valgono sempre e il pannello resta pulito anche sul telefono. */
/* versione 30 (26/10/2026, Andrea: «Penserei a claude per apple … molto minimale ed ottimizzato»): gettoni FC minimale, comuni a chat e
   interni (claude_interni_20261025/GETTONI_FC_MINIMALE.md); barre in vetro con separatore sottile, niente ombre pesanti */
#fcx { --fcx-blu: #0e74e0; --fcx-ink: #1d1d1f; --fcx-muted: #6e6e73; --fcx-carta: #ffffff; --fcx-fondo: #f5f5f7; --fcx-chip: rgba(118, 118, 128, .12);
       --fcx-bordo: rgba(60, 60, 67, .14); --fcx-ombra: 0 8px 30px rgba(0, 0, 0, .12); --fcx-barra: rgba(249, 249, 249, .86);
       font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; color-scheme: light; }
/* versione 29: il tema è quello dell'Universo (data-fcx-tema, messo da fc-claude-interni.js); senza, quello del dispositivo */
:root[data-fcx-tema="notte"] #fcx { --fcx-blu: #38bde1; --fcx-ink: #f5f5f7; --fcx-muted: #98989d; --fcx-carta: #1c1c1e; --fcx-fondo: #000; --fcx-chip: rgba(118, 118, 128, .24);
         --fcx-bordo: rgba(84, 84, 88, .55); --fcx-ombra: none; --fcx-barra: rgba(22, 22, 24, .86); color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-fcx-tema]):not([data-fc-theme="light"]) #fcx { --fcx-blu: #38bde1; --fcx-ink: #f5f5f7; --fcx-muted: #98989d; --fcx-carta: #1c1c1e; --fcx-fondo: #000; --fcx-chip: rgba(118, 118, 128, .24);
         --fcx-bordo: rgba(84, 84, 88, .55); --fcx-ombra: none; --fcx-barra: rgba(22, 22, 24, .86); color-scheme: dark; }
}
#fcx #fcx-dock button, #fcx #fcx-pannello button { all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#fcx #fcx-dock button:focus-visible, #fcx #fcx-pannello button:focus-visible { outline: 2px solid var(--fcx-blu); outline-offset: 2px; }

/* l'Universo è la pagina iniziale: sopra la vista iniziale precedente, che resta sotto e non si vede.
   Le cornici seguono il tema del dispositivo, non quello del gestionale (color-scheme della cornice). */
#fcx #fcx-universo, #fcx #fcx-chat { color-scheme: light dark; }
#fcx #fcx-universo { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; margin: 0; z-index: 10040; background: #f8fbfe; }
#fcx #fcx-universo[hidden] { display: none; }
#fcx #fcx-rapportino { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; margin: 0; z-index: 10045; background: #f4f5f9; color-scheme: light; }
#fcx #fcx-rapportino[hidden] { display: none; }
:root.fcx-rapportino body { overflow: hidden; }
:root.fcx-casa #fc-universe { visibility: hidden; }
:root.fcx-casa body { overflow: hidden; }

/* negli strumenti: i pulsanti sempre a portata, in basso a destra sopra la barra del gestionale */
#fcx #fcx-dock { position: fixed; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); z-index: 10050;
                 display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin: 0; padding: 0; }
#fcx #fcx-dock[hidden] { display: none; }
#fcx #fcx-dock button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
                        background: var(--fcx-carta); color: var(--fcx-ink); border: 1px solid var(--fcx-bordo); box-shadow: var(--fcx-ombra);
                        font-size: 15px; font-weight: 500; line-height: 1; transition: background-color .15s ease-out; }
#fcx #fcx-dock button svg { width: 20px; height: 20px; flex: none; }
#fcx #fcx-dock button.fcx-claude { height: 48px; padding: 0 20px 0 16px; background: var(--fcx-blu); color: #fff; border-color: transparent; font-size: 15px; font-weight: 600; }
:root[data-fcx-tema="notte"] #fcx #fcx-dock button.fcx-claude { color: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-fcx-tema]):not([data-fc-theme="light"]) #fcx #fcx-dock button.fcx-claude { color: #000; } }
:root.fcx-claude-aperto #fcx #fcx-dock { display: none; }

/* pannello di Claude: a destra sul computer, a tutto schermo sul telefono */
#fcx #fcx-pannello { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); height: 100%; z-index: 10060; margin: 0;
                     display: flex; flex-direction: column; background: var(--fcx-fondo); color: var(--fcx-ink);
                     border-left: 1px solid var(--fcx-bordo); box-shadow: var(--fcx-ombra); }
#fcx #fcx-pannello[hidden] { display: none; }
#fcx #fcx-pannello header { display: flex; align-items: center; gap: 8px; margin: 0; flex: none;
                            padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 8px 14px; background: var(--fcx-barra); border-bottom: 1px solid var(--fcx-bordo);
                            backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
#fcx #fcx-pannello .fcx-titolo { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; color: var(--fcx-blu); white-space: nowrap; }
#fcx #fcx-pannello .fcx-titolo b { color: var(--fcx-ink); font-weight: 700; }
#fcx #fcx-pannello .fcx-titolo svg { width: 20px; height: 20px; }
#fcx #fcx-pannello .fcx-schede { margin-left: auto; display: inline-flex; gap: 2px; background: var(--fcx-chip); border-radius: 10px; padding: 3px; min-width: 0; }
#fcx #fcx-pannello .fcx-schede:empty { display: none; }
#fcx #fcx-pannello .fcx-schede button[hidden] { display: none; }
@media (max-width: 420px) { #fcx #fcx-pannello .fcx-schede button { padding: 6px 8px; } } /* versione 32: quattro schede anche a 390 px */
#fcx #fcx-pannello .fcx-schede button { padding: 6px 11px; border-radius: 7px; font-size: 13px; font-weight: 500; line-height: 1.1; color: var(--fcx-ink); white-space: nowrap; }
#fcx #fcx-pannello .fcx-schede button[aria-pressed="true"] { background: var(--fcx-carta); color: var(--fcx-ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
#fcx #fcx-pannello .fcx-chiudi { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--fcx-chip); color: var(--fcx-ink);
                                 display: inline-flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; }
#fcx #fcx-pannello .fcx-schede:empty + .fcx-chiudi { margin-left: auto; }
#fcx #fcx-chat { flex: 1; width: 100%; min-height: 0; border: 0; margin: 0; display: block; background: var(--fcx-fondo); }
@media (max-width: 760px) {
  #fcx #fcx-pannello { width: 100vw; border-left: 0; box-shadow: none; }
  #fcx #fcx-pannello .fcx-titolo b { display: none; } /* sul telefono resta la stella di Claude: le schede hanno lo spazio */
  #fcx #fcx-pannello .fcx-schede button { padding: 7px 10px; }
  :root.fcx-claude-aperto body { overflow: hidden; }
  #fcx #fcx-dock { right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); }
  #fcx #fcx-dock button:not(.fcx-claude) span { display: none; }
  #fcx #fcx-dock button:not(.fcx-claude) { width: 44px; padding: 0; justify-content: center; }
}
/* versione 21: «Conti» nella barra in basso solo a chi ha finance.view (la classe la mette fc-claude-universo.js) */
:root.fcx-senza-conti #fc-universe .fc-u-node[data-group="economia"] { display: none !important; }
/* versione 28: sul telefono una barra fissa in basso, uguale per titolare e tecnici (Andrea: «la navigazione da telefono è goffa»).
   Prende il posto dei pulsanti nell'angolo e della barra del gestionale; Universo, casa e Claude finiscono sopra di lei. */
#fcx #fcx-barra { display: none; }
#fcx #fcx-barra button { all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (max-width: 760px) {
  #fcx #fcx-dock { display: none !important; }
  #fcx #fcx-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10070; display: grid; grid-template-columns: repeat(6, 1fr);
                    height: calc(60px + env(safe-area-inset-bottom, 0px)); padding: 0 4px env(safe-area-inset-bottom, 0px); margin: 0;
                    background: var(--fcx-barra); border-top: 1px solid var(--fcx-bordo); box-shadow: none;
                    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
  #fcx #fcx-barra button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 60px;
                           color: var(--fcx-muted); font-size: 10.5px; font-weight: 500; line-height: 1; transition: color .15s ease-out; }
  #fcx #fcx-barra button svg { width: 24px; height: 24px; }
  #fcx #fcx-barra button[aria-current] { color: var(--fcx-blu); }
  #fcx #fcx-barra button.fcx-claude svg { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--fcx-blu); color: #fff; box-sizing: border-box; }
  #fcx #fcx-universo, #fcx #fcx-rapportino { inset: 0 0 auto 0; height: calc(100% - 60px - env(safe-area-inset-bottom, 0px)); } /* una cornice non si allunga da sola fra top e bottom */
  #fcx #fcx-pannello { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); height: auto; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (max-width: 760px) { :root[data-fcx-tema="notte"] #fcx #fcx-barra button.fcx-claude svg { color: #000; } }
@media (max-width: 760px) and (prefers-color-scheme: dark) { :root:not([data-fcx-tema]):not([data-fc-theme="light"]) #fcx #fcx-barra button.fcx-claude svg { color: #000; } }
/* versione 30: tastiera aperta sul telefono (classe messa da fc-claude-universo.js): la barra in basso lascia il posto al pannello */
:root.fcx-tastiera #fcx #fcx-barra { display: none; }
@media print { #fcx { display: none; } }

/* Andrea27/10 07:35: home unica, mai il vecchio mondo/spazio. */
@layer fc-native-visibility {
 :root[data-fc-home="universo"] #fc-universe :is(.fc-world-home-stage,.fc-space,.fc-space-switch,.fc-u-dock),
 :root[data-fc-home="universo"] #fcx #fcx-dock {display:none !important}
 :root[data-fc-home="universo"] #fcx #fcx-barra {position:fixed !important;inset:auto 0 0 !important;z-index:10070 !important;display:grid !important;grid-template-columns:repeat(5,minmax(0,1fr)) !important;box-sizing:border-box !important;height:calc(60px + env(safe-area-inset-bottom,0px)) !important;padding:0 max(8px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(8px,env(safe-area-inset-left,0px)) !important;background:var(--fcx-barra) !important;border-top:1px solid var(--fcx-bordo) !important;color:var(--fcx-muted) !important}
 :root[data-fc-home="universo"] #fcx #fcx-barra button {display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:center !important;gap:3px !important;min-width:0 !important;min-height:60px !important;font:500 11px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;color:inherit !important;background:transparent !important;border:0 !important;padding:0 !important;order:0 !important}
 :root[data-fc-home="universo"] #fcx #fcx-barra button svg {width:24px !important;height:24px !important}
 :root[data-fc-home="universo"] #fcx #fcx-barra button[aria-current] {color:var(--fcx-blu) !important}
 :root[data-fc-home="universo"] #fcx #fcx-universo {height:calc(100% - 60px - env(safe-area-inset-bottom,0px)) !important}
 :root[data-fc-home="universo"].fcx-tastiera #fcx #fcx-barra {display:none !important}
}

/* versione 33 (27/10, richiesta della sessione app): nell'app iPhone/Android (radice data-fc-app) la pagina va sotto la barra di stato.
   Fuori dall'app non cambia nulla; anche nell'app env() vale 0 dove non c'è area sicura. */
@layer fc-native-visibility {
 :root[data-fc-app] #fcx #fcx-universo, :root[data-fc-app] #fcx #fcx-rapportino {top:env(safe-area-inset-top,0px) !important;bottom:auto !important;height:calc(100% - env(safe-area-inset-top,0px)) !important}
 @media (max-width: 760px) {
  :root[data-fc-app] #fcx #fcx-universo, :root[data-fc-app] #fcx #fcx-rapportino {height:calc(100% - 60px - env(safe-area-inset-bottom,0px) - env(safe-area-inset-top,0px)) !important}
 }
 :root[data-fc-app][data-fc-home="universo"] #fcx #fcx-universo {height:calc(100% - 60px - env(safe-area-inset-bottom,0px) - env(safe-area-inset-top,0px)) !important}
 :root[data-fc-app] body.fc-universe-working .fc-u-workbar {padding-top:env(safe-area-inset-top,0px) !important;height:calc(64px + env(safe-area-inset-top,0px)) !important;min-height:calc(64px + env(safe-area-inset-top,0px)) !important}
 :root[data-fc-app] body.fc-universe-working #app-shell {padding-top:calc(64px + env(safe-area-inset-top,0px)) !important}
 :root[data-fc-app] body.fc-universe-working > .masthead {margin-top:calc(64px + env(safe-area-inset-top,0px)) !important}
 :root[data-fc-app] body.fc-universe-working .fc-u-frame-shell {top:calc(64px + env(safe-area-inset-top,0px)) !important}
 /* striscia sotto la barra di stato quando si vede l'Universo o il rapportino: fondo del tema */
 :root[data-fc-app]:has(#fcx-universo:not([hidden]), #fcx-rapportino:not([hidden]))::before {content:"";position:fixed;inset:0 0 auto 0;height:env(safe-area-inset-top,0px);z-index:10080;pointer-events:none;background:#f5f5f7}
 :root[data-fc-app][data-fcx-tema="notte"]:has(#fcx-universo:not([hidden]), #fcx-rapportino:not([hidden]))::before {background:#000}
 @media (prefers-color-scheme: dark) { :root[data-fc-app]:not([data-fcx-tema]):not([data-fc-theme="light"]):has(#fcx-universo:not([hidden]), #fcx-rapportino:not([hidden]))::before {background:#000} }
}

/* versione 35 (28/10): «Universo a fuoco» (fc-claude-fuoco.js), solo con l'interruttore fcx-fuoco. Occupa tutto lo schermo, sotto la barra
   in basso; --fcx-sotto dice al modulo quanto alzare i suoi comandi (la barra del telefono, o nessuna) */
#fcx #fcx-fuoco { position: fixed; inset: 0; z-index: 10040; background: #020308; --fcx-sotto: 0px; }
#fcx #fcx-fuoco[hidden] { display: none; }
@media (max-width: 760px) { #fcx #fcx-fuoco { --fcx-sotto: calc(60px + env(safe-area-inset-bottom, 0px)); } }
:root[data-fc-home="universo"] #fcx #fcx-fuoco { --fcx-sotto: calc(60px + env(safe-area-inset-bottom, 0px)); }
@layer fc-native-visibility {
 :root[data-fc-app] #fcx #fcx-fuoco {top:env(safe-area-inset-top,0px) !important;bottom:0 !important;height:auto !important}
 :root[data-fc-app]:has(#fcx-fuoco:not([hidden]))::before {content:"";position:fixed;inset:0 0 auto 0;height:env(safe-area-inset-top,0px);z-index:10080;pointer-events:none;background:#e8eef8}
 :root[data-fc-app][data-fcx-tema="notte"]:has(#fcx-fuoco:not([hidden]))::before {background:#020308}
 @media (prefers-color-scheme: dark) { :root[data-fc-app]:not([data-fcx-tema]):not([data-fc-theme="light"]):has(#fcx-fuoco:not([hidden]))::before {background:#020308} }
}

/* versione 36 (31/10, Andrea: «nel fare il login compare ancora la pagina con il logo con la lampadina marrone», «un badge con il logo e
   non il classico logo in trasparenza», «senza ingrandimenti rimpicciolimenti»). Pezzi comuni a tutte le pagine del gestionale. */
@layer fc-native-visibility {
 /* niente velo con la lampadina durante il caricamento o l'accesso (fc-app.css): la pagina compare direttamente */
 html:not(.fca-pronto)::before { content: none !important; background: none !important; }
 /* logo originale in trasparenza, senza riquadro bianco; di notte la sua versione notte */
 #auth-screen .auth-brand .fc-brand-original-lockup, .fc-brand-original-lockup, .fc-top-original-lockup {
   background: transparent !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
 #auth-screen .auth-brand .fc-brand-original-lockup { width: 220px !important; }
 #auth-screen .auth-brand img.fc-brand-original-complete { width: 220px !important; }
 :root[data-fc-login-theme="notte"] #auth-screen img.fc-brand-original-complete,
 :root[data-fcx-tema="notte"] .fc-brand-original-lockup img.fc-brand-original-complete { content: url("/static/fc-app-logo-notte.3493deaa7719dcdb.png"); }
 /* la scheda «App Gestionale FC» nella pagina di accesso segue il tema (di notte era color crema) */
 :root[data-fc-login-theme="notte"] #auth-screen .fca-riquadro, :root[data-fc-login-theme="notte"] .fca-riquadro {
   background: #1c1c1e !important; border-color: rgba(255,255,255,.12) !important; color: #f5f5f7 !important; }
 :root[data-fc-login-theme="notte"] .fca-riquadro .fca-pulsante { background: rgba(118,118,128,.24) !important; color: #f5f5f7 !important; border-color: transparent !important; }
 :root[data-fc-login-theme="notte"] .fca-riquadro .fca-pulsante.fca-pieno { background: #0a84ff !important; color: #fff !important; }
 :root[data-fc-login-theme="notte"] .fca-riquadro :is(p, small, span) { color: #98989d !important; }
 :root[data-fc-login-theme="notte"] .fca-riquadro :is(h2, h3, b, strong) { color: #f5f5f7 !important; }
 /* telefono: nessun ingrandimento involontario (campi a 16 px, niente zoom col doppio tocco), testo che non si gonfia ruotando */
 html { -webkit-text-size-adjust: 100% !important; text-size-adjust: 100% !important; touch-action: manipulation; }
 @media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: max(16px, 1em) !important; }
 }
}
@layer fc-native-visibility {
 #auth-form button:not([type="button"]) { background:#0a84ff !important; color:#fff !important; border-color:#0a84ff !important; }
}
/* v38 (31/10 notte): pacchetto A del riallineamento — gettoni crema/beige del tema giorno ai valori iOS */
@layer fc-native-visibility {
 :root[data-fcx-tema="giorno"], :root:not([data-fcx-tema]):not([data-fc-login-theme="notte"]) {
  --bg: #f2f2f7 !important; --fc-bg: #f2f2f7 !important;
  --panel: #ffffff !important; --card: #ffffff !important; --nav: #ffffff !important; --fc-surface: #ffffff !important;
  --fc-soft: #e5e5ea !important; --fc-primary-ink: #ffffff !important;
  --muted: #6c6c70 !important; --fc-muted: #6c6c70 !important; --fc-gui-muted: #6c6c70 !important;
 }
}
@layer fc-native-visibility {
 :is(:root[data-fcx-tema="giorno"], :root:not([data-fcx-tema]):not([data-fc-login-theme="notte"])) :is(.registry-card, .registry-hero, .registry-tools, .topbar, .sidebar .brand) { background-color: #ffffff !important; }
}
/* v39 (31/10 notte): pacchetto D — niente testo sotto i 12px nelle viste interne, scala iOS (didascalia 12, nota 13, valori 15) */
@layer fc-native-visibility {
 #registry .registry-card > header span, #registry .registry-card > header b { font-size: 12px !important; }
 #registry .registry-card > div small { font-size: 12px !important; }
 #registry .registry-card > div b { font-size: 15px !important; }
 #registry .registry-card > footer :is(span, em, a, button) { font-size: 13px !important; }
 #warehouse .warehouse-brand :is(small, em) { font-size: 12px !important; line-height: 1.3 !important; }
 #warehouse .warehouse-brand b { font-size: 15px !important; }
 #warehouse .warehouse-brand > strong { font-size: 13px !important; }
 #warehouse .warehouse-material-copy :is(span, small) { font-size: 12px !important; }
 #warehouse .warehouse-material-numbers span { font-size: 11px !important; }
 #warehouse .warehouse-material-numbers b { font-size: 13px !important; }
 #warehouse .warehouse-material-card > i { font-size: 13px !important; }
 #calendar :is(.day .event, .fc-cal-day span, .fc-cal-event .text-action, .cal-head) { font-size: 12px !important; }
 #dashboard .deadline-row > div { font-size: 12px !important; }
 #imports :is(.module-code, .module-index, .job-count b) { font-size: 12px !important; }
}
@layer fc-native-visibility {
 #dashboard .deadline-row :is(.t, .m, .d, .a), #dashboard .kpis .kpi > span, #dashboard .dashboard-context span { font-size: 12px !important; }
 #imports .import-module-card :is(span, b, code) { font-size: 12px !important; }
 #jobs .cards .job > a.text-action { font-size: 13px !important; }
 #warehouse article > :is(mark, em, span, b, small) { font-size: 12px !important; }
}
/* v40 (31/10 notte): pacchetto G — pulsanti di fc-ios nelle viste principali (Commesse, Anagrafiche, Magazzino, Calendario) */
@layer fc-native-visibility {
 :root { --fcg-blu: #007aff; --fcg-tinta: rgba(0, 122, 255, .12); --fcg-scheda: #ffffff; --fcg-premuto: rgba(0, 122, 255, .2); }
 :root[data-fcx-tema="notte"] { --fcg-blu: #0a84ff; --fcg-tinta: rgba(10, 132, 255, .2); --fcg-scheda: #1c1c1e; --fcg-premuto: rgba(10, 132, 255, .3); }
 :is(#jobs, #registry, #warehouse, #calendar) :is(button.ghost, button.text-action, a.ghost),
 #registry .registry-card > footer button {
  border-radius: 18px !important; border: 0 !important; background: var(--fcg-tinta) !important; color: var(--fcg-blu) !important;
  min-height: 36px !important; padding: 0 14px !important; font-weight: 500 !important; box-shadow: none !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important; text-decoration: none !important;
  transition: transform .18s cubic-bezier(.32,.72,0,1), background .18s !important; }
 :is(#jobs, #registry, #warehouse, #calendar) :is(button.ghost, button.text-action, a.ghost):active,
 #registry .registry-card > footer button:active { transform: scale(.96); background: var(--fcg-premuto) !important; }
 :is(#jobs, #registry, #warehouse, #calendar) :is(button.ghost, button.text-action):disabled { opacity: .35 !important; }
 :is(#jobs, #registry, #warehouse, #calendar) a.text-action { color: var(--fcg-blu) !important; }
 #warehouse :is(.warehouse-brand, .warehouse-material-card, .warehouse-catalog-partition), #calendar .fc-cal-day {
  border-radius: 16px !important; background: var(--fcg-scheda) !important; border: 0 !important; }
 #warehouse .warehouse-brand.active, #calendar .fc-cal-day[aria-pressed="true"], #calendar .fc-cal-day.selected { box-shadow: inset 0 0 0 2px var(--fcg-blu) !important; }
 :is(#jobs, #registry, #warehouse, #calendar) select { border-radius: 12px !important; }
}
@layer fc-native-visibility {
 #registry .registry-hero button:not([class]) { border-radius: 18px !important; border: 0 !important; min-height: 44px !important;
  background: rgba(120, 120, 128, .16) !important; color: inherit !important; font-weight: 600 !important; }
}
/* v41 (01/11 notte): pacchetto H — interruttori, ricerca, gruppi apribili, notte del Calendario */
@layer fc-native-visibility {
 :is(#bank .fc-bank-check, #settings .switchrow) input[type="checkbox"] {
  -webkit-appearance: none !important; appearance: none !important; flex: none; width: 51px !important; height: 31px !important; margin: 0 !important;
  border-radius: 999px !important; border: 0 !important; background: rgba(120, 120, 128, .16) !important; position: relative; cursor: pointer;
  transition: background .25s !important; vertical-align: middle; }
 :is(#bank .fc-bank-check, #settings .switchrow) input[type="checkbox"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px;
  border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 3px 1px rgba(0,0,0,.06); transition: transform .3s cubic-bezier(.32,.72,0,1); }
 :is(#bank .fc-bank-check, #settings .switchrow) input[type="checkbox"]:checked { background: #34c759 !important; }
 :is(#bank .fc-bank-check, #settings .switchrow) input[type="checkbox"]:checked::after { transform: translateX(20px); }
 #app-shell .view input[type="search"] { min-height: 36px !important; border-radius: 10px !important; border: 0 !important;
  background: rgba(118, 118, 128, .12) !important; padding: 0 12px !important; font-size: 17px !important; box-shadow: none !important; }
 #warehouse details { border-radius: 20px !important; border: 0 !important; background: var(--fcg-scheda) !important; overflow: hidden; margin: 0 0 12px !important; }
 #warehouse details > summary { padding: 14px 16px !important; cursor: pointer; }
 :is(:root[data-fcx-tema="notte"], :root[data-fc-theme="dark"]) #app-shell .view input[type="search"] { background: rgba(118, 118, 128, .24) !important; color: #fff !important; }
 :is(:root[data-fcx-tema="notte"], :root[data-fc-theme="dark"]) :is(#bank .fc-bank-check, #settings .switchrow) input[type="checkbox"]:not(:checked) { background: rgba(120, 120, 128, .36) !important; }
 :is(:root[data-fcx-tema="notte"], :root[data-fc-theme="dark"]) #calendar :is(.fc-cal-agenda, .calendar, .day) { background: #1c1c1e !important; color: rgba(235, 235, 245, .92) !important; }
 :is(:root[data-fcx-tema="notte"], :root[data-fc-theme="dark"]) #calendar :is(.fc-cal-agenda, .calendar) :is(div, span, b, strong, p, small, h3, h4, time) { color: rgba(235, 235, 245, .92) !important; }
 :is(:root[data-fcx-tema="notte"], :root[data-fc-theme="dark"]) #calendar .event.finance { background: rgba(48, 209, 88, .2) !important; }
 :is(:root[data-fcx-tema="notte"], :root[data-fc-theme="dark"]) #calendar .event.work { background: rgba(10, 132, 255, .22) !important; }
 :is(:root[data-fcx-tema="notte"], :root[data-fc-theme="dark"]) #calendar .event.people { background: rgba(191, 90, 242, .22) !important; }
 :is(:root[data-fcx-tema="notte"], :root[data-fc-theme="dark"]) #calendar .event.compliance { background: rgba(255, 159, 10, .22) !important; }
 :is(:root[data-fcx-tema="notte"], :root[data-fc-theme="dark"]) #registry .registry-evidence-panel { background: #1c1c1e !important; color: rgba(235, 235, 245, .92) !important; }
}

/* v43 · cerchio dell'account in alto a destra (telefono): apre «La mia area»; sopra Universo e testata, sotto Rapportino e pannello */
#fcx #fcx-io { display: none; }
@media (max-width: 760px) {
  #fcx #fcx-io { all: unset; box-sizing: border-box; position: fixed; z-index: 10041; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 13px);
                 width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
                 background: linear-gradient(180deg, #a1a1a6, #8e8e93); color: #fff; font: 600 15px/1 -apple-system, system-ui, sans-serif;
                 box-shadow: 0 1px 3px rgba(0, 0, 0, .18); -webkit-tap-highlight-color: transparent; }
  #fcx #fcx-io:active { transform: scale(.94); }
  #fcx #fcx-io:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; }
}
/* il posto del cerchio nella testata delle viste: nello strato che vince sugli altri fogli */
@layer fc-native-visibility { @media (max-width: 760px) { body.fc-universe-working .fc-u-workbar { padding-right: 54px !important; } } }

/* v44 · ultimi testi sotto i 12 px in Importazioni (51, da 7-10 px) e Magazzino (15): portati al minimo leggibile di iOS */
@layer fc-native-visibility {
  #imports :is(.activity-log-head > span, .archive-console span, .current-file > :is(span,strong), .import-hero-stats span,
               .import-process :is(b,strong), .import-safety > span, .import-section-title span, .info :is(b,span),
               .job-history-row > span, .job-main > :is(b,em), .job-metrics span, .live-panel-head > span, .panel-title span,
               .progress-orbit span, .success :is(b,span)) { font-size: 12px !important; }
  #warehouse :is(.panel-title span, .warehouse-cable-family-tools > b, .warehouse-catalog-head span, .warehouse-empty > span,
                 .warehouse-hero-actions > span, .warehouse-hero span, .warehouse-issue-tools > span, .warehouse-order-reference-guide :is(b,strong),
                 .warehouse-order-reference-tools > b) { font-size: 12px !important; }
}

/* v45 · caratteri come iOS: il link di Controllo di gestione in Inter passa al font di sistema; i codici in SF Mono */
@layer fc-native-visibility {
  #management .fc-management-action, #management .fc-management-action * { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif !important; }
  #app-shell .view :is(code, kbd, samp) { font-family: ui-monospace, "SF Mono", Menlo, monospace !important; }
}

/* v46 · niente lampadina marrone (Andrea 31/10 13:30 e 01/11 12:25): col tema notte un vecchio foglio (fc-principal-ios) invertiva il logo
   originale (invert+hue-rotate: il giallo diventava marrone) sul fondo bluette della home che si vede dopo il login, prima dell'Universo.
   Logo originale senza filtri; di notte la versione notte dello stesso logo (fc-app-logo-notte, scritte chiare); fondo nero come iOS. */
@layer fc-native-visibility {
  :root[data-fc-theme] .fc-ios-original-brand, :root[data-fc-theme] .fc-brand-original-complete { filter: none !important; }
  :root[data-fc-theme="dark"] #fc-universe .fc-ios-original-brand { content: url("/static/fc-app-logo-notte.3493deaa7719dcdb.png") !important; }
  :root[data-fc-theme] body:not(.fc-universe-working) > #fc-universe { background-color: #f2f2f7 !important; }
  :root[data-fc-theme="dark"] body:not(.fc-universe-working) > #fc-universe { background-color: #000 !important; }
}

/* v47 · pagina di accesso: il logo segue il tema del dispositivo (data-fc-login-theme), come il fondo. Se l'app ricordava «notte»
   (data-fcx-tema) con il dispositivo in chiaro, usciva il logo notte (slogan bianco) sul fondo chiaro: di giorno il logo originale diurno. */
@layer fc-native-visibility {
  :root:not([data-fc-login-theme="notte"]) #auth-screen img.fc-brand-original-complete { content: normal !important; }
}

/* v48 · Carriera, home dei dipendenti: cornice come il Rapportino, sopra l'Universo e sotto la barra */
#fcx #fcx-carriera, #fcx #fcx-pagina { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; margin: 0; z-index: 10044; background: #f2f2f7; }
:root[data-fcx-tema="notte"] #fcx #fcx-carriera, :root[data-fcx-tema="notte"] #fcx #fcx-pagina { background: #000; }
#fcx #fcx-carriera[hidden], #fcx #fcx-pagina[hidden] { display: none; }
@media (max-width: 760px) {
  #fcx #fcx-carriera, #fcx #fcx-pagina { inset: 0 0 auto 0; height: calc(100% - 60px - env(safe-area-inset-bottom, 0px)); }
  :root[data-fc-app] #fcx #fcx-carriera, :root[data-fc-app] #fcx #fcx-pagina { top: env(safe-area-inset-top, 0px) !important; height: calc(100% - 60px - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px)) !important; }
}

/* versione 50 (D21, 01/11/2026): pannelli Claude e Codex come le app. Il pannello resta disegnato anche chiuso (la chat è già pronta) e scorre dentro
   e fuori: dal basso sul telefono, da destra sul computer. Stessa curva dei fogli di iOS. */
#fcx #fcx-pannello { box-sizing: border-box; visibility: hidden; transform: translate3d(100%, 0, 0); will-change: transform;
                     transition: transform .42s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .42s, width .32s cubic-bezier(.32, .72, 0, 1); }
:root.fcx-claude-aperto #fcx #fcx-pannello { visibility: visible; transform: none; transition: transform .42s cubic-bezier(.32, .72, 0, 1), visibility 0s, width .32s cubic-bezier(.32, .72, 0, 1); }
#fcx #fcx-pannello.fcx-trascina { transition: none; }
#fcx #fcx-pannello.fcx-unica header { display: none; }
#fcx .fcx-cornici { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--fcx-fondo); }
#fcx .fcx-cornici iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; margin: 0; display: block; background: var(--fcx-fondo); color-scheme: light dark;
                           transition: transform .34s cubic-bezier(.32, .72, 0, 1), opacity .2s ease-out, visibility 0s; }
#fcx .fcx-cornici iframe[data-fuori] { visibility: hidden; opacity: 0; pointer-events: none;
                                       transition: transform .34s cubic-bezier(.32, .72, 0, 1), opacity .2s ease-out, visibility 0s linear .34s; }
#fcx .fcx-cornici iframe[data-fuori="destra"] { transform: translate3d(32%, 0, 0); }
#fcx .fcx-cornici iframe[data-fuori="sinistra"] { transform: translate3d(-32%, 0, 0); }
#fcx #fcx-velo { display: none; }
:root.fcx-esteso #fcx #fcx-pannello { width: 100vw; left: 0; bottom: 0 !important; height: 100%; z-index: 10080; border-left: 0; box-shadow: none; }
@media (max-width: 760px) {
  #fcx #fcx-pannello { transform: translate3d(0, 100%, 0); }
  :root.fcx-esteso #fcx #fcx-pannello { width: 100vw; }
  #fcx #fcx-velo { display: block; position: fixed; inset: 0; z-index: 10075; background: rgba(0, 0, 0, .42); opacity: 0; pointer-events: none; transition: opacity .42s ease-out; }
  :root.fcx-claude-aperto[data-fcx-app="1"] #fcx #fcx-velo { opacity: 1; }
  /* Claude e Codex a tutto schermo, come un'app; Area e Pannello restano sopra la barra, come una scheda.
     AN01 (11/11/2026): la barra resta sopra il pannello (z-index della shell), quindi in basso il pannello riserva la barra vera più l'area
     sicura (--fcx-barra-riserva, la stessa geometria della barra ST14) e nessun controllo della cornice finisce sotto le tab. */
  :root[data-fcx-app="1"] #fcx #fcx-pannello { z-index: 10080; bottom: 0; height: 100%; padding-bottom: var(--fcx-barra-riserva); }
  :root.fcx-claude-aperto[data-fcx-app="1"] #fcx #fcx-pannello { transition: transform .42s cubic-bezier(.32, .72, 0, 1); }  /* l'altezza segue la tastiera senza animarsi: la tastiera nativa anima già da sola */
  :root[data-fcx-app="1"] #fcx #fcx-pannello.fcx-unica { padding: env(safe-area-inset-top, 0px) 0 var(--fcx-barra-riserva); }
  /* tastiera aperta: la barra è nascosta (fcx-tastiera) e il pannello arriva alla tastiera, come prima */
  :root[data-fcx-app="1"].fcx-tastiera #fcx #fcx-pannello, :root[data-fcx-app="1"].fcx-tastiera #fcx #fcx-pannello.fcx-unica { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #fcx #fcx-pannello, :root.fcx-claude-aperto #fcx #fcx-pannello, #fcx .fcx-cornici iframe, #fcx .fcx-cornici iframe[data-fuori], #fcx #fcx-velo { transition: none; }
}

/* versione 51: sul computer la barra resta sotto la cornice, non sopra le ultime righe della pagina */
@media (min-width: 761px) {
  #fcx #fcx-carriera, #fcx #fcx-pagina { height: calc(100% - 60px); }
}

/* versione 52: entrate e uscite come un'app nativa, barra ferma; pulsante per tornare in cima o andare in fondo */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
:root[data-fcx-passo="entra"]::view-transition-old(root), :root[data-fcx-passo="entra"]::view-transition-new(root),
:root[data-fcx-passo="esce"]::view-transition-old(root), :root[data-fcx-passo="esce"]::view-transition-new(root) { animation-duration: .32s; animation-timing-function: cubic-bezier(.32, .72, 0, 1); }
:root[data-fcx-passo="entra"]::view-transition-new(root) { animation-name: fcx-vt-da-destra; }
:root[data-fcx-passo="entra"]::view-transition-old(root) { animation-name: fcx-vt-indietro; }
:root[data-fcx-passo="esce"]::view-transition-old(root) { animation-name: fcx-vt-a-destra; z-index: 1; }
:root[data-fcx-passo="esce"]::view-transition-new(root) { animation-name: fcx-vt-avanti; }
@keyframes fcx-vt-da-destra { from { transform: translateX(100%); } }
@keyframes fcx-vt-a-destra { to { transform: translateX(100%); } }
@keyframes fcx-vt-indietro { to { transform: translateX(-28%); opacity: .6; } }
@keyframes fcx-vt-avanti { from { transform: translateX(-28%); opacity: .6; } }
#fcx #fcx-barra { view-transition-name: fcx-barra; }
::view-transition-group(fcx-barra) { animation: none; z-index: 2; }
::view-transition-old(fcx-barra) { display: none; }
::view-transition-new(fcx-barra) { animation: none; }
#fcx #fcx-salta { all: unset; box-sizing: border-box; position: fixed; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); z-index: 10069; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
                  cursor: pointer; color: var(--fcx-ink, #000); background: var(--fcx-barra, rgba(249, 249, 249, .82)); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
                  box-shadow: 0 2px 12px rgba(0, 0, 0, .18); -webkit-tap-highlight-color: transparent; }
#fcx #fcx-salta[hidden] { display: none; }
#fcx #fcx-salta svg { width: 22px; height: 22px; }
#fcx #fcx-salta[data-verso="giu"] svg { transform: rotate(180deg); }

/* Versione 53: testata unica delle pagine, menu unico con ricerca (Claude design, 01/11/2026) */
#fcx #fcx-testa { position: fixed; left: 0; right: 0; top: 0; z-index: 10045; display: flex; align-items: center; gap: 4px; box-sizing: border-box; min-height: calc(46px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 60px 0 4px;
  background: var(--fcx-barra); border-bottom: .5px solid var(--fcx-bordo); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--fcx-ink); font: 15px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; view-transition-name: fcx-testa; }
#fcx #fcx-testa[hidden] { display: none; }
#fcx #fcx-testa button { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 10px 0 4px; color: var(--fcx-blu); cursor: pointer; font-size: 17px; flex: none; }
#fcx #fcx-testa button svg { width: 22px; height: 22px; }
#fcx #fcx-testa p { margin: 0; min-width: 0; display: flex; flex-direction: column; }
#fcx #fcx-testa p span { font-size: 12px; color: var(--fcx-muted); }
#fcx #fcx-testa p span:empty { display: none; }
#fcx #fcx-testa p b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; }
#fcx #fcx-pagina { top: calc(46px + env(safe-area-inset-top, 0px)) !important; height: calc(100% - 46px - env(safe-area-inset-top, 0px)) !important; bottom: auto; }
@media (max-width: 760px) { #fcx #fcx-pagina { height: calc(100% - 106px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important; } }
#fcx #fcx-menu-tasto { all: unset; box-sizing: border-box; position: fixed; left: 16px; bottom: 16px; z-index: 10046; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: 999px; cursor: pointer;
  background: var(--fcx-barra); border: .5px solid var(--fcx-bordo); box-shadow: var(--fcx-ombra); color: var(--fcx-ink); font: 600 15px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
#fcx #fcx-menu-tasto svg { width: 20px; height: 20px; }
@media (max-width: 760px) { #fcx #fcx-menu-tasto { display: none; } }
:root.fcx-claude-aperto #fcx #fcx-menu-tasto { display: none; }
#fcx #fcx-menu { width: min(480px, 100%); max-width: 100%; height: 100%; max-height: 100%; margin: 0 0 0 auto; padding: 0; border: 0; box-sizing: border-box; overflow: hidden; background: var(--fcx-fondo); color: var(--fcx-ink); font: 17px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; }
#fcx #fcx-menu[open] { display: flex; flex-direction: column; }
#fcx #fcx-menu::backdrop { background: rgba(0, 0, 0, .35); }
#fcx .fcx-menu-testa { display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px; }
#fcx #fcx-menu-q { flex: 1; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(120, 120, 128, .16); color: inherit; font: inherit; font-size: 17px; outline-offset: 0; }
#fcx .fcx-menu-testa button { all: unset; min-height: 44px; display: inline-flex; align-items: center; padding: 0 2px 0 6px; color: var(--fcx-blu); cursor: pointer; }
#fcx #fcx-menu-lista { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
#fcx #fcx-menu-lista h3 { margin: 18px 0 6px 4px; font-size: 20px; font-weight: 700; color: inherit; }
#fcx #fcx-menu-lista section > div { margin-top: 8px; border-radius: 14px; overflow: hidden; background: var(--fcx-carta); }
#fcx #fcx-menu-lista h3 + div { margin-top: 0; }
#fcx #fcx-menu-lista p { margin: 18px 4px; color: var(--fcx-muted); }
#fcx .fcx-menu-voce { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 14px; cursor: pointer; border-top: .5px solid var(--fcx-bordo); }
#fcx .fcx-menu-voce:first-child { border-top: 0; }
#fcx .fcx-menu-voce small { color: var(--fcx-muted); font-size: 14px; flex: none; }
#fcx .fcx-menu-voce:hover, #fcx .fcx-menu-voce:focus-visible { background: rgba(120, 120, 128, .12); }
:root[data-fc-home="universo"] #fcx #fcx-menu-tasto { display: none; }
:root[data-fc-home="universo"] #fcx #fcx-pagina { height: calc(100% - 106px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important; }

/* Versione 54: Oggi come Carriera, sopra la barra */
#fcx #fcx-oggi, #fcx #fcx-lavori { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; margin: 0; z-index: 10044; background: #f2f2f7; }
:root[data-fcx-tema="notte"] #fcx #fcx-oggi, :root[data-fcx-tema="notte"] #fcx #fcx-lavori { background: #000; }
#fcx #fcx-oggi[hidden], #fcx #fcx-lavori[hidden] { display: none; }
#fcx #fcx-oggi, #fcx #fcx-lavori { height: calc(100% - 60px - env(safe-area-inset-bottom, 0px)) !important; }
:root[data-fc-app] #fcx #fcx-lavori { top: env(safe-area-inset-top, 0px) !important; height: calc(100% - 60px - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px)) !important; }
:root[data-fc-app] #fcx #fcx-oggi { top: env(safe-area-inset-top, 0px) !important; height: calc(100% - 60px - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px)) !important; }
/* versione 56: dentro lo stesso strato delle regole dell'app, altrimenti quelle vincono anche sugli !important */
@layer fc-native-visibility {
/* versione 56 (Claude design, 02/11): nell'app la pagina aperta dal menu parte sotto la sua testata e arriva alla barra delle voci: la regola generale dell'app la lasciava 46px più in alto e in fondo si vedeva la pagina sotto */
@media (max-width: 760px) { :root[data-fc-app] #fcx #fcx-pagina { top: calc(46px + env(safe-area-inset-top, 0px)) !important; height: calc(100% - 106px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important; } }
/* versione 56: tastiera aperta, barra delle voci via: le cornici arrivano fino alla tastiera, così il campo le resta attaccato */
@media (max-width: 760px) {
  :root.fcx-tastiera #fcx#fcx #fcx-universo, :root.fcx-tastiera #fcx#fcx #fcx-rapportino, :root.fcx-tastiera #fcx#fcx #fcx-oggi, :root.fcx-tastiera #fcx#fcx #fcx-lavori, :root.fcx-tastiera #fcx#fcx #fcx-carriera { height: calc(100% - env(safe-area-inset-top, 0px)) !important; }
  :root.fcx-tastiera #fcx#fcx #fcx-pagina { height: calc(100% - 46px - env(safe-area-inset-top, 0px)) !important; }
}
}
/* versione 58: la pagina ha il suo titolo grande, nella testata resta solo «‹ Indietro» */
#fcx #fcx-testa.fcx-senza-titolo p { visibility: hidden; }

/* DF01 · proposta locale: aree di tocco e contrasto, 03/11/2026. */
@layer fc-native-visibility {
#strumenti, #conferme, #voce, #chi, #chiedi-apri, #chiedi-testo, button.chiedi-invia, #fcx #fcx-pannello .fcx-schede button, #fcx #fcx-pannello .fcx-chiudi, #prev-month, #next-month, #today-month, #fc-job-attachments-entry, #fc-vehicles-entry, #registry-evidence, #registry-export, #registry-import, #registry-search, #registry-type, #registry-quality, #timeline-filter, #supplier-period, #supplier-ranking-search, #dash-period, #management-year, #commercialista-refresh, #commercialista-package, #commercialista-launch, #commercialista-open-folder, #commercialista-year, #catalog-review-link, #app-shell a.ghost, #app-shell a.primary-button, #app-shell button.text-action { box-sizing:border-box !important; min-width:44px !important; min-height:44px !important; }
#app-shell :is(a.ghost, a.primary-button, #catalog-review-link) { display:inline-flex !important; align-items:center; }
@media (max-width:760px) {
 #fcx #fcx-io::after { content:""; position:absolute; inset:-5px; min-width:44px; min-height:44px; }  /* quadrato: copre anche gli angoli da 44 */
 /* Il toast appartiene alla Root, non al documento iframe. */
 :root[data-fc-home="universo"] #toast { bottom:calc(72px + env(safe-area-inset-bottom,0px)) !important; z-index:10080 !important; }
 :root[data-fc-home="universo"].fcx-tastiera #toast { bottom:12px !important; }
}
:root[data-fc-home="universo"] #fcx #fcx-barra button[aria-current] { color:#005bbb !important; }
:root[data-fc-home="universo"]:is([data-tema="notte"], [data-fcx-tema="notte"], [data-fc-theme="dark"]) #fcx #fcx-barra button[aria-current] { color:#70b7ff !important; }
@media(prefers-color-scheme:dark) { :root[data-fc-home="universo"]:not([data-fcx-tema]):not([data-fc-theme="light"]):not([data-fc-theme]):not([data-tema="giorno"]) #fcx #fcx-barra button[aria-current] { color:#70b7ff !important; } }
#app-shell :is(a.ghost, #catalog-review-link) { background:#fff !important; color:#005bbb !important; }
:is(#invoice-pipeline-state, #mail-attachment-count, #automation-pulse-summary, #job-proposal-count) { background:#eef2f7 !important; color:#30343b !important; }

}


/* DF02: precedenza locale sui residui Anagrafiche di DF01. */
@layer fc-native-visibility {
#app-shell #registry #registry-search,
#app-shell #registry #registry-type,
#app-shell #registry #registry-quality,
#app-shell #registry #registry-export,
#app-shell #registry #registry-import {
  box-sizing: border-box !important;
  min-width: 44px !important;
  min-height: 44px !important;
}
}

/* DF03 · sola proposta: residui del collaudo. */
@layer fc-native-visibility {
:root #app-shell #prev-month, :root #app-shell #next-month, :root #app-shell #today-month, :root #app-shell #job-document-chain-load { box-sizing:border-box !important; min-width:44px !important; min-height:44px !important; }
:root:root #app-shell #prev-month, :root:root #app-shell #next-month, :root:root #app-shell #today-month, :root:root #app-shell #job-document-chain-load, :root:root #app-shell #registry-evidence, :root:root #app-shell #registry-export, :root:root #app-shell #registry-import, :root:root #app-shell #warehouse-report-xlsx, :root:root #app-shell #warehouse-report-pdf, :root:root #app-shell #warehouse-refresh, :root:root #app-shell #warehouse-pricing, :root:root #app-shell #warehouse-rebuild, :root:root #fcx #fcx-testa button { color:#0058b8 !important; }
:root:root[data-tema="notte"] #app-shell #prev-month, :root:root[data-tema="notte"] #app-shell #next-month, :root:root[data-tema="notte"] #app-shell #today-month, :root:root[data-tema="notte"] #app-shell #job-document-chain-load, :root:root[data-tema="notte"] #app-shell #registry-evidence, :root:root[data-tema="notte"] #app-shell #registry-export, :root:root[data-tema="notte"] #app-shell #registry-import, :root:root[data-tema="notte"] #app-shell #warehouse-report-xlsx, :root:root[data-tema="notte"] #app-shell #warehouse-report-pdf, :root:root[data-tema="notte"] #app-shell #warehouse-refresh, :root:root[data-tema="notte"] #app-shell #warehouse-pricing, :root:root[data-tema="notte"] #app-shell #warehouse-rebuild, :root:root[data-tema="notte"] #fcx #fcx-testa button { color:#70b7ff !important; }
:root:root[data-fc-theme="dark"] #app-shell #prev-month, :root:root[data-fc-theme="dark"] #app-shell #next-month, :root:root[data-fc-theme="dark"] #app-shell #today-month, :root:root[data-fc-theme="dark"] #app-shell #job-document-chain-load, :root:root[data-fc-theme="dark"] #app-shell #registry-evidence, :root:root[data-fc-theme="dark"] #app-shell #registry-export, :root:root[data-fc-theme="dark"] #app-shell #registry-import, :root:root[data-fc-theme="dark"] #app-shell #warehouse-report-xlsx, :root:root[data-fc-theme="dark"] #app-shell #warehouse-report-pdf, :root:root[data-fc-theme="dark"] #app-shell #warehouse-refresh, :root:root[data-fc-theme="dark"] #app-shell #warehouse-pricing, :root:root[data-fc-theme="dark"] #app-shell #warehouse-rebuild, :root:root[data-fc-theme="dark"] #fcx #fcx-testa button { color:#70b7ff !important; }
:root:root[data-fcx-tema="notte"] #app-shell #prev-month, :root:root[data-fcx-tema="notte"] #app-shell #next-month, :root:root[data-fcx-tema="notte"] #app-shell #today-month, :root:root[data-fcx-tema="notte"] #app-shell #job-document-chain-load, :root:root[data-fcx-tema="notte"] #app-shell #registry-evidence, :root:root[data-fcx-tema="notte"] #app-shell #registry-export, :root:root[data-fcx-tema="notte"] #app-shell #registry-import, :root:root[data-fcx-tema="notte"] #app-shell #warehouse-report-xlsx, :root:root[data-fcx-tema="notte"] #app-shell #warehouse-report-pdf, :root:root[data-fcx-tema="notte"] #app-shell #warehouse-refresh, :root:root[data-fcx-tema="notte"] #app-shell #warehouse-pricing, :root:root[data-fcx-tema="notte"] #app-shell #warehouse-rebuild, :root:root[data-fcx-tema="notte"] #fcx #fcx-testa button { color:#70b7ff !important; }
@media(prefers-color-scheme:dark) {
:root:root:not([data-tema="giorno"]):not([data-fc-theme="light"]):not([data-fcx-tema="giorno"]) #app-shell #prev-month, :root:root:not([data-tema="giorno"]):not([data-fc-theme="light"]):not([data-fcx-tema="giorno"]) #app-shell #next-month, :root:root:not([data-tema="giorno"]):not([data-fc-theme="light"]):not([data-fcx-tema="giorno"]) #app-shell #today-month, :root:root:not([data-tema="giorno"]):not([data-fc-theme="light"]):not([data-fcx-tema="giorno"]) #app-shell #job-document-chain-load, :root:root:not([data-tema="giorno"]):not([data-fc-theme="light"]):not([data-fcx-tema="giorno"]) #app-shell #registry-evidence, :root:root:not([data-tema="giorno"]):not([data-fc-theme="light"]):not([data-fcx-tema="giorno"]) #app-shell #registry-export, :root:root:not([data-tema="giorno"]):not([data-fc-theme="light"]):not([data-fcx-tema="giorno"]) #app-shell #registry-import, :root:root:not([data-tema="giorno"]):not([data-fc-theme="light"]):not([data-fcx-tema="giorno"]) #app-shell #warehouse-report-xlsx, :root:root:not([data-tema="giorno"]):not([data-fc-theme="light"]):not([data-fcx-tema="giorno"]) #app-shell #warehouse-report-pdf, :root:root:not([data-tema="giorno"]):not([data-fc-theme="light"]):not([data-fcx-tema="giorno"]) #app-shell #warehouse-refresh, :root:root:not([data-tema="giorno"]):not([data-fc-theme="light"]):not([data-fcx-tema="giorno"]) #app-shell #warehouse-pricing, :root:root:not([data-tema="giorno"]):not([data-fc-theme="light"]):not([data-fcx-tema="giorno"]) #app-shell #warehouse-rebuild, :root:root:not([data-tema="giorno"]):not([data-fc-theme="light"]):not([data-fcx-tema="giorno"]) #fcx #fcx-testa button { color:#70b7ff !important; }
}
}

/* DF04 · proposta additiva, nessuna logica. */
@layer fc-native-visibility {
:root #app-shell #registry-type,
:root #app-shell #registry-quality,
:root #app-shell #warehouse-report-xlsx,
:root #app-shell #warehouse-report-pdf,
:root #app-shell #warehouse-refresh,
:root #app-shell #warehouse-pricing,
:root #app-shell #warehouse-rebuild,
:root #app-shell #timeline-filter,
:root #app-shell #supplier-period,
:root #app-shell #supplier-ranking-search,
:root #app-shell #dash-period,
:root #app-shell #cash-period,
:root #app-shell #management-year { box-sizing:border-box !important; min-width:44px !important; min-height:44px !important; height:auto !important; }
:root #app-shell #registry-type, :root #app-shell #registry-quality, :root #app-shell #timeline-filter, :root #app-shell #supplier-period, :root #app-shell #dash-period, :root #app-shell #cash-period, :root #app-shell #management-year { height:44px !important; }
:root:root #app-shell #jobs button.text-action { color:#0058b8 !important; }
:root:root[data-tema="notte"] #app-shell #jobs button.text-action { color:#70b7ff !important; }
:root:root[data-fc-theme="dark"] #app-shell #jobs button.text-action { color:#70b7ff !important; }
@media(prefers-color-scheme:dark) {
:root:root:not([data-tema="giorno"]):not([data-fc-theme="light"]):not([data-fcx-tema="giorno"]) #app-shell #jobs button.text-action { color:#70b7ff !important; }
}
:root #app-shell #fc-effects-state > p { color:#ffe4ad !important; }
}

/* versione 67 (03/11, Assistenza live): lo squillo montato dalla Root sta sopra cornici, barra e pannelli */
@layer fc-native-visibility {
:root #fc-assistenza[data-modo="globale"] .as-squillo { z-index: 10100 !important; }
}

/* versione 68 (03/11, collaudo dopo DF04): l'avviso del Gemello sta fuori da #app-shell; Rispondi e Rifiuta dello squillo a 44 */
@layer fc-native-visibility {
:root #fc-effects-state > p { color: #ffe4ad !important; }
:root #fc-assistenza[data-modo="globale"] .as-riga :is(.as-si, .as-no) { box-sizing: border-box !important; min-height: 44px !important; }
}

/* DF05 · sole misure, contratto classi invariato. */
@layer fc-native-visibility {
:root #app-shell #commercialista-year { box-sizing:border-box !important; min-width:44px !important; min-height:44px !important; height:auto !important; }
:root #app-shell #commercialista-year { height:44px !important; }
}

/* AN01 (11/11/2026): geometria della barra in basso, letta dalla barra ST14 qui sotto e dalla riserva del pannello di Chat e Codex (v50).
   La cima della barra sta a capsula + distacco + area sicura dal fondo dello schermo: il pannello riserva proprio quella. */
#fcx { --fcx-barra-capsula: 52px; --fcx-barra-distacco: 8px;
       --fcx-barra-riserva: calc(var(--fcx-barra-capsula) + var(--fcx-barra-distacco) + env(safe-area-inset-bottom, 0px)); }
/* AN01b (11/11/2026): il tocco che chiude la tastiera (Invia, Ferma, «+» di Chat e Codex) arriva sulla geometria di quando era aperta.
   Al focusout la shell toglie subito fcx-tastiera: la riserva della barra e la barra tornano insieme dopo 300 ms (transition di 0 s con ritardo);
   quando la tastiera si apre la riserva va a 0 subito. Il ritardo sta su un numero registrato del pannello (--fcx-barra-su, 0 o 1): non scatta
   all'apertura del pannello e non riparte se l'area sicura cambia mentre la tastiera scende. Non su #fcx: lì fc-appearance impone transition-property. */
@property --fcx-barra-su { syntax: '<number>'; inherits: true; initial-value: 1; }
@media (max-width: 760px) {
  :root[data-fcx-app="1"] #fcx #fcx-pannello { --fcx-barra-su: 1;
    --fcx-barra-riserva: calc((var(--fcx-barra-capsula) + var(--fcx-barra-distacco) + env(safe-area-inset-bottom, 0px)) * var(--fcx-barra-su)); }
  :root[data-fcx-app="1"].fcx-tastiera #fcx #fcx-pannello { --fcx-barra-su: 0; }
  :root.fcx-claude-aperto[data-fcx-app="1"]:not(.fcx-tastiera) #fcx #fcx-pannello:not(.fcx-trascina) { transition: transform .42s cubic-bezier(.32, .72, 0, 1), --fcx-barra-su 0s .3s; }
  :root[data-fcx-app="1"]:not(.fcx-tastiera) #fcx #fcx-barra { transition: visibility 0s .3s; }
  @starting-style { :root[data-fcx-app="1"]:not(.fcx-tastiera) #fcx #fcx-barra { visibility: hidden; } }
}

/* ST14 · aggiungere DOPO il CSS Universo. Solo barra e discendenti.
   52px capsula + 8px distacco + safe-area = riferimento invariato 60px + safe-area.
   ID ripetuto: supera gli !important legacy nello stesso layer senza toccare DF. */
@layer fc-native-visibility {
:root[data-fc-home="universo"] #fcx #fcx-barra#fcx-barra {
 --st14-vetro:rgba(255,255,255,.30); --st14-riflesso:rgba(255,255,255,.95);
 --st14-ombra:0 12px 38px rgba(20,28,55,.16),inset 0 1px 0 rgba(255,255,255,.65);
 --st14-opaco:#ffffff; --st14-testo:#000000;
 inset:auto max(16px,env(safe-area-inset-right,0px)) calc(var(--fcx-barra-distacco) + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px)) !important;
 height:var(--fcx-barra-capsula) !important; min-height:var(--fcx-barra-capsula) !important; max-width:480px !important; margin:0 auto !important;
 box-sizing:border-box !important; padding:3.5px !important; gap:4px !important;
 background:var(--st14-vetro) !important; border:.5px solid var(--st14-riflesso) !important; border-radius:32px !important;
 box-shadow:var(--st14-ombra) !important;
 -webkit-backdrop-filter:blur(40px) saturate(200%) !important; backdrop-filter:blur(40px) saturate(200%) !important;
 color:var(--st14-testo) !important;
}
:root[data-fc-home="universo"] #fcx #fcx-barra#fcx-barra button {
 min-height:44px !important; height:44px !important; min-width:0 !important;
 background:transparent !important; box-shadow:none !important; border:0 !important; border-radius:24px !important;
 color:inherit !important; font-family:-apple-system,system-ui,sans-serif !important;
}
:root[data-fc-home="universo"] #fcx #fcx-barra#fcx-barra button[aria-current]:not([aria-current="false"]) {
 background:rgba(127,127,127,.16) !important; color:#005bbb !important;
}
:root[data-fc-home="universo"] #fcx #fcx-barra#fcx-barra button svg {
 background:transparent !important; box-shadow:none !important; color:inherit !important;
 width:24px !important; height:24px !important; padding:0 !important;
}
:root[data-fc-home="universo"] #fcx #fcx-barra#fcx-barra button:focus-visible {outline:2px solid currentColor !important;outline-offset:-2px !important}
:root[data-fc-home="universo"]:is([data-tema="notte"],[data-fcx-tema="notte"],[data-fc-theme="dark"]) #fcx #fcx-barra#fcx-barra {
 --st14-vetro:rgba(28,28,30,.30); --st14-riflesso:rgba(255,255,255,.38);
 --st14-ombra:0 16px 42px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.18); --st14-opaco:#1c1c1e; --st14-testo:#ffffff;
}
:root[data-fc-home="universo"]:is([data-tema="notte"],[data-fcx-tema="notte"],[data-fc-theme="dark"]) #fcx #fcx-barra#fcx-barra button[aria-current]:not([aria-current="false"]) {color:#70b7ff !important}
@media(prefers-color-scheme:dark) {
 :root[data-fc-home="universo"]:not([data-fcx-tema]):not([data-fc-theme="light"]):not([data-fc-theme]):not([data-tema="giorno"]) #fcx #fcx-barra#fcx-barra {
 --st14-vetro:rgba(28,28,30,.30); --st14-riflesso:rgba(255,255,255,.38); --st14-ombra:0 16px 42px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.18); --st14-opaco:#1c1c1e; --st14-testo:#ffffff;
 }
 :root[data-fc-home="universo"]:not([data-fcx-tema]):not([data-fc-theme="light"]):not([data-fc-theme]):not([data-tema="giorno"]) #fcx #fcx-barra#fcx-barra button[aria-current]:not([aria-current="false"]) {color:#70b7ff !important}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
 :root[data-fc-home="universo"] #fcx #fcx-barra#fcx-barra {background:var(--st14-opaco) !important}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) {
 :root[data-fc-home="universo"] #fcx #fcx-barra#fcx-barra {background:var(--st14-opaco) !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important}
}
}
