Files

333 lines
27 KiB
CSS

/* ---------- /gen: the agent is a flag; deck greys only; rest sizes on the deck scale ---------- */
.xgn { --soft: #525252; --faint: #737373; --card: #f2f2f2; --line: rgba(0, 0, 0, .1); }
/* dark (Hanzo's selector and tokens): the page's own greys become Hanzo's */
html:not(.light) .xgn { --soft: var(--muted-foreground); --faint: var(--text-tertiary); --card: var(--muted); --line: var(--border); }
html:not(.light) .xgn .av-obj { box-shadow: 0 0 0 1px var(--border); }
html:not(.light) .xgn-ring i, html:not(.light) .xgn-ring b { background: var(--muted-foreground); }
html:not(.light) .xgn-sw button.on i::after { background: var(--primary-foreground); }
html:not(.light) .xgn-sw button.on i { background: var(--muted-foreground); }
/* the shared Apps type (AppType.css) still paints light; on this page it follows Hanzo's dark */
html:not(.light) .xgn { background: var(--bg); color: var(--ink); }
html:not(.light) .xgn .av-body, html:not(.light) .xgn .av-lede { color: var(--soft); }
/* the shared band ask (.x-band .x-btn.solid) fills with --x-fill, near-black in dark: in the black room it stays Hanzo's primary */
html:not(.light) .xgn-src .x-btn.solid { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
@media (hover: hover) { html:not(.light) .xgn-src .x-btn.solid:hover { background: var(--primary-hover); border-color: var(--primary-hover); } }
html:not(.light) .xgn .av-dark .av-body, html:not(.light) .xgn .av-dark .av-lede, html:not(.light) .xgn .xgn-card.dev .av-body { color: var(--text-secondary); }
.xgn code { font: 500 .9em/1.4 var(--mono); }
.xgn-ps { margin-right: .6ch; color: var(--faint); user-select: none; }
.xgn-arrow, .xgn-doc { display: inline-flex; align-items: center; min-height: 44px; font: 500 16px/1.3 var(--sans); color: var(--ink); text-decoration: none; transition: transform var(--dur-press) var(--ease-out-expo); }
.xgn-arrow:active { transform: translateY(1px); }
.xgn-arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.xgn-cur { display: inline-block; width: .55em; height: 1.05em; margin-left: .12em; border-radius: 2px; background: var(--ink); vertical-align: -.16em; animation: xgn-blink 1.05s steps(1) infinite; }
@keyframes xgn-blink { 50% { opacity: 0; } }
[data-off] .xgn-cur { animation-play-state: paused; }
/* hero: a 4/8 first screen, the copy small, the board the one big thing */
.xgn-hero { padding: clamp(28px, 3.4vw, 56px) 0 clamp(56px, 6vw, 88px); }
.xgn-hero-g { align-items: center; }
.xgn-copy { grid-column: 1 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.xgn-h1 > span { display: block; }
.xgn-h1 > span:last-child { color: var(--faint); }
.xgn-lede { max-width: 40ch; }
.xgn-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; margin-top: 4px; }
.xgn-acts .x-btn.solid { margin-right: 4px; }
.xgn-stage { grid-column: 5 / -1; }
.xgn-obj { position: relative; height: clamp(560px, calc(100svh - 140px), 720px); }
.xgn-frame { position: absolute; inset: 30px; border: 1px solid var(--x-e10); border-radius: 12px; pointer-events: none; }
.xgn-corner { position: absolute; width: 14px; height: 14px; border-color: var(--ink); border-style: solid; border-width: 0; }
.xgn-corner.c0 { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; border-top-left-radius: 12px; }
.xgn-corner.c1 { right: -1px; top: -1px; border-right-width: 2px; border-top-width: 2px; border-top-right-radius: 12px; }
.xgn-corner.c2 { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 12px; }
.xgn-corner.c3 { left: -1px; bottom: -1px; border-left-width: 2px; border-bottom-width: 2px; border-bottom-left-radius: 12px; }
.xgn-rail { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--x-raised); white-space: nowrap; font: 500 12px/1 var(--mono); }
.xgn-rail-n { letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.xgn-rail-f { color: var(--faint); font-size: 13px; }
.xgn-rail.r0 { top: 30px; left: 50%; transform: translate(-50%, -50%); }
.xgn-rail.r1 { right: 30px; top: 50%; transform: translate(50%, -50%) rotate(90deg); }
.xgn-rail.r2 { bottom: 30px; left: 50%; transform: translate(-50%, 50%); }
.xgn-rail.r3 { left: 30px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
/* the four rails re-clamp on every flip: a hollow ring fills, one after another */
.xgn-beacon { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: xgn-ping .4s var(--ease-out-expo) var(--d) both; }
@keyframes xgn-ping { from { transform: scale(.4); opacity: .3; } }
.xgn-in { position: absolute; inset: 30px; display: grid; grid-template-rows: auto 1fr auto auto; padding: clamp(28px, 3vw, 44px) clamp(44px, 4.4vw, 68px) clamp(28px, 3vw, 44px); }
.xgn-top { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.xgn-k { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.xgn-who { margin: 0 0 0 auto; font-size: 13px; color: var(--faint); }
.xgn-pause { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--x-raised); color: var(--ink); cursor: pointer; transition: transform var(--dur-press) var(--ease-out-expo); }
.xgn-pause[hidden] { display: grid; visibility: hidden; }
.xgn-pause:active { transform: scale(.97); }
.xgn-board { align-self: center; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(4px, .45vw, 7px); width: 100%; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; perspective: 700px; }
.xgn-board:focus-visible { outline: 2px solid var(--ink); outline-offset: 10px; border-radius: 12px; }
.xgn-tile { position: relative; aspect-ratio: .74; display: grid; place-items: center; border-radius: clamp(5px, .6vw, 8px); background: linear-gradient(light-dark(#f5f5f5, var(--surface-card-emphasis)) 50%, light-dark(#ededed, var(--surface-card)) 50%); font: 500 clamp(24px, 2.9vw, 46px)/1 var(--mono); color: var(--ink); overflow: hidden; }
.xgn-tile::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: light-dark(rgba(0, 0, 0, .1), var(--background)); }
.xgn-tile > span { display: block; white-space: pre; backface-visibility: hidden; }
.xgn-line { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; font-size: clamp(21px, 2.1vw, 32px); line-height: 1.3; letter-spacing: -.025em; color: var(--ink); }
.xgn-fl-w { display: inline-flex; overflow: hidden; margin-left: .6ch; }
.xgn-fl { display: inline-block; white-space: pre; color: var(--ink); font-weight: 600; }
.xgn-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.xgn-cap { font-size: 14px; color: var(--soft); }
.xgn-ctl { display: inline-flex; align-items: center; gap: 8px; }
.xgn-count { margin-right: 8px; font-size: 14px; color: var(--soft); }
.xgn-ctl button, .xgn-pick button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--x-raised); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform var(--dur-press) var(--ease-out-expo); }
.xgn-ctl button:active, .xgn-pick button:active { transform: scale(.97); }
.xgn-ctl button:focus-visible, .xgn-pick button:focus-visible, .xgn-pause:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* the page's own index */
.xgn-index { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.xgn-index ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 4px; overflow-x: auto; scrollbar-width: none; }
.xgn-index ol::-webkit-scrollbar { display: none; }
.xgn-index li { flex: none; }
.xgn-index a { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 14px; font-size: 15px; color: var(--soft); text-decoration: none; transition: transform var(--dur-press) var(--ease-out-expo); }
.xgn-index li:first-child a { padding-left: 0; }
.xgn-index a span { font-size: 12px; color: var(--faint); }
.xgn-index a:active { transform: translateY(1px); }
.xgn-index a:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: 8px; }
/* install: the code window (7) left, the words (4) right */
.xgn-install .av-grid { align-items: center; }
.xgn-win { grid-column: 1 / span 7; grid-row: 1; }
.xgn-inst-l { grid-column: 9 / -1; grid-row: 1; display: flex; flex-direction: column; gap: 20px; }
.xgn-note { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: var(--soft); }
.xgn-note code { padding: 1px 6px; border-radius: 6px; background: var(--card); color: var(--ink); }
.xgn-rel { display: flex; flex-wrap: wrap; gap: 0 24px; }
.xgn-win-bar { display: flex; align-items: center; gap: 18px; min-height: 64px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.xgn-dots { display: flex; gap: 7px; flex: none; }
.xgn-dots i { width: 11px; height: 11px; border-radius: 50%; background: light-dark(#e4e4e4, var(--secondary)); }
.xgn-win-k { margin-left: auto; font-size: 13px; color: var(--faint); }
.xgn-panels { height: 392px; overflow-y: auto; overscroll-behavior: contain; }
.js .xgn-panel:not([hidden]) { animation: xgn-fade .3s var(--ease-out-expo) both; }
@keyframes xgn-fade { from { opacity: 0; transform: translate3d(0, 6px, 0); } }
.xgn-panel { outline: none; }
.xgn-lns { list-style: none; margin: 0; padding: 4px 0 8px; }
.xgn-lns li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 68px; padding: 10px 14px 10px 26px; border-bottom: 1px solid light-dark(rgba(0, 0, 0, .06), var(--border)); }
.xgn-lns li:last-child { border-bottom: 0; }
.xgn-lns code { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.xgn-cm { color: var(--faint); }
.xgn-out { display: block; padding-left: 1.6ch; color: var(--soft); font-family: var(--sans); font-size: .92em; }
.xgn .xgn-cp { height: 44px; padding: 0 14px; font-size: 13px; }
/* gen and dev, 7/5 */
.xgn-two { padding-top: 0; }
.xgn-pair { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px; margin-top: clamp(44px, 5vw, 72px); }
.xgn-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 14px; min-height: clamp(360px, 30vw, 440px); padding: clamp(28px, 3vw, 44px); border-radius: var(--r-hero); background: var(--card); color: var(--ink); text-decoration: none; overflow: hidden; }
.xgn-card .av-body { max-width: 46ch; }
.xgn-ring { position: absolute; top: clamp(28px, 3vw, 44px); right: clamp(28px, 3vw, 44px); width: 120px; height: 120px; border-radius: 50%; border: 1px dashed light-dark(rgba(0, 0, 0, .2), var(--border-focus)); }
.xgn-ring i { position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--ink); }
.xgn-ring i:nth-child(1) { left: 50%; top: 0; } .xgn-ring i:nth-child(2) { left: 100%; top: 50%; } .xgn-ring i:nth-child(3) { left: 50%; top: 100%; } .xgn-ring i:nth-child(4) { left: 0; top: 50%; }
.xgn-ring b { position: absolute; inset: 34px; border-radius: 14px; background: var(--ink); }
.xgn-card.dev { background: light-dark(#0a0a0a, var(--secondary)); color: #fafafa; transition: transform var(--dur-press) var(--ease-out-expo); }
.xgn-card.dev .av-title, .xgn-card.dev .xgn-arrow { color: #fafafa; }
.xgn-card.dev .av-body { color: rgba(255, 255, 255, .78); }
.xgn-card.dev:active { transform: scale(.98); }
.xgn-card.dev:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.xgn-core-dot { position: absolute; top: clamp(28px, 3vw, 44px); right: clamp(28px, 3vw, 44px); width: 52px; height: 52px; border-radius: 14px; background: light-dark(#f5f5f5, var(--background)); }
.xgn-core-dot::after { content: ''; position: absolute; inset: 20px; border-radius: 50%; background: var(--ink); }
/* agents: twenty-three keys (8) beside the words (4) */
.xgn-agents { padding-top: 0; }
.xgn-agents .av-grid { align-items: start; }
.xgn-ag-l { grid-column: 1 / span 4; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.xgn-keys { grid-column: 5 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.xgn-key { width: 100%; min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 16px; border: 0; border-radius: var(--r-card); background: var(--card); color: var(--ink); text-align: left; cursor: pointer; transition: background .15s var(--ease-out-expo), color .15s, transform var(--dur-press) var(--ease-out-expo); }
.xgn-key:active { transform: scale(.98); }
.xgn-key:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.xgn-key-n { font-size: 16px; font-weight: 500; line-height: 1.2; }
.xgn-key-f { font-size: 14px; color: var(--soft); }
.xgn-key.on { background: var(--ink); color: var(--x-on-ink); }
.xgn-key.on .xgn-key-f { color: light-dark(#a3a3a3, var(--neutral-600)); }
/* Beyond: the rails (7) and the command they make (5) */
.xgn-rails { padding-top: 0; }
.xgn-rails .av-grid { align-items: start; }
.xgn-rails-l { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 18px; }
.xgn-rail-list { list-style: none; margin: 28px 0 0; padding: 0; }
.xgn-rail-list li { display: flex; flex-direction: column; gap: 12px; padding: 28px 0 30px; border-top: 1px solid var(--line); }
.xgn-rail-h { display: flex; align-items: baseline; gap: 16px; }
.xgn-rail-i { font-size: 13px; color: var(--faint); }
.xgn-rail-f2 { margin-left: auto; font-size: 14px; color: var(--faint); }
.xgn-sw { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.xgn-sw button { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 14px; border-radius: 999px; border: 1px solid light-dark(rgba(0, 0, 0, .14), var(--border-control)); background: var(--x-raised); color: var(--soft); cursor: pointer; transition: color .15s, border-color .15s, transform var(--dur-press) var(--ease-out-expo); }
.xgn-sw button:active:not(:disabled) { transform: scale(.98); }
.xgn-sw button span { font-size: 14px; }
.xgn-sw button i { position: relative; width: 30px; height: 18px; border-radius: 999px; background: light-dark(#e4e4e4, var(--secondary)); transition: background .3s var(--ease-out-expo); }
.xgn-sw button i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: light-dark(#fff, var(--muted-foreground)); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .3s var(--ease-out-expo); }
.xgn-sw button.on { border-color: var(--ink); color: var(--ink); }
.xgn-sw button.on i { background: var(--ink); }
.xgn-sw button.on i::after { transform: translateX(12px); }
.xgn-sw button:disabled { color: light-dark(#737373, var(--text-tertiary)); border-style: dashed; cursor: not-allowed; }
.xgn-sw button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.xgn-code { margin-top: 18px; border-radius: var(--r-card); background: var(--x-raised); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.xgn-code-top { display: flex; align-items: center; height: 48px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.xgn-code-top .x-mono { font-size: 13px; color: var(--faint); }
.xgn-code .xgn-lns li { min-height: 60px; }
.xgn-build-wrap { grid-column: 8 / -1; position: sticky; top: 96px; }
.xgn-build { padding: clamp(24px, 2.4vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.xgn-build-k { margin: 0; font-size: 15px; font-weight: 500; color: var(--soft); }
.xgn-pick { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; margin-bottom: 6px; }
.xgn-build-a { margin: 0; font-size: 32px; font-weight: 497; line-height: 1.1; letter-spacing: -.028em; text-align: center; min-height: 2.2em; display: grid; place-items: center; }
.xgn-build-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 92px; padding: 14px 12px 14px 20px; border-radius: 16px; background: var(--card); }
.xgn-build-row code { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.xgn-build-row.twin { background: var(--x-raised); box-shadow: inset 0 0 0 1px var(--line); }
.xgn-build-row.twin code { color: var(--soft); font-size: clamp(15px, 1.15vw, 17px); }
.xgn-build-row .x-copy { height: 44px; padding: 0 14px; font-size: 13px; }
.xgn-build-n { margin: 4px 0 0; min-height: 4.65em; font-size: 15px; line-height: 1.55; color: var(--soft); }
.xgn-build-n[hidden] { display: block; visibility: hidden; }
/* the same harness in the CLI */
.xgn-cli { padding-top: 0; }
.xgn-cli .av-grid { align-items: center; }
.xgn-cli-l { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.xgn-cli-r { grid-column: 7 / -1; margin-top: 0; }
/* read on, then paste and ship (above the questions) */
.xgn-read-top { align-items: end; }
.xgn-read-l { grid-column: 1 / span 7; }
.xgn-read-r { grid-column: 9 / -1; }
/* the links (7 of 12, two columns: Gen beside Dev and Models) and the prompt (4 of 12), in one screen */
.xgn-read-g { margin-top: clamp(40px, 4.4vw, 64px); align-items: start; }
.xgn-cols { grid-column: 1 / span 7; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 28px; }
.xgn-cols > div:first-child { grid-row: span 2; }
.xgn-col-h { margin: 0 0 10px; font: 600 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.xgn-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.xgn-links li { border-bottom: 1px solid var(--line); }
.xgn-link { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 0; color: var(--ink); text-decoration: none; transition: transform var(--dur-press) var(--ease-out-expo); }
.xgn-link:active { transform: translateY(1px); }
.xgn-link > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.xgn-link b { font-size: 16px; font-weight: 500; }
/* hover: a quiet wash past the row edges, the words step in, the arrow travels */
.xgn-link::before { content: ''; position: absolute; inset: 2px -12px; z-index: -1; border-radius: 10px; background: var(--card); opacity: 0; transition: opacity .15s var(--ease-out-expo); }
.xgn-links li { position: relative; isolation: isolate; }
.xgn-link > span { transition: translate .3s var(--ease-out-expo); }
.xgn-link span span { font-size: 14px; color: var(--soft); overflow-wrap: anywhere; }
.xgn-link span span.x-mono { font-size: 13px; overflow-wrap: normal; }
.xgn-link i { font-style: normal; transition: transform .3s var(--ease-out-expo); }
.xgn-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.xgn-paste { grid-column: 9 / -1; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.xgn-paste-l { display: flex; flex-direction: column; gap: 10px; }
.xgn-prompt { padding: 22px 24px 18px; border-radius: var(--r-card); background: var(--card); }
.xgn-prompt pre { margin: 0 0 14px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.xgn-prompt-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.xgn-prompt-k { font-size: 13px; color: var(--soft); }
.xgn-prompt .x-copy { height: 44px; padding: 0 14px; font-size: 13px; }
/* questions, 4/8, on the kit FAQ */
.xgn-qa { padding-top: 0; }
.xgn-qa .av-grid { align-items: start; }
.xgn-qa-l { grid-column: 1 / span 4; position: sticky; top: 96px; }
.xgn-qs { grid-column: 5 / -1; }
.xgn-qs .x-faq button { min-height: 72px; font-size: 17px; }
.xgn-qs .x-faq-a .av-body, .xgn-qs .x-faq-a > div { font-size: 16px; line-height: 1.6; color: var(--soft); padding-bottom: 22px; max-width: 62ch; }
.xgn-qs code { padding: 1px 6px; border-radius: 6px; background: var(--card); color: var(--ink); }
/* the one ending: the black room (the source) with the ask */
.xgn .xgn-src { background: #000; color: #fafafa; text-align: left; overflow: hidden; }
.xgn-src .av-grid { align-items: end; position: relative; z-index: 1; }
.xgn-src-l { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 20px; }
.xgn .xgn-src h2 { margin: 0; max-width: none; font-size: 44px; font-weight: 497; line-height: 1.04; letter-spacing: -.035em; color: #fafafa; }
.xgn .xgn-src p.av-lede { margin: 0; max-width: 40ch; font-size: 21px; color: rgba(255, 255, 255, .78); }
.xgn-src-r { grid-column: 9 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 6px; }
.xgn-src-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.xgn-src .xgn-arrow { color: #fafafa; }
.xgn-src-flags { list-style: none; width: min(100% - 2 * clamp(16px, 4vw, 32px), 1152px); margin: clamp(72px, 8vw, 116px) auto 0; padding: 32px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 21px; letter-spacing: -.02em; color: rgba(255, 255, 255, .3); }
.xgn-src-flags li:nth-child(5n + 2) { color: rgba(255, 255, 255, .55); }
@media (hover: hover) {
.xgn-arrow:hover, .xgn-doc:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.xgn-board:hover .xgn-tile { background: linear-gradient(light-dark(#f2f2f2, var(--secondary)) 50%, light-dark(#e9e9e9, var(--surface-card-emphasis)) 50%); }
.xgn-ctl button:hover, .xgn-pick button:hover, .xgn-pause:hover { border-color: light-dark(rgba(0, 0, 0, .3), var(--border-selected)); }
.xgn-index a:hover { color: var(--ink); }
.xgn-card.dev:hover .xgn-arrow { text-decoration: underline; text-underline-offset: 4px; }
.xgn-key:hover { background: light-dark(#e9e9e9, var(--secondary)); }
.xgn-key.on:hover { background: var(--ink); }
.xgn-sw button:hover:not(:disabled) { border-color: light-dark(rgba(0, 0, 0, .35), var(--border-selected)); }
.xgn-link:hover i { transform: translateX(5px); }
.xgn-link:hover::before { opacity: 1; }
.xgn-link:hover > span { translate: 4px 0; }
}
@media (prefers-reduced-motion: reduce) {
.xgn *, .xgn *::before, .xgn *::after { animation: none !important; }
}
@media (max-width: 899px) {
.xgn-hero { padding: 20px 0 64px; }
.xgn-copy { display: contents; }
.xgn-h1 { order: 0; }
.xgn-lede { order: 1; font-size: 16px; }
.xgn-acts { order: 2; margin-top: -6px; }
.xgn-stage { order: 3; margin-top: 4px; }
.xgn-hero-g { row-gap: 18px; }
.xgn-obj { height: auto; border-radius: 20px; }
.xgn-frame { inset: 12px; }
.xgn-rail { padding: 0 8px; gap: 8px; }
.xgn-rail.r0 { top: 12px; } .xgn-rail.r2 { bottom: 12px; }
.xgn-rail.r1 { right: 12px; } .xgn-rail.r3 { left: 12px; }
.xgn-rail.r1 .xgn-rail-f, .xgn-rail.r3 .xgn-rail-f, .xgn-rail.r0 .xgn-rail-f, .xgn-rail.r2 .xgn-rail-f { display: none; }
.xgn-in { position: relative; inset: auto; margin: 12px; padding: 28px 26px 18px; gap: 16px; grid-template-rows: auto; }
.xgn-who { display: none; }
.xgn-pause { margin-left: auto; }
.xgn-board { gap: 3px; perspective: 400px; }
.xgn-tile { border-radius: 4px; font-size: clamp(16px, 5.2vw, 21px); }
.xgn-line { font-size: 19px; }
.xgn-meta { flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 0 12px; padding-top: 14px; }
.xgn-index a { min-height: 52px; }
.xgn-win, .xgn-inst-l { grid-row: auto; }
.xgn-inst-l { order: -1; }
.xgn-win { border-radius: 20px; }
.xgn-win-bar { flex-wrap: wrap; gap: 12px; padding: 10px 12px; }
.xgn-dots, .xgn-win-k { display: none; }
.xgn-panels { height: 480px; }
.xgn-lns li { gap: 8px; padding: 12px 8px 12px 16px; }
.xgn-lns code { font-size: 15px; }
.xgn .xgn-cp { width: 44px; padding: 0; justify-content: center; }
.xgn .xgn-cp .x-copy-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.xgn-pair { grid-template-columns: minmax(0, 1fr); }
.xgn-card { min-height: 320px; padding: 24px; border-radius: 20px; }
.xgn-ring { width: 88px; height: 88px; top: 24px; right: 24px; }
.xgn-ring b { inset: 24px; border-radius: 10px; }
.xgn-core-dot { top: 24px; right: 24px; }
.xgn-ag-l, .xgn-qa-l, .xgn-build-wrap { position: static; }
.xgn-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xgn-key { min-height: 76px; padding: 12px 14px; }
.xgn-rail-h { flex-wrap: wrap; gap: 4px 12px; }
.xgn-rail-f2 { margin-left: 0; width: 100%; }
.xgn-rail-i { font-size: 14px; }
.xgn-build { border-radius: 20px; }
.xgn-build-a { font-size: 26px; }
.xgn-build-row { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; min-height: 0; }
.xgn-build-row .x-copy { justify-self: start; font-size: 14px; }
.xgn-cols { grid-template-columns: minmax(0, 1fr); gap: 36px; }
.xgn-cols > div:first-child { grid-row: auto; }
.xgn-paste { position: static; margin-top: 36px; }
.xgn-link::before { inset: 2px -8px; }
.xgn-prompt { padding: 18px; }
.xgn-prompt .x-copy { font-size: 14px; }
.xgn .xgn-src h2 { font-size: 32px; }
.xgn .xgn-src p.av-lede { font-size: 17px; }
.xgn-src-flags { font-size: 16px; gap: 4px 14px; margin-top: 56px; }
.xgn-code-top .x-mono, .xgn-cap, .xgn-count, .xgn-prompt-k, .xgn-win-k { font-size: 14px; }
}
/* critic round 3 (7 Nov); hero placement (8 Nov): a gap under the header, the index peeking above the fold */
.xgn-hero { padding: clamp(16px, 2vw, 28px) 0 clamp(32px, 3vw, 44px); }
@media (min-width: 900px) { .xgn-obj { height: clamp(540px, calc(100svh - 230px), 700px); } }
.xgn-src { padding-bottom: clamp(56px, 6vw, 88px) !important; }
@media (prefers-reduced-motion: reduce) { .xgn-pause { display: none !important; } }
.xgn-rail-cmd { display: none; }
@media (max-width: 899px) {
.xgn-hero { padding: 24px 0 56px; }
/* the command rides at the foot of the screen while the switches scroll by */
.xgn-rail-cmd { display: block; position: sticky; bottom: 12px; z-index: 3; margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: light-dark(#0a0a0a, var(--secondary)); color: #fafafa; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .18); }
/* the agents as a two-row rail with a peek, not a 1,900px wall */
.xgn-keys { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 4px; }
.xgn-keys > li { scroll-snap-align: start; }
.xgn-key { min-height: 56px; }
}