/* Mobile-first refinements to the previously approved blue-neon interface.
   No desktop layout rewrites; reduces obstruction on smaller screens. */
.nv-mobile-menu-toggle,.nv-mobile-overlay,.nv-mobile-drawer{display:none}
@media(max-width:760px){
  .nv-ref-global-header{height:60px!important;gap:9px!important;padding:0 12px!important}
  .nv-ref-global-logo{font-size:14px!important;flex:0 1 auto!important;min-width:0;white-space:nowrap}
  .nv-ref-global-logo .nv-original-mark{min-width:28px!important;height:28px!important;width:28px!important}
  .nv-mobile-menu-toggle{order:10;display:flex!important;flex:0 0 44px;height:44px;margin-left:3px;padding:13px 11px;background:#071e42;border:1px solid #147dc5;border-radius:12px;flex-direction:column;justify-content:space-around;align-items:center;cursor:pointer;box-shadow:inset 0 0 14px #028bff24}
  .nv-mobile-menu-toggle span{width:19px;height:2px;border-radius:2px;background:#89eaff}
  .nv-ref-global-actions{margin-left:auto!important}
  .nv-ref-global-actions .nv-ref-upgrade{padding:10px 12px!important;font-size:10px!important;white-space:nowrap}
  .nv-ref-content>.wrap{padding:12px 10px calc(88px + env(safe-area-inset-bottom))!important}
  .mobilebar.nv-ref-mobilebar{height:calc(66px + env(safe-area-inset-bottom));padding:6px 4px calc(6px + env(safe-area-inset-bottom));display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;align-items:stretch;border-top:1px solid #1e78c0!important;box-shadow:0 -5px 25px #001943c9}
  .nv-ref-mobilebar a{display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-width:0;border-radius:10px;line-height:1.12!important;font-size:10px!important;padding:4px 1px!important}
  .nv-ref-mobilebar a span{font-size:19px;line-height:1}
  .nv-ref-mobilebar a.active{border:1px solid #2b8ff9;background:linear-gradient(140deg,#056eb6,#1723ad)!important;box-shadow:0 0 10px #117dff88}
  .nv-mobile-overlay.is-open{display:block!important;position:fixed;inset:60px 0 0;z-index:69;background:#000c;backdrop-filter:blur(3px)}
  .nv-mobile-drawer{display:flex!important;flex-direction:column;position:fixed;top:60px;bottom:0;left:0;z-index:70;width:min(310px,88vw);padding:16px 13px calc(25px + env(safe-area-inset-bottom));overflow:auto;background:linear-gradient(170deg,#051b38,#030d20 85%);border-right:1px solid #1879c4;box-shadow:15px 0 30px #0009;transform:translateX(-106%);visibility:hidden;transition:transform .22s ease,visibility .22s ease}
  .nv-mobile-drawer.is-open{transform:translateX(0);visibility:visible}
  .nv-mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:3px 8px 13px;border-bottom:1px solid #1b497b;margin-bottom:6px}
  .nv-mobile-drawer-head strong{font-size:16px;font-weight:650}
  .nv-mobile-drawer-head button{width:44px;height:44px;border-radius:11px;color:#fff;background:#092752;border:1px solid #1b65a4;font-size:28px;cursor:pointer}
  .nv-mobile-drawer-link{display:flex;align-items:center;gap:13px;padding:12px 13px;min-height:47px;border-radius:10px;font-size:13px;color:#d6eafb}
  .nv-mobile-drawer-link span{font-size:21px;color:#70cbff;width:25px;text-align:center}
  .nv-mobile-drawer-link:hover,.nv-mobile-drawer-link.active{background:#0c437c;color:#fff}
  .nv-ref-hero{min-height:0!important}
  .nv-ref-hero-content{padding:27px 19px 6px!important}
  .nv-ref-hero-content h1{font-size:clamp(29px,8vw,38px)!important;letter-spacing:-.04em}
  .nv-ref-hero-art{min-height:250px!important;height:260px!important}
  .nv-ref-floating-info{font-size:11px}
  .nv-ref-stats{gap:4px!important;padding:10px 6px!important}
  .nv-ref-stats>div{gap:6px!important}
  .nv-ref-stats>div strong{font-size:11px!important}
  .nv-ref-cat,.nv-ref-tool,.nv-model-card,.nv-automation-card{min-width:0;overflow:hidden}
  .nv-ref-cat small,.nv-ref-tool small{overflow-wrap:anywhere}
  .nv-ref-catalog-search input{font-size:16px!important}
  .nv-ref-chat-main{padding-bottom:calc(82px + env(safe-area-inset-bottom))!important;overflow:visible!important}
  .nv-ref-chat{overflow:visible!important}
  .nv-ref-chat-compose{position:relative;z-index:2;margin-bottom:5px}
  .nv-ref-chat-compose input{font-size:16px!important}
  .nv-ref-chat-center{min-height:190px!important}
  .nv-ref-chat-center h2{font-size:clamp(25px,7vw,34px)!important}
  .nv-ref-chat-action{min-width:0}
  .nv-ref-chat-action strong,.nv-ref-chat-action small{overflow-wrap:anywhere}
  .nv-plan-grid{grid-template-columns:1fr!important}
}
@media(max-width:375px){
  .nv-ref-global-header{padding:0 8px!important;gap:5px!important}
  .nv-ref-global-logo{font-size:13px!important;gap:5px!important}
  .nv-ref-global-actions .nv-ref-upgrade{padding:9px 7px!important;font-size:9px!important}
  .nv-mobile-menu-toggle{flex-basis:40px;width:40px}
  .nv-ref-categories{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nv-ref-hero-content h1{font-size:29px!important}
  .nv-ref-chat-action{gap:5px!important;padding:7px!important}
  .nv-ref-chat-action>span{width:31px!important;height:31px!important}
  .nv-ref-chat-action>span img{width:31px!important;height:31px!important}
}
@media(prefers-reduced-motion:reduce){.nv-mobile-drawer{transition:none!important}}
