/* SkyMind 1.8.7: one true-centered desktop network bar; one mobile header. */
html[data-theme] header.unified-top {
  position:relative!important;display:flex!important;align-items:center!important;
  flex-wrap:nowrap!important;justify-content:space-between!important;
  height:68px!important;min-height:68px!important;max-height:68px!important;
  padding:9px clamp(12px,1.5vw,22px)!important;gap:9px!important;
}
html[data-theme] header.unified-top > .top-left {flex:1 1 0!important;min-width:0!important;display:flex!important;align-items:center!important;}
html[data-theme] header.unified-top > .top-actions {flex:1 1 0!important;min-width:0!important;justify-content:flex-end!important;display:flex!important;align-items:center!important;gap:clamp(3px,.65vw,10px)!important;}
html[data-theme] header.unified-top > .top-network-orbit {
  position:absolute!important;top:50%!important;left:50%!important;
  transform:translate(-50%,-50%)!important;grid-row:auto!important;grid-column:auto!important;
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
  justify-self:auto!important;align-items:center!important;
  width:280px!important;max-width:280px!important;height:48px!important;
  gap:4px!important;margin:0!important;padding:3px!important;
  background:color-mix(in srgb,var(--panel) 65%,transparent)!important;
  border:1px solid var(--line-soft)!important;border-radius:14px!important;
}
html[data-theme] header.unified-top > .top-network-orbit > a {
  min-width:0!important;max-width:none!important;width:100%!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:2px!important;padding:2px!important;margin:0!important;border-radius:10px!important;
  background:transparent!important;transition:background .15s,transform .15s!important;
}
html[data-theme] header.unified-top > .top-network-orbit > a:hover,
html[data-theme] header.unified-top > .top-network-orbit > a:focus-visible {background:var(--panel-2)!important;transform:translateY(-1px)!important;}
html[data-theme] header.unified-top > .top-network-orbit > a > span:last-child {
  position:static!important;transform:none!important;opacity:1!important;visibility:visible!important;
  display:block!important;font-size:8px!important;line-height:1!important;font-weight:650!important;
  padding:0!important;margin:0!important;border:none!important;white-space:nowrap!important;
  background:transparent!important;color:var(--muted)!important;pointer-events:none!important;
}
html[data-theme] header.unified-top > .top-network-orbit > a .network-centro,
html[data-theme] header.unified-top > .top-network-orbit > a .network-face,
html[data-theme] header.unified-top > .top-network-orbit > a img.network-logo{width:21px!important;height:21px!important;min-width:21px!important;min-height:21px!important;max-width:21px!important;max-height:21px!important;}
html[data-theme] header.unified-top > .top-network-orbit > a.network-nerddi > .network-label-text {display:block!important;font-size:8px!important;}
html[data-theme] header.unified-top .desktop-sidebar-toggle{display:none!important}
html[data-theme] header.unified-top .nsk-mobile-network-btn,
html[data-theme] header.unified-top .nsk-mobile-new-btn{display:none!important}
@media(min-width:781px) and (max-width:1120px){
  html[data-theme] header.unified-top > .top-network-orbit {width:234px!important;max-width:234px!important;}
  html[data-theme] header.unified-top > .top-network-orbit > a>span:last-child{display:none!important;}
  html[data-theme] header.unified-top .top-brand b{font-size:17px!important}
  html[data-theme] header.unified-top .sp-pill{padding:3px 7px!important}
  html[data-theme] header.unified-top .sp-header-label {display:none!important}
  html[data-theme] header.unified-top .command-button{display:none!important}
}
@media(min-width:781px) and (max-width:900px){
  html[data-theme] header.unified-top .top-brand small{display:none!important}
  html[data-theme] header.unified-top .top-brand b{font-size:15px!important}
  html[data-theme] header.unified-top .top-brand{gap:4px!important}
  html[data-theme] header.unified-top .sp-pill strong{font-size:10px!important}
}
@media(max-width:780px){
  html[data-theme] header.unified-top {
    display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;
    height:calc(58px + env(safe-area-inset-top,0px))!important;
    min-height:calc(58px + env(safe-area-inset-top,0px))!important;
    max-height:calc(58px + env(safe-area-inset-top,0px))!important;
    padding:env(safe-area-inset-top,0px) 10px 0!important;gap:6px!important;
    background:var(--bg)!important;
  }
  html[data-theme] header.unified-top > .top-left{grid-column:1 / 3!important;grid-row:1!important;display:contents!important}
  html[data-theme] header.unified-top .top-left .menu{
    grid-column:1!important;grid-row:1!important;display:grid!important;place-items:center!important;
    height:40px!important;width:40px!important;font-size:19px!important;
  }
  html[data-theme] header.unified-top .top-brand {
    position:absolute!important;left:50%!important;top:calc(50% + env(safe-area-inset-top,0px)/2)!important;
    transform:translate(-50%,-50%)!important;display:flex!important;align-items:center!important;
    z-index:1!important;gap:6px!important;max-width:45vw!important;
  }
  html[data-theme] header.unified-top .top-brand>img{display:block!important;width:26px!important;height:26px!important;flex:0 0 26px!important}
  html[data-theme] header.unified-top .top-brand span{display:block!important}
  html[data-theme] header.unified-top .top-brand small{display:none!important}
  html[data-theme] header.unified-top .top-brand b{font-size:17px!important;white-space:nowrap!important}
  html[data-theme] header.unified-top .title-stack,
  html[data-theme] header.unified-top .desktop-sidebar-toggle,
  html[data-theme] header.unified-top > .top-network-orbit{display:none!important}
  html[data-theme] header.unified-top > .top-actions{
    grid-column:3!important;grid-row:1!important;display:flex!important;
    flex:0 0 auto!important;gap:5px!important;align-items:center!important;justify-content:flex-end!important;
  }
  html[data-theme] header.unified-top .hub-top-trigger,
  html[data-theme] header.unified-top .command-button,
  html[data-theme] header.unified-top .sp-pill,
  html[data-theme] header.unified-top .header-profile{display:none!important}
  html[data-theme] header.unified-top .nsk-mobile-network-btn,
  html[data-theme] header.unified-top .nsk-mobile-new-btn{display:grid!important}
}
@media(max-width:370px){html[data-theme] header.unified-top .top-brand{left:46%!important}html[data-theme] header.unified-top .top-brand b{font-size:15px!important}}
.nsk-mobile-network-btn,.nsk-mobile-new-btn{
  width:40px;height:40px;place-items:center;border:1px solid var(--line);border-radius:12px;
  background:var(--panel);color:var(--text);cursor:pointer;padding:9px;
}
.nsk-mobile-network-btn svg,.nsk-mobile-new-btn svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
/* bottom-sheet, not another header */
.nsk-network-overlay[hidden]{display:none!important}
.nsk-network-overlay{position:fixed;inset:0;z-index:9010;display:none;}
@media(max-width:780px){.nsk-network-overlay:not([hidden]){display:block}}
.nsk-network-scrim{position:absolute;inset:0;background:rgba(2,10,24,.65);border:0;width:100%;padding:0;backdrop-filter:blur(3px)}
.nsk-network-sheet{
  position:absolute;bottom:0;left:0;right:0;padding:10px 16px max(22px,env(safe-area-inset-bottom));
  background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:24px 24px 0 0;
  box-shadow:0 -22px 60px rgba(0,0,0,.35);max-height:min(84dvh,700px);overflow-y:auto;
  animation:nskSheetIn .2s ease-out both;
}
@keyframes nskSheetIn{from{transform:translateY(20px);opacity:.6}to{transform:translateY(0);opacity:1}}
.nsk-network-handle{width:38px;height:4px;background:var(--line);border-radius:9px;margin:0 auto 17px}
.nsk-network-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.nsk-network-title>span{display:flex;flex-direction:column;gap:4px}
.nsk-network-title small{font-size:9px;letter-spacing:.16em;color:var(--muted);font-weight:750}
.nsk-network-title b{font-size:23px;letter-spacing:-.04em}
.nsk-sheet-close{height:38px;width:38px;border-radius:12px;background:var(--panel-2);border:1px solid var(--line);font-size:25px;line-height:1;cursor:pointer;color:var(--text)}
.nsk-network-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.nsk-network-grid>a{
  min-width:0;display:flex;gap:9px;align-items:center;text-decoration:none;color:var(--text);
  background:var(--panel-2);border:1px solid var(--line);padding:12px 10px;
  border-radius:14px;min-height:72px;
}
.nsk-network-grid>a:last-child{grid-column:span 2}
.nsk-network-grid>a>img,.nsk-sheet-nerddi,.nsk-sheet-centro{height:29px;width:29px;min-width:29px;object-fit:contain;display:grid;place-items:center;position:relative}
.nsk-sheet-nerddi img{position:absolute;inset:0;height:29px;width:29px;object-fit:contain}
.nsk-sheet-nerddi .nsk-face-light{display:none}
html[data-theme="light"] .nsk-sheet-nerddi .nsk-face-light{display:block}
html[data-theme="light"] .nsk-sheet-nerddi .nsk-face-dark{display:none}
.nsk-sheet-centro img{height:29px;width:29px;object-fit:contain;border-radius:50%}
.nsk-sheet-centro span{align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--bg);border:1px solid var(--line);font-weight:800}
.nsk-network-grid>a>span:nth-last-child(2){display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.nsk-network-grid b{font-size:12px;font-weight:730;white-space:nowrap}
.nsk-network-grid small{font-size:10px;color:var(--muted);line-height:1.25}
.nsk-network-grid>a>span:last-child{color:var(--muted)}
.nsk-network-foot{text-align:center;color:var(--muted);font-size:10px;margin:17px 0 2px}
body.nsk-network-open{overflow:hidden}
@media(prefers-reduced-motion:reduce){.nsk-network-sheet{animation:none!important}}
@media(max-width:780px){html[data-theme] header.unified-top{min-width:0!important;max-width:100vw!important;width:100%!important;box-sizing:border-box!important}}
