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

24 lines
2.1 KiB
CSS

/* SheetDrawer (owner: Cloud 2 chat). See SheetDrawer.jsx. */
html.sd-lock { overflow: hidden; }
.sd { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.sd[data-open] { pointer-events: auto; }
.sd-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .32); opacity: 0; transition: opacity .35s cubic-bezier(.16, 1, .3, 1); }
.sd[data-open] .sd-scrim { opacity: 1; }
.sd-panel { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(560px, calc(100% - 24px)); display: flex; flex-direction: column; background: var(--x-raised); color: #0a0a0a; border-radius: 28px; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .35); transform: translate3d(calc(100% + 24px), 0, 0); transition: transform .55s cubic-bezier(.16, 1, .3, 1); overflow: hidden; }
.sd[data-open] .sd-panel { transform: none; }
.sd-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 28px 20px; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.sd-t { margin: 8px 0 0; font-weight: 600; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; }
.sd-x { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 0; background: #f5f5f7; color: #0a0a0a; cursor: pointer; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.sd-x:hover { transform: rotate(90deg); }
.sd-x:focus-visible { outline: 2px solid var(--acc, #525252); outline-offset: 2px; }
.sd-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 28px 32px; font-size: 17px; line-height: 1.55; color: #3a3a3c; }
.sd-body h3 { margin: 28px 0 8px; font-size: 19px; line-height: 1.25; letter-spacing: -.015em; color: #0a0a0a; }
.sd-body p { margin: 0 0 12px; }
@media (max-width: 900px) {
.sd-panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 86svh; border-radius: 24px; transform: translate3d(0, calc(100% + 16px), 0); }
.sd-h { padding: 22px 20px 16px; }
.sd-t { font-size: 24px; }
.sd-body { padding: 4px 20px 28px; }
}
@media (prefers-reduced-motion: reduce) { .sd-panel, .sd-scrim { transition: none; } }