body{min-height:100svh}.app-start{min-height:100svh;display:grid;place-items:center;color:var(--muted)}.form-error{color:#ff8590;border:1px solid #73333a;background:#38171c;border-radius:10px;padding:12px;line-height:1.5;margin:14px 0}.auth-footnote{text-align:center;margin-top:25px}.auth-card form>.button{margin-top:22px}.auth-card .logo{margin-bottom:28px}.auth-card label{margin-bottom:16px}.auth-card .auth-options label{margin-bottom:0}.inline-notice,.stage-notice{background:var(--surface2);border:1px solid var(--line);border-radius:12px;padding:14px 16px;color:var(--muted);font-size:12px;line-height:1.7;margin-bottom:22px}.stage-notice{display:flex;align-items:center;gap:12px}.stage-notice .icon{color:var(--text)}.general-track{width:100%}.sidebar{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.side-nav a{flex-shrink:0}.side-profile .avatar{flex-shrink:0}.sidebar .credit-card{margin-top:auto}.avatar{overflow:hidden}.avatar>span{display:grid;place-items:center;width:100%;height:100%;font-weight:600;font-size:12px}.avatar img{width:100%;height:100%;object-fit:cover}.sidebar-collapsed .sidebar{overflow-x:hidden}.project-cover-placeholder{width:100%;height:100%;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:radial-gradient(ellipse at 50% 80%,var(--accent-bg),var(--surface))}.project-cover-placeholder .mark{width:48px;height:48px}.project-cover-placeholder span{font-size:9px;letter-spacing:2px;color:var(--muted)}.studio-project-thumb.no-cover{background:var(--surface2)}.studio-project-card-info h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-project-card-actions{gap:8px}.studio-project-card-actions>.button{margin-right:auto}.favorite.selected{color:var(--red)}.favorite.selected .icon{fill:var(--accent-bg)}.project-open-symbol{display:none}.empty-state{min-height:245px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;gap:8px}.empty-state>.icon{width:30px;height:30px;margin-bottom:12px;color:var(--muted)}.empty-state h3{margin:0}.empty-state p{max-width:370px;margin:0 0 12px}.empty-state .button{margin-top:6px}.studio-gallery-grid>.empty-state{min-width:0}.dialog-cover{width:100%;max-height:380px;object-fit:contain;border-radius:12px;margin-bottom:18px}.form-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:22px}.danger{color:#ff929b}.light .danger{color:#a71828}.settings-section{margin-top:20px}.settings-layout>div{min-width:0}.settings-nav{align-self:start}.settings-nav .text-button{padding:13px}.settings-shortcuts small{line-height:1.5}.profile-hero{gap:16px}.profile-hero>.button{margin-left:auto}.plan-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:25px 0}.plan-details>div{display:flex;flex-direction:column;gap:12px;border:1px solid var(--line);border-radius:14px;padding:20px;background:var(--surface2)}.plan-details span{font-size:12px;color:var(--muted)}.plan-details strong{font-size:20px;letter-spacing:-.6px}.plan-unlimited{font-size:17px!important}.session-row{display:flex;gap:14px;align-items:center;border-top:1px solid var(--line);padding:18px 0}.session-row p{margin:4px 0 0;font-size:12px}.popover-user{min-width:0}.popover-user>div{min-width:0}.popover-user small{overflow-wrap:anywhere}.popover-links a,.popover-links button{width:100%;text-align:left}.popover-head{display:flex;justify-content:space-between;align-items:center;padding:18px;border-bottom:1px solid var(--line)}.popover-head h3{margin:0}.notification-item{display:flex;gap:14px;padding:18px;border-bottom:1px solid var(--line)}.notification-item p{font-size:12px;margin:6px 0}.notification-item small{color:var(--muted)}.notification-item.unread>.icon{color:var(--red)}.notification-item>div{min-width:0}.not-found{max-width:800px;padding:80px 28px;margin:auto}.not-found .logo{margin-bottom:70px}.not-found h1{font-size:38px}#app-dialog{border:1px solid var(--line,#303030);background:var(--surface,#141414);color:var(--text,#eee);border-radius:22px;padding:28px;width:92vw;max-width:520px;max-height:90dvh;overflow:auto;box-shadow:0 30px 100px #0008}#app-dialog::backdrop{background:#000a;backdrop-filter:blur(7px)}#dialog-content>h2{padding-right:20px;margin:5px 0 19px}#app-dialog input,#app-dialog select,#app-dialog textarea{margin-top:8px}#app-dialog label{display:block;font-size:12px;color:var(--muted,#999);margin-bottom:16px}#app-dialog form>.button.full{margin-top:10px}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,12px);max-width:min(520px,calc(100vw - 32px));background:var(--surface,#1b1b1b);color:var(--text,#eee);border:1px solid var(--line,#333);border-radius:12px;padding:14px 20px;opacity:0;visibility:hidden;z-index:2000;pointer-events:none;font-size:13px;line-height:1.5}#toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}body[data-home="1"] .menu-open nav{display:flex}body[data-home="1"] #app-dialog p{color:#999}body[data-home="1"] #app-dialog h2{font-size:24px}
@media(max-width:900px){.plan-details{grid-template-columns:1fr}.profile-hero{flex-wrap:wrap}.profile-hero>.button{margin-left:0}}
@media(max-width:680px){.stage-notice{align-items:flex-start}.topbar-right>.pill{display:none}.content{padding-bottom:max(27px,env(safe-area-inset-bottom))}.plan-details>div{padding:16px}.form-actions>.button{flex:1}.sidebar{padding-bottom:24px}#toast{bottom:max(18px,env(safe-area-inset-bottom))}.sidebar .credit-card{margin-top:24px}.settings-layout{grid-template-columns:1fr!important}.settings-nav{display:flex;flex-wrap:wrap;gap:4px}.settings-nav a{padding:10px;font-size:11px}.settings-nav a .icon{width:15px}.settings-nav .text-button{padding:10px}.auth-card .auth-options{gap:12px;flex-wrap:wrap}.auth-art{display:none}.auth-layout{grid-template-columns:1fr}.auth-main{padding:90px 24px 40px;min-height:100svh}.auth-back{top:24px;right:24px}.studio-project-card-actions .icon-button{width:33px;height:33px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

body[data-home="1"].light{--bg:#f4f4f5;--surface:#fff;--surface2:#eee;--surface3:#e8e8e8;--line:#d8d8db;--text:#171717;--muted:#67676e;--accent-bg:#fbe9eb;color-scheme:light}body[data-home="1"].light .header{background:#f4f4f5f2}body[data-home="1"].light .hero-visual{background:#0b0b0b}body[data-home="1"].light .hero-visual .visual-caption,body[data-home="1"].light .studio-shell{color:#eee}

/* Controle do menu: icone centralizado e acao acessivel nos dois estados. */
@media(min-width:681px){
 .sidebar-brand-shell{gap:6px}
 .sidebar-brand-shell .logo{font-size:17px;min-width:0}
 .sidebar-brand-shell .mark{width:25px;height:25px}
 .sidebar-collapse{display:grid;flex:0 0 25px;place-items:center}
 .sidebar-collapsed .sidebar-collapse{display:none}
 .sidebar-collapsed .sidebar-brand-shell .logo::after{inset:50% auto auto 50%;width:18px;height:18px;transform:translate(-50%,-50%);pointer-events:none}
 .sidebar-collapsed .sidebar-brand-shell .mark{width:29px;height:29px}
}

/* Menu movel: conserva a largura e os textos do HTML, independentemente do desktop. */
body.account-modal-open{overflow:hidden}
@media(max-width:680px){
 body.nav-open{overflow:hidden}
 .sidebar{width:223px;max-width:calc(100vw - 48px);height:100dvh;overscroll-behavior:contain;touch-action:pan-y;overflow-y:auto;overflow-x:hidden}
 .sidebar>*{flex-shrink:0}
 .sidebar-brand-shell .logo{white-space:nowrap}
 .sidebar-collapse{display:none}
 .side-nav a{flex-wrap:nowrap;min-width:0}
 .sidebar-menu-label{flex:1 1 auto;min-width:0;max-width:160px;white-space:nowrap;opacity:1;transform:none}
 .nav-badge{flex-shrink:0}
 .side-profile>div{min-width:0;text-align:left}
 .side-profile strong,.side-profile small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* A janela usa a estrutura e as regras originais de panel-reference.css. */
#account-settings-content .settings-layout{grid-template-columns:1fr!important}
#account-settings-content .settings-shortcuts>a{min-width:0}
#account-settings-content .profile-hero{flex-wrap:nowrap}
#account-settings-content .profile-hero>div{min-width:0}
#account-settings-content .profile-hero p{overflow-wrap:anywhere}

/* Conta no celular: os mesmos componentes, sem comprimir foto, campos ou botao fechar. */
#account-settings-content .profile-hero>.avatar{flex:0 0 52px}
#account-settings-content input,#account-settings-content select,#account-settings-content textarea{min-width:0;max-width:100%;box-sizing:border-box}
#account-settings-content{overscroll-behavior:contain}
#overlay-root>.account-popover{max-height:calc(100dvh - 24px);overscroll-behavior:contain}
@media(max-width:680px){
 .account-modal-layout>nav{width:calc(100% - 44px);margin-right:44px;padding-right:12px;scroll-padding-inline:12px;box-sizing:border-box;min-height:64px}
 #account-settings-content .profile-hero{flex-wrap:wrap;gap:12px}
 #account-settings-content .profile-hero>div{flex:1 1 120px}
 #account-settings-content .profile-hero>.button{flex:0 0 auto;margin-left:auto}
 #account-settings-content .field-row{grid-template-columns:minmax(0,1fr)}
 #account-settings-content .theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #account-settings-content 
 #account-settings-content .session-row{flex-wrap:wrap}
}
