/* Knoxlink app shell v2 — global search + calmer sidebar */
body.knox-app-shell .site-header{position:sticky!important;top:0;z-index:80;background:rgba(6,8,20,.88)!important;backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.055)!important}
body.knox-app-shell .header-inner{display:grid!important;grid-template-columns:auto minmax(280px,640px) auto;gap:24px;align-items:center;min-height:68px}body.knox-app-shell .logo{min-width:142px}body.knox-app-shell .logo-img{width:142px!important;height:auto!important;max-height:36px!important}
.knox-global-search{position:relative;width:100%;justify-self:center}.knox-global-search input{width:100%;height:42px;padding:0 72px 0 42px;border:1px solid rgba(255,255,255,.075);border-radius:12px;outline:0;background:rgba(255,255,255,.035);color:#edf0ff;font:600 .74rem system-ui,-apple-system,Segoe UI,sans-serif;transition:.18s ease}.knox-global-search input::placeholder{color:#6f758b}.knox-global-search input:focus{border-color:rgba(149,96,246,.34);background:rgba(17,19,39,.96);box-shadow:0 0 0 3px rgba(128,73,226,.07),0 12px 34px rgba(0,0,0,.18)}.knox-global-search-icon{position:absolute;z-index:2;left:14px;top:50%;width:17px;height:17px;transform:translateY(-50%);color:#7d839a}.knox-global-search-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.knox-global-search kbd{position:absolute;right:10px;top:50%;transform:translateY(-50%);padding:3px 6px;border:1px solid rgba(255,255,255,.08);border-radius:6px;background:rgba(255,255,255,.025);color:#656b80;font:700 .56rem system-ui}
.knox-global-results{position:absolute;z-index:120;left:0;right:0;top:49px;max-height:min(620px,72vh);overflow:auto;padding:8px;border:1px solid rgba(255,255,255,.09);border-radius:15px;background:rgba(12,14,30,.98);box-shadow:0 28px 70px rgba(0,0,0,.48);backdrop-filter:blur(18px)}.knox-global-group+.knox-global-group{margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.055)}.knox-global-group-title{padding:5px 8px;color:#776f93;font-size:.52rem;font-weight:950;letter-spacing:.12em;text-transform:uppercase}.knox-global-result{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px;border-radius:10px;color:#e6e8f5;text-decoration:none}.knox-global-result:hover,.knox-global-result.is-active{background:rgba(143,87,239,.12)}.knox-global-result-media{display:grid;place-items:center;width:38px;height:38px;overflow:hidden;border:1px solid rgba(255,255,255,.07);border-radius:10px;background:#16162d;color:#9c79df;font-size:.55rem;font-weight:900}.knox-global-result-media img{width:100%;height:100%;object-fit:cover}.knox-global-result-copy{min-width:0}.knox-global-result-copy strong,.knox-global-result-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.knox-global-result-copy strong{font-size:.69rem}.knox-global-result-copy small{margin-top:2px;color:#737a91;font-size:.56rem}.knox-global-result-type{color:#7c7397;font-size:.52rem}.knox-global-state{padding:18px 12px;text-align:center;color:#737a91;font-size:.65rem}
body.knox-app-shell .top-actions{display:flex!important;align-items:center;justify-content:flex-end;gap:8px}.knox-header-notify{position:relative;display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(255,255,255,.07);border-radius:11px;background:rgba(255,255,255,.03);color:#9ca1b5}.knox-header-notify svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.knox-header-notify>span{position:absolute;right:-3px;top:-4px;display:grid;place-items:center;min-width:16px;height:16px;padding:0 4px;border:2px solid #080a18;border-radius:999px;background:#a254f5;color:#fff;font-size:.49rem;font-weight:900}.knox-header-profile{display:flex;align-items:center;gap:8px;padding:3px 7px 3px 3px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.025);color:#d9dceb;text-decoration:none}.knox-header-profile img,.knox-header-profile>span{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;object-fit:cover;background:linear-gradient(135deg,#814ee6,#512b9d);color:#fff;font-size:.65rem;font-weight:900}.knox-header-profile b{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.65rem}
.knox-sidebar-v2 .knox-sidebar-inner{padding-top:14px!important}.knox-sidebar-v2 .knox-sidebar-search{display:none!important}.knox-snav-group{margin:0 0 16px}.knox-snav-group-title{padding:0 14px 7px;color:#555d73;font-size:.5rem;font-weight:950;letter-spacing:.13em;text-transform:uppercase}.knox-sidebar-v2 .knox-snav{display:grid;gap:2px}.knox-sidebar-v2 .knox-snav-item{position:relative;min-height:40px;border-radius:10px}.knox-sidebar-v2 .knox-snav-item.is-active{background:linear-gradient(90deg,rgba(138,80,236,.15),rgba(138,80,236,.045))!important;color:#e7dcff!important}.knox-sidebar-v2 .knox-snav-item.is-active:before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:2px;border-radius:2px;background:#9b63ff;box-shadow:0 0 12px rgba(155,99,255,.65)}.knox-snav-external{margin-left:auto;color:#616a80;font-size:.58rem}.knox-following-v2{margin:5px 8px 12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.055)}.knox-following-v2 .knox-following-title{padding:0 6px 7px;color:#555d73;font-size:.5rem;font-weight:950;letter-spacing:.13em;text-transform:uppercase}.knox-following-v2 .knox-following-list{display:grid;gap:4px}.knox-following-v2 .knox-following-item{display:flex;align-items:center;gap:9px;padding:6px;border-radius:10px;color:#aeb3c6;text-decoration:none}.knox-following-v2 .knox-following-item:hover{background:rgba(255,255,255,.03);color:#fff}.knox-follow-avatar-wrap{position:relative;flex:0 0 auto;width:31px;height:31px}.knox-following-v2 .knox-following-avatar,.knox-following-v2 .knox-following-avatar img,.knox-following-v2 .knox-following-avatar>*{width:31px!important;height:31px!important;border-radius:9px!important;object-fit:cover}.knox-follow-avatar-wrap i{position:absolute;right:-2px;bottom:-2px;width:9px;height:9px;border:2px solid #0a0c19;border-radius:50%;background:#ff3e83;box-shadow:0 0 8px rgba(255,62,131,.6)}.knox-following-copy{display:flex;min-width:0;flex-direction:column}.knox-following-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.63rem;font-weight:750}.knox-following-copy small{margin-top:2px;color:#ff6ca5;font-size:.48rem;font-weight:900;letter-spacing:.05em}.knox-sidebar-foot-v2{display:grid!important;gap:8px;margin-top:auto!important;padding-top:10px!important}.knox-sidebar-logout{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:9px;color:#727a91;text-decoration:none;font-size:.61rem}.knox-sidebar-logout:hover{background:rgba(255,255,255,.03);color:#d9ddec}.knox-sidebar-logout svg{width:17px;height:17px}
@media(max-width:900px){body.knox-app-shell .header-inner{grid-template-columns:auto 1fr auto;gap:10px}.knox-global-search{max-width:none}.knox-global-search kbd{display:none}.knox-global-search input{padding-right:12px}.knox-header-profile b{display:none}}
@media(max-width:650px){body.knox-app-shell .header-inner{grid-template-columns:auto auto 1fr;gap:7px}.knox-global-search{grid-column:1/-1;grid-row:2;margin-bottom:7px}body.knox-app-shell .site-header .header-inner{padding-top:8px;padding-bottom:0}.knox-header-notify{margin-left:auto}.knox-header-profile{padding-right:3px}body.knox-app-shell .logo{min-width:116px}body.knox-app-shell .logo-img{width:116px!important;max-height:29px!important}}
@media (min-width:980px) and (hover:hover) and (pointer:fine){
  :root{--knox-header-height:68px!important;--knox-sidebar-width:205px!important}
  body.knox-app-shell .site-header{position:sticky!important;top:0!important;height:68px!important;overflow:visible!important}
  .knox-sidebar{top:68px!important;height:calc(100vh - 68px)!important}
  .knox-layout{width:calc(100% - 205px)!important;max-width:none!important;margin-left:205px!important;margin-right:0!important;gap:0!important}
  .knox-content{width:100%!important;max-width:none!important}
}
.knox-sidebar-v2 .knox-snav-item{border-radius:10px!important;border-left:0!important}
.knox-sidebar-v2 .knox-snav-item.is-active{border-left:0!important}
.knox-sidebar-v2 .knox-sidebar-inner{border-radius:0!important}
@media(max-width:979px){.knox-layout{width:100%!important;margin-left:0!important}}

body.knox-app-shell .site-header{height:68px!important;overflow:visible!important}
body.knox-app-shell .header-inner{height:68px!important}
@media(max-width:650px){body.knox-app-shell .site-header{height:116px!important}body.knox-app-shell .header-inner{height:116px!important;grid-template-rows:50px 52px!important;align-content:center}.knox-global-results{top:45px}}
body.knox-app-shell .site-main{padding:0!important}

/* Mobile app shell: compact, predictable and clear on narrow phones. */
@media(max-width:650px){
  html,body.knox-app-shell{max-width:100%;overflow-x:hidden}
  body.knox-app-shell .site-header{height:108px!important;min-height:108px!important}
  body.knox-app-shell .header-inner{
    height:108px!important;
    min-height:108px!important;
    grid-template-columns:minmax(96px,1fr) auto!important;
    grid-template-rows:47px 49px!important;
    gap:4px 8px!important;
    align-content:center!important;
    padding:6px 10px 0!important;
  }
  body.knox-app-shell .logo{min-width:0!important}
  body.knox-app-shell .logo-img{width:108px!important;max-width:100%!important;max-height:28px!important}
  body.knox-app-shell .top-actions{min-width:0!important;gap:5px!important}
  body.knox-app-shell .top-actions .btn-ghost,
  body.knox-app-shell .top-actions .btn-primary{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:36px!important;
    padding:0 10px!important;
    white-space:nowrap!important;
    font-size:.68rem!important;
  }
  body.knox-app-shell .knox-burger{
    width:36px!important;
    height:36px!important;
    flex:0 0 36px!important;
    justify-content:center!important;
    border-radius:10px!important;
  }
  body.knox-app-shell .knox-header-notify{width:36px;height:36px;border-radius:10px}
  body.knox-app-shell .knox-header-profile{height:36px;padding:2px!important;border-radius:10px}
  body.knox-app-shell .knox-header-profile img,
  body.knox-app-shell .knox-header-profile>span{width:30px;height:30px;border-radius:8px}
  body.knox-app-shell .knox-global-search{
    grid-column:1/-1!important;
    grid-row:2!important;
    align-self:start!important;
    margin:0!important;
  }
  body.knox-app-shell .knox-global-search input{height:40px!important;padding-left:39px!important;font-size:.72rem!important}
  body.knox-app-shell .knox-global-search-icon{left:13px!important}
  body.knox-app-shell .knox-global-results{top:44px!important;max-height:calc(100dvh - 124px)!important}
  body.knox-app-shell .knox-sidebar{
    top:108px!important;
    left:0!important;
    width:min(86vw,300px)!important;
    height:calc(100dvh - 108px)!important;
    z-index:79!important;
    box-shadow:22px 0 55px rgba(0,0,0,.48)!important;
  }
  body.knox-app-shell .knox-sidebar-inner{padding:15px 12px max(18px,env(safe-area-inset-bottom))!important}
  body.knox-app-shell .knox-sidebar-v2 .knox-snav-item{min-height:46px!important;border-radius:11px!important}
  body.knox-app-shell .knox-sidebar-v2 .knox-snav-label{font-size:.78rem!important}
}

@media(max-width:360px){
  body.knox-app-shell .logo-img{width:98px!important}
  body.knox-app-shell .top-actions{gap:3px!important}
  body.knox-app-shell .top-actions .btn-ghost,
  body.knox-app-shell .top-actions .btn-primary{padding:0 8px!important;font-size:.64rem!important}
}

/* Header notifications */
.knox-notify-wrap{position:relative;display:grid;place-items:center}.knox-notify-wrap [hidden]{display:none!important}.knox-header-notify{appearance:none;padding:0;cursor:pointer}.knox-header-notify:hover,.knox-header-notify[aria-expanded="true"]{border-color:rgba(166,108,255,.28);background:rgba(137,76,239,.11);color:#d8c4ff}.knox-header-notify:focus-visible{outline:2px solid rgba(167,111,255,.72);outline-offset:2px}
/* Public pages inherit overflow:hidden from the legacy header. That clipped the
   notification panel to the header height, leaving only its rounded top edge
   visible over the homepage hero. Keep the complete header layer above public
   page content and allow its menus to extend outside the bar. */
body.knox-public-landing .site-header{z-index:200!important;overflow:visible!important}
body.knox-public-landing .site-header .header-inner,body.knox-public-landing .top-actions{overflow:visible!important}
body.knox-public-landing .knox-notify-wrap{z-index:210}
.knox-snav-badge{display:grid;place-items:center;min-width:19px;height:19px;margin-left:auto;padding:0 5px;border-radius:999px;background:rgba(158,93,255,.2);color:#cbb0ff;font-size:.49rem;font-weight:950}
.knox-notify-panel{position:absolute;z-index:160;top:calc(100% + 11px);right:0;width:min(380px,calc(100vw - 24px));overflow:hidden;border:1px solid rgba(255,255,255,.105);border-radius:17px;background:rgba(11,13,29,.985);box-shadow:0 28px 75px rgba(0,0,0,.52);backdrop-filter:blur(22px)}.knox-notify-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 16px 13px;border-bottom:1px solid rgba(255,255,255,.065)}.knox-notify-head>div{display:grid;gap:2px}.knox-notify-head span{color:#9169da;font-size:.48rem;font-weight:950;letter-spacing:.14em;text-transform:uppercase}.knox-notify-head strong{color:#f3f0ff;font-size:.84rem}.knox-notify-head button{appearance:none;border:0;background:transparent;color:#b894f5;cursor:pointer;font:800 .57rem system-ui}.knox-notify-head button:hover{color:#e2d4ff}.knox-notify-list{max-height:min(470px,65vh);overflow:auto;padding:7px}.knox-notify-item{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border-radius:12px;color:#e8e8f4;text-decoration:none}.knox-notify-item:hover{background:rgba(255,255,255,.045)}.knox-notify-item.is-unread{background:linear-gradient(90deg,rgba(132,72,231,.14),rgba(132,72,231,.035))}.knox-notify-item.is-unread:before{content:"";position:absolute;left:2px;top:17px;width:4px;height:4px;border-radius:50%;background:#ad75ff;box-shadow:0 0 9px rgba(173,117,255,.8)}.knox-notify-avatar{display:grid;place-items:center;width:38px;height:38px;overflow:hidden;border:1px solid rgba(255,255,255,.08);border-radius:11px;background:linear-gradient(145deg,#34205a,#17152f);color:#d9c1ff;font-size:.68rem;font-weight:900}.knox-notify-avatar img{width:100%;height:100%;object-fit:cover}.knox-notify-copy{min-width:0;display:grid;gap:3px}.knox-notify-copy strong,.knox-notify-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.knox-notify-copy strong{color:#eeedf8;font-size:.66rem}.knox-notify-copy small{color:#858ba1;font-size:.56rem}.knox-notify-item time{align-self:start;padding-top:2px;color:#666d83;font-size:.5rem;font-weight:750}.knox-notify-empty{display:grid;place-items:center;padding:31px 18px;text-align:center}.knox-notify-empty>span{display:grid;place-items:center;width:34px;height:34px;margin-bottom:9px;border-radius:50%;background:rgba(88,211,167,.1);color:#63d9ae;font-weight:900}.knox-notify-empty strong{color:#dfe2ee;font-size:.72rem}.knox-notify-empty small{margin-top:4px;color:#747b91;font-size:.58rem}.knox-notify-footer{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid rgba(255,255,255,.065);color:#c5a8f8;text-decoration:none;font-size:.61rem;font-weight:850}.knox-notify-footer:hover{background:rgba(146,88,242,.07);color:#e4d7ff}
@media(max-width:650px){.knox-notify-panel{position:fixed;top:112px;right:8px;left:8px;width:auto;max-height:calc(100dvh - 120px);border-radius:15px}.knox-notify-list{max-height:calc(100dvh - 238px)}.knox-notify-head{padding:14px}.knox-notify-item{padding:9px}.knox-notify-copy strong{font-size:.69rem}.knox-notify-copy small{font-size:.59rem}}
