/* NAAS Lab dark-glass UI (desktop). Phones keep the compact top bar. */
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(1.2px 1.2px at 12% 18%,#fffc,transparent),radial-gradient(1px 1px at 28% 8%,#fff9,transparent),radial-gradient(1.4px 1.4px at 44% 22%,#fffb,transparent),radial-gradient(1px 1px at 63% 12%,#fff9,transparent),radial-gradient(1.2px 1.2px at 78% 28%,#fffc,transparent),radial-gradient(1px 1px at 90% 10%,#fff8,transparent),radial-gradient(1px 1px at 8% 52%,#fff7,transparent),radial-gradient(1.2px 1.2px at 94% 58%,#fffa,transparent),radial-gradient(1px 1px at 55% 40%,#fff6,transparent),radial-gradient(1000px 300px at 55% 108%,rgba(57,204,212,.22),transparent 70%),radial-gradient(700px 400px at 100% 0,rgba(108,185,241,.16),transparent 70%)}
.topbar,.ni{display:none}
@media(min-width:1000px){
:root{--hh:0px!important}
html body{padding-left:268px;background:linear-gradient(180deg,#070E24 0,#0A1838 55%,#0B2447 100%);background-attachment:fixed}
body header.hd{position:fixed!important;left:16px;top:16px;bottom:16px;width:236px;min-height:0;height:auto!important;flex-direction:column;align-items:stretch;flex-wrap:nowrap!important;gap:0;padding:22px 14px 16px;border-radius:26px;border:1px solid rgba(255,255,255,.1);background:linear-gradient(180deg,rgba(22,36,78,.88),rgba(8,15,38,.94));box-shadow:0 30px 70px -30px #000,inset 0 1px 0 rgba(255,255,255,.08);overflow-y:auto;z-index:40}
body .hd img{height:48px;width:auto;align-self:flex-start;margin:0 0 6px 8px}
body .hdt{border:0;padding:0 8px;margin-bottom:6px;font-size:11px}
body .nav{flex-direction:column;margin:16px 0 0;width:100%;background:none;border:0;padding:0;gap:8px;overflow:visible;border-radius:0}
body .nav button{display:flex;align-items:center;gap:12px;justify-content:flex-start;width:100%;padding:5px 12px 5px 5px;border-radius:999px;background:transparent;color:#C9D6F2;font-size:14px;text-align:left}
body .nav button:hover{background:rgba(255,255,255,.06);color:#fff}
body .nav button .ni{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:#0E1C47;border:1px solid rgba(255,255,255,.09);color:#B8CBEE}
body .nav button .ni svg{width:20px;height:20px}
body .nav button.on{background:rgba(255,255,255,.07);color:#fff}
body .nav button.on .ni{background:radial-gradient(circle at 30% 22%,#A9DBFB,#2F72D6 72%);border-color:transparent;color:#fff;box-shadow:0 0 24px rgba(108,185,241,.65)}
body .nav button small{margin-left:auto;font-size:9px}
body header.hd #divbar{display:none}
.topbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:24px 28px 6px}
.topbar .bc{font-size:12px;color:var(--mut);letter-spacing:.04em}.topbar .bc b{color:#dbe6fb;font-weight:600}
.topbar h1{margin:2px 0 0;font:700 34px/1.1 Guton,Changa,system-ui,sans-serif;color:#fff;letter-spacing:-.01em}
.topbar h1 span{background:linear-gradient(90deg,#6CB9F1,#A0B0FB);-webkit-background-clip:text;background-clip:text;color:transparent}
.topbar .sub{color:var(--mut);font-size:13.5px;margin-top:4px;max-width:560px}
.topbar #divbar{display:flex!important;order:0;flex-basis:auto;margin:0;padding:0;border:0;gap:8px}
body #divbar button{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:999px;padding:7px 14px}
body #divbar button.on{background:rgba(108,185,241,.18);box-shadow:0 0 18px rgba(108,185,241,.35)}
body aside{margin:14px 0 14px 14px;top:14px!important;max-height:calc(100vh - 28px)!important;border-radius:24px;border:1px solid rgba(255,255,255,.1);background:linear-gradient(165deg,rgba(255,255,255,.07),rgba(255,255,255,.015));box-shadow:0 24px 60px -28px #000,inset 0 1px 0 rgba(255,255,255,.07);backdrop-filter:blur(16px)}
body .dk-l,body .dk-r{top:14px!important;max-height:calc(100vh - 28px)!important;border-radius:24px;border:1px solid rgba(255,255,255,.1);background:linear-gradient(165deg,rgba(255,255,255,.07),rgba(255,255,255,.015));box-shadow:0 24px 60px -28px #000,inset 0 1px 0 rgba(255,255,255,.07)}
body .card,body #m-icons .ip,body #gradpane .gl{border-radius:22px;border:1px solid rgba(255,255,255,.1);background:linear-gradient(165deg,rgba(255,255,255,.07),rgba(255,255,255,.015));box-shadow:inset 0 1px 0 rgba(255,255,255,.07)}
body .stage{border-radius:26px;border:1px solid rgba(255,255,255,.1);background:radial-gradient(circle at 1px 1px,rgba(255,255,255,.06) 1px,transparent 0) 0 0/20px 20px,linear-gradient(165deg,rgba(255,255,255,.05),rgba(255,255,255,.01));box-shadow:0 30px 70px -34px #000,0 0 80px -30px rgba(108,185,241,.35)}
body button.pri{border-radius:999px;box-shadow:0 0 30px rgba(108,185,241,.5);padding:12px 18px}
body button.on{background:linear-gradient(135deg,#8CCBF6,#6CB9F1 60%,#4C8FE0);box-shadow:0 0 18px rgba(108,185,241,.45)}
body button,body select{border-radius:14px}
#dk-up,#dk-dn{width:42px;height:42px;border-radius:50%;padding:0;flex:0 0 42px}
body h2{color:#8FC6F5}
body .page h3{font-size:0;height:0;margin:0;overflow:hidden}
body .page>.note:first-of-type{margin-top:8px}
}
@media(min-width:1000px){body #m-icons .page,body #m-brand .page{padding-top:14px}}
body .stage,body main,body .dk-m{min-width:0}body .stage.mockon{overflow-x:auto}
/* v3: slim icon rail, compact top bar, big preview, collapsible side panels */
@media(min-width:1000px){
html body{padding-left:96px}
body header.hd{left:12px;top:12px;bottom:12px;width:68px;padding:14px 8px;align-items:center;border-radius:24px;overflow:visible}
body header.hd #hlogo,body header.hd .hdt{display:none!important}
body header.hd .rl{display:block;width:34px;height:34px;margin:2px 0 10px}
body .nav{align-items:center;margin:8px 0 0;gap:10px}
body .nav button{font-size:0!important;width:48px;height:48px;padding:0;justify-content:center;position:relative;border-radius:50%;background:transparent}
body .nav button .ni{width:44px;height:44px;flex-basis:44px}
body .nav button small{display:none}
body .nav button[data-k=banners]{opacity:.5}
body .nav button.on{background:transparent}
body .nav button::after{content:attr(data-l);position:absolute;left:calc(100% + 14px);top:50%;transform:translateY(-50%) translateX(-4px);background:#0E1C47;border:1px solid rgba(255,255,255,.15);color:#fff;font:600 12.5px Changa,system-ui,sans-serif;white-space:nowrap;padding:6px 11px;border-radius:10px;opacity:0;pointer-events:none;transition:.12s;z-index:80;box-shadow:0 10px 30px -10px #000}
body .nav button:hover::after{opacity:1;transform:translateY(-50%)}
.topbar{padding:12px 20px 0;align-items:center;flex-wrap:nowrap;gap:12px}
.topbar .bc{display:none}
.topbar h1{font-size:26px;margin:0;white-space:nowrap}
.topbar .sub{display:none}
.topbar .tl{flex:1;min-width:0}
.topbar .tg{display:flex;gap:6px}
.topbar .tg button{width:38px;height:38px;border-radius:12px;padding:0;display:grid;place-items:center;color:#cfe0fb}
.topbar .tg button svg{width:19px;height:19px}
.topbar .tg button.off{background:linear-gradient(135deg,#8CCBF6,#4C8FE0);color:#00194C}
body .topbar #divbar .dvl{display:none}
body #divbar button{padding:6px 12px;font-size:12px}
body .dk{grid-template-columns:minmax(150px,185px) minmax(0,1fr) minmax(250px,290px);padding:8px 14px 14px;gap:12px;max-width:none}
body.hl .dk{grid-template-columns:minmax(0,1fr) minmax(250px,290px)}
body.hr .dk{grid-template-columns:minmax(150px,185px) minmax(0,1fr)}
body.hl.hr .dk{grid-template-columns:minmax(0,1fr)}
body.hl .dk-l,body.hr .dk-r{display:none}
body.hl .app{grid-template-columns:minmax(0,1fr)}body.hl .app>aside{display:none}
body .app{grid-template-columns:290px minmax(0,1fr)}
body .stage{padding:10px}
body .stage canvas{max-height:calc(100vh - 230px)!important}
body .dk-l,body .dk-r{padding:12px 12px}
body .mockbar{margin-bottom:6px!important}
body aside{margin:8px 0 8px 12px}
}
@media(min-width:1000px) and (max-width:1300px){body .topbar #divbar button{padding:6px 10px}}
/* v4: labeled rail, clean */
@media(min-width:1000px){
html body{padding-left:116px}
body header.hd{left:12px;top:12px;bottom:auto!important;height:auto!important;width:92px;padding:14px 8px 12px;border-radius:22px;align-items:stretch;overflow:visible;background:linear-gradient(180deg,rgba(20,34,74,.92),rgba(10,18,44,.94))}
body header.hd .rl{display:block;width:auto;height:38px;max-width:56px;object-fit:contain;margin:2px auto 12px;padding:0}
body header.hd::after{content:"";}
body .nav{align-items:stretch;margin:0;gap:4px;padding-top:10px;border-top:1px solid rgba(255,255,255,.08)}
body .nav button{font-size:10px!important;font-weight:600;letter-spacing:0;width:100%;height:auto;min-height:60px;padding:8px 2px 7px;flex-direction:column;justify-content:center;gap:5px;border-radius:14px;text-align:center;line-height:1.1;color:#AFC2E6;background:transparent;overflow:hidden}
body .nav button:hover{background:rgba(255,255,255,.07);color:#fff}
body .nav button .ni{width:auto;height:auto;flex:none;background:none;border:0;box-shadow:none;border-radius:0;color:inherit}
body .nav button .ni svg{width:23px;height:23px}
body .nav button small{display:none}
body .nav button::after{display:none!important}
body .nav button.on{background:linear-gradient(160deg,#7DC4F5,#3C80DD);color:#00194C;box-shadow:none}
body .nav button.on .ni{background:none;box-shadow:none;color:#00194C}
body .nav button[data-k=banners]{opacity:.45}
}
/* v5: preview stays in view while controls scroll */
@media(min-width:1000px){
#gradpane.show{flex-wrap:nowrap;align-items:flex-start;max-width:none;padding:10px 18px}
#gradpane .gl{position:relative}
#gradpane .gr{position:sticky;top:12px;align-self:flex-start}
#gradpane canvas{max-height:calc(100vh - 110px)!important;max-width:100%}
body .app>main,body .dk>.dk-m{position:sticky;top:8px;align-self:start}
}
/* v6: consistent inner padding */
body #gradpane .gl{box-sizing:border-box;padding:18px 20px 20px!important}
body #gradpane .gl>*:first-child{margin-top:0}
body .dk-l,body .dk-r{box-sizing:border-box;padding:16px 16px!important}
body .app>aside{box-sizing:border-box;padding:16px 16px!important}
body .dk-l .row,body .dk-r .row,body .app>aside .row{flex-wrap:wrap}
body .dk-l .row>button,body .dk-r .row>button{flex:1 1 auto}
body .dk-l select,body .dk-r select,body .dk-l input:not([type=checkbox]):not([type=radio]),body .dk-r input:not([type=checkbox]):not([type=radio]),body .dk-l textarea,body .dk-r textarea,body .app>aside select,body .app>aside input:not([type=checkbox]):not([type=radio]),body .app>aside textarea{box-sizing:border-box;max-width:100%}
