/* Full-width workspaces. Navigation stays in a single top-right disclosure. */
.app-shell{display:block;--side:0px;min-height:100vh;min-height:100dvh}
.main-column{width:100%;min-height:100vh;min-height:100dvh}
.page-content,body[data-route] .page-content{width:100%;max-width:none;margin:0;padding:22px 28px;flex:1;min-width:0}
.topbar{height:68px;min-height:68px;padding:0 28px;z-index:60;gap:16px;background:rgba(10,16,23,.97);backdrop-filter:blur(16px)}
.topbar-left,.topbar-right{min-width:0;gap:16px}.topbar-right{margin-left:auto}
.header-brand{display:flex;flex-direction:column;align-items:center;text-decoration:none;flex-shrink:0;gap:2px}
.header-brand img{width:112px;height:34px;object-fit:contain}.header-brand span{font-size:7px;letter-spacing:3px;color:#9bb1bf}
.topbar-section{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
.topbar-separator{height:24px;width:1px;background:#283640}.topbar-environment{display:flex;align-items:center;gap:7px;font:10px var(--mono);color:#9db1bd}
.workspace-menu-toggle{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:9px 14px;border:1px solid #38505c;border-radius:8px;background:#17232d;color:#e0edf4;font:600 13px var(--sans,system-ui,sans-serif);cursor:pointer;flex-shrink:0}
.workspace-menu-toggle svg{width:18px;height:18px}.workspace-menu-toggle[aria-expanded=true]{border-color:#00d7ef;background:#18333e}
.workspace-menu{position:absolute;top:calc(100% + 8px);right:28px;width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 88px);overflow:auto;overscroll-behavior:contain;background:#101a24;border:1px solid #38505c;border-radius:12px;box-shadow:0 24px 70px #000a;padding:16px}
.workspace-menu[hidden],button[hidden]{display:none!important}
.workspace-menu-heading{display:flex;justify-content:space-between;gap:8px;padding:3px 4px 14px;font-size:11px;color:#e0edf4}.workspace-menu-heading span{font:9px var(--mono);color:#8b9eac}
.workspace-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.workspace-navigation .nav-caption{grid-column:1/-1;margin:10px 8px 2px;font-size:9px;letter-spacing:1.8px}
.workspace-navigation .nav-link{width:100%;min-width:0;min-height:44px;margin:0;padding:10px;border:1px solid transparent;border-radius:6px;display:flex;align-items:center;gap:9px;text-align:left;background:transparent;color:#b7c6d2;cursor:pointer;font-size:12px}
.workspace-navigation .nav-link svg{width:17px;height:17px;flex-shrink:0}.workspace-navigation .nav-link.active,.workspace-navigation .nav-link:hover{background:#17303b;border-color:#285564;color:#e8faff}
.workspace-navigation .nav-link span{min-width:0}.workspace-navigation .nav-link .nav-badge{margin-left:auto;font-size:8px}
.workspace-menu-footer{display:flex;gap:8px;border-top:1px solid #2a3844;padding-top:12px;margin-top:12px}.workspace-menu-footer .button{flex:1;min-height:44px;justify-content:center}
.menu-connection{display:flex;justify-content:space-between;gap:12px;padding:14px 4px 0;font:10px var(--mono);color:#8da4b3}.menu-connection strong{font-size:10px;color:#a9d3d8}
.workspace-stage{min-width:0}.workspace-stage>.page-heading{margin-bottom:18px}
.session-drawer{border-top:1px solid #263540}.session-drawer>summary,.workspace-details>summary{cursor:pointer;padding:11px 14px;font-size:11px;font-weight:600;color:#bcd0dd}.session-drawer>summary span,.workspace-details>summary span{float:right;font:9px var(--mono);color:#8095a5}
.local-ticker{position:static;left:auto;right:auto;bottom:auto;height:34px;min-height:34px}
.page-footer{padding:10px 28px;min-height:0;font-size:9px;gap:12px}
.workspace-details{border:1px solid #2a3944;border-radius:8px;background:#101921;min-width:0}.workspace-details[open]>summary{border-bottom:1px solid #2a3944;margin-bottom:12px}.workspace-details .soc-charts,.workspace-details .soc-bottom{padding:0 12px 12px}
.soc-title{margin-bottom:16px}.soc-title h1{font-size:28px}.soc-grid{grid-template-columns:minmax(0,1fr) 290px;gap:16px}.soc-center,.soc-rail{gap:14px}.soc-stats{gap:10px;grid-template-columns:repeat(5,minmax(0,1fr))}.soc-stats .stat{min-height:94px;padding:12px}.stat-label{font-size:9px}.stat-value{font-size:27px}.stat-sub{font-size:9px}.soc-mid{grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:14px}.soc-map{min-height:0}.map-stage{min-height:220px;max-height:340px}.soc-feed{max-height:470px;min-height:0}.soc-feed .feed{max-height:380px;overflow:auto;overscroll-behavior:contain}.soc-modules{gap:10px}.module-tile{padding:12px}.mt-text b{font-size:12px}.mt-text small{font-size:10px}.soc-rail .sp{min-height:0}.soc-rail .qt-grid{gap:7px;padding:12px}.soc-rail .qt{padding:10px 5px}.chart-body{min-height:170px}
@media(min-width:1600px){.map-stage{max-height:380px}}
@media(max-width:1200px){.soc-grid{grid-template-columns:minmax(0,1fr)}.soc-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.soc-modules{grid-template-columns:repeat(4,minmax(0,1fr))}.topbar-environment{display:none}}
@media(max-width:800px){.page-content,body[data-route] .page-content{padding:18px 16px}.topbar{padding:0 16px;gap:10px}.topbar-left,.topbar-right{gap:10px}.topbar-clock{display:none}.workspace-menu{right:12px}.soc-rail{grid-template-columns:repeat(2,minmax(0,1fr))}.soc-rail>section:last-child{grid-column:1/-1}.soc-mid{grid-template-columns:minmax(0,1fr)}.soc-feed{max-height:300px}.soc-feed .feed{max-height:230px}.soc-modules{grid-template-columns:repeat(2,minmax(0,1fr))}.soc-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.page-footer{padding:10px 16px}.map-stage{max-height:300px}}
@media(max-width:520px){.topbar{height:62px;min-height:62px;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}.header-brand img{width:88px;height:27px}.header-brand span{font-size:6px;letter-spacing:2px}.topbar-section{font-size:9px;max-width:110px}.topbar-separator,.top-search{display:none}.workspace-menu-toggle{padding:9px 10px;gap:6px}.workspace-menu-toggle svg:last-child{display:none}.workspace-menu{max-height:calc(100dvh - 80px);padding:12px}.workspace-menu-heading span{display:none}.workspace-navigation .nav-link{font-size:11px;padding:9px 6px;gap:6px}.workspace-navigation .nav-link .nav-badge{display:none}.page-content,body[data-route] .page-content{padding:16px 12px 20px}.soc-title{align-items:flex-start;gap:10px}.soc-title h1{font-size:24px}.soc-eyebrow{font-size:8px}.soc-actions{gap:6px;flex-wrap:wrap;justify-content:flex-end}.soc-actions .soc-btn{font-size:10px;padding:8px;min-height:36px}.soc-actions .soc-chip{font-size:8px}.soc-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.soc-stats .stat{min-height:78px;padding:10px}.soc-stats .stat:first-child{grid-column:1/-1}.soc-stats .stat-label{min-height:12px;font-size:8px}.soc-stats .stat-value{font-size:23px}.soc-stats .stat-icon{width:24px;height:24px}.soc-rail{grid-template-columns:minmax(0,1fr)}.soc-rail>section:last-child{grid-column:auto}.map-stage{min-height:180px;max-height:230px}.soc-charts,.soc-bottom{grid-template-columns:minmax(0,1fr)}.workspace-details>summary span,.session-drawer>summary span{display:none}.page-footer{padding:9px 12px;flex-wrap:wrap;gap:5px 12px}.module-tile{padding:10px}.mt-text small{font-size:9px}.menu-connection{font-size:9px;flex-wrap:wrap}.workspace-menu-footer .button{font-size:11px}}
@media(prefers-reduced-motion:reduce){.workspace-stage{animation:none}}
.soc-utilities{align-self:start}.soc-utilities .soc-rail{padding:0 10px 10px}.soc-stats .stat-value.word{font-size:clamp(12px,1.25vw,18px);letter-spacing:0;overflow-wrap:normal}.soc-stats .stat-ico{width:27px;height:27px}.soc-stats .stat-label{padding-right:30px}.workspace-menu-toggle .menu-chevron{transform:rotate(90deg)}.workspace-menu-toggle[aria-expanded=true] .menu-chevron{transform:rotate(-90deg)}
@media(max-width:520px){.soc-stats .stat-value.word{font-size:14px}.soc-stats .stat:first-child .stat-value.word{font-size:20px}.page-footer{display:flex}.soc-stats .stat-ico{width:23px;height:23px}}
@media(max-width:520px){.workspace-navigation .nav-chip,.workspace-navigation .nav-shortcut,.workspace-navigation .nav-number{display:none}}
/* Keep the new chrome while restoring compact, native stacked scrolling. */
.page-content.scroll-deck-mode,body[data-route] .page-content.scroll-deck-mode{padding:14px 20px 20px}
.scroll-deck{padding-bottom:0}
.deck-panel{top:var(--deck-sticky-top,80px);min-height:clamp(320px,65svh,660px);margin-bottom:14px;scroll-margin-top:80px}
.deck-panel__surface{padding:18px;border-radius:12px}
.deck-panel__surface>.page-heading{margin-bottom:18px}
.deck-panel__surface>.page-heading h1{font-size:clamp(28px,3vw,42px)}
.deck-feature{margin-top:20px;padding:24px;max-width:none}
@media(max-width:520px){.page-content.scroll-deck-mode,body[data-route] .page-content.scroll-deck-mode{padding:10px 8px 16px}.deck-panel{top:var(--deck-sticky-top,70px);scroll-margin-top:70px;min-height:clamp(280px,58svh,520px);margin-bottom:10px}.deck-panel__surface{padding:12px 10px}.deck-feature{padding:16px;margin-top:16px}}
@media(prefers-reduced-motion:reduce){.deck-panel{position:relative;top:auto;min-height:0}.deck-panel__surface{min-height:0;transform:none!important}}


/* Owner sign-in entry at the bottom of the workspace dropdown. */
.workspace-access-auth{display:grid;gap:7px;margin-top:12px;border-top:1px solid #2a3844;padding-top:12px}
.workspace-access-link{display:flex;align-items:center;gap:11px;width:100%;min-height:52px;padding:10px 12px;border:1px solid #17677c;border-radius:8px;background:#092635;color:#dffaff;text-decoration:none;cursor:pointer}
.workspace-access-link:hover,.workspace-access-link:focus-visible{background:#0b3445;border-color:#19e3ff;outline-offset:2px}
.workspace-access-link>.ico{width:20px;height:20px;color:#19e3ff;flex:none}
.workspace-access-link>.ico:last-child{width:16px;height:16px;margin-left:auto}
.workspace-access-link span{display:grid;gap:3px;min-width:0}
.workspace-access-link strong{font-size:12px;letter-spacing:.02em}
.workspace-access-link small,.workspace-access-note{font:10px var(--mono);color:#91adbd;line-height:1.45}
.workspace-access-note{padding:0 3px}
.workspace-access-link[aria-disabled=true]{opacity:.55;cursor:not-allowed}

/* GEN0X identity appears only inside the Web3 Laboratory content, never the site-wide 0XCON header. */
.gen0x-identity{display:flex;align-items:center;gap:12px;max-width:100%;margin:0 0 16px;min-height:65px}
.gen0x-identity img{display:block;width:clamp(150px,22vw,205px);height:auto;max-width:55%;object-fit:contain;filter:drop-shadow(0 2px 4px #0008)}
.gen0x-identity-caption{font:700 10px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.15em;color:#abc4d0;border-left:1px solid #315167;padding-left:12px;white-space:nowrap}
@media(max-width:520px){.gen0x-identity{gap:8px;min-height:49px;margin-bottom:10px}.gen0x-identity img{width:142px;max-width:55%}.gen0x-identity-caption{font-size:8px;letter-spacing:.09em;padding-left:8px}}

/* GEN0X Research / Web3 Laboratory only: safe narrow-screen typography and intrinsic grid sizing. */
.deck-panel[data-deck-route="gen0x"],
.deck-panel[data-deck-route="gen0x"] > .deck-panel__surface,
.deck-panel[data-deck-route="gen0x"] .page-heading,
.deck-panel[data-deck-route="gen0x"] .content-grid,
.deck-panel[data-deck-route="gen0x"] .overview-top {
  min-width:0;
  max-width:100%;
}
.deck-panel[data-deck-route="gen0x"] > .deck-panel__surface { overflow-x:clip; }
.deck-panel[data-deck-route="gen0x"] .content-grid {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));
}
.deck-panel[data-deck-route="gen0x"] .content-grid.three {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));
}
.deck-panel[data-deck-route="gen0x"] .content-card,
.deck-panel[data-deck-route="gen0x"] .panel,
.deck-panel[data-deck-route="gen0x"] .repo-card,
.deck-panel[data-deck-route="gen0x"] .ops-form,
.deck-panel[data-deck-route="gen0x"] .section-label { min-width:0; }
.deck-panel[data-deck-route="gen0x"] .content-card p,
.deck-panel[data-deck-route="gen0x"] .repo-value,
.deck-panel[data-deck-route="gen0x"] .page-heading,
.deck-panel[data-deck-route="gen0x"] .overview-top p { overflow-wrap:anywhere; }
.deck-panel[data-deck-route="gen0x"] .overview-top { flex-wrap:wrap; }
.deck-panel[data-deck-route="gen0x"] .ops-form input {
  display:block;box-sizing:border-box;max-width:100%;min-width:0;width:100%;
}
.gen0x-identity {min-width:0;max-width:100%;flex-wrap:wrap}
.gen0x-identity img {width:clamp(142px,22vw,190px);max-width:60%;aspect-ratio:520/207;object-fit:contain;filter:none}
.gen0x-identity-caption {white-space:normal;overflow-wrap:break-word}
@media(max-width:760px){
  /* Turn off GPU transforms on this panel only to avoid iOS Safari rendering artifacts. */
  .deck-panel[data-deck-route="gen0x"] > .deck-panel__surface {transform:none!important;will-change:auto}
  .deck-panel[data-deck-route="gen0x"] .content-grid,
  .deck-panel[data-deck-route="gen0x"] .content-grid.three {grid-template-columns:minmax(0,1fr)}
  .deck-panel[data-deck-route="gen0x"] .page-heading {display:block}
  .deck-panel[data-deck-route="gen0x"] .page-heading h1 {font-size:clamp(22px,6.3vw,30px);line-height:1.15;overflow-wrap:normal}
  .deck-panel[data-deck-route="gen0x"] .page-heading .badge-preview {margin-top:12px;display:inline-flex}
  .deck-panel[data-deck-route="gen0x"] .overview-top {padding:16px;gap:12px}
  .deck-panel[data-deck-route="gen0x"] .overview-top h2 {font-size:clamp(20px,6vw,24px)}
  .deck-panel[data-deck-route="gen0x"] .overview-top .hero-mark {display:none}
  .deck-panel[data-deck-route="gen0x"] .section-label {flex-wrap:wrap}
}
@media(max-width:420px){
  .gen0x-identity{gap:8px;min-height:40px;margin-bottom:12px}
  .gen0x-identity img{width:135px;max-width:48%}
  .gen0x-identity-caption{font-size:8px;letter-spacing:.07em}
}

/* Keep the public GitHub/Trust footer reachable above the mobile bottom dock. */
@media(max-width:760px){.page-footer{display:flex;flex-wrap:wrap;padding-bottom:calc(80px + env(safe-area-inset-bottom))}}
.workspace-access-customer{display:inline-flex;align-items:center;min-height:32px;margin-top:4px;font:600 11px var(--mono);color:#79e6fa;text-underline-offset:3px}
.workspace-access-customer:focus-visible{outline:2px solid #19e3ff;outline-offset:2px}
/* WCAG 2.2 target size: footer links keep a 24px tap target on touch layouts without changing the type scale. */
@media(max-width:800px){.page-footer a{display:inline-flex;align-items:center;min-height:24px}}

/* GitHub Sponsors is a compact third-party iframe, not a replacement for SaaS billing. */
.page-footer .github-sponsor{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;letter-spacing:normal}
.page-footer .github-sponsor iframe{display:block;flex:none;width:114px;height:32px;border:0;border-radius:6px;background:transparent}
.page-footer .github-sponsor a{color:#a9c6db;text-decoration:underline;text-underline-offset:2px}
.page-footer .github-sponsor a:hover{color:#e5f9ff}
.page-footer .github-sponsor a:focus-visible{outline:2px solid #79e6fa;outline-offset:4px}

/* At 320px, prioritize actual controls over the optional section breadcrumb.
   Keep the menu and appearance switch inside the viewport without clipping. */
@media (max-width: 360px) {
  .main-column > .topbar { gap: 6px; }
  .main-column > .topbar .topbar-left,
  .main-column > .topbar .topbar-right { gap: 6px; }
  .main-column > .topbar .topbar-section { display: none; }
}
