/* Shared navigation and account controls across the existing product screens. */
body.editorial-theme .app-header .service-header-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex:0 0 auto}
body.editorial-theme .app-header .service-header-actions :is(a,button){display:grid!important;place-items:center;width:44px;height:44px;min-height:44px;min-width:44px;padding:10px;margin:0;border:1px solid #bacbb5;border-radius:3px;background:#f8f7ef;color:#193f33;text-decoration:none}
body.editorial-theme .app-header .service-header-actions :is(a,button):hover{background:#dce8d6}
body.editorial-theme .app-header .service-header-actions svg{display:block!important;width:23px!important;height:23px!important;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.editorial-theme .app-header .service-account-entry::after{content:none!important}
body.editorial-theme .app-navigation.service-navigation{border:0;border-radius:0;box-shadow:none}
body.editorial-theme .app-navigation.service-navigation .nav-item{font-size:14px!important;font-weight:500;gap:12px;line-height:1.4;color:#5e7366;border-radius:2px;text-decoration:none}
body.editorial-theme .app-navigation.service-navigation .nav-item[aria-current='page']{background:#d6e4ce;color:#193f33;font-weight:700}
body.editorial-theme .app-navigation.service-navigation .nav-item:hover{background:#dce8d6;color:#193f33}
body.editorial-theme .app-navigation.service-navigation .nav-item svg{width:21px!important;height:21px!important;flex:0 0 21px}
body.editorial-theme .app-navigation.service-navigation .nav-create-icon{width:21px;height:21px;min-width:21px;margin:0;padding:0;border:0;border-radius:0;background:none;color:inherit;box-shadow:none;transform:none}
body.editorial-theme .app-navigation.service-navigation .nav-create-icon::before,body.editorial-theme .app-navigation.service-navigation .nav-create-icon::after{content:none}
body.editorial-theme .service-header-actions :is(a,button):focus-visible,body.editorial-theme .service-navigation :is(a,button):focus-visible{outline:3px solid #e95329;outline-offset:3px}
body.editorial-theme .service-navigation .install-slot{margin:0}
body.editorial-theme .service-navigation .install-slot:not(:has(button:not([hidden]))){display:none}
body.editorial-theme .service-navigation .service-install-button{min-height:44px;padding:10px 14px;border:1px solid #bacbb5;border-radius:3px;background:#f8f7ef;color:#193f33;font-size:14px;font-weight:700;white-space:nowrap}
@media(min-width:1024px){
 body.editorial-theme .app-navigation.service-navigation{gap:6px;padding:8px 12px 8px 0;background:transparent;align-items:stretch}
 body.editorial-theme .app-navigation.service-navigation .nav-item{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;min-height:48px;padding:12px 14px;border-left:2px solid transparent}
 body.editorial-theme .app-navigation.service-navigation .nav-item[aria-current='page']{border-left-color:#d44320}
 /* Upload and album use the same desktop sidebar geometry. */
 body.editorial-theme.upload-reference .responsive-container{width:100%;max-width:1440px;margin:0 auto;display:grid;grid-template-columns:176px minmax(0,1fr);gap:0 40px;padding:28px 32px 60px;--upload-sidebar:176px;--upload-gap:40px}
 body.editorial-theme.upload-reference .app-header{grid-column:1/-1;min-height:0;padding:0 0 20px;margin:0 0 24px;gap:10px;border-bottom:1px solid #bacbb5}
 body.editorial-theme.upload-reference .app-navigation.service-navigation{position:sticky;inset:auto;top:24px;grid-column:1;grid-row:2;align-self:start;display:flex;flex-direction:column;height:auto;width:100%;margin:0 0 24px}
 body.editorial-theme.dashboard-page .app-navigation.service-navigation{flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:flex-end;padding:0;gap:6px}
 body.editorial-theme.dashboard-page .app-navigation.service-navigation .nav-item{min-height:44px;padding:8px 10px;border-left:0;border-bottom:2px solid transparent}
 body.editorial-theme.dashboard-page .app-navigation.service-navigation .nav-item[aria-current='page']{border-bottom-color:#d44320}
}
@media(min-width:1024px) and (max-width:1199px){
 body.editorial-theme.upload-reference .home-content{grid-column:2;grid-row:2;grid-template-columns:minmax(0,1fr)}
 body.editorial-theme.upload-reference .home-intro{grid-column:1;grid-row:1}
 body.editorial-theme.upload-reference .upload-card{grid-column:1;grid-row:2}
 body.editorial-theme.upload-reference .upload-keepsake{grid-column:1;grid-row:3}
 body.editorial-theme.upload-reference .upload-art{width:100%;margin:28px 0 0}
}
@media(min-width:1024px) and (max-width:1439px){
 body.editorial-theme.dashboard-page .app-navigation.service-navigation{order:4;flex-basis:100%;justify-content:flex-start}
}
@media(max-width:1023px){
 body.editorial-theme .app-navigation.service-navigation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:2px;position:fixed;inset:auto 8px 0;height:auto;min-height:var(--bottom-navigation-total-height);margin:0;padding:7px 4px calc(7px + env(safe-area-inset-bottom,0px));background:#e5efdf;border:1px solid #bacbb5;border-bottom:0;border-radius:18px 18px 0 0;z-index:20}
 body.editorial-theme .app-navigation.service-navigation:has([data-nav='aquarium'][hidden]){grid-template-columns:repeat(3,minmax(0,1fr))}
 body.editorial-theme .app-navigation.service-navigation .nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:54px;padding:6px 2px;gap:4px;border:0}
 body.editorial-theme .app-navigation.service-navigation .nav-item[hidden]{display:none!important}
 body.editorial-theme .service-navigation .install-slot{grid-column:1/-1;grid-row:2;padding:4px 4px 0}
 body.editorial-theme .service-navigation .service-install-button{width:100%}
 body.editorial-theme.dashboard-page:has(.service-install-button:not([hidden])) .responsive-container{padding-bottom:180px}
}
/* Retain the intentionally immersive game and compact story reader on phones. */
@media(max-width:1023px){body.editorial-theme:is(.story-page,.video-page) .app-navigation.service-navigation{display:none}}
/* Keep the video sidebar's account hit area clear of the first menu link. */
@media(min-width:1024px){body.editorial-theme.video-page .app-navigation.service-navigation{top:128px}}
