/* Shared account slot reserves its final width before authentication loads. */
.home-page .account-slot{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:0 0 194px;width:194px;margin-left:4px}
.home-page .account-slot>.header-action{margin:0}
.home-page .account-menu{justify-content:flex-end}
.project-structure .mobile-structure-toggle{display:none}
@media(max-width:1100px){
 .home-page .header-inner{gap:16px}
 .home-page .menu-toggle{min-width:44px;min-height:44px;place-content:center}
 .home-page .site-nav.open a{min-height:44px;display:flex;align-items:center}
}
@media(max-width:700px){
 .home-page .header-inner{gap:8px}
 .home-page .account-slot{flex-basis:96px;width:96px;margin:0}
 .home-page .account-slot>.header-action{display:inline-flex;min-height:40px;padding:0 12px}
 .home-page .account-menu-main,.home-page #cabinetHome.account-menu-main{width:44px;padding:0}
 .home-page .account-menu-avatar{display:grid}
 .home-page .account-menu-label{display:none}
 .home-page .brand{min-width:0}
 .home-page .brand-word{font-size:16px;letter-spacing:.035em}
 .home-page .cabinet-main{padding-top:18px}
 .cabinet-prototype .account-layout{row-gap:16px}
 .cabinet-prototype .account-layout>.project-structure{position:static;padding:0;border:1px solid var(--line);border-radius:6px;max-height:none;overflow:visible;background:var(--paper)}
 .project-structure .mobile-structure-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 14px;border:0;background:transparent;color:var(--forest);font:600 14px/1.4 var(--font-ui);text-align:left}
 .mobile-structure-toggle::after{content:'\2304';font-size:18px;flex:none}
 .mobile-structure-toggle[aria-expanded=true]::after{transform:rotate(180deg)}
 .cabinet-prototype .project-structure:not([data-mobile-open])>nav{display:none}
 .cabinet-prototype .project-structure[data-mobile-open]>nav{padding:6px;max-height:45svh;overflow-y:auto}
 .project-structure button{min-height:42px}
 .cabinet-prototype .account-layout .library-toolbar{gap:14px;margin-bottom:18px}
 .cabinet-prototype .account-layout .library-actions{display:flex;width:100%;gap:8px}
 .cabinet-prototype .account-layout .library-actions .button{flex:1;min-height:44px}
 .cabinet-prototype .account-layout .library-controls{gap:10px}
 .cabinet-prototype .account-layout .project-grid,.account-project-grid{grid-template-columns:minmax(0,1fr);gap:18px}
 .cabinet-prototype .library-layout{display:none}
 .cabinet-type-filter{flex:1}
 .cabinet-type-filter select{width:100%;min-height:44px}
 .home-page input:not([type=checkbox]):not([type=radio]),.home-page select,.home-page textarea{font-size:16px}
 .subscription-offers{grid-template-columns:minmax(0,1fr)}
 .account-qr-layout{justify-items:start}
 .profile-settings,.profile-form,.cabinet-content{min-width:0}
 .project-preview{max-height:calc(100svh - 24px);overflow-y:auto}
 .project-preview .preview-close{position:sticky;top:8px;justify-self:end;grid-column:1;grid-row:1;z-index:2;margin:8px}
 .project-preview .preview-image{grid-column:1;grid-row:1}
 .home-page .hero h1{font-size:clamp(32px,8.2vw,48px);overflow-wrap:break-word}
 .home-page .hero{padding-top:32px}
 .home-page .hero::before{display:none}
 .subscription-offer{min-height:0}
 .subscription-offer .subscription-price{margin-top:24px}
 .home-page .pricing-card{min-width:0}
}
@media(max-width:360px){.home-page .brand-word{font-size:14px}.home-page .brand{gap:5px}.home-page .header-inner{gap:4px}}

/* Phone hero uses the actual gallery height, including its perspective edges. */
@media(max-width:760px){
 .home-page .hero{gap:24px;padding-bottom:0;align-items:stretch}
 .home-page .hero h1{font-size:clamp(32px,8.2vw,48px)}
 .home-page .process-section{margin-top:12px}
 .home-page .hero h1{margin-bottom:22px}
 .home-page .hero-lead{font-size:15px;line-height:1.55;margin-bottom:0}
 .home-page .hero-release{margin-top:22px}
 .home-page .hero-release p{font-size:14px;line-height:1.6;margin-bottom:20px}
 .home-page .hero-release .button{max-width:100%;gap:16px;padding-inline:16px;font-size:13px}
 .home-page .hero-gallery-host{width:100%;max-width:480px;margin-inline:auto;height:var(--mobile-gallery-height,350px)}
}
