/* Perigee's room in Flipcash, simulated (2026-11-17, Erik: "show a realistic mock up of the app. the same way we build the
   motion videos for boost reactions"). Values from the Studio's Flipcash kit (~/Studio/src/kits/flipcash), which reads
   them from the iOS app's source at the App Store tags flipcash-2026.10.4 and 2026.11.1; the request copy re-checked at
   2026.11.2. The screen is laid out in iOS points (402 x 874). The phone is the saved frame our other work uses
   (~/Studio/public/phone-frame.png, 1200 x 2000 px, Dynamic Island included; the Flipcash kit's Phone in
   ~/Studio/src/kits/flipcash/ui.tsx): the screen sits in its slot at (201, 134), 797 x 1733 px, corner 118, scaled
   1.983 px per point, and the whole device is scaled as one piece to the page (2026-11-25, Erik: "use the actual phone
   mockup we use in our other work"). Nothing here moves on CSS transitions: room.js sets every moving value per frame. */

/* the frame image carries transparent margins (its glass spans x 172-1028, y 104-1896), so the box is wider than the
   phone you see: 88% of the stage shows a phone about 62% of it wide, as before */
.devwrap { position: absolute; left: 50%; top: 50%; width: 88%; max-width: 494px; transform: translate(-50%, -50%); z-index: 2; aspect-ratio: 1200 / 2000; }
@media (max-width: 920px) { .devwrap { position: relative; left: 50%; top: auto; transform: translateX(-50%); width: min(124%, 470px); max-width: none; margin: -9% 0 -7%; } }
.dev { position: absolute; left: 0; top: 0; width: 1200px; height: 2000px; transform-origin: 0 0; }
.dev .under { position: absolute; left: 191px; top: 124px; width: 817px; height: 1753px; border-radius: 128px; background: #000; }
.dev .slot { position: absolute; left: 201px; top: 134px; width: 797px; height: 1733px; border-radius: 118px; overflow: hidden; background: #19191A; isolation: isolate; }
.dev .slot > .scr { transform: scale(1.98259); transform-origin: 0 0; border-radius: 0; }
.dev .frame { position: absolute; left: 0; top: 0; width: 1200px; height: 2000px; pointer-events: none; user-select: none; z-index: 2;
  filter: drop-shadow(0 70px 70px rgba(30,36,6,.38)) drop-shadow(0 24px 30px rgba(30,36,6,.22)); }
/* Flipcash v2 (2026-11-25, Erik: "We build on the new look only"): values from moonyversal/reference/flipcash-v2-ui-spec.md,
   read from code-ios-app main @ fd3c4ba (the 11-20 redesign, unreleased): SF, #121212, Central icons, chat v2, swipe lens. */
.scr { position: relative; width: 402px; height: 874px; border-radius: 64px; overflow: hidden; isolation: isolate; background: #121212; color: #fff;
  font-family: -apple-system, 'SF Pro Text', 'SF Pro', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.ic { display: inline-block; flex-shrink: 0; background: #fff; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.scr * { box-sizing: border-box; }
.island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 18px; background: #000; z-index: 60; }

/* status bar and home indicator */
.sb { position: absolute; left: 0; top: 0; width: 402px; height: 62px; font-family: system-ui, -apple-system, sans-serif; z-index: 20; }
.sb .t { position: absolute; left: 32px; top: 20px; width: 54px; text-align: center; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 22px; }
.sb svg { position: absolute; right: 26px; top: 25px; }
.home { position: absolute; left: 131.5px; top: 861px; width: 139px; height: 5px; border-radius: 3px; background: #fff; z-index: 70; }

/* glass (iOS 26, flattened to its look over a dark transcript) */
.gl { background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.045)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 1px 0 rgba(255,255,255,.18), 0 8px 24px rgba(0,0,0,.4); }

/* header (ConversationScreen.swift): solid to 80% of 142 then a short fade; a 44pt back button, 44pt avatar, 12pt gap */
.hbg { position: absolute; left: 0; top: 0; width: 402px; height: 176px; z-index: 13; pointer-events: none; background: linear-gradient(180deg, #121212 0%, #121212 62%, rgba(18,18,18,.82) 76%, rgba(18,18,18,0) 100%); }   /* a longer fade under the header, so a message scrolls away softly instead of being cut */
.hd { position: absolute; left: 16px; top: 66px; height: 44px; display: flex; align-items: center; gap: 12px; z-index: 14; }
.hd .bk { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; }
.hd .hwho { display: flex; align-items: center; gap: 12px; }
.hd b { display: block; font-size: 17px; font-weight: 600; line-height: 22px; }
.hd .sub { display: block; font-size: 13px; font-weight: 400; line-height: 17px; color: rgba(255,255,255,.6); }
.pfp { border-radius: 50%; background: #C8F542; display: grid; place-items: center; flex-shrink: 0; }
.pfp svg { width: 64%; height: 64%; color: #0F1115; }

/* transcript (ChatColumnCell.swift): rows 15pt apart; others get a 12pt inset, a 24 + 8 gutter and their name; a sent bubble
   sits on the right with neither. The column is anchored above the composer and rides up with the keyboard. */
.tx2 { position: absolute; left: 0; right: 0; bottom: 98px; display: flex; flex-direction: column; justify-content: flex-end; z-index: 5; }
.rw { display: flex; flex-direction: column; justify-content: flex-end; flex-shrink: 0; }
/* chat v2 (ChatStyle): row inset 16, a 36 gutter, speakers 16 apart, the 28 author avatar with a 5% ring, the name 12 regular at 50% */
.rw .in { display: flex; flex-direction: column; align-items: flex-start; padding: 16px 16px 0 52px; position: relative; }
.rw.me .in { align-items: flex-end; padding: 16px 16px 0 0; }
.rw .nm { font-size: 12px; font-weight: 400; line-height: 16px; color: rgba(255,255,255,.5); margin: 0 0 4px 14px; }
.rw .bw { position: relative; }
.rw .av { position: absolute; left: -36px; top: 0; width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.05); }
.bb { max-width: 289px; padding: 10px 14px; border-radius: 20px; background: #232325;
  font-size: 16px; font-weight: 500; line-height: 19.5px; letter-spacing: .005em; white-space: pre-wrap; overflow-wrap: anywhere; }
.rw.me .bb { background: rgba(10,132,255,.32); color: color(display-p3 0.88 0.94 1); }

/* the request card in bubble chrome (ChatPaymentRequestCell.swift: 290 wide, 16pt padding; PaymentRequestCardView.swift:
   8pt spacing, the content at 50% once ended) */
.rq { width: 290px; padding: 16px; border-radius: 22px; background: #1C1C1E; }
.rq .c { display: flex; flex-direction: column; gap: 8px; }
.rq .l, .rq .p, .rq .s { font-size: 14px; font-weight: 600; line-height: 17px; color: #7B7B7B; }
.rq .ti { font-size: 20px; font-weight: 600; line-height: 24px; }
.bar { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: #1AC86A; }
.sw { display: inline-grid; justify-items: start; }
.sw > span { grid-area: 1 / 1; white-space: nowrap; }

/* the deck under the app bar (PaymentRequestDeck.swift): 12 x 10 padding, a 32pt ring, 12pt gap, 14pt title, 12pt line,
   radius 14, a green border while the viewer owes, a 32pt green Pay capsule */
.dkbg { position: absolute; left: 0; right: 0; top: 0; height: 194px; z-index: 11; opacity: 0; background: linear-gradient(180deg, #121212 0%, #121212 88%, rgba(18,18,18,0) 100%); }
.dk { position: absolute; left: 12px; right: 12px; top: 118px; height: 52px; padding: 10px 12px; border-radius: 14px; display: flex; align-items: center; gap: 12px; z-index: 12; background: #252526; opacity: 0; }
.dk .c { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.dk .tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dk .ti { font-size: 14px; font-weight: 600; line-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk .ln { font-size: 12px; font-weight: 500; line-height: 15px; color: #7B7B7B; white-space: nowrap; }
.dk .ln em { font-style: normal; color: #73EAA4; }
.dk .pay { height: 32px; padding: 0 18px; border-radius: 16px; background: #1AC86A; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: #121212; flex-shrink: 0; }
.ring2 { position: relative; width: 32px; height: 32px; flex-shrink: 0; }
.ring2 svg { position: absolute; inset: 0; }
.ring2 .dl { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 500; color: #000; }
.ring2 .bd { position: absolute; right: -5.4px; bottom: -5.4px; width: 15.3px; height: 15.3px; border-radius: 50%; background: #252526; display: grid; place-items: center; opacity: 0; }
.ring2 .bd i { width: 12.3px; height: 12.3px; border-radius: 50%; background: #1AC86A; display: grid; place-items: center; }

/* the compact bar (ConversationBottomBar.swift): 32pt inset narrowing to 12 with the keyboard, 50pt controls, field radius 25,
   a 34pt "+", "$" tucking into the field once there is a draft, a 34pt white send arrow */
.cb { position: absolute; left: 0; right: 0; top: 0; height: 50px; display: flex; z-index: 12; }
.cb .f { flex: 1; min-width: 0; height: 50px; border-radius: 25px; display: flex; align-items: center; padding: 0 8px; gap: 10px; position: relative; }
.cb .pl { width: 34px; height: 34px; border-radius: 17px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex-shrink: 0; }
.cb .ftx { flex: 1; min-width: 0; margin-right: 36px; font-size: 17px; font-weight: 400; color: rgba(235,235,245,.3); white-space: nowrap; overflow: hidden; }
.cb .ftx.on { color: #fff; }
.cb .snd { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 17px; background: #fff; display: grid; place-items: center; opacity: 0; }
.cb .gap { flex-shrink: 0; }
.cb .cw { height: 50px; flex-shrink: 0; overflow: hidden; }
.cb .cash { background: #0A84FF !important; width: 50px; height: 50px; border-radius: 25px; display: grid; place-items: center; font-size: 22px; font-weight: 600; }

/* the keyboard (keyboard.tsx: geometry from Stageshow's ios.css, measured from iOS screenshots) */
.kb { position: absolute; left: 0; right: 0; top: 545px; height: 329px; z-index: 13; font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif; color: #fff; }
.kb .sh { margin: 0 3px 4px; padding: 0 3px; border-radius: 28px 28px 52px 52px; background: #2a2a2c; box-shadow: inset 0 .5px 0 rgba(255,255,255,.1); }
.kb .sg { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; height: 50px; font-size: 17px; letter-spacing: -0.01em; text-align: center; }
.kb .sg span + span { border-left: 1px solid rgba(235,235,245,.22); }
.kb .kr { display: flex; justify-content: center; gap: 6px; height: 42.5px; margin-bottom: 11px; }
.kb .k { position: relative; width: 33.6px; height: 42.5px; border-radius: 8.5px; background: #4a4a4c; display: grid; place-items: center; font-size: 23px; line-height: 1; flex-shrink: 0; }
.kb .k.dn { background: #6b6b6e; }
.kb .k .co { position: absolute; bottom: 30px; left: 50%; width: 145%; height: 54px; padding-bottom: 6px; border-radius: 12px; background: #4a4a4c; box-shadow: 0 1px 6px rgba(0,0,0,.16); display: none; place-items: center; font-size: 34px; transform: translateX(-50%); z-index: 2; }
.kb .k .co::after { content: ""; position: absolute; top: 100%; left: 50%; width: 69%; height: 14px; margin-top: -4px; background: #4a4a4c; transform: translateX(-50%); }
.kb .k.pop .co { display: grid; }
.kb .k.sm { font-size: 17px; }
.kb .lay { display: none; } .kb .lay.on { display: block; }
.kb .ft { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 22px 6px; }

/* the pay sheet (PaymentRequestPaySheet; SwipeControl.swift) */
.ps { position: absolute; left: 8px; right: 8px; top: 471px; height: 395px; padding: 30px 20px 20px; border-radius: 38px; background: linear-gradient(180deg, #363638, #242426); display: flex; flex-direction: column; align-items: center; z-index: 44;
  box-shadow: 0 -10px 40px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.16); transform: translateY(455px); }
.ps .nm2 { margin-top: 8px; font-size: 20px; font-weight: 600; line-height: 25px; }
.ps .amt { margin-top: 25px; font-size: 55px; font-weight: 600; line-height: 67px; }
.ps .cur { margin-top: 12px; height: 42px; padding: 10px 16px; border-radius: 21px; background: rgba(255,255,255,.1); display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.ps .cur img { width: 20px; height: 20px; border-radius: 10px; display: block; }
/* swipe to pay, the lens look (SwipeControl): a 64 capsule at white 7.5%, an 84 x 56 glass thumb inset 4, the label at 60% */
.ps .swp { position: relative; align-self: stretch; margin-top: auto; height: 64px; border-radius: 32px; background: rgba(255,255,255,.075); overflow: hidden; }
.ps .swp .lb { position: absolute; inset: 0 84px; display: grid; place-items: center; font-size: 16px; font-weight: 600; color: rgba(255,255,255,.6); }
.ps .swp .kn { position: absolute; left: 4px; top: 4px; width: 84px; height: 56px; border-radius: 28px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.07)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), inset 0 1px 0 rgba(255,255,255,.24), 0 6px 18px rgba(0,0,0,.35); }
.ps .swp .kn { overflow: hidden; }
.ps .swp .kn .ic { position: relative; z-index: 1; }
.ps .swp .kn .lens { position: absolute; top: 50%; white-space: nowrap; font-size: 16px; font-weight: 600; color: rgba(255,255,255,.75); transform: translate(-50%, -50%) scale(1.19); pointer-events: none; }
.ps .swp .ld, .ps .swp .ok { position: absolute; right: 4px; top: 4px; width: 84px; height: 56px; display: grid; place-items: center; opacity: 0; }

/* the fingertip (ui.tsx Touch): a soft disc, darkening while pressed */
.tch { position: absolute; left: 0; top: 0; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 21px; z-index: 50; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.7), 0 4px 14px rgba(0,0,0,.35); background: rgba(255,255,255,.32); }

/* Flipcash's time break (ChatItem+Conversation.swift, DateFormatter.swift): a separator after any hour-long gap, 12pt
   demi at 50%, centred */
.day { align-self: center; font-size: 12px; font-weight: 400; line-height: 16px; color: rgba(255,255,255,.5); margin-top: 24px; flex-shrink: 0; }
.day b { font-weight: 500; }

/* ---- the Request screen (Group Money: a request is reached from its card; 2026-11-25) ----
   PaymentRequestDetailsScreen at iOS main fd3c4ba, as a full-screen cover over the chat: backgroundMain, the inline
   title "Request" (17 semibold) with the trailing close on a glass circle, content 20 in at 24 from the bar, Pay as
   the .filled capsule (54, white, 16 semibold black) 20 in and 20 above the bottom edge. "Bold" tokens are SF Semibold. */
.rqd { position: absolute; inset: 0; z-index: 19; background: #121212; visibility: hidden; will-change: transform; }
.rqd .nv { position: absolute; left: 0; right: 0; top: 66px; height: 44px; }
.rqd .nt { position: absolute; left: 0; right: 0; top: 11px; text-align: center; font-size: 17px; font-weight: 600; line-height: 22px; }
.rqd .x { position: absolute; right: 16px; top: 0; width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; }
.rqd .bd { position: absolute; left: 20px; right: 20px; top: 134px; display: flex; flex-direction: column; }
.rqd .h { font-size: 30px; font-weight: 600; line-height: 36px; letter-spacing: -0.01em; }
.rqd .by { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; line-height: 21px; color: #7B7B7B; }
.rqd .am { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.rqd .am .pl { font-size: 20px; font-weight: 600; line-height: 25px; }
.rqd .am .sl { font-size: 14px; font-weight: 600; line-height: 18px; color: #7B7B7B; }
.rqd .rr { margin-top: 30px; min-height: 64px; padding: 0 12px; border-radius: 12px; background: rgba(255,255,255,.06); display: flex; align-items: center; gap: 12px; }
.rqd .yav { position: relative; width: 40px; height: 40px; border-radius: 20px; overflow: hidden; flex-shrink: 0; background: linear-gradient(180deg, #404040, #212121); }
.rqd .yav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rqd .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rqd .nm b { font-size: 16px; font-weight: 600; line-height: 21px; }
.rqd .st { font-size: 14px; font-weight: 600; line-height: 18px; color: #7B7B7B; }
.rqd .st em { font-style: normal; color: #73EAA4; }
.rqd .ra { font-size: 16px; font-weight: 600; line-height: 21px; }
.rqd .pb { position: absolute; left: 20px; right: 20px; bottom: 20px; height: 54px; border-radius: 27px; background: #fff; color: #000; display: grid; place-items: center; font-size: 16px; font-weight: 600; }
