Files
Claude 4cbacdc4ea models, enso: dark mode on Hanzo's tokens (and shared fixes found on the way)
/models and /enso (cherry-picked onto this branch from claude/owner-ga-fixes-544845, where the
conductor confirmed copycheck missing 0 live) now read in dark: the page palettes (.xmo, Launch,
Enso, ModelCards) point at @hanzo/design tokens under html:not(.light); the "Use it now" button,
the code panel's live dot, caret and tab, and the switchboard's lit pills stay white on black in
both modes, as designed. darkcheck: /enso 0; /models 4, all a sibling fill behind selected chips or
the code panel's white tab (checked by eye).

Shared fixes: the .x-band / .x-modal solid buttons and the lit lane stay #f5f5f7 on black; dark
contexts written as [data-room='dark'] or .w2-dark/.lx-dark are left alone; white chips with fixed
dark text (selected .mb-chip, the pause buttons, sheet close buttons, segmented pills) keep their
white so their text stays readable.

Bright mode: lightcheck 0 diffs on /enso /kai /iro /payments /dev /api / vs 3c802582 (/models' one
diff is the earlier "11 ยท Suites won" line). 0 console errors, no sideways scroll at 1470x801 and
375x812 in both modes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P5YBdxPteCvBL7f74SauJt
2026-11-08 11:23:40 +00:00

52 lines
3.8 KiB
CSS

/* v2 type for the Apps launch pages (/chat, /dev, /agents). Owner: the Apps chat. MASTER.md 3.1 "Scale has rhythm":
resting sizes follow live hanzo.ai (h1 52px, section headings 26px, figures 64px); one big thing per screen, and a
thing grows past its resting size only while it is the moment. Weights: Book 497 for headings. Deck greys only. */
.v2a-lines { margin: 0; text-wrap: balance; }
.v2a-line { display: block; overflow: hidden; padding: .06em 0 .12em; margin: -.06em 0 -.12em; }
.v2a-line-in { display: block; }
.v2a-line.soft { color: #737373; }
/* h1: 52px at rest (40px on phones) */
.v2a-display { font-size: clamp(2.5rem, 3.6vw, 3.25rem); font-weight: 497; line-height: 1.04; letter-spacing: -.035em; color: #0a0a0a; }
/* a heading that is the moment of its screen: 44px, or 32px */
.v2a-display.md { font-size: clamp(2rem, 3vw, 2.75rem); }
.v2a-display.sm { font-size: clamp(1.625rem, 2.2vw, 2rem); }
/* section headings: 26px at rest */
.v2a-head { font-size: 1.625rem; font-weight: 497; line-height: 1.18; letter-spacing: -.022em; color: #0a0a0a; }
.v2a-title { font-size: 1.0625rem; font-weight: 497; line-height: 1.35; letter-spacing: -.01em; color: #0a0a0a; margin: 0; }
.v2a-lede { font-size: clamp(1.1875rem, 1.45vw, 1.3125rem); line-height: 1.45; letter-spacing: -.01em; color: #525252; margin: 0; max-width: 40ch; text-wrap: pretty; }
.v2a-body { font-size: 1rem; line-height: 1.6; color: #525252; margin: 0; max-width: 64ch; text-wrap: pretty; }
.v2a-kick { margin: 0 0 16px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #737373; }
/* a section's own label, set BELOW its heading as a caption (MASTER part 7: never above an h1 or h2) */
.v2a-folio { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #737373; }
.v2a-folio::before { content: ''; width: 24px; height: 1px; background: currentColor; opacity: .6; }
[data-room='dark'] .v2a-folio { color: #a3a3a3; }
.v2a-fig { font-family: var(--sans); font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; font-weight: 220; letter-spacing: -.04em; line-height: .9; }
/* the grid: 1152 container, golden gutter */
.v2a-wrap { width: min(100% - 2 * clamp(16px, 4vw, 32px), 1280px); margin-inline: auto; }
.v2a-grid { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); column-gap: 24px; }
.v2a-sec { padding: clamp(72px, 11vw, 188px) 0; position: relative; }
@media (max-width: 899px) {
.v2a-display { font-size: 2.5rem; }
.v2a-display.md { font-size: 2rem; }
.v2a-display.sm { font-size: 1.625rem; }
.v2a-head { font-size: 1.5rem; }
.v2a-lede { font-size: 1.1875rem; }
.v2a-grid { grid-template-columns: minmax(0, 1fr); }
.v2a-grid > * { grid-column: 1 / -1 !important; }
.v2a-folio { margin-top: 14px; }
}
/* AppDemo's control (components/v2/AppDemo.jsx): a 44px icon button */
.v2a-demo-ctl { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--x-e10); background: #fff; color: #0a0a0a; cursor: pointer; transition: background-color .15s cubic-bezier(0, 0, .2, 1), border-color .15s cubic-bezier(0, 0, .2, 1), transform .09s cubic-bezier(0, 0, .2, 1); }
.v2a-demo-ctl:active { transform: scale(.97); }
.v2a-demo-ctl:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; box-shadow: 0 0 0 4px #fff; }
.v2a-demo-ctl.dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fafafa; }
.v2a-demo-ctl.dark:focus-visible { outline-color: #fafafa; box-shadow: 0 0 0 4px #000; }
@media (hover: hover) {
.v2a-demo-ctl:hover { background: light-dark(#f5f5f5, var(--muted)); border-color: rgba(0, 0, 0, .3); }
.v2a-demo-ctl.dark:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
}