/* Verdex — Versione Computer / Desktop + scheda «Chiamata sospetta»
 * 0) Da 1024 px (computer): Home in un unico contenitore centrale ampio (fino a 1200 px), sviluppato in orizzontale —
 *    intestazione centrata, allerte su una fascia orizzontale, categorie su una griglia ampia da 4 schede per riga,
 *    subito sotto il riquadro di verifica e l'Esito a tutta larghezza, poi Esempio / Consigli / Archivio affiancati.
 *    Nessuna divisione della pagina in colonne affiancate (shield-desk.js).
 *    Sotto i 1024 px (smartphone e tablet) non cambia nulla: resta l'impaginazione snella di shield-compact.css.
 * 1) Stili della vecchia postazione di analisi a due colonne (classe .rx-desk), oggi non più applicata sulla Home.
 * 0c) Prima schermata compatta (da 768 px): margini e imbottiture verticali ridotti, così su un normale laptop il riquadro
 *    di verifica fino a «Verifica ora» e «Esempi gratis · Passa a PRO» è visibile senza scorrere.
 * 2) Schede «Numeri» e «Audio»: riquadro trasparente «Ti sta chiamando adesso un numero sospetto?» (shield-call.js).
 * Stessi colori dell'app: blu notte, ardesia, ambra. Caricato dopo gli altri fogli di stile.
 */

/* ===========================================================================
   2) FLUSSO RAPIDO CHIAMATE SOSPETTE (tutti gli schermi)
   =========================================================================== */
.call-fast { display: grid; gap: .6rem; min-width: 0; padding: .8rem .9rem; border: 2px solid #BFDBFE; background: #EFF6FF; border-radius: 1.1rem; color: #0F172A; }
.call-fast-head { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.call-fast-ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2.4rem; height: 2.4rem; border-radius: .8rem; background: #1E3A8A; color: #FFFFFF; font-size: 1.2rem; }
.call-fast-tw { min-width: 0; }
.call-fast-title { margin: 0; font-size: 1.06rem; font-weight: 800; line-height: 1.25; color: #172554; }
.call-fast-sub { margin: .05rem 0 0; font-size: .82rem; font-weight: 600; line-height: 1.3; color: #475569; }
.call-fast-note { display: flex; align-items: flex-start; gap: .45rem; margin: 0; padding: .55rem .7rem; border: 1.5px solid #FCD34D; background: #FFFBEB; color: #78350F; border-radius: .85rem; font-size: .88rem; line-height: 1.42; }
.call-fast-nico { flex-shrink: 0; line-height: 1.35; }
.call-fast-nbody { min-width: 0; }
.call-fast-nlbl { font-weight: 800; }
.call-fast-actions { display: grid; gap: .45rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.call-fast:not(.call-fast-audio) .call-fast-primary { grid-column: 1 / -1; }
@media (max-width: 339.98px) { .call-fast-actions { grid-template-columns: minmax(0, 1fr); } }
.call-fast-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 0; min-height: 3rem; padding: .45rem .75rem; border: 2px solid #1E3A8A; border-radius: .9rem; background: #FFFFFF; color: #1E3A8A; font-size: .95rem; font-weight: 800; line-height: 1.2; text-align: center; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.call-fast-btn:hover { background: #DBEAFE; }
.call-fast-btn:active { transform: scale(.98); }
.call-fast-btn:focus-visible, .call-fast-tips > summary:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; }
.call-fast-primary { background: #1E3A8A; color: #FFFFFF; }
.call-fast-primary:hover { background: #1E40AF; }
.call-fast-bico { flex-shrink: 0; }
.call-fast-blbl { min-width: 0; overflow-wrap: anywhere; }
.call-fast-status { margin: 0; padding: .4rem .65rem; border-radius: .75rem; background: #FFFFFF; border: 1px solid #BFDBFE; font-size: .88rem; font-weight: 700; line-height: 1.4; color: #1E3A8A; overflow-wrap: anywhere; }
.call-fast-status[hidden] { display: none; }
.call-fast-tips { min-width: 0; }
.call-fast-tips > summary { display: flex; align-items: center; gap: .4rem; min-height: 2.6rem; cursor: pointer; list-style: none; font-size: .92rem; font-weight: 800; color: #1E3A8A; }
.call-fast-tips > summary::-webkit-details-marker { display: none; }
.call-fast-chev { display: inline-block; transform: rotate(90deg); transition: transform .15s ease; }
.call-fast-tips[open] .call-fast-chev { transform: rotate(-90deg); }
.call-fast-tips-list { display: grid; gap: .3rem; margin: .1rem 0 .1rem; padding-left: 1.3rem; list-style: decimal; font-size: .9rem; font-weight: 600; line-height: 1.42; color: #1E293B; }
html.large-text .call-fast-title { font-size: 1.2rem; }
html.large-text .call-fast-note, html.large-text .call-fast-tips-list { font-size: 1rem; }
html.large-text .call-fast-btn { font-size: 1.05rem; }
html.high-contrast .call-fast, html.high-contrast .call-fast-note, html.high-contrast .call-fast-status { background: #FFFFFF; border-color: #000000; color: #000000; }
html.high-contrast .call-fast-btn { border-color: #000000; color: #000000; background: #FFFFFF; }
html.high-contrast .call-fast-primary { background: #000000; color: #FFFFFF; }
@media (prefers-reduced-motion: reduce) { .call-fast-btn, .call-fast-chev { transition: none; } .call-fast-btn:active { transform: none; } }
@media print { .call-fast { display: none !important; } }

/* Smartphone: stessa scheda, misure compatte come il resto del pannello */
@media (max-width: 639.98px) {
  .call-fast { gap: .45rem; padding: .6rem .65rem; border-width: 1.5px; border-radius: 1rem; }
  .call-fast-head { gap: .5rem; }
  .call-fast-ico { width: 1.95rem; height: 1.95rem; border-radius: .6rem; font-size: 1rem; }
  .call-fast-title { font-size: .95rem; line-height: 1.2; }
  .call-fast-sub { display: none; }
  .call-fast-note { gap: .35rem; padding: .4rem .55rem; border-radius: .75rem; font-size: .78rem; line-height: 1.35; }
  .call-fast-actions { gap: .35rem; }
  .call-fast-btn { min-height: 2.75rem; padding: .3rem .5rem; gap: .3rem; border-width: 1.5px; border-radius: .8rem; font-size: .84rem; }
  .call-fast-status { padding: .35rem .55rem; font-size: .8rem; }
  .call-fast-tips > summary { min-height: 2.5rem; font-size: .84rem; }
  .call-fast-tips-list { gap: .25rem; font-size: .8rem; line-height: 1.35; padding-left: 1.15rem; }
  html.large-text .call-fast-btn { font-size: .95rem; }
  html.large-text .call-fast-note, html.large-text .call-fast-tips-list { font-size: .9rem; }
}

/* ===========================================================================
   1) POSTAZIONE DI ANALISI SU COMPUTER (risultato a due colonne da 1280 px)
   =========================================================================== */
@media (min-width: 1280px) {
  /* Schede «Numeri» e «Audio»: campi a sinistra, percorso rapido per la chiamata sospetta a destra */
  #panel-phone:not(.hidden), #panel-audio:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 1.5rem; row-gap: 1rem; align-items: start; }
  #panel-phone > *, #panel-audio > * { grid-column: 1; margin-top: 0; margin-bottom: 0; min-width: 0; }
  #panel-phone > div:first-child, #panel-audio > div:first-child { grid-column: 1 / -1; grid-row: 1; }
  #panel-phone > .call-fast, #panel-audio > .call-fast { grid-column: 2; grid-row: 2 / 5; }
  #panel-audio > .upload-zone { grid-row: 2 / 5; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; }

  /* ---------- Risultato a due colonne ---------- */
  #result-box.rx-desk:not(.hidden), #pro-result.rx-desk:not(.hidden) { display: grid; grid-template-columns: minmax(20rem, 25rem) minmax(0, 1fr); gap: 1.25rem 1.5rem; align-items: start; padding: 1.25rem; }
  #result-box.rx-desk > *, #pro-result.rx-desk > * { margin-top: 0; margin-bottom: 0; }

  /* Colonna «Esito»: resta in vista mentre si leggono le analisi */
  .rx-desk-side { position: sticky; top: var(--desk-top, 1rem); display: grid; gap: .85rem; min-width: 0; }
  .rx-desk-side > * { margin: 0 !important; min-width: 0; }
  .rx-desk-main { display: grid; gap: 1rem; min-width: 0; }
  .rx-desk-main > * { margin: 0 !important; min-width: 0; }

  .rx-desk .rx-esito { gap: .7rem; }
  .rx-desk .rx-esito .verdict-banner { padding: .95rem 1rem; gap: .6rem .8rem; }
  .rx-desk .rx-esito .verdict-banner h3 { font-size: 1.45rem; line-height: 1.2; }
  html.large-text .rx-desk .rx-esito .verdict-banner h3 { font-size: 1.65rem; }
  .rx-desk .rx-esito .ai-prob { padding: .75rem .85rem; }
  .rx-desk .rx-esito .gauges { grid-template-columns: minmax(0, 1fr); }
  .rx-desk .rx-quick .rx-qbtn { flex: 1 1 8.5rem; min-height: 2.75rem; padding: .4rem .7rem; font-size: .88rem; }
  .rx-desk .rx-quick .rx-qbtn.rx-q-sha { flex-basis: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; letter-spacing: .01em; }

  /* Azioni sul risultato: due per riga nella colonna laterale */
  .rx-desk-side .result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .rx-desk-side .result-actions > .res-btn { min-height: 2.75rem; padding: .45rem .6rem; font-size: .9rem; border-width: 1.5px; border-radius: .85rem; }
  .rx-desk-side .result-actions > .res-btn-share { grid-column: 1 / -1; min-height: 3rem; font-size: 1rem; }
  .rx-desk-side #result-trial { flex-direction: column; align-items: stretch; }
  .rx-desk-side #result-trial .rx-trial-actions:not(.hidden) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rx-desk-side #result-trial .rx-trial-actions > button { white-space: normal; }
  .rx-desk-side .rx-disclaimer { font-size: .86rem; line-height: 1.45; padding: .6rem .8rem; }
  .rx-desk-side .pro-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .rx-desk-side .pro-actions > * { min-width: 0; }
  .rx-desk-side .pro-actions > .fam-ask { grid-column: 1 / -1; }
  .rx-desk-side .pro-disclaimer { font-size: .86rem; line-height: 1.45; }

  /* Colonna analisi: barra «console» e schede ampie */
  .rx-desk .rx-sections { gap: .75rem; }
  .rx-desk .rx-sections-h { display: flex; align-items: center; gap: .5rem; padding: .6rem .95rem; border-radius: .9rem; background: #172554; color: #FFFFFF; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; letter-spacing: .12em; }
  .rx-desk .rx-sections-h::after { content: ''; margin-left: auto; width: .6rem; height: .6rem; border-radius: 999px; background: #F59E0B; box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }
  .rx-desk[data-level="low"] .rx-sections-h::after { background: #34D399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
  .rx-desk[data-level="high"] .rx-sections-h::after { background: #F87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, .25); }
  .rx-desk .rx-sections-hint { display: none; }
  html.high-contrast .rx-desk .rx-sections-h { background: #000000; }

  .rx-desk .rx-sec.arc-box { border-radius: 1rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
  .rx-desk .rx-sec.arc-box.is-open { padding: .35rem 1.25rem 1.25rem; border-color: #BFDBFE; }
  .rx-desk .rx-sec.is-open > .arc-box-h { margin: 0 0 .85rem; padding-bottom: .35rem; border-bottom: 1px solid #E2E8F0; }
  .rx-desk .rx-sec .arc-toggle { min-height: 3rem; }
  .rx-desk .rx-sec .arc-toggle-title { font-size: 1.04rem; }
  .rx-desk .rx-sec .arc-toggle-sub { display: block; white-space: normal; font-size: .82rem; }
  .rx-desk .rx-body { gap: .9rem; }

  /* Su schermi molto larghi le schede brevi si affiancano; indizi, motore e riscontri restano a tutta larghezza */
  .rx-desk .rx-sections { grid-template-columns: minmax(0, 1fr); }

  /* Dati tecnici e forensi: testi più grandi, liste su più colonne */
  .rx-desk .ev-title { font-size: 1.12rem; }
  .rx-desk .ev-sub, .rx-desk .ev-group-hint, .rx-desk .ev-note { font-size: .84rem; }
  .rx-desk .ev-lead, .rx-desk .ev-prov-verdict { font-size: .96rem; }
  .rx-desk .ev-group-title { font-size: .95rem; }
  .rx-desk .ev-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: .5rem; }
  .rx-desk .ev-item { padding: .6rem .75rem; }
  .rx-desk .ev-item-head { font-size: .92rem; }
  .rx-desk .ev-text { font-size: .93rem; line-height: 1.5; }
  .rx-desk .ev-chip { font-size: .74rem; padding: .1rem .55rem; }
  .rx-desk .ev-weight { font-size: .82rem; }
  .rx-desk .ev-prov-cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .55rem; }
  .rx-desk .ev-prov-h { font-size: .86rem; }
  .rx-desk .ev-prov-list { font-size: .88rem; line-height: 1.5; }
  .rx-desk .ev-src, .rx-desk .si-srcs-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: .45rem; }
  .rx-desk .ev-src-top { font-size: .9rem; }
  .rx-desk .ev-src-target, .rx-desk .ev-src-detail { font-size: .82rem; }
  .rx-desk .ev-engines { font-size: .86rem; }
  .rx-desk .signal-grid .verdict-list { font-size: 1rem; }

  /* Impronta SHA-256 e codici: carattere a spaziatura fissa, interi e leggibili */
  .rx-desk .ev-fp { padding: .8rem .95rem; gap: .55rem; }
  .rx-desk .ev-fp-row { font-size: .9rem; gap: .3rem .7rem; }
  .rx-desk .ev-mono, .rx-desk .ly-fp-hash { font-size: .86rem; letter-spacing: .02em; line-height: 1.5; padding: .2rem .5rem; border-radius: .45rem; background: #F8FAFC; border: 1px solid #E2E8F0; }
  .rx-desk .consistency-fp { font-size: .9rem; }
  .rx-desk .consistency-fp code { font-size: .86rem; letter-spacing: .02em; word-break: break-all; }
  .rx-desk .ly-layers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .55rem; }
  .rx-desk .ae-scores { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: .5rem; }
  .rx-desk #result-info, .rx-desk #obs-list { font-size: .95rem; }
}

@media (min-width: 1600px) {
  /* Schede brevi affiancate: punteggio, provenienza, SHA-256 e «Cosa abbiamo controllato» */
  .rx-desk .rx-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; align-items: start; }
  .rx-desk .rx-sections > .rx-sections-h,
  .rx-desk .rx-sections > .rx-sec[data-sec="todo"],
  .rx-desk .rx-sections > .rx-sec[data-sec="data"],
  .rx-desk .rx-sections > .rx-sec[data-sec="clues"],
  .rx-desk .rx-sections > .rx-sec[data-sec="engine"],
  .rx-desk .rx-sections > .rx-sec[data-sec="online"] { grid-column: 1 / -1; }
}

@media (min-width: 1440px) {
  #result-box.rx-desk:not(.hidden), #pro-result.rx-desk:not(.hidden) { grid-template-columns: minmax(22rem, 27rem) minmax(0, 1fr); gap: 1.25rem 1.75rem; padding: 1.5rem; }
}

@media print {
  .rx-desk-side { position: static; }
}

/* ===========================================================================
   0) HOME SU COMPUTER (da 1024 px): CONTENITORE CENTRALE UNICO, SVILUPPATO IN ORIZZONTALE
   Un solo riquadro centrale ampio (fino a 75rem, cioè 1200 px, centrato), allineato alla barra superiore.
   Nessuna divisione in colonne affiancate: dall'alto verso il basso
   · l'intestazione introduttiva centrata;
   · «Allerte attive» (compresa l'allerta sulle criptovalute) su una fascia orizzontale;
   · le categorie su una griglia orizzontale ampia: 4 schede per riga con icone più grandi, «Confronta Originale vs
     Sospetto» a tutta larghezza subito sotto;
   · il riquadro di verifica (area di testo, profilo Standard / Anti-truffa / Forense, «Verifica ora») e l'eventuale
     Esito a tutta larghezza del contenitore;
   · «Prova subito con un esempio», «Consigli» e «Archivio» affiancati (quello aperto si allarga a tutta la riga).
   Sotto i 1024 px (smartphone e tablet) non cambia nulla: resta l'impaginazione a colonna singola.
   =========================================================================== */
@media (min-width: 1024px) {
  body > main.max-w-4xl { max-width: 75rem; }
  .app-header .hdr.max-w-6xl { max-width: 75rem; }

  body > main.desk-home { display: block; padding-top: 1.25rem !important; }
  body > main.desk-home > * { min-width: 0; }
  body > main.desk-home > #activation-notice.hidden { display: none; }

  /* ---------- Intestazione introduttiva centrata ---------- */
  body > main.desk-home > #quick-guide { padding: .8rem 1.5rem !important; border-radius: 1.1rem; }
  body > main.desk-home > #quick-guide .hero-instruction { text-align: center; font-size: 1.08rem; line-height: 1.4; max-width: 52rem; margin: 0 auto; }

  /* ---------- «Allerte attive»: fascia orizzontale, schede affiancate a tutta larghezza ---------- */
  body > main.desk-home > #sg-alerts { padding: .7rem .9rem .8rem; }
  body > main.desk-home > #sg-alerts .sg-alerts-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .5rem; overflow: visible; padding: .1rem 0 0; scroll-snap-type: none; }
  body > main.desk-home > #sg-alerts .sg-alerts-row > li { display: flex; min-width: 0; }
  body > main.desk-home > #sg-alerts .sg-alert { width: 100%; }

  /* ---------- Categorie: griglia orizzontale ampia, 4 schede per riga, icone più grandi ---------- */
  body > main.desk-home > #tools-nav { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: .85rem !important; scroll-margin-top: var(--desk-top, 5.5rem); }
  body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) {
    display: flex !important; flex-direction: row; align-items: center; justify-content: flex-start; text-align: left;
    gap: .9rem; grid-column: auto !important; min-width: 0; min-height: 5.25rem; padding: .9rem 1.1rem !important; border-radius: 1.2rem;
  }
  body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) .tab-text { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; min-width: 0; }
  body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) .tab-icon { width: 3.1rem !important; height: 3.1rem !important; border-radius: 1rem !important; font-size: 1.6rem !important; flex-shrink: 0; }
  body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) .tab-label { font-size: 1.12rem !important; line-height: 1.2; max-width: 100%; overflow-wrap: normal; word-break: normal; }
  body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) .tab-hint { display: block; max-width: 100%; font-size: .82rem !important; line-height: 1.3; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
  /* «Confronta Originale vs Sospetto»: a tutta larghezza, contenuto centrato su una riga */
  body > main.desk-home > #tools-nav > .tool-compare {
    grid-column: 1 / -1 !important; display: flex !important; flex-direction: row; align-items: center; justify-content: center;
    gap: .9rem; min-height: 4.1rem !important; padding: .65rem 1.25rem !important; border-radius: 1.2rem; text-align: left;
  }
  body > main.desk-home > #tools-nav > .tool-compare .tab-icon { width: 2.7rem !important; height: 2.7rem !important; border-radius: .9rem !important; font-size: 1.4rem !important; flex-shrink: 0; }
  body > main.desk-home > #tools-nav > .tool-compare .tab-text { display: flex !important; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: .75rem; row-gap: .1rem; min-width: 0; }
  body > main.desk-home > #tools-nav > .tool-compare .tab-label { font-size: 1.12rem !important; line-height: 1.25; }
  body > main.desk-home > #tools-nav > .tool-compare .tab-hint { font-size: .86rem !important; line-height: 1.3; min-width: 0; }
  body > main.desk-home > #tools-nav > .tool-compare .tab-new { align-self: center; flex-shrink: 0; }
  /* Testo grande: etichette e icone ancora più leggibili, parole lunghe («Screenshot», «Documenti») sempre intere */
  html.large-text body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) { min-height: 5.75rem; }
  html.large-text body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) .tab-label { font-size: 1.22rem !important; overflow-wrap: normal !important; word-break: normal !important; -webkit-hyphens: manual; hyphens: manual; }
  html.large-text body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) .tab-hint { font-size: .9rem !important; }
  html.large-text body > main.desk-home > #tools-nav > .tool-compare .tab-label { font-size: 1.22rem !important; }

  /* ---------- Riquadro di verifica a tutta larghezza del contenitore ----------
     Titolo e «Incolla» sulla stessa riga, area di testo ampia, poi un'unica riga con a sinistra il profilo di
     verifica (Standard · Anti-truffa · Forense) e a destra «Verifica ora» con la riga delle prove subito sotto.
     L'Esito compare sotto, sempre a tutta larghezza. */
  body > main.desk-home > #work-area {
    display: grid; grid-template-columns: minmax(min(100%, 22rem), 1fr) minmax(14rem, 26rem); grid-auto-flow: row dense;
    column-gap: 1.75rem; row-gap: .9rem; align-items: start;
    padding: 1.4rem 1.75rem 1.25rem;
  }
  body > main.desk-home > #work-area > * { grid-column: 1 / -1; order: 3; margin: 0 !important; min-width: 0; }
  body > main.desk-home > #work-area > [id^="panel-"] { order: 0; }
  body > main.desk-home > #work-area > :is(.vp-quick, .verify-bar, .trial-block) { order: 1; }
  body > main.desk-home > #work-area > .verify-msgs { order: 2; }
  body > main.desk-home > #work-area > .verify-msgs:not(:has(> :not(.hidden))) { display: none; }
  body > main.desk-home > #work-area > .vp-quick { grid-column: 1; grid-row: span 2; align-self: center; max-width: none; width: auto; margin: 0 !important; gap: .3rem; }
  body > main.desk-home > #work-area > .verify-bar { grid-column: 2; align-self: end; }
  body > main.desk-home > #work-area > .trial-block { grid-column: 2; align-self: start; margin-top: -.3rem !important; }
  /* Etichetta «Profilo di verifica» come piccola didascalia sopra i tre selettori, allineati in basso a «Verifica ora» */
  body > main.desk-home > #work-area .vp-quick-row { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
  body > main.desk-home > #work-area .vp-quick-lbl { flex: 0 0 100%; font-size: .76rem; line-height: 1.2; }
  body > main.desk-home > #work-area .vp-seg { flex: 1 1 auto; min-width: 0; max-width: 26rem; }
  body > main.desk-home > #work-area .vp-seg-btn { flex: 1 1 0; min-width: 0; padding-left: .5rem; padding-right: .5rem; }
  body > main.desk-home > #work-area .vp-gear { flex: 0 0 auto; }
  body > main.desk-home > #work-area .vp-quick-status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body > main.desk-home #btn-verify.verify-cta { width: 100%; max-width: none; min-height: 3.3rem; margin: 0; font-size: 1.12rem; }
  body > main.desk-home > #work-area .trial-line { justify-content: center; flex-wrap: wrap; row-gap: .1rem; column-gap: .35rem; font-size: .78rem; text-align: center; }
  html.desk-wide body > main.desk-home #trial-meter[data-plan="free"] #trial-upgrade::before { margin-right: .35rem; }

  /* Pannelli: titolo compatto, area di testo ampia */
  body > main.desk-home > #work-area > [id^="panel-"]:not(.hidden) > * + * { margin-top: .75rem; }
  body > main.desk-home > #work-area > [id^="panel-"] h2 { font-size: 1.35rem !important; line-height: 1.25; }
  body > main.desk-home > #work-area > [id^="panel-"] h2 + p, body > main.desk-home > #work-area > [id^="panel-"] .space-y-1\.5 > p { font-size: .98rem !important; line-height: 1.45; }
  body > main.desk-home > #work-area > [id^="panel-"] .space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: .2rem; }
  body > main.desk-home #panel-text > #input-text { height: calc(4 * 1.45em + 1.5rem + 4px); min-height: calc(3 * 1.45em + 1.5rem + 4px); padding: .8rem 1rem; font-size: 1.04rem; line-height: 1.45; border-radius: 1rem; }
  body > main.desk-home > #work-area .upload-zone { padding: .85rem 1.1rem; }
  body > main.desk-home > #work-area .upload-zone [data-ico].text-2xl { font-size: 1.3rem; line-height: 1.2; }

  /* Zone di caricamento (Foto, Documenti, Video, Screenshot): orizzontali, icona a sinistra, testi al centro,
     file scelto a destra. «Audio» resta affiancata alla scheda della chiamata sospetta. */
  body > main.desk-home > #work-area > [id^="panel-"]:not(#panel-audio):not(#panel-text) > .upload-zone,
  body > main.desk-home > #work-area > #panel-text.shot-mode > #zone-text {
    display: grid !important; grid-template-columns: auto minmax(0, 1fr) minmax(0, max-content); column-gap: 1.25rem; row-gap: .1rem;
    align-items: center; text-align: left; padding: 1rem 1.3rem !important;
  }
  body > main.desk-home > #work-area > [id^="panel-"]:not(#panel-audio) > .upload-zone > * { grid-column: 2; margin: 0 !important; min-width: 0; }
  body > main.desk-home > #work-area > [id^="panel-"]:not(#panel-audio) > .upload-zone > [data-ico]:first-child { grid-column: 1; grid-row: 1 / span 5; font-size: 2.2rem; line-height: 1; }
  body > main.desk-home > #work-area > [id^="panel-"]:not(#panel-audio) > .upload-zone > .file-chip { grid-column: 3; grid-row: 1 / span 5; justify-self: end; max-width: 18rem; }
  body > main.desk-home > #work-area > [id^="panel-"]:not(#panel-audio) > .upload-zone > :is([id^="lbl-upload"], .shot-only) { font-size: 1.08rem; line-height: 1.3; }
  body > main.desk-home > #work-area > [id^="panel-"]:not(#panel-audio) > .upload-zone > :is(.lbl-drop-hint, .file-limits, .multi-hint, #screenshot-hint) { font-size: .82rem; line-height: 1.35; }
  body > main.desk-home > #work-area > [id^="panel-"]:not(#panel-audio) > .upload-zone > input { position: absolute; }

  /* «Confronta»: colonne A e B affiancate */
  body > main.desk-home #panel-compare .cmp-col textarea { height: calc(6 * 1.5em + 1.4rem); min-height: calc(3 * 1.5em + 1.4rem); }

  /* «Numeri» e «Audio»: colonne di pari larghezza dentro il riquadro */
  body > main.desk-home #panel-phone:not(.hidden), body > main.desk-home #panel-audio:not(.hidden) { grid-template-columns: minmax(0, 1fr) minmax(19rem, 1fr); column-gap: 1.25rem; }

  /* ---------- Righe «Esempio», «Consigli», «Archivio» affiancate; quella aperta si allarga a tutta la riga ---------- */
  body > main.desk-home > #acc-rows { display: flex !important; flex-direction: row; flex-wrap: wrap; gap: .75rem .85rem; align-items: stretch; --acc-cta-w: 5.8rem; --acc-min-h: 3.6rem; }
  body > main.desk-home > #acc-rows > * { flex: 1 1 17rem; margin: 0 !important; min-width: 0; }
  body > main.desk-home > #acc-rows > :is(.is-open, details[open]) { flex-basis: 100%; order: 1; }
  /* Misure del movimento di apertura / chiusura (shield-calm.js, punto 3c): la scheda si dispone per un istante come
     aperta o come chiusa, senza mai essere disegnata così. */
  body > main.desk-home > #acc-rows > .acc-as-open { flex-basis: 100% !important; order: 1 !important; }
  body > main.desk-home > #acc-rows > .acc-as-closed { flex-basis: 17rem !important; order: 0 !important; }
  body > main.desk-home > #acc-rows > .acc-as-closed > :not(.arc-box-h):not(summary) { display: none !important; }
  body > main.desk-home > #acc-rows > .acc-as-closed .arc-toggle:is(.arc-box-h > *, summary) { border-bottom-width: 0 !important; }
  body > main.desk-home > #acc-rows > .acc-morph > :is(.arc-box-h, summary.arc-toggle),
  body > main.desk-home > #acc-rows > .acc-morph > .arc-box-h > .arc-toggle { height: auto !important; }
  body > main.desk-home > #acc-rows > #mode-guide.calm-closing .arc-toggle-chev { transform: rotate(90deg) !important; }
  /* Righe chiuse della stessa altezza, anche quando un titolo va a capo */
  body > main.desk-home > #acc-rows > :not(.is-open):not([open]) > :is(.arc-box-h, summary.arc-toggle),
  body > main.desk-home > #acc-rows > :not(.is-open):not([open]) > .arc-box-h > .arc-toggle { height: 100%; }
  body > main.desk-home > #acc-rows .arc-toggle-main > .arc-toggle-title { font-size: .98rem; line-height: 1.2; }
  body > main.desk-home > #acc-rows .arc-toggle-main > .arc-toggle-sub { display: block; font-size: .76rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body > main.desk-home > #acc-rows .arc-toggle > .arc-toggle-cta { min-height: 2.4rem; padding: .2rem .6rem; font-size: .88rem; }
  body > main.desk-home > #acc-rows > #history-section .arc-toggle > .arc-row-icon { width: 2.3rem; height: 2.3rem; border-radius: .75rem; font-size: 1.15rem; }

  /* Riga sotto «Verifica ora» sul piano gratuito: «prove rimaste · Esempi gratis · Passa a PRO» */
  html.desk-wide #trial-meter[data-plan="free"] #trial-upgrade.hidden { display: inline-flex !important; }
  html.desk-wide #trial-meter[data-plan="free"] #trial-upgrade { align-items: center; text-decoration: none; }
  html.desk-wide #trial-meter[data-plan="free"] #lbl-trial-upgrade { text-decoration: underline; text-underline-offset: 2px; }
  html.desk-wide #trial-meter[data-plan="free"] #trial-upgrade::before { content: '\00B7'; margin-right: .5rem; color: #94A3B8; font-weight: 800; text-decoration: none; display: inline-block; }
  html.high-contrast.desk-wide #trial-meter[data-plan="free"] #trial-upgrade::before { color: #000000; }
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
  /* Computer piccoli: stesse 4 schede per riga, spaziature appena più strette */
  body > main.desk-home > #tools-nav { gap: .7rem !important; }
  body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) { gap: .75rem; padding: .8rem .9rem !important; }
  body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) .tab-icon { width: 2.85rem !important; height: 2.85rem !important; font-size: 1.45rem !important; }
  body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) .tab-label { font-size: 1.06rem !important; }
  html.large-text body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) .tab-label { font-size: 1.14rem !important; }
  body > main.desk-home > #work-area { grid-template-columns: minmax(min(100%, 20rem), 1fr) minmax(12rem, 24rem); column-gap: 1.25rem; padding: 1.2rem 1.4rem 1.1rem; }
  body > main.desk-home > #work-area .trial-line { font-size: .74rem; column-gap: .3rem; }
}

/* ===========================================================================
   0b) «ACCEDI / REGISTRATI» SUL COMPUTER: riquadro pulito sopra la pagina
   Sul computer l'accesso si apre solo dal pulsante in alto a destra, come finestra leggera sopra la schermata
   operativa (che resta visibile, appena sfocata), con lo stesso stile della finestra dei piani PRO.
   Sullo smartphone resta il riquadro nativo sul blu notte della schermata d'ingresso (shield-gate.css).
   =========================================================================== */
html.form-desk:not(.gate-on):not(.high-contrast) #auth-modal {
  background-color: rgba(15, 23, 42, .45); background-image: none; color-scheme: light;
  -webkit-backdrop-filter: blur(6px) saturate(1.05); backdrop-filter: blur(6px) saturate(1.05);
}
html.form-desk:not(.gate-on) #auth-modal .auth-brand { display: none; }
html.form-desk:not(.gate-on) #auth-modal .auth-card { border-color: #E2E8F0; box-shadow: 0 24px 60px rgba(15, 23, 42, .28), 0 2px 8px rgba(15, 23, 42, .12); }
html.form-desk:not(.gate-on):not(.high-contrast) #auth-modal > .gate-lang .gate-lang-btn {
  background: #FFFFFF; border-color: #CBD5E1; color: #172554;
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
}
html.form-desk:not(.gate-on):not(.high-contrast) #auth-modal > .gate-lang .gate-lang-btn:hover,
html.form-desk:not(.gate-on):not(.high-contrast) #auth-modal > .gate-lang .gate-lang-btn[aria-expanded="true"] { background: #EFF6FF; border-color: #1E3A8A; }
html.form-desk:not(.gate-on):not(.high-contrast) #auth-modal > .gate-lang :is(.lang-current, .lang-chevron) { color: #172554; }


/* ===========================================================================
   0c) PRIMA SCHERMATA COMPATTA SU COMPUTER E LAPTOP
   All'apertura su un normale laptop (es. 1366 x 768, area visibile di circa 640-660 px) devono stare nella prima
   schermata, senza scorrere: barra superiore, intestazione, «Allerte attive», categorie, «Confronta Originale vs
   Sospetto» e l'intero riquadro di verifica fino a «Verifica ora» e alla riga «Esempi gratis · Passa a PRO».
   Stessa disposizione orizzontale di sopra: si riducono soltanto margini, imbottiture e altezze minime.
   Da 768 a 1023 px (tablet e computer stretti) solo spazi verticali più contenuti; sotto i 768 px nulla cambia.
   =========================================================================== */
@media (min-width: 1024px) {
  /* Barra superiore più bassa, stessi pulsanti */
  html body #app-header .hdr.hdr-one { min-height: 3.15rem; padding-top: .3rem; padding-bottom: .3rem; }

  /* Spazio tra un blocco e l'altro */
  body > main.desk-home { padding-top: .7rem !important; padding-bottom: 1rem !important; }
  body > main.desk-home > :not([hidden]) ~ :not([hidden]) { margin-top: .7rem; }

  /* Intestazione introduttiva */
  body > main.desk-home > #quick-guide { padding: .42rem 1.25rem !important; }
  body > main.desk-home > #quick-guide .hero-instruction { font-size: 1.02rem; line-height: 1.35; }

  /* «Allerte attive» */
  body > main.desk-home > #sg-alerts { padding: .4rem .7rem .5rem; }
  body > main.desk-home > #sg-alerts .sg-alerts-head { padding-bottom: .3rem; }
  body > main.desk-home > #sg-alerts .sg-alerts-row { gap: .45rem; padding-top: 0; grid-auto-columns: auto; }
  body > main.desk-home > #sg-alerts .sg-alert { min-height: 0; padding: .3rem .6rem !important; }
  body > main.desk-home > #sg-alerts .sg-alert-txt { gap: .05rem; }
  body > main.desk-home > #sg-alerts .sg-alert-name { font-size: .84rem; line-height: 1.18; }
  body > main.desk-home > #sg-alerts .sg-alert-meta { font-size: .72rem; line-height: 1.18; overflow-wrap: normal; }

  /* Categorie: stesse 4 schede per riga e stesse icone ben leggibili, meno vuoto sopra e sotto */
  body > main.desk-home > #tools-nav { gap: .55rem .85rem !important; }
  body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) { min-height: 3.9rem; padding: .45rem 1.1rem !important; }
  body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) .tab-icon { width: 2.8rem !important; height: 2.8rem !important; border-radius: .9rem !important; font-size: 1.5rem !important; }
  body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) .tab-text { gap: .1rem; }
  body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) .tab-hint { line-height: 1.25; }
  html.large-text body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) { min-height: 4.3rem; }
  /* «Confronta Originale vs Sospetto»: barra più bassa */
  body > main.desk-home > #tools-nav > .tool-compare { min-height: 2.9rem !important; padding: .3rem 1.25rem !important; }
  body > main.desk-home > #tools-nav > .tool-compare .tab-icon { width: 2.25rem !important; height: 2.25rem !important; border-radius: .75rem !important; font-size: 1.2rem !important; }

  /* Riquadro di verifica: stesso schema, imbottiture e area di testo più contenute */
  body > main.desk-home > #work-area { row-gap: .55rem; padding: .8rem 1.5rem .75rem; }
  body > main.desk-home > #work-area > [id^="panel-"]:not(.hidden) > * + * { margin-top: .5rem; }
  body > main.desk-home > #work-area > [id^="panel-"] h2 { font-size: 1.24rem !important; }
  body > main.desk-home > #work-area .text-head-paste { min-height: 2.35rem; padding-top: .2rem; padding-bottom: .2rem; }
  body > main.desk-home #panel-text > #input-text { height: calc(3 * 1.45em + 1.2rem + 4px); min-height: calc(2 * 1.45em + 1.2rem + 4px); padding: .6rem 1rem; }
  body > main.desk-home > #work-area .vp-quick { gap: .2rem; }
  body > main.desk-home > #work-area .vp-seg-btn { min-height: 2.35rem; padding-top: .15rem; padding-bottom: .15rem; }
  body > main.desk-home > #work-area .vp-gear { width: 2.5rem; height: 2.5rem; }
  body > main.desk-home #btn-verify.verify-cta { min-height: 2.9rem; padding-top: .5rem; padding-bottom: .5rem; }
  body > main.desk-home > #work-area > .trial-block { margin-top: -.2rem !important; }
  /* Riga «prove rimaste · Esempi gratis · Passa a PRO»: col mouse non serve l'altezza del tocco su smartphone */
  body > main.desk-home > #work-area .trial-line .tap-inline { min-height: 1.6rem; }
  body > main.desk-home > #work-area .trial-line { min-height: 1.6rem; }
}

/* Laptop con poca altezza visibile (es. 1280 x 720 o 1366 x 768 con barra dei preferiti): ancora più compatto */
@media (min-width: 1024px) and (max-height: 680px) {
  html body #app-header .hdr.hdr-one { min-height: 3.05rem; padding-top: .25rem; padding-bottom: .25rem; }
  body > main.desk-home { padding-top: .55rem !important; }
  body > main.desk-home > :not([hidden]) ~ :not([hidden]) { margin-top: .55rem; }
  body > main.desk-home > #quick-guide { padding: .3rem 1.25rem !important; }
  body > main.desk-home > #quick-guide .hero-instruction { font-size: .98rem; }
  body > main.desk-home > #sg-alerts { padding: .32rem .65rem .42rem; }
  body > main.desk-home > #sg-alerts .sg-alerts-head { padding-bottom: .22rem; }
  body > main.desk-home > #sg-alerts .sg-alert { padding: .22rem .55rem !important; }
  body > main.desk-home > #tools-nav { gap: .45rem .75rem !important; }
  body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) { min-height: 3.6rem; padding: .35rem 1rem !important; }
  body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) .tab-icon { width: 2.6rem !important; height: 2.6rem !important; font-size: 1.4rem !important; }
  body > main.desk-home > #tools-nav > .tool-compare { min-height: 2.6rem !important; padding: .2rem 1.25rem !important; }
  body > main.desk-home > #tools-nav > .tool-compare .tab-icon { width: 2.05rem !important; height: 2.05rem !important; font-size: 1.1rem !important; }
  body > main.desk-home > #work-area { row-gap: .45rem; padding: .65rem 1.4rem .6rem; }
  body > main.desk-home > #work-area > [id^="panel-"]:not(.hidden) > * + * { margin-top: .4rem; }
  body > main.desk-home > #work-area > [id^="panel-"] h2 { font-size: 1.18rem !important; }
  body > main.desk-home #panel-text > #input-text { height: calc(2.6 * 1.45em + 1rem + 4px); padding: .5rem 1rem; }
  body > main.desk-home #btn-verify.verify-cta { min-height: 2.75rem; }
}

/* Computer piccoli (1024-1279 px): colonna di «Verifica ora» un po' più ampia, così la riga
   «prove rimaste · Esempi gratis · Passa a PRO» resta su una sola riga */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  body > main.desk-home > #work-area { grid-template-columns: minmax(min(100%, 20rem), 1fr) minmax(12rem, 26.5rem); padding-left: 1.25rem; padding-right: 1.25rem; }
  body > main.desk-home > #work-area .trial-line { column-gap: .25rem; }
}
/* Altezza visibile molto ridotta (es. 1366 x 768 con barra delle applicazioni e dei preferiti, 1280 x 720) */
@media (min-width: 1024px) and (max-height: 640px) {
  body > main.desk-home > :not([hidden]) ~ :not([hidden]) { margin-top: .45rem; }
  body > main.desk-home > #tools-nav { gap: .4rem .75rem !important; }
  body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) { min-height: 3.25rem; padding: .25rem 1rem !important; }
  body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) .tab-icon { width: 2.4rem !important; height: 2.4rem !important; font-size: 1.3rem !important; border-radius: .8rem !important; }
  body > main.desk-home > #tools-nav > .tool-compare { min-height: 2.4rem !important; padding: .15rem 1.25rem !important; }
  body > main.desk-home > #tools-nav > .tool-compare .tab-icon { width: 1.9rem !important; height: 1.9rem !important; font-size: 1rem !important; }
  body > main.desk-home > #work-area { row-gap: .4rem; padding-top: .55rem; padding-bottom: .5rem; }
  body > main.desk-home #panel-text > #input-text { height: calc(2 * 1.45em + 1rem + 4px); }
  body > main.desk-home > #work-area .text-head-paste { min-height: 2.15rem; }
}

/* Tablet e computer stretti (768-1023 px): stessa impaginazione, meno spazio vuoto in verticale */
@media (min-width: 768px) and (max-width: 1023.98px) {
  body > main:not(.desk-home) { padding-top: .7rem !important; }
  body > main:not(.desk-home) > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }
  body > main:not(.desk-home) > #quick-guide { padding-top: .4rem !important; padding-bottom: .4rem !important; }
  body > main:not(.desk-home) > #sg-alerts { padding-top: .45rem; padding-bottom: .5rem; }
  body > main:not(.desk-home) > #sg-alerts .sg-alerts-head { padding-bottom: .25rem; }
  body > main:not(.desk-home) > #sg-alerts .sg-alert { min-height: 0; padding-top: .3rem; padding-bottom: .3rem; }
  body > main:not(.desk-home) > #tools-nav { gap: .5rem !important; }
  body > main:not(.desk-home) > #tools-nav > .tool-tab:not(.tool-compare) { padding-top: .45rem !important; padding-bottom: .45rem !important; }
  body > main:not(.desk-home) > #tools-nav > .tool-compare { min-height: 2.8rem !important; padding-top: .3rem !important; padding-bottom: .3rem !important; }
  body > main:not(.desk-home) > #work-area { padding: 1.1rem 1.5rem .9rem !important; }
  body > main:not(.desk-home) > #work-area > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }
  body > main:not(.desk-home) > #work-area > [id^="panel-"] > :not([hidden]) ~ :not([hidden]) { margin-top: .6rem; }
  body > main:not(.desk-home) #panel-text > #input-text { height: calc(3 * 1.5em + 1.3rem + 4px); min-height: calc(2 * 1.5em + 1.3rem + 4px); padding-top: .65rem; padding-bottom: .65rem; }
}

/* ===========================================================================
   0d) RIQUADRO «CONTROLLA UN MESSAGGIO, SMS O EMAIL» ESTESO FINO AL FONDO DELLA PRIMA SCHERMATA
   Su computer e laptop (da 768 px) l'area di testo e l'imbottitura del riquadro crescono di circa 40 px, così il
   riquadro arriva al fondo della schermata iniziale con «Verifica ora» interamente in vista e le righe «Prova
   subito con un esempio» / «Consigli per controllare» restano appena sotto la piega. La disposizione orizzontale
   non cambia. shield-reach.js rifinisce l'altezza sullo schermo reale (mai oltre la piega, mai sotto il minimo).
   =========================================================================== */
@media (min-width: 1024px) {
  body > main.desk-home > #work-area { padding-top: 1.05rem; padding-bottom: 1rem; }
  body > main.desk-home #panel-text > #input-text { height: calc(3 * 1.45em + 3.2rem + 4px); }
}
@media (min-width: 1024px) and (max-height: 680px) {
  body > main.desk-home > #work-area { padding-top: .85rem; padding-bottom: .8rem; }
  body > main.desk-home #panel-text > #input-text { height: calc(2.6 * 1.45em + 3rem + 4px); }
}
@media (min-width: 1024px) and (max-height: 640px) {
  body > main.desk-home > #work-area { padding-top: .7rem; padding-bottom: .65rem; }
  body > main.desk-home #panel-text > #input-text { height: calc(2 * 1.45em + 3rem + 4px); }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  body > main:not(.desk-home) > #work-area { padding-top: 1.3rem !important; padding-bottom: 1.1rem !important; }
  body > main:not(.desk-home) #panel-text > #input-text { height: calc(3 * 1.5em + 3.3rem + 4px); }
}

/* ---------- Allineamento esatto al margine destro: nessun riquadro sporge oltre il contenitore ---------- */
@media (min-width: 768px) {
  body > main > :is(#activation-notice, #quick-guide, #sg-alerts, #tools-nav, #work-area, #acc-rows) {
    box-sizing: border-box; width: auto; max-width: 100%; min-width: 0; margin-left: 0 !important; margin-right: 0 !important;
  }
  body > main > :is(#sg-alerts, #tools-nav, #work-area) *, body > main > :is(#sg-alerts, #tools-nav, #work-area) *::before,
  body > main > :is(#sg-alerts, #tools-nav, #work-area) *::after { box-sizing: border-box; }
  body > main > #sg-alerts .sg-alerts-row, body > main > #sg-alerts .sg-alerts-row > li, body > main > #sg-alerts .sg-alert { max-width: 100%; min-width: 0; }
  body > main > #tools-nav > .tool-tab { max-width: 100%; min-width: 0; }
  body > main > #work-area > [id^="panel-"], body > main > #work-area #input-text { max-width: 100%; min-width: 0; }
}
@media (min-width: 1024px) {
  /* Le schede delle allerte (anche con la nuova allerta sulle criptovalute) si dividono la riga senza uscirne */
  body > main.desk-home > #sg-alerts .sg-alerts-row { grid-auto-columns: minmax(0, auto); width: 100%; }
  body > main.desk-home > #sg-alerts .sg-alert-name, body > main.desk-home > #sg-alerts .sg-alert-meta { overflow-wrap: anywhere; }
  /* Categorie (anche «Documenti» e «Link / Siti»): colonne uguali che non superano mai il bordo destro */
  body > main.desk-home > #tools-nav { width: 100%; }
  body > main.desk-home > #tools-nav > .tool-tab:not(.tool-compare) .tab-text { flex: 1 1 auto; }
  body > main.desk-home > #work-area { width: 100%; }
}
