Files
Claude c81b5c2737 feat(chat): critic fixes and MASTER rhythm: whole live window on the first screen, real UI scenes, kit Cta and Band
- Hero: headline left (52px, one tone), the whole chat window right at 100% with its rail,
  lit lane and composer on a 1470x801 first screen; recents become a drawer (state change)
- Chapter scenes are the app itself in Hanzo's words (recents, the conversation, Listen,
  Dev's retry.ts diff); no skeleton bars, no three-box rows
- The black room's heading arrives at 84px and shrinks as the scene pins (scale rhythm)
- Kit Cta for every ask (hand-off ring), kit Band for the close; no springs, no setInterval
- Deck greys only (snapped); muted text #525252 where the room is #f5f5f5
- Shared parts: AppLines resting sizes (h1 52, heads 26), 700 ms line mask; AppChapters deck
- docs/coverage/chat.md on the 18-part template; docs/requests/chat.md; new proof

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DqUybBvhoVWqyU3pKxz6Ts
2026-11-07 14:50:54 +00:00

69 lines
4.8 KiB
CSS

/* AppChapters (see AppChapters.jsx). Owner: the Wave 1 Apps chat. Accent comes from the page: --acc. */
.v2a-ch { position: relative; background: var(--bg, #fff); color: var(--ink); }
.v2a-ch.dark { background: #000; color: #fafafa; }
.v2a-ch-track { position: relative; }
.v2a-ch-pin { position: relative; }
.v2a-ch-n { margin: 24px 0 0; font-size: 12px; letter-spacing: .14em; color: #737373; }
.v2a-ch.dark .v2a-ch-n { color: #a3a3a3; }
.v2a-ch-t { margin: 0; font-size: clamp(1.625rem, 2.2vw, 2rem); font-weight: 497; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; max-width: 16ch; }
.v2a-ch-b { margin: 18px 0 0; max-width: 34ch; font-size: 1.0625rem; line-height: 1.55; color: #525252; text-wrap: pretty; }
.v2a-ch.dark .v2a-ch-t { color: #fafafa; }
.v2a-ch.dark .v2a-ch-b { color: rgba(255, 255, 255, .78); }
.v2a-ch-art { position: relative; border-radius: 24px; overflow: hidden; background: #171717; }
.v2a-ch:not(.dark) .v2a-ch-art { background: #f2f2f2; }
.v2a-ch-art-in { position: absolute; inset: 0; }
.v2a-ch-art[data-off] * { animation-play-state: paused !important; }
.v2a-ch-n { font-family: var(--mono); }
.v2a-ch-nav { display: none; }
@media (min-width: 901px) {
.v2a-ch-track { height: calc(100svh + var(--n) * 62svh); }
.v2a-ch-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 64px 0 104px; box-sizing: border-box; } /* the foot stays clear for the sticky ask */
.v2a-ch-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: 24px; row-gap: clamp(28px, 4svh, 48px); align-items: center; }
.v2a-ch-item { display: contents; }
.v2a-ch-txt { grid-area: 1 / 1 / 2 / 6; align-self: center; opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .28s var(--ease), transform .32s var(--ease); pointer-events: none; }
.v2a-ch-item.past .v2a-ch-txt { transform: translate3d(0, -28px, 0); }
.v2a-ch-item.on .v2a-ch-txt { opacity: 1; transform: none; transition: opacity .6s var(--ease) .14s, transform .9s var(--ease) .14s; pointer-events: auto; }
.v2a-ch-art { grid-area: 1 / 6 / 2 / 13; height: min(600px, calc(100svh - 300px)); clip-path: inset(100% 0 0 0 round 24px); transition: clip-path .8s cubic-bezier(.16, 1, .3, 1); }
.v2a-ch-item.past .v2a-ch-art { clip-path: inset(0 0 100% 0 round 24px); }
.v2a-ch-item.on .v2a-ch-art { clip-path: inset(0 0 0 0 round 24px); z-index: 1; }
.v2a-ch-art-in { transform: scale(1.06); transition: transform 1.1s var(--ease); }
.v2a-ch-item.on .v2a-ch-art-in { transform: none; }
.v2a-ch-item:not(.on) .v2a-ch-art * { animation-play-state: paused !important; }
.v2a-ch-nav { display: block; grid-area: 2 / 1 / 3 / 13; }
.v2a-ch-nav-row { display: flex; gap: 4px; }
.v2a-ch-nav button { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: #737373; font: 400 14px/1.2 var(--sans); cursor: pointer; transition: color .15s cubic-bezier(0, 0, .2, 1), transform .09s cubic-bezier(0, 0, .2, 1); }
.v2a-ch-nav button:active { transform: scale(.97); }
.v2a-ch-nav button > :not(.v2a-ch-pill) { position: relative; }
.v2a-ch-nav-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2a-ch-pill { position: absolute; inset: 0; border-radius: 999px; background: rgba(0, 0, 0, .05); }
.v2a-ch.dark .v2a-ch-pill { background: rgba(255, 255, 255, .08); }
.v2a-ch.dark .v2a-ch-nav button { color: #a3a3a3; }
@media (hover: hover) { .v2a-ch-nav button:hover { color: #0a0a0a; } .v2a-ch.dark .v2a-ch-nav button:hover { color: #fafafa; } }
.v2a-ch-nav button[aria-current] { color: #0a0a0a; }
.v2a-ch.dark .v2a-ch-nav button[aria-current] { color: #fafafa; }
.v2a-ch-nav button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.v2a-ch-bar { display: block; height: 1px; margin-top: 10px; background: rgba(0, 0, 0, .1); overflow: hidden; }
.v2a-ch.dark .v2a-ch-bar { background: rgba(255, 255, 255, .14); }
.v2a-ch-bar b { display: block; height: 100%; background: #0a0a0a; transform-origin: 0 50%; }
.v2a-ch.dark .v2a-ch-bar b { background: #fafafa; }
}
@media (min-width: 901px) and (max-height: 760px) {
.v2a-ch-t { font-size: clamp(2rem, 3.2vw, 2.75rem); }
}
@media (max-width: 900px) {
.v2a-ch-item { padding: 0 0 72px; }
.v2a-ch-item:last-of-type { padding-bottom: 0; }
.v2a-ch-txt { margin-bottom: 28px; }
.v2a-ch-n { margin-top: 16px; }
.v2a-ch-t { font-size: 1.625rem; }
.v2a-ch-b { font-size: 1rem; margin-top: 12px; }
.v2a-ch-art { height: 340px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
.v2a-ch-txt, .v2a-ch-art, .v2a-ch-art-in { transition: none !important; }
.v2a-ch-art * { animation: none !important; }
}