/* InsTaurus — banco di lavoro post-accesso. Solo token semantici di brand. */
@layer app {
  /* Accesso: Sabbia e' fissato sul nodo #login. La colonna calda separa il
     modulo dalla pagina; ogni testo viene definito qui, senza ereditare i
     token on-dark della vecchia porta scura. */
  #login{background:var(--bg);color:var(--ink)}
  #login .login-brand{background:var(--surface)}
  #login .login-formcol{background:var(--surface-2)}
  #login .login-form{max-width:430px;padding:32px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-1);color:var(--ink)}
  #login .login-form h3{color:var(--ink)}
  #login .login-form .sub,#login label.fld{color:var(--ink-muted)}
  #login .inp{background:var(--bg);border-color:var(--line-strong);color:var(--ink)}
  #login .inp::placeholder{color:var(--ink-muted);opacity:.76}
  #login .inp:-webkit-autofill,#login .inp:-webkit-autofill:hover,#login .inp:-webkit-autofill:focus{-webkit-text-fill-color:var(--ink);caret-color:var(--ink);-webkit-box-shadow:0 0 0 1000px var(--bg) inset}
  #login .btn{background:var(--action);color:var(--action-on)}
  #login .login-links a{color:var(--ink-muted)}
  #login .login-links a.back{color:var(--accent-text)}
  @media(max-width:860px){#login .login-formcol{padding:32px 20px 48px}#login .login-form{max-width:480px;padding:24px}}

  #sidebar{width:210px;background:var(--surface);border-right:1px solid var(--line);box-shadow:8px 0 28px -24px var(--ombra-forte)}
  .sb-logo{padding:22px 16px 18px;display:flex;align-items:center;gap:10px;text-align:left}
  .sb-logo::after{display:none}.sb-word{font-size:16px}
  .sb-logo .instaurus-mark{width:28px;height:28px;color:var(--ink)}
  .sb-word{background:none;color:var(--ink);-webkit-text-fill-color:currentColor}
  #sidebar .wordmark__taurus::first-letter{color:var(--marchio-occhio);-webkit-text-fill-color:var(--marchio-occhio)}
  .sb-section-label{padding:18px 20px 8px;color:var(--ink-muted);font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
  .nav{padding:4px 10px 16px}.nav a{min-height:54px;gap:10px;margin-bottom:3px;border-radius:var(--radius)}
  .nav a::before{top:10px;bottom:10px;width:2px}.nav a .ic{width:22px;height:22px;opacity:.72}
  .nav a .ic svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .nav-copy{display:flex;min-width:0;flex-direction:column;gap:1px}.nav-copy b{font-size:13.5px;line-height:1.2;font-weight:600}
  .nav a{color:var(--ink-muted)}.nav-copy small{color:var(--ink-muted);font-size:11px;line-height:1.2;font-weight:400}
  .nav-arrow{margin-left:auto;opacity:0;transform:translateX(-4px);transition:opacity var(--dur-1),transform var(--dur-1)}
  .nav a.active{background:var(--surface-2);color:var(--ink)}.nav a.active::before{background:var(--action)}
  .nav a.active .nav-arrow{opacity:.7;transform:none}.nav a.active .nav-copy small{color:var(--ink-muted)}
  @media(hover:hover){.nav a:hover{transform:none}.nav a:hover .ic{transform:none}.nav a:hover .nav-arrow{opacity:.7;transform:none}}
  .sb-foot{margin:0 16px 16px;padding:14px 12px;border-top:1px solid var(--line);display:flex;align-items:center;gap:10px;color:var(--ink)}
  .sb-foot>span:last-child{display:flex;flex-direction:column}.sb-foot b{font-size:12px;font-weight:600}.sb-foot small{font-size:10.5px;color:var(--ink-muted)}
  .sb-status-dot{width:8px;height:8px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 4px color-mix(in srgb,var(--ok) 18%,transparent);animation:wb-status 2.8s ease-in-out infinite}

  .topbar{min-height:72px;height:calc(72px + env(safe-area-inset-top));background:color-mix(in srgb,var(--surface) 94%,transparent);border-bottom:1px solid var(--line);box-shadow:none;color:var(--ink);backdrop-filter:blur(14px)}.top-heading{display:flex;flex-direction:column;gap:1px}
  .top-kicker{color:var(--ink-muted);font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}.top-title{font-size:18px;line-height:1.15;color:var(--ink)}
  .top-create{min-height:42px;padding:0 16px;border:1px solid var(--action);border-radius:var(--radius-sm);background:var(--action);color:var(--action-on);font:600 13px/1 var(--font-ui);cursor:pointer}
  .top-create span{font-size:18px;vertical-align:-1px;margin-right:3px}.userbadge{min-height:42px;display:flex;align-items:center;gap:9px;padding:5px 10px 5px 6px;background:var(--surface-2);border-color:var(--line);color:var(--ink)}
  .userbadge>span:last-child{display:flex;flex-direction:column;line-height:1.15}.userbadge small{color:var(--ink-muted);font-size:9.5px;text-transform:uppercase;letter-spacing:.08em}
  .user-avatar{width:30px;height:30px;border-radius:var(--radius-xs);background:var(--surface);position:relative}
  .user-avatar::before{content:"";position:absolute;width:8px;height:8px;border:1.5px solid var(--ink);border-radius:50%;left:10px;top:5px}
  .user-avatar::after{content:"";position:absolute;width:14px;height:7px;border:1.5px solid var(--ink);border-bottom:0;border-radius:8px 8px 0 0;left:7px;bottom:5px}
  .hamb{color:var(--ink)}.topbar .tiny,.topbar .logout{background:var(--surface-2);border-color:var(--line);color:var(--ink-muted)}
  @media(hover:hover){.topbar .tiny:hover,.topbar .logout:hover{background:var(--surface);border-color:var(--line-strong);color:var(--ink)}}

  .content{background:var(--bg)}.content.page-enter>.card,.content.page-enter>.dash-hero,.content.page-enter>.dash-actions,.content.page-enter>.dash-alerts,.content.page-enter>.dash-section-title,.content.page-enter>.kpis,.content.page-enter>.dash-grid{animation:wb-rise .42s var(--ease-out) both}
  .content.page-enter>.dash-actions{animation-delay:.035s}.content.page-enter>.dash-alerts{animation-delay:.07s}.content.page-enter>.kpis{animation-delay:.1s}.content.page-enter>.dash-grid{animation-delay:.14s}
  .dash-hero{min-height:148px;display:flex;flex-direction:column;justify-content:center;padding:28px 32px;margin-bottom:16px;border:1px solid var(--line);box-shadow:none}
  .dash-hero::before{opacity:.22;animation:wb-grid 18s linear infinite}.dash-hero::after{display:none}.dash-hero h1{font-size:clamp(28px,3vw,40px);font-weight:500}.dash-hero p{font-size:15px}.dash-hero .dt{margin-top:10px}
  .dash-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}
  .dash-actions button{min-height:72px;display:grid;grid-template-columns:32px 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:12px 16px;text-align:left;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);cursor:pointer;font-family:var(--font-ui);box-shadow:var(--shadow-1);transition:border-color var(--dur-1),background var(--dur-1)}
  .dash-actions button>span{grid-row:1/3;display:grid;place-items:center;width:32px;height:32px;border-radius:var(--radius-xs);background:var(--action);color:var(--action-on);font-size:18px}.dash-actions button b{align-self:end;font-size:13.5px;font-weight:600}.dash-actions button small{align-self:start;color:var(--ink-muted);font-size:11.5px}
  @media(hover:hover){.dash-actions button:hover{border-color:var(--line-strong);background:var(--surface-2)}}
  .dash-alerts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:20px}.dash-alert{min-height:60px;display:grid;grid-template-columns:32px 1fr auto;grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:10px 14px;text-align:left;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--action);border-radius:var(--radius-sm);font-family:var(--font-ui);cursor:pointer}
  .dash-alert>span{grid-row:1/3;display:grid;place-items:center;width:28px;height:28px;background:var(--action-soft);border-radius:var(--radius-xs);font-size:12px;font-weight:700}.dash-alert b{align-self:end;font-size:13px;font-weight:600}.dash-alert small{align-self:start;color:var(--ink-muted);font-size:11px}.dash-alert i{grid-column:3;grid-row:1/3;font-style:normal}.dash-alert-warn{border-left-color:var(--warn)}.dash-alert-warn>span{background:var(--warn-soft);color:var(--warn-text)}
  .dash-section-title{display:flex;align-items:baseline;justify-content:space-between;margin:0 2px 8px}.dash-section-title span{font-family:var(--font-display);font-size:18px;font-weight:600}.dash-section-title small{color:var(--ink-muted);font-size:11px}
  .kpis-main{grid-template-columns:repeat(4,1fr)}.kpis-values{grid-template-columns:repeat(3,1fr)}.kpi{min-height:92px;padding:16px;background:var(--surface);border-radius:var(--radius);box-shadow:none}.kpi::before{left:16px;right:auto;top:auto;bottom:12px;width:28px;height:2px;border-radius:0;background:var(--line-strong)}.kpi.lime::before,.kpi.dark::before{background:var(--line-strong)}.kpi.warn::before{background:var(--warn)}.kpi .num{font-size:clamp(23px,2vw,30px)}.kpi .lab{margin-top:7px;color:var(--ink-muted)}
  .dash-grid{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(480px,1.2fr);gap:16px;align-items:start}.dash-grid .card{margin:0;box-shadow:none;border-radius:var(--radius)}.dash-grid .card-h{min-height:64px}.dash-grid .card-h>span:first-child{display:flex;flex-direction:column;gap:2px}.dash-grid .card-h b{font-family:var(--font-display);font-size:16px;font-weight:600}.dash-grid .card-h small{color:var(--ink-muted);font-size:11px;font-weight:400}.dash-map{height:330px;width:100%;border-radius:0;overflow:hidden;isolation:isolate}.dash-recent table.dt th,.dash-recent table.dt td{padding-left:12px;padding-right:12px}

  /* Nova: pannello laterale da banco, mantenendo l'oro come identità esclusiva. */
  .nova-ovl#nova-ovl{justify-content:flex-end;padding:16px;background:rgba(34,30,23,.2);backdrop-filter:blur(6px)}
  .nova-surface{--shell:var(--surface);--shell-2:var(--surface-2);--shell-alto:var(--surface);--on-dark-ink:var(--ink);--on-dark-muted:var(--ink-muted);--on-dark-line:var(--line);--on-dark-soft:var(--action-soft);--on-dark-accent:var(--ink);width:min(390px,calc(100vw - 32px));height:calc(100dvh - 32px);max-height:none;border-radius:var(--radius-lg);border:1px solid var(--line);background:var(--surface);color:var(--ink);box-shadow:0 26px 70px -24px var(--ombra-forte);animation:wb-nova-in .38s var(--ease-out) both}
  .nova-head{min-height:64px;padding:14px 16px 14px 20px;background:var(--surface);border-bottom:1px solid var(--line)}.nova-head b{font-family:var(--font-ui);font-size:13px;letter-spacing:.16em;color:var(--accent-text)}
  .nova-head .nova-nome-gruppo::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px var(--accent-soft);animation:wb-nova-live 2.4s ease-in-out infinite}
  .nova-head .nova-hbtn{color:var(--ink-muted);border-color:var(--line);background:var(--surface-2)}.nova-head #nova-stato{color:var(--ink-muted)}
  .nova-body{background:linear-gradient(180deg,var(--surface),var(--bg));scrollbar-color:var(--line) transparent}.nova-invito{max-width:320px;font-family:var(--font-display);font-size:19px;line-height:1.4;color:var(--ink)}
  .nova-surface.has-chat .nova-body{padding:22px 20px 12px}.nova-bubble{border-radius:var(--radius)!important}.nova-bubble.me{background:var(--surface-2);border-color:var(--line);color:var(--ink)}.nova-voce-corpo{border-left-color:var(--accent);border-left-width:2px}.nova-voce-testo{color:var(--ink)}.nova-voce-chi b{color:var(--accent-text)}.nova-ric,.nova-azione,.nova-chip,.nova-fb button{border-radius:var(--radius-sm)!important}
  .nova-foot{padding:14px 16px 16px;background:var(--surface);border-top-color:var(--line)}
  /* Un solo compositore: il textarea non disegna un secondo rettangolo dentro
     il contenitore. Il bordo e il focus appartengono alla carta esterna. */
  .nova-textfall{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:flex-end;gap:8px;padding:10px;background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius)!important;box-shadow:var(--shadow-1);transition:border-color var(--dur-1),box-shadow var(--dur-1)}
  .nova-textfall:focus-within{border-color:var(--focus);box-shadow:0 0 0 3px var(--action-soft)}
  .nova-textfall #nova-text{flex:1 0 100%;width:100%;height:92px;min-height:92px;max-height:190px;padding:4px 5px 10px;background:transparent;border:0;border-radius:0;color:var(--ink);box-shadow:none;resize:none}
  .nova-textfall #nova-text:focus-visible{outline:0;box-shadow:none}
  .nova-textfall textarea::placeholder{color:var(--ink-muted);opacity:1}.nova-tf-btn{color:var(--ink-muted);background:var(--surface-2);border-color:var(--line)}
  .nova-textfall #nova-go{background:var(--action);color:var(--action-on);border-color:var(--action)}
  .nova-chip,.nova-azione,.nova-fb button{background:var(--surface);border-color:var(--line-strong);color:var(--ink)}.nova-ric{border-color:var(--line);color:var(--ink)}
  .topbar .top-utility{min-height:36px;padding:0 10px;border:1px solid var(--line);border-radius:var(--radius-xs);background:var(--surface-2);color:var(--ink-muted);font:600 12px/1 var(--font-ui);cursor:pointer}
  @media(hover:hover){.topbar .top-utility:hover{border-color:var(--line-strong);background:var(--surface);color:var(--ink)}}
  .nova-cmd{box-shadow:0 0 0 0 var(--accent-soft);animation:wb-nova-command 3s ease-out infinite}.nova-surface[data-state=listening] .nova-cmd{animation-duration:1.2s}.nova-surface[data-state=speaking] .nova-head .nova-nome-gruppo::before{background:var(--nova-parla-ink);box-shadow:0 0 0 5px var(--nova-parla)}

  @keyframes wb-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
  @keyframes wb-status{50%{opacity:.55;box-shadow:0 0 0 7px transparent}}
  @keyframes wb-grid{to{background-position:26px 13px}}
  @keyframes wb-nova-in{from{opacity:0;transform:translateX(28px) scale(.985)}to{opacity:1;transform:none}}
  @keyframes wb-nova-live{50%{transform:scale(.72);opacity:.65}}
  @keyframes wb-nova-command{0%,45%{box-shadow:0 0 0 0 var(--accent-soft)}75%,100%{box-shadow:0 0 0 16px transparent}}

  @media(max-width:1100px){.dash-grid{grid-template-columns:1fr}.kpis-main{grid-template-columns:repeat(2,1fr)}}
  @media(max-width:760px){#sidebar{width:min(86vw,300px)}.topbar{min-height:calc(64px + env(safe-area-inset-top))}.top-kicker{display:none}.top-create{margin-left:auto}.top-right{margin-left:0}.top-right .tiny{display:none}.dash-hero{min-height:128px;padding:24px}.dash-actions{grid-template-columns:1fr}.dash-alerts{grid-template-columns:1fr}}

  /* Tablet verticali: con la sidebar desktop da 210px a 768/800px restavano
     solo 558/590px al gestionale. Il menu diventa un drawer fino a 900px;
     in orizzontale torna automaticamente alla disposizione desktop. */
  @media(min-width:761px) and (max-width:900px){
    #sidebar{position:fixed;top:0;left:-100%!important;height:100%;width:min(48vw,320px);transform:none!important;transition:left .24s cubic-bezier(.2,.7,.3,1);box-shadow:0 0 40px var(--ombra);z-index:30}
    #sidebar.open{left:0!important}
    .hamb{display:block}
    .backdrop.show{display:block}
    .userbadge{display:none}
    .topbar{padding-left:16px;padding-right:16px}
    .content{padding:16px}
  }
  @media(max-width:560px){.nova-ovl#nova-ovl{padding:0}.nova-ovl#nova-ovl .nova-surface{width:100%;height:100dvh;max-height:100dvh;border-radius:0;border:0}.nova-ovl#nova-ovl .nova-head{padding-top:calc(14px + env(safe-area-inset-top))}.nova-ovl#nova-ovl .nova-foot{padding-bottom:max(10px,env(safe-area-inset-bottom))}}
  @media(max-width:520px){.top-create{width:42px;padding:0;overflow:hidden;color:transparent}.top-create span{color:var(--action-on);margin:0}.dash-hero h1{font-size:26px}.dash-section-title small{display:none}.kpis-main,.kpis-values{grid-template-columns:repeat(2,1fr)}.kpis-values .kpi:last-child{grid-column:1/-1}.dash-grid{grid-template-columns:minmax(0,1fr)}.dash-map{height:260px}}

  /* Telefono: regole trasversali per tutte le viste della SPA, comprese
     quelle costruite a runtime dai moduli. */
  @media(max-width:640px){
    html,body{max-width:100%;overflow-x:hidden}
    #app,.main,.content,.content>*{min-width:0}

    #login .login-brand{padding:24px 20px}
    #login .login-brandcopy{margin-top:28px}
    #login .login-brandcopy h2{font-size:clamp(25px,8vw,30px)}
    #login .login-formcol{padding:20px 12px max(32px,env(safe-area-inset-bottom))}
    #login .login-form{padding:20px 16px;border-radius:var(--radius)}

    .topbar{flex-wrap:nowrap;gap:8px;padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
    .top-heading{min-width:0;flex:1}
    .top-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}
    .hamb,.top-create{flex:0 0 42px;min-width:42px;min-height:42px}
    .top-right{flex:0 0 auto;min-width:0;flex-wrap:nowrap}

    .page-h,.card-h>span,.card-h>div{min-width:0;overflow-wrap:anywhere}
    .card-h{gap:8px;flex-wrap:wrap}
    .card-h .btn-add{width:100%;justify-content:center}
    img,svg,canvas,video{max-width:100%}
    .tbl-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
    table.dt{min-width:560px}
    .modal-b{min-width:0;overscroll-behavior:contain}
    .modal-f{flex-wrap:wrap;gap:8px}
    .modal-f>*{flex:1 1 130px}
    table.righe{min-width:560px}

    /* Numerose pagine impostazioni/onboarding usano griglie inline: a 390px
       il loro minmax da 220px forza colonne o controlli fuori schermo. */
    .content [style*="grid-template-columns"]{grid-template-columns:minmax(0,1fr)!important}
    .content [style*="min-width:300px"],
    .content [style*="min-width:280px"]{min-width:0!important}

    /* Wizard documenti: i due pannelli sono flex item con basi desktop e
       min-width inline. Sul telefono devono occupare una riga ciascuno. */
    #dw-ctrl{flex:1 1 100%!important;max-height:none!important}
    #dw-ctrl+div{flex:1 1 100%!important;min-width:0!important;border-left:0!important;border-top:1px solid var(--line)}

    .fen-admin-row-actions{align-items:stretch;flex-direction:column}
    .fen-admin-row-actions select{max-width:none;width:100%}

    #nova-ovl .nova-head{gap:8px;padding-left:14px;padding-right:10px}
    #nova-ovl .nova-head .nova-nome-gruppo{gap:8px;overflow:hidden}
    #nova-ovl .nova-head .nova-testa-tasti{gap:6px}
    #nova-ovl .nova-head .nova-hbtn{width:44px;height:44px;flex:0 0 44px}
    #nova-ovl .nova-surface.has-chat .nova-body{padding:16px 14px 8px}
    #nova-ovl .nova-body{min-height:0;gap:16px;padding:16px 14px 10px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
    #nova-ovl .nova-pozzo{width:144px;height:144px}
    #nova-ovl .nova-invito{max-width:28ch;font-size:17px;line-height:1.4}
    #nova-ovl .nova-chips{width:100%;flex-wrap:nowrap;justify-content:flex-start;gap:8px;overflow-x:auto;padding:2px 0 4px;scroll-snap-type:x proximity;scrollbar-width:none;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
    #nova-ovl .nova-chips::-webkit-scrollbar{display:none}
    #nova-ovl .nova-chip{flex:0 0 auto;scroll-snap-align:start;white-space:nowrap;text-align:center}
    #nova-ovl .nova-bubble,#nova-ovl .nova-voce{max-width:92%}
    #nova-ovl .nova-foot{flex:0 0 auto;gap:8px;padding:8px 12px max(10px,env(safe-area-inset-bottom))}
    #nova-ovl .nova-microw{min-height:52px;flex-direction:row;justify-content:center;gap:10px}
    #nova-ovl .nova-cmd{width:52px;height:52px;flex:0 0 52px}
    #nova-ovl .nova-surface.has-chat .nova-cmd{width:52px;height:52px}
    #nova-ovl .nova-textfall{min-width:0;flex-wrap:nowrap;align-items:center;gap:6px;padding:6px}
    .nova-textfall #nova-text{flex:1 1 auto;width:auto;min-width:0;height:44px;min-height:44px;max-height:96px;padding:10px 8px;font-size:16px;line-height:1.35}
    #nova-ovl .nova-tf-btn{width:44px;height:44px;flex:0 0 44px}
    #nova-ovl .nova-chip,#nova-ovl .nova-azione{max-width:100%;white-space:normal;line-height:1.25;text-align:left}
    #nova-ovl .nova-chips .nova-chip{white-space:nowrap;text-align:center}
    /* Con la tastiera aperta resta solo il compositore: il comando vocale e
       il pozzo sono disponibili appena il campo perde il fuoco. */
    .nova-surface:has(#nova-text:focus) .nova-microw{display:none}
    .nova-surface:has(#nova-text:focus) .nova-pozzo{width:88px;height:88px}
    .nova-surface:has(#nova-text:focus) .nova-invito,
    .nova-surface:has(#nova-text:focus) .nova-chips{display:none}
    .nova-conferma{padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))}
    .nova-conferma-carta{max-height:100%;min-width:0}
    .nova-conferma-corpo{overflow-x:auto}
  }

  @media(max-width:360px){
    .top-kicker,#nova-stato,.nova-sep{display:none}
    .kpis-main,.kpis-values{grid-template-columns:1fr}
    .kpis-values .kpi:last-child{grid-column:auto}
    #nova-ovl .nova-head b{font-size:12px;letter-spacing:.1em}
    #nova-ovl .nova-bubble,#nova-ovl .nova-voce{max-width:100%}
    #nova-ovl .nova-pozzo{width:124px;height:124px}
    #nova-ovl .nova-body{padding-left:10px;padding-right:10px}
    #nova-ovl .nova-foot{padding-left:8px;padding-right:8px}
  }

  /* iPhone in orizzontale: Nova deve lasciare accessibili conversazione e
     comandi senza farli cadere oltre il bordo inferiore. */
  @media(max-height:500px) and (max-width:900px){
    .nova-ovl#nova-ovl{padding:0;justify-content:center}
    #nova-ovl .nova-surface{width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}
    #nova-ovl .nova-head{min-height:50px;padding-top:max(6px,env(safe-area-inset-top));padding-bottom:6px}
    #nova-ovl .nova-body{justify-content:flex-start;gap:10px;padding-top:10px;padding-bottom:8px}
    #nova-ovl .nova-pozzo{width:96px;height:96px}
    #nova-ovl .nova-invito{font-size:15px}
    #nova-ovl .nova-chips{width:100%;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding:2px 0 4px;scrollbar-width:none}
    #nova-ovl .nova-chips::-webkit-scrollbar{display:none}
    #nova-ovl .nova-chip{flex:0 0 auto;white-space:nowrap}
    #nova-ovl .nova-foot{gap:8px;padding:8px max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
    #nova-ovl .nova-microw{min-height:48px}
    #nova-ovl .nova-cmd,#nova-ovl .nova-surface.has-chat .nova-cmd{width:48px;height:48px;flex-basis:48px}
    #nova-ovl .nova-textfall{min-width:0;flex-wrap:nowrap;align-items:center;gap:6px;padding:6px}
    #nova-ovl .nova-textfall #nova-text{flex:1 1 auto;width:auto;min-width:0;height:44px;min-height:44px;max-height:60px;padding:10px 8px;font-size:16px}
    #nova-ovl .nova-tf-btn{width:44px;height:44px;flex:0 0 44px}
  }
  @media(prefers-reduced-motion:reduce){.sb-status-dot,.dash-hero::before,.nova-head .nova-nome-gruppo::before,.nova-cmd{animation:none}.content.page-enter>*{animation:none}}
}
