:root{
  --cww-shell-gap:24px;
  --cww-shell-radius:18px;
  --cww-shell-fast:140ms;
  --cww-shell-medium:220ms;
}

.cww-workspace-switcher{
  position:relative;
  display:grid;
  grid-template-columns:minmax(260px,.62fr) minmax(0,1.38fr);
  margin:0 0 24px;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:var(--cww-shell-radius);
  background:
    linear-gradient(118deg,rgba(240,180,41,.055),transparent 34%),
    linear-gradient(148deg,rgba(255,255,255,.018),transparent 58%),
    var(--surface);
  box-shadow:0 18px 48px rgba(0,0,0,.08),inset 0 1px 0 rgba(255,255,255,.02);
}

.cww-workspace-switcher::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:2px;
  background:linear-gradient(90deg,var(--amber),rgba(240,180,41,.18) 34%,rgba(76,194,255,.16),var(--blue));
}

.workspace-anchor{
  position:absolute;
  inset:0 auto auto 0;
  width:1px;
  height:1px;
  pointer-events:none;
}

.cww-workspace-intro{
  min-width:0;
  padding:25px 26px 23px;
}

.cww-workspace-kicker{
  display:block;
  color:var(--amber);
  font-size:10px;
  font-weight:780;
  line-height:15px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.cww-workspace-intro h2{
  margin:8px 0 0;
  font-family:var(--font-display);
  font-size:20px;
  font-weight:690;
  line-height:27px;
  letter-spacing:-.025em;
}

.cww-workspace-intro p{
  max-width:390px;
  margin:7px 0 0;
  color:var(--text2);
  font-size:11px;
  line-height:18px;
}

.cww-workspace-tabs{
  min-width:0;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  border-left:1px solid var(--border);
}

.cww-workspace-tabs button{
  position:relative;
  min-width:0;
  min-height:116px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  padding:17px 14px;
  overflow:hidden;
  border:0;
  border-left:1px solid var(--border);
  background:transparent;
  color:var(--text2);
  text-align:left;
  cursor:pointer;
  transition:background var(--cww-shell-fast) ease,color var(--cww-shell-fast) ease,transform var(--cww-shell-fast) ease;
}

.cww-workspace-tabs button:first-child{border-left:0}

.cww-workspace-tabs button::after{
  content:"";
  position:absolute;
  inset:auto 14px 0;
  height:2px;
  border-radius:99px 99px 0 0;
  background:transparent;
  transition:background var(--cww-shell-fast) ease,transform var(--cww-shell-fast) ease;
  transform:scaleX(.3);
}

.cww-workspace-tabs button:hover{
  background:rgba(255,255,255,.025);
  color:var(--text);
}

.cww-workspace-tabs button:active{transform:translateY(1px)}

.cww-workspace-tabs button[aria-selected="true"]{
  background:linear-gradient(180deg,rgba(240,180,41,.095),rgba(240,180,41,.025));
  color:var(--text);
}

.cww-workspace-tabs button[aria-selected="true"]::after{
  background:var(--amber);
  transform:scaleX(1);
}

.cww-workspace-tabs button:focus-visible{
  z-index:2;
  outline:2px solid var(--amber);
  outline-offset:-3px;
}

.cww-workspace-index{
  color:var(--text3);
  font-family:var(--font-numeric);
  font-size:10px;
  font-weight:760;
  line-height:13px;
  letter-spacing:.08em;
}

.cww-workspace-tabs strong{
  display:block;
  max-width:100%;
  margin-top:7px;
  overflow:hidden;
  font-family:var(--font-display);
  font-size:13px;
  font-weight:690;
  line-height:19px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.cww-workspace-tabs small{
  display:block;
  max-width:100%;
  margin-top:3px;
  overflow:hidden;
  color:var(--text3);
  font-size:10px;
  font-weight:620;
  line-height:15px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.cww-workspace-region{
  min-width:0;
  min-height:320px;
  display:flex;
  flex-direction:column;
  gap:var(--cww-shell-gap);
  outline:none;
}

.cww-workspace-region:focus-visible{
  outline:2px solid var(--amber);
  outline-offset:6px;
  border-radius:var(--cww-shell-radius);
}

.universe-copy>span{display:block}
.universe-equations{display:flex!important;flex-wrap:wrap;column-gap:10px}
.universe-scope-copy{margin-top:7px;color:var(--text3)}
.relative-kicker,.relative-metric span,.relative-metric small{font-size:10px;line-height:15px}

.cww-workspace-region>[data-workspace]{
  margin-top:0;
  margin-bottom:0;
}

.cww-workspace-region>[data-workspace][hidden]{display:none!important}

.cww-workspace-region>.hero-grid[data-workspace="overview"]{order:10}
.cww-workspace-region>#relativeRail[data-workspace="overview"]{order:20}
.cww-workspace-region>#liveLayer[data-workspace="overview"]{order:30}
.cww-workspace-region>#pulse72[data-workspace="overview"]{order:40}
.cww-workspace-region>#trend[data-workspace="performance"]{order:10}
.cww-workspace-region>.stats-grid[data-workspace="performance"]{order:20}
.cww-workspace-region>#construction[data-workspace="universe"]{order:10}
.cww-workspace-region>#weights[data-workspace="universe"]{order:20}
.cww-workspace-region>#classification[data-workspace="universe"]{order:30}
.cww-workspace-region>#analytics[data-workspace="intelligence"]{order:10}
.cww-workspace-region>#memoryPulse[data-workspace="intelligence"]{order:20}
.cww-workspace-region>#chainAtlas[data-workspace="intelligence"]{order:30}
.cww-workspace-region>#downloads[data-workspace="resources"]{order:10}

html[data-shell-ready="true"] .cww-workspace-region>[data-workspace]:not([hidden]){
  animation:cww-workspace-in var(--cww-shell-medium) cubic-bezier(.16,1,.3,1) both;
}

#content.ready .cww-workspace-region>[data-workspace]:not([hidden]).enter{
  animation-delay:0ms;
}

@keyframes cww-workspace-in{
  from{opacity:0;transform:translateY(7px)}
  to{opacity:1;transform:translateY(0)}
}

.pulse72-toggle{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 13px;
  border:1px solid rgba(240,180,41,.34);
  border-radius:10px;
  background:rgba(240,180,41,.075);
  color:var(--text);
  font-size:10px;
  font-weight:720;
  line-height:15px;
  cursor:pointer;
  transition:border-color var(--cww-shell-fast) ease,background var(--cww-shell-fast) ease,transform var(--cww-shell-fast) ease;
}

.pulse72-toggle:hover{
  border-color:var(--amber);
  background:rgba(240,180,41,.12);
}

.pulse72-toggle:active{transform:translateY(1px)}
.pulse72-toggle-close{display:none}
.pulse72-toggle[aria-expanded="true"] .pulse72-toggle-open{display:none}
.pulse72-toggle[aria-expanded="true"] .pulse72-toggle-close{display:inline}
.pulse72-details{margin-top:18px}

#pulse72[data-state="closed"]{
  background:
    linear-gradient(112deg,rgba(240,180,41,.055),transparent 40%),
    var(--surface);
}

.noscript-fallback{
  max-width:760px;
  margin:18px auto 0;
  padding:28px;
}

.noscript-fallback h1{
  margin:0;
  font-family:var(--font-display);
  font-size:26px;
  line-height:34px;
  letter-spacing:-.025em;
}

.noscript-fallback p{
  margin:10px 0 0;
  color:var(--text2);
  font-size:13px;
  line-height:21px;
}

.noscript-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:20px;
}

.noscript-links a{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  border:1px solid var(--border);
  border-radius:10px;
  color:var(--text);
  font-size:11px;
  font-weight:680;
  text-decoration:none;
}

html[data-theme="light"] .cww-workspace-switcher{
  background:
    linear-gradient(118deg,rgba(140,87,0,.05),transparent 34%),
    linear-gradient(148deg,rgba(255,255,255,.5),transparent 58%),
    var(--surface);
  box-shadow:0 16px 42px rgba(35,45,60,.08),inset 0 1px 0 rgba(255,255,255,.82);
}

html[data-theme="light"] .cww-workspace-tabs button:hover{background:rgba(17,24,39,.035)}

html[data-theme="light"] .cww-workspace-tabs button[aria-selected="true"]{
  background:linear-gradient(180deg,rgba(140,87,0,.09),rgba(140,87,0,.02));
}

@media (max-width:1100px){
  .cww-workspace-switcher{grid-template-columns:minmax(230px,.5fr) minmax(0,1.5fr)}
  .cww-workspace-intro{padding-right:20px;padding-left:20px}
  .cww-workspace-tabs button{padding-right:10px;padding-left:10px}
}

@media (max-width:900px){
  .cww-workspace-switcher{grid-template-columns:1fr}
  .cww-workspace-intro{padding:22px 22px 18px}
  .cww-workspace-intro p{max-width:620px}
  .cww-workspace-tabs{border-top:1px solid var(--border);border-left:0}
  .cww-workspace-tabs button{min-height:96px}
}

@media (max-width:768px){
  :root{--cww-shell-gap:18px}
  main{padding-top:28px}
  html[data-shell-ready="true"] .mobile-nav{display:none}
  html[data-shell-ready="true"] .stale-banner{top:64px}
  html[data-shell-ready="true"] section{scroll-margin-top:84px}
  .brand,.footer-brand{min-height:44px}
  .universe-intro{padding-top:0;margin-bottom:18px}
  .cww-workspace-switcher{margin-bottom:18px;border-radius:16px}
  .cww-workspace-intro{padding:14px 16px 12px}
  .cww-workspace-intro .cww-workspace-kicker,.cww-workspace-intro p{display:none}
  .cww-workspace-intro h2{margin:0;font-size:16px;line-height:22px}
  .cww-workspace-tabs{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:16px;
    scrollbar-width:none;
    overscroll-behavior-inline:contain;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 16px,#000 calc(100% - 16px),transparent 100%);
    mask-image:linear-gradient(90deg,transparent 0,#000 16px,#000 calc(100% - 16px),transparent 100%);
  }
  .cww-workspace-tabs::-webkit-scrollbar{display:none}
  .cww-workspace-tabs button{
    flex:0 0 118px;
    min-height:72px;
    padding:10px 12px;
    scroll-snap-align:center;
  }
  .cww-workspace-tabs button::after{right:12px;left:12px}
  .pulse72-toggle{min-height:44px}
}

@media (max-width:480px){
  :root{--cww-shell-gap:16px}
  .universe-intro{gap:13px;padding-bottom:22px}
  .universe-title{font-size:30px;line-height:36px}
  .birth-mark{margin-top:15px}
  .cww-workspace-intro{display:none}
  .cww-workspace-tabs{border-top:0}
  .cww-workspace-tabs button{flex-basis:112px;min-height:68px;padding:9px 12px}
  .cww-workspace-tabs strong{font-size:12px;line-height:18px}
  .cww-workspace-tabs small{font-size:10px;line-height:15px}
  .cww-workspace-region .code-chip{display:inline-flex}
  .cww-workspace-region>.hero-grid{gap:12px}
  .cww-workspace-region .hero-card{padding:20px}
  .cww-workspace-region .hero-value-row{margin-top:22px}
  .cww-workspace-region .return-chips{margin-top:16px}
  .relative-metrics{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
  .relative-metric{min-width:0;border-right:1px solid var(--border);border-bottom:1px solid var(--border)}
  .relative-metric:nth-child(2n){border-right:0}
  .relative-metric:nth-last-child(-n+2){border-bottom:0}
  #pulse72 .pulse72-head-actions{width:100%;display:grid;grid-template-columns:84px minmax(0,1fr);gap:8px}
  #pulse72 .pulse72-count{min-width:0}
  #pulse72 .pulse72-download,#pulse72 .pulse72-toggle{width:100%;min-width:0}
  #pulse72 .pulse72-toggle{grid-column:1/-1}
  .pulse72-details{margin-top:14px}
}

@media (prefers-reduced-motion:reduce){
  html[data-shell-ready="true"] .cww-workspace-region>[data-workspace]:not([hidden]){animation:none!important}
  .cww-workspace-tabs button,.cww-workspace-tabs button::after,.pulse72-toggle{transition:none!important}
}
