/* Shared customer navigation. Source: shared/navigation/. */
:root { --tw-navigation-width: 0px; }
.tw-customer-sidebar,.tw-customer-sidebar * { box-sizing:border-box; }
.tw-customer-sidebar { display:none; position:fixed; z-index:100; inset:0 auto 0 0; width:min(380px,calc(100vw - 24px)); padding:28px 24px; overflow-y:auto; overscroll-behavior:contain; border-right:1px solid var(--tw-line); background:var(--tw-surface); color:var(--tw-text); font:14px/1.6 var(--tw-font-body); }
.tw-customer-sidebar.is-open { display:flex; flex-direction:column; box-shadow:var(--tw-shadow-overlay); animation:tw-drawer-enter var(--tw-duration-base) var(--tw-ease); }
.tw-customer-sidebar a { color:inherit; text-decoration:none; }
.tw-customer-sidebar button { font:inherit; cursor:pointer; }
.tw-nav-brand-row { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:28px; }
.tw-nav-brand { display:flex; align-items:center; min-height:44px; min-width:0; }
.tw-nav-brand img { display:block; width:164px; height:auto; max-width:100%; }
.tw-nav-close { display:flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; height:44px; border:0; background:transparent; color:var(--tw-ink); font-size:28px!important; }
.tw-nav-home { display:flex; align-items:center; gap:12px; min-height:48px; padding:10px 12px; border-radius:6px; margin-bottom:24px; }
.tw-nav-home-icon { width:18px; height:18px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.tw-nav-home[aria-current=page] { background:var(--tw-surface-muted); color:var(--tw-ink); }
.tw-nav-label { display:flex; justify-content:space-between; gap:12px; margin:0 12px 12px; font-size:12px; color:var(--tw-muted); }
.tw-nav-count { font-family:var(--tw-font-mono); }
.tw-product-list { display:grid; gap:6px; }
.tw-product-link { display:flex; align-items:center; gap:16px; padding:13px 12px; min-height:48px; border:1px solid transparent; border-radius:6px; }
.tw-product-title { flex:1; min-width:0; overflow-wrap:anywhere; }
.tw-product-arrow { color:var(--tw-accent); }
.tw-product-group.is-current>.tw-product-link { background:var(--tw-surface-muted); border-color:var(--tw-line); color:var(--tw-ink); font-weight:600; }
.tw-nav-home:hover,.tw-product-link:hover { background:var(--tw-surface-muted); }
.tw-nav-status:empty,.tw-nav-notice:empty { display:none; }
.tw-nav-status,.tw-nav-notice { margin:0 12px 20px; color:var(--tw-muted); font-size:14px; line-height:1.8; }
.tw-nav-status p { margin:0; }
.tw-nav-retry { display:inline-flex; align-items:center; min-height:44px; padding:8px 0; border:0; color:var(--tw-ink); background:transparent; text-decoration:underline; text-underline-offset:4px; }
.tw-nav-footer { margin-top:auto; padding-top:28px; border-top:1px solid var(--tw-line); color:var(--tw-muted); font-size:12px; }
.tw-nav-backdrop { position:fixed; z-index:99; inset:0; background:var(--tw-backdrop); animation:tw-backdrop-enter var(--tw-duration-base) var(--tw-ease); }
.tw-nav-backdrop[hidden] { display:none; }
.tw-navigation-toggle,.tw-mobile-home { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; gap:10px; min-height:44px; padding:8px 14px; border:1px solid var(--tw-line-strong); border-radius:2px; background:transparent; color:var(--tw-ink); font:14px/1.5 var(--tw-font-body); text-decoration:none; cursor:pointer; }
.tw-navigation-chevron { width:16px; height:16px; flex:0 0 16px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; transition:transform var(--tw-duration-fast); }
.tw-navigation-toggle[aria-expanded=true] .tw-navigation-chevron { transform:rotate(180deg); }
.tw-mobile-home { min-width:44px; padding-inline:8px; border-color:transparent; }
.tw-navigation-toggle:hover,.tw-mobile-home:hover { background:var(--tw-accent-soft); }
.tw-masthead-brand { flex:0 0 auto; margin-right:24px; }
.app-main > .tw-product-pages { display:flex; align-items:center; flex-wrap:nowrap; gap:8px 24px; max-width:100%; padding:0 var(--tw-page-gutter); margin:0; overflow-x:auto; overscroll-behavior-inline:contain; border:0; border-bottom:1px solid var(--tw-line); background:var(--tw-bg); scrollbar-width:thin; font:14px/1.5 var(--tw-font-body); }
.app-main > .tw-product-pages :is(.explorer-nav,.page-chapters,.workspace-nav) { display:contents; }
.app-main > .tw-product-pages :is(.eyebrow,.nav-index) { display:none; }
.app-main > .tw-product-pages a { display:inline-flex; align-items:center; gap:8px; flex-shrink:0; min-height:52px; padding:10px 0; border:0; border-bottom:2px solid transparent; border-radius:0; color:var(--tw-muted); white-space:nowrap; }
.app-main > .tw-product-pages a:is([aria-current=page],[aria-current=location],[aria-current=true]) { background:transparent; color:var(--tw-accent); border-bottom-color:var(--tw-accent); font-weight:600; }
.app-main > .tw-product-pages a:hover { background:transparent; color:var(--tw-ink); }
.app-main > .tw-product-pages a svg { width:16px; height:16px; }
.app-main > .tw-product-pages .workspace-entry { font-weight:500; color:var(--tw-ink); }
.app-main > .tw-product-pages small { font-size:12px; color:var(--tw-muted); }
/* Reserve the local-navigation row while permission checks hide its links. */
.app-main > .tw-product-pages { min-height:53px; }
.app-main:has(> #app-topbar):not(:has(> .tw-product-pages:not([hidden]))) > #app-topbar { margin-bottom:53px; }
@media(max-width:600px) { .app-main > #app-topbar:empty { min-height:128px; } }
.tw-customer-sidebar :where(a,button,input):focus-visible,.tw-navigation-toggle:focus-visible,.tw-mobile-home:focus-visible,.tw-masthead-brand:focus-visible,.app-main > .tw-product-pages a:focus-visible { outline:2px solid var(--tw-accent); outline-offset:3px; }
@media(max-width:600px) { .tw-masthead-brand { margin-right:0; } .tw-masthead-brand img { width:136px; } .app-main > .tw-product-pages { gap:24px; } .app-main > .tw-product-pages a { min-height:52px; } }
@media(max-width:359px) { .tw-masthead-brand img { width:118px; } .tw-customer-sidebar { padding:20px 16px; } }
@keyframes tw-drawer-enter { from { opacity:.5; transform:translateX(-12px); } to { opacity:1; transform:none; } }
@keyframes tw-backdrop-enter { from { opacity:0; } to { opacity:1; } }
@media(prefers-reduced-motion:reduce) { .tw-customer-sidebar,.tw-customer-sidebar *,.tw-navigation-toggle,.tw-nav-backdrop { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

/* Atmosphere belongs to introductions; workspaces and readers stay still. */
.tw-ambient-host { position:relative; isolation:isolate; }
.tw-particle-field { position:absolute; inset:-24px -12px -16px 55%; z-index:-1; overflow:hidden; pointer-events:none; opacity:.9; }
.tw-particle-canvas { display:block; width:100%; height:100%; }
:root .app-main [data-project-visual] { display:grid; grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); align-items:center; gap:clamp(32px,4vw,64px); }
[data-project-visual] > :is(.hero-copy,.lead-copy) { width:100%!important; min-width:0; }
[data-project-visual]:not(:has(> .tw-project-visual))::after { content:''; display:block; width:100%; max-width:640px; aspect-ratio:var(--tw-figure-ratio); margin-bottom:76px; justify-self:end; pointer-events:none; }
.tw-project-visual { width:100%; max-width:640px; margin:0; justify-self:end; color:var(--tw-muted); }
.tw-project-visual svg { display:block; width:100%; height:auto; overflow:visible; }
.tw-project-visual svg.pv-narrow { display:none; }
.tw-project-visual figcaption { display:grid; gap:5px; margin:16px 0 0; padding-top:14px; border-top:1px solid var(--tw-line); font:12px/1.7 var(--tw-font-body); text-align:left; }
.tw-project-visual figcaption strong { color:var(--tw-text); font-weight:600; font-size:13px; }
.tw-project-visual .fp-plate .pv-label { font:400 16px var(--tw-font-body); fill:var(--tw-text); }
.tw-project-visual .fp-plate .fp-title { font-weight:500; fill:var(--tw-ink); }
.tw-project-visual .fp-plate .pv-title { font-weight:500; fill:var(--tw-ink); }
.tw-project-visual .fp-plate .pv-math { font-family:Georgia,'Times New Roman',serif; font-style:italic; font-size:20px; fill:var(--tw-figure-agent); }
.tw-project-visual .fp-plate .fp-math { font-family:Georgia,'Times New Roman',serif; font-style:italic; font-size:20px; fill:var(--tw-figure-agent); }
.tw-project-visual :is(.fp-paper,.fp-layer) { fill:var(--tw-surface); stroke:var(--tw-figure-outline); stroke-width:1; stroke-linejoin:round; }
.tw-project-visual .fp-layer { fill:var(--tw-surface-muted); stroke:var(--tw-line); }
.tw-project-visual :is(.fp-line,.fp-wire,.fp-boundary) { fill:none; stroke:var(--tw-figure-outline); stroke-width:1; stroke-linecap:round; stroke-linejoin:round; }
.tw-project-visual .fp-wire { stroke:var(--tw-figure-agent); stroke-width:1.2; }
.tw-project-visual .fp-boundary { stroke:var(--tw-figure-evaluation); stroke-dasharray:3 5; opacity:.65; }
.tw-project-visual :is(.fp-agent,.fp-feature,.fp-folder,.fp-accent) { fill:var(--tw-figure-agent-bg); stroke:var(--tw-figure-agent); stroke-width:1; }
.tw-project-visual .fp-folder { stroke:var(--tw-figure-outline); }
.tw-project-visual .fp-space { fill:none; stroke:var(--tw-figure-outline); stroke-width:1; stroke-dasharray:3 3; }
.tw-project-visual .fp-dot { fill:var(--tw-figure-agent); }
.tw-project-visual .fp-arrowhead { fill:none; stroke:var(--tw-figure-agent); stroke-width:1.2; stroke-linejoin:round; }
.tw-project-visual:has(.fp-plate) figcaption { margin-top:14px; padding-top:12px; gap:4px; }
@media(max-width:940px) {
  :root .app-main [data-project-visual] { grid-template-columns:minmax(0,1fr); gap:28px; }
  .tw-project-visual { max-width:620px; justify-self:center; }
  [data-project-visual]:not(:has(> .tw-project-visual))::after { max-width:620px; justify-self:center; }
}
@media(max-width:600px) {
  .tw-project-visual { max-width:400px; }
  [data-project-visual]:not(:has(> .tw-project-visual))::after { max-width:400px; aspect-ratio:var(--tw-figure-ratio-narrow); }
  .tw-project-visual svg.pv-wide { display:none; }
  .tw-project-visual svg.pv-narrow { display:block; }
  .tw-project-visual .fp-plate .pv-label { font-size:14px; }
  .tw-project-visual .fp-plate .fp-math { font-size:17px; }
  .tw-project-visual .fp-plate .pv-math { font-size:17px; }
}
.tw-navigation-toggle { border-radius:999px; border-color:var(--tw-line); background:var(--tw-surface); }
.tw-nav-home,.tw-product-link { border-radius:10px; }
.app-main>.tw-product-pages { gap:28px; border-bottom-color:var(--tw-line); background:var(--tw-bg); }
@media(max-width:800px) {
  .tw-particle-field { inset:0 -8px 0 50%; opacity:.65; }
}
@media(max-width:600px) {
  .tw-particle-field { inset:0 0 0 42%; opacity:.2; mask-image:linear-gradient(90deg,transparent,#000 65%); }
}

.tw-nav-series { min-width:0; display:grid; gap:6px; }
.tw-nav-series + .tw-nav-series { margin-top:28px; }
.tw-nav-series-title { margin:4px 12px 6px; padding-bottom:10px; border-bottom:1px solid var(--tw-line); color:var(--tw-ink); font:650 18px/1.45 var(--tw-font-body); overflow-wrap:anywhere; }
.tw-nav-new { flex:none; padding:1px 5px; border:1px solid var(--tw-accent); border-radius:4px; color:var(--tw-accent); font:600 12px/1.5 var(--tw-font-body); }
.tw-product-title { min-width:0; overflow-wrap:anywhere; }

/* Figure space derived from canonical SVG viewBoxes. */
[data-project-visual="ecommerce-operations-playbook"] { --tw-figure-ratio:620 / 390; --tw-figure-ratio-narrow:300 / 548; }
[data-project-visual="nl2repo-pro"] { --tw-figure-ratio:620 / 352; --tw-figure-ratio-narrow:300 / 556; }
[data-project-visual="pretrain-eval"] { --tw-figure-ratio:620 / 390; --tw-figure-ratio-narrow:300 / 548; }
[data-project-visual="rsi-universe"] { --tw-figure-ratio:620 / 376; --tw-figure-ratio-narrow:300 / 650; }
[data-project-visual="swe-cowork"] { --tw-figure-ratio:620 / 400; --tw-figure-ratio-narrow:300 / 484; }
[data-project-visual="test-engineer-bench"] { --tw-figure-ratio:620 / 398; --tw-figure-ratio-narrow:300 / 544; }
[data-project-visual="quant-rsi"] { --tw-figure-ratio:640 / 360; --tw-figure-ratio-narrow:300 / 504; }
