.mobile-header,.mobile-bottom-nav,.mobile-menu-close{display:none}
.app-update-notice{position:fixed;left:12px;right:12px;bottom:calc(94px + env(safe-area-inset-bottom));z-index:60;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:16px;border:1px solid #ff9c50;border-radius:12px;background:#242424;color:#fff;box-shadow:0 6px 25px #0008;font:14px/1.5 Arial,sans-serif}
.app-update-notice span{flex:1;min-width:180px}.app-update-notice button{background:#343434;color:#fff;border:1px solid #999;min-height:44px}.app-update-notice button:hover{background:#484848;color:#fff}.app-update-notice button:focus-visible{outline:2px solid #ff9c50;outline-offset:3px}
/* Match the approved product label; keep the original studio logo unchanged. */
@media screen and (max-width:1100px){
 .mobile-header .mobile-brand small{font-family:Arial,sans-serif;font-size:14px;font-weight:900;line-height:1.2;letter-spacing:.09em;margin-top:5px;color:#cbd0d6;background:linear-gradient(#fafbfc 0%,#cbd0d6 30%,#858b94 51%,#e3e6ea 70%,#a7aeb8 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 1px 1px #000)}
 .mobile-header .mobile-menu-trigger,#app>aside .mobile-menu-close{background:#343434;color:#fff;border:1px solid #888;min-width:44px;min-height:44px}
 .mobile-header .mobile-menu-trigger:hover,#app>aside .mobile-menu-close:hover{background:#484848;color:#fff}
 .mobile-header .mobile-menu-trigger:focus-visible,#app>aside .mobile-menu-close:focus-visible{outline:2px solid #ff9c50;outline-offset:3px;background:#484848;color:#fff}
}
@media screen and (max-width:1100px){
 html{background:#161616;max-width:100%;overflow-x:clip}body{width:100%;min-width:0;overflow-x:clip}#app{display:block;width:100%;min-width:0}
 #app>aside{display:none}#app>main{margin:0;width:100%;min-width:0;padding:0 0 calc(90px + env(safe-area-inset-bottom))}
 .mobile-header{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#191919f5;border-bottom:1px solid #ff8a3233;position:sticky;top:0;z-index:30}
 .mobile-brand{display:flex;align-items:center;gap:10px;flex:1;min-width:0;font-weight:700;font-size:15px}.mobile-brand img{width:48px;height:48px;object-fit:contain}.mobile-brand small{display:block;font-size:9px;letter-spacing:3px;color:#aaa;margin-top:3px}
 .mobile-header .mobile-profile{padding:4px;border-radius:50%;width:46px;height:46px;min-width:46px;background:#ff8a3212;border:1px solid #ff8a3255}.mobile-profile .sidebar-profile-copy{display:none}.mobile-profile .sidebar-avatar{width:36px;height:36px;margin:0}.mobile-menu-trigger{padding:8px 12px;min-height:44px;font-size:22px}
 #app>aside.mobile-menu-open{display:block;position:fixed;inset:0 0 76px;width:100%;height:auto;overflow-y:auto;z-index:45;background:#191919;padding:16px 20px;box-sizing:border-box}
 .mobile-menu-close{display:block;margin:0 0 16px auto}.mobile-menu-open .brand{display:none}.mobile-menu-open nav{display:block;overflow:visible}.mobile-menu-open .nav{width:100%;white-space:normal;min-height:52px;display:flex}.mobile-menu-open .nav-group-label{display:block;margin-top:18px}.mobile-menu-open .aside-bottom{display:block;position:static;margin-top:18px}.mobile-menu-open .sidebar-profile{width:100%;margin-bottom:18px}
 .mobile-bottom-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;padding:8px 6px calc(8px + env(safe-area-inset-bottom));background:#202020fa;border-top:1px solid #ff8a3233;z-index:50;gap:4px}
 .mobile-bottom-nav .mobile-nav-button{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;padding:5px 2px;min-width:0;min-height:56px;border:0;background:transparent;color:var(--ink);font-size:10px}.mobile-nav-button[aria-current="page"]{background:#ff8a321c!important;color:#ffac6d!important;border-radius:10px}.mobile-nav-button .nav-bozza-a,.mobile-nav-button .creative-nav-image{width:29px;height:29px;flex-shrink:0;margin:0}.mobile-more-icon{font-size:25px;line-height:29px}
 .topbar{padding:8px 14px!important;min-height:0!important;display:block!important}.topbar-home,.topbar .back-button,.topbar-actions>.cloud-access,.topbar-actions>.blue-button{display:none!important}.topbar-actions{display:flex!important;flex-wrap:wrap;gap:8px!important;width:100%;justify-content:flex-end}.topbar-actions>.primary:not(.quote-page .primary){display:none}.quote-page .topbar-actions>button{flex:1;min-width:0;font-size:12px;padding:10px}.topbar .saved{width:100%;font-size:11px;justify-content:flex-end}
 .page-body{padding:18px 14px!important;width:100%;box-sizing:border-box}.page-body>header{margin-bottom:18px!important}h1{font-size:25px!important}#content,.panel,.editor-grid,.production-bottom,.context-grid{min-width:0;max-width:100%}.context-grid,.production-bottom{grid-template-columns:1fr!important}
 .dash-intro{display:grid!important;grid-template-columns:60px minmax(0,1fr);gap:12px;padding:16px!important}.dash-intro .dash-studio-card{width:60px;min-width:0;height:auto}.dash-intro .dash-studio-card img{width:60px;height:60px;object-fit:contain}.dash-intro h2{font-size:22px!important;line-height:1.35}.dash-intro p{font-size:12px}.dash-intro>button{grid-column:1/3;justify-self:start}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.stats article{display:block!important;padding:14px!important;min-width:0}.dash-stat-heading{display:flex!important;gap:6px;align-items:flex-start}.dash-stat-heading>span:first-child{font-size:13px!important;line-height:1.4;flex:1;min-width:0}.dash-symbol{width:30px!important;min-width:30px!important;height:30px!important}.dash-symbol img{width:30px!important;height:30px!important}.stats strong{display:block!important;font-size:23px!important;margin:10px 0 5px!important;overflow-wrap:anywhere}.stats small{font-size:10px!important}
 .table-wrap{max-width:100%;overflow-x:auto}.fields.two,.fields.three{grid-template-columns:1fr!important}input,select,textarea{max-width:100%;box-sizing:border-box;font-size:16px!important}button{min-height:44px}.section-head,.section-actions,.shortcut-actions{flex-wrap:wrap}.section-actions{display:flex;gap:8px}.panel{margin-bottom:16px}.dash-grid{grid-template-columns:1fr!important}#toast{bottom:calc(88px + env(safe-area-inset-bottom))!important}dialog{width:calc(100% - 24px);max-width:calc(100% - 24px)}
}
/* Tablet: retain the compact navigation, but use the extra space for content.
   CSS responds to rotation/resizing without rebuilding forms or account state. */
@media screen and (min-width:651px) and (max-width:1100px){
 .mobile-header{padding:12px 24px;gap:16px}.mobile-brand{font-size:18px}.mobile-brand img{width:54px;height:54px}.mobile-profile .sidebar-profile-copy{display:block;max-width:180px;overflow:hidden;text-align:left}.mobile-profile .sidebar-profile-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .mobile-header .mobile-profile{width:auto;max-width:250px;border-radius:12px;display:flex;align-items:center;gap:10px;padding:6px 12px}.mobile-header .mobile-profile .sidebar-avatar{flex-shrink:0}
 .page-body{padding:24px!important;max-width:1100px;margin:0 auto}.page-body>header h1{font-size:29px!important}.topbar{padding:10px 24px!important}.topbar-actions{align-items:center}.topbar .saved{width:auto;margin-left:auto}
 .mobile-bottom-nav{padding:4px max(12px,calc((100vw - 700px)/2)) calc(4px + env(safe-area-inset-bottom));background:#202020}.mobile-bottom-nav .mobile-nav-button{flex-direction:row;gap:8px;font-size:12px;min-height:44px;padding:4px 6px}.mobile-nav-button .nav-bozza-a,.mobile-nav-button .creative-nav-image{width:26px;height:26px}.mobile-more-icon{font-size:22px;line-height:26px}
 #app>main{padding-bottom:calc(68px + env(safe-area-inset-bottom))}#app>aside.mobile-menu-open{bottom:calc(53px + env(safe-area-inset-bottom))}#toast{bottom:calc(66px + env(safe-area-inset-bottom))!important}
 #app>aside.mobile-menu-open{left:auto;right:0;width:min(420px,100%);border-left:1px solid #ff8a3244;box-shadow:-20px 0 60px #0009}
 .stats article{padding:20px!important}.stats strong{font-size:29px!important}.dash-stat-heading>span:first-child{font-size:16px!important}.dash-symbol,.dash-symbol img{width:42px!important;height:42px!important}.dash-symbol{min-width:42px!important}.stats small{font-size:12px!important}
 .dash-intro{grid-template-columns:90px minmax(0,1fr);padding:22px!important;gap:18px}.dash-intro .dash-studio-card{width:90px}.dash-intro .dash-studio-card img{width:90px;height:90px}.dash-intro h2{font-size:28px!important}.dash-intro p{font-size:14px}
 .dash-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px}.dash-grid>.panel{min-width:0}.context-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.context-grid>.context-card:last-child{grid-column:1/-1}.fields.two,.fields.three{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .editor-grid{grid-template-columns:1fr!important}.summary-column{position:static!important;max-height:none!important;overflow:visible!important}.production-bottom{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px}.economic-panel{grid-column:auto;grid-row:auto}.labor-panel .labor-table tbody{grid-template-columns:1fr}.record-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .settings-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}.panel{padding:22px}dialog{width:min(720px,calc(100% - 48px));max-width:calc(100% - 48px)}
}
.pwa-home-invite{display:none}.pwa-home-invite[hidden]{display:none!important}@media(max-width:850px){.topbar-actions>[data-pwa-topbar]:not([hidden]){display:inline-flex!important;align-items:center;justify-content:center;min-height:44px}.pwa-home-invite:not([hidden]){display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0 20px;padding:16px;border:1px solid #c87527;border-radius:14px;background:linear-gradient(120deg,#3a2a1d,#24211d);color:#fff}.pwa-home-invite h2{font-size:18px;margin:0 0 6px;color:#ffd2a0}.pwa-home-invite p{margin:0;color:#eee1d2}.pwa-home-invite>div{flex:1;min-width:180px}.pwa-home-invite>button{min-height:46px}.pwa-home-invite>[role=status]{flex-basis:100%}}
