/* NAAS Design Lap: phone + tablet layer (below 1000px). Desktop is untouched. */
@media(max-width:999px){
:root{--hh:54px;--bn:68px}
html{-webkit-text-size-adjust:100%}
html body{padding-bottom:calc(var(--bn) + env(safe-area-inset-bottom) + 14px);overflow-x:hidden}
/* slim top bar: logo only */
body header.hd{position:sticky;top:0;z-index:40;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(6,11,24,.96)!important;min-height:var(--hh);padding:8px 14px;gap:10px;flex-wrap:nowrap;align-items:center}
body header.hd #hlogo{display:none}
body header.hd .rl{display:block;height:30px;width:30px;margin:0}
body .hdt{border:0;padding:0;font-size:11px;letter-spacing:.28em;color:#C9D6F2}
body header.hd #divbar{order:0;flex:1 1 auto;min-width:0;border:0;padding:0;margin:0;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;justify-content:flex-end;flex-wrap:nowrap}
body header.hd #divbar::-webkit-scrollbar{display:none}
body header.hd #divbar .dvl{display:none}
body header.hd #divbar button{flex:0 0 auto;white-space:nowrap;min-height:34px;padding:6px 12px}
/* bottom navigation */
body .nav{position:fixed;left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:60;width:auto;max-width:none;margin:0;padding:6px;gap:2px;justify-content:space-between;overflow:visible;border-radius:22px;background:rgba(10,20,48,.92);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.14);box-shadow:0 10px 40px rgba(0,0,0,.5)}
body .nav button{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:54px;padding:4px 0;font-size:0!important;border-radius:16px;background:transparent;color:#9fb2d8;-webkit-tap-highlight-color:transparent}
body .nav button .ni{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:none;border:0;color:inherit;transition:.15s}
body .nav button .ni svg{width:21px;height:21px}
body .nav button::after{content:attr(data-s);font-size:10px;line-height:1;font-weight:600;letter-spacing:.01em;font-family:Guton,Changa,system-ui,sans-serif}
body .nav button[data-k=patterns]{--s:Patterns}
body .nav button.on{background:rgba(108,185,241,.16);color:#fff}
body .nav button.on .ni{background:radial-gradient(circle at 30% 22%,#A9DBFB,#2F72D6 75%);box-shadow:0 0 16px rgba(108,185,241,.55)}
body .nav button[data-k=banners]{display:none}
body .nav button small{display:none}
/* layout */
body .app{display:block!important}
body aside,body .dk-l,body .dk-r{position:static!important;width:auto!important;max-width:none!important;max-height:none!important;margin:10px 12px!important;border-radius:18px}
body main,body .dk-m{padding:0 12px;min-width:0}
body .stage{border-radius:18px;max-width:100%;overflow:hidden}
body .stage.mockon{overflow-x:auto}
body .page{padding-left:12px!important;padding-right:12px!important}
body .card{border-radius:16px}
body canvas,body .stage svg,body .stage img{max-width:100%;height:auto}
/* touch: >=44px targets and 16px fields (stops iOS zoom) */
body button,body select,body .dlb,body .pngb{min-height:44px;touch-action:manipulation}
body input[type=text],body input[type=number],body input:not([type]),body select,body textarea{font-size:16px!important;min-height:44px}
body input[type=range]{min-height:32px;touch-action:pan-y}
body input[type=checkbox],body input[type=radio]{width:22px;height:22px}
body .tabs button,body .chips button,body .seg button{min-height:40px}
body h2{margin-top:18px}
body .note{font-size:13px;line-height:1.5}
}
@media(max-width:560px){
body aside,body .dk-l,body .dk-r{margin:8px 8px!important}
body main,body .dk-m{padding:0 8px}
body .grid,body .cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body .nav{left:6px;right:6px}
}
@media(min-width:640px) and (max-width:999px){
body aside,body .dk-l,body .dk-r{margin:12px 20px!important}
body main,body .dk-m{padding:0 20px}
}
@media(max-width:999px){
body div:has(>button.pri),body div:has(>button.on){flex-wrap:wrap}
body div:has(>button.pri)>button,body div:has(>button.pri)>select{flex:1 1 150px}
}
@media(max-width:999px){
body input[type=text],body input[type=search],body input:not([type]){background:rgba(255,255,255,.07);color:#EEF3FC;border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:0 14px}
body input::placeholder{color:#93A3C6}
}
@media(max-width:999px){body input[type=text],body input[type=search],body input:not([type]):not([type=range]):not([type=checkbox]){height:44px;box-sizing:border-box}}
