/* Member portal chrome. Marketing nav stays on signed-out pages. */
body.ad-portal-on{
  margin:0;background:#030605;color:#e8f2ea;overflow:hidden
}
body.ad-portal-on .dk-bar{
  height:52px;display:flex;align-items:center;gap:10px;
  padding:0 10px 0 12px;border-bottom:1px solid #163822;
  background:#050806;position:relative;z-index:30
}
body.ad-portal-on .dk-brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:inherit;min-width:0}
body.ad-portal-on .dk-brand img{width:26px;height:26px;display:block}
body.ad-portal-on .dk-brand b{
  font-family:Orbitron,var(--font-display),sans-serif;font-size:13px;letter-spacing:.14em;font-weight:800;color:#e8f2ea
}
body.ad-portal-on .dk-brand b span{color:#00ff66}
body.ad-portal-on .dk-bar-mid{min-width:0;flex:1;display:flex;align-items:center;gap:10px}
body.ad-portal-on .dk-bar .desk-title{
  font-family:Orbitron,var(--font-display),sans-serif;font-size:15px;font-weight:800;
  letter-spacing:.02em;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  position:static;width:auto;height:auto;clip:auto;
  background:none;-webkit-text-fill-color:initial;color:#e8f2ea
}
body.ad-portal-on .dk-bar .desk-title span{color:var(--ad-tier,#00ff66)}
body.ad-portal-on .dk-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
body.ad-portal-on .dk-actions .btn{min-height:36px;padding:0 10px;font-size:11px;letter-spacing:.08em}
body.ad-portal-on .tier-pill{
  display:inline-flex;align-items:center;font-family:var(--font-mono);
  font-size:10px;letter-spacing:.12em;padding:6px 8px;white-space:nowrap;
  border:1px solid var(--ad-tier,#00ff66);color:var(--ad-tier,#00ff66);
  background:color-mix(in srgb,var(--ad-tier,#00ff66) 14%, transparent)
}
body.ad-portal-on #dojo-link{display:none}
body.ad-portal-on .dk-shell{
  display:flex;flex-direction:column;
  height:calc(100svh - 52px);height:calc(100dvh - 52px);min-height:0
}
body.ad-portal-on .dk-stage{
  flex:1;min-height:0;min-width:0;overflow:auto;padding:0
}
body.ad-portal-on .dk-rail{
  order:2;display:flex;flex-direction:column;background:#070b08;
  border-top:1px solid #163822;position:fixed;left:0;right:0;bottom:0;z-index:40
}
body.ad-portal-on .dk-rail-h{display:none}
body.ad-portal-on #feats{display:flex;gap:0;overflow-x:auto;scrollbar-width:none}
body.ad-portal-on #feats::-webkit-scrollbar{display:none}
body.ad-portal-on .feat{
  flex:0 0 auto;min-width:128px;border:0;border-right:1px solid #102818;
  padding:10px 12px 12px;background:transparent;text-decoration:none;color:inherit;
  display:flex;flex-direction:column;gap:2px;min-height:64px
}
body.ad-portal-on .feat:hover{background:#0c140f}
body.ad-portal-on .feat.is-on{background:#0c1810;box-shadow:inset 0 -2px 0 var(--ad-tier,#00ff66)}
body.ad-portal-on .feat.locked{opacity:.55}
body.ad-portal-on .feat-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
body.ad-portal-on .feat h3{font-size:12px;margin:0;line-height:1.2;font-weight:700}
body.ad-portal-on .feat p{font-size:10px;color:#7a9484;margin:0}
body.ad-portal-on .feat-state{font-family:var(--font-mono);font-size:8px;letter-spacing:.08em;color:#00ff66}
body.ad-portal-on .feat.locked .feat-state{color:#ff8a1e}
body.ad-portal-on .dk-set{
  display:none;align-items:center;gap:8px;padding:10px 12px;border-top:1px solid #102818;
  font-family:var(--font-mono);font-size:10px;letter-spacing:.08em;color:#c5d4c8;cursor:pointer
}
body.ad-portal-on .dk-set input{accent-color:#00ff66}
body.ad-portal-on .dk-restore{
  display:none;position:fixed;top:10px;right:10px;z-index:90;
  min-height:36px;padding:0 12px;font-size:11px;letter-spacing:.08em
}
body.dk-chrome-off .dk-bar,
body.dk-chrome-off .dk-rail{display:none !important}
body.dk-chrome-off .dk-shell{height:100svh;height:100dvh}
body.dk-chrome-off .dk-restore{display:inline-flex}
body.ad-portal-on #dk-battle{display:flex;padding:0;background:#030605}
body.ad-portal-on #dk-battle iframe{flex:1;width:100%;height:100%;border:0;background:#030605}
body.ad-portal-on #ad-pub-header,
body.ad-portal-on #ad-pub-footer,
body.ad-portal-on .pubbar{display:none !important}
body.ad-portal-on .algos-frame{min-height:0;padding:12px 0 28px}
body.ad-portal-on .algos-inner{width:100%;max-width:none;padding:0 12px}
body.ad-portal-on .ledger-fold{min-height:0}
body.ad-portal-on .ledger-fold .page-hero{padding-top:12px}
body.ad-portal-on .page-hero{padding-top:16px}
@media (min-width:901px){
  body.ad-portal-on .dk-bar{height:48px}
  body.ad-portal-on .dk-shell{flex-direction:row;height:calc(100svh - 48px);height:calc(100dvh - 48px)}
  body.ad-portal-on .dk-stage{order:1}
  body.ad-portal-on .dk-rail{
    order:0;position:relative;left:auto;right:auto;bottom:auto;
    width:260px;flex:0 0 260px;border-top:0;border-right:1px solid #163822;overflow:auto;z-index:1
  }
  body.ad-portal-on.dk-rail-shut .dk-rail{width:0;flex-basis:0;overflow:hidden;border:0}
  body.ad-portal-on .dk-rail-h{
    display:flex;align-items:center;justify-content:space-between;
    padding:10px 12px;border-bottom:1px solid #102818;
    font-family:var(--font-mono);font-size:10px;letter-spacing:.16em;color:#7a9484
  }
  body.ad-portal-on .dk-rail-tog{display:inline-flex}
  body.ad-portal-on #feats{flex-direction:column;overflow:visible}
  body.ad-portal-on .feat{min-width:0;border-right:0;border-bottom:1px solid #102818;min-height:54px}
  body.ad-portal-on .feat.is-on{box-shadow:inset 3px 0 0 var(--ad-tier,#00ff66)}
  body.ad-portal-on .dk-set{display:flex}
}
@media (max-width:900px){
  body.ad-portal-on .dk-brand b{display:none}
  body.ad-portal-on .dk-bar .desk-title{font-size:12px}
  body.ad-portal-on .tier-pill,body.ad-portal-on #adi-head .adi-chip{max-width:28vw;overflow:hidden;text-overflow:ellipsis}
  body.ad-portal-on .dk-stage{padding-bottom:84px}
}
/* Phones: the header row (identity chip + billing + sign out) fits 375px with no
   sideways scroll. Full screen is a desktop control; the rail's "Hide sidebar and
   navbar" box does the same on phones. */
@media (max-width:520px){
  body.ad-portal-on .dk-bar{gap:6px;padding:0 8px}
  body.ad-portal-on .dk-actions{flex:0 1 auto;min-width:0;gap:4px}
  body.ad-portal-on .dk-actions .btn{padding:0 7px;font-size:10px;letter-spacing:.04em}
  body.ad-portal-on #dk-full{display:none}
}
body.ad-portal-on main.page{
  max-width:none;width:100%;margin:0;padding:0
}
body.ad-portal-on.dk-chrome-off .dk-shell{height:100svh;height:100dvh}
body.ad-portal-on.dk-chrome-off .dk-stage{padding:0}
