Files
Claude 08f9a6c7ed dark tokens: /affiliate, /models, /benchmarks, /open-source, /oss, /research, /zen/models, /authz, /chat, /integrations, /sdks, /studio
- /affiliate had no dark rules: its #0a0a0b text and fills were black on black. Now on
  Hanzo's tokens (--ink, --soft, --primary/--primary-foreground chips, --x-raised/--muted
  cards); the black request bar stays black.
- /models: the selected tab in the always-black 'Try any model' console was white on
  white; it now uses --primary-foreground on the pill's own fill.
- The rest: selected tabs and chips whose light pill is a sibling element; the selected
  element now carries the pill's colour in dark. Gradient-text names (/oss, /research)
  declare the colour actually shown.
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:06:19 +00:00

302 lines
28 KiB
CSS

/* ---------- integrations index (MASTER: Catalogue, on ProofRhythm). Own prefix xii-, so the /integrations/* guides' integrations.css is untouched. ---------- */
.xii { --e-out: cubic-bezier(0, 0, .2, 1); --e-io: cubic-bezier(.4, 0, .2, 1); --e-emph: cubic-bezier(.16, 1, .3, 1); --hair: var(--x-e10); }
.xii a:not(.pf-btn) { color: inherit; }
.xii-in { animation: xii-in 500ms var(--e-emph) both; animation-delay: calc(120ms + var(--i) * 60ms); }
@keyframes xii-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
/* the pause control on everything that moves by itself (MASTER part 12) */
.xii-pause { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: light-dark(#f2f2f2, var(--muted)); color: var(--ink); cursor: pointer; transition: background-color 150ms var(--e-out), transform 90ms var(--e-out); }
@media (hover: hover) { .xii-pause:hover { background: light-dark(#e4e4e7, var(--secondary)); } }
.xii-pause:active { transform: scale(.97); }
.xii-pause[aria-pressed='true'] { background: var(--ink); color: var(--x-on-ink); }
.xii-pause:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 4px var(--bg); }
.xii-pause.dark { flex: none; background: rgba(255, 255, 255, .1); color: #fafafa; }
@media (hover: hover) { .xii-pause.dark:hover { background: rgba(255, 255, 255, .2); } }
.xii-pause.dark[aria-pressed='true'] { background: #fafafa; color: #0a0a0a; }
.xii-pause.dark:focus-visible { outline-color: #ffffff; box-shadow: 0 0 0 4px #000000; }
/* hero: the hub, with the count as the one big figure */
.xii-hero { padding: clamp(96px, 8vw, 116px) 0 clamp(44px, 5vw, 72px); overflow: hidden; }
/* dark: live hanzo.ai's heroes carry a halftone dot field in dark, densest at the edges; light mode draws nothing here */
html:not(.light) .xii-hero { position: relative; isolation: isolate; }
html:not(.light) .xii-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle, var(--border-strong) 1px, transparent 1.6px) 0 0 / 5px 5px; -webkit-mask-image: radial-gradient(ellipse 75% 70% at 45% 45%, transparent 35%, #000 100%); mask-image: radial-gradient(ellipse 75% 70% at 45% 45%, transparent 35%, #000 100%); }
.xii-hero-g { align-items: center; min-height: calc(100svh - 280px); }
.xii-hero-a { grid-column: 1 / span 6; }
.xii-h1 { max-width: 12ch; }
.xii-h1-l { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.xii-h1-l > span { display: inline-block; animation: xii-h1 700ms var(--e-emph) both; animation-delay: calc(60ms + var(--i) * 60ms); }
@keyframes xii-h1 { from { transform: translate3d(0, 105%, 0); } }
/* scale rhythm in the catalogue: the first guide of each family is a wide card, the rest pack around it */
.xii-grid { grid-auto-flow: row; }
/* the open card: the card's own box grows into the sheet (shared layout), 600 ms in-out */
.xii-card { isolation: isolate; }
.xii-card-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.xii-open { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; }
.xii-open-scrim { position: absolute; inset: 0; border: 0; background: rgba(0, 0, 0, .32); cursor: default; }
.xii-open-card { position: relative; width: min(880px, 100%); max-height: calc(100dvh - 48px); overflow: auto; background: var(--x-raised); box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .18); overscroll-behavior: contain; }
.xii-open-in { display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 3.4vw, 44px); }
.xii-open-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 17px; }
.xii-open-e { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: light-dark(#f5f5f5, var(--muted)); color: var(--ink); font: 497 21px/1 var(--sans); }
.xii-open-e .xlg { width: 28px; height: 28px; }
.xii-open-h h3 { margin: 0; font-size: 32px; font-weight: 497; letter-spacing: -.02em; line-height: 1.1; }
.xii-open-k { margin: 6px 0 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: light-dark(#525252, var(--muted-foreground)); }
.xii-open-x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: light-dark(#f5f5f5, var(--muted)); color: var(--ink); cursor: pointer; transition: background-color 150ms var(--e-out), transform 90ms var(--e-out); }
@media (hover: hover) { .xii-open-x:hover { background: light-dark(#e4e4e7, var(--secondary)); } }
.xii-open-x:active { transform: scale(.97); }
.xii-open-x:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.xii-open-d { margin: 0; max-width: 62ch; font-size: 17px; line-height: 1.55; color: light-dark(#525252, var(--muted-foreground)); }
.xii-open-code { border-radius: 16px; background: #171717; color: #fafafa; overflow: hidden; }
.xii-open-cap { display: flex; justify-content: space-between; gap: 17px; margin: 0; padding: 12px 17px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: #a3a3a3; }
.xii-open-code .xii-code { padding: 17px 17px 17px 0; font-size: 14px; max-height: 340px; overflow: auto; }
.xii-open-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 899px) {
.xii-open { place-items: end center; padding: 0; }
.xii-open-card { width: 100%; max-height: 90dvh; border-radius: 24px 24px 0 0 !important; }
.xii-open-h h3 { font-size: 26px; }
.xii-open-go { align-self: stretch; justify-content: center; }
.xii-open-code .xii-code { font-size: 13px; }
}
/* ---------- the five entrances (MOTION-MAP /integrations, in page order), page-local ---------- */
@media (prefers-reduced-motion: no-preference) {
/* 1. explode-gather: the hub's marks start flung out from their places and are pulled into the ring (the ring's own
placement is `transform`; the gather is the separate `translate` property, so the two compose) */
.xii-ring li { animation: xii-gather 1100ms cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(150ms + var(--i, 0) * 25ms); }
@keyframes xii-gather { from { translate: var(--ex, 0) var(--ey, 0); opacity: 0; } }
.xii-hub-c { animation: xii-core 700ms cubic-bezier(.16, 1, .3, 1) backwards 600ms; }
@keyframes xii-core { from { scale: .6; opacity: 0; } }
/* 2. pixel-resolve: coarse blocks of the editor's own colour clear one by one, scattered, over about 0.8 s */
.xii-px { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: repeat(14, 1fr); grid-template-rows: repeat(6, 1fr); pointer-events: none; }
.xii-px i { background: #171717; animation: xii-px 1ms steps(1, end) forwards; animation-delay: var(--d, 0ms); }
@keyframes xii-px { to { opacity: 0; } }
html.js .xii-px:not([data-in]) i { animation-play-state: paused; }
/* 3. orbit-in: each card swings into its place on a curve, as if on an orbit around a point below the track */
.xii-grid > li > .xii-card { animation: xii-orbit 900ms cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(var(--k, 0) * 55ms); transform-origin: 50% 260%; }
@keyframes xii-orbit { from { opacity: 0; rotate: -24deg; } 60% { opacity: 1; } }
html.js .xii-grid:not([data-in]) > li > .xii-card { animation-play-state: paused; }
/* 4. typewriter: the room's heading types itself with a blinking caret (the letters come from the page's script) */
.xii-tw-c { display: inline-block; width: 2px; height: .9em; margin-left: 3px; vertical-align: -.08em; background: #fafafa; opacity: 0; }
.xii-tw-c.on { opacity: 1; animation: xii-blink 900ms steps(1, end) infinite; }
@keyframes xii-blink { 50% { opacity: 0; } }
}
.xii-px { display: none; }
@media (prefers-reduced-motion: no-preference) { html.js .xii-px { display: grid; } }
.xii-win { position: relative; }
/* 5. cursor-lens: a round lens over the prompt, magnifying what is under it (1.6x); it sweeps once on arrival, then
follows a mouse; it is never in the way (no pointer events) and is absent on touch and with reduced motion */
.xii-prompt-b { position: relative; }
.xii-lens { position: absolute; inset: 0; pointer-events: none; clip-path: circle(0 at var(--lx, 50%) var(--ly, 50%)); transition: clip-path 200ms cubic-bezier(0, 0, .2, 1); background: #262626; }
.xii-lens[data-on] { clip-path: circle(64px at var(--lx, 50%) var(--ly, 50%)); }
.xii-lens-in { transform: scale(1.6); transform-origin: var(--lx, 50%) var(--ly, 50%); }
.xii-lens-in pre { pointer-events: none; }
@media (prefers-reduced-motion: reduce), (hover: none) { .xii-lens { display: none; } }
/* ---------- the signature: h-gallery. On a desktop the catalogue pins under the header and the scroll drives the
track sideways (its height is the track's overflow plus one screen) ---------- */
.xii-hg[data-on] { height: calc(var(--dist, 0px) + 100svh); }
.xii-hg[data-on] .xii-hg-pin { position: sticky; top: 116px; height: calc(100svh - 116px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.xii-hg[data-on] .xii-chips { margin-bottom: 27px; }
.xii-hg[data-on] .xii-hg-view { padding-left: max(clamp(16px, 4vw, 32px), calc((100vw - 1152px) / 2)); }
.xii-hg[data-on] .xii-grid { display: flex; width: max-content; gap: 12px; padding-right: 72px; }
.xii-hg[data-on] .xii-grid > li { width: 300px; flex: none; }
.xii-hg[data-on] .xii-grid > li.wide { width: 460px; }
.xii-hg[data-on] .xii-card { min-height: min(368px, 46svh); }
/* while the track is pinned, the stage is the only space around it: no section padding above or below, and the dark
room rises over the stage's last 40px, so there is no empty band before or after the catalogue */
.pf-r .pf-sec.xii-cat.hg { padding-top: 0; padding-bottom: 0; }
.xii-cat.hg + .xii-paste, .xii-after:has(.xii-cat.hg) + .xii-paste { position: relative; z-index: 1; margin-top: -40px; border-radius: 24px 24px 0 0; }
.xii-hg-view { overflow: visible; }
/* the closing room: plain black (no scroll-scrubbed wipe, MOTION-MAP rule 3) */
.xii-paste { background: #000000; color: #fafafa; }
.xii-grid > li.wide { grid-column: span 2; }
.xii-grid > li.wide .xii-card-n { font-size: 26px; }
.xii-grid > li.wide .xii-card-d { max-width: 44ch; }
/* the narrow cards keep their sentence for the hover: it rises into its own reserved two lines (the card never resizes) */
@media (hover: hover) and (min-width: 900px) {
.xii-grid > li:not(.wide) .xii-card-d { opacity: 0; transform: translate3d(0, 6px, 0); transition: opacity 150ms var(--e-out), transform 300ms var(--e-emph); }
.xii-grid > li:not(.wide) .xii-card:hover .xii-card-d, .xii-grid > li:not(.wide) .xii-card:focus-visible .xii-card-d { opacity: 1; transform: none; }
}
.xii-lede { margin-top: 17px; }
html:not(.light) .xii .xii-lede { color: var(--muted-foreground); } /* page-scoped: the shared .pf-lede grey (ProofRhythm.css) is light-only */
.xii-lede code { padding: 2px 8px; border-radius: 6px; background: light-dark(#f2f2f2, var(--muted)); color: var(--ink); font: 400 .85em/1.4 var(--mono); white-space: nowrap; }
.xii-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 17px 27px; margin-top: 27px; }
.xii-acts .x-arrow { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.xii-hero-b { grid-column: 7 / span 6; }
.xii-hub { --r: clamp(140px, 13.5vw, 205px); position: relative; width: calc(var(--r) * 2 + 96px); max-width: 100%; aspect-ratio: 1; margin-left: auto; }
.xii-hub::before { content: ''; position: absolute; inset: 48px; border-radius: 50%; border: 1px solid var(--hair); }
.xii-hub::after { content: ''; position: absolute; inset: calc(48px + var(--r) * .32); border-radius: 50%; border: 1px dashed light-dark(rgba(0, 0, 0, .14), var(--border-control)); }
.xii-hub > .xii-pause { position: absolute; right: 0; bottom: 0; z-index: 2; }
.xii-hub-c { position: absolute; inset: 0; margin: auto; z-index: 1; width: 48%; height: 48%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 17px; box-sizing: border-box; text-align: center; background: light-dark(#0a0a0a, var(--x-raised)); color: #fafafa; }
.xii-hub-u { font-size: 12px; color: #a3a3a3; overflow-wrap: anywhere; }
.xii-hub-k { color: #fafafa; }
.xii-hub-n { font-size: 21px; font-weight: 497; line-height: 1.2; }
.xii-hub-t { font-size: 12px; color: rgba(255, 255, 255, .55); }
.xii-ring { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; animation: xii-spin 90s linear infinite; }
.xii-ring li { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))); }
.xii-sat { position: absolute; left: -27px; top: -27px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--x-raised); color: var(--ink); font: 497 17px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; animation: xii-spin 90s linear infinite reverse; transition: background-color 150ms var(--e-out), color 150ms var(--e-out); }
@media (hover: hover) { .xii .xii-sat:hover { background: var(--ink); color: light-dark(#fafafa, var(--primary-foreground)); } }
.xii .xii-sat:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; background: var(--ink); color: light-dark(#fafafa, var(--primary-foreground)); }
.xii-hub.held .xii-ring, .xii-hub.held .xii-sat { animation-play-state: paused; }
@keyframes xii-spin { to { transform: rotate(360deg); } }
/* the sticky local band (in-page, opaque, under Hanzo's header) */
.xii-local { position: sticky; top: 60px; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--hair); }
.xii-local-in { display: flex; align-items: center; gap: 14px; min-height: 56px; }
.xii-local-t { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.xii-local-n { margin-left: auto; font-size: 12px; color: light-dark(#525252, var(--muted-foreground)); }
.xii-mini { position: relative; width: 22px; height: 22px; animation: xii-spin 24s linear infinite; }
.xii-mini i { position: absolute; left: 50%; top: 50%; width: 2px; height: 2px; margin: -1px; border-radius: 50%; background: var(--ink); transform: rotate(var(--a)) translateX(10px); }
.xii-mini.held { animation-play-state: paused; }
/* the starter: a big editor, the code as the object */
.xii-start { padding-top: 44px; }
.pf-r .pf-sec.tight.xii-start { padding: 44px 0 0; } /* the catalogue's own top space is the only gap after the editor */
.xii-win { overflow: hidden; border-radius: 24px; background: #171717; color: #fafafa; }
.xii-win-h { display: flex; align-items: center; gap: 17px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.xii-tabs { display: flex; gap: 4px; margin-right: auto; }
.xii-tabs button { position: relative; min-height: 44px; padding: 0 17px; border: 0; border-radius: 12px; background: none; color: rgba(255, 255, 255, .55); font: 606 14px/1 var(--sans); cursor: pointer; overflow: hidden; transition: color 150ms var(--e-out), background-color 150ms var(--e-out), transform 90ms var(--e-out); }
@media (hover: hover) { .xii-tabs button:hover { color: #fafafa; background: rgba(255, 255, 255, .06); } }
.xii-tabs button:active { transform: scale(.97); }
.xii-tabs button[aria-selected='true'] { background: rgba(255, 255, 255, .1); color: #fafafa; }
.xii-tabs button:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.xii-tab-t { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .78); transform-origin: 0 50%; animation: xii-tab 4200ms linear both; }
@keyframes xii-tab { from { transform: scaleX(0); } }
.xii .x-copy.xii-copy { height: 44px; padding: 0 17px; background: rgba(255, 255, 255, .1); border-color: transparent; color: #fafafa; font-size: 14px; transition: background-color 150ms var(--e-out); }
@media (hover: hover) { .xii .x-copy.xii-copy:hover { background: rgba(255, 255, 255, .2); } }
.xii-win-b { padding: 27px 0 27px; min-height: 260px; }
.xii-code { margin: 0; padding: 0 27px 0 0; overflow-x: auto; font: 400 16px/1.65 var(--mono); }
.xii-code:focus-visible { outline: 2px solid #ffffff; outline-offset: -2px; }
.xii-ln { display: block; padding-left: 17px; border-left: 2px solid transparent; animation: xii-ln 300ms var(--e-emph) both; animation-delay: calc(var(--j) * 60ms); }
.xii-ln.hz { background: rgba(255, 255, 255, .06); border-left-color: rgba(255, 255, 255, .78); }
@keyframes xii-ln { from { opacity: 0; transform: translate3d(-8px, 0, 0); } }
.xii-no { display: inline-block; width: 44px; color: rgba(255, 255, 255, .3); user-select: none; }
.xii-code .c-keyword { color: #ffffff; font-weight: 606; } .xii-code .c-string { color: rgba(255, 255, 255, .78); } .xii-code .c-key { color: rgba(255, 255, 255, .92); } .xii-code .c-bright { color: #ffffff; }
.xii-code .c-punctuation { color: rgba(255, 255, 255, .55); } .xii-code .c-comment { color: rgba(255, 255, 255, .55); } .xii-code .c-number { color: rgba(255, 255, 255, .8); } .xii-code .c-ink { color: rgba(255, 255, 255, .78); }
.xii-win-f { display: flex; justify-content: space-between; gap: 17px; padding: 10px 17px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: #a3a3a3; }
/* the catalogue: chips that re-flow, numbered cards that open */
.pf-r .pf-sec.xii-cat { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(72px, 8vw, 116px); }
.xii-cat-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 27px; flex-wrap: wrap; }
.xii-find { display: flex; align-items: center; gap: 10px; width: min(420px, 100%); min-height: 56px; padding: 0 17px; border-radius: 999px; background: light-dark(#f2f2f2, var(--muted)); color: light-dark(#525252, var(--muted-foreground)); box-sizing: border-box; transition: background-color 150ms var(--e-out), box-shadow 150ms var(--e-out); }
.xii-find:focus-within { background: var(--x-raised); box-shadow: 0 0 0 2px var(--ink); }
.xii-find input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 400 16px/1 var(--sans); color: var(--ink); }
.xii-find input::placeholder { color: light-dark(#737373, var(--text-tertiary)); }
.xii-find input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.xii-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 27px 0 44px; }
.xii-chips button { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 17px; border: 0; border-radius: 999px; background: light-dark(#f2f2f2, var(--muted)); color: var(--ink); font: 606 14px/1 var(--sans); cursor: pointer; transition: color 150ms var(--e-out), background-color 150ms var(--e-out), transform 90ms var(--e-out); }
.xii-chips button > span:not(.xii-chip-bg) { position: relative; }
.xii-chips button .pf-mono { font-size: 12px; font-weight: 400; color: light-dark(#737373, var(--text-tertiary)); transition: color 150ms var(--e-out); }
@media (hover: hover) { .xii-chips button:hover:not([aria-selected='true']):not(:disabled) { background: light-dark(#e4e4e7, var(--secondary)); } }
.xii-chips button:active:not(:disabled) { transform: scale(.97); }
.xii-chips button[aria-selected='true'] { color: var(--x-on-ink); background: transparent; }
.xii-chips button[aria-selected='true'] .pf-mono { color: light-dark(rgba(255, 255, 255, .55), rgba(10, 10, 10, .55)); }
.xii-chips button:disabled { color: light-dark(#737373, var(--text-tertiary)); background: light-dark(#f7f7f7, var(--surface-card-quiet)); cursor: default; }
.xii-chips button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 4px var(--bg); }
.xii-chip-bg { position: absolute; inset: 0; border-radius: 999px; background: var(--ink); }
.xii-none { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 17px; margin: 0 0 27px; padding: 27px 0; font-size: 16px; color: light-dark(#525252, var(--muted-foreground)); }
.xii-none p { margin: 0; }
.xii-none-a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 17px; border: 0; border-radius: 999px; background: var(--ink); color: var(--x-on-ink); font: 606 14px/1 var(--sans); cursor: pointer; transition: background-color 150ms var(--e-out), transform 90ms var(--e-out); }
.xii-none-a .pf-mono { font-size: 12px; font-weight: 400; color: light-dark(rgba(255, 255, 255, .55), rgba(10, 10, 10, .55)); }
@media (hover: hover) { .xii-none-a:hover { background: light-dark(#262626, var(--primary)); } }
.xii-none-a:active { transform: scale(.98); }
.xii-none-a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 4px var(--bg); }
.xii-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.xii-grid li[hidden] { display: none; }
.xii-card { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; height: 100%; min-height: 220px; box-sizing: border-box; padding: 24px; border-radius: 24px; background: light-dark(#f5f5f5, var(--x-raised)); text-decoration: none; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 150ms var(--e-out), background-color 150ms var(--e-out); }
@media (hover: hover) { .xii-card:hover { background: light-dark(#ededed, var(--muted)); } .xii-card:hover .xii-card-go { background: var(--ink); color: var(--x-on-ink); } }
.xii-card:active { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(.97); transition-duration: 90ms; }
.xii-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* on a desktop the card is its number and its name (the ring above already carries every mark); the mark is kept small
(16px) everywhere so the card's title stays its largest words, the ones that fly into the guide's headline */
.xii-card-e { display: grid; place-items: start; width: 28px; height: 28px; color: var(--ink); font: 497 16px/28px var(--sans); letter-spacing: -.01em; transition: transform 300ms var(--e-emph); }
.xii-card-e .xlg { width: 28px; height: 28px; }
@media (hover: hover) { .xii-card:hover .xii-card-e { transform: translate3d(0, -2px, 0); } }
.xii-sat .xlg { width: 24px; height: 24px; }
.xii-sat .xlg-t { font: 497 16px/1 var(--sans); }
.xii-card-fam { position: absolute; top: 27px; right: 24px; font-size: 12px; color: light-dark(#737373, var(--text-tertiary)); }
.xii-card-n { margin-top: 10px; font-size: 21px; font-weight: 497; line-height: 1.2; color: var(--ink); }
.xii-card-d { font-size: 14px; line-height: 1.5; color: light-dark(#525252, var(--muted-foreground)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; align-self: start; }
.xii-card-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 17px; border-top: 1px solid var(--hair); }
.xii-card-f .pf-mono { font-size: 12px; color: light-dark(#525252, var(--muted-foreground)); }
.xii-card-go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: light-dark(#e4e4e7, var(--secondary)); color: var(--ink); transition: background-color 150ms var(--e-out), color 150ms var(--e-out), transform 150ms var(--e-out); }
/* paste and ship: the closing black room, with the one ask */
.xii-paste-h { color: #fafafa; }
.xii-paste-a { grid-column: 1 / span 5; align-self: center; }
.xii .xii-paste-l { margin-top: 17px; color: rgba(255, 255, 255, .78); max-width: 34ch; }
.xii-band-ask { margin-top: 27px; background: #fafafa; border-color: #fafafa; color: #0a0a0a !important; }
@media (hover: hover) { .xii-band-ask:hover { background: #e4e4e7; border-color: #e4e4e7; } }
.xii-band-ask:active { transform: scale(.98); }
.xii-band-ask:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 4px #000000; }
.xii-prompt { grid-column: 7 / span 6; align-self: center; border-radius: 24px; background: #171717; overflow: hidden; }
.xii-prompt-h { display: flex; align-items: center; justify-content: space-between; gap: 17px; padding: 10px 10px 10px 24px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: #a3a3a3; }
.xii-prompt pre { margin: 0; padding: 27px 24px 44px; white-space: pre-wrap; font: 400 17px/1.65 var(--mono); color: #fafafa; }
.xii-prompt pre:focus-visible { outline: 2px solid #ffffff; outline-offset: -2px; }
.xii-caret { margin-right: 10px; color: rgba(255, 255, 255, .55); }
@media (max-width: 1199px) {
.xii-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
.xii-hero { padding: 104px 0 72px; }
.xii-hero-g { min-height: 0; }
.xii-hero-a, .xii-hero-b { grid-column: 1 / -1; }
.xii-hero-b { margin-top: 44px; }
.xii-acts .pf-btn { flex: 1 1 100%; }
.xii-hub { --r: min(148px, 39vw); width: calc(var(--r) * 2 + 48px); margin-inline: auto; }
.xii-hub::before { inset: 24px; }
.xii-hub::after { inset: calc(24px + var(--r) * .32); }
/* 19 badges on a 146px ring leave ~48px each: draw them at 36px so none touch; on a phone the ring is a picture
(the same 19 guides are full-size cards just below), so its badges take no taps */
.xii-sat { width: 36px; height: 36px; left: -18px; top: -18px; font-size: 13px; pointer-events: none; }
.xii-hub-n { font-size: 17px; }
.xii-hub-t { font-size: 13px; }
.xii-win-h { flex-wrap: wrap; gap: 6px; padding: 10px 12px; }
.xii-tabs button { padding: 0 12px; }
.xii-win-b { padding: 17px 0 24px; min-height: 0; }
/* lines keep their shape (an indent never strands a comma on its own row); a line longer than the window scrolls
inside it, and its right edge fades so it reads as "more", never as cut */
.xii-code { font-size: 13px; padding-right: 0; white-space: pre; -webkit-mask-image: linear-gradient(to left, transparent 0, #000 24px); mask-image: linear-gradient(to left, transparent 0, #000 24px); }
.xii-code code { display: block; min-width: max-content; padding-right: 24px; }
.xii-ln { padding-left: 12px; }
.xii-no { width: 24px; }
.xii-win-f { font-size: 13px; padding: 10px 14px; }
.xii-chips { flex-wrap: nowrap; overflow-x: auto; margin: 27px -16px 27px; padding: 2px 16px; scrollbar-width: none; }
.xii-chips::-webkit-scrollbar { display: none; }
.xii-chips button { flex: none; }
.xii-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.xii-grid > li.wide { grid-column: auto; }
/* phone catalogue: 72px list rows (MASTER part 15); the full sentence is one tap away, on the guide */
.xii-grid { gap: 6px; }
.xii-card { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 2px; align-items: center; min-height: 72px; padding: 12px 14px; border-radius: 16px; transform: none; }
.xii-card-e { display: grid; place-items: center; grid-row: 1 / 4; width: 44px; height: 44px; line-height: 1; }
.xii-card-e .xlg { width: 22px; height: 22px; }
.xii-sat .xlg { width: 17px; height: 17px; }
.xii-card-fam, .xii-card-d:empty { display: none; }
.xii-card-d { grid-column: 2; grid-row: 2; -webkit-line-clamp: 1; font-size: 14px; line-height: 1.4; }
.xii-card-n, .xii-grid > li.wide .xii-card-n { grid-column: 2; grid-row: 1; margin: 0; font-size: 17px; }
.xii-card-f { display: contents; }
.xii-card-f .pf-mono { grid-column: 2; grid-row: 3; font-size: 13px; }
.xii-card-go { grid-column: 3; grid-row: 1 / 4; }
.xii-paste-a, .xii-prompt { grid-column: 1 / -1; }
.xii-band-ask { width: 100%; }
.xii-prompt { margin-top: 44px; }
.xii-prompt pre { font-size: 15px; padding: 24px 20px 27px; }
.xii-prompt-h { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
.xii-ring, .xii-sat, .xii-in, .xii-ln, .xii-tab-t, .xii-mini, .xii-h1-l > span { animation: none; }
.xii-card { transition: none; }
}
/* pressed: the arrow chip goes solid ink as the card presses (never a flat grey) */
.xii-card:active .xii-card-go { background: var(--ink); color: var(--x-on-ink); transform: scale(.97); transition-duration: 90ms; }
/* dark: the surfaces that are a black or near-black fill in light mode take live's white-10% hairline in dark */
html:not(.light) .xii-card { box-shadow: inset 0 0 0 1px var(--border); }
html:not(.light) .xii-hub-c, html:not(.light) .xii-win { box-shadow: 0 0 0 1px var(--border); }
html:not(.light) .xii-open-card { box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .18), 0 0 0 1px var(--border); }
/* dark: the selected chip carries its own ink fill (same colour as the sliding pill behind it) */
html:not(.light) .xii-chips button[aria-selected='true'] { background: var(--ink); }