/* GSDesign tokens */
:root {
  --gs-ink: #12110d; --gs-text: #4a4a4a; --gs-muted: #434343; --gs-grey: #6b6b6b; --gs-placeholder: #a3a3a3;
  --gs-line: #e5e5e5; --gs-line-soft: #ececec; --gs-line-hover: #c4c4c4;
  --gs-bg: #fff; --gs-card: #f7f7f7; --gs-segment: #f2f2f2; --gs-media: #e9e9e9;
  --gs-cream: #faf6ef; --gs-cream-end: #fdfaf5;
  --gs-highlight: #fd9d24; --gs-accent: #0098f6; --gs-accent-hover: #0086dc; --gs-accent-ring: rgba(0,152,246,.16);
  --gs-font-display: Manrope, system-ui, sans-serif;
  --gs-font-body: Inter, system-ui, -apple-system, sans-serif;
  --gs-pill: 100px; --gs-radius-card: 24px; --gs-radius-media: 16px;
  --gs-wrap: 1040px; --gs-gutter: 20px; --gs-gap: 16px;
  --gs-section: clamp(64px, 10vw, 120px); --gs-fast: .15s;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--gs-bg); color: var(--gs-ink); font-family: var(--gs-font-body); font-size: 16px; font-weight: 400; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.gs-wrap { max-width: var(--gs-wrap); margin: 0 auto; padding-left: max(var(--gs-gutter), env(safe-area-inset-left)); padding-right: max(var(--gs-gutter), env(safe-area-inset-right)); }

/* nav */
.gs-nav { position: sticky; top: 0; z-index: 10; background: #fff; }
.gs-nav .gs-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.gs-brand { display: inline-flex; align-items: center; gap: 7px; font-family: var(--gs-font-display); font-size: 20px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.gs-brand .q-full { display: block; width: auto; height: 24px; }
.gs-brand .sep { flex: none; width: 1px; height: 24px; margin: 0 10px 0 8px; background: var(--gs-line-hover); }
.gs-brand .mark { font-size: 34px; font-weight: 400; line-height: 1; margin: -6px 2px -4px 0; }
.gs-segment { display: flex; align-items: center; gap: 2px; background: var(--gs-segment); border-radius: var(--gs-pill); padding: 5px; }
.gs-segment > a, .gs-segment > button { font-size: 14px; color: var(--gs-muted); background: none; border: 0; padding: 7px 13px; border-radius: var(--gs-pill); cursor: pointer; white-space: nowrap; transition: background var(--gs-fast), color var(--gs-fast); }
.gs-segment > a:hover, .gs-segment > button:hover, .gs-segment > .is-active { background: #fff; color: var(--gs-ink); }
.gs-segment > :focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gs-accent-ring); }
.gs-navacts { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--gs-line); color: var(--gs-ink); cursor: pointer; transition: border-color var(--gs-fast); }
.menu-btn:hover { border-color: var(--gs-line-hover); }
.menu-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gs-accent-ring); }
.menu-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.menu-btn .m-close, .menu-btn[aria-expanded="true"] .m-open { display: none; }
.menu-btn[aria-expanded="true"] .m-close { display: inline; }
.menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--gs-line); box-shadow: 0 18px 30px rgba(18,17,13,.08); animation: fade .2s; }
.gs-nav .menu .gs-wrap { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding-top: 4px; padding-bottom: 16px; }
.menu a { padding: 13px 2px; border-bottom: 1px solid var(--gs-line-soft); font-family: var(--gs-font-display); font-weight: 300; font-size: 24px; letter-spacing: -.02em; color: var(--gs-ink); }
.menu a:last-child { border-bottom: 0; }
.menu a:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--gs-accent-ring); border-radius: 8px; }
.menu .menu-gh { font-family: var(--gs-font-body); font-weight: 400; font-size: 15px; color: var(--gs-grey); padding-top: 16px; }

/* pills */
.gs-pill { display: inline-flex; align-items: center; justify-content: center; font-family: var(--gs-font-body); font-size: 14px; font-weight: 500; line-height: 1; padding: 12px 19px; border-radius: var(--gs-pill); white-space: nowrap; cursor: pointer; transition: background var(--gs-fast), border-color var(--gs-fast); }
.gs-pill:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gs-accent-ring); }
.gs-pill-primary { background: var(--gs-accent); color: #fff; border: 1px solid var(--gs-accent); }
.gs-pill-primary:hover { background: var(--gs-accent-hover); border-color: var(--gs-accent-hover); }
.gs-pill-ghost { background: #fff; color: var(--gs-ink); border: 1px solid var(--gs-line); }
.gs-pill-ghost:hover { border-color: var(--gs-line-hover); }
.gs-tag { display: inline-flex; align-items: center; font-size: 14px; color: var(--gs-muted); background: #fff; border: 1px solid var(--gs-line); border-radius: var(--gs-pill); padding: 10px 17px; white-space: nowrap; }

/* sections */
.gs-sec { padding-top: var(--gs-section); scroll-margin-top: 40px; }
.gs-sec.first { padding-top: clamp(40px, 6vw, 72px); }
.gs-headrow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(22px, 3.2vw, 36px); }
.gs-h2 { font-family: var(--gs-font-display); font-weight: 300; font-size: clamp(28px, 4.8vw, 40px); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
.gs-h3 { font-family: var(--gs-font-display); font-weight: 300; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.subhead { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 40px 0 16px; }

/* cards */
.gs-card { background: var(--gs-card); border-radius: var(--gs-radius-card); padding: 24px; }
.gs-stack { display: flex; flex-direction: column; gap: var(--gs-gap); }
.gs-grid2, .gs-grid3 { display: grid; gap: var(--gs-gap); }
.gs-grid2 { grid-template-columns: repeat(2, 1fr); }
.gs-grid3 { grid-template-columns: repeat(3, 1fr); }
.gs-cardh { font-family: var(--gs-font-display); font-weight: 500; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; margin: 8px 0 10px; }
.gs-meta { font-size: 14px; color: var(--gs-grey); }
.gs-divider { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gs-line-soft); font-size: 13px; color: var(--gs-grey); }

.about { margin: 0; max-width: 760px; font-size: clamp(16px, 2.2vw, 19px); line-height: 1.62; color: var(--gs-text); }

/* team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: var(--gs-gap); }
.member { display: flex; flex-direction: column; }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gs-media); color: var(--gs-ink); font-family: var(--gs-font-display); font-size: 17px; font-weight: 400; letter-spacing: -.02em; }
.member.pm .avatar { background: var(--gs-ink); color: #fff; }
img.avatar { display: block; object-fit: cover; object-position: center 30%; background: var(--gs-media); }
.member .gs-cardh { font-size: 18px; margin: 16px 0 8px; }
.member .vpill { align-self: flex-start; }
.member .topics { margin-top: 12px; font-size: 14px; color: var(--gs-text); }
.member .topics.none { color: var(--gs-placeholder); }
.member .mfoot { margin-top: auto; }
.member .links { display: flex; gap: 8px; margin-top: 18px; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--gs-line); color: var(--gs-ink); transition: border-color var(--gs-fast); }
.icon-link:hover { border-color: var(--gs-line-hover); }
.icon-link:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gs-accent-ring); }
.icon-link svg { width: 16px; height: 16px; }
.v-analyst { background: #fff; color: var(--gs-muted); border-color: var(--gs-line); }

/* filters */
.filters { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.chips { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

/* experiment cards: topic colour on the edge, result colour on the pill */
/* topics: dataviz slots violet/amber/magenta/aqua; all-pairs on #f7f7f7 normal ΔE >= 19.6, CVD 6.1 (aqua-magenta) so the topic name always shows */
.c-ar { --c: #6250d6; }
.c-rm { --c: #eda100; }
.c-dh { --c: #e87ba4; }
.c-rv { --c: #1baf7a; }
/* results: reserved status palette, always icon + word */
.r-pass, .c-pass { --r: #0ca30c; --c: #0ca30c; }
.r-fail, .c-fail { --r: #d03b3b; --c: #d03b3b; }
.r-neutral, .c-neutral { --r: #a3a3a3; --c: #a3a3a3; }
#cards { display: flex; flex-direction: column; gap: 8px; }
.xrow { min-width: 0; background: var(--gs-card); border-radius: 16px; scroll-margin-top: 80px; transition: background var(--gs-fast); }
.xrow:not(.open):hover { background: var(--gs-segment); }
.xhead { display: grid; grid-template-columns: 170px minmax(0, 1fr) 76px 100px 116px 14px; align-items: center; gap: 16px; width: 100%; padding: 14px 20px; background: none; border: 0; border-radius: 16px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.xhead:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gs-accent-ring); }
.xhead .kind, .xhead .result { justify-self: start; }
.xmain { display: block; min-width: 0; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 1px solid var(--gs-line-hover); }
.dots i.on { background: var(--gs-ink); border-color: var(--gs-ink); }
.chev { font-size: 18px; line-height: 1; color: var(--gs-grey); transition: transform var(--gs-fast); }
.xrow.open .chev { transform: rotate(90deg); }
.result { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border-radius: var(--gs-pill); background: color-mix(in srgb, var(--r) 16%, #fff); color: var(--gs-ink); font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.result .ri { color: var(--r); font-size: 13px; }
.ri { color: var(--r); font-weight: 500; }
.ltable .more-row td { padding: 14px 0 4px; border: 0; }
.xname { display: block; font-family: var(--gs-font-display); font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; color: var(--gs-ink); overflow-wrap: anywhere; }
.hyp { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--gs-grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xrow.open .hyp { white-space: normal; }
.xresult { margin: 0 0 18px; font-size: 15px; color: var(--gs-text); }
.xresult .lab { margin-right: 8px; font-weight: 500; color: var(--gs-ink); }
.vpill { display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; line-height: 1; padding: 7px 12px; border-radius: var(--gs-pill); white-space: nowrap; border: 1px solid transparent; }
.v-pm { background: var(--gs-ink); color: #fff; }

/* stepper */
.xinfo { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 18px; }
.stepper { flex: 0 1 470px; display: grid; grid-template-columns: repeat(7, 1fr); list-style: none; padding: 0; margin: 0; }
.stepper li { position: relative; padding-top: 16px; font-size: 12px; color: var(--gs-grey); text-align: center; }
.stepper li::before { content: ""; position: absolute; top: 0; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; border: 1px solid var(--gs-line-hover); z-index: 1; }
.stepper li::after { content: ""; position: absolute; top: 5px; left: -50%; width: 100%; height: 1px; background: var(--gs-line-hover); }
.stepper li:first-child::after { display: none; }
.stepper li.done { color: var(--gs-ink); }
.stepper li.done::before { background: var(--gs-ink); border-color: var(--gs-ink); }
.stepper li.done::after { background: var(--gs-ink); }
.stage-text { display: none; }
.xinfo .stage-text { flex-basis: 100%; }

/* expanded body */
.xbody { margin: 0 20px; padding: 18px 0 20px; border-top: 1px solid var(--gs-line-soft); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.tabs { margin-bottom: 18px; width: max-content; max-width: 100%; }
.pane { background: #fff; border-radius: var(--gs-radius-media); padding: clamp(16px, 3vw, 28px); }
.pane-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* rendered markdown */
.prose { font-size: 15px; color: var(--gs-text); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3 { font-family: var(--gs-font-display); font-weight: 500; letter-spacing: -.02em; color: var(--gs-ink); line-height: 1.25; }
.prose h2 { font-size: 19px; margin: 28px 0 8px; }
.prose h3 { font-size: 16px; margin: 22px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin: 3px 0; }
.prose a { color: var(--gs-ink); text-decoration: underline; text-decoration-color: var(--gs-line-hover); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--gs-ink); }
.prose strong, .prose b { font-weight: 500; color: var(--gs-ink); }
.prose h4 { font-size: 15px; font-weight: 500; color: var(--gs-ink); margin: 18px 0 6px; }
.prose blockquote { margin: 0 0 16px; padding: 12px 16px; background: var(--gs-card); border-radius: 12px; color: var(--gs-grey); font-size: 14px; }
.prose blockquote p { margin: 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--gs-segment); padding: 1px 5px; border-radius: 6px; }
.prose table, .trials { display: block; overflow-x: auto; border-collapse: collapse; font-size: 14px; margin: 0 0 16px; max-width: 100%; }
.prose th, .prose td, .trials th, .trials td { text-align: left; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--gs-line-soft); vertical-align: top; }
.prose th, .trials th { font-weight: 500; color: var(--gs-grey); white-space: nowrap; }
.trials td { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--gs-text); }
.trials td.num, .trials th.num { text-align: right; padding-left: 14px; padding-right: 0; }
.trials td:last-child, .trials th:last-child { padding-left: 24px; color: var(--gs-grey); }

/* charts */
.figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gs-gap); }
.fig { display: block; text-align: left; background: var(--gs-card); border: 0; border-radius: var(--gs-radius-media); padding: 12px; cursor: zoom-in; transition: background var(--gs-fast); }
.fig:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gs-accent-ring); }
.fig img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 8px; background: #fff; }
.fig .gs-meta { display: block; margin-top: 8px; }
.pdf { display: block; width: 100%; height: 75vh; border: 0; border-radius: var(--gs-radius-media); background: var(--gs-media); }

/* roadmap colours: dataviz slots 1-3, validated all-pairs */
:root { --c-experiment: #2a78d6; --c-paper: #eb6834; --c-general: #1baf7a; }
.c-experiment { --c: var(--c-experiment); }
.c-paper { --c: var(--c-paper); }
.c-general { --c: var(--c-general); }
/* library kinds: same three validated slots */
.c-lit { --c: var(--c-paper); }
.c-note { --c: var(--c-general); }
.c-pub { --c: #6250d6; }
.dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--gs-grey)); }
.filter-group { display: flex; flex-wrap: wrap; gap: 10px; max-width: 100%; }
.chips .dot { margin-right: 7px; }
.chips .n { margin-left: 6px; color: var(--gs-placeholder); font-variant-numeric: tabular-nums; }

/* gantt */
.gantt-card { position: relative; padding: 0; overflow: hidden; }
.gantt-scroll { overflow-x: auto; }
.gantt { position: relative; min-width: 960px; }
.g-row { position: relative; display: grid; grid-template-columns: var(--label, 150px) 1fr; border-top: 1px solid var(--gs-line); }
.g-head { border-top: 0; }
.g-label { position: sticky; left: 0; z-index: 4; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 14px 12px 20px; font-size: 14px; color: var(--gs-ink); background: var(--gs-card); box-shadow: 1px 0 0 var(--gs-line); }
.g-label .n { font-size: 12px; color: var(--gs-placeholder); font-variant-numeric: tabular-nums; }
.g-track { position: relative; background-image: linear-gradient(90deg, var(--gs-line) 1px, transparent 1px); background-size: var(--week) 100%; }
.g-head .g-track { height: 64px; background-image: none; }
.g-future { position: absolute; top: 0; bottom: 0; right: 0; background: #fff; z-index: 0; }
.g-month { position: absolute; top: 26px; padding-left: 6px; border-left: 1px solid var(--gs-line-hover); font-size: 13px; line-height: 1.2; color: var(--gs-grey); white-space: nowrap; }
.g-month b { font-weight: 500; color: var(--gs-ink); }
.g-week { position: absolute; top: 46px; padding-left: 4px; font-size: 11px; color: var(--gs-placeholder); font-variant-numeric: tabular-nums; }
.g-side { position: absolute; top: 6px; font-size: 12px; color: var(--gs-grey); white-space: nowrap; }
.g-today { position: absolute; top: 64px; bottom: 0; width: 0; border-left: 2px solid var(--gs-ink); z-index: 2; pointer-events: none; }
.g-today span { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); padding: 3px 9px; border-radius: var(--gs-pill); background: var(--gs-ink); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; }
.g-item { position: absolute; z-index: 3; display: flex; align-items: center; gap: 7px; height: 24px; padding: 0 4px; margin-left: -4px; background: none; border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap; font-size: 13px; color: var(--gs-grey); transition: background var(--gs-fast); }
.g-item:hover, .g-item:focus-visible { background: rgba(18,17,13,.05); outline: none; }
.g-item:focus-visible { box-shadow: 0 0 0 3px var(--gs-accent-ring); }
.g-item.next { color: var(--gs-ink); font-weight: 500; }
.g-item.cross > span:not(.g-mark) { background: #fff; border-radius: 4px; padding: 1px 4px; margin: 0 -4px; }
.g-mark { flex: none; background: var(--c); }
.g-mark.dot-mark { width: 10px; height: 10px; border-radius: 50%; }
.g-item.next .dot-mark { width: 12px; height: 12px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--c); }
.g-mark.bar-mark { height: 8px; border-radius: 4px; }
.g-item.next .bar-mark { height: 22px; border-radius: 6px; display: flex; align-items: center; padding: 0 9px; color: #fff; font-weight: 500; overflow: hidden; }
.g-pass { color: var(--gs-ink); font-weight: 500; }
.g-empty { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--gs-placeholder); }
.g-none { position: relative; z-index: 3; padding: 28px 20px; font-size: 14px; color: var(--gs-grey); background: #fff; border-top: 1px solid var(--gs-line); }
.g-tip { position: absolute; z-index: 20; max-width: 320px; padding: 10px 12px; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(18,17,13,.14); pointer-events: none; }
.g-tip .t { font-size: 14px; font-weight: 500; color: var(--gs-ink); line-height: 1.35; }
.g-tip .m { margin-top: 4px; font-size: 13px; color: var(--gs-grey); }
.g-tip .m .dot { margin-right: 6px; vertical-align: 1px; }
.g-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; font-size: 13px; }
.g-key span { display: inline-flex; align-items: center; gap: 7px; }
.g-key .k-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gs-grey); }
.g-key .k-next { width: 12px; height: 12px; border-radius: 50%; background: var(--gs-grey); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gs-grey); }
.g-key .k-bar { width: 22px; height: 12px; border-radius: 4px; background: var(--gs-grey); }
.g-key .k-past { width: 18px; height: 12px; border-radius: 3px; background: var(--gs-card); box-shadow: inset 0 0 0 1px var(--gs-line); }

/* roadmap list view */
.list-card { padding: 8px 24px 16px; }
.ltable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ltable th, .ltable td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--gs-line-soft); vertical-align: middle; }
.ltable thead th { font-weight: 500; color: var(--gs-grey); font-size: 13px; }
.ltable .grp th { padding-top: 22px; font-family: var(--gs-font-display); font-weight: 500; font-size: 16px; color: var(--gs-ink); border-bottom-color: var(--gs-line); }
.ltable td { color: var(--gs-text); }
.ltable td:not(:nth-child(2)) { white-space: nowrap; }
.ltable .grp .n { margin-left: 4px; font-family: var(--gs-font-body); font-size: 14px; font-weight: 400; color: var(--gs-placeholder); }
.ltable .when { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--gs-grey); }
.ltable .tagcell { white-space: nowrap; }
.ltable .tagcell .dot { margin-right: 7px; }
.l-item { background: none; border: 0; padding: 0; text-align: left; font-size: 14px; color: var(--gs-ink); cursor: pointer; }
.l-item:hover { text-decoration: underline; text-decoration-color: var(--gs-line-hover); text-underline-offset: 3px; }
.l-item:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gs-accent-ring); border-radius: 4px; }
.list-scroll { overflow-x: auto; }

/* ideas */
.ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gs-gap); }
.idea-col { background: var(--gs-card); border-radius: var(--gs-radius-card); padding: 20px; }
.idea-col .colhead { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; color: var(--gs-ink); font-weight: 500; }
.idea-col .colhead .n { color: var(--gs-placeholder); font-weight: 400; }
.idea-list { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.idea { display: flex; align-items: center; gap: 10px; text-align: left; font-size: 14px; line-height: 1.35; color: var(--gs-ink); background: #fff; border: 0; border-radius: 10px; padding: 11px 14px; cursor: pointer; transition: background var(--gs-fast); }
.idea:hover { background: var(--gs-segment); }
.idea:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gs-accent-ring); }

/* library */
.kind { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: var(--gs-pill); background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--gs-ink); font-size: 13px; font-weight: 500; line-height: 1.2; }
.more { display: flex; justify-content: center; margin-top: 20px; }
.lib-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.gs-input { font: inherit; font-size: 16px; padding: 13px 18px; border: 1px solid var(--gs-line); border-radius: var(--gs-pill); background: #fff; color: var(--gs-ink); outline: none; transition: border-color var(--gs-fast), box-shadow var(--gs-fast); }
.gs-input::placeholder { color: var(--gs-placeholder); }
.gs-input:focus { border-color: var(--gs-accent); box-shadow: 0 0 0 3px var(--gs-accent-ring); }
.lib-search { flex: 1 1 260px; max-width: 380px; min-width: 0; }
.lib-count { margin: 0 0 12px; font-size: 13px; }
.lib-list { display: flex; flex-direction: column; gap: 8px; }
.lrow { display: grid; grid-template-columns: 170px 1fr 104px 92px; align-items: center; gap: 16px; padding: 14px 20px; background: var(--gs-card); border-radius: 16px; transition: background var(--gs-fast); }
.lrow:hover { background: var(--gs-segment); }
.lrow:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gs-accent-ring); }
.lrow .kind { justify-self: start; }
.ltitle { font-family: var(--gs-font-display); font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; color: var(--gs-ink); min-width: 0; }
.ldate { font-size: 13px; color: var(--gs-grey); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lopen { font-size: 13px; color: var(--gs-ink); text-align: right; white-space: nowrap; }
mark { background: color-mix(in srgb, var(--gs-highlight) 32%, #fff); color: inherit; border-radius: 3px; padding: 0 1px; }

/* this week + live desk */
.sec-meta { margin: -14px 0 22px; }
.colh { font-family: var(--gs-font-display); font-weight: 500; font-size: 17px; letter-spacing: -.02em; margin: 0 0 12px; }
.colh.sub { margin-top: 26px; }
.empty { margin: 4px 0 0; }
.wstats { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gs-gap); }
.wstat { display: block; padding: 20px; background: var(--gs-card); border-radius: 20px; transition: background var(--gs-fast); }
.wstat:hover { background: var(--gs-segment); }
.wstat:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gs-accent-ring); }
.wstat .wlab { font-size: 14px; color: var(--gs-ink); margin-bottom: 4px; }
.wstat .gs-meta { font-size: 13px; }
.desk-book { position: relative; margin-bottom: var(--gs-gap); }
.book-note { margin: -6px 0 12px; font-size: 13px; }
.desk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 4px 0 26px; margin-bottom: 22px; border-bottom: 1px solid var(--gs-line); }
.dnum { font-family: var(--gs-font-display); font-weight: 300; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 6px; }
.desk-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--gs-gap); align-items: start; }
.desk-grid > * { min-width: 0; }
.desk-chart { position: relative; }
.dchart { display: block; width: 100%; height: auto; background: #fff; border-radius: var(--gs-radius-media); }
.dchart .zone { fill: var(--gs-card); }
.dchart .zlab { font-size: 11px; fill: var(--gs-grey); font-family: var(--gs-font-body); }
.dchart .tick { font-size: 11px; fill: var(--gs-grey); font-family: var(--gs-font-body); font-variant-numeric: tabular-nums; }
.dchart .base { stroke: var(--gs-line); stroke-width: 1; }
.dchart .band { stroke: var(--gs-line-hover); stroke-width: 1; }
.dchart .vline { fill: none; stroke: #2a78d6; stroke-width: 2; stroke-linejoin: round; }
.dchart .pt { fill: #2a78d6; stroke: #fff; stroke-width: 2; }
.dchart .barea.pos { fill: rgba(42,120,214,.10); }
.dchart .barea.neg { fill: rgba(208,59,59,.10); }
.dchart .endlab { font-size: 13px; font-weight: 500; fill: var(--gs-ink); font-family: var(--gs-font-body); }
.dchart .pt.flat { fill: #fff; stroke: #2a78d6; stroke-width: 1.5; }
.dchart .hit { fill: transparent; cursor: pointer; outline: none; }
.dchart .hit:focus-visible { stroke: var(--gs-accent-ring); stroke-width: 6; }
.desk-rule { margin-top: 12px; font-size: 13px; line-height: 1.5; }
.desk-rule summary { cursor: pointer; color: var(--gs-ink); font-size: 13px; font-weight: 500; list-style: none; }
.desk-rule summary::-webkit-details-marker { display: none; }
.desk-rule summary::after { content: " +"; color: var(--gs-grey); }
.desk-rule[open] summary::after { content: " −"; }
.desk-rule p { margin: 6px 0 0; }
.pos-name { font-family: var(--gs-font-display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; margin-bottom: 12px; }
.drows { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; color: var(--gs-text); }
.drows dt { color: var(--gs-grey); }
.drows dd { margin: 0; }
.drows b { font-weight: 500; color: var(--gs-ink); }
.gauge { margin-top: 18px; }
.gtrack { position: relative; height: 10px; border-radius: var(--gs-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--gs-line); }
.gfill { position: absolute; top: 0; bottom: 0; border-radius: var(--gs-pill); background: var(--r); }
.gzero { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--gs-line-hover); }
.gmark { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--gs-ink); border: 2px solid #fff; }
.gends { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--gs-grey); }
.gnow { color: var(--gs-ink); font-weight: 500; }
.dtrades { margin-bottom: 8px; }
.realized { margin: 4px 0 0; }

/* dialog */
.gs-scrim { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(18,17,13,.45); z-index: 50; padding: 16px; animation: fade .25s; }
.gs-dialog { background: #fff; border-radius: var(--gs-radius-card); padding: 24px; width: min(560px, 92vw); max-height: 90vh; overflow: auto; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.gs-dialog.wide { width: min(1040px, 96vw); }
.gs-dialog h2 { font-family: var(--gs-font-display); font-weight: 500; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 8px; }
.gs-dialog .rows { margin: 14px 0 0; font-size: 14px; color: var(--gs-text); display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.gs-dialog .rows dt { color: var(--gs-grey); }
.gs-dialog .rows dd { margin: 0; }
.gs-dialog .note { margin-top: 14px; font-size: 15px; color: var(--gs-text); }
.gs-dialog .list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.gs-dialog .list button { text-align: left; width: 100%; background: var(--gs-card); border: 0; border-radius: 14px; padding: 12px 14px; font-size: 14px; cursor: pointer; transition: background var(--gs-fast); }
.gs-dialog .list button:hover { background: var(--gs-segment); }
.gs-dialog .list button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gs-accent-ring); }
.gs-dialog .shot { display: block; width: 100%; height: auto; max-height: 68vh; object-fit: contain; border-radius: 12px; margin-top: 10px; }
.gs-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* footer */
.gs-foot { padding-top: var(--gs-section); }
.gs-foot .gs-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--gs-line); padding-top: 26px; padding-bottom: max(34px, env(safe-area-inset-bottom)); font-size: 13px; color: var(--gs-grey); }

/* responsive */
/* tablet and phone: section links move into a menu */
@media (max-width: 900px) {
  .gs-nav .gs-segment { display: none; }
  .menu-btn { display: inline-flex; }
  .gs-sec { scroll-margin-top: 72px; }
  .xrow { scroll-margin-top: 80px; }
  .ideas { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .gs-sec { padding-top: 56px; }
  .gs-sec.first { padding-top: 28px; }
  .gs-headrow { margin-bottom: 18px; }
  .gs-grid2, .gs-grid3, .figs, .ideas, .desk-grid { grid-template-columns: 1fr; }
  .wstats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wstats > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .desk-stats { grid-template-columns: 1fr 1fr; gap: 16px 14px; padding-bottom: 20px; margin-bottom: 16px; }
  .sec-meta { margin: -8px 0 16px; }
  .g-label { padding-left: 14px; }
  .subhead { margin-top: 32px; }
  /* chip rows scroll sideways: fade the right edge as a hint */
  .filters .chips, .xbody .tabs { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .filters .chips > button { padding: 9px 14px; }
  .filters { margin-bottom: 16px; }
  /* team: one slim row each, links on the right */
  .team { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
  .member { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 1px; align-items: center; padding: 12px 14px; border-radius: 16px; }
  .member .avatar { grid-area: 1 / 1 / 4 / 2; width: 44px; height: 44px; font-size: 14px; }
  .member .gs-cardh { grid-area: 1 / 2; margin: 0; font-size: 16px; line-height: 1.25; }
  .member .vpill { grid-area: 2 / 2; justify-self: start; padding: 0; border: 0; background: none; color: var(--gs-grey); font-size: 13px; font-weight: 400; }
  .member .topics { grid-area: 3 / 2; margin: 2px 0 0; font-size: 12px; }
  .member .topics.none { display: none; }
  .member .mfoot { grid-area: 1 / 3 / 4 / 4; margin: 0; }
  .member .links { margin: 0; gap: 6px; }
  .icon-link { width: 36px; height: 36px; }
  /* this week: tighter tiles */
  .wstat { padding: 14px; border-radius: 16px; }
  .wstat .dnum { font-size: 24px; margin-bottom: 4px; }
  .wstat .wlab { font-size: 13px; margin-bottom: 2px; }
  .wstat .gs-meta { font-size: 12px; }
  /* desk: trades stack as rows */
  .dtrades thead { display: none; }
  .dtrades, .dtrades tbody { display: block; }
  .dtrades tr { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--gs-line-soft); }
  .dtrades td, .dtrades td.num { padding: 0; border: 0; font-size: 13px; color: var(--gs-grey); text-align: left; }
  .dtrades td:nth-child(3) { order: -1; flex-basis: 100%; font-size: 15px; color: var(--gs-ink); }
  .dnum { font-size: 22px; }
  /* experiment cards */
  .xhead { grid-template-columns: auto 1fr auto; gap: 6px 10px; padding: 12px 14px; }
  .xhead .kind { grid-area: 1 / 1; }
  .xhead .result { grid-area: 1 / 3; justify-self: end; }
  .xhead .xmain { grid-area: 2 / 1 / 3 / 4; }
  .xhead .dots { grid-area: 3 / 1; }
  .xhead .ldate { grid-area: 3 / 2 / 4 / 4; justify-self: end; }
  .xhead .chev { display: none; }
  .hyp { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .xrow.open .hyp { display: block; }
  .xbody { margin: 0 14px; }
  .lib-tools .chips { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .tabs { margin-bottom: 12px; }
  .pane { padding: 14px; }
  .xresult { font-size: 14px; }
  /* roadmap list: stacked rows instead of a 6-column table */
  .list-card { padding: 4px 18px 12px; }
  .ltable thead { display: none; }
  .ltable, .ltable tbody { display: block; }
  .ltable tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--gs-line-soft); }
  .ltable td { display: block; padding: 0; border: 0; font-size: 13px; color: var(--gs-grey); }
  .ltable td:nth-child(2) { order: -1; flex-basis: 100%; }
  .ltable td:nth-child(5), .ltable td.nodate { display: none; }
  .ltable tr.more-row { display: block; border: 0; }
  .ltable .l-item { font-size: 15px; line-height: 1.35; }
  .ltable tr.grp { display: block; padding: 18px 0 8px; border-bottom: 1px solid var(--gs-line); }
  .ltable tr.grp th { display: block; padding: 0; border: 0; }
  .g-key { font-size: 12px; gap: 6px 14px; }
  #roadmap .gs-headrow { flex-wrap: nowrap; }
  /* library */
  .gs-dialog { padding: 20px; }
  .lib-search { flex-basis: 100%; max-width: none; }
  .lrow { grid-template-columns: auto 1fr; gap: 6px 12px; padding: 12px 14px; }
  .ltitle { font-size: 15px; }
  .lrow .ltitle { grid-column: 1 / -1; order: 3; }
  .lrow .ldate { justify-self: end; }
  .lrow .lopen { display: none; }
}
@media (max-width: 460px) {
  .gs-pill { padding: 11px 14px; font-size: 13px; }
  .gs-brand { font-size: 16px; }
  .gs-brand .q-full { height: 20px; }
  .gs-brand .sep { height: 20px; margin: 0 8px 0 4px; }
  .gs-brand .mark { font-size: 24px; }
  .gs-card { padding: 18px; border-radius: 20px; }
  .gs-card.gantt-card { padding: 0; }
  .gs-card.member { padding: 14px; }
  .gs-card.list-card { padding: 4px 16px 12px; }
  .gs-h2 { font-size: 30px; }
  .stepper li { font-size: 0; padding-top: 10px; }
  .stepper { flex: 1 1 100%; }
  .stage-text { display: block; font-size: 13px; color: var(--gs-grey); }
  #repo { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
