/* Navegação principal Stellar — desktop, tablet e celular. */
body[data-app="admin"]{--sb-sidebar:260px!important}body[data-app="admin"].sn-compact{--sb-sidebar:84px!important}body[data-app="admin"] nav.admin-tabs.sn-sidebar{position:fixed!important;inset:0 auto 0 0!important;width:var(--sb-sidebar)!important;height:100dvh!important;max-height:100dvh!important;display:flex!important;flex-direction:column!important;gap:0!important;padding:0!important;margin:0!important;overflow:hidden!important;border:0!important;border-right:1px solid #69448855!important;background:radial-gradient(ellipse at 0 0,#72409935,transparent 48%),linear-gradient(180deg,#20112f,#100a1c 75%)!important;box-shadow:10px 0 38px #07030e40!important;z-index:80!important;transform:none!important;transition:width .2s ease,transform .22s ease!important;color:#eedffc;font-family:Inter,system-ui,sans-serif}.sn-sidebar *{box-sizing:border-box}.sn-brand{display:flex;align-items:center;gap:11px;min-height:100px;padding:25px 19px;border-bottom:1px solid #64417b55;flex-shrink:0}.sn-brand-mark{width:37px;height:42px;display:grid;place-items:center;color:#eed1ff;font-size:32px;text-shadow:0 0 22px #c894ff80;flex-shrink:0}.sn-brand-copy{min-width:0;flex:1}.sn-brand-copy strong{font-size:24px;letter-spacing:-1px;font-weight:700;color:#fff;line-height:1}.sn-brand-copy strong span{font-size:11px;vertical-align:top;margin-left:3px;color:#ca9cec}.sn-brand-copy small{display:block;margin-top:6px;color:#b79bcc;font-size:10px;letter-spacing:.4px}.sn-sidebar .sn-collapse,.sn-sidebar .sn-close{padding:0;width:27px;height:31px;flex-shrink:0;background:#382047;border:1px solid #75459377;border-radius:8px;color:#d5b9eb;cursor:pointer;font-size:23px;box-shadow:none}.sn-sidebar .sn-close{display:none}.sn-nav-body{overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;padding:21px 13px;scrollbar-width:thin;scrollbar-color:#71438a transparent}.sn-group+.sn-group{margin-top:23px}.sn-group-label{font-size:9px;font-weight:650;letter-spacing:1.5px;color:#9e7eb7;padding:0 13px;margin:0 0 11px}.sn-group{display:grid;gap:5px}body[data-app="admin"] .sn-sidebar .tab-btn{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:45px!important;height:auto!important;padding:12px 13px!important;margin:0!important;position:relative!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:#cdb8df!important;font:500 12px/1.4 Inter,system-ui,sans-serif!important;text-align:left!important;white-space:normal!important;box-shadow:none!important;transition:background .16s,color .16s!important;transform:none!important}.sn-sidebar .tab-btn svg{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;opacity:.85}.sn-label{flex:1;min-width:0}.sn-active-dot{width:5px;height:5px;border-radius:50%;background:#e1b6ff;flex-shrink:0;opacity:0}body[data-app="admin"] .sn-sidebar .tab-btn:hover{background:#64398433!important;border-color:#80549d44!important;color:#fff!important}body[data-app="admin"] .sn-sidebar .tab-btn.active{background:linear-gradient(105deg,#7542a0,#49275f)!important;border-color:#b17dd555!important;color:#fff!important;box-shadow:0 5px 16px #0002,inset 0 1px #d8b2f214!important}body[data-app="admin"] .sn-sidebar .tab-btn::before{content:none!important}.sn-sidebar .tab-btn.active .sn-active-dot{opacity:1}.sn-sidebar .tab-btn.active svg{opacity:1}.sn-sidebar button:focus-visible,.sn-mobile-toggle:focus-visible{outline:2px solid #d7a8fb!important;outline-offset:2px}.sn-footer{flex-shrink:0;margin:0 17px 18px;padding:16px 10px 0;border-top:1px solid #64417b55;display:flex;gap:11px;align-items:center}.sn-footer>span{color:#c294e7;font-size:24px}.sn-footer strong{display:block;font-size:10px;font-weight:500;color:#d0b5e2}.sn-footer small{display:block;font-size:9px;color:#9672ae;margin-top:5px}.sn-mobile-toggle{display:none}.sn-backdrop{display:none}body[data-app="admin"] .admin-header{margin-left:var(--sb-sidebar)!important;width:calc(100% - var(--sb-sidebar))!important;grid-template-columns:minmax(180px,1fr) auto!important}body[data-app="admin"] .admin-main{margin-left:var(--sb-sidebar)!important;width:calc(100% - var(--sb-sidebar))!important;min-width:0!important}body[data-app="admin"].sn-compact .sn-brand{flex-direction:column;min-height:115px;gap:8px;padding:19px 10px 14px}body[data-app="admin"].sn-compact .sn-brand-copy,body[data-app="admin"].sn-compact .sn-label,body[data-app="admin"].sn-compact .sn-active-dot,body[data-app="admin"].sn-compact .sn-group-label,body[data-app="admin"].sn-compact .sn-footer{display:none}body[data-app="admin"].sn-compact .sn-nav-body{padding:16px 13px}body[data-app="admin"].sn-compact .sn-sidebar .tab-btn{justify-content:center!important;padding:13px 0!important}body[data-app="admin"].sn-compact .sn-group+.sn-group{margin-top:16px;padding-top:16px;border-top:1px solid #63407944}
@media(min-width:901px){body[data-app="admin"] .sn-mobile-toggle{display:none!important}}
@media(max-width:900px){body[data-app="admin"],body[data-app="admin"].sn-compact{--sb-sidebar:0px!important}body[data-app="admin"] nav.admin-tabs.sn-sidebar{width:min(290px,85vw)!important;transform:translateX(-102%)!important;z-index:10001!important;visibility:hidden!important}body[data-app="admin"].sn-nav-open nav.admin-tabs.sn-sidebar{transform:translateX(0)!important;visibility:visible!important}body[data-app="admin"].sn-nav-open{overflow:hidden!important}.sn-backdrop{position:fixed;inset:0;background:#070311b3;backdrop-filter:blur(4px);z-index:10000}body.sn-nav-open .sn-backdrop{display:block}.sn-sidebar .sn-collapse{display:none!important}.sn-sidebar .sn-close{display:block!important}.sn-sidebar .sn-brand{flex-direction:row!important;min-height:92px!important;gap:11px!important;padding:22px 18px!important}body[data-app="admin"].sn-compact .sn-brand-copy{display:block!important}body[data-app="admin"].sn-compact .sn-label{display:block!important}body[data-app="admin"].sn-compact .sn-active-dot{display:block!important}body[data-app="admin"].sn-compact .sn-group-label{display:block!important}body[data-app="admin"].sn-compact .sn-footer{display:flex!important}body[data-app="admin"].sn-compact .sn-sidebar .tab-btn{justify-content:flex-start!important;padding:12px 13px!important}body[data-app="admin"].sn-compact .sn-group+.sn-group{margin-top:23px;padding-top:0;border:0}body[data-app="admin"] .admin-header{margin-left:0!important;width:100%!important;padding:16px!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;gap:12px!important;min-height:84px!important}body[data-app="admin"] .admin-main{margin-left:0!important;width:100%!important;padding:18px 14px 40px!important}body[data-app="admin"] .sn-mobile-toggle{display:grid!important;place-items:center;width:40px;height:40px;min-width:40px;padding:9px;background:#432759;border:1px solid #80529c;border-radius:10px;color:#e9d1fb;cursor:pointer;grid-column:1!important;grid-row:1!important}body[data-app="admin"] .sn-mobile-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}body[data-app="admin"] .starby-store-switcher{grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important}body[data-app="admin"] .starby-store-switcher select{width:100%!important;min-width:0!important}body[data-app="admin"] .admin-header-actions{grid-column:3!important;grid-row:1!important;min-width:0!important;width:auto!important}body[data-app="admin"] .admin-header-actions .view-site{font-size:11px!important;padding:0 11px!important}.sb-mobile-menu,.sb-sidebar-backdrop{display:none!important}}
@media(max-width:480px){body[data-app="admin"] .admin-header{grid-template-columns:40px minmax(0,1fr)!important}body[data-app="admin"] .admin-header-actions{grid-column:2!important;grid-row:2!important;justify-content:flex-end!important}.sn-hero{min-width:0}}
@media(prefers-reduced-motion:reduce){body[data-app="admin"] nav.admin-tabs.sn-sidebar,body[data-app="admin"] .sn-sidebar .tab-btn{transition:none!important}}

/* Shell refinado: alinhamento único, densidade equilibrada e ações discretas. */
body[data-app="admin"]{--sb-sidebar:240px!important}
body[data-app="admin"] nav.admin-tabs.sn-sidebar{background:radial-gradient(ellipse at 0 0,#743aa326,transparent 42%),#120d20!important;border-right:1px solid #aa85df20!important;box-shadow:none!important}
.sn-sidebar .sn-brand{min-height:88px;padding:18px 18px;gap:10px;border-color:#aa85df20}
.sn-sidebar .sn-brand-mark{font-size:29px;width:32px}
.sn-sidebar .sn-brand-copy strong{font-size:23px}
.sn-sidebar .sn-brand-copy small{color:#978aa9;font-size:10px}
.sn-sidebar .sn-collapse,.sn-sidebar .sn-close{background:#ffffff05;border-color:#aa85df28;height:30px;width:26px;border-radius:8px}
.sn-sidebar .sn-nav-body{padding:18px 12px 12px;scrollbar-width:thin;scrollbar-color:#66507e transparent}
.sn-sidebar .sn-nav-body::-webkit-scrollbar{width:4px}
.sn-sidebar .sn-nav-body::-webkit-scrollbar-thumb{background:#66507e;border-radius:8px}
.sn-sidebar .sn-nav-body::-webkit-scrollbar-track{background:transparent}
.sn-sidebar .sn-group{gap:3px}
.sn-sidebar .sn-group+.sn-group{margin-top:20px}
.sn-sidebar .sn-group-label{font-size:9px;letter-spacing:1.3px;color:#827292;margin-bottom:7px;padding:0 12px}
body[data-app="admin"] .sn-sidebar .tab-btn{min-height:40px!important;padding:9px 12px!important;border-radius:8px!important;font-size:12px!important;font-weight:500!important;color:#bfb2d2!important;gap:11px!important}
.sn-sidebar .tab-btn svg{width:18px;height:18px;flex-basis:18px}
body[data-app="admin"] .sn-sidebar .tab-btn.active{background:linear-gradient(100deg,#844bea30,#a07bdc13)!important;border-color:#a777ee36!important;box-shadow:none!important;color:#f2eaff!important}
body[data-app="admin"] .sn-sidebar .tab-btn.active::before{content:""!important;position:absolute!important;left:-1px!important;top:11px!important;width:3px!important;height:18px!important;border-radius:3px!important;background:#b98aff!important;box-shadow:none!important}
.sn-sidebar .sn-active-dot{width:4px;height:4px;background:#be95fc}
.sn-sidebar .sn-footer{margin:0 18px 14px;padding:12px 0 0;gap:10px;border-color:#aa85df20}
.sn-sidebar .sn-footer>span{font-size:20px}
.sn-sidebar .sn-footer small{margin-top:3px}
body[data-app="admin"] .admin-header.starby-header-clean{min-height:88px!important;padding:16px 28px!important;grid-template-columns:minmax(180px,300px) auto!important;gap:20px!important;background:#140e24!important;border-bottom:1px solid #aa85df20!important;box-shadow:none!important}
body[data-app="admin"] .admin-header.starby-header-clean .starby-store-switcher{display:grid!important;grid-template-columns:1fr!important;gap:4px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;grid-column:1!important;grid-row:1!important;min-width:0!important}
body[data-app="admin"] .admin-header.starby-header-clean .starby-store-switcher label{color:#9c8aad!important;font-size:9px!important;font-weight:600!important;letter-spacing:1.2px!important;margin:0!important}
body[data-app="admin"] .admin-header.starby-header-clean .starby-store-switcher select{height:34px!important;min-height:34px!important;max-width:100%!important;padding:0 10px!important;border:1px solid #a881d52e!important;border-radius:8px!important;background:#211632!important;color:#eee5fb!important;font-size:13px!important;font-weight:600!important;box-shadow:none!important}
body[data-app="admin"] .admin-header.starby-header-clean .admin-header-actions{grid-column:2!important;grid-row:1!important;display:flex!important;gap:12px!important;min-width:0!important;width:auto!important;flex-wrap:nowrap!important;justify-content:flex-end!important}
body[data-app="admin"] .admin-header-actions .view-site{display:inline-flex!important;align-items:center!important;gap:8px!important;min-height:38px!important;padding:0 14px!important;border-radius:8px!important;background:#8b5cf617!important;border:1px solid #a881d542!important;color:#dfcaff!important;font-size:12px!important;font-weight:600!important;box-shadow:none!important}
body[data-app="admin"] .admin-header-actions .view-site::after{content:'↗';font-size:16px}
body[data-app="admin"] .admin-header-actions .starby-logged-user-badge{display:flex!important;align-items:center!important;gap:9px!important;max-width:220px!important;min-width:0!important;padding:0 0 0 14px!important;background:none!important;border:0!important;border-left:1px solid #aa85df28!important;border-radius:0!important;box-shadow:none!important}
body[data-app="admin"] .admin-header-actions .starby-logged-user-badge span:last-child{min-width:0!important}
body[data-app="admin"] .admin-header-actions .starby-logged-user-badge strong{font-size:12px!important;font-weight:600!important;color:#e8def5!important;max-width:160px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body[data-app="admin"] .admin-header-actions .starby-logged-user-badge small{color:#9987ad!important;font-size:10px!important;font-weight:500!important;margin-top:5px!important}
body[data-app="admin"] .admin-header-actions .starby-logged-user-icon{width:32px!important;height:32px!important;flex:0 0 32px;border-radius:50%!important;background:#9e6edd20!important;color:#ceb1f4!important}
body[data-app="admin"] .admin-header-actions .starby-logged-user-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
body[data-app="admin"] .admin-header-actions .starby-admin-logout{min-height:36px!important;height:36px!important;padding:0 10px!important;background:transparent!important;border:1px solid transparent!important;border-radius:8px!important;box-shadow:none!important;color:#b8a4c9!important;font-size:12px!important;font-weight:500!important}
body[data-app="admin"] .admin-header-actions .starby-admin-logout:hover{background:#e7789a14!important;border-color:#e7789a30!important;color:#f0a2b9!important}
body[data-app="admin"] .admin-header :is(button,a,select):focus-visible{outline:2px solid #c4a0fa!important;outline-offset:3px!important}
@media(min-width:901px) and (max-height:740px){.sn-sidebar .sn-nav-body{padding-top:12px}.sn-sidebar .sn-group+.sn-group{margin-top:12px}.sn-sidebar .sn-group-label{margin-bottom:4px}body[data-app="admin"] .sn-sidebar .tab-btn{min-height:36px!important;padding:7px 12px!important}.sn-sidebar .sn-footer{margin-bottom:10px}}
@media(max-width:1100px) and (min-width:901px){body[data-app="admin"] .admin-header.starby-header-clean{padding:16px 22px!important;grid-template-columns:minmax(150px,1fr) auto!important;gap:14px!important}body[data-app="admin"] .admin-header-actions .starby-logged-user-badge strong{max-width:110px!important}}
@media(max-width:900px){
 body[data-app="admin"],body[data-app="admin"].sn-compact{--sb-sidebar:0px!important}
 body[data-app="admin"] .admin-header.starby-header-clean{grid-template-columns:40px minmax(0,1fr)!important;padding:14px 16px!important;gap:12px!important}
 body[data-app="admin"] .admin-header.starby-header-clean .starby-store-switcher{grid-column:2!important;grid-row:1!important;max-width:none!important}
 body[data-app="admin"] .admin-header.starby-header-clean .admin-header-actions{grid-column:1/-1!important;grid-row:2!important;justify-content:flex-end!important;padding-top:10px!important;border-top:1px solid #aa85df20!important;gap:10px!important}
 body[data-app="admin"] .admin-header-actions .starby-logged-user-badge{margin-left:auto!important;max-width:calc(100% - 160px)!important;padding-left:10px!important}
 body[data-app="admin"] .admin-header-actions .starby-logged-user-badge strong{max-width:100%!important}
 body[data-app="admin"] .sn-mobile-toggle{background:#8b5cf617!important;border-color:#a881d542!important}
 .sn-sidebar .sn-brand{min-height:88px!important}
}
@media(max-width:380px){body[data-app="admin"] .admin-header-actions .starby-logged-user-icon{display:none!important}body[data-app="admin"] .admin-header-actions .view-site{padding:0 9px!important;font-size:11px!important}}

/* Nome do usuário visível, sem comprimir o texto até largura zero. */
body[data-app="admin"] .admin-header-actions .starby-logged-user-badge{flex:0 0 auto!important;width:auto!important;max-width:none!important}
body[data-app="admin"] .admin-header-actions .starby-logged-user-badge>span:last-child{display:grid!important;flex:1 0 auto!important;width:auto!important;visibility:visible!important;opacity:1!important}
body[data-app="admin"] .admin-header-actions .starby-logged-user-badge strong{display:block!important;max-width:none!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.35!important;overflow-wrap:anywhere!important}
@media(min-width:901px){body[data-app="admin"] .admin-header-actions .starby-logged-user-badge>span:last-child{max-width:200px!important}}
@media(max-width:900px){
 body[data-app="admin"] .admin-header.starby-header-clean .admin-header-actions{flex-wrap:wrap!important}
 body[data-app="admin"] .admin-header-actions .starby-logged-user-badge{flex:0 1 auto!important;max-width:100%!important}
 body[data-app="admin"] .admin-header-actions .starby-logged-user-badge>span:last-child{flex:1 1 auto!important}
}

/* Logo original; a versão recolhida mostra a estrela da mesma imagem. */
.sn-sidebar .sn-brand-logo{flex:1;min-width:0;height:52px;display:flex;align-items:center;justify-content:flex-start}
.sn-sidebar .sn-logo-full{display:block;width:100%;height:100%;object-fit:contain;object-position:left center}
.sn-sidebar .sn-logo-star{display:none;width:39px;height:42px;overflow:hidden;position:relative;flex-shrink:0}
.sn-sidebar .sn-logo-star img{display:block;position:absolute;left:0;top:0;width:114px!important;max-width:none!important;height:auto!important}
@media(min-width:901px){
 body[data-app="admin"].sn-compact .sn-brand{min-height:88px;padding:10px;gap:4px}
 body[data-app="admin"].sn-compact .sn-brand-logo{flex:none;height:42px;justify-content:center}
 body[data-app="admin"].sn-compact .sn-logo-full{display:none}
 body[data-app="admin"].sn-compact .sn-logo-star{display:block}
 body[data-app="admin"].sn-compact .sn-collapse{height:22px;font-size:20px}
}

/* Controle de expandir/recolher centralizado na altura do menu lateral. */
@media(min-width:901px){
 body[data-app="admin"] nav.admin-tabs.sn-sidebar{overflow:visible!important}
 body[data-app="admin"] .sn-sidebar .sn-brand{position:static!important;height:88px!important;min-height:88px!important;max-height:88px!important;justify-content:center!important}
 body[data-app="admin"] .sn-sidebar .sn-logo-full{max-width:166px;margin-inline:auto}
 body[data-app="admin"].sn-compact .sn-sidebar .sn-brand{flex-direction:row!important;padding:18px 10px!important;gap:0!important}
 body[data-app="admin"] .sn-sidebar .sn-brand .sn-collapse{position:absolute!important;top:50%!important;right:-21px!important;transform:translateY(-50%)!important;display:grid!important;place-items:center!important;width:22px!important;min-width:22px!important;height:36px!important;min-height:36px!important;padding:0!important;margin:0!important;border:1px solid #a881d542!important;border-left:0!important;border-radius:0 9px 9px 0!important;background:#211632!important;color:#dfcaff!important;font-size:24px!important;line-height:1!important;box-shadow:none!important;z-index:2!important;cursor:pointer}
 body[data-app="admin"] .sn-sidebar .sn-brand .sn-collapse:hover{background:#352147!important;color:#fff!important}
}

/* Respiro junto à aba lateral e foto de perfil. */
@media(min-width:901px){body[data-app="admin"] .admin-header.starby-header-clean{padding-left:52px!important}}
body[data-app="admin"] .admin-header-actions button.starby-profile-photo{position:relative;display:grid!important;place-items:center!important;flex:0 0 36px!important;width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border-radius:50%!important;border:1px solid #ac80e252!important;background:#9e6edd20!important;color:#ceb1f4!important;overflow:hidden;cursor:pointer;box-shadow:none!important}
.starby-profile-photo img,.sp-preview img{width:100%;height:100%;object-fit:cover;display:block}
.starby-profile-photo svg,.sp-preview svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
body[data-app="admin"] .admin-header-actions button.starby-profile-photo:hover{border-color:#d0afff!important;background:#8556bc50!important}
.starby-photo-dialog{box-sizing:border-box;width:min(400px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:24px;border:1px solid #a881d54a;border-radius:18px;background:#181024;color:#eee5fb;box-shadow:0 24px 80px #0008;font-family:inherit}
.starby-photo-dialog::backdrop{background:#080411b8;backdrop-filter:blur(4px)}
.starby-photo-dialog header,.starby-photo-dialog footer,.sp-options{display:flex;align-items:center;justify-content:space-between;gap:12px}
.starby-photo-dialog h2{margin:0;font-size:19px;color:#f3ebff}
.starby-photo-dialog button{padding:10px 14px;border:1px solid #a881d540;border-radius:9px;background:#2b1c3f;color:#eee5fb;cursor:pointer;font:inherit;font-size:12px;box-shadow:none}
.starby-photo-dialog button:focus-visible{outline:2px solid #c4a0fa;outline-offset:3px}
.starby-photo-dialog button:disabled{opacity:.55;cursor:wait}
.starby-photo-dialog .sp-close{font-size:22px;padding:2px 10px;background:transparent}
.sp-preview{display:grid;place-items:center;width:110px;height:110px;margin:24px auto 16px;border-radius:50%;overflow:hidden;background:#352147;border:2px solid #9867cc;color:#ceb1f4}
.sp-preview svg{width:40px;height:40px}
.starby-photo-dialog p{font-size:12px;line-height:1.6;color:#baa8cd;text-align:center}
.sp-options{justify-content:center;flex-wrap:wrap}
.starby-photo-dialog .sp-message{min-height:38px;margin:14px 0}
.starby-photo-dialog footer{justify-content:flex-end;padding-top:16px;border-top:1px solid #a881d525}
.starby-photo-dialog .sp-save{background:#7940c8;border-color:#ab78eb;color:#fff}
