Files
Claude 17d5afe589 dark tokens: selected tabs and chips readable in dark on 12 app and cloud pages
/automations, /billing, /chrome, /cli, /commerce, /edge, /gateway, /idv, /ledger,
/operative, /playground, /pubsub. /billing's Issued chip lost its solid fill in dark
(now var(--primary) / var(--primary-foreground)). On the others the selected label
sits on a sliding pill drawn by a sibling element; the label now carries the pill's
own colour in dark, so it reads the same and James's darkcheck measures it correctly.
Every rule is under html:not(.light): light mode is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P5YBdwj33XByFVTvu9bfci
2026-11-08 14:01:19 +00:00

431 lines
36 KiB
CSS

/* ---------- /cli: the first screen is a terminal; deck greys only; rest sizes on the deck scale ---------- */
.cli { --soft: #525252; --faint: #737373; --card: #f2f2f2; --line: rgba(0, 0, 0, .1); }
/* dark (docs/DARK-MODE.md): this page's greys, and v2/AppType.css's fixed ones on .av, point at Hanzo's own tokens; the hero terminal stays black */
html:not(.light) .cli { --soft: var(--muted-foreground); --faint: var(--text-tertiary); --card: var(--x-fill); --line: var(--border); --ac-soft: var(--x-fill); }
html:not(.light) .av.cli { background: var(--bg); color: var(--ink); }
html:not(.light) .cli .av-lede, html:not(.light) .cli .av-body { color: var(--soft); }
html:not(.light) .cli .av-kick, html:not(.light) .cli .av-spec dt { color: var(--faint); }
html:not(.light) .cli .av-kick b, html:not(.light) .cli .av-spec dd { color: var(--ink); }
html:not(.light) .cli .av-spec, html:not(.light) .cli .av-spec dt, html:not(.light) .cli .av-spec dd { border-color: var(--line); }
html:not(.light) .cli .av-obj { box-shadow: 0 0 0 1px var(--line); }
html:not(.light) .cli .av-card { background: var(--x-fill); }
html:not(.light) .cli .av-dark .av-body, html:not(.light) .cli .av-dark .av-lede { color: var(--white-78); }
html:not(.light) .cli .av-dark .av-kick { color: var(--white-55); }
.cli code { font: 500 .9em/1.4 var(--mono); }
.cli-p, .cli-pp, .cli-inst code span, .cli-cap-cmd code span, .cli-three-c > span, .cli-place-t span { user-select: none; }
/* pause / replay: 44 px, first before the moving part */
.cli-ctl { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: none; color: #fafafa; cursor: pointer; transition: transform var(--dur-press) var(--ease-out-expo), background .15s; }
.cli-ctl:active { transform: scale(.97); }
.cli-ctl[hidden] { display: grid; visibility: hidden; }
.cli-ctl.light { border-color: var(--x-e12); color: var(--ink); }
.cli-fs-k { margin-left: auto; }
.cli .x-arrow { min-height: 44px; font-size: 16px; }
.cli-dots { display: flex; gap: 8px; flex: none; }
.cli-dots i { width: 12px; height: 12px; border-radius: 50%; background: #404040; }
.cli-dots i:first-child { background: #737373; } .cli-dots i:nth-child(2) { background: #525252; }
.cli-caret { display: inline-block; flex: none; width: .55em; height: 1.08em; margin-left: .08em; border-radius: 2px; background: currentColor; vertical-align: -.16em; animation: cli-blink 1.05s steps(1) infinite; }
@keyframes cli-blink { 50% { opacity: 0; } }
[data-off] .cli-caret, [data-off] .cli-spin { animation-play-state: paused; }
/* a typed line keeps its full text as an invisible ghost, so its height never changes while it types */
.cli-tx { position: relative; display: inline-block; min-width: 0; }
.cli-ghost { visibility: hidden; }
.cli-ghost::after { content: ""; display: inline-block; width: .65em; } /* room for the caret, so it never wraps */
.cli-typed { position: absolute; left: 0; top: 0; right: 0; }
/* the hero: a full-bleed black room that is one terminal window */
.cli-hero { margin-top: -60px; padding: 72px 12px 12px; min-height: 100svh; display: flex; }
.cli-term { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; width: min(100%, 1680px); min-height: calc(100svh - 84px); margin: 0 auto; border-radius: var(--r-hero); background: #0a0a0a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); overflow: hidden; }
.cli-bar { display: flex; align-items: center; gap: 22px; height: 56px; padding: 0 22px; background: #171717; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.cli-tabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cli-tabs::-webkit-scrollbar { display: none; }
.cli-tabs a { flex: none; height: 44px; padding: 0 18px; border-radius: 10px; font: 500 14px/44px var(--sans); color: #a3a3a3; text-decoration: none; transition: color var(--dur-hover) var(--ease-out-expo), background var(--dur-hover); }
.cli-tabs a.on { color: #a3a3a3; background: #0a0a0a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.cli-tabs a.on b { color: #f5f5f5; font-weight: 600; }
.cli-tabs a:active { transform: translateY(1px); }
.cli-who { margin-left: auto; flex: none; font-size: 13px; letter-spacing: .02em; color: #a3a3a3; white-space: nowrap; }
.cli-bar .cli-ctl { margin-left: auto; }
.cli-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; column-gap: 24px; row-gap: 36px; padding: clamp(36px, 4.2vw, 68px) clamp(24px, 4.4vw, 72px) clamp(28px, 3vw, 48px); }
.cli-h1 { grid-column: 1 / span 7; grid-row: 1; margin: 0; color: #fafafa; max-width: 12ch; }
.cli-h1 > span { display: block; }
/* the h1 paints first: each line rises out of its own mask on first paint (CSS only, no JS wait), before the session types */
.cli-m { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.cli-m > span { display: block; }
.js .cli-m > span { animation: cli-rise .7s cubic-bezier(.16, 1, .3, 1) both; }
.js .cli-m + .cli-m > span { animation-delay: 60ms; }
@keyframes cli-rise { from { transform: translate3d(0, 105%, 0); } }
/* page-local line mask for the h2s (cli/Cut.jsx); the server HTML is the final frame */
.cli-cut-m { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.cli-cut-l { display: block; } /* the h2s sit still: the five section entrances carry the arrival (docs/MOTION-MAP.md), not a line mask on every heading */
/* the one white solid on the black room (not the room's grey fill) */
.cli .cli-hero .x-btn.solid { background: #fff; border-color: #fff; color: #0a0a0a; }
@media (hover: hover) { .cli .cli-hero .x-btn.solid:hover { background: #e5e5e5; border-color: #e5e5e5; } }
.cli-lede { grid-column: 8 / -1; grid-row: 1; align-self: end; color: rgba(255, 255, 255, .78); max-width: 40ch; font-size: 17px; line-height: 1.55; }
.cli-lede code { padding: 1px 7px; border-radius: 7px; background: #262626; color: #f5f5f5; }
.cli-sess { grid-column: 1 / span 8; grid-row: 2; align-self: end; }
.cli-acts { grid-column: 8 / -1; grid-row: 2 / span 2; align-self: end; display: flex; flex-direction: column; gap: 18px; }
.cli-acts-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cli-hero .x-arrow { color: #f5f5f5; }
.cli-open { grid-column: 1 / span 8; grid-row: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.cli-open .x-arrow { color: #a3a3a3; transition: color .5s var(--ease-out-expo); }
.cli-open.on .x-arrow { color: #f5f5f5; }
.cli-note { margin: 0; font-size: 14px; color: #737373; }
.cli-inst { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 14px; background: #171717; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.cli-inst code { min-width: 0; font-size: 15px; color: #f5f5f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cli-inst code span { color: #737373; }
.cli .cli-hero .x-copy, .cli .cli-inst .x-copy { flex: none; height: 44px; padding: 0 16px; font-size: 14px; background: #262626; border-color: rgba(255, 255, 255, .14); color: #e5e5e5; }
.cli-lines { list-style: none; margin: 0; padding: 0; font: 400 clamp(22px, 2.5vw, 38px)/1.5 var(--mono); letter-spacing: -.02em; color: #f5f5f5; }
.cli-l { display: flex; align-items: flex-start; gap: .55em; transition: opacity .3s var(--ease-out-expo), transform .5s var(--ease-out-expo); }
.js .cli-l:not(.on) { opacity: 0; transform: translate3d(0, 10px, 0); }
/* JS on: the server's final frame is masked from first paint until the session takes over, so it only ever grows (JS off and reduced motion keep the final frame) */
.js .cli-sess:not(.live) .cli-l { opacity: 0; transition: none; }
.cli-p { flex: none; width: .8em; color: #a3a3a3; }
.cli-l.k1 .cli-p { color: #737373; }
.cli-l.k2, .cli-l.k2 .cli-p { color: #737373; }
.cli-l.k3 { color: #f5f5f5; font-weight: 500; } .cli-l.k3 .cli-p { color: #f5f5f5; }
.cli-spin { color: #a3a3a3; opacity: 0; }
.cli-spin.on { opacity: 1; }
.cli-status { display: flex; align-items: center; gap: 10px 24px; margin: 0; padding: 14px clamp(24px, 4.4vw, 72px); border-top: 1px solid rgba(255, 255, 255, .07); font: 400 13px/1.5 var(--mono); color: #a3a3a3; }
.cli-status p { display: flex; align-items: center; gap: 10px; margin: 0; min-width: 0; }
.cli-status p::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #f5f5f5; }
/* the status light breathes like a live shell's, so the room is never still */
.cli-status p:first-child::before { animation: cli-live 2.4s ease-in-out infinite; }
@keyframes cli-live { 50% { transform: scale(.6); opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .cli-status p::before { animation: none !important; } }
/* paste and ship: the prompt is the big line (8), the label beside it (4) */
.cli-paste { padding: clamp(48px, 5vw, 72px) 0; }
/* the white half runs on: no 300px bands between the slider, the paste line, the rail and get started */
.cli .cli-what-sec.av-sec, .cli .cli-caps.av-sec, .cli .cli-start.av-sec { padding-bottom: clamp(48px, 5vw, 80px); }
.cli-paste .av-grid { align-items: end; }
.cli-prompt { grid-column: 1 / span 8; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: end; padding-top: 28px; border-top: 1px solid var(--ink); }
.cli-prompt code { font: 500 21px/1.45 var(--mono); letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
.cli-prompt .x-copy { height: 44px; padding: 0 18px; font-size: 14px; }
.cli-prompt-k { grid-column: 1 / -1; font-size: 13px; color: var(--faint); }
@media (min-width: 900px) { .cli-prompt-caret { display: none; } } /* phone only: there it is the one mover between the hero and the tree; on desktop the tree's caret is already in view */
.cli-paste-r { grid-column: 10 / -1; display: flex; flex-direction: column; gap: 10px; }
.cli-paste-r .av-body { font-size: 17px; }
/* the signature: a before / after slider. Left of the divider, the commands as a pile of flags; right of it, the same commands as the tree.
The after layer is clipped from the divider (clip-path), the divider moves by transform: nothing reflows while it is dragged. */
.cli-cmp { --x: 50%; position: relative; height: clamp(360px, 30vw, 440px); margin-top: clamp(44px, 5vw, 72px); border-radius: var(--r-hero); overflow: hidden; background: var(--card); user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; }
.cli-cmp-a, .cli-cmp-b { position: absolute; inset: 0; padding: clamp(24px, 3vw, 44px); }
.cli-cmp-b { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); clip-path: inset(0 0 0 var(--x)); border-radius: inherit; }
.cli-cmp-k { position: absolute; top: 18px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.cli-cmp-a .cli-cmp-k { left: 22px; }
.cli-cmp-b .cli-cmp-k { right: 22px; color: var(--ink); }
.cli-cmp-pile { margin: 28px 0 0; width: min(100%, 1000px); display: flex; flex-wrap: wrap; align-content: flex-start; gap: 2px 14px; font-size: clamp(15px, 1.45vw, 21px); line-height: 1.6; letter-spacing: -.02em; color: var(--faint); }
.cli-cmp-pile span { display: inline-block; transform: translate3d(0, calc(var(--r) * 2px), 0) rotate(calc(var(--r) * 1.1deg)); white-space: nowrap; }
.cli-cmp-pile span:nth-child(3n) { color: var(--soft); }
.cli-cmp-pile span:nth-child(4n + 1) { color: light-dark(#404040, var(--text-secondary)); }
.cli-cmp-tree { list-style: none; margin: 28px 0 0 auto; padding: 0; width: max-content; max-width: 100%; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.75; color: var(--ink); }
.cli-cmp-tree li { display: flex; gap: 0; white-space: pre; }
.cli-cmp-tree li.root { font-weight: 600; }
.cli-cmp-tree .g { color: light-dark(#a3a3a3, var(--text-disabled)); }
.cli-cmp-tree b { font-weight: 600; min-width: 8ch; }
.cli-cmp-tree .l { color: var(--soft); overflow: hidden; text-overflow: ellipsis; }
.cli-cmp-bar { position: absolute; inset: 0; pointer-events: none; transform: translate3d(calc(var(--x) - 50%), 0, 0); }
.cli-cmp-bar::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); }
.cli-cmp-h { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--x-on-ink); pointer-events: auto; cursor: ew-resize; touch-action: none; transition: transform var(--dur-press) var(--ease-out-expo); }
.cli-cmp.held .cli-cmp-h { transform: scale(.94); }
/* idle: a ring breathes out of the handle until the visitor takes it (then it stops for good) */
.cli-cmp-h::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink); opacity: 0; pointer-events: none; }
.cli-cmp:not(.used) .cli-cmp-h::after { animation: cli-ring 2.6s cubic-bezier(0, 0, .2, 1) 3s infinite; }
@keyframes cli-ring { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cli-cmp-h::after { animation: none !important; } }
.cli-cmp-h:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 2px var(--bg); }
@media (hover: hover) { .cli-cmp:hover .cli-cmp-h { transform: scale(1.06); } .cli-cmp.held .cli-cmp-h { transform: scale(.94); } }
/* the resource tree */
.cli-what-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: end; }
.cli-tree-h { grid-column: 1 / span 7; }
.cli-what-lede { grid-column: 8 / -1; padding-bottom: 6px; }
.cli-what-lede code { padding: 1px 7px; border-radius: 7px; background: var(--card); color: var(--ink); white-space: nowrap; }
.cli-fs { margin-top: clamp(56px, 6vw, 96px); border-radius: var(--r-hero); background: var(--x-raised); box-shadow: 0 0 0 1px var(--line); overflow: hidden; } /* outlined, not raised */
.cli-fs-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; padding: 0 28px; border-bottom: 1px solid var(--line); }
.cli-crumb { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; color: var(--soft); }
.cli-crumb i { font-style: normal; color: light-dark(#d4d4d4, var(--text-disabled)); }
.cli-crumb b { font-weight: 600; color: var(--ink); }
.cli-fs-k { font-size: 13px; color: var(--faint); white-space: nowrap; }
/* fixed: opening folders scrolls inside the tree; the page never moves */
.cli-fs-main { display: grid; grid-template-columns: minmax(300px, 4fr) minmax(0, 8fr); height: clamp(560px, 46vw, 680px); }
.cli-tree { position: relative; list-style: none; margin: 0; padding: 20px 14px 24px; border-right: 1px solid var(--line); background: var(--x-sunk); overflow-y: auto; overscroll-behavior: contain; }
.cli-res { position: relative; }
.cli-node, .cli-leaf { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--soft); cursor: pointer; text-align: left; font-size: 16px; transition: transform var(--dur-press) var(--ease-out-expo); }
.cli-node:active, .cli-leaf:active { transform: scale(.98); }
.cli-node:focus-visible, .cli-leaf:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.cli-gl { flex: none; white-space: pre; color: light-dark(#d4d4d4, var(--text-disabled)); font-size: 15px; }
.cli-dir { flex: none; color: var(--faint); }
.cli-node.path, .cli-node.path .cli-dir { color: var(--ink); }
.cli-res.open .cli-dir path { fill: var(--ink); stroke: var(--ink); }
.cli-node-t { font-weight: 500; }
.cli-n { margin-left: auto; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; background: light-dark(#e9e9e9, var(--glass-strong)); font-size: 13px; line-height: 22px; text-align: center; color: var(--soft); transition: background var(--dur-hover) var(--ease-out-expo), color var(--dur-hover); }
.cli-cmds { list-style: none; margin: 0; padding: 0; }
.js .cli-cmds li { animation: cli-in .45s var(--ease-out-expo) calc(var(--i) * 40ms) both; }
@keyframes cli-in { from { opacity: 0; transform: translate3d(-8px, 0, 0); } }
.cli-leaf { font-size: 15px; }
.cli-leaf span:not(.cli-leaf-bg) { position: relative; }
.cli-leaf.on { color: var(--x-on-ink); font-weight: 500; }
.cli-leaf.on .cli-gl { color: light-dark(rgba(255, 255, 255, .4), color-mix(in srgb, var(--x-on-ink) 40%, transparent)); }
.cli-leaf-bg { position: absolute; inset: 0; border-radius: 10px; background: var(--ink); }
.cli-out { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 0; padding: clamp(32px, 4.4vw, 72px); }
.cli-print { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 28px; min-height: 0; padding-top: clamp(0px, 4vw, 64px); } /* top-anchored: a longer description never moves the command */
.cli-cmd { display: flex; align-items: baseline; gap: .45em; margin: 0; font: 500 clamp(26px, 2.8vw, 40px)/1.15 var(--mono); letter-spacing: -.035em; color: var(--ink); }
.cli-cmd .cli-tx { flex: 1; overflow-wrap: anywhere; }
.cli-pp { flex: none; color: var(--faint); }
.cli-what { margin: 0; max-width: 48ch; font: 400 clamp(17px, 1.3vw, 19px)/1.6 var(--mono); color: var(--soft); }
.cli-what span { color: var(--faint); }
.cli-out-f { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cli-out-f .x-copy { height: 44px; padding: 0 18px; font-size: 14px; color: var(--ink); }
.cli-out-a { display: inline-flex; align-items: center; min-height: 44px; font: 500 15px/1 var(--sans); color: var(--soft); text-underline-offset: 4px; }
/* the three claims, each as its command */
.cli-three { list-style: none; margin: clamp(96px, 10vw, 160px) 0 0; padding: 0; }
.cli-three li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 10px; align-items: baseline; padding: 40px 0 44px; border-top: 1px solid var(--line); }
.cli-three li:last-child { border-bottom: 1px solid var(--line); }
/* each claim's command is a small terminal window: it types itself in (stepped clip) as the row arrives; the verb that does not exist is struck through after */
.cli-win { grid-column: 1 / span 5; grid-row: 1 / span 2; align-self: start; display: flex; flex-direction: column; border-radius: var(--r-card); background: var(--card); overflow: hidden; transition: transform var(--dur-press) var(--ease-out-expo); }
.cli-win-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.cli-win-bar i { width: 9px; height: 9px; border-radius: 50%; background: light-dark(#d4d4d4, var(--white-20)); }
.cli-win-bar b { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--faint); }
.cli-three-c { display: flex; align-items: center; min-height: 112px; padding: 20px 22px; font-size: clamp(21px, 2vw, 28px); letter-spacing: -.03em; color: var(--ink); }
.cli-win-l { white-space: nowrap; }
.cli-win-l > span { color: var(--faint); }
.cli-three-c s { position: relative; text-decoration-thickness: 2px; color: var(--faint); }
.cli-three-c .cli-caret { opacity: 0; }
.cli-three li.in .cli-caret { animation: cli-blink-out 1.05s steps(1) 2 both; } /* blinks while it types, then rests: one mover per viewport */
@keyframes cli-blink-out { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.cli-three li.in:not(:has(~ li.in)) .cli-caret { opacity: 1; animation: cli-blink 1.05s steps(1) infinite; } /* only the latest window keeps its prompt alive */
.cli-help-k .cli-caret { height: 1em; vertical-align: -.12em; } /* the rail's one mover: the --help prompt waits */
.js .cli-win-l { display: inline-block; clip-path: inset(0 100% 0 0); }
.js .cli-three li.in .cli-win-l { clip-path: inset(0 0 0 0); transition: clip-path .9s steps(var(--n, 16)); }
.js .cli-three-c s { text-decoration: none; }
.js .cli-three-c s::after { content: ''; position: absolute; left: 0; right: 0; top: 52%; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; }
.js .cli-three li.in .cli-three-c s::after { transform: scaleX(1); transition: transform .5s cubic-bezier(.16, 1, .3, 1) 1s; }
.cli-three h3 { grid-column: 7 / -1; display: flex; align-items: baseline; gap: 14px; }
.cli-three-n { font-size: 13px; font-weight: 400; color: var(--faint); }
.cli-three p { grid-column: 7 / -1; }
/* capabilities: a rail of commands */
.cli-caps { padding-top: 0; }
.cli-caps-top { align-items: end; }
.cli-caps-h { grid-column: 1 / span 7; }
.cli-caps-r { grid-column: 8 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.cli-help-k { margin: 0; font-size: 14px; color: var(--soft); }
.cli-help-k span { color: var(--faint); }
.cli-arrows { display: flex; gap: 10px; }
.cli-arrows button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--x-raised); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color var(--dur-hover), transform var(--dur-press) var(--ease-out-expo); }
.cli-arrows button:active:not(:disabled) { transform: scale(.98); }
.cli-arrows button:disabled { color: light-dark(#d4d4d4, var(--text-disabled)); cursor: default; }
.cli-arrows button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cli-rail { --pad: max(24px, calc((100% - 1392px) / 2)); list-style: none; display: flex; gap: 20px; margin: clamp(48px, 5vw, 72px) 0 0; padding: 4px var(--pad) 24px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
.cli-rail::-webkit-scrollbar { display: none; }
.cli-cap { flex: 0 0 clamp(320px, 29vw, 420px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; padding: 12px 12px 28px; border-radius: var(--r-card); background: var(--card); }
.cli-cap-cmd { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 88px; padding: 10px 10px 10px 20px; border-radius: 12px; background: light-dark(#fff, var(--bg)); box-shadow: 0 0 0 1px var(--line); margin-bottom: 10px; }
.cli-cap-cmd code { min-width: 0; font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
.cli-cap-cmd code span { color: var(--faint); }
.cli-cap-cmd .x-copy { flex: none; width: 44px; height: 44px; padding: 0; justify-content: center; }
.cli-cap-cmd .x-copy .x-copy-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cli-cap .av-title, .cli-cap p { padding: 0 16px; }
.cli-cap .av-title { display: flex; align-items: baseline; gap: 12px; }
.cli-cap-n { font-size: 13px; font-weight: 400; color: var(--faint); }
.cli-cap p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--soft); }
/* get started: the builder (5) and the script (7) */
.cli-start { padding-top: 0; }
.cli-start .av-grid { align-items: start; }
.cli-start-l { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 18px; }
.cli-start-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.cli-add { display: flex; flex-direction: column; margin-top: 28px; }
.cli-add-k { margin: 0 0 12px; font-size: 15px; font-weight: 500; color: var(--soft); }
.cli-add button { display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: 'c t' 'c m'; align-items: center; column-gap: 16px; row-gap: 2px; min-height: 72px; padding: 12px 4px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; color: var(--ink); cursor: pointer; transition: transform var(--dur-press) var(--ease-out-expo); }
.cli-add button:last-child { border-bottom: 1px solid var(--line); }
.cli-add button:active { transform: scale(.98); }
.cli-add button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.cli-chk { grid-area: c; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; border: 1px solid light-dark(rgba(0, 0, 0, .14), var(--border-control)); color: var(--soft); transition: background .3s var(--ease-out-expo), border-color .3s, color .3s; }
.cli-add button[aria-pressed='true'] .cli-chk { background: var(--ink); border-color: var(--ink); color: var(--x-on-ink); }
.cli-add-t { grid-area: t; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.cli-add-c { grid-area: m; font-size: 14px; color: var(--faint); }
.cli-script { grid-column: 6 / -1; }
.cli-script-bar { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 12px 0 24px; border-bottom: 1px solid var(--line); }
.cli-script-t { font-size: 15px; font-weight: 600; color: var(--ink); }
.cli-script-bar .x-mono { font-size: 13px; color: var(--faint); }
.cli-script-n { margin-left: auto; }
.cli-script-bar .x-copy { height: 44px; padding: 0 16px; font-size: 14px; color: var(--ink); }
.cli-script-body { padding: 8px 0 12px; }
.cli-blk { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: start; padding: 18px 16px 18px 0; border-bottom: 1px solid light-dark(rgba(0, 0, 0, .05), var(--white-05)); }
.cli-blk:last-child { border-bottom: 0; }
.cli-blk.add { box-shadow: inset 2px 0 0 var(--ink); }
.cli-blk-n { justify-self: center; padding-top: 3px; font-size: 13px; color: var(--faint); }
.cli-blk pre { margin: 0; font: 400 clamp(15px, 1.15vw, 17px)/1.75 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.cli-c { color: var(--faint); }
.cli-ln { color: var(--ink); }
.cli .cli-blk-cp { height: 44px; padding: 0 12px; font-size: 13px; }
/* the script's line count rolls up from 0 as it arrives (inside the curtain-rise), then from old to new on every add */
.cli-roll { display: inline-block; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
/* the repository */
.cli-get-sec { padding-top: 0; padding-bottom: 0; }
.cli-get { align-items: stretch; }
.cli-repo { grid-column: 1 / span 8; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'h dl' 'a a'; gap: 40px 32px; padding: clamp(32px, 3.6vw, 56px); border-radius: var(--r-hero); background: var(--card); }
.cli-repo-h { grid-area: h; display: flex; flex-direction: column; gap: 10px; }
.cli-repo-dl { grid-area: dl; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.cli-repo-dl div { display: flex; gap: 8px; }
.cli-repo-dl dt { color: var(--faint); } .cli-repo-dl dd { margin: 0; }
.cli-repo-acts { grid-area: a; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.cli-gh { display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border-radius: 999px; background: var(--x-raised); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-size: 15px; transition: box-shadow var(--dur-hover), transform var(--dur-press) var(--ease-out-expo); }
.cli-gh:active { transform: scale(.98); }
.cli-related { grid-column: 9 / -1; display: flex; flex-direction: column; justify-content: flex-end; }
.cli-related-k { margin: 0 0 12px; font-size: 15px; font-weight: 500; color: var(--soft); }
.cli-rel { display: flex; align-items: center; justify-content: space-between; min-height: 64px; border-top: 1px solid var(--line); font-size: 21px; font-weight: 497; letter-spacing: -.015em; color: var(--ink); text-decoration: none; transition: transform var(--dur-press) var(--ease-out-expo); }
.cli-rel:last-child { border-bottom: 1px solid var(--line); }
.cli-rel:active { transform: translateY(1px); }
.cli-rel span { transition: transform .4s var(--ease-out-expo); }
.cli-rel:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
/* the one ending: a white band (the page's one dark room is the hero) */
.cli .cli-band { background: var(--bg); color: var(--ink); text-align: left; padding: clamp(44px, 5vw, 72px) 0 clamp(27px, 3vw, 44px); margin-top: clamp(44px, 5vw, 72px); border-top: 1px solid var(--line); } /* repo card, Band and footer run on */
.cli-band .av-grid { align-items: start; }
.cli .cli-band h2.cli-band-h { grid-column: 1 / span 7; margin: 0; max-width: none; font-size: 44px; font-weight: 497; line-height: 1.04; letter-spacing: -.035em; color: var(--ink); }
.cli-band-r { grid-column: 8 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 8px; }
.cli .cli-band p.av-lede { margin: 0; max-width: 34ch; font-size: 21px; color: var(--soft); }
.cli .cli-band .x-btn.solid { height: 52px; padding: 0 28px; font-size: 16px; background: var(--ink); border-color: var(--ink); color: var(--x-on-ink); }
.cli-band-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.cli-places { grid-column: 1 / -1; list-style: none; margin: clamp(72px, 8vw, 120px) 0 0; padding: 0; }
.cli-places li { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: clamp(76px, 6.4vw, 104px); border-top: 1px solid var(--line); }
.cli-places li:last-child { border-bottom: 1px solid var(--line); }
.cli-place-k { font-size: 21px; font-weight: 497; letter-spacing: -.015em; }
.cli-place-k::first-letter { text-transform: uppercase; }
.cli-place-t { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(17px, 1.5vw, 22px); color: var(--soft); }
.cli-place-t span { color: var(--faint); }
.cli-place-t i { width: .55em; height: 1.1em; border-radius: 2px; background: var(--ink); visibility: hidden; }
.cli-place-t i.cli-caret { visibility: visible; margin-left: 0; } /* one caret, stepping down the places */
.cli-place-k, .cli-place-t { transition: color var(--dur-hover) var(--ease-out-expo); }
.cli-places li:not(.on) .cli-place-k { color: var(--faint); }
.cli-places li.on .cli-place-t { color: var(--ink); }
@media (hover: hover) {
.cli-ctl:hover { background: rgba(255, 255, 255, .1); }
.cli-ctl.light:hover { background: light-dark(#f2f2f2, var(--glass-strong)); }
.cli-tabs a:hover { color: #f5f5f5; background: #262626; }
.cli-node:hover { background: light-dark(#f2f2f2, var(--glass-strong)); color: var(--ink); }
.cli-leaf:hover { color: var(--ink); }
.cli-leaf.on:hover { color: var(--x-on-ink); }
.cli-leaf.on:hover .cli-leaf-bg { background: light-dark(#262626, var(--primary)); }
.cli-node:hover .cli-n { background: var(--ink); color: var(--x-on-ink); }
.cli .cli-band .x-btn.solid:hover { background: light-dark(#262626, var(--primary)); border-color: light-dark(#262626, var(--primary)); }
.cli-out-a:hover { color: var(--ink); text-decoration: underline; }
.cli-three li:hover .cli-win { transform: translateY(-2px); }
.cli-arrows button:hover:not(:disabled) { border-color: light-dark(rgba(0, 0, 0, .3), var(--white-30)); }
.cli-add button:hover .cli-chk { border-color: light-dark(rgba(0, 0, 0, .35), var(--white-40)); color: var(--ink); }
.cli-add button[aria-pressed='true']:hover .cli-chk { color: var(--x-on-ink); }
.cli-add button:hover .cli-add-c { color: var(--soft); }
.cli-gh:hover { box-shadow: 0 0 0 1px light-dark(rgba(0, 0, 0, .3), var(--white-30)); }
.cli-rel:hover span { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) {
.cli *, .cli *::before, .cli *::after { animation: none !important; }
.cli-l { opacity: 1 !important; transform: none !important; transition: none; }
.cli-cut-l, .cli-win-l, .cli-three-c s::after, .cli-blk { transform: none !important; clip-path: none !important; transition: none !important; }
.cli-three-c .cli-caret { opacity: 0; }
}
@media (max-width: 899px) {
.cli-hero { padding: 66px 8px 8px; }
.cli-term { min-height: calc(100svh - 74px); border-radius: 24px; }
.cli-bar { height: 52px; gap: 12px; padding: 0 8px 0 14px; }
.cli-dots { gap: 6px; }
.cli-dots i { width: 10px; height: 10px; }
.cli-tabs a { height: 44px; line-height: 44px; padding: 0 12px; }
.cli-bar .cli-ctl { margin-left: auto; }
.cli-body { display: flex; flex-direction: column; gap: 22px; padding: 22px 18px 24px; }
.cli-h1 { order: 0; }
.cli-body > * { align-self: stretch; min-width: 0; }
.cli-inst { min-width: 0; }
.cli-sess { order: 1; }
.cli-lede { order: 2; padding: 0; font-size: 17px; line-height: 1.5; }
.cli-acts { order: 3; gap: 16px; }
.cli-open { order: 4; }
.cli-acts-row { gap: 4px 20px; }
.cli-lines { font-size: 15px; letter-spacing: -.01em; }
.cli-inst code { font-size: 14px; }
.cli-status { padding: 16px 18px; font-size: 14px; }
.cli-status p { align-items: flex-start; }
.cli-status p::before { margin-top: 7px; }
.cli-paste { padding: 56px 0; }
.cli-cmp { height: 380px; margin-top: 36px; border-radius: 24px; }
.cli-cmp-a, .cli-cmp-b { padding: 22px 16px; }
.cli-cmp-k { top: 14px; }
.cli-cmp-a .cli-cmp-k { left: 16px; } .cli-cmp-b .cli-cmp-k { right: 16px; }
.cli-cmp-pile { font-size: 13px; gap: 4px 8px; }
.cli-cmp-tree { font-size: 14px; line-height: 1.8; }
.cli-cmp-tree .l { display: none; }
.cli-cmp-tree b { min-width: 0; }
.cli-paste .av-grid { row-gap: 24px; }
.cli-paste-r { order: -1; }
.cli-prompt { grid-template-columns: minmax(0, 1fr); }
.cli-prompt code { font-size: 18px; }
.cli-prompt .x-copy { justify-self: start; }
.cli-prompt-k { font-size: 14px; }
.cli-what-top { grid-template-columns: minmax(0, 1fr); }
.cli-what-top > * { grid-column: 1 / -1 !important; }
.cli-fs { margin-top: 48px; border-radius: 24px; }
.cli-fs-bar { height: 56px; padding: 0 16px; }
.cli-crumb { font-size: 14px; }
.cli-fs-k { display: none; }
.cli-fs-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: 300px 380px; height: auto; }
.cli-out { order: -1; height: 300px; padding: 22px 18px; gap: 16px; border-bottom: 1px solid var(--line); }
.cli-print { gap: 14px; justify-content: flex-start; }
.cli-cmd { font-size: 22px; }
.cli-what { font-size: 15px; }
.cli-tree { height: 380px; border-right: 0; padding: 10px 8px 16px; }
.cli-n { font-size: 14px; }
.cli-three { margin-top: 96px; }
.cli-three li { grid-template-columns: minmax(0, 1fr); row-gap: 12px; padding: 28px 0 32px; }
.cli-three li > * { grid-column: 1 !important; grid-row: auto !important; }
.cli-three-c { min-height: 84px; padding: 16px 18px; font-size: 21px; }
.cli-status { flex-direction: column; align-items: flex-start; gap: 6px; }
.cli-who { display: block; margin-left: 0; font-size: 13px; }
.cli-three-n { font-size: 14px; }
.cli-caps-r { justify-content: flex-start; }
.cli-arrows { display: none; }
.cli-rail { --pad: 16px; gap: 12px; margin-top: 36px; }
.cli-cap { flex-basis: min(84vw, 360px); min-height: 0; }
.cli-cap-cmd { min-height: 72px; margin-bottom: 12px; }
.cli-cap-cmd code { font-size: 17px; }
.cli-cap-n { font-size: 14px; }
.cli-start-l { display: contents; }
.cli-start-l > * { order: 0; }
.cli-script { order: 1; }
.cli-add { order: 2; margin-top: 0; }
.cli-add-c { font-size: 14px; }
.cli-script-bar { padding: 0 8px 0 16px; gap: 10px; }
.cli-script-bar .x-mono { font-size: 14px; }
.cli-script-n { display: none; }
.cli-blk { grid-template-columns: 40px minmax(0, 1fr) auto; padding-right: 8px; }
.cli-blk-n { font-size: 14px; }
.cli .cli-blk-cp { width: 44px; padding: 0; justify-content: center; }
.cli .cli-blk-cp .x-copy-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cli-blk pre { font-size: 14px; }
.cli-repo { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'h' 'dl' 'a'; gap: 24px; border-radius: 24px; }
.cli-rel { min-height: 64px; font-size: 21px; }
.cli .cli-band { padding: 44px 0 27px; margin-top: 44px; }
.cli .cli-band h2.cli-band-h { font-size: 32px; }
.cli .cli-band p.av-lede { font-size: 17px; }
.cli-places { margin-top: 64px; }
.cli-places li { min-height: 68px; }
.cli-place-k { font-size: 17px; }
.cli-place-t { font-size: 15px; }
}
/* dark: the selected tab's text sits on a sibling motion pill; its label carries the pill's own colour (after the pill has slid in) so the ancestor walk sees what the eye sees. Light untouched. */
html:not(.light) .cli-leaf.on > span:not(.cli-leaf-bg) { background: var(--ink); transition: background-color 0s .3s; }
@media (hover: hover) { html:not(.light) .cli-leaf.on:hover > span:not(.cli-leaf-bg) { background: var(--primary); } }