/* Keep the modern More page focused; legacy handlers stay mounted for reuse. */
#more.mobile-menu-owner>:not(#mobileMoreMenu){display:none!important;}
#mobileMoreMenu[hidden]{display:none!important;}
#mobileMoreMenu{max-width:760px;margin:0 auto;}
#mobileMoreMenu h1{font-size:clamp(28px,4vw,36px);margin:0 0 8px;}
#mobileMoreMenu header p{color:var(--brand-muted);margin:0 0 24px;}
#mobileMoreMenu nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.app #mobileMoreMenu .mobile-more-destination{min-height:52px;padding:14px 16px;text-align:left;white-space:normal;background:var(--brand-surface);border:1px solid var(--brand-control-line);border-radius:10px;color:var(--brand-text);}
@media(max-width:640px){
 :root{--mobile-nav-height:68px;}
 body{padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 16px);scroll-padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 16px);}
 .app .mobile-nav{height:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));min-height:0;box-sizing:border-box;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:row;gap:4px;padding:4px 8px env(safe-area-inset-bottom);background:var(--brand-surface);}
 body .app .mobile-nav button{width:100%;min-width:44px;min-height:52px;height:auto;gap:3px;padding:4px;border-radius:8px;background:transparent;color:var(--brand-muted);transform:none;box-shadow:none;}
 body .app .mobile-nav button span{font-size:12px!important;line-height:1.2;}
 body .app .mobile-nav button svg{width:22px;height:22px;flex-shrink:0;}
 body .app .mobile-nav button[aria-current=page]{color:var(--brand-gold);background:var(--brand-gold-soft);box-shadow:inset 0 2px var(--brand-gold);}
 body .app .mobile-nav #mobileCreate{border:1px solid var(--brand-gold);background:var(--brand-gold);color:var(--brand-on-gold);border-radius:10px;font-size:16px;align-self:stretch;justify-self:stretch;}
 .app[data-sidebar-mode=compact] #appSidebar{padding-top:8px;}
 .app[data-sidebar-mode=compact] #appSidebar>*{flex-shrink:0;}
 .app[data-sidebar-mode=compact] #appSidebar #sidebarClose{position:sticky;top:0;z-index:5;order:-10;margin:0 0 8px auto;background:var(--brand-surface-soft);}
 #mobileMoreMenu nav{grid-template-columns:1fr;}
}
@media(max-width:380px){body .app .mobile-nav button span{font-size:11px!important;}}

/* Modern classic: warm ivory, brushed gold, grouped surfaces and restrained lines. */
#mobileMoreMenu{max-width:760px;padding:4px 0 24px;}
#mobileMoreMenu .classic-menu-head{margin-bottom:28px;}
#mobileMoreMenu .classic-company-name{font-size:11px;line-height:1.4;letter-spacing:1.8px;text-transform:uppercase;color:#c7ab76;margin:0 0 13px;font-weight:650;}
#mobileMoreMenu h1{font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;font-size:clamp(32px,5vw,44px);font-weight:500;letter-spacing:-1.2px;line-height:1.15;color:#f2eee5;margin:0 0 12px;}
#mobileMoreMenu h1>span{color:#d5b270;}
#mobileMoreMenu header>p:last-child{font-size:14px;line-height:1.6;color:#aeb4b3;max-width:32ch;margin:0;}
#mobileMoreMenu>nav{display:block;}
#mobileMoreMenu .classic-menu-group{margin:0 0 25px;}
#mobileMoreMenu .classic-menu-group h2{font:600 11px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:1.5px;text-transform:uppercase;color:#a6aaa7;margin:0 0 11px 3px;}
#mobileMoreMenu .classic-quick .classic-menu-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
.app #mobileMoreMenu .mobile-more-destination{display:flex;align-items:center;gap:12px;background:#191d1e;border:0;border-radius:0;box-shadow:none;color:#eeeae2;letter-spacing:0;font-weight:500;text-align:left;}
.app #mobileMoreMenu .classic-quick .mobile-more-destination{position:relative;min-height:112px;flex-direction:column;align-items:flex-start;justify-content:space-between;border:1px solid #343a3a;border-radius:17px;padding:18px;transition:background .15s,border-color .15s;}
#mobileMoreMenu .classic-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;color:#d7b777;flex-shrink:0;}
#mobileMoreMenu .classic-icon svg{width:23px;height:23px;}
#mobileMoreMenu .classic-quick .classic-icon{background:#2c2b24;border-radius:10px;width:38px;height:38px;}
#mobileMoreMenu .classic-item-label{font-size:15px;line-height:1.4;}
#mobileMoreMenu .classic-chevron{color:#798482;font-size:22px;line-height:1;margin-left:auto;}
#mobileMoreMenu .classic-quick .classic-chevron{position:absolute;right:18px;bottom:20px;font-size:20px;}
#mobileMoreMenu .classic-rows .classic-menu-items{border:1px solid #303737;border-radius:17px;overflow:hidden;background:#191d1e;}
.app #mobileMoreMenu .classic-rows .mobile-more-destination{width:100%;min-height:58px;padding:12px 16px;background:transparent;}
.app #mobileMoreMenu .classic-rows .mobile-more-destination+.mobile-more-destination{border-top:1px solid #2d3333;}
.app #mobileMoreMenu .mobile-more-destination:focus-visible{outline:2px solid #e8bf72;outline-offset:-3px;}
@media(hover:hover){.app #mobileMoreMenu .mobile-more-destination:hover{background:#242a2a!important;border-color:#706344!important;color:#fff6df;}}
.classic-drawer-head{display:contents;}
@media(max-width:640px){
 .app.product-pages-shell #more{padding:24px 20px 16px;}
 #mobileMoreMenu .classic-menu-head{margin-bottom:25px;}
 #mobileMoreMenu h1{font-size:35px;}
 #mobileMoreMenu .classic-quick .classic-item-label{font-size:15px;}
 .app .topbar{border-bottom-color:#282f2f;}
 .app .topbar #sidebarToggle{width:42px;height:42px;min-width:42px;border-color:#343c3b;background:#191e1e;border-radius:13px;box-shadow:none;}
 :root{--mobile-nav-height:72px;}
 .app .mobile-nav{padding:5px 12px env(safe-area-inset-bottom);gap:8px;border-top:1px solid #343a37;background:#171c1c;}
 body .app .mobile-nav button,body .app .mobile-nav button[aria-current=page]{min-height:58px;border:0;border-radius:0;background:transparent!important;box-shadow:none;color:#a3afad;gap:4px;padding:3px;}
 body .app .mobile-nav button[aria-current=page]{color:#e8c17b;}
 body .app .mobile-nav button span{font-size:11px!important;font-weight:500;letter-spacing:.1px;}
 body .app .mobile-nav button svg{width:25px;height:25px;}
 body .app .mobile-nav button[aria-current=page] svg{background:#302e25;border-radius:9px;padding:4px;box-sizing:content-box;}
 body .app .mobile-nav #mobileCreate{background:transparent!important;border:0;border-radius:0;color:#eeeae2;gap:3px;padding:0;}
 body .app .mobile-nav #mobileCreate svg{width:23px;height:23px;padding:6px;background:#ddbb78;border-radius:12px;color:#191a17;box-sizing:content-box;}
 .app[data-sidebar-mode=compact] #appSidebar{width:min(330px,calc(100vw - 38px));padding:0 18px 18px;background:#151b1b;border-right:1px solid #39403c;}
 .app[data-sidebar-mode=compact] #appSidebar .classic-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:10px;position:sticky;top:0;z-index:8;background:#151b1b;padding:18px 0 16px;margin:0 0 12px;border-bottom:1px solid #303736;flex-shrink:0;}
 .app[data-sidebar-mode=compact] #appSidebar .classic-drawer-head .product-logo{font-size:17px;margin:0;padding:0;gap:7px;}
 .app[data-sidebar-mode=compact] #appSidebar .classic-drawer-head .product-logo-mark{width:35px;height:30px;}
 .app[data-sidebar-mode=compact] #appSidebar .classic-drawer-head .product-logo-mark img{max-width:42px;}
 .app[data-sidebar-mode=compact] #appSidebar .classic-drawer-head #sidebarClose{position:static;order:0;margin:0;width:40px;min-width:40px;height:44px;border:0;border-radius:12px;background:#242b2b;color:#bec8c3;font-size:22px;}
 .app[data-sidebar-mode=compact] #appSidebar .product-company{margin:0 0 18px;padding:12px 13px;border:1px solid #303a37;border-radius:14px;background:#1b2321;gap:11px;}
 .app[data-sidebar-mode=compact] #appSidebar .product-company .product-avatar{width:36px;height:36px;background:#30382c;border-color:#555c44;color:#e0ce9f;border-radius:11px;}
 .app[data-sidebar-mode=compact] #appSidebar #createBtn{min-height:46px;margin:0 0 17px;border-radius:12px;background:#ddbb78;color:#191a17;font-weight:650;box-shadow:none;}
 .app[data-sidebar-mode=compact] #appSidebar nav{gap:3px;}
 .app[data-sidebar-mode=compact] #appSidebar .nav{min-height:47px;padding:9px 13px;border-radius:12px;font-size:15px;gap:13px;color:#b8c3bf;}
 .app[data-sidebar-mode=compact] #appSidebar .nav.active{background:#302f25!important;color:#ebd19c;}
 .app[data-sidebar-mode=compact] #appSidebar .classic-nav-icon{display:flex!important;align-items:center;justify-content:center;width:23px;height:23px;flex-shrink:0;}
 .app[data-sidebar-mode=compact] #appSidebar .classic-nav-icon svg{width:21px;height:21px;}
 .app[data-sidebar-mode=compact] #appSidebar .nav i{background:#343d36;color:#cbd6ca;border-radius:7px;font-size:11px;padding:1px 7px;}
 .app[data-sidebar-mode=compact] #appSidebar .product-settings{margin:12px 0;padding:10px 13px;font-size:13px;color:#aebdb6;}
 .app[data-sidebar-mode=compact] #appSidebar .profile{padding:16px 0 0;border-top-color:#333b36;}
 .app[data-sidebar-mode=compact] #appSidebar .profile #productProfileName{max-width:215px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;}
 .app[data-sidebar-mode=compact] #appSidebar .profile>div.avatar{width:32px;height:32px;flex-basis:32px;background:#25312c;color:#d5e1d8;}
 .app[data-sidebar-mode=compact] #appSidebar .product-account #authLogoutBtn{min-height:44px;border-radius:12px;background:transparent!important;border-color:#37433e!important;color:#c3d0c7!important;}
}
@media(prefers-reduced-motion:reduce){#mobileMoreMenu .mobile-more-destination{transition:none;}}

/* Phone menu opens the same labelled rail as desktop. */
@media(max-width:640px){
 .app[data-sidebar-mode=compact] #appSidebar:not([hidden]){width:108px;padding:14px 10px 18px;align-items:stretch;background:#141819;overflow-y:auto;}
 .app[data-sidebar-mode=compact] #appSidebar .classic-drawer-head{position:static;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;margin:0 0 24px;border:0;min-height:44px;background:transparent;}
 .app[data-sidebar-mode=compact] #appSidebar .classic-drawer-head .product-logo{justify-content:center;}
 .app[data-sidebar-mode=compact] #appSidebar .classic-drawer-head .product-logo-mark{width:48px;height:44px;}
 .app[data-sidebar-mode=compact] #appSidebar .classic-drawer-head .product-logo-mark img{max-width:54px;}
 .app[data-sidebar-mode=compact] #appSidebar .classic-drawer-head #sidebarClose{position:static;order:-1;margin:0 0 12px;width:44px;min-width:44px;height:44px;background:#232929;border:1px solid #58605b;}
 .app[data-sidebar-mode=compact] #appSidebar .product-logo strong,
 .app[data-sidebar-mode=compact] #appSidebar .brand,
 .app[data-sidebar-mode=compact] #appSidebar .product-company>div,
 .app[data-sidebar-mode=compact] #appSidebar .product-role,
 .app[data-sidebar-mode=compact] #appSidebar .profile>div:last-child,
 .app[data-sidebar-mode=compact] #appSidebar .status,
 .app[data-sidebar-mode=compact] #appSidebar .workspace-extra-tools{display:none!important;}
 .app[data-sidebar-mode=compact] #appSidebar .product-company{justify-content:center;background:transparent;border:0;padding:0;margin:0 0 24px;}
 .app[data-sidebar-mode=compact] #appSidebar .product-company .product-avatar{width:40px;height:40px;border-radius:12px;background:#242c2d;color:#c7d1cf;border-color:#444e4e;}
 .app[data-sidebar-mode=compact] #appSidebar #createBtn{position:relative;width:100%;min-height:90px;margin:0 0 22px;padding:8px 2px 35px!important;font-size:0!important;background:#e8bb60;color:#141819;}
 .app[data-sidebar-mode=compact] #appSidebar #createBtn::after{content:'+';font-size:34px;line-height:1;font-weight:700;}
 .app[data-sidebar-mode=compact] #appSidebar #createBtn::before{content:attr(aria-label);position:absolute;bottom:10px;left:7px;right:7px;font-size:12px;font-weight:700;line-height:1.15;text-align:center;}
 .app[data-sidebar-mode=compact] #appSidebar nav{margin-top:0;gap:6px;}
 .app[data-sidebar-mode=compact] #appSidebar .nav{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:76px;flex-shrink:0;padding:9px 2px;gap:8px;border-radius:12px;text-align:center;line-height:1.2;}
 .app[data-sidebar-mode=compact] #appSidebar .nav span:not([hidden]):not(.classic-nav-icon){display:block!important;font-size:12px!important;font-weight:600;white-space:nowrap;}
 .app[data-sidebar-mode=compact] #appSidebar .classic-nav-icon{width:28px;height:28px;}
 .app[data-sidebar-mode=compact] #appSidebar .classic-nav-icon svg{width:27px;height:27px;}
 .app[data-sidebar-mode=compact] #appSidebar .nav i{display:none!important;}
 .app[data-sidebar-mode=compact] #appSidebar .product-settings{font-size:0;padding:12px 0;min-height:44px;text-align:center;margin:28px 0 16px;}
 .app[data-sidebar-mode=compact] #appSidebar .product-settings::after{content:'⚙';font-size:23px;}
 .app[data-sidebar-mode=compact] #appSidebar .profile{justify-content:center;padding:18px 0 10px;}
 .app[data-sidebar-mode=compact] #appSidebar .profile>div.avatar{width:40px;height:40px;flex-basis:40px;background:#0e1212;color:#eeeae0;}
 .app[data-sidebar-mode=compact] #appSidebar .product-account #authLogoutBtn{font-size:0!important;padding:8px 0!important;min-height:54px;width:100%;}
 .app[data-sidebar-mode=compact] #appSidebar .product-account #authLogoutBtn::after{content:'↪';font-size:25px;}
}
