/*
 * TakaraDex shared styles: desktop-shell.css
 * Generated by the V0.2.0 readability refactor.
 * These rules were previously duplicated in every HTML page.
 * For normal spacing/size changes edit ../takaradex-config.css instead.
 */


/* ===== Desktop header/sidebar/content foundation ===== */
@media (min-width: 921px){
  :root{
    --td-header-h: 132px;
    --td-side-w: 260px;
    --td-page-gap: 24px;
    --td-content-pad: 24px;
    --td-gold: #d8b55a;
    --td-red: #940f12;
  }

  html, body{margin:0!important; overflow-x:hidden!important;}
  body:not(.auth-loading){
    padding:0!important;
    min-height:100vh!important;
    background:radial-gradient(circle at top,#242424 0,#090909 42%,#050505 100%)!important;
  }

  /* Header brand globale: sempre identico, logo a sinistra, titolo al centro, niente duplicati */
  body:not(.auth-loading) .header,
  body:not(.auth-loading) .td-clean-desktop-header{
    position:fixed!important;
    top:0!important; left:0!important; right:0!important;
    width:100vw!important;
    height:var(--td-header-h)!important;
    min-height:var(--td-header-h)!important;
    max-height:var(--td-header-h)!important;
    margin:0!important;
    padding:0!important;
    border-radius:0!important;
    border:0!important;
    border-bottom:1px solid rgba(148,15,18,.95)!important;
    background:linear-gradient(90deg,#050505 0%,#120907 24%,#3a160f 50%,#120907 76%,#050505 100%)!important;
    box-shadow:0 16px 42px rgba(0,0,0,.58)!important;
    z-index:20000!important;
    overflow:hidden!important;
    display:block!important;
    box-sizing:border-box!important;
  }

  body:not(.auth-loading) .header .hamburger,
  body:not(.auth-loading) .header .menu-btn,
  body:not(.auth-loading) .profile-account,
  body:not(.auth-loading) .user-bar,
  body:not(.auth-loading) .td-desktop-brand,
  body:not(.auth-loading) .td-global-profile-header,
  body:not(.auth-loading) .td-page-title-uniform,
  body:not(.auth-loading) .td-desktop-page-title{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }

  body:not(.auth-loading) .header img,
  body:not(.auth-loading) .td-clean-desktop-header img{
    position:absolute!important;
    left:34px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:58px!important;
    height:58px!important;
    min-width:58px!important;
    max-width:58px!important;
    object-fit:contain!important;
    margin:0!important;
    padding:0!important;
    border-radius:14px!important;
    z-index:2!important;
    display:block!important;
  }
  body:not(.auth-loading) .header img:nth-of-type(n+2){display:none!important;}

  body:not(.auth-loading) .header h1,
  body:not(.auth-loading) .header .pokemon-title,
  body:not(.auth-loading) .td-clean-desktop-header h1{
    position:absolute!important;
    left:50%!important;
    top:42%!important;
    transform:translate(-50%,-50%)!important;
    margin:0!important;
    padding:0!important;
    width:auto!important;
    max-width:calc(100vw - 220px)!important;
    font-family:"Arial Black", Impact, system-ui, sans-serif!important;
    font-size:48px!important;
    line-height:.95!important;
    letter-spacing:8px!important;
    white-space:nowrap!important;
    color:#f8f1dd!important;
    text-transform:uppercase!important;
    text-align:center!important;
    text-shadow:0 5px 0 rgba(0,0,0,.40)!important;
  }

  body:not(.auth-loading) .header .td-clean-subtitle,
  body:not(.auth-loading) .td-clean-desktop-header .td-clean-subtitle{
    position:absolute!important;
    left:50%!important;
    top:73%!important;
    transform:translate(-50%,-50%)!important;
    width:auto!important;
    max-width:calc(100vw - 220px)!important;
    margin:0!important;
    padding:0!important;
    color:#f8f1dd!important;
    font-family:"Arial Black", Impact, system-ui, sans-serif!important;
    font-size:13px!important;
    line-height:1!important;
    letter-spacing:5px!important;
    white-space:nowrap!important;
    text-align:center!important;
    text-transform:uppercase!important;
    opacity:.98!important;
    text-shadow:0 3px 0 rgba(0,0,0,.35)!important;
  }

  /* Sidebar: colonna vera, fissa, non overlay sul contenuto */
  body:not(.auth-loading) #sideMenu,
  body:not(.auth-loading) .td-desktop-side-nav{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    position:fixed!important;
    left:0!important;
    top:var(--td-header-h)!important;
    bottom:0!important;
    width:var(--td-side-w)!important;
    height:calc(100vh - var(--td-header-h))!important;
    margin:0!important;
    padding:18px 14px!important;
    border-radius:0!important;
    border:0!important;
    border-right:1px solid rgba(216,181,90,.26)!important;
    background:linear-gradient(180deg,rgba(8,8,8,.98) 0%,rgba(8,8,8,.94) 58%,rgba(92,6,6,.72) 100%)!important;
    box-shadow:22px 0 42px rgba(0,0,0,.38)!important;
    z-index:15000!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    flex-direction:column!important;
    gap:18px!important;
    transform:none!important;
  }
  body:not(.auth-loading) #sideMenu h3{display:none!important;}
  body:not(.auth-loading) #sideMenu button,
  body:not(.auth-loading) .td-desktop-side-nav button{
    width:100%!important;
    min-height:58px!important;
    height:58px!important;
    margin:0!important;
    padding:0 18px!important;
    border-radius:16px!important;
    border:1px solid transparent!important;
    background:transparent!important;
    color:#fff!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:12px!important;
    text-align:left!important;
    font-family:"Arial Black", Impact, system-ui, sans-serif!important;
    font-size:20px!important;
    line-height:1!important;
    letter-spacing:.2px!important;
    text-transform:none!important;
    box-shadow:none!important;
    white-space:nowrap!important;
  }
  body:not(.auth-loading) #sideMenu button:hover,
  body:not(.auth-loading) #sideMenu button.active{
    color:#ffeb7a!important;
    background:linear-gradient(135deg,rgba(255,204,0,.20),rgba(255,204,0,.05))!important;
    border-color:rgba(216,181,90,.25)!important;
  }


  body:not(.auth-loading) .overlay{display:none!important;}

  /* Titolo pagina unico: sotto header, a destra della sidebar */
  body:not(.auth-loading) .td-clean-page-title{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    max-width:none!important;
    height:76px!important;
    margin:calc(var(--td-header-h) + var(--td-page-gap)) var(--td-content-pad) 22px calc(var(--td-side-w) + var(--td-content-pad))!important;
    padding:0 22px!important;
    border-radius:22px!important;
    border:1px solid rgba(216,181,90,.25)!important;
    background:linear-gradient(180deg,rgba(54,31,19,.65),rgba(12,12,12,.95))!important;
    box-shadow:0 16px 34px rgba(0,0,0,.34)!important;
    box-sizing:border-box!important;
    position:relative!important;
    z-index:1!important;
  }
  body:not(.auth-loading) .td-clean-page-title h2{
    margin:0!important;
    padding:0!important;
    color:#f8f1dd!important;
    font-family:"Arial Black", Impact, system-ui, sans-serif!important;
    font-size:34px!important;
    line-height:1!important;
    letter-spacing:5px!important;
    text-transform:uppercase!important;
    text-align:center!important;
    text-shadow:0 4px 0 rgba(0,0,0,.42)!important;
  }

  /* Contenuto: sempre a destra della sidebar, mai sotto sidebar/header */
  body:not(.auth-loading) > .container,
  body:not(.auth-loading) > main.page,
  body:not(.auth-loading) > .profile-wrap,
  body:not(.auth-loading) > .album-wrap,
  body:not(.auth-loading) > #page,
  body:not(.auth-loading) > .page,
  body:not(.auth-loading) > .community-page,
  body:not(.auth-loading) > .main-content{
    display:block!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:calc(var(--td-side-w) + var(--td-content-pad))!important;
    margin-right:var(--td-content-pad)!important;
    margin-top:0!important;
    padding-top:0!important;
    padding-left:0!important;
    padding-right:0!important;
    padding-bottom:42px!important;
    box-sizing:border-box!important;
    position:relative!important;
    z-index:1!important;
  }

  /* Se per qualche motivo il titolo non viene creato, il contenuto resta comunque sotto header */
  body:not(.auth-loading):not(.td-has-clean-title) > .container,
  body:not(.auth-loading):not(.td-has-clean-title) > main.page,
  body:not(.auth-loading):not(.td-has-clean-title) > .profile-wrap,
  body:not(.auth-loading):not(.td-has-clean-title) > .album-wrap{
    margin-top:calc(var(--td-header-h) + var(--td-page-gap))!important;
  }

  /* Titoli vecchi interni pagina da non duplicare solo desktop */
  body:not(.auth-loading) .profile-header{display:none!important;}

  /* Evita blocchi vuoti creati dai fix precedenti */
  body:not(.auth-loading) .td-empty-shell-spacer,
  body:not(.auth-loading) .td-desktop-spacer,
  body:not(.auth-loading) .desktop-spacer{display:none!important;height:0!important;margin:0!important;padding:0!important;}

  /* Tabelle desktop: non tagliare i pulsanti a destra */
  body:not(.auth-loading) .table-wrap,
  body:not(.auth-loading) .cards-table-wrap,
  body:not(.auth-loading) .collection-table-wrap{
    overflow-x:visible!important;
    max-width:100%!important;
  }
  body:not(.auth-loading) table{max-width:100%!important;}

  /* Navbar mobile mai visibile su desktop */
  body:not(.auth-loading) #tdNativeNav,
  body:not(.auth-loading) .td-native-nav,
  body:not(.auth-loading) .td-mobile-bottom-nav,
  body:not(.auth-loading) .bottom-nav,
  body:not(.auth-loading) .mobile-bottom-nav{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }

  /* Modali sopra header/sidebar e centrate */
  body:not(.auth-loading) .modal,
  body:not(.auth-loading) .post-modal,
  body:not(.auth-loading) .password-modal,
  body:not(.auth-loading) #postModal,
  body:not(.auth-loading) #createPostModal{
    z-index:30000!important;
  }
}

@media (max-width: 920px){
  .td-clean-desktop-header,
  .td-clean-page-title{display:none!important;}
}


/* ===== Desktop spacing and typography polish ===== */
@media (min-width: 921px){
  :root{--td-header-h:132px;--td-side-w:260px;--td-content-pad:24px;--td-title-gap:24px;}

  /* HEADER: una sola scritta, logo a sinistra, nessuna duplicazione del payoff */
  body:not(.auth-loading) .header,
  body:not(.auth-loading) .td-clean-desktop-header{
    height:var(--td-header-h)!important;min-height:var(--td-header-h)!important;max-height:var(--td-header-h)!important;
    overflow:hidden!important;display:block!important;position:fixed!important;top:0!important;left:0!important;right:0!important;width:100vw!important;
    padding:0!important;margin:0!important;border-radius:0!important;border-bottom:1px solid rgba(148,15,18,.95)!important;
    background:linear-gradient(90deg,#050505 0%,#120907 24%,#3a160f 50%,#120907 76%,#050505 100%)!important;
    z-index:20000!important;box-sizing:border-box!important;
  }
  body:not(.auth-loading) .header::before,
  body:not(.auth-loading) .header::after,
  body:not(.auth-loading) .header h1::before,
  body:not(.auth-loading) .header h1::after,
  body:not(.auth-loading) .header .pokemon-title::before,
  body:not(.auth-loading) .header .pokemon-title::after,
  body:not(.auth-loading) .td-clean-desktop-header::before,
  body:not(.auth-loading) .td-clean-desktop-header::after{
    content:none!important;display:none!important;visibility:hidden!important;opacity:0!important;
  }
  body:not(.auth-loading) .header img,
  body:not(.auth-loading) .td-clean-desktop-header img{
    display:block!important;visibility:visible!important;opacity:1!important;position:absolute!important;
    left:34px!important;top:50%!important;transform:translateY(-50%)!important;width:58px!important;height:58px!important;
    min-width:58px!important;max-width:58px!important;margin:0!important;padding:0!important;object-fit:contain!important;border-radius:14px!important;z-index:2!important;
  }
  body:not(.auth-loading) .header img:nth-of-type(n+2){display:none!important;}
  body:not(.auth-loading) .header h1,
  body:not(.auth-loading) .header .pokemon-title,
  body:not(.auth-loading) .td-clean-desktop-header h1{
    display:block!important;visibility:visible!important;opacity:1!important;position:absolute!important;
    left:50%!important;top:44%!important;transform:translate(-50%,-50%)!important;margin:0!important;padding:0!important;
    color:#f8f1dd!important;font-family:"Arial Black",Impact,system-ui,sans-serif!important;font-size:48px!important;line-height:.95!important;
    letter-spacing:8px!important;text-align:center!important;text-transform:uppercase!important;white-space:nowrap!important;text-shadow:0 5px 0 rgba(0,0,0,.42)!important;
  }
  body:not(.auth-loading) .header .td-clean-subtitle,
  body:not(.auth-loading) .td-clean-desktop-header .td-clean-subtitle{
    display:block!important;visibility:visible!important;opacity:1!important;position:absolute!important;
    left:50%!important;top:72%!important;transform:translate(-50%,-50%)!important;margin:0!important;padding:0!important;
    color:#f8f1dd!important;font-family:"Arial Black",Impact,system-ui,sans-serif!important;font-size:13px!important;line-height:1!important;
    letter-spacing:5px!important;text-align:center!important;text-transform:uppercase!important;white-space:nowrap!important;text-shadow:0 3px 0 rgba(0,0,0,.35)!important;
  }

  /* LAYOUT: titolo pagina + contenuto sempre a destra della sidebar, mai sotto */
  body:not(.auth-loading) #sideMenu,
  body:not(.auth-loading) .td-desktop-side-nav{
    top:var(--td-header-h)!important;width:var(--td-side-w)!important;height:calc(100vh - var(--td-header-h))!important;
  }
  body:not(.auth-loading) .td-clean-page-title{
    margin:calc(var(--td-header-h) + var(--td-title-gap)) var(--td-content-pad) 22px calc(var(--td-side-w) + var(--td-content-pad))!important;
    height:76px!important;min-height:76px!important;
  }
  body:not(.auth-loading) > .container,
  body:not(.auth-loading) > main.page,
  body:not(.auth-loading) > .profile-wrap,
  body:not(.auth-loading) > .album-wrap,
  body:not(.auth-loading) > #page,
  body:not(.auth-loading) > .page,
  body:not(.auth-loading) > .community-page,
  body:not(.auth-loading) > .main-content{
    margin-left:calc(var(--td-side-w) + var(--td-content-pad))!important;
    margin-right:var(--td-content-pad)!important;
    width:auto!important;max-width:none!important;min-width:0!important;
    margin-top:0!important;padding-top:0!important;box-sizing:border-box!important;
  }
  body:not(.auth-loading) .td-clean-page-title + .container,
  body:not(.auth-loading) .td-clean-page-title + main.page,
  body:not(.auth-loading) .td-clean-page-title + .profile-wrap,
  body:not(.auth-loading) .td-clean-page-title + .album-wrap,
  body:not(.auth-loading) .td-clean-page-title + #page,
  body:not(.auth-loading) .td-clean-page-title + .page,
  body:not(.auth-loading) .td-clean-page-title + .community-page,
  body:not(.auth-loading) .td-clean-page-title + .main-content{
    margin-top:0!important;padding-top:0!important;
  }
  body:not(.auth-loading) .container > :first-child,
  body:not(.auth-loading) main.page > :first-child,
  body:not(.auth-loading) .album-wrap > :first-child,
  body:not(.auth-loading) .community-page > :first-child{
    margin-top:0!important;
  }

  /* Nasconde definitivamente eventuali titoli/header vecchi interni duplicati */
  body:not(.auth-loading) .td-desktop-brand,
  body:not(.auth-loading) .td-desktop-page-title,
  body:not(.auth-loading) .td-page-title-uniform,
  body:not(.auth-loading) .td-global-profile-header{display:none!important;}
  body:not(.auth-loading) .profile-header{display:none!important;}

  /* Community: il menu mobile rapido non deve comparire su desktop */
  body:not(.auth-loading) #tdNativeNav,
  body:not(.auth-loading) .td-native-nav,
  body:not(.auth-loading) .td-mobile-bottom-nav,
  body:not(.auth-loading) .bottom-nav,
  body:not(.auth-loading) .mobile-bottom-nav,
  body:not(.auth-loading) .quick-actions,
  body:not(.auth-loading) .mobile-quick-actions,
  body:not(.auth-loading) .floating-actions{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}

  /* Album: pulsanti più piccoli e affiancati */
  body:not(.auth-loading) .album-actions,
  body:not(.auth-loading) .album-toolbar,
  body:not(.auth-loading) .album-controls{display:flex!important;justify-content:center!important;align-items:center!important;gap:12px!important;flex-wrap:wrap!important;}
  body:not(.auth-loading) .album-actions button,
  body:not(.auth-loading) .album-toolbar button,
  body:not(.auth-loading) .album-controls button{width:auto!important;min-width:190px!important;max-width:240px!important;height:46px!important;padding:0 18px!important;font-size:13px!important;border-radius:14px!important;}
}
@media (max-width: 920px){
  .td-clean-desktop-header,.td-clean-page-title{display:none!important;}
  .album-actions,.album-toolbar,.album-controls{display:flex!important;justify-content:center!important;gap:10px!important;flex-wrap:nowrap!important;}
  .album-actions button,.album-toolbar button,.album-controls button{width:48%!important;min-width:0!important;height:44px!important;padding:0 10px!important;font-size:12px!important;border-radius:14px!important;}
}


/* ===== Legacy desktop shell compatibility ===== */
@media (min-width:921px){
  :root{--td-final-header-h:150px;--td-final-side-w:310px;--td-final-gap:28px;}
  html,body{overflow-x:hidden!important;}
  body:not(.auth-loading){
    padding:var(--td-final-header-h) 0 0 var(--td-final-side-w)!important;
    margin:0!important;
    min-height:100vh!important;
    background:radial-gradient(circle at 55% 0%,#202020 0,#070707 42%,#030303 100%)!important;
  }

  /* Nasconde SOLO i vecchi header desktop che creavano doppioni e sovrapposizioni */
  body:not(.auth-loading) > .header,
  body:not(.auth-loading) > .td-clean-desktop-header,
  body:not(.auth-loading) .td-desktop-brand,
  body:not(.auth-loading) .td-global-profile-header,
  body:not(.auth-loading) .td-desktop-page-title,
  body:not(.auth-loading) .td-page-title-uniform,
  body:not(.auth-loading) .td-clean-page-title:not(.td-final-page-title){
    display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;height:0!important;min-height:0!important;max-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;
  }

  .td-final-header{
    position:fixed!important;top:0!important;left:0!important;right:0!important;
    height:var(--td-final-header-h)!important;width:100vw!important;
    z-index:50000!important;display:block!important;
    background:linear-gradient(90deg,#050505 0%,#170807 26%,#3a130d 50%,#170807 74%,#050505 100%)!important;
    border-bottom:1px solid rgba(150,13,18,.95)!important;
    box-shadow:0 18px 44px rgba(0,0,0,.52)!important;
    overflow:hidden!important;box-sizing:border-box!important;
  }
  .td-final-header-logo{
    position:absolute!important;left:34px!important;top:50%!important;transform:translateY(-50%)!important;
    width:58px!important;height:58px!important;object-fit:contain!important;border-radius:14px!important;
    filter:drop-shadow(0 0 12px rgba(255,210,70,.42))!important;
  }
  .td-final-brand-block{
    position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;
    text-align:center!important;width:min(720px,calc(100vw - 230px))!important;white-space:nowrap!important;
  }
  .td-final-brand-title{
    margin:0!important;padding:0!important;font-family:"Arial Black",Impact,system-ui,sans-serif!important;
    font-size:50px!important;line-height:.92!important;letter-spacing:9px!important;text-transform:uppercase!important;
    color:#f8f1dd!important;text-shadow:0 5px 0 rgba(0,0,0,.43)!important;
  }
  .td-final-brand-subtitle{
    margin:13px 0 0!important;padding:0!important;font-family:"Arial Black",Impact,system-ui,sans-serif!important;
    font-size:13px!important;line-height:1!important;letter-spacing:6px!important;text-transform:uppercase!important;
    color:#f8f1dd!important;text-shadow:0 3px 0 rgba(0,0,0,.35)!important;
  }

  /* Sidebar desktop: vera colonna, fissa, il contenuto non può finirci sotto */
  body:not(.auth-loading) #sideMenu,
  body:not(.auth-loading) .td-final-sidebar{
    position:fixed!important;left:0!important;top:var(--td-final-header-h)!important;bottom:0!important;
    width:var(--td-final-side-w)!important;height:calc(100vh - var(--td-final-header-h))!important;
    z-index:45000!important;display:flex!important;flex-direction:column!important;gap:18px!important;
    padding:24px 14px!important;margin:0!important;border-radius:0!important;
    border:0!important;border-right:1px solid rgba(216,181,90,.24)!important;
    background:linear-gradient(180deg,rgba(6,6,6,.98) 0%,rgba(7,7,7,.94) 57%,rgba(95,4,5,.72) 100%)!important;
    box-shadow:20px 0 42px rgba(0,0,0,.34)!important;overflow:hidden!important;box-sizing:border-box!important;
    transform:none!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
  }
  body:not(.auth-loading) #sideMenu h3{display:none!important;}
  body:not(.auth-loading) #sideMenu button,
  body:not(.auth-loading) .td-final-sidebar button{
    width:100%!important;height:58px!important;min-height:58px!important;margin:0!important;padding:0 20px!important;
    border-radius:16px!important;border:1px solid transparent!important;background:transparent!important;color:#fff!important;
    display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:13px!important;
    font-family:"Arial Black",Impact,system-ui,sans-serif!important;font-size:22px!important;line-height:1!important;letter-spacing:.2px!important;
    text-align:left!important;text-transform:none!important;box-shadow:none!important;white-space:nowrap!important;
  }
  body:not(.auth-loading) #sideMenu button.active,
  body:not(.auth-loading) #sideMenu button.td-active,
  body:not(.auth-loading) .td-final-sidebar button.td-active{
    background:linear-gradient(135deg,#9d1010,#760808)!important;border-color:rgba(222,181,67,.42)!important;
    color:#ffe979!important;box-shadow:0 14px 28px rgba(0,0,0,.35)!important;
  }

  /* Titolo pagina uniforme */
  .td-final-page-title{
    display:flex!important;align-items:center!important;justify-content:center!important;
    height:92px!important;min-height:92px!important;width:calc(100% - (var(--td-final-gap) * 2))!important;
    margin:28px var(--td-final-gap) 34px!important;padding:0 24px!important;box-sizing:border-box!important;
    border-radius:22px!important;border:1px solid rgba(216,181,90,.27)!important;
    background:linear-gradient(180deg,rgba(43,22,15,.78),rgba(10,10,10,.86))!important;
    box-shadow:0 18px 42px rgba(0,0,0,.36)!important;position:relative!important;z-index:1!important;
  }
  .td-final-page-title h2{
    margin:0!important;padding:0!important;text-align:center!important;font-family:"Arial Black",Impact,system-ui,sans-serif!important;
    font-size:40px!important;line-height:1!important;letter-spacing:10px!important;text-transform:uppercase!important;
    color:#f8f1dd!important;text-shadow:0 5px 0 rgba(0,0,0,.42)!important;
  }

  /* Tutto il contenuto desktop resta nella colonna destra */
  body:not(.auth-loading) > *:not(.td-final-header):not(#sideMenu):not(.td-final-page-title):not(script):not(style):not(.loading-screen):not(.auth-screen):not(#cardChoiceModal):not(#modal):not(#manualImageModal){
    max-width:calc(100vw - var(--td-final-side-w) - (var(--td-final-gap) * 2))!important;
    margin-left:var(--td-final-gap)!important;margin-right:var(--td-final-gap)!important;
    box-sizing:border-box!important;
  }
  body:not(.auth-loading) .container,
  body:not(.auth-loading) main,
  body:not(.auth-loading) .profile-wrap,
  body:not(.auth-loading) .album-wrap,
  body:not(.auth-loading) .community-page,
  body:not(.auth-loading) .main-content,
  body:not(.auth-loading) #page{
    width:auto!important;max-width:calc(100vw - var(--td-final-side-w) - (var(--td-final-gap) * 2))!important;
    margin-left:var(--td-final-gap)!important;margin-right:var(--td-final-gap)!important;
    padding-left:0!important;padding-right:0!important;box-sizing:border-box!important;transform:none!important;
  }

  /* Rimuove buchi e titoli duplicati generati dai fix precedenti */
  body:not(.auth-loading) .td-desktop-spacer,
  body:not(.auth-loading) .desktop-spacer,
  body:not(.auth-loading) .hero-spacer,
  body:not(.auth-loading) .header-spacer{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;}

  /* Niente navbar mobile/quick actions su desktop */
  body:not(.auth-loading) .bottom-nav,
  body:not(.auth-loading) .mobile-bottom-nav,
  body:not(.auth-loading) .td-mobile-bottom-nav,
  body:not(.auth-loading) .fabio-mobile-nav,
  body:not(.auth-loading) .mobile-nav,
  body:not(.auth-loading) .quick-mobile-nav,
  body:not(.auth-loading) .td-fast-mobile-nav,
  body:not(.auth-loading) .mobile-actions,
  body:not(.auth-loading) .community-quick-nav{
    display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;
  }

  /* Album: pulsanti piccoli affiancati anche desktop */
  body:not(.auth-loading) .album-actions,
  body:not(.auth-loading) .album-controls,
  body:not(.auth-loading) .album-buttons{display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;gap:12px!important;flex-wrap:nowrap!important;}
  body:not(.auth-loading) .album-actions button,
  body:not(.auth-loading) .album-controls button,
  body:not(.auth-loading) .album-buttons button{width:auto!important;min-width:170px!important;max-width:230px!important;height:46px!important;padding:0 18px!important;font-size:14px!important;}
}

  /* V0.1.27: rimuove rettangoli/titoli pagina desktop */
  body:not(.auth-loading) .td-final-page-title,
  body:not(.auth-loading) .td-clean-page-title,
  body:not(.auth-loading) .td-page-title-uniform,
  body:not(.auth-loading) .td-desktop-page-title{
    display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;
    height:0!important;min-height:0!important;max-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;
  }

@media (max-width:920px){
  .td-final-header,.td-final-page-title{display:none!important;}
}
